/* Posture - editorial light theme, teal drawn from the app icon */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600&display=swap');

:root {
  /* OKLCH, neutrals tinted toward the brand teal hue (~198) */
  --bg:        oklch(0.992 0.004 198);
  --surface:   oklch(0.972 0.008 198);
  --ink:       oklch(0.24 0.035 205);
  --body:      oklch(0.42 0.022 205);
  --muted:     oklch(0.56 0.016 205);
  --line:      oklch(0.90 0.012 198);
  --teal:      oklch(0.66 0.135 196);
  --teal-deep: oklch(0.50 0.115 200);
  --teal-soft: oklch(0.95 0.03 196);
  --dark:      oklch(0.26 0.04 215);

  /* 4pt spacing scale, semantic */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --space-4xl: clamp(5rem, 12vw, 9rem);

  --maxw: 1080px;
  --measure: 68ch;

  color-scheme: light dark;
}

/* Adaptive dark theme - same hue family, tokens swapped */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        oklch(0.17 0.015 215);
    --surface:   oklch(0.22 0.02 212);
    --ink:       oklch(0.95 0.012 198);
    --body:      oklch(0.80 0.016 200);
    --muted:     oklch(0.66 0.016 202);
    --line:      oklch(0.30 0.02 210);
    --teal:      oklch(0.72 0.125 196);
    --teal-deep: oklch(0.74 0.10 196);
    --teal-soft: oklch(0.26 0.045 200);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Bricolage Grotesque", sans-serif; color: var(--ink); line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.nav-links { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: 0.95rem; font-weight: 500; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--teal-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.5rem; border-radius: 10px;
  background: var(--dark); color: oklch(0.98 0.01 196);
  transition: transform 0.25s cubic-bezier(0.2,0.7,0.3,1), background 0.25s;
}
.btn:hover { background: var(--ink); color: oklch(0.99 0.01 196); transform: translateY(-2px); }
@media (prefers-color-scheme: dark) {
  .btn { background: oklch(0.93 0.03 196); color: oklch(0.22 0.03 210); }
  .btn:hover { background: oklch(0.98 0.015 196); color: oklch(0.20 0.03 210); }
}
.btn[aria-disabled="true"] { background: var(--surface); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; background: var(--surface); color: var(--muted); }
.textlink { font-weight: 600; color: var(--teal-deep); }
.textlink::after { content: " \2192"; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem) var(--space-4xl); }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.7rem); font-weight: 800; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--teal-deep); }
.hero .lead { margin-top: var(--space-lg); font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.hero .actions { margin-top: var(--space-xl); display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }

/* Email capture (pre-launch) */
.notify { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-xl); max-width: 460px; }
.notify input {
  flex: 1 1 220px; min-width: 0; padding: 0.8rem 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem;
}
.notify input::placeholder { color: var(--muted); }
.notify input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.notify .btn { border: none; cursor: pointer; font: inherit; white-space: nowrap; }
.free .notify { justify-content: center; margin-top: var(--space-md); margin-inline: auto; }
.hero .fineprint { margin-top: var(--space-md); font-size: 0.9rem; color: var(--muted); }
.hero-art { justify-self: center; position: relative; }
.hero-art img {
  width: clamp(190px, 26vw, 300px); height: auto; border-radius: 28px; display: block;
  box-shadow: 0 30px 70px -30px oklch(0.40 0.10 210 / 0.55), 0 8px 20px -12px oklch(0.30 0.08 210 / 0.4);
}
.hero-art::before {
  content: ""; position: absolute; inset: -18% -12% -22% -12%; z-index: -1;
  background: radial-gradient(60% 55% at 50% 45%, var(--teal-soft), transparent 72%);
}

/* ---------- Sections ---------- */
section { padding-block: var(--space-4xl); }
.section-head { max-width: 28ch; margin-bottom: var(--space-2xl); }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; }
.section-head p { margin-top: var(--space-md); color: var(--muted); font-size: 1.1rem; max-width: 50ch; }

