/* LilCoach v2 — standalone site (lilcoach.app).
   Built from the app's own design system: Sora / DM Sans, coral scheme, app surfaces and radii,
   nature illustrations from the app, and the app's day tiles (rounded squares with a corner badge).
   v2 states on a tile: done = filled + check, minimum = half-filled + check, missed = dashed,
   comeback = return badge. */

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora.woff") format("woff");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dmsans.woff") format("woff");
  font-weight: 100 1000;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: light;
  /* App light surfaces + default coral scheme */
  --bg: #f2f4f8;
  --bg-alt: #e9ecf2;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --ink: #111827;
  --muted: #5f6977;
  --line: #e3e7ed;
  --line-strong: #c3cad5;
  --coral: #ff6b5b;
  --coral-line: #ff8a7e;
  --coral-soft: #ffe9e5;
  --coral-half: #ffc3bb;
  --mint: #2ebe6b;
  --btn: #c63b2d;
  --btn-ink: #ffffff;
  --link: #b0362a;
  --shadow-card: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 32px -12px rgba(17, 24, 39, 0.14);
  --shadow-phone: 0 30px 60px -24px rgba(17, 24, 39, 0.45);
  --header: rgba(242, 244, 248, 0.86);
  /* week-strip tiles, as in the app */
  --tile-bg: #eef1f5;
  --tile-line: #d3d9e2;
  --tile-num: #5f6878;
  --tile-done-bg: #fff1ee;
  --tile-done-line: #ffc9c1;
  --tile-today-bg: #ffe3dd;
  --tile-progress: #ff7a6a;
  --glass: rgba(255, 255, 255, 0.72);

  --font-display: "Sora", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: 24px;
  --r-control: 12px;
  --r-button: 14px;
  --r-card: 18px;
  --r-hero: 28px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05070b;
  --bg-alt: #0b1017;
  --surface: #101720;
  --surface-soft: #151e2a;
  --ink: #f4f6fa;
  --muted: #aab4c3;
  --line: #222c3a;
  --line-strong: #3a4659;
  --coral: #f08c80;
  --coral-line: #e98c80;
  --coral-soft: #2a1a1a;
  --coral-half: #8a4a44;
  --mint: #72bbaf;
  --btn: #f08c80;
  --btn-ink: #1b0e0b;
  --link: #f4a196;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  --shadow-phone: 0 30px 70px -24px rgba(0, 0, 0, 0.9);
  --header: rgba(5, 7, 11, 0.86);
  --tile-bg: #232932;
  --tile-line: #444b56;
  --tile-num: #9199a5;
  --tile-done-bg: #2a2426;
  --tile-done-line: #5c3f3d;
  --tile-today-bg: #4a2f2e;
  --tile-progress: #e8a198;
  --glass: rgba(16, 23, 32, 0.74);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.lede { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; max-width: 34em; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 14px; border-radius: var(--r-control); background: var(--btn); color: var(--btn-ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- header */

.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { border-radius: 10px; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--ink); }

.top-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-button); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-card);
}
.icon-btn svg { width: 19px; height: 19px; }
.i-moon, html[data-theme="dark"] .i-sun { display: none; }
html[data-theme="dark"] .i-moon { display: block; }
.menu-btn { display: none; }
.i-close, .menu-btn[aria-expanded="true"] .i-menu { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-button);
  background: var(--btn); color: var(--btn-ink);
  font-weight: 700; text-decoration: none; border: 0;
}
.btn:hover { filter: brightness(1.06); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }

.text-link { color: var(--link); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- day tiles (app vocabulary) */

.tile {
  --s: 52px;
  position: relative; flex: none;
  display: inline-grid; place-items: center;
  width: var(--s); height: var(--s);
  border-radius: calc(var(--s) * 0.21);
  background: var(--tile-bg);
  box-shadow: inset 0 0 0 max(1.5px, calc(var(--s) * 0.04)) var(--tile-line);
  font: 600 calc(var(--s) * 0.36)/1 var(--font-display);
  color: var(--tile-num);
}
.tile-num { position: relative; }
.tile-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tile-ring rect { fill: none; stroke: var(--tile-progress); stroke-width: 7; stroke-linecap: round; }
.tile-done, .tile-minimum { background: var(--tile-done-bg); color: var(--ink); box-shadow: inset 0 0 0 max(1.5px, calc(var(--s) * 0.04)) var(--tile-done-line); }
.tile-today { background: var(--tile-today-bg); color: var(--ink); box-shadow: inset 0 0 0 max(1.5px, calc(var(--s) * 0.04)) var(--tile-done-line); }
.tile-missed, .tile-quiet { color: var(--tile-num); }

.badge {
  position: absolute; top: calc(var(--s) * -0.2); right: calc(var(--s) * -0.2);
  display: grid; place-items: center;
  width: calc(var(--s) * 0.42); height: calc(var(--s) * 0.42); min-width: 13px; min-height: 13px;
  border-radius: 50%; color: #fff;
  box-shadow: 0 0 0 2px var(--surface);
}
.badge svg { width: 68%; height: 68%; stroke-width: 3.2; }
.badge-check { background: var(--mint); }
.badge-return { background: var(--coral); }
html[data-theme="dark"] .badge { color: #0b0f15; }
html[data-theme="dark"] .badge-check { background: #4cb88c; }

.tile-sm { --s: 30px; }
.tile-xs { --s: 18px; }
.tile-xs .badge { top: -5px; right: -5px; min-width: 11px; min-height: 11px; width: 11px; height: 11px; box-shadow: 0 0 0 1.5px var(--bg); }
.tile-xs .badge svg { stroke-width: 4; }

/* ---------------------------------------------------------------- scenes (app illustrations) */

.scene { position: absolute; overflow: hidden; border-radius: var(--r-hero); }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.scene-dark, html[data-theme="dark"] .scene-light { display: none; }
html[data-theme="dark"] .scene-dark { display: block; }

/* ---------------------------------------------------------------- hero: one main banner image */

.banner { margin: 0; }
.banner h1 { margin: 0; max-width: none; font-size: inherit; line-height: 0; }
.banner img {
  width: 100%; height: auto; border-radius: var(--r-hero);
  box-shadow: var(--shadow-card); background: var(--surface-soft);
}
.hero-row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: clamp(28px, 4vw, 48px);
}
.hero-row .week { margin: 0; }
.hero-row .week-card .tile { --s: clamp(34px, 3.6vw, 52px); }
.hero-row .week figcaption { font-size: clamp(16px, 1.4vw, 18px); }
.hero-copy h1 { font-size: clamp(32px, 3.9vw, 48px); line-height: 1.06; letter-spacing: -0.035em; max-width: 12em; margin-bottom: 16px; }
.hero-copy .lede { margin-top: 0; }

.hero { padding: clamp(16px, 3vw, 32px) 0 clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }

.steps { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 24px; color: var(--muted); font-weight: 600; font-size: 15px; }
.steps li { display: inline-flex; align-items: center; gap: 10px; }

h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 12em;
}
.hero .lede { margin-top: 0; }
.hero .stores { margin-top: 26px; }
.hero .text-link { display: inline-block; margin-top: 20px; }

/* stores */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stores.is-center { justify-content: center; }
.store-play img { height: 54px; width: auto; }
.store-play { border-radius: 10px; }
.store-apple {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 18px 0 14px; border-radius: 10px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #a6a6a6;
}
.store-apple .apple-mark { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.store-apple span { display: grid; line-height: 1.1; }
.store-apple small { font-size: 11px; letter-spacing: 0.02em; }
.store-apple strong { font-size: 19px; font-weight: 600; }
.store-apple.is-soon { opacity: 0.55; }
html[data-theme="dark"] .store-apple { border-color: #3a3a3a; }

/* phone + placeholder */
.shot { position: relative; margin: 0; display: flex; justify-content: center; }
.shot.has-scene { padding: clamp(20px, 2.6vw, 32px) 0; }
.shot.has-scene .scene { inset: 0; }
.phone {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 1290 / 2796;
  border-radius: 44px;
  background: var(--surface);
  box-shadow: var(--shadow-phone);
  overflow: hidden;
}
.phone .shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-dark, html[data-theme="dark"] .shot-light { display: none; }
html[data-theme="dark"] .shot-dark { display: block; }

.phone.is-placeholder {
  background: var(--glass);
  border: 6px solid var(--glass);
  outline: 1.5px dashed var(--line-strong);
  outline-offset: -14px;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 28px; text-align: center; }
.ph-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-control);
  background: var(--coral-soft); border: 2px solid var(--coral-line);
  font: 700 17px/1 var(--font-display); color: var(--ink);
}
.ph-cap { font: 700 17px/1.3 var(--font-display); color: var(--ink); max-width: 12em; }
.ph-meta, .ph-pending { font-size: 13px; color: var(--muted); }

/* week card: the app's week strip, with v2 states */
.week { margin: clamp(40px, 6vw, 72px) 0 0; }
.week-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-hero);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 2.6vw, 30px) clamp(12px, 3vw, 40px) clamp(18px, 2.6vw, 28px);
}
.week-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { display: grid; justify-items: center; row-gap: 12px; }
.week-card .tile { --s: clamp(38px, 6vw, 72px); }
.day-name { font-size: clamp(13px, 1.3vw, 16px); font-weight: 500; color: var(--muted); }
.week figcaption {
  margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px;
  font: 700 clamp(17px, 1.7vw, 21px)/1.4 var(--font-display); letter-spacing: -0.015em;
}
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; font: 500 14px/1 var(--font-body); color: var(--muted); align-items: center; letter-spacing: 0; }
.legend li { display: inline-flex; align-items: center; gap: 9px; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero .week-card .tile { opacity: 0; transform: scale(0.7); }
  .js .hero.is-in .week-card .tile {
    animation: pop 520ms cubic-bezier(.2, .9, .3, 1.25) forwards;
    animation-delay: calc(var(--i) * 110ms + 200ms);
  }
  .js .hero .week-card .badge-return { opacity: 0; transform: scale(0.4); }
  .js .hero.is-in .week-card .badge-return { animation: pop 480ms cubic-bezier(.2, .9, .3, 1.4) 1150ms forwards; }
}
@keyframes pop { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- sections */

.feature, .band { padding: clamp(48px, 5.5vw, 80px) 0; }
/* neighbouring plain sections share one gap instead of stacking two */
.feature + .feature { padding-top: 0; }
.band { background: var(--bg-alt); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 32px; }

.split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split.is-flipped { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.split.is-flipped .split-copy { order: 2; }
.split-copy { display: grid; gap: 20px; align-content: start; }

.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.ticks svg {
  width: 22px; height: 22px; margin-top: 2px; padding: 4px; border-radius: 7px;
  background: var(--coral-soft); color: var(--coral); stroke-width: 3;
}

/* why */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(36px, 6vw, 88px); }
.why-grid h2 { grid-column: 1 / -1; max-width: 16em; }
.why-lines { display: grid; align-content: start; }
.why-lines li {
  padding: 16px 0; border-top: 1px solid var(--line-strong);
  font: 600 clamp(17px, 1.6vw, 20px)/1.4 var(--font-display); letter-spacing: -0.01em;
}
.why-lines li:last-child { border-bottom: 1px solid var(--line-strong); }
.why-turn { display: grid; gap: 20px; align-content: center; justify-items: start; }
.why-turn p { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; max-width: 22em; }
.faces { display: flex; align-items: center; gap: 14px; }
.faces img { width: 104px; height: auto; }
.faces-arrow { color: var(--coral); }
.faces-arrow svg { width: 30px; height: 30px; stroke-width: 2.4; transform: scaleX(-1); }

/* comeback card choices: like the app's card buttons */
.choices { display: grid; gap: 10px; }
.choices li {
  display: grid; grid-template-columns: 10em 1fr; gap: 14px; align-items: center;
  padding: 14px 18px; border-radius: var(--r-button); background: var(--surface); border: 1px solid var(--line);
}
.choices li:first-child { background: var(--coral-soft); border-color: var(--coral-line); }
.choices strong { font: 700 16px/1.3 var(--font-display); }
.choices span { color: var(--muted); }
.hard-day { padding: 20px 22px; border-radius: var(--r-card); background: var(--surface-soft); border: 1px solid var(--line); display: grid; gap: 6px; }
.hard-day p { color: var(--muted); }
.small-h { font-size: 16px; margin-top: 4px; }
.dots { display: grid; gap: 8px; color: var(--muted); }
.dots li { display: grid; grid-template-columns: 20px 1fr; align-items: baseline; }
.dots li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; border: 2px solid var(--coral-line); background: var(--coral-soft); }

