/* Wuzzi marketing site. Hand-written, no build step.
   Palette follows the app: sage AccentColor (#477A6E light / #9ED1BD dark) and the icon's coral heart. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --paper: #faf6ee;
  --paper-2: #f3ede1;
  --card: #fffdf8;
  --ink: #1d2925;
  --muted: #4b5a54;
  --line: #e2d9c8;
  --sage: #477a6e;        /* app AccentColor, fills and large type */
  --sage-text: #355f55;   /* AA on paper for small text */
  --sage-soft: #dde9e2;
  --coral: #f49c7f;       /* decorative only */
  --coral-text: #a8492b;
  --btn: #2f574d;
  --btn-ink: #fffdf8;
  --sleep: #7b74f0;
  --feed: #f7a23b;
  --care: #34bdb4;
  --shadow: 0 1px 0 rgba(29, 41, 37, .04), 0 18px 40px -22px rgba(29, 41, 37, .35);
  --radius: 22px;
  --wrap: 1120px;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Figtree", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111815;
    --paper-2: #16201c;
    --card: #1b2622;
    --ink: #eef2ec;
    --muted: #b3c1ba;
    --line: #2c3a35;
    --sage: #9ed1bd;
    --sage-text: #9ed1bd;
    --sage-soft: #1f322b;
    --coral-text: #f6b39c;
    --btn: #9ed1bd;
    --btn-ink: #0f1f1a;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 20px 40px -24px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--sage-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 560;
  font-variation-settings: "opsz" 120, "SOFT" 100;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 8.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 5.4vw, 3.3rem); }
h3 { font-size: 1.45rem; font-variation-settings: "opsz" 40; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
em.hand { font-style: normal; color: var(--sage); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--btn); color: var(--btn-ink); padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.35rem/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.head-nav { display: flex; align-items: center; gap: 4px; font-size: .95rem; }
.head-nav a { color: var(--muted); text-decoration: none; padding: 10px; border-radius: 10px; }
.head-nav a:hover { color: var(--ink); background: var(--paper-2); }
.head-nav .lang { border: 1px solid var(--line); padding: 7px 10px; margin-left: 4px; font-weight: 600; }
@media (max-width: 640px) { .head-nav .opt { display: none; } }

/* Eyebrow + buttons */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage-text); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--coral); border-radius: 2px; }
.badge-link { display: inline-block; border-radius: 9px; }
.badge-link img { height: 54px; width: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink); font-weight: 650; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }

/* Hero */
.hero { position: relative; padding: 28px 0 40px; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto auto; width: 70vw; max-width: 760px; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--sage-soft), transparent 70%);
  z-index: -1; pointer-events: none;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.hero h1 .soft { display: block; color: var(--sage); font-style: normal; }
.lede { font-size: clamp(1.1rem, 2.3vw, 1.3rem); color: var(--muted); max-width: 34ch; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta-note { font-size: .95rem; color: var(--muted); margin: 0; }
.cta-note strong { color: var(--ink); }

.phone {
  position: relative; width: min(78vw, 320px); margin-inline: auto;
  aspect-ratio: 644 / 1396; border-radius: 46px; padding: 10px;
  background: #0d0f0e; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  rotate: 2.5deg;
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: #000; }
.phone-wrap { position: relative; }
.sticker {
  position: absolute; z-index: 2; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow);
  font-size: .88rem; line-height: 1.3; display: flex; align-items: center; gap: 10px; max-width: 220px;
}
.sticker b { display: block; font-weight: 650; }
.sticker .dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 .8rem/1 var(--body); }
.sticker.s1 { left: max(0px, calc(50% - 230px)); top: 14%; rotate: -4deg; }
.sticker.s2 { right: max(0px, calc(50% - 235px)); bottom: 16%; rotate: 3deg; }
@media (max-width: 420px) { .sticker { font-size: .8rem; padding: 8px 10px; } .sticker.s1 { top: 8%; } }

