/* ───────────────────────── QuiLie — Landing Page ─────────────────────────
   Light, calm, Stripe/Notion aesthetic. Matches in-app palette:
   cream paper, lavender purple, mint accent, near-black ink.
*/

@font-face {
  font-family: 'Sora';
  src: url('assets/fonts/Sora-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('assets/fonts/Sora-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('assets/fonts/Sora-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('assets/fonts/Sora-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        oklch(0.975 0.008 85);
  --bg-soft:   oklch(0.96 0.012 85);
  --bg-card:   oklch(0.995 0.004 85);
  --bg-tint:   oklch(0.95 0.018 295);

  --ink:       oklch(0.16 0.012 280);
  --ink-2:     oklch(0.38 0.018 285);
  --ink-3:     oklch(0.55 0.02 285);
  --ink-mute:  oklch(0.7 0.015 285);

  --line:      oklch(0.88 0.012 285);
  --line-soft: oklch(0.93 0.01 285);

  --purple:        oklch(0.55 0.18 295);
  --purple-deep:   oklch(0.42 0.2 295);
  --purple-soft:   oklch(0.92 0.04 295);
  --purple-tint:   oklch(0.96 0.022 295);
  --lavender:      oklch(0.86 0.07 295);

  --mint:          oklch(0.66 0.1 165);
  --mint-soft:     oklch(0.92 0.04 165);
  --mint-tint:     oklch(0.96 0.02 165);

  --serif:  "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:   "Sora", "Geist", -apple-system, system-ui, sans-serif;
  --mono:   "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --r-xs:  6px;
  --r-sm:  10px;
  --r:     14px;
  --r-lg:  22px;
  --r-xl:  32px;
  --r-2xl: 44px;

  --container: 1180px;

  --shadow-sm:  0 1px 2px oklch(0.2 0.02 285 / 0.04), 0 2px 8px oklch(0.2 0.02 285 / 0.04);
  --shadow:     0 2px 4px oklch(0.2 0.02 285 / 0.04), 0 8px 24px oklch(0.2 0.02 285 / 0.06);
  --shadow-lg:  0 4px 12px oklch(0.2 0.02 285 / 0.06), 0 24px 60px -12px oklch(0.2 0.02 285 / 0.14);
  --shadow-xl:  0 8px 24px oklch(0.2 0.02 285 / 0.08), 0 40px 100px -20px oklch(0.2 0.02 285 / 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, var(--purple-tint), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 30%, var(--mint-tint), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--purple); color: white; }

/* ───── Type ───── */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono); font-variant-ligatures: none; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-tint);
}
.eyebrow.purple .dot { background: var(--purple); box-shadow: 0 0 0 4px var(--purple-tint); }

/* ───── Layout ───── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
section { position: relative; scroll-margin-top: 80px; }

/* ───── Nav ───── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: oklch(0.985 0.008 85 / 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px; position: relative;
  border-radius: 8px;
  background: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 2px 6px oklch(0.16 0.012 280 / 0.25);
  overflow: hidden;
}
.brand-mark img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a {
  transition: color .2s;
  font-weight: 500;
  position: relative;
  padding: 4px 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 0;
  height: 1.5px;
  background: var(--purple);
  border-radius: 999px;
  transform: scaleX(0); transform-origin: center;
  transition: transform .35s cubic-bezier(.65,.05,.36,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 8px; align-items: center; }

@media (max-width: 820px) { .nav-links { display: none; } }
@media (max-width: 560px) { .nav-cta .btn.btn-ghost { display: none; } }

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .25s ease, background .25s, border-color .25s;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 0 oklch(0 0 0 / 0.4), 0 10px 26px -8px oklch(0.16 0.012 280 / 0.5);
}
.btn-primary:hover {
  background: oklch(0.22 0.015 285);
  box-shadow: 0 1px 0 oklch(0 0 0 / 0.4), 0 14px 36px -8px oklch(0.16 0.012 280 / 0.7);
}

.btn-purple {
  background: var(--purple);
  color: white;
  box-shadow: 0 1px 0 var(--purple-deep), 0 12px 30px -10px oklch(0.55 0.18 295 / 0.7);
}
.btn-purple:hover {
  background: var(--purple-deep);
  box-shadow: 0 1px 0 var(--purple-deep), 0 16px 40px -10px oklch(0.55 0.18 295 / 0.85);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--ink-3);
}

.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-xl { padding: 17px 28px; font-size: 16px; }

.btn .meta {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.65;
  padding-left: 10px; margin-left: 4px;
  border-left: 1px solid currentColor;
  border-left-color: oklch(1 0 0 / 0.25);
}
.btn-ghost .meta { border-left-color: var(--line); }
.btn-primary .meta, .btn-purple .meta { border-left-color: oklch(1 0 0 / 0.3); }

/* ───── HERO ───── */
.hero {
  position: relative;
  padding: 130px 0 60px;
  overflow: hidden;
}
.hero-watercolor {
  position: absolute;
  top: -10%; right: -10%;
  width: 70%; height: 90%;
  background:
    radial-gradient(circle at 40% 40%, var(--lavender) 0%, transparent 55%),
    radial-gradient(circle at 70% 30%, var(--purple-soft) 0%, transparent 55%);
  filter: blur(40px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
  animation: bloom 18s ease-in-out infinite alternate;
  transform-origin: 60% 40%;
}
.hero-watercolor.left {
  top: 30%; left: -10%; right: auto;
  background:
    radial-gradient(circle at 40% 50%, var(--mint-soft) 0%, transparent 55%);
  filter: blur(50px);
  opacity: 0.7;
  animation: bloomB 22s ease-in-out infinite alternate;
}
@keyframes bloom {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg);    opacity: 0.55; }
  50%  { transform: translate3d(-2%, 3%, 0) scale(1.08) rotate(6deg);  opacity: 0.7;  }
  100% { transform: translate3d(2%, -2%, 0) scale(1.04) rotate(-4deg); opacity: 0.6;  }
}
@keyframes bloomB {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg);    opacity: 0.65; }
  50%  { transform: translate3d(3%, -4%, 0) scale(1.12) rotate(-8deg); opacity: 0.85; }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.05) rotate(5deg);  opacity: 0.7;  }
}

/* Mouse-follow ambient light */
.ambient {
  position: fixed;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.55 0.18 295 / 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0,0,0);
  transition: opacity .6s ease;
  mix-blend-mode: multiply;
  will-change: transform;
}
.ambient.mint {
  width: 360px; height: 360px;
  background: radial-gradient(circle, oklch(0.66 0.12 165 / 0.16), transparent 60%);
}

/* Drifting petals/dust particles */
.petals {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.petal {
  position: absolute;
  width: var(--s, 6px); height: var(--s, 6px);
  border-radius: 60% 40% 60% 40% / 60% 60% 40% 40%;
  background: var(--c, var(--lavender));
  opacity: 0;
  filter: blur(0.6px);
  animation: drift var(--dur, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
  top: 110%;
  left: var(--x, 50%);
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg);   opacity: 0; }
  10%  { opacity: var(--o, 0.35); }
  50%  { transform: translate3d(var(--dx, 20px), -50vh, 0) rotate(180deg); }
  90%  { opacity: var(--o, 0.3); }
  100% { transform: translate3d(calc(var(--dx, 20px) * -0.5), -110vh, 0) rotate(360deg); opacity: 0; }
}