/* interactive Coach demo (app cards with working buttons) */
.demo { display: grid; gap: 14px; }
.demo-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px;
  border-radius: var(--r-button); background: var(--surface-soft); border: 1px solid var(--line);
}
.demo-tab {
  min-height: 40px; padding: 0 8px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--muted); font: 600 14px/1.2 var(--font-body);
}
.demo-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.demo-tab:hover { color: var(--ink); }

.coach-card {
  display: grid; gap: 14px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card);
}
.cc-label {
  justify-self: start; padding: 5px 10px; border-radius: 999px;
  background: var(--coral-soft); color: var(--link); font: 700 13px/1 var(--font-body);
}
.cc-habit { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.cc-emoji {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--surface-soft); border: 1px solid var(--line); font-size: 22px; line-height: 1;
}
.cc-habit h3 { font-size: 18px; line-height: 1.3; }
.cc-habit p { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 4px; }
.cc-actions { display: grid; gap: 8px; }
.cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-row-3 { grid-template-columns: repeat(3, 1fr); }
.cc-btn {
  min-height: 48px; padding: 0 12px; border-radius: var(--r-button); cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink);
  font: 700 15px/1.2 var(--font-body);
  transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease;
}
.cc-btn.is-primary { min-height: 52px; background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.cc-btn.is-soft { background: var(--coral-soft); border-color: var(--coral-line); }
.cc-btn:hover { border-color: var(--coral-line); }
.cc-btn:active, .cc-choice:active { transform: scale(0.97); }
.cc-btn[aria-pressed="true"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 35%, transparent); }
.cc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-choice {
  display: grid; gap: 2px; justify-items: start; min-height: 64px; padding: 10px 14px; cursor: pointer; text-align: left;
  border-radius: var(--r-button); border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink);
  font: 700 15px/1.25 var(--font-body);
}
.cc-choice span + span { font-weight: 500; color: var(--muted); font-size: 14px; }
.cc-choice.is-min { background: var(--coral-soft); border: 2px solid var(--coral-line); }
.cc-choice[aria-pressed="true"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 35%, transparent); }
.cc-link { color: var(--link); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.cc-pro { padding: 2px 8px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.cc-result {
  display: grid; gap: 12px; padding: 14px 16px; border-radius: var(--r-button);
  background: var(--surface-soft); border: 1px dashed var(--line-strong);
  animation: cc-in 260ms ease;
}
.cc-result p { font-weight: 600; }
@keyframes cc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc-result, .demo-sheet { animation: none; } }
.cc-week { display: flex; gap: 14px; }
.cc-week li { display: grid; justify-items: center; gap: 6px; }
.cc-week-7 { justify-content: space-between; gap: 4px; }
.cc-day { font-size: 12px; color: var(--muted); font-weight: 500; }
.cc-result .cc-week li:last-child .tile { animation: pop 420ms cubic-bezier(.2, .9, .3, 1.3); }

.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 15px/1 var(--font-body);
}
.demo-chip:hover, .demo-chip[aria-expanded="true"] { border-color: var(--coral-line); background: var(--coral-soft); }
.demo-sheet {
  display: grid; gap: 12px; padding: 22px 20px 20px; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card);
  animation: cc-in 260ms ease;
}
.demo-sheet::before { content: ""; justify-self: center; width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: -10px 0 2px; }
.demo-sheet[hidden], .demo-panel[hidden], .cc-result[hidden], .hs-after[hidden] { display: none; }
.demo-sheet h3 { font-size: 19px; }
.hs-body { color: var(--muted); font-size: 15px; }
.hs-list { display: grid; gap: 8px; }
/* habit rows, as on the app's Today list: accent rail, emoji tile, title, sub, progress bar, value, + */
.hrow {
  --acc: var(--coral);
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 36px; gap: 12px; align-items: center;
  padding: 10px 10px 10px 14px; border-radius: 16px; overflow: hidden;
  background: color-mix(in srgb, var(--acc) 7%, var(--surface-soft)); border: 1px solid var(--line);
}
.hrow::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--acc); }
.hrow-emoji {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 22px;
  background: var(--surface); border: 1px solid var(--line);
}
.hrow-main { display: grid; gap: 3px; min-width: 0; }
.hrow-main strong { font: 700 16px/1.25 var(--font-display); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow-sub { color: var(--muted); font-size: 13px; }
.hrow-bar { height: 6px; margin-top: 4px; border-radius: 6px; background: color-mix(in srgb, var(--acc) 18%, transparent); overflow: hidden; }
.hrow-bar i { display: block; height: 100%; width: var(--full); border-radius: 6px; background: var(--acc); transition: width 420ms cubic-bezier(.2, .8, .2, 1); }
.hrow-val { color: var(--ink); font: 600 13px/1 var(--font-body); white-space: nowrap; }
.hrow-plus, .hrow-check {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.hrow-plus svg, .hrow-check svg { width: 18px; height: 18px; stroke-width: 2.4; }
.hrow-check { display: none; background: var(--mint); border-color: var(--mint); color: #fff; }
.hrow .v-min { display: none; }
.demo-sheet.is-done .hrow .v-full { display: none; }
.demo-sheet.is-done .hrow .v-min { display: inline; }
.demo-sheet.is-done .hrow-bar i { width: var(--min); }
.demo-sheet.is-done .hrow.is-min-done .hrow-plus { display: none; }
.demo-sheet.is-done .hrow.is-min-done .hrow-check { display: grid; animation: pop 420ms cubic-bezier(.2, .9, .3, 1.3); }
.demo-sheet.is-done .hrow.is-min-done strong { color: var(--muted); }
@media (max-width: 560px) {
  .hrow { grid-template-columns: 40px minmax(0, 1fr) auto 32px; gap: 10px; }
  .hrow-emoji { width: 40px; height: 40px; }
  .hrow-plus, .hrow-check { width: 32px; height: 32px; border-radius: 10px; }
}
.demo-sheet.is-done .cc-row { display: none; }
@media (prefers-reduced-motion: reduce) { .hrow-bar i { transition: none; } }
.hs-after { font-weight: 700; color: var(--ink); }
.demo-note { color: var(--muted); font-size: 13px; }

/* nudge */
.nudge-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.nudge-grid > div { display: grid; gap: 20px; }
.timeline {
  display: grid; gap: 0; padding: 10px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-hero); box-shadow: var(--shadow-card);
}
.timeline li { display: grid; grid-template-columns: 30px 1fr; gap: 18px; align-items: start; padding: 18px 0; }
.timeline li + li { border-top: 1px solid var(--line); }
.timeline .tile { margin-top: 2px; }
.timeline div { display: grid; gap: 2px; }
.timeline strong { font: 700 17px/1.3 var(--font-display); }
.timeline span { color: var(--muted); }

/* plus / pro */
.deep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.deep-col {
  display: grid; gap: 28px; grid-template-rows: auto 1fr;
  padding: clamp(22px, 3vw, 36px); border-radius: var(--r-hero);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.deep-tier { display: grid; gap: 14px; }
.deep-tier h3 { font-size: 26px; font-weight: 800; }
.deep-tier ul { display: grid; gap: 10px; color: var(--muted); }
.deep-tier li { padding-left: 20px; position: relative; }
.deep-tier li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 3px; background: var(--coral); }
.deep-col .shot { align-self: end; }
.deep-col .phone { width: min(250px, 64vw); }
.confirm {
  margin-top: 36px; display: flex; gap: 14px; align-items: center;
  font: 700 clamp(18px, 1.9vw, 22px)/1.3 var(--font-display); letter-spacing: -0.015em;
}
.confirm-link { margin-top: 10px; padding-left: 46px; font-size: 15px; }
.confirm svg { width: 32px; height: 32px; flex: none; padding: 6px; border-radius: 10px; background: var(--coral-soft); color: var(--coral); stroke-width: 3; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier {
  display: grid; align-content: start; grid-template-rows: auto auto auto auto 1fr auto; gap: 10px;
  padding: 28px; border-radius: var(--r-hero); color: inherit; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: border-color 160ms ease;
}
.tier:hover { border-color: var(--coral-line); }
.tier:focus-visible { outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .tier, .tier:hover { transition: none; transform: none; } }
.tier.is-free { border: 2px solid var(--coral-line); }
.tier h3 { font-size: 24px; font-weight: 800; }
.tier-tag { color: var(--muted); }
.tier-price { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.tier-price strong { font: 800 40px/1 var(--font-display); letter-spacing: -0.03em; }
.tier-per { color: var(--muted); font-weight: 600; }
.tier-note { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.tier ul { display: grid; gap: 10px; align-content: start; }
.tier li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 16px; }
.tier li svg { width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 6px; background: var(--coral-soft); color: var(--coral); stroke-width: 3; }
.tier-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px;
  min-height: 48px; border-radius: var(--r-button); font-weight: 700;
  background: var(--surface-soft); border: 1px solid var(--line); color: var(--ink);
}
.tier.is-free .tier-cta, .tier:hover .tier-cta { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.fine { margin-top: 20px; color: var(--muted); font-size: 15px; }

/* full feature comparison */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare { margin-top: 18px; overflow: hidden; max-width: 100%; }
.compare-scroll { overflow-x: auto; padding: 0 8px 12px; -webkit-overflow-scrolling: touch; }
.compare table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { font: 800 16px/1.2 var(--font-display); position: sticky; top: 0; background: var(--surface); }
.compare th[scope="row"], .compare thead th:first-child { text-align: left; font: 500 15px/1.4 var(--font-body); color: var(--ink); width: 52%; }
.compare thead th:first-child { color: var(--muted); }
.compare tr.group th {
  text-align: left; padding-top: 22px; border-bottom: 0;
  font: 700 13px/1.2 var(--font-body); color: var(--muted); letter-spacing: 0.02em;
}
.compare td { color: var(--ink); font-weight: 600; white-space: nowrap; }
.compare .yes { display: inline-grid; place-items: center; }
.compare .yes svg { width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--coral-soft); color: var(--coral); stroke-width: 3; }
.compare .no { color: var(--muted); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* journal */
.journal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; }
.articles a {
  display: grid; gap: 8px; align-content: start; padding: 20px 0 0; height: 100%; text-decoration: none;
  border-top: 2px solid var(--ink);
}
.articles strong { font: 700 19px/1.3 var(--font-display); letter-spacing: -0.015em; }
.articles span { color: var(--muted); font-size: 16px; }
.articles a:hover strong { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* faq */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr); gap: 40px clamp(36px, 6vw, 88px); align-items: start; }
.faq-list { display: grid; border-top: 1px solid var(--line-strong); }
details { border-bottom: 1px solid var(--line-strong); }
.compare { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.compare summary { padding: 18px 22px; }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 18px 0; font: 700 17px/1.35 var(--font-display); letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
.faq-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--coral-soft); }
.faq-icon svg { width: 18px; height: 18px; color: var(--coral); stroke-width: 2.6; transition: transform 180ms ease; }
details[open] .faq-icon svg { transform: rotate(45deg); }
details p { padding: 0 48px 20px 0; color: var(--muted); max-width: 40em; }

/* final */
.final { position: relative; padding: clamp(56px, 7vw, 96px) 0; overflow: hidden; text-align: center; }
.final > .scene { inset: 0; border-radius: 0; }
.final-inner {
  position: relative; display: grid; justify-items: center; gap: 18px;
  width: min(720px, calc(100% - 2 * var(--gutter)));
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
  border-radius: var(--r-hero); background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--shadow-card);
}
.final .lede { margin-inline: auto; color: var(--ink); opacity: 0.8; }
.final .stores { margin-top: 8px; }
.week-mini { display: flex; gap: 12px; margin-bottom: 6px; }
.week-mini .day { row-gap: 0; }