/* Rhythm ribbon: the app's 24-hour timeline, used as a signature divider */
.ribbon { margin: 8px 0 0; color: var(--muted); }
.ribbon svg { width: 100%; height: 44px; }
.ribbon .cap { display: flex; justify-content: space-between; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

/* Sections */
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.alt { background: var(--paper-2); }

.benefit { display: grid; gap: 28px; align-items: center; padding: 28px 0; }
.benefit + .benefit { border-top: 1px dashed var(--line); }
@media (min-width: 860px) {
  .benefit { grid-template-columns: 1fr 1fr; gap: 64px; padding: 48px 0; }
  .benefit.flip > :first-child { order: 2; }
}
.benefit .num { font: 500 1rem/1 var(--display); color: var(--coral-text); margin-bottom: 12px; display: block; }
.benefit ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.benefit li { position: relative; padding-left: 28px; color: var(--muted); }
.benefit li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--sage); border-bottom: 2.5px solid var(--sage); rotate: -45deg; translate: 0 -3px;
}
.figure-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 4vw, 32px); box-shadow: var(--shadow);
}
.shot { width: min(100%, 300px); margin-inline: auto; border-radius: 34px; overflow: hidden; background: #0d0f0e; padding: 8px; box-shadow: var(--shadow); }
.shot img { border-radius: 27px; width: 100%; height: auto; }

/* Tap grid illustration */
.taps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; font-size: .82rem; color: var(--muted); }
.tap i { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 50%; margin-bottom: 8px; font-style: normal; font-size: 1.6rem; }
.tap:nth-child(1) i { background: #ffe0b8; } .tap:nth-child(2) i { background: #ffe0b8; }
.tap:nth-child(3) i { background: #c9f0ed; } .tap:nth-child(4) i { background: #d4d1ff; }
.toast { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: .92rem; }
.toast span:last-child { font-weight: 650; color: var(--sage-soft); }
@media (prefers-color-scheme: dark) { .toast span:last-child { color: #10201b; } }

/* Shared log illustration */
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; }
.log b { display: block; font-weight: 650; }
.log small { color: var(--muted); font-size: .85rem; }
.who { font-size: .8rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.who.a { background: #fde3d9; color: #8a3a20; }
.who.b { background: #dde9e2; color: #2c5248; }
.sync { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-top: 14px; }
.sync::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--care); box-shadow: 0 0 0 4px color-mix(in srgb, var(--care) 25%, transparent); }

/* Privacy */
.privacy-band { background: var(--btn); color: var(--btn-ink); }
.privacy-band h2, .privacy-band .eyebrow { color: var(--btn-ink); }
.privacy-band .eyebrow::before { background: var(--coral); }
.privacy-band p { color: color-mix(in srgb, var(--btn-ink) 86%, transparent); }
.privacy-band a { color: inherit; }
.pv-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 760px) { .pv-grid { grid-template-columns: repeat(3, 1fr); } }
.pv { border: 1px solid color-mix(in srgb, var(--btn-ink) 22%, transparent); border-radius: var(--radius); padding: 24px; }
.pv h3 { color: var(--btn-ink); font-size: 1.3rem; }
.pv p { margin: 0; }
.label-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--btn-ink) 12%, transparent); font-weight: 650;
}

/* Pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1.08fr 1fr; align-items: stretch; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.plan.best { border: 2px solid var(--sage); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--coral); color: #3b1609; font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }
.plan h3 { font-family: var(--body); font-size: 1rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.price { font: 560 clamp(2.6rem, 6vw, 3.1rem)/1 var(--display); letter-spacing: -.02em; margin: 0; }
.price small { font: 500 1.05rem var(--body); color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.plan .sub { color: var(--muted); font-size: .95rem; margin: 10px 0 0; }
.plan .trial { margin: 18px 0 0; font-weight: 650; color: var(--sage-text); }
.plan .trial.none { color: var(--muted); font-weight: 500; }
.fine { color: var(--muted); font-size: .92rem; margin-top: 24px; max-width: 70ch; }
.free-row { margin-top: 20px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }
.free-row strong { color: var(--ink); }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 560 1.2rem/1.35 var(--display); font-variation-settings: "opsz" 30;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--sage); border-bottom: 2px solid var(--sage); rotate: 45deg; transition: rotate .2s;
}
.faq details[open] summary::after { rotate: 225deg; margin-top: -2px; }
.faq details > div { padding: 0 0 20px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Closing CTA */
.closing { text-align: center; }
.closing .wrap { display: grid; justify-items: center; gap: 8px; }
.closing img.icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 12px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: .95rem; color: var(--muted); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h2 { font: 650 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.site-foot a { color: var(--muted); display: inline-block; padding: 6px 0; }
.site-foot a:hover { color: var(--ink); }
.site-foot a.brand { display: inline-flex; color: var(--ink); text-decoration: none; padding: 0; }
.legal-line { margin-top: 28px; font-size: .85rem; }

/* Document pages (privacy, terms, support, press) */
.doc { padding: 24px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); }
.doc h2 { font-size: clamp(1.5rem, 3.6vw, 1.95rem); margin-top: 1.8em; }
.doc h3 { margin-top: 1.4em; }
.doc .meta { color: var(--muted); margin-bottom: 32px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: 14px; padding: 18px 20px; margin: 24px 0; }
.callout p:last-child { margin: 0; }
.press-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 20px 0; }
.press-grid figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.press-grid figure img { margin-inline: auto; border-radius: 14px; max-height: 260px; width: auto; }
.press-grid figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; padding: 0; list-style: none; }
.swatches li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.swatches span { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); }
code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 6px; }

/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.lost .big { font: 560 clamp(5rem, 22vw, 10rem)/1 var(--display); color: var(--sage); letter-spacing: -.04em; margin: 0; }

/* Hero video pause control */
.vid-toggle {
  position: absolute; right: 22px; bottom: 22px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(20, 24, 22, .72); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.vid-toggle[hidden] { display: none; }
.vid-toggle .i-play, .vid-toggle.is-paused .i-pause { display: none; }
.vid-toggle.is-paused .i-play { display: block; }

/* Best-value plan leads on phones */
@media (max-width: 859px) { .plan.best { order: -1; margin-top: 12px; } }
.benefit ul.log { margin: 0; gap: 0; display: block; }
.benefit .log li { padding-left: 0; color: inherit; }
.benefit .log li::before { content: none; }
.figure-card .taps { max-width: 420px; margin-inline: auto; }