/* Hero corner soft glow */
.hero-aurora {
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 30% at 50% 0%, oklch(0.97 0.04 295 / 0.5), transparent 80%);
  opacity: 0.8;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 110px 0 40px; }
}

.hero-copy .eyebrow { margin-bottom: 32px; }
.hero-title {
  font-family: var(--sans);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0 0 36px;
  font-weight: 700;
  color: var(--ink);
}
.hero-title .line { display: block; }
.hero-title .live {
  background: linear-gradient(120deg,
    var(--purple) 0%,
    oklch(0.62 0.18 285) 25%,
    oklch(0.58 0.16 305) 50%,
    oklch(0.5 0.2 295) 75%,
    var(--purple-deep) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  animation: hueShift 9s ease-in-out infinite alternate;
  position: relative;
  padding: 0.08em 0.04em 0;
  margin: -0.08em -0.04em 0;
  display: inline-block;
  overflow: visible;
}
@keyframes hueShift {
  0%   { background-position:   0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Subtle hand-drawn underline under italic accent */
.hero-title .live::after {
  content: "";
  position: absolute;
  left: 0; right: 8%; bottom: 0.04em;
  height: 0.1em;
  background: linear-gradient(90deg, transparent 0%, oklch(0.55 0.18 295 / 0.5) 15%, oklch(0.55 0.18 295 / 0.5) 85%, transparent 100%);
  border-radius: 999px;
  transform-origin: left;
  animation: underline 1.6s 0.8s cubic-bezier(.6,.05,.3,1) both;
}
@keyframes underline {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
.hero-sub {
  font-size: 19px; line-height: 1.6; color: var(--ink-2);
  max-width: 520px;
  margin: 0 0 40px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ───── Today widget — Apple-style ───── */
.today-widget {
  position: relative;
  width: 100%;
  max-width: 460px;
  background:
    linear-gradient(180deg,
      oklch(0.995 0.004 85) 0%,
      oklch(0.985 0.008 290) 100%);
  border: 1px solid oklch(0.92 0.01 285);
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 1px 2px oklch(0.55 0.18 295 / 0.04),
    0 1px 0 oklch(1 0 0 / 0.9) inset,
    0 20px 50px -16px oklch(0.4 0.1 295 / 0.22),
    0 60px 100px -40px oklch(0.4 0.1 295 / 0.15);
  transform-style: preserve-3d;
  transform:
    perspective(1100px)
    rotateX(var(--ry, 0deg))
    rotateY(var(--rx, 0deg));
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
  font-family: var(--sans);
}
.today-widget::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 60%;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, var(--purple-tint), transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 10%, var(--mint-tint), transparent 70%);
  pointer-events: none; opacity: 0.6;
  z-index: 0;
}
.today-widget > * { position: relative; z-index: 1; }

/* Top header row */
.tw-head {
  padding: 18px 22px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid oklch(0.93 0.01 285);
}
.tw-head .date {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--ink-2); letter-spacing: -0.005em;
}
.tw-head .date .day {
  color: var(--ink-3); font-weight: 500; margin-left: 6px;
}
.tw-head .live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  color: var(--mint); letter-spacing: -0.005em;
  background: var(--mint-tint);
  padding: 5px 10px; border-radius: 999px;
}
.tw-head .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 oklch(0.66 0.1 165 / 0.7);
  animation: pulseDot 2.4s ease-out infinite;
}

/* Hero: big authenticity number with ring */
.tw-hero {
  padding: 22px 22px 16px;
  display: flex; align-items: center; gap: 18px;
}
.tw-ring {
  width: 88px; height: 88px;
  position: relative; flex-shrink: 0;
}
.tw-ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.tw-ring .track {
  fill: none; stroke: oklch(0.94 0.018 295);
  stroke-width: 8;
}
.tw-ring .fill {
  fill: none;
  stroke: url(#twRingGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251;
  stroke-dashoffset: 251;
  animation: ringFill 1.8s 0.4s cubic-bezier(.6,.05,.3,1) forwards;
}
@keyframes ringFill { to { stroke-dashoffset: var(--off, 100); } }
.tw-ring .center {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  color: var(--purple); letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tw-hero .info {
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
}
.tw-hero .label {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--ink-3); letter-spacing: -0.005em;
}
.tw-hero .big {
  font-family: var(--sans); font-size: 52px; font-weight: 700;
  letter-spacing: -0.04em; line-height: 0.95;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline;
}
.tw-hero .big .pct {
  font-size: 22px; color: var(--ink-3); margin-left: 4px;
  font-weight: 600; letter-spacing: -0.02em;
}
.tw-hero .sub {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--mint); letter-spacing: -0.005em;
}
.tw-hero .sub .arrow-up {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--mint-soft); color: var(--mint);
  font-size: 9px;
}

/* Stats row */
.tw-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 14px 22px 16px;
  gap: 18px;
}
.tw-stats .stat {
  display: flex; flex-direction: column; gap: 5px;
}
.tw-stats .stat:nth-child(2) {
  padding-left: 18px;
  border-left: 1px solid oklch(0.93 0.01 285);
}
.tw-stats .stat .label {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--ink-3); letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 6px;
}
.tw-stats .stat .label .ico {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; border-radius: 5px;
  background: oklch(0.97 0.03 65);
  color: oklch(0.6 0.15 50);
  font-size: 10px;
}
.tw-stats .stat .label.purple .ico {
  background: var(--purple-soft); color: var(--purple);
}
.tw-stats .stat .v {
  font-family: var(--sans); font-size: 26px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: 5px;
}
.tw-stats .stat .v small {
  font-size: 13px; color: var(--ink-3); font-weight: 500;
  letter-spacing: -0.005em;
}

/* Trend graph */
.tw-trend {
  padding: 14px 22px 22px;
  background: linear-gradient(180deg, transparent, oklch(0.99 0.008 290 / 0.5));
  border-top: 1px solid oklch(0.93 0.01 285);
}
.tw-trend .row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.tw-trend .row .l {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--ink-3); letter-spacing: -0.005em;
}
.tw-trend .row .delta {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--mint);
  background: var(--mint-tint);
  padding: 3px 9px; border-radius: 999px;
  letter-spacing: -0.005em;
}