/* 404 */
.notfound { padding: clamp(80px, 14vw, 180px) 0; }
.notfound .wrap { display: grid; gap: 22px; justify-items: start; }
.notfound h1 { font-size: clamp(36px, 5vw, 60px); }

/* footer */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.foot-row { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.foot-brand { display: grid; gap: 10px; }
.foot-brand p, .foot-by { color: var(--muted); font-size: 15px; }
.foot-brand img { border-radius: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; }
.foot-links a { display: inline-block; padding: 10px 2px; text-decoration: none; color: var(--muted); }
.foot-links a:hover, .foot-by a:hover { color: var(--ink); }
.foot-by { grid-column: 1 / -1; display: flex; gap: 16px; }
.foot-by a { text-decoration: none; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .hero-grid, .hero-row, .split, .split.is-flipped, .nudge-grid, .why-grid, .faq-grid { grid-template-columns: 1fr; }
  .split.is-flipped .split-copy { order: 0; }
  .hero-shot { order: 2; }
  .tiers, .articles { grid-template-columns: 1fr; }
  .tiers { max-width: 560px; }
  .deep-grid { grid-template-columns: 1fr; }
  .phone { width: min(240px, 62vw); }
}

@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0; z-index: 40;
    display: none; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav a { padding: 14px 0; font-size: 19px; color: var(--ink); border-bottom: 1px solid var(--line); }
  body.nav-open .nav { display: flex; }
  .menu-btn { display: inline-grid; }
  .top-actions { margin-left: auto; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .top-actions .btn-small { display: none; }
  .store-play img, .store-apple { height: 48px; }
  .week-row { gap: 2px; }
  .week-card { padding-inline: 8px; }
  .week figcaption { display: grid; }
  .choices li { grid-template-columns: 1fr; gap: 2px; }
  .demo-tab { font-size: 13px; padding: 0 4px; }
  .cc-row-3 { grid-template-columns: 1fr; }
  .faces img { width: 84px; }
  .foot-row { grid-template-columns: 1fr; }
  .compare-scroll { padding: 0 4px 8px; }
  .compare table { min-width: 0; font-size: 13px; table-layout: fixed; }
  .compare th, .compare td { padding: 10px 4px; }
  .compare th[scope="row"] { font-size: 13px; width: 40%; padding-left: 10px; }
  .compare thead th:first-child { width: 40%; padding-left: 10px; font-size: 13px; }
  .compare thead th { font-size: 14px; }
  .compare td { white-space: normal; font-size: 12px; }
  .compare tr.group th { padding-left: 10px; }
}

/* sticky install bar on phones (Android), shown after the hero's store buttons scroll away */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 10px 10px 12px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 95%, transparent); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transform: translateY(0); transition: transform 220ms ease, opacity 220ms ease;
}
.sticky-cta[hidden] { display: none; }
.sticky-cta.is-off { transform: translateY(140%); opacity: 0; pointer-events: none; }
.sticky-cta img { border-radius: 10px; }
.sticky-copy { display: grid; line-height: 1.2; }
.sticky-copy strong { font: 800 16px/1.2 var(--font-display); }
.sticky-copy small { color: var(--muted); font-size: 13px; }
body.has-sticky .foot { padding-bottom: 110px; }
@media (min-width: 821px) { .sticky-cta { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