/* Steps - editorial, big numbers, not identical cards */
.steps { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3rem); } }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-lg); align-items: start; }
@media (min-width: 720px) { .step { grid-template-columns: 1fr; gap: var(--space-md); } }
.step-icon { width: 68px; height: 68px; border-radius: 16px; display: block; margin-bottom: var(--space-sm); box-shadow: 0 12px 28px -16px oklch(0.40 0.10 210 / 0.5); }
.step .num { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--teal); line-height: 1; }
.step h3 { font-size: 1.3rem; margin-bottom: var(--space-xs); }
.step p { color: var(--muted); max-width: 34ch; }

/* App gallery - real screenshots, story order */
.gallery { display: grid; gap: clamp(1.75rem, 5vw, 3rem); justify-items: center; grid-template-columns: 1fr; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.gallery .shot {
  width: 100%; max-width: 280px; height: auto; border-radius: 22px; display: block;
  box-shadow: 0 24px 60px -28px oklch(0.40 0.10 210 / 0.5), 0 6px 16px -10px oklch(0.30 0.08 210 / 0.35);
}

/* Privacy - full statement, dark to echo the icon */
.privacy { background: var(--dark); color: oklch(0.92 0.02 198); border-radius: 0; }
.privacy .wrap { padding-block: var(--space-4xl); }
.privacy .statement { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: 1.12; letter-spacing: -0.02em; color: oklch(0.97 0.01 198); max-width: 18ch; }
.privacy .statement b { color: var(--teal); font-weight: 700; }
.privacy .blurb { margin-top: var(--space-lg); color: oklch(0.82 0.02 198); max-width: 52ch; font-size: 1.1rem; }
.privacy-head { display: grid; grid-template-columns: 1fr; gap: var(--space-2xl); align-items: center; }
@media (min-width: 820px) { .privacy-head { grid-template-columns: 1.6fr 1fr; } }
.privacy-art { width: 100%; max-width: 320px; height: auto; border-radius: 24px; justify-self: center; box-shadow: 0 24px 60px -30px oklch(0 0 0 / 0.5); }
.privacy .points { margin-top: var(--space-3xl); display: grid; gap: var(--space-xl); }
@media (min-width: 720px) { .privacy .points { grid-template-columns: repeat(3, 1fr); gap: var(--space-2xl); } }
.privacy .point { border-top: 1px solid oklch(0.45 0.04 210); padding-top: var(--space-md); }
.privacy .point h4 { font-family: "Bricolage Grotesque", sans-serif; color: oklch(0.98 0.01 198); font-size: 1.15rem; font-weight: 600; margin-bottom: var(--space-xs); }
.privacy .point p { color: oklch(0.80 0.02 198); font-size: 0.98rem; }

/* Free tier - closing band, centered, tinted so it is not a blank white box */
.free { background: var(--teal-soft); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 8vw, 6rem); }
.free .wrap { max-width: 620px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-lg); }
.free-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 16px 36px -20px oklch(0.40 0.10 210 / 0.5); }
.free h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); max-width: 18ch; }
.free p { color: var(--body); font-size: 1.1rem; max-width: 52ch; }
.free .btn { margin-top: var(--space-xs); }

/* ---------- Doc pages (privacy / terms / support) ---------- */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc.wrap { max-width: 800px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: var(--space-sm); }
.doc h2 { font-size: 1.3rem; margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
.doc h3 { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.08rem; color: var(--ink); margin-top: var(--space-lg); margin-bottom: var(--space-xs); font-weight: 600; }
.doc p, .doc li { color: var(--body); margin-bottom: var(--space-md); max-width: var(--measure); }
.doc ul { padding-left: 1.3rem; }
.doc li { margin-bottom: var(--space-sm); }
.doc .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: var(--space-xl); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--line); }
.doc .meta strong { color: var(--ink); font-weight: 600; }
.doc hr { border: none; border-top: 1px solid var(--line); margin-block: var(--space-xl); }
.doc em { color: var(--muted); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: var(--space-2xl); }
footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-lg); justify-content: space-between; align-items: center; }
footer .flinks { display: flex; gap: var(--space-lg); flex-wrap: wrap; font-size: 0.95rem; }
footer .flinks a { color: var(--muted); }
footer .flinks a:hover { color: var(--teal-deep); }
footer .legal { color: var(--muted); font-size: 0.85rem; max-width: 40ch; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2,0.7,0.3,1), transform 0.7s cubic-bezier(0.2,0.7,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 720px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; justify-self: start; }
  .hero h1 { max-width: 100%; }
}