.tw-chart {
  display: flex; align-items: end; gap: 6px;
  height: 52px;
}
.tw-chart .day {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 7px; min-width: 0;
  height: 100%;
}
.tw-chart .day .bar-wrap {
  flex: 1; width: 100%; max-width: 26px;
  display: flex; align-items: end;
}
.tw-chart .day .bar {
  width: 100%;
  background: linear-gradient(180deg,
    oklch(0.86 0.07 295) 0%,
    var(--purple-soft) 100%);
  border-radius: 6px;
  min-height: 4px;
  transform-origin: bottom;
  animation: sparkRise 1.4s cubic-bezier(.6,.05,.3,1) backwards;
}
.tw-chart .day:nth-child(1) .bar { animation-delay: .3s; }
.tw-chart .day:nth-child(2) .bar { animation-delay: .4s; }
.tw-chart .day:nth-child(3) .bar { animation-delay: .5s; }
.tw-chart .day:nth-child(4) .bar { animation-delay: .6s; }
.tw-chart .day:nth-child(5) .bar { animation-delay: .7s; }
.tw-chart .day:nth-child(6) .bar { animation-delay: .8s; }
.tw-chart .day:nth-child(7) .bar { animation-delay: .9s; }
@keyframes sparkRise {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
.tw-chart .day.today .bar {
  background: linear-gradient(180deg,
    oklch(0.7 0.18 295) 0%,
    var(--purple-deep) 100%);
  box-shadow:
    0 -2px 14px oklch(0.55 0.18 295 / 0.5),
    inset 0 1px 0 oklch(1 0 0 / 0.35);
}
.tw-chart .day .lbl {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  color: var(--ink-mute); letter-spacing: -0.005em;
}
.tw-chart .day.today .lbl {
  color: var(--purple); font-weight: 700;
}

/* Bottom mini row */
.tw-foot {
  padding: 12px 22px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid oklch(0.93 0.01 285);
  background: oklch(0.985 0.012 295 / 0.4);
}
.tw-foot .left {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--ink-2); letter-spacing: -0.005em;
}
.tw-foot .left .pip {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--mint), var(--purple));
  color: white; font-size: 11px; font-weight: 700;
}
.tw-foot .right {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--purple);
  display: inline-flex; align-items: center; gap: 4px;
}

.hero-micro {
  margin-top: 26px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-3);
  letter-spacing: 0.04em;
}
.hero-micro span { display: inline-flex; align-items: center; gap: 8px; }
.hero-micro b { color: var(--ink-2); font-weight: 500; }
.hero-micro .check {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--mint); color: white;
  font-size: 10px;
}

/* Hero phone */
.hero-phone-wrap {
  position: relative;
  display: grid; place-items: center;
  padding: 0;
}
.hero-phone-wrap::before {
  /* Breathing halo behind phone */
  content: "";
  position: absolute; inset: -8% -4%;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, oklch(0.55 0.18 295 / 0.22), transparent 70%);
  filter: blur(40px);
  animation: breathe 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
.hero-phone {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 577 / 1280;
  border-radius: 38px;
  overflow: hidden;
  background: black;
  box-shadow:
    0 0 0 10px oklch(0.18 0.01 285),
    0 0 0 11px oklch(0.3 0.02 285),
    0 30px 60px -20px oklch(0.55 0.18 295 / 0.35),
    var(--shadow-xl);
  animation: floatPhone 7s ease-in-out infinite;
  z-index: 1;
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-12px) rotate(-1deg); }
}
.hero-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Light sheen sweep across phone */
.hero-phone::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    oklch(1 0 0 / 0.18) 48%,
    oklch(1 0 0 / 0.32) 50%,
    oklch(1 0 0 / 0.18) 52%,
    transparent 70%);
  transform: translateX(-130%);
  animation: sheen 7s ease-in-out infinite;
  animation-delay: 2s;
  pointer-events: none;
  mix-blend-mode: overlay;
}
@keyframes sheen {
  0%   { transform: translateX(-130%); }
  60%  { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

/* Floating chips around hero phone */
.hero-chip {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  z-index: 3;
  animation: floatChip 6s ease-in-out infinite;
}
.hero-chip strong { font-weight: 600; }
.hero-chip small { color: var(--ink-3); font-size: 11.5px; }
.hero-chip .glyph {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-chip.streak { top: 6%; right: -8%; animation-delay: 0s; }
.hero-chip.streak .glyph { background: var(--mint-soft); color: var(--mint); }
.hero-chip.coach { bottom: 22%; left: -14%; animation-delay: 2s; max-width: 230px; }
.hero-chip.coach .glyph { background: var(--purple-soft); color: var(--purple); }
.hero-chip.coach p { margin: 0; line-height: 1.35; color: var(--ink-2); font-size: 12.5px; }

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (max-width: 960px) {
  .hero-chip.streak { right: 4%; }
  .hero-chip.coach { left: 0%; }
}

/* ───── Quote strip ───── */
.quote-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 28px 0;
  background: oklch(0.99 0.005 85 / 0.4);
}
.quote-strip-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase;
  flex-wrap: wrap;
}
.quote-strip-inner .item { display: flex; align-items: center; gap: 10px; }
.quote-strip-inner .item::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-mute);
}
.quote-strip-inner .item:first-child::before { display: none; }

/* ───── Section header ───── */
.section { padding: 130px 0; }
@media (max-width: 760px) {
  .section { padding: 80px 0; }
}

.sec-head { margin-bottom: 64px; max-width: 760px; }
@media (max-width: 760px) {
  .sec-head { margin-bottom: 44px; }
}
.sec-head h2 {
  font-family: var(--sans);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 700;
  margin: 18px 0 18px;
  color: var(--ink);
}
.sec-head h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  background: linear-gradient(120deg, var(--purple), var(--purple-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
}
.sec-head p {
  color: var(--ink-2); font-size: 18px;
  margin: 0; max-width: 580px;
}

/* ───── Sticky scroll narrative ───── */
.story-section { background: transparent; padding: 130px 0; }
@media (max-width: 760px) { .story-section { padding: 80px 0; } }

/* Section header rhythm — 3-step indicator under the heading */
.story-rhythm {
  display: flex; align-items: center; gap: 14px;
  margin-top: 40px;
  max-width: 540px;
}
.story-rhythm .node {
  display: flex; align-items: center; gap: 12px;
  flex: 1;
  position: relative;
}
.story-rhythm .node::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  margin-left: 4px;
}
.story-rhythm .node:last-child::after { display: none; }
.story-rhythm .dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  font-weight: 500;
  transition: all .35s ease;
  flex-shrink: 0;
}
.story-rhythm .node.active .dot {
  background: var(--purple); color: white; border-color: var(--purple);
  box-shadow: 0 0 0 4px var(--purple-tint), 0 6px 16px -4px oklch(0.55 0.18 295 / 0.4);
  transform: scale(1.08);
}
.story-rhythm .label {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--ink-3); letter-spacing: -0.01em;
  transition: color .35s;
  white-space: nowrap;
}
.story-rhythm .node.active .label { color: var(--ink); }
.story-rhythm .node.done .dot {
  background: var(--purple-soft); color: var(--purple); border-color: var(--purple-soft);
}
.story-rhythm .node.done .label { color: var(--ink-2); }

@media (max-width: 560px) {
  .story-rhythm .label { display: none; }
  .story-rhythm { gap: 8px; }
}
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; gap: 40px; }
}

