/* A week with Healveda Care: scroll story demo.
   Outer page: healvedacare.com's palette (deep teal, cream, Lora + Poppins).
   App frames: the web app's Version C tokens (white cards on a grey-lavender page,
   ink teal actions, lavender labels, sky for outcomes). */

@font-face { font-family: 'Lora'; font-weight: 500; font-display: swap; src: url('assets/fonts/lora-500.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-weight: 600; font-display: swap; src: url('assets/fonts/lora-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('assets/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('assets/fonts/poppins-500.woff2') format('woff2'); }
/* The app's own typeface, shared with the hands-on app in app/ (OFL, see app/fonts/PlusJakartaSans-OFL.txt). */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 200 800; font-display: swap; src: url('app/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('assets/fonts/poppins-600.woff2') format('woff2'); }
/* The app's body face, also shared with app/ (OFL, see app/fonts/Inter-OFL.txt). */
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url('app/fonts/inter-latin-wght-normal.woff2') format('woff2'); }

:root {
  /* site */
  --teal-deep: #1e3c42;
  --teal: #3f6c73;
  --cream: #f9dec5;
  --cream-soft: #fdf3ea;
  --site-ink: #252028;
  --site-muted: #4f5a5e;
  --site-line: rgba(30, 60, 66, .16);
  --site-bg: #fcfbfa;
  --paper-warm: #fdf8f2;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: 'Lora', Georgia, serif;
  --sans: 'Poppins', 'Segoe UI', system-ui, sans-serif;

  /* app (Version C) */
  --app-head: 'Plus Jakarta Sans', 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  --app-font: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  --ink-900: #1f2a30;
  --ink-800: #2c4a4a;
  --ink-700: #2f6f6b;
  --ink-500: #4d8f8a;
  --ink-200: #d2e3e1;
  --ink-100: #e4eeec;
  --ink-50: #f1f6f5;
  --lav-800: #563e98;
  --lav-700: #6f52b5;
  --lav-300: #d5c9ec;
  --lav-200: #e7e1f3;
  --lav-100: #efebf8;
  --lav-50: #f8f6fd;
  --sky-700: #2f5f7f;
  --sky-500: #5c8db0;
  --sky-100: #e2eef6;
  --sky-50: #f1f7fb;
  --sun-700: #6b5400;
  --sun-100: #fff3c4;
  --mauve-700: #8b4f76;
  --mauve-100: #f8ecf3;
  --good-700: #23694d;
  --good-100: #e1f1e9;
  --warn-700: #8a5a12;
  --warn-100: #fbefd9;
  --info-700: #2e5b8a;
  --info-100: #e2ecf7;
  --paper: #f6f4fb;
  --line: #e6e7ea;
  --line-strong: #d4d6db;
  --muted: #4b5a61;
  --subtle: #627077;
  --shadow-card: 0 1px 2px rgb(31 25 64 / .04), 0 10px 24px -10px rgb(31 25 64 / .1);

  --focus: #6f52b5;
  --gutter: clamp(16px, 4vw, 44px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-ink);
  font: 400 1.0625rem/1.7 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--teal-deep); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }
.shell { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- site header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(252, 251, 250, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--site-line); }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand img { display: block; width: 128px; height: auto; }
.header-right { display: flex; align-items: center; gap: 24px; font-size: .875rem; }
.header-link { text-decoration: none; font-weight: 500; color: var(--teal-deep); }
.header-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.demo-pill { display: inline-flex; align-items: center; color: var(--site-muted); font-weight: 500; font-size: .75rem; white-space: nowrap; }

/* ---------- hero ----------
   Left: what this page is. Right: Maya's week as a planner page, which is also the way to
   jump to a day. The planner is the hero's one bright thing; everything around it stays quiet. */
.hero { background: var(--teal-deep); color: #fff; padding: clamp(48px, 8vw, 96px) 0; }
.hero-grid { display: grid; gap: 40px; }
.hero h1 { font: 500 clamp(2.5rem, 5.4vw, 4rem)/1.06 var(--serif); letter-spacing: -.02em; margin: 0 0 20px; max-width: 12ch; }
.hero-lede { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.6; max-width: 32rem; color: rgba(255,255,255,.86); margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero-link { color: var(--cream); font-weight: 500; font-size: .9375rem; text-underline-offset: 4px; }
.hero-link:hover { color: #fff; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: center; gap: 64px; }
}

.planner { background: var(--paper-warm); color: var(--site-ink); border-radius: 16px; padding: 24px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .5); }
.planner-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 16px; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 500 1rem var(--serif); background: var(--cream); color: var(--teal-deep); }
.planner-title { font: 500 1.375rem/1.2 var(--serif); color: var(--teal-deep); margin: 0 0 4px; }
.planner-who { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--site-muted); }
.planner-days { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(30, 60, 66, .14); }
.planner-days li { border-bottom: 1px solid rgba(30, 60, 66, .08); }
.planner-days li > a, .planner-days .is-off { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; }
.planner-days a { min-height: 44px; padding: 10px 8px; margin: 0 -8px; border-radius: 8px; text-decoration: none; color: inherit; transition: background-color .15s var(--ease); }
.planner-days a:hover { background: rgba(30, 60, 66, .06); }
.planner-days .is-off { min-height: 44px; padding: 10px 0; }
.pd { font: 500 1rem var(--serif); color: var(--teal-deep); }
.pw { font-size: .9375rem; line-height: 1.4; }
.pt { font-size: .8125rem; color: var(--site-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.planner-days .is-off .pd, .planner-days .is-off .pw { color: var(--site-muted); opacity: .7; }
.planner-days .is-turn { border-bottom: 0; }
.planner-days .is-turn .pw { font-weight: 500; color: var(--teal-deep); }
.planner-days .is-turn .pt { color: var(--teal-deep); align-self: center; }
.planner-days .is-turn a:hover .pt { transform: translateX(2px); }
.planner-days .is-turn .pt { transition: transform .15s var(--ease); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 500 1rem var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-cream { background: var(--cream); color: var(--teal-deep); }
.btn-cream:hover { background: #fff; }
.btn-teal { background: var(--teal-deep); color: #fff; }
.btn-teal:hover { background: var(--teal); }
.btn-ghost { border-color: rgba(30, 60, 66, .3); color: var(--teal-deep); background: transparent; }
.btn-ghost:hover { background: rgba(30,60,66,.06); }

/* ---------- story ---------- */
.story { position: relative; padding: clamp(32px, 6vw, 72px) 0 40px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.step { padding: 32px 0 48px; }
.step + .step { border-top: 1px solid var(--site-line); }
.step-day { display: flex; align-items: baseline; gap: 8px; font: 500 .9375rem var(--sans); color: var(--teal); margin: 0 0 8px; }
.step-day span { color: var(--site-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.step-day span::before { content: '·'; margin-right: 8px; }
.step h2 { font: 500 clamp(1.75rem, 3.4vw, 2.25rem)/1.18 var(--serif); letter-spacing: -.01em; color: var(--teal-deep); margin: 0 0 16px; }
.step p { margin: 0 0 16px; color: var(--site-ink); max-width: 34rem; }
.removes { margin: 24px 0 0; padding: 16px 20px; background: var(--cream-soft); border-radius: 12px; font-size: .9375rem; line-height: 1.6; max-width: 34rem; }
.removes b { display: block; font-weight: 500; color: var(--teal); font-size: .875rem; margin-bottom: 4px; }
.look-for { margin: 16px 0 0; padding: 0; list-style: none; font-size: .9375rem; color: var(--site-muted); max-width: 34rem; }
.look-for li { padding-left: 20px; position: relative; margin: 4px 0; }
.look-for li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* phone frame (inline, per step: phones and narrow screens, and the no-JS fallback) */
.step-frame { margin: 26px auto 0; width: min(100%, 320px); }
.phone { position: relative; border-radius: 38px; background: #10181b; padding: 10px; box-shadow: 0 30px 60px -24px rgba(30,60,66,.45); }
.phone-inner { border-radius: 29px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px 4px; font: 600 .75rem var(--app-head); color: var(--ink-900); background: var(--paper); }
.phone-status .demo-tag { font-weight: 600; font-size: .6875rem; color: var(--lav-800); background: var(--lav-100); border-radius: 999px; padding: 1px 8px; }
.phone-body { flex: 1; }
.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: #fff; }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 1px 10px; font: 600 .625rem var(--app-head); min-width: 0; color: var(--subtle); }
.tabbar span::before { content: ''; width: 18px; height: 18px; border-radius: 6px; border: 2px solid currentColor; opacity: .7; }
.tabbar span[aria-current] { color: var(--ink-700); }
.tabbar span[aria-current]::before { background: var(--ink-100); opacity: 1; }

/* desktop browser frame (sticky, one for the whole story) */
.stage { display: none; }

@media (min-width: 960px) {
  .js .story-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 4vw, 64px); }
  .js .steps { grid-column: 1; grid-row: 1; }
  .js .step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding: 12vh 0; border-top: 0; }
  .js .step:first-child { min-height: 70vh; padding-top: 4vh; }
  .js .step-frame { display: none; }
  .js .stage { display: block; grid-column: 2; grid-row: 1; }
  .stage-sticky { position: sticky; top: max(76px, calc(50vh - 316px)); }
  .stage-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
  .stage-day { font: 500 .9375rem var(--sans); color: var(--teal-deep); font-variant-numeric: tabular-nums; }
  .js .step { opacity: .5; transition: opacity .4s var(--ease); }
  .js .step.is-current { opacity: 1; }
}
@media (min-width: 960px) and (prefers-reduced-motion: reduce) { .step { transition: none; } }

/* The week strip: Maya's seven days, today inked in, the days behind it filled. */
.week { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.week li { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font: 500 .75rem var(--sans); color: var(--site-muted); box-shadow: inset 0 0 0 1px var(--site-line); transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.week li.is-past { background: rgba(30, 60, 66, .08); color: var(--teal); box-shadow: none; }
.week li.is-on { background: var(--teal-deep); color: #fff; box-shadow: none; }
.week li.is-off { color: rgba(79, 90, 94, .5); box-shadow: inset 0 0 0 1px rgba(30, 60, 66, .06); }

.browser { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -30px rgba(30,60,66,.4); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #eef0f2; border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #cfd3d8; }
.browser-url { flex: 1; background: #fff; border-radius: 999px; padding: 4px 14px; font: 500 .8125rem var(--app-head); color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-url b { color: var(--ink-900); font-weight: 600; }
.browser-app { display: grid; grid-template-columns: 196px 1fr; height: min(640px, calc(100vh - 186px)); min-height: 440px; }
/* The story frame's sidebar is the hands-on app's sidebar (app/app.css), drawn smaller. */
.side { background: var(--lav-100); border-right: 1px solid var(--lav-200); padding: 16px 8px; font-family: var(--app-head); overflow: hidden; }
.side-brand { display: flex; align-items: center; gap: 8px; padding: 0 8px 12px; font: 700 .9375rem var(--app-head); color: var(--ink-900); }
.side-brand svg { height: 22px; width: auto; flex: none; }
.side-brand .care { font-weight: 500; opacity: .8; }
.side-group { font-size: .625rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lav-700); padding: 8px 8px 2px; }
.side-group.t-treat { color: var(--ink-700); }
.side-group.t-out { color: var(--sky-700); }
.side-item { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 8px; border-radius: 10px; font-size: .75rem; font-weight: 600; line-height: 1.25; color: var(--ink-900); transition: background-color .2s var(--ease); }
.side-item svg { width: 14px; height: 14px; flex: none; color: var(--ink-700); }
.side-item.is-on { background: #fff; box-shadow: var(--shadow-card); color: var(--ink-800); }
.stack { position: relative; background: var(--paper); overflow: hidden; }
.stack > .screen { position: absolute; inset: 0; overflow-y: auto; opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.stack > .screen.is-active { opacity: 1; pointer-events: auto; transform: none; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .stack > .screen, .stack > .screen.is-active { transition: none; transform: none; } }

/* ---------- app screens (shared by both frames) ---------- */
.screen { font: 400 .875rem/1.5 var(--app-font); color: var(--ink-900); padding: 16px 16px 24px; }
.stack > .screen { padding: 10px 22px 12px; line-height: 1.45; }
.stack > .screen h3 { font-size: 1.125rem; }
.stack > .screen h4 { font-size: .8125rem; margin-bottom: 4px; }
.stack > .screen .timeline li { padding-bottom: 7px; }
.stack > .screen .card { margin-bottom: 6px; padding: 8px 14px; }
.stack > .screen .sub { margin-bottom: 10px !important; }
.screen h3 { font: 700 1.25rem/1.25 var(--app-head); margin: 0 0 2px; letter-spacing: -.01em; }
.screen h4 { font: 700 .875rem/1.3 var(--app-head); color: var(--ink-900); margin: 0 0 6px; }
.screen p { margin: 0; }
.sub { color: var(--muted); font-size: .8125rem; margin: 0 0 12px !important; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card); padding: 12px 14px; margin: 0 0 10px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
/* Chips and badges as the app draws them: plain chips are white with a hairline, kinds are tinted. */
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font: 600 .75rem/1.5 var(--app-head); background: #fff; color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--line); }
.chip-lav { background: var(--lav-100); color: var(--lav-800); box-shadow: none; }
.chip-sun { background: var(--sun-100); color: var(--sun-700); box-shadow: none; }
.chip-sky { background: var(--sky-100); color: var(--sky-700); box-shadow: none; }
.chip-mauve { background: var(--mauve-100); color: var(--mauve-700); box-shadow: none; }
.chip-warn { background: var(--warn-100); color: var(--warn-700); box-shadow: none; }
.cardid { font: 600 .75rem/1.5 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; color: var(--ink-800); background: var(--ink-50); box-shadow: inset 0 0 0 1px var(--ink-200); padding: 1px 7px; border-radius: 6px; }
.src { font-size: .75rem; color: var(--subtle); margin-top: 6px !important; }
.src b { color: var(--muted); font-weight: 600; }
.mini-btn, .app-btn { font: 700 .8125rem var(--app-head); border-radius: 999px; padding: 7px 14px; cursor: pointer; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-800); min-height: 34px; }
.app-btn { background: var(--ink-800); color: #fff; border-color: var(--ink-800); }
.app-btn:hover { background: var(--ink-900); }
.mini-btn:hover { background: var(--ink-50); }
.link-btn { font: 700 .8125rem var(--app-head); background: none; border: 0; padding: 6px 2px; color: var(--ink-700); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.note { font-size: .75rem; color: var(--muted); background: var(--ink-50); border-radius: 12px; padding: 8px 10px; margin: 0 0 10px; }
.why { font-size: .75rem; color: var(--muted); margin: 4px 0 8px !important; }
.why b { color: var(--ink-900); }

/* home */
.greet { font-size: .8125rem; color: var(--subtle); margin-bottom: 2px !important; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky-500); flex: none; margin-top: 5px; }
.plan-quote { font-size: .9375rem; color: var(--ink-900); border-left: 3px solid var(--sun-700); padding-left: 10px; margin: 4px 0 4px !important; }
.essential .row { margin-top: 8px; }

/* health picture */
.timeline { list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; border-left: 2px solid var(--lav-200); }
.timeline li { position: relative; padding: 0 0 10px 10px; }
.timeline li::before { content: ''; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--lav-700); }
.timeline .yr { font-size: .75rem; font-weight: 600; color: var(--lav-800); font-variant-numeric: tabular-nums; }
.timeline .what { font-weight: 600; }
.timeline .own { color: var(--ink-800); }
.corr { font-size: .75rem; color: var(--warn-700); background: var(--warn-100); border-radius: 10px; padding: 6px 9px; margin-top: 6px !important; }
.share-card { border-color: var(--ink-200); background: var(--ink-50); }
.share-card[data-shared="false"] .when-shared, .share-card[data-shared="true"] .when-unshared { display: none; }

/* tracking */
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; margin: 4px 0 8px; }
.seg button { font: 700 .75rem var(--app-head); border: 0; background: transparent; color: var(--muted); padding: 6px 11px; border-radius: 999px; cursor: pointer; min-height: 30px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--sky-700); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 600 9px var(--app-font); fill: var(--subtle); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ref { stroke: var(--warn-700); stroke-dasharray: 3 3; stroke-width: 1; }
.chart .ref-label { fill: var(--warn-700); }
.chart .evt { stroke: var(--lav-700); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .evt-dot { fill: var(--lav-700); }
.chart .evt-num { fill: #fff; font-size: 8px; font-weight: 700; }
.chart .line { fill: none; stroke: var(--sky-700); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .pt { fill: #fff; stroke: var(--sky-700); stroke-width: 2; }
.chart .flag { fill: var(--warn-700); font-weight: 700; }
.chart .gap-label { fill: var(--subtle); }
.chart .gap-box { fill: var(--paper); stroke: var(--line-strong); stroke-dasharray: 3 3; }
.series-crp, .metric-crp .series-energy { display: none; }
.metric-crp .series-crp { display: inline; }
.caption-crp, .metric-crp .caption-energy { display: none; }
.metric-crp .caption-crp { display: block; }
.events { list-style: none; margin: 6px 0 0; padding: 0; font-size: .75rem; color: var(--muted); }
.events li { display: flex; gap: 6px; align-items: baseline; margin: 2px 0; }
.events i { font-style: normal; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--lav-700); color: #fff; font-size: .625rem; font-weight: 700; flex: none; }
.observe { background: var(--sky-50); border-color: #cfe0ee; }
.observe p + p { margin-top: 6px; }

/* modality cards */
.deck { position: relative; padding-bottom: 8px; }
.mcard { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-card); padding: 14px 15px; }
.mcard[hidden] { display: none; }
.deck-peek { position: absolute; left: 12px; right: 12px; top: 12px; bottom: 0; background: var(--lav-100); border: 1px solid var(--lav-300); border-radius: 22px; }
.mcard .kind { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.mcard h5 { font: 700 1.125rem/1.25 var(--app-head); margin: 0 0 4px; }
.mcard .summary { font-size: .8125rem; color: var(--ink-900); }
.mcard .touches { font-size: .75rem; color: var(--muted); margin-top: 6px !important; }
.unreviewed { font-size: .75rem; color: var(--warn-700); background: var(--warn-100); border-radius: 10px; padding: 6px 9px; margin: 8px 0 !important; }
.mcard .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mcard .more { margin-top: 8px; font-size: .75rem; border-top: 1px solid var(--line); padding-top: 8px; }
.mcard .more[hidden] { display: none; }
.deck-status { font-size: .75rem; color: var(--good-700); min-height: 1.2em; margin-top: 6px !important; }

/* group */
.banner { font-size: .75rem; background: var(--lav-100); color: var(--lav-800); border-radius: 12px; padding: 8px 10px; margin: 0 0 10px; }
.post .who { font-size: .75rem; color: var(--subtle); }
.post .who b { color: var(--ink-900); }
.post .body { margin: 4px 0 0; font-size: .8125rem; }
.answer { margin: 0 0 8px 12px; }
.save-btn[aria-pressed="true"] { background: var(--good-100); color: var(--good-700); border-color: #b9dcc9; }

/* strategy */
.saved { list-style: none; padding: 0; margin: 0 0 10px; }
.saved li { padding: 8px 0; border-top: 1px solid var(--line); font-size: .8125rem; }
.saved li:first-child { border-top: 0; padding-top: 2px; }
.qs { margin: 0; padding-left: 18px; font-size: .8125rem; }
.reminder[data-state="done"] .rem-live { display: none; }
.reminder:not([data-state="done"]) .rem-done { display: none; }

/* animation: only when JS runs and motion is allowed */
.motion .screen .anim { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 120ms); }
.motion .screen.is-live .anim { opacity: 1; transform: none; }
.motion .screen .chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) .4s; }
.motion .screen.is-live .chart .line { stroke-dashoffset: 0; }
.motion .screen .mcard.dealt { animation: deal .35s var(--ease) both; }
@keyframes deal { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* ---------- pricing + CTA ---------- */
.band { padding: clamp(56px, 8vw, 96px) 0; }
.band-cream { background: var(--cream-soft); border-top: 1px solid var(--site-line); }
.band h2 { font: 500 clamp(1.75rem, 4vw, 2.5rem)/1.18 var(--serif); letter-spacing: -.01em; color: var(--teal-deep); margin: 0 0 10px; }
.band .lede { max-width: 40rem; color: var(--site-muted); margin: 0 0 32px; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.price { background: #fff; border: 1px solid var(--site-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.price.featured { border: 2px solid var(--teal-deep); }
.price h3 { font: 500 1.0625rem var(--sans); margin: 0 0 4px; color: var(--teal-deep); }
.price .amount { font: 600 2.25rem/1.1 var(--serif); color: var(--teal-deep); margin: 8px 0 4px; }
.price .amount small { font: 400 1rem var(--sans); color: var(--site-muted); }
.price p { margin: 8px 0 0; color: var(--site-ink); font-size: .9688rem; }
.price .fine { font-size: .875rem; color: var(--site-muted); }
.price-note { margin-top: 18px; font-size: .875rem; color: var(--site-muted); max-width: 46rem; }
.cta { background: var(--teal-deep) url('assets/hex.svg') center / 1200px 1700px; color: #fff; text-align: center; }
.cta h2 { color: #fff; max-width: 22ch; text-wrap: balance; margin-left: auto; margin-right: auto; }
.cta p { color: rgba(255,255,255,.88); max-width: 36rem; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.1); }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .header-right .header-link { display: none; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .planner { padding: 20px 16px; }
  .planner-head { gap: 12px; }
}
.price .amount-word { font-size: 1.5rem; padding-top: 8px; }
.motion .screen:focus-within .anim { transition-delay: 0s; }
.step, #pricing { scroll-margin-top: 72px; }
@media (max-width: 959px) { .chart text { font-size: 11px; } .chart .evt-num { font-size: 9px; } }

/* ---------- variant G: details shared with the app ---------- */
.side-me { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-card); font: 400 .6875rem/1.3 var(--app-font); color: var(--subtle); }
.side-me b { display: block; font: 700 .75rem/1.3 var(--app-head); color: var(--ink-900); }
.side-me.is-on { box-shadow: inset 0 0 0 2px var(--lav-700); }
.side-avatar { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 .6875rem var(--app-head); color: #fff; background: linear-gradient(135deg, #7b5fc0, var(--ink-700)); }
.chip-note { font-weight: 500; color: var(--warn-700); }
.chart .bridge { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.post.mine { border-color: var(--lav-300); background: var(--lav-50); }
span.app-btn { display: inline-flex; align-items: center; }
.skip-link + .skip-link:focus { top: 60px; }
.story { padding-bottom: clamp(24px, 6vw, 64px); }

/* ---------- Your turn: the working app in a browser frame ----------
   It sits in the page like any other section: nothing moves or resizes as you reach it.
   Wide screens put "Things to try" beside the frame. The frame is sized so it fits in
   the window under the site header; the app inside is laid out at a desktop width (1000px)
   and scaled down only when the frame is narrower. Phones get a preview to open. */
.turn {
  --gap: clamp(24px, 3vw, 48px);
  --fw: min(calc(100vw - 2 * var(--gutter)), 1100px);
  background: var(--paper);
  border-top: 1px solid var(--site-line);
  padding: clamp(48px, 7vw, 88px) var(--gutter);
  scroll-margin-top: 64px;
}
.turn-in { max-width: 1440px; margin: 0 auto; display: grid; gap: 28px; justify-items: center; }
.turn-intro { max-width: 40rem; text-align: center; }
.turn h2 { font: 500 clamp(1.75rem, 4vw, 2.5rem)/1.18 var(--serif); letter-spacing: -.01em; color: var(--teal-deep); margin: 0 0 12px; }
.turn-lede { margin: 0; color: var(--site-muted); }
.turn-more { display: none; text-align: left; }
.turn-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.turn-fine { margin: 14px 0 0; font-size: .875rem; color: var(--site-muted); }
.tries-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--site-muted); margin: 24px 0 8px; }
.tries-meta strong { font-weight: 600; color: var(--teal-deep); }
.tries { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.try { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px 8px 8px; border-radius: 12px; transition: background-color .15s var(--ease), border-color .15s var(--ease); border: 1px solid var(--site-line); background: rgba(255,255,255,.7); text-align: left; font: 500 .9375rem/1.35 var(--sans); color: var(--site-ink); cursor: pointer; }
.try:hover { background: #fff; border-color: rgba(30,60,66,.3); }
.try .n { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(30, 60, 66, .08); color: var(--teal-deep); font-weight: 500; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.try.done .n { background: var(--good-100); color: var(--good-700); }
.try .n svg { width: 16px; height: 16px; }
.try b { font-weight: 500; display: block; }
.try small { display: block; color: var(--site-muted); font-size: .8125rem; }

.app-browser { width: var(--fw); border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -30px rgba(30,60,66,.4); }
.app-browser .browser-url { font-size: .8125rem; }
.slot { position: relative; height: calc(var(--fw) / 1.6); overflow: hidden; background: var(--paper); }
.slot iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; display: block; transform-origin: 0 0; background: var(--paper); }
.slot-open { position: absolute; inset: 0; z-index: 2; display: grid; place-items: end center; padding: 0 0 10%; width: 100%; border: 0; cursor: pointer; background: linear-gradient(180deg, transparent 35%, rgba(20,29,34,.5)); }
.slot-open[hidden] { display: none; }
.slot-open-in { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: #fff; color: var(--teal-deep); font: 600 1rem var(--sans); box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); }
.slot-open-in svg { width: 18px; height: 18px; }
.slot-open:focus-visible { outline: none; }
.slot-open:focus-visible .slot-open-in { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Full screen: the app leaves the frame and fills the window. */
.slot.is-full { position: fixed; inset: 0; z-index: 1000; height: 100%; height: 100dvh; }
.slot.is-full iframe { width: 100% !important; height: 100% !important; transform: none !important; }
.slot.is-full .slot-open { display: none; }
body.has-full { overflow: hidden; }

.turn-actions .btn { min-height: 44px; padding: 0 16px; font-size: .9375rem; white-space: nowrap; }
.turn-actions { gap: 8px; }
@media (max-width: 719px) {
  .turn-actions { display: none; }
  .app-browser { border-radius: 14px; }
  .app-browser .browser-bar { padding: 7px 10px; }
  .app-browser .browser-dots i { width: 8px; height: 8px; }
}
/* Wide screens: things to try beside a frame that fits under the header. */
@media (min-width: 1100px) {
  .turn { --introW: clamp(260px, 22vw, 330px); --fw: min(calc(100vw - 2 * var(--gutter) - var(--introW) - var(--gap)), calc((100vh - 64px - 2 * 28px - 42px) * 1.6), 1240px); padding-top: 28px; padding-bottom: 72px; }
  .turn-in { grid-template-columns: var(--introW) auto; justify-content: center; align-items: center; column-gap: var(--gap); min-height: calc(100vh - 64px); }
  .turn-intro { text-align: left; }
  .turn-more { display: block; }
  .turn-actions { justify-content: flex-start; }
}
@supports (height: 100svh) {
  @media (min-width: 1100px) {
    .turn { --fw: min(calc(100vw - 2 * var(--gutter) - var(--introW) - var(--gap)), calc((100svh - 64px - 2 * 28px - 42px) * 1.6), 1240px); }
    .turn-in { min-height: calc(100svh - 64px); }
  }
}
@media (min-width: 1100px) and (max-height: 820px) {
  .turn h2 { font-size: 1.75rem; }
  .try { min-height: 42px; padding: 5px 10px 5px 6px; }
  .try small { display: none; }
  .tries-meta { margin-top: 14px; }
  .turn-fine { display: none; }
}
.deck-end { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-card); padding: 14px 15px; }
.deck-end[hidden] { display: none; }
.deck-end h5 { font: 700 1.125rem/1.25 var(--app-head); margin: 0 0 4px; }
.deck-end .actions { margin-top: 10px; }
.turn-day { justify-content: center; }
@media (min-width: 1100px) { .turn-day { justify-content: flex-start; } }
.tries-meta strong { font-weight: 500; font-variant-numeric: tabular-nums; }