.story-text { padding: 0; }
.story-step {
  padding: 40vh 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.story-step:last-child { border-bottom: 0; }

/* Large decorative numeral behind each step — watercolor italic */
.story-step .numeral {
  position: absolute;
  top: 38vh; right: 18%;
  font-family: var(--serif); font-style: italic;
  font-size: 180px; line-height: 1.1; font-weight: 400;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg,
    oklch(0.55 0.18 295 / 0.18) 0%,
    oklch(0.55 0.18 295 / 0.04) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  padding: 0.1em 0.08em 0;
  margin: -0.1em -0.08em 0;
  display: inline-block;
  overflow: visible;
}
@media (max-width: 960px) {
  .story-step .numeral {
    font-size: 120px;
    right: 0; top: 0;
  }
}

/* Detail card on left — the per-step visual prop */
.story-prop {
  margin-top: 28px;
  max-width: 420px;
  background:
    linear-gradient(135deg,
      oklch(0.995 0.005 85) 0%,
      oklch(0.97 0.014 295) 50%,
      oklch(0.985 0.008 85) 100%);
  background-size: 200% 200%;
  animation: silkFlow 14s ease-in-out infinite;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 22px;
  box-shadow:
    0 1px 2px oklch(0.55 0.18 295 / 0.05),
    0 12px 30px -10px oklch(0.55 0.18 295 / 0.18),
    inset 0 1px 0 oklch(1 0 0 / 0.7);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  transform-style: preserve-3d;
  transform:
    perspective(900px)
    rotateX(var(--ry, 0deg))
    rotateY(var(--rx, 0deg))
    translateZ(0);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.story-prop::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, var(--purple-tint), transparent 60%);
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
.story-prop::after {
  /* Silk sheen */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    oklch(1 0 0 / 0.5) 48%,
    oklch(0.92 0.06 295 / 0.45) 50%,
    oklch(1 0 0 / 0.5) 52%,
    transparent 70%);
  transform: translateX(-130%);
  animation: silkSheen 6.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 1;
}
.story-prop.reflect::after { animation-delay: 2s; }
.story-prop.grow::after    { animation-delay: 4s; }
.story-prop > * { position: relative; z-index: 2; }
.story-prop .prop-head {
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.story-prop .prop-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.story-prop.notice .prop-icon { background: var(--purple-soft); color: var(--purple); }
.story-prop.reflect .prop-icon { background: var(--mint-soft); color: var(--mint); }
.story-prop.grow .prop-icon { background: var(--mint-soft); color: var(--mint); }
.story-prop .prop-title {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
}
.story-prop .prop-sub {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 2px;
}
.story-prop .prop-body { position: relative; }

/* Notice prop — a fake “log a moment” pill that pulses */
.prop-log-pill {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); color: var(--bg);
  padding: 12px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  position: relative; overflow: hidden;
}
.prop-log-pill::before {
  content: "";
  position: absolute; left: -100%; top: 0; bottom: 0; width: 80%;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.2), transparent);
  animation: pillShine 3.5s ease-in-out infinite;
}
@keyframes pillShine {
  0%   { left: -100%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}
.prop-log-pill .kbd {
  background: oklch(0.3 0.02 285); color: oklch(0.85 0.01 80);
  font-family: var(--mono); font-size: 10px;
  padding: 3px 8px; border-radius: 6px;
  letter-spacing: 0.06em;
}
.prop-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px;
}
.prop-tag {
  font-family: var(--mono); font-size: 10.5px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.prop-tag.on {
  background: var(--purple-soft); color: var(--purple-deep);
  border-color: oklch(0.55 0.18 295 / 0.25);
}

/* Reflect prop — interactive tone selector + coach bubble */
.prop-tones {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.prop-tone {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 6px;
}
.prop-tone:hover { color: var(--ink); border-color: var(--ink-3); }
.prop-tone.active {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 2px 6px oklch(0.16 0.012 280 / 0.25);
  transform: translateY(-1px);
}
.prop-tone .swatch {
  width: 6px; height: 6px; border-radius: 50%;
}
.prop-tone[data-tone="gentle"] .swatch { background: var(--mint); }
.prop-tone[data-tone="direct"] .swatch { background: var(--purple); }
.prop-tone[data-tone="dry"] .swatch    { background: oklch(0.6 0.12 60); }

.prop-coach {
  background: white; border: 1px solid var(--line-soft);
  padding: 16px 18px; border-radius: 18px 18px 18px 4px;
  font-family: var(--serif); font-size: 18px; font-style: italic;
  color: var(--ink); line-height: 1.4;
  position: relative;
  box-shadow:
    0 2px 10px oklch(0.55 0.18 295 / 0.08),
    inset 0 1px 0 oklch(1 0 0 / 0.9);
  min-height: 88px;
  display: flex; flex-direction: column; justify-content: center;
  transition: opacity .25s ease, transform .25s ease;
}
.prop-coach.swapping { opacity: 0; transform: translateY(4px); }
.prop-coach .who {
  font-family: var(--mono); font-size: 10px; color: var(--mint);
  letter-spacing: 0.14em; text-transform: uppercase;
  font-style: normal;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  font-weight: 500;
}
.prop-coach .who::before {
  content: ""; display: inline-block;
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, oklch(0.94 0.06 165), var(--mint));
  box-shadow: 0 0 12px oklch(0.66 0.1 165 / 0.4);
}
.prop-coach em {
  color: var(--purple); font-style: italic;
}
.prop-coach .typing {
  display: inline-flex; gap: 4px; align-items: center;
}
.prop-coach .typing span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-mute);
  animation: typeDot 1.2s infinite ease-in-out;
}
.prop-coach .typing span:nth-child(2) { animation-delay: .15s; }
.prop-coach .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typeDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ───── Grow widget — Apple-style ───── */
.grow-widget {
  margin-top: 28px;
  position: relative;
  width: 100%;
  max-width: 460px;
  background:
    linear-gradient(180deg,
      oklch(0.995 0.004 85) 0%,
      oklch(0.985 0.012 165) 100%);
  border: 1px solid oklch(0.92 0.01 285);
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 1px 2px oklch(0.55 0.18 295 / 0.04),
    0 1px 0 oklch(1 0 0 / 0.9) inset,
    0 20px 50px -16px oklch(0.4 0.1 165 / 0.18),
    0 60px 100px -40px oklch(0.4 0.1 295 / 0.12);
  transform-style: preserve-3d;
  transform:
    perspective(1100px)
    rotateX(var(--ry, 0deg))
    rotateY(var(--rx, 0deg));
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
  font-family: var(--sans);
}
.grow-widget::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 70%;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, var(--mint-tint), transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 10%, var(--purple-tint), transparent 70%);
  pointer-events: none; opacity: 0.7;
  z-index: 0;
}
.grow-widget > * { position: relative; z-index: 1; }

.gw-head {
  padding: 18px 22px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid oklch(0.93 0.01 285);
}
.gw-head .date {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--ink-2); letter-spacing: -0.005em;
}
.gw-head .badge {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--purple);
  background: var(--purple-tint);
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: -0.005em;
}

.gw-hero {
  padding: 22px 22px 18px;
  display: flex; align-items: center; gap: 18px;
}
.gw-ring {
  width: 88px; height: 88px;
  position: relative; flex-shrink: 0;
}
.gw-ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.gw-ring .track {
  fill: none; stroke: oklch(0.94 0.02 165);
  stroke-width: 8;
}
.gw-ring .fill {
  fill: none;
  stroke: url(#gwRingGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251;
  stroke-dashoffset: 251;
  animation: ringFill 1.8s 0.4s cubic-bezier(.6,.05,.3,1) forwards;
}
.gw-sapling {
  position: absolute; inset: 16px;
  width: calc(100% - 32px); height: calc(100% - 32px);
  object-fit: contain;
  animation: leafBob 4s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px oklch(0.4 0.1 145 / 0.2));
}
.gw-hero .info {
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
}
.gw-hero .label {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--ink-3); letter-spacing: -0.005em;
}
.gw-hero .big {
  font-family: var(--sans); font-size: 36px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.gw-hero .big em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 52px; line-height: 1.15;
  background: linear-gradient(135deg, var(--mint), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0.08em 0.04em 0;
  margin: -0.08em -0.04em 0;
  display: inline-block;
  letter-spacing: -0.02em;
}
.gw-hero .big .suf {
  font-size: 16px; font-weight: 600; color: var(--ink-2);
}
.gw-hero .sub {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--mint); letter-spacing: -0.005em;
}
.gw-hero .sub .arrow-up {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--mint-soft); color: var(--mint);
  font-size: 9px;
}

.gw-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 14px 22px 16px;
  gap: 18px;
}
.gw-stats .stat {
  display: flex; flex-direction: column; gap: 5px;
}
.gw-stats .stat:nth-child(2) {
  padding-left: 18px;
  border-left: 1px solid oklch(0.93 0.01 285);
}
.gw-stats .stat .label {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--ink-3); letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 6px;
}
.gw-stats .stat .label .ico {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; border-radius: 5px;
  background: oklch(0.97 0.03 65);
  color: oklch(0.6 0.15 50);
  font-size: 10px; font-weight: 700;
}
.gw-stats .stat .label .ico.mint {
  background: var(--mint-soft); color: var(--mint);
}
.gw-stats .stat .v {
  font-family: var(--sans); font-size: 26px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.gw-stats .stat .v small {
  font-size: 12px; color: var(--ink-3); font-weight: 500;
  letter-spacing: -0.005em;
}

.gw-xp {
  padding: 14px 22px 18px;
  border-top: 1px solid oklch(0.93 0.01 285);
  background: linear-gradient(180deg, transparent, oklch(0.99 0.012 165 / 0.5));
}
.gw-xp .xp-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.gw-xp .xp-row .l {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--ink-3); letter-spacing: -0.005em;
}
.gw-xp .xp-row .v {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.gw-xp .xp-row .v .den {
  color: var(--ink-3); font-weight: 500; font-size: 12px;
}
.gw-xp .xp-bar {
  height: 8px;
  background: oklch(0.94 0.018 285);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.gw-xp .xp-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mint) 0%, var(--purple) 100%);
  border-radius: 999px;
  position: relative;
  box-shadow: 0 0 12px oklch(0.55 0.18 295 / 0.4);
  transition: width .25s ease;
}
.gw-xp .xp-bar .fill::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    oklch(1 0 0 / 0.55) 50%,
    transparent 100%);
  animation: xpShimmer 2.6s ease-in-out infinite;
}

.gw-streak {
  padding: 14px 22px 18px;
  border-top: 1px solid oklch(0.93 0.01 285);
}
.gw-streak .l {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--ink-3); letter-spacing: -0.005em;
  margin-bottom: 10px;
}
.gw-streak .cells {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.gw-streak .cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: oklch(0.96 0.01 285);
  border: 1px solid oklch(0.92 0.012 285);
  display: grid; place-items: center;
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
  position: relative;
  animation: cellPop .4s ease backwards;
}
.gw-streak .cell:nth-child(1) { animation-delay: 0.2s; }
.gw-streak .cell:nth-child(2) { animation-delay: 0.3s; }
.gw-streak .cell:nth-child(3) { animation-delay: 0.4s; }
.gw-streak .cell:nth-child(4) { animation-delay: 0.5s; }
.gw-streak .cell:nth-child(5) { animation-delay: 0.6s; }
.gw-streak .cell:nth-child(6) { animation-delay: 0.7s; }
.gw-streak .cell:nth-child(7) { animation-delay: 0.8s; }
.gw-streak .cell.on {
  background: linear-gradient(140deg, oklch(0.86 0.07 165), var(--mint));
  border-color: var(--mint);
  color: white;
  box-shadow:
    0 4px 10px -2px oklch(0.66 0.1 165 / 0.35),
    inset 0 1px 0 oklch(1 0 0 / 0.4);
}
.gw-streak .cell.today {
  background: linear-gradient(140deg, var(--mint), var(--purple));
  border-color: var(--purple);
  color: white;
  box-shadow:
    0 6px 14px -2px oklch(0.55 0.18 295 / 0.45),
    inset 0 1px 0 oklch(1 0 0 / 0.4),
    0 0 0 3px var(--purple-tint);
  transform: scale(1.08);
}
.prop-grow {
  display: flex; flex-direction: column; gap: 14px;
}
.prop-grow .grow-headline {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background:
    radial-gradient(ellipse 80% 100% at 0% 0%, var(--mint-tint), transparent 60%),
    white;
  border: 1px solid var(--mint-soft);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.prop-grow .grow-headline::before {
  /* Subtle floating sparkle */
  content: "";
  position: absolute; right: -10%; top: -40%;
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.66 0.12 165 / 0.4), transparent 70%);
  filter: blur(14px);
  animation: floatSparkle 5s ease-in-out infinite alternate;
}
@keyframes floatSparkle {
  from { transform: translate(0, 0) scale(1); opacity: 0.6; }
  to   { transform: translate(-10px, 6px) scale(1.15); opacity: 1; }
}
.prop-grow .leaf-3d {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(140deg, oklch(0.85 0.1 145), var(--mint) 70%, oklch(0.5 0.12 145));
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
  box-shadow:
    0 4px 12px oklch(0.66 0.1 165 / 0.4),
    inset 0 1px 0 oklch(1 0 0 / 0.4),
    inset 0 -3px 6px oklch(0.4 0.1 145 / 0.3);
  animation: leafBob 4s ease-in-out infinite;
  transform-style: preserve-3d;
}
.prop-grow .leaf-3d.sapling {
  background: var(--mint-tint);
  box-shadow:
    0 4px 12px oklch(0.66 0.1 165 / 0.25),
    inset 0 1px 0 oklch(1 0 0 / 0.6);
  padding: 4px;
}
.prop-grow .leaf-3d.sapling img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 2px 4px oklch(0.4 0.1 145 / 0.2));
}
@keyframes leafBob {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(4deg) translateY(-3px); }
}
.prop-grow .grow-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prop-grow .grow-text .pct {
  font-family: var(--sans); font-weight: 700; font-size: 22px;
  letter-spacing: -0.025em; line-height: 1.05;
  color: var(--ink);
}
.prop-grow .grow-text .pct em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  background: linear-gradient(120deg, var(--mint), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0.08em 0.05em 0;
  margin: -0.08em -0.05em 0;
  display: inline-block;
  line-height: 1.15;
  overflow: visible;
}
.prop-grow .grow-text .sub {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.prop-grow .grow-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.08em;
}
.prop-grow .grow-row b {
  font-family: var(--sans); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.prop-grow .grow-row b.mint { color: var(--mint); }
.prop-grow .xp {
  height: 10px; background: var(--bg);
  border: 1px solid var(--line-soft); border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.prop-grow .xp > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--purple));
  width: 0;
  animation: xpFill 1.8s cubic-bezier(.6,.05,.3,1) forwards;
  border-radius: 999px;
  box-shadow: 0 0 12px oklch(0.55 0.18 295 / 0.5);
  position: relative;
}
.prop-grow .xp > i::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    oklch(1 0 0 / 0.5) 50%,
    transparent 100%);
  animation: xpShimmer 2.5s ease-in-out infinite;
}
@keyframes xpFill { to { width: var(--w, 64%); } }
@keyframes xpShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
.prop-grow .streak-cells {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
}
.prop-grow .streak-cells > i {
  aspect-ratio: 1; border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  display: block;
  animation: cellPop .4s ease backwards;
}
.prop-grow .streak-cells > i:nth-child(1) { animation-delay: 0.2s; }
.prop-grow .streak-cells > i:nth-child(2) { animation-delay: 0.3s; }
.prop-grow .streak-cells > i:nth-child(3) { animation-delay: 0.4s; }
.prop-grow .streak-cells > i:nth-child(4) { animation-delay: 0.5s; }
.prop-grow .streak-cells > i:nth-child(5) { animation-delay: 0.6s; }
.prop-grow .streak-cells > i:nth-child(6) { animation-delay: 0.7s; }
.prop-grow .streak-cells > i:nth-child(7) { animation-delay: 0.8s; }
@keyframes cellPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.prop-grow .streak-cells > i.on {
  background: linear-gradient(140deg, oklch(0.78 0.1 165), var(--mint));
  border-color: var(--mint);
  box-shadow:
    0 0 10px oklch(0.66 0.1 165 / 0.5),
    inset 0 1px 0 oklch(1 0 0 / 0.4);
}
.story-step .eyebrow { margin-bottom: 18px; }
.story-step h3 {
  font-family: var(--sans);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.05; letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 18px;
}
.story-step h3 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--purple);
}
.story-step p { font-size: 17px; color: var(--ink-2); margin: 0 0 18px; max-width: 460px; }
.story-step .quote {
  margin-top: 28px;
  padding: 22px 24px 22px 56px;
  background:
    radial-gradient(ellipse 80% 100% at 0% 0%, var(--purple-tint), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  font-family: var(--serif); font-size: 22px; font-style: italic;
  color: var(--ink); line-height: 1.35;
  max-width: 480px;
  position: relative;
  box-shadow:
    0 1px 2px oklch(0.55 0.18 295 / 0.05),
    0 8px 24px -8px oklch(0.55 0.18 295 / 0.12);
  overflow: hidden;
}
.story-step .quote::before {
  content: "“";
  position: absolute;
  left: 18px; top: 4px;
  font-family: var(--serif); font-style: italic;
  font-size: 64px; line-height: 1;
  color: var(--purple);
  opacity: 0.3;
}
.story-step .quote::after {
  content: "";
  position: absolute;
  left: 22px; right: 22px; bottom: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-soft) 30%, transparent 90%);
  opacity: 0.6;
}
.story-step .quote cite {
  display: block; font-style: normal; font-family: var(--mono);
  font-size: 10.5px; color: var(--ink-3);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 18px;
  font-weight: 500;
}

.story-sticky {
  position: sticky;
  top: 80px;
  height: calc(100vh - 100px);
  min-height: 540px;
  display: grid; place-items: center;
}
@media (max-width: 960px) {
  .story-sticky {
    position: relative; top: 0; height: auto; min-height: 0;
    margin-bottom: 20px;
  }
  .story-step { padding: 60px 0; border-bottom: 1px solid var(--line-soft); }
}

.story-stage {
  position: relative;
  width: 100%;
  display: grid; place-items: center;
}
.story-phone {
  width: 100%; max-width: 320px;
  aspect-ratio: 577 / 1280;
  border-radius: 38px;
  background: black;
  overflow: hidden;
  box-shadow:
    0 0 0 10px oklch(0.18 0.01 285),
    0 0 0 11px oklch(0.3 0.02 285),
    var(--shadow-xl);
  position: relative;
}
.story-phone img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.story-phone img.active { opacity: 1; }

.story-bg-tint {
  position: absolute; inset: -10%;
  z-index: -1; pointer-events: none;
  filter: blur(60px);
  opacity: 0; transition: opacity .8s ease, background .8s ease;
}
.story-bg-tint.active { opacity: 0.6; }

.story-caption {
  position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
}

/* ───── Pillar cards ───── */
.pillars-section { padding: 80px 0 130px; }
@media (max-width: 760px) { .pillars-section { padding: 40px 0 80px; } }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}
.pillar .glyph {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
}
.pillar.p1 .glyph { background: var(--purple-soft); color: var(--purple); }
.pillar.p2 .glyph { background: var(--mint-soft); color: var(--mint); }
.pillar.p3 .glyph { background: oklch(0.95 0.04 60); color: oklch(0.6 0.12 60); }

.pillar h4 {
  font-family: var(--sans);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.pillar p { color: var(--ink-2); font-size: 14.5px; margin: 0; line-height: 1.55; }
.pillar .tag {
  margin-top: auto;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; gap: 8px; align-items: center;
}
.pillar .tag::before {
  content: ""; display: block; width: 14px; height: 1px; background: var(--ink-mute);
}

/* ───── DOWNLOAD ───── */
.dl-section {
  padding: 140px 0 130px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) { .dl-section { padding: 90px 0 80px; } }
.dl-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 45% at 50% 50%, var(--purple-tint), transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, var(--mint-tint), transparent 70%);
}

.dl-eyebrow { text-align: center; margin-bottom: 24px; display: flex; justify-content: center; }
.dl-title {
  text-align: center;
  font-family: var(--sans);
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1.0; letter-spacing: -0.035em; font-weight: 700;
  margin: 0 auto 22px; max-width: 16ch;
  color: var(--ink);
}
.dl-title em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  background: linear-gradient(120deg, var(--purple), var(--purple-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dl-sub {
  text-align: center;
  font-size: 18px; color: var(--ink-2); max-width: 540px;
  margin: 0 auto 56px;
}

.dl-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  max-width: 820px; margin: 0 auto;
}
@media (max-width: 720px) { .dl-cards { grid-template-columns: 1fr; } }

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: var(--shadow-sm);
}
.dl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: oklch(0.78 0.02 285);
}
.dl-card.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.dl-card.primary .platform .what,
.dl-card.primary .desc,
.dl-card.primary .specs { color: oklch(0.7 0.01 80); }
.dl-card.primary .specs span::before { background: var(--mint); }

.dl-card .platform { display: flex; align-items: center; gap: 14px; }
.dl-card .platform svg { width: 32px; height: 32px; }
.dl-card .platform .name {
  font-family: var(--sans); font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1;
}
.dl-card .platform .what {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 6px;
}
.dl-card .desc { color: var(--ink-2); font-size: 14.5px; margin: 0; line-height: 1.55; }
.dl-card .specs {
  display: flex; gap: 18px; margin-top: 4px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.dl-card .specs span { display: flex; gap: 6px; align-items: center; }
.dl-card .specs span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint);
}
.dl-card .dl-btn {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 14.5px; font-weight: 600;
  transition: all .25s;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}
.dl-card.primary .dl-btn {
  background: var(--bg);
  color: var(--ink);
  border-color: transparent;
}
.dl-card.primary .dl-btn:hover { background: white; transform: scale(1.01); }
.dl-card .dl-btn:hover { background: var(--bg); border-color: var(--ink-3); }
.dl-card .dl-btn .arrow { transition: transform .25s; }
.dl-card .dl-btn:hover .arrow { transform: translateX(4px); }

.dl-note {
  margin-top: 36px; text-align: center;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-3); letter-spacing: 0.06em;
}
.dl-note b { color: var(--ink-2); font-weight: 500; }

/* ───── Footer ───── */
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 70px 0 36px;
  background: var(--bg);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 50px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h5 {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 18px; font-weight: 500;
}
.foot-col a {
  display: block; color: var(--ink-2); font-size: 14px;
  padding: 6px 0; transition: color .2s;
  background: none; border: 0; text-align: left; cursor: pointer;
  font-family: inherit; width: 100%;
}
.foot-col a:hover { color: var(--ink); }
.foot-col p { color: var(--ink-3); font-size: 14px; line-height: 1.55; max-width: 280px; margin-top: 14px; }

.foot-bottom {
  padding-top: 28px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 20px;
}
.foot-bottom .tag {
  font-family: var(--serif); font-size: 15px; font-style: italic;
  color: var(--purple);
  letter-spacing: -0.005em;
}

/* ───── Reveal animations ───── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* Soft fade variant for scroll-in */
.fade { opacity: 0; transition: opacity .8s ease; }
.fade.in { opacity: 1; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 100;
  background: transparent;
  pointer-events: none;
}
.scroll-progress .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--purple), var(--purple-deep));
  width: 0%;
  transition: width .12s ease;
  box-shadow: 0 0 8px oklch(0.55 0.18 295 / 0.5);
}

/* Chip subtle pulse on streak number */
.hero-chip.streak strong {
  position: relative;
}
.hero-chip.streak strong::before {
  content: "";
  position: absolute;
  left: -10px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 oklch(0.66 0.1 165 / 0.6);
  animation: pulseDot 2.4s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 oklch(0.66 0.1 165 / 0.55); }
  70%  { box-shadow: 0 0 0 10px oklch(0.66 0.1 165 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.66 0.1 165 / 0); }
}

/* Story phone glow */
.story-phone::before {
  content: "";
  position: absolute; inset: -12%;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, oklch(0.55 0.18 295 / 0.22), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: breathe 7s ease-in-out infinite;
}

/* Story phone subtle floating + tilt */
.story-phone {
  animation: floatStory 9s ease-in-out infinite;
}
@keyframes floatStory {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-10px) rotate(0.5deg); }
}

/* Section divider — soft watercolor brush */
.brush-divider {
  height: 1px; max-width: 220px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--purple-soft) 30%, var(--lavender) 50%, var(--purple-soft) 70%, transparent);
  opacity: 0.6;
  filter: blur(0.3px);
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
  }
}

/* ───── Doc Modal ───── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: oklch(0.16 0.012 280 / 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .35s ease, backdrop-filter .35s ease;
  pointer-events: none;
}
.modal-backdrop.open {
  background: oklch(0.16 0.012 280 / 0.35);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: 100%; max-width: 720px;
  max-height: 86vh;
  background:
    linear-gradient(180deg, oklch(0.99 0.008 85) 0%, oklch(0.97 0.012 85) 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow:
    0 4px 12px oklch(0.16 0.012 280 / 0.08),
    0 40px 100px -20px oklch(0.16 0.012 280 / 0.35);
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .35s ease;
}
.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 100px;
  background:
    radial-gradient(ellipse 60% 80% at 30% 0%, var(--purple-tint), transparent 65%),
    radial-gradient(ellipse 50% 80% at 90% 0%, var(--mint-tint), transparent 65%);
  pointer-events: none;
  opacity: 0.8;
  z-index: 0;
}

.modal-head {
  position: relative; z-index: 1;
  padding: 32px 36px 22px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, oklch(0.99 0.008 85 / 0.7), transparent);
}
.modal-head .meta {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-3); letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; gap: 14px; align-items: center;
  font-weight: 500;
}
.modal-head .meta .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--purple); box-shadow: 0 0 0 3px var(--purple-tint);
}
.modal-head h2 {
  font-family: var(--sans); font-size: 32px; font-weight: 700;
  letter-spacing: -0.025em; margin: 0 0 8px; line-height: 1.05;
}
.modal-head .tagline {
  font-family: var(--serif); font-style: italic;
  font-size: 17px; color: var(--purple); margin: 0;
  line-height: 1.4;
}
.modal-close {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-2);
  transition: all .2s;
}
.modal-close:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
  transform: rotate(90deg);
}

.modal-body {
  position: relative; z-index: 1;
  padding: 24px 36px 36px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb {
  background: var(--line); border-radius: 999px;
}
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }

/* Plain document layout */
.doc-section {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line-soft);
}
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-section h3 {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--purple); letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.doc-section h3::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple); display: inline-block;
  box-shadow: 0 0 0 4px var(--purple-tint);
}
.doc-section p {
  font-family: var(--sans); font-size: 15px;
  line-height: 1.6; color: var(--ink-2);
  margin: 0 0 10px;
}
.doc-section p:last-child { margin-bottom: 0; }
.doc-section .bullet {
  padding-left: 18px; position: relative; margin: 6px 0;
}
.doc-section .bullet::before {
  content: "—"; position: absolute; left: 0; color: var(--purple);
  font-weight: 600;
}

/* FAQ accordion */
.faq-section { margin-bottom: 30px; }
.faq-section .faq-heading {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--purple); letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.faq-item {
  border-bottom: 1px solid var(--line-soft);
  padding: 4px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%; text-align: left;
  background: none; border: 0; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; cursor: pointer;
  font-family: var(--sans); font-size: 15.5px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.005em;
  line-height: 1.4;
  transition: color .2s;
}
.faq-q:hover { color: var(--purple); }
.faq-q .caret {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--purple-tint); color: var(--purple);
  display: grid; place-items: center;
  font-size: 14px; line-height: 1;
  transition: transform .25s, background .25s;
  margin-top: 1px;
}
.faq-item.open .faq-q .caret { transform: rotate(45deg); background: var(--purple); color: white; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease, padding .35s ease;
  opacity: 0;
  font-family: var(--sans); font-size: 14.5px;
  color: var(--ink-2); line-height: 1.6;
  padding: 0;
}
.faq-item.open .faq-a {
  max-height: 400px; opacity: 1;
  padding: 0 0 16px;
}

@media (max-width: 600px) {
  .modal { border-radius: 22px; }
  .modal-head { padding: 24px 22px 18px; }
  .modal-head h2 { font-size: 26px; }
  .modal-body { padding: 18px 22px 28px; }
}

/* Footer cluster — make doc-link items feel like a row */
.foot-col a.with-arrow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
}
.foot-col a.with-arrow .ico {
  opacity: 0; transform: translateX(-4px);
  transition: all .2s;
  color: var(--purple);
}
.foot-col a.with-arrow:hover .ico {
  opacity: 1; transform: translateX(0);
}

/* ───── Masks gallery ───── */
.masks-section {
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) { .masks-section { padding: 80px 0; } }
.masks-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 20%, var(--purple-tint), transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 80%, var(--mint-tint), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.masks-stage {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}
@media (max-width: 960px) {
  .masks-stage { grid-template-columns: 1fr; gap: 40px; }
}

.mask-featured {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  margin: 0 auto;
  display: grid; place-items: center;
}
.mask-featured::before {
  content: "";
  position: absolute; inset: -10%;
  background: radial-gradient(circle, var(--purple-soft) 0%, transparent 55%);
  filter: blur(40px);
  z-index: 0;
  animation: breathe 6s ease-in-out infinite;
}
.mask-featured .portrait {
  position: relative; z-index: 2;
  width: 100%; aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  overflow: visible;
}
.mask-featured .portrait img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 40px oklch(0.55 0.18 295 / 0.18));
  animation: maskBob 8s ease-in-out infinite;
  transition: opacity .6s ease, transform .6s ease;
}
.mask-featured .portrait img.swap-out {
  opacity: 0; transform: scale(0.96);
}
@keyframes maskBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.mask-featured .badge {
  position: absolute;
  top: 8%; right: 4%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  z-index: 3;
}
.mask-featured .badge b {
  color: var(--purple); font-weight: 600;
}

.mask-info {
  padding: 0;
}
.mask-info .tag {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 14px; display: inline-block;
}
.mask-info h3 {
  font-family: var(--sans);
  font-size: clamp(36px, 4.8vw, 56px);
  line-height: 1.0; letter-spacing: -0.03em;
  font-weight: 700; margin: 0 0 18px;
  color: var(--ink);
  transition: opacity .3s ease;
}
.mask-info h3 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  background: linear-gradient(120deg, var(--purple), var(--purple-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mask-info .sig {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1.3; color: var(--purple);
  margin: 0 0 16px;
  transition: opacity .3s ease;
}
.mask-info .desc {
  font-size: 16.5px; line-height: 1.55; color: var(--ink-2);
  max-width: 460px; margin: 0 0 28px;
  transition: opacity .3s ease;
}
.mask-info.swap h3, .mask-info.swap .sig, .mask-info.swap .desc {
  opacity: 0;
}

.mask-chips {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.mask-chip-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--line-soft);
  overflow: hidden;
  cursor: pointer;
  transition: all .3s ease;
  padding: 0;
  position: relative;
  flex-shrink: 0;
}
.mask-chip-btn img {
  width: 110%; height: 110%; object-fit: cover;
  margin: -5%;
  opacity: 0.85;
  filter: saturate(0.85);
  transition: all .3s ease;
}
.mask-chip-btn:hover {
  border-color: var(--purple-soft);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px oklch(0.55 0.18 295 / 0.25);
}
.mask-chip-btn:hover img {
  opacity: 1; filter: none;
}
.mask-chip-btn.active {
  border-color: var(--purple);
  box-shadow:
    0 0 0 4px var(--purple-tint),
    0 8px 20px -4px oklch(0.55 0.18 295 / 0.4);
  transform: translateY(-3px) scale(1.05);
}
.mask-chip-btn.active img {
  opacity: 1; filter: none;
}
.mask-chip-btn .label {
  position: absolute;
  bottom: -22px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.005em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s, bottom .25s;
  pointer-events: none;
}
.mask-chip-btn:hover .label,
.mask-chip-btn.active .label {
  opacity: 1; bottom: -18px;
}
.mask-chip-btn.active .label {
  color: var(--purple); font-weight: 600;
}

/* ───── Trees journey ───── */
.trees-section {
  padding: 130px 0 150px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, var(--mint-tint), transparent 70%);
  position: relative;
}
@media (max-width: 760px) { .trees-section { padding: 80px 0 90px; } }
.trees-stage {
  margin-top: 50px;
  position: relative;
}

.tree-featured {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}
@media (max-width: 960px) {
  .tree-featured { grid-template-columns: 1fr; gap: 30px; }
}

.tree-image {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
  display: grid; place-items: center;
}
.tree-image::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 80%, oklch(0.92 0.04 165) 0%, transparent 60%);
  filter: blur(30px);
  z-index: 0;
}
.tree-image img {
  position: relative; z-index: 2;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px oklch(0.55 0.18 295 / 0.12));
  transition: opacity .6s ease, transform .6s ease;
}
.tree-image img.swap-out {
  opacity: 0; transform: scale(0.94);
}

.tree-info .tag {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--mint); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 14px; display: inline-block;
  font-weight: 500;
}
.tree-info .level-row {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.tree-info .level-num {
  font-family: var(--serif); font-style: italic;
  font-size: 96px; line-height: 1.15; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--mint) 0%, var(--purple) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 400;
  padding: 0.08em 0.05em 0;
  margin: -0.08em -0.05em 0;
  display: inline-block;
  overflow: visible;
}
.tree-info h3 {
  font-family: var(--sans);
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1; letter-spacing: -0.03em;
  font-weight: 700; margin: 0;
  color: var(--ink);
  transition: opacity .3s ease;
}
.tree-info .desc {
  font-size: 17px; line-height: 1.55; color: var(--ink-2);
  max-width: 480px; margin: 0;
  transition: opacity .3s ease;
}
.tree-info.swap h3, .tree-info.swap .desc, .tree-info.swap .level-num {
  opacity: 0;
}

/* Tree path — 7 nodes on a horizontal track */
.tree-path {
  position: relative;
  padding: 50px 24px 30px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tree-path::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 80% at 50% 50%, var(--mint-tint), transparent);
  pointer-events: none;
  opacity: 0.5;
}

.tree-path .track {
  position: relative;
  display: flex; justify-content: space-between;
  align-items: flex-end;
  gap: 0;
  z-index: 1;
}
/* Dashed connector between nodes */
.tree-path .track::before {
  content: "";
  position: absolute;
  left: 40px; right: 40px; bottom: 38px;
  height: 2px;
  background-image: linear-gradient(90deg,
    var(--purple) 0,
    var(--purple) 8px,
    transparent 8px,
    transparent 14px);
  background-size: 14px 100%;
  z-index: 0;
  opacity: 0.5;
}

.tree-node {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none; border: 0;
  cursor: pointer;
  padding: 0;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.tree-node .thumb {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
  transition: all .3s ease;
  position: relative;
  padding: 6px;
}
.tree-node .thumb img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  opacity: 0.7;
  filter: saturate(0.7);
  transition: all .3s ease;
}
.tree-node:hover .thumb {
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px -6px oklch(0.66 0.1 165 / 0.3);
}
.tree-node:hover .thumb img {
  opacity: 1; filter: none;
}
.tree-node.active .thumb {
  border-color: var(--purple);
  background: var(--bg-card);
  transform: translateY(-6px) scale(1.1);
  box-shadow:
    0 0 0 4px var(--purple-tint),
    0 12px 24px -6px oklch(0.55 0.18 295 / 0.35);
}
.tree-node.active .thumb img { opacity: 1; filter: none; }

.tree-node .num {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.12em;
}
.tree-node .name {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--ink-3); letter-spacing: -0.01em;
  transition: color .3s;
}
.tree-node:hover .name { color: var(--ink-2); }
.tree-node.active .name { color: var(--purple); }
.tree-node.active .num  { color: var(--purple); }
.tree-node.locked .thumb img { opacity: 0.35; filter: grayscale(0.6); }

@media (max-width: 760px) {
  .tree-path { padding: 30px 12px 20px; }
  .tree-node .thumb { width: 44px; height: 44px; padding: 4px; }
  .tree-node .name { font-size: 11px; }
  .tree-path .track::before { left: 28px; right: 28px; }
}
