/* Nutrition Tracker — the landing page (v0.6.140): what a signed-out visitor
 * sees in email mode. Its own stylesheet, like admin.css: not the app shell,
 * and never kept by the service worker. The colours ARE the app's tokens
 * (style.css :root) — the brand magenta, the macro green / yellow / orange,
 * water's blue, the warm paper and the near-black — and it follows the
 * device's light or dark as the app does. Anything that is hidden until it
 * scrolls into view is hidden only under `.js` (set in the page's head), so
 * the page reads whole with no script. Everything marked `.tour` goes when
 * the page is opened as an installed app: see the last block.
 * Spec: knowledge/done/landing-page-plan.md. */
:root {
  color-scheme: light;
  --bg: #f1f1ed; --surface: #ffffff; --text: #0b0b0b; --text-2: #52514e;
  --muted: #898781; --grid: #e1e0d9; --border: rgba(11,11,11,.10);
  --brand: #d55181; --on-brand: #ffffff;
  --protein: #1baf7a; --carbs: #c98500; --fat: #d95926; --water: #2b8fd6;
  --over: #d03b3b;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.07);
  --lift: 0 2px 6px rgba(0,0,0,.06), 0 24px 60px rgba(0,0,0,.14);
  --glass-lit: rgba(255,255,255,.60);
  --tint: 9%; --glow: .34; --night: #131312; --on-night: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d0d0d; --surface: #1d1d1c; --text: #ffffff; --text-2: #c3c2b7;
    --muted: #898781; --grid: #2c2c2a; --border: rgba(255,255,255,.10);
    --brand: #e87ba4; --on-brand: #22141b;
    --protein: #199e70; --carbs: #eda100; --fat: #eb6834; --water: #5fb0ee;
    --over: #e66767;
    --shadow: 0 2px 10px rgba(0,0,0,.35), 0 8px 28px rgba(0,0,0,.28);
    --lift: 0 2px 10px rgba(0,0,0,.4), 0 30px 80px rgba(0,0,0,.55);
    --glass-lit: rgba(255,255,255,.16);
    --tint: 13%; --glow: .42; --night: #1d1d1c;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.num { font-variant-numeric: tabular-nums; }

/* ---- the mark: the app icon's three bars ---- */
.mark {
  --s: 34px; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .24);
  background: #d55181; display: inline-grid; grid-auto-flow: column;
  place-content: center; gap: calc(var(--s) * .07); flex: none;
  box-shadow: 0 6px 18px color-mix(in srgb, #d55181 45%, transparent);
}
.mark i {
  width: calc(var(--s) * .15); height: calc(var(--s) * .3);
  border-radius: calc(var(--s) * .045); background: rgba(255,255,255,.92);
}
.mark i:last-child {
  background: linear-gradient(to top, rgba(255,255,255,.92) 42%, transparent 42%);
  box-shadow: inset 0 0 0 calc(var(--s) * .034) rgba(255,255,255,.92);
}

/* ---- buttons ---- */
.btn {
  border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 650;
  font-size: 16px; text-decoration: none; display: inline-flex; gap: 8px;
  align-items: center; justify-content: center; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:active { transform: scale(.97); }
.btn.brand {
  background: var(--brand); color: var(--on-brand);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 40%, transparent);
}
.btn.brand:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.btn.sm { padding: 8px 15px; font-size: 14px; }

/* ---- nav: the tab bar's glass ---- */
.nav {
  position: fixed; top: max(12px, env(safe-area-inset-top)); left: 0; right: 0; z-index: 50; pointer-events: none;
}
.nav .bar {
  pointer-events: auto; width: min(1160px, 100% - 24px); margin: 0 auto;
  display: flex; align-items: center; gap: 22px; padding: 8px 8px 8px 14px;
  border-radius: 999px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: inset 0 1px 0 var(--glass-lit), var(--shadow);
}
.nav .name { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.nav .mark { --s: 30px; }
.nav .links { display: flex; gap: 20px; margin-left: auto; font-size: 14.5px; }
.nav .links a { text-decoration: none; color: var(--text-2); }
.nav .links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav .links { display: none; } .nav .bar { justify-content: space-between; } }

/* ---- aurora: our four colours, slow ---- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora b {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(90px); opacity: var(--glow); animation: drift 22s ease-in-out infinite alternate;
}
.aurora b:nth-child(1) { background: var(--brand); top: -18vmax; right: -8vmax; }
.aurora b:nth-child(2) { background: var(--fat); top: 22vmax; right: 24vmax; width: 30vmax; height: 30vmax; animation-delay: -6s; opacity: calc(var(--glow) * .7); }
.aurora b:nth-child(3) { background: var(--protein); bottom: -22vmax; left: -14vmax; animation-delay: -11s; opacity: calc(var(--glow) * .75); }
.aurora b:nth-child(4) { background: var(--carbs); top: -8vmax; left: 18vmax; width: 26vmax; height: 26vmax; animation-delay: -15s; opacity: calc(var(--glow) * .55); }
@keyframes drift { to { transform: translate3d(5vmax, 4vmax, 0) scale(1.14); } }

/* ---- hero ---- */
.hero { position: relative; padding: 128px 0 40px; }
.hero .wrap {
  position: relative; z-index: 1; display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1.3fr) minmax(400px, .7fr); align-items: center; min-height: min(760px, 84vh);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  padding: 6px 13px 6px 9px; border-radius: 999px; color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border);
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--protein); box-shadow: 0 0 0 4px color-mix(in srgb, var(--protein) 25%, transparent); }
h1 {
  overflow-wrap: break-word;
  font-size: clamp(40px, 5.1vw, 70px); line-height: 1; letter-spacing: -.04em;
  font-weight: 800; margin: 22px 0 22px; text-wrap: balance;
}
h1 .grad {
  display: block; padding-bottom: .08em;
  background: linear-gradient(92deg, var(--brand) 5%, var(--fat) 55%, var(--carbs) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 30em; }
.signup { display: flex; gap: 8px; margin-top: 30px; max-width: 470px; }
.signup input {
  flex: 1; min-width: 0; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
  padding: 13px 20px; outline: none; box-shadow: var(--shadow);
}
.signup input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.fine { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.fine a { color: inherit; }
/* "By continuing, you agree to …" under the sign-in box's first step (v0.6.142) */
.agree { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.agree a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.agree a:hover { color: var(--text); }
.notice {
  margin-top: 18px; max-width: 470px; padding: 13px 17px; border-radius: 18px; font-size: 15.5px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text-2);
}
.notice.ok { border-color: color-mix(in srgb, var(--protein) 45%, transparent); color: var(--text); }
.notice.bad { color: var(--over); }
.last .notice { margin-left: auto; margin-right: auto; text-align: left; }
.only-app { display: none; }
.qr[hidden] { display: none !important; }

/* ---- the phone ---- */
.stage { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: 660px; }
.halo {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 55%, transparent), transparent);
  filter: blur(30px); opacity: .7;
}
.phone {
  position: relative; width: 304px; height: 636px; border-radius: 50px; padding: 9px;
  background: linear-gradient(145deg, #3a3a3c, #0c0c0d 40%, #2a2a2c);
  box-shadow: var(--lift), inset 0 0 0 1.5px rgba(255,255,255,.14);
  transform: rotateY(calc(-9deg + var(--mx, 0) * 7deg)) rotateX(calc(4deg + var(--my, 0) * -5deg));
  transition: transform .5s cubic-bezier(.2,.8,.2,1); font-size: 11px; line-height: 1.35;
}
.screen { position: relative; height: 100%; border-radius: 41px; background: var(--bg); overflow: hidden; }
.p-sb { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 6px 24px 0; font-weight: 700; font-size: 12px; }
.p-sb .isl { width: 78px; height: 22px; border-radius: 12px; background: #000; position: absolute; left: 50%; top: 9px; transform: translateX(-50%); }
.p-sb .sig { display: flex; gap: 2px; align-items: flex-end; }
.p-sb .sig i { width: 3px; background: var(--text); border-radius: 1px; }
.p-days { display: flex; justify-content: space-between; padding: 2px 12px 0; }
.p-days span { width: 32px; padding: 4px 0 5px; border-radius: 10px; text-align: center; color: var(--text-2); font-weight: 700; font-size: 12px; }
.p-days small { display: block; font-size: 8px; font-weight: 600; color: var(--muted); }
.p-days .on { background: color-mix(in srgb, var(--brand) 26%, var(--surface)); color: var(--text); }
.p-chip {
  display: inline-flex; gap: 6px; margin: 8px 12px 0; padding: 5px 10px; border-radius: 999px;
  background: var(--surface); color: var(--text-2); font-size: 10.5px; box-shadow: var(--shadow);
}
.p-chip b { color: var(--brand); }
.p-card { margin: 8px 10px 0; padding: 11px 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.p-ct { display: flex; justify-content: space-between; font-size: 9px; font-weight: 700; letter-spacing: .07em; color: var(--text-2); margin-bottom: 8px; }
.p-ct { text-transform: uppercase; } .p-ct .acc { color: var(--brand); }
.segs { display: flex; gap: 2.5px; height: 24px; }
.segs i { flex: 1; border-radius: 3px; background: var(--grid); transition: background .35s ease, transform .35s ease; }
.segs i.f { background: var(--brand); }
.p-eaten { margin-top: 8px; display: flex; justify-content: space-between; color: var(--text-2); }
.p-eaten b { font-size: 14px; color: var(--text); }
.mbar { position: relative; height: 19px; border-radius: 10px; background: var(--grid); overflow: hidden; margin-top: 5px; }
.mbar i {
  position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 10px;
  background: color-mix(in srgb, var(--c, var(--brand)) 72%, var(--surface));
  transition: width 1.1s cubic-bezier(.2,.8,.2,1);
}
.mbar span { position: relative; padding-left: 9px; line-height: 19px; font-size: 10px; color: var(--text); }
.mbar span b { margin-right: 4px; }
.p-h { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.p-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px; padding: 6px 0; border-top: 1px solid var(--grid); }
.p-row:first-of-type { border-top: 0; }
.p-row time { color: var(--muted); font-size: 9.5px; padding-top: 1px; }
.p-row b { font-size: 11px; }
.p-row small { display: block; color: var(--muted); font-size: 9px; }
.p-row .r { text-align: right; }
.p-row.new { max-height: 0; opacity: 0; padding: 0; overflow: hidden; transition: max-height .6s ease, opacity .6s ease, padding .6s ease; }
.p-row.new.on { max-height: 50px; opacity: 1; padding: 6px 0; }
.p-row.new.on b { color: var(--brand); }
.p-tab { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; align-items: center; }
.p-tab .tabs, .p-tab .plus {
  height: 44px; border-radius: 22px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.7); backdrop-filter: blur(14px) saturate(1.7);
  box-shadow: inset 0 1px 0 var(--glass-lit), var(--shadow);
}
.p-tab .tabs { flex: 1; display: flex; align-items: center; justify-content: space-around; padding: 0 6px; font-size: 8.5px; color: var(--muted); }
.p-tab .tabs span { padding: 5px 9px; border-radius: 16px; text-align: center; }
.p-tab .tabs span.on { background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--text); font-weight: 700; }
.p-tab .plus { width: 44px; display: grid; place-items: center; font-size: 20px; font-weight: 300; transition: transform .3s ease, background .3s ease; }
.phone.tap .p-tab .plus { transform: scale(.86); background: color-mix(in srgb, var(--brand) 40%, var(--surface)); }
.p-dim { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.phone.chat .p-dim { opacity: 1; }
.sheet {
  position: absolute; inset: 62px 0 0 0; background: var(--bg); border-radius: 24px 24px 0 0;
  transform: translateY(103%); transition: transform .6s cubic-bezier(.2,.9,.2,1);
  display: flex; flex-direction: column; box-shadow: 0 -12px 40px rgba(0,0,0,.35);
}
.phone.chat .sheet { transform: none; }
.sheet .grab { width: 34px; height: 4px; border-radius: 2px; background: var(--grid); margin: 7px auto 2px; }
.sheet h4 { margin: 4px 0 0; text-align: center; font-size: 12px; }
.thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 10px; }
.bub {
  align-self: flex-end; max-width: 82%; padding: 7px 11px; border-radius: 15px 15px 5px 15px;
  background: var(--brand); color: var(--on-brand); font-size: 11.5px;
  opacity: 0; transform: translateY(10px) scale(.95); transition: all .35s cubic-bezier(.2,.9,.2,1);
}
.dots { display: flex; gap: 4px; padding: 9px 11px; background: var(--surface); border-radius: 14px; align-self: flex-start; opacity: 0; transition: opacity .25s; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.bub.on, .dots.on { opacity: 1; transform: none; }
.dots:not(.on) { display: none; }
.comp {
  margin: 0 10px 12px; min-height: 40px; border-radius: 20px; display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 12px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: inset 0 1px 0 var(--glass-lit), var(--shadow);
}
.comp .txt { flex: 1; font-size: 11.5px; color: var(--text); min-height: 15px; }
.comp .txt:empty::before { content: attr(data-ask); color: var(--muted); }
.comp .txt.typing::after { content: ""; display: inline-block; width: 1.5px; height: 12px; background: var(--brand); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.comp svg { width: 15px; height: 15px; stroke: var(--text-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.comp .send { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none; transition: transform .2s; }
.comp .send svg { stroke: var(--on-brand); stroke-width: 2.4; }
.comp .send.go { transform: scale(.82); }
.p-toast {
  position: absolute; top: 48px; left: 50%; transform: translate(-50%, -30px); opacity: 0;
  background: var(--protein); color: #fff; font-weight: 700; font-size: 11px; padding: 6px 12px; border-radius: 999px;
  transition: all .45s cubic-bezier(.2,.9,.2,1); white-space: nowrap; box-shadow: 0 8px 20px color-mix(in srgb, var(--protein) 45%, transparent);
}
.p-toast.on { opacity: 1; transform: translate(-50%, 0); }
.noanim, .noanim * { transition: none !important; }

/* ---- the proposal card (the phone's and scene 01's) ---- */
.prop { background: var(--surface); border-radius: 16px; padding: 11px 12px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.thread .prop { opacity: 0; transform: translateY(12px) scale(.96); transition: all .45s cubic-bezier(.2,.9,.2,1); }
.thread .prop.on { opacity: 1; transform: none; }
.thread .prop:not(.on) { display: none; }
.prop-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.prop-row + .prop-row { border-top: 1px solid var(--grid); }
.prop-row small { display: block; color: var(--muted); font-size: .86em; }
.prop-row .r { text-align: right; white-space: nowrap; }
.slider { display: block; margin: 9px 0 3px; }
.slider > span { display: flex; gap: 6px; align-items: baseline; font-size: .9em; color: var(--text-2); }
.slider > span b { color: var(--text); min-width: 2.6em; }
.slider > span b.moved { color: var(--brand); cursor: pointer; }
.slider > span em { font-style: normal; color: var(--muted); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 2px 0 0; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) var(--v, 50%), var(--grid) var(--v, 50%)); }
input[type=range]::-moz-range-track { height: 5px; border-radius: 3px; background: var(--grid); }
input[type=range]::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--brand); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8.5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 3px 10px rgba(0,0,0,.2); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 3px 10px rgba(0,0,0,.2); }
.fake-range { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) 50%, var(--grid) 50%); margin: 9px 0 10px; position: relative; }
.fake-range::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.prop-act { display: flex; gap: 6px; margin-top: 8px; }
.prop-act .btn { flex: 1; padding: .55em 1em; font-size: 1em; box-shadow: none; }
.prop-act .btn.ghost { flex: 0 0 auto; color: var(--text-2); }
.prop-act .btn.done { background: var(--protein); color: #fff; }
.prop-act .btn.press { transform: scale(.93); filter: brightness(1.15); }

/* ---- floating notes around the phone ---- */
.note {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 11px;
  border-radius: 18px; font-size: 13px; line-height: 1.25; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: inset 0 1px 0 var(--glass-lit), var(--lift); animation: bob 6s ease-in-out infinite;
}
.note { max-width: 236px; }
.note b { display: block; font-size: 13.5px; }
.note span { color: var(--text-2); }
.note .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.note.n1 { top: 44px; left: -64px; } .note.n1 .dot { background: var(--protein); }
.note.n2 { top: 236px; right: -44px; animation-delay: -2s; } .note.n2 .dot { background: var(--carbs); }
.note.n3 { bottom: 178px; left: -96px; animation-delay: -4s; } .note.n3 .dot { background: var(--water); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---- the moving band ---- */
.band { position: relative; z-index: 1; margin-top: 30px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.band .run { display: flex; gap: 40px; width: max-content; animation: run 46s linear infinite; padding: 14px 0; }
.band span { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.band span::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); transform: rotate(45deg); }
@keyframes run { to { transform: translateX(-50%); } }

/* ---- sections ---- */
section { position: relative; padding: 96px 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
h2 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.03; letter-spacing: -.035em; font-weight: 800; margin: 12px 0 14px; max-width: 16em; }
.sub { color: var(--text-2); font-size: 19px; max-width: 34em; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- scenes: colour tiles ---- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 44px; }
.tile {
  grid-column: span 6; position: relative; overflow: hidden; border-radius: 30px; padding: 30px;
  background: color-mix(in srgb, var(--c) var(--tint), var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 24%, transparent);
  display: flex; flex-direction: column; gap: 10px;
  transition: opacity .8s ease, transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.tile::before {
  content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 34%, transparent), transparent); pointer-events: none;
}
.tile.in:hover { transform: translateY(-4px); box-shadow: 0 24px 60px color-mix(in srgb, var(--c) 18%, transparent); }
.tile.s7 { grid-column: span 7; } .tile.s5 { grid-column: span 5; }
.t-brand { --c: var(--brand); } .t-green { --c: var(--protein); } .t-amber { --c: var(--carbs); }
.t-orange { --c: var(--fat); } .t-blue { --c: var(--water); }
.t-num { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--c); }
.tile h3 { font-size: clamp(23px, 2.4vw, 30px); letter-spacing: -.025em; line-height: 1.1; }
.tile > p { color: var(--text-2); font-size: 16.5px; max-width: 30em; }
.demo { margin-top: auto; padding-top: 16px; position: relative; }
.card { background: var(--surface); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.ct { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.foot { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
@media (max-width: 920px) { .tile, .tile.s7, .tile.s5 { grid-column: 1 / -1; } }

/* 01 say it */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); display: inline-flex; gap: 7px; align-items: center; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.say { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: end; }
.say-in { min-height: 118px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 10px; margin-top: 14px; }
.say-in > div { display: none; animation: pop .4s cubic-bezier(.2,.9,.2,1); }
.say[data-way=type] [data-for=type], .say[data-way=speak] [data-for=speak], .say[data-way=photo] [data-for=photo] { display: flex; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.say .said { background: var(--brand); color: var(--on-brand); padding: 10px 15px; border-radius: 20px 20px 6px 20px; font-size: 15px; max-width: 100%; }
.voice { align-items: center; gap: 12px; padding: 10px 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); width: 100%; }
.voice .mic { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none; animation: pulse 1.6s ease-out infinite; }
.voice .mic svg { width: 17px; height: 17px; fill: none; stroke: var(--on-brand); stroke-width: 2; stroke-linecap: round; }
@keyframes pulse { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } to { box-shadow: 0 0 0 16px transparent; } }
.wave { display: flex; gap: 3px; align-items: center; height: 30px; flex: 1; }
.wave i { flex: 1; max-width: 4px; border-radius: 2px; background: var(--brand); animation: wave 1s ease-in-out infinite; animation-delay: calc(var(--i) * -.09s); }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: calc(30% + var(--h) * 70%); } }
.shot { align-items: flex-end; gap: 10px; }
.plate { width: 92px; height: 92px; border-radius: 18px; flex: none; position: relative; overflow: hidden; box-shadow: var(--shadow); background: radial-gradient(circle at 50% 54%, #f6efe2 0 34px, #e9dfcd 35px 39px, #6c5a48 40px); }
.plate::before { content: ""; position: absolute; inset: 26px 24px 22px 26px; border-radius: 50%; background: radial-gradient(circle at 34% 36%, #f3d27a 0 7px, transparent 8px), radial-gradient(circle at 66% 42%, #f3d27a 0 6px, transparent 7px), radial-gradient(circle at 50% 70%, #9a6a3c 0 8px, transparent 9px), #dcc7a1; }
.shot .said { font-size: 14px; }
.say .prop { font-size: 14.5px; padding: 14px 16px; border-radius: 20px; }
@media (max-width: 620px) { .say { grid-template-columns: 1fr; } .say-in { min-height: 100px; } }

/* 02 day */
.day .segs { height: 34px; gap: 3px; } .day .segs i { border-radius: 4px; }
.day .segs i.f { background: var(--text); }
.day .tot { display: flex; justify-content: space-between; margin: 12px 0 14px; color: var(--text-2); font-size: 15px; }
.day .tot b { font-size: 22px; color: var(--text); letter-spacing: -.02em; }
.day .mbar { height: 30px; border-radius: 15px; margin-top: 7px; }
.day .mbar i { border-radius: 15px; background: color-mix(in srgb, var(--c) 80%, var(--surface)); }
.js .reveal:not(.in) .day .mbar i { width: 0; }
.js .reveal:not(.in) .day .segs i.f { background: var(--grid); }
.day .mbar span { line-height: 30px; font-size: 14px; padding-left: 13px; }
.day .mbar em { position: absolute; right: 12px; top: 0; line-height: 30px; font-style: normal; font-size: 12.5px; color: var(--text-2); }

/* 03 recovery */
.rc b.ok { color: var(--protein); }
.rc .ready { font-size: 17px; margin-bottom: 12px; }
.rc .when { display: grid; grid-template-columns: max-content 1fr; gap: 9px 12px; align-items: center; font-size: 15px; }
.pill { font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.pill.soon { background: color-mix(in srgb, var(--carbs) 22%, transparent); color: color-mix(in srgb, var(--carbs) 80%, var(--text)); }
.pill.wait { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text-2); }
.rc .tip { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--grid); color: var(--text-2); font-size: 14px; }
.js .rc .when > * { opacity: 0; transform: translateX(-10px); transition: all .5s ease; transition-delay: calc(var(--n) * .12s + .3s); }
.in .rc .when > * { opacity: 1; transform: none; }

/* 04 plan */
.plan .head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan .big { font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -.035em; color: var(--c); line-height: 1; }
.plan .eq { color: var(--text-2); font-size: 16px; }
.blocks { display: grid; grid-template-columns: repeat(20, 1fr); gap: 5px; margin: 16px 0 12px; }
.blocks i { aspect-ratio: 1; border-radius: 5px; background: var(--grid); }
.blocks i.f { background: var(--c); }
.js .blocks i { transition: background .3s ease, transform .3s cubic-bezier(.2,1.6,.4,1); transition-delay: calc(var(--n) * 45ms + .2s); transform: scale(.7); }
.js .reveal:not(.in) .blocks i.f { background: var(--grid); }
.in .blocks i { transform: none; }
.plan .row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.plan .row b { color: var(--text); }
.chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--protein) 18%, transparent); color: var(--protein); }

/* 05 sources */
.src .seg { margin-bottom: 14px; }
.src .line { display: grid; grid-template-columns: 7.2em 1fr 3em; align-items: center; gap: 10px; font-size: 14.5px; padding: 5px 0; }
.src .lines { display: none; }
.src[data-m=protein] .lines[data-m=protein], .src[data-m=carbs] .lines[data-m=carbs], .src[data-m=fat] .lines[data-m=fat] { display: block; }
.src .line i { display: block; height: 12px; border-radius: 6px; background: var(--mc); width: var(--w); min-width: 4px; }
.js .reveal:not(.in) .src .line i { width: 0; }
.js .in .src .line i { animation: grow .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--n) * 70ms); }
@keyframes grow { from { width: 0; } }
.src .line b { text-align: right; }
.src[data-m=protein] { --mc: var(--protein); } .src[data-m=carbs] { --mc: var(--carbs); } .src[data-m=fat] { --mc: var(--fat); }

/* 06 body */
.body svg { width: 100%; height: auto; display: block; overflow: visible; }
.body .zero { stroke: var(--muted); stroke-width: 1; }
.body .meal { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.body .up { fill: color-mix(in srgb, var(--protein) 34%, transparent); }
.body .down { fill: color-mix(in srgb, var(--over) 30%, transparent); }
.js .body .area { opacity: 0; transition: opacity 1s ease 1.3s; } .in .body .area { opacity: 1; }
.body .curve { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.js .body .curve { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s ease .2s; }
.in .body .curve { stroke-dashoffset: 0; }
.body .train { fill: color-mix(in srgb, var(--c) 16%, transparent); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend span::before { content: ""; width: 12px; height: 12px; border-radius: 4px; }
.legend .k-up::before { background: color-mix(in srgb, var(--protein) 45%, transparent); }
.legend .k-down::before { background: color-mix(in srgb, var(--over) 40%, transparent); }
.legend .k-meal::before { width: 0; border-radius: 0; border-left: 1.5px dashed var(--muted); }
.legend .k-train::before { background: color-mix(in srgb, var(--c) 30%, transparent); }

/* also inside */
.also { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.also b { margin-right: 6px; font-size: 15px; color: var(--text-2); font-weight: 600; }
.also span { display: inline-flex; gap: 9px; align-items: center; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 15px; font-weight: 600; box-shadow: var(--shadow); }
.also span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

/* figures: a night strip in both modes */
.figs { padding: 0; }
.figs .in-wrap { position: relative; overflow: hidden; border-radius: 36px; background: var(--night); color: var(--on-night); padding: 54px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border: 1px solid rgba(255,255,255,.08); }
.in-wrap .aurora b, .panel .aurora b { width: 460px; height: 460px; filter: blur(80px); }
.in-wrap .aurora b:nth-child(1), .panel .aurora b:nth-child(1) { top: -240px; right: -120px; }
.in-wrap .aurora b:nth-child(2), .panel .aurora b:nth-child(2) { top: 30%; right: 26%; width: 300px; height: 300px; }
.in-wrap .aurora b:nth-child(3), .panel .aurora b:nth-child(3) { bottom: -280px; left: -140px; }
.in-wrap .aurora b:nth-child(4), .panel .aurora b:nth-child(4) { top: -220px; left: 24%; width: 320px; height: 320px; }
.figs .aurora b { opacity: .38; }
.figs .fig { position: relative; z-index: 1; }
.figs .n { font-size: clamp(48px, 6.4vw, 84px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--fc); }
.figs .l { margin-top: 8px; font-size: 16px; color: rgba(255,255,255,.72); max-width: 13em; }
@media (max-width: 820px) { .figs .in-wrap { grid-template-columns: repeat(2, 1fr); padding: 38px 26px; } }

/* install */
.install .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.install .seg { margin-top: 26px; }
.steps { list-style: none; padding: 0; margin: 22px 0 0; display: none; counter-reset: s; }
.install[data-os=iphone] .steps[data-os=iphone], .install[data-os=android] .steps[data-os=android], .install[data-os=computer] .steps[data-os=computer] { display: block; animation: pop .4s ease; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--grid); font-size: 17px; }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); flex: none; }
.steps kbd { margin: 0 2px; font: inherit; font-weight: 700; padding: 2px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); white-space: nowrap; }
@keyframes land { to { opacity: 1; transform: none; } }

/* ---- the install, played (v0.6.146): a phone that installs NutR ----
 * Scenes are layers stacked in .scr; landing.js sets `data-scene` on
 * #demo (page → sheet/offer → confirm → home) and taps a `[data-hit]`.
 * With no script, or reduced motion, the markup rests on `home`. */
.demo { position: relative; max-width: 270px; margin-left: auto; }
.demo .ph { width: 100%; aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 48px; background: #0d0d0f; box-shadow: var(--lift), inset 0 0 0 1.5px rgba(255,255,255,.1); }
.demo .scr { position: relative; height: 100%; overflow: hidden; border-radius: 39px; background: var(--bg); container-type: inline-size; }
.demo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo .mark { --s: 34px; flex: none; }
.demo small { display: block; height: 6px; width: 70%; margin-top: 5px; border-radius: 3px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.install[data-os=iphone] .demo .and, .install[data-os=android] .demo .ios { display: none !important; }
.install[data-os=computer] .demo .ph { display: none; }
.install[data-os=computer] .demo .qr { margin-top: 0; }

/* the browser page */
.demo .sc { position: absolute; inset: 0; display: flex; flex-direction: column; }
.demo .pg { flex: 1; padding: 46px 18px 0; }
.demo .chrome + .pg { padding-top: 16px; }
.demo .pg-top { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 22px; }
.demo .pg-top .mark { --s: 26px; }
.demo .pg-h { height: 16px; border-radius: 6px; margin: 0 0 9px; background: color-mix(in srgb, var(--text) 78%, transparent); width: 88%; }
.demo .pg-h.s { width: 62%; background: linear-gradient(90deg, var(--brand), var(--fat)); }
.demo .pg-l { height: 8px; border-radius: 4px; margin: 14px 0 0; background: color-mix(in srgb, var(--text) 14%, transparent); }
.demo .pg-l + .pg-l { margin-top: 8px; } .demo .pg-l.s { width: 70%; }
.demo .pg-btn { width: 56%; height: 30px; margin-top: 22px; border-radius: 999px; background: var(--brand); }
.demo .pg-card { height: 74px; margin-top: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.demo .pg-card + .pg-card { height: 54px; margin-top: 10px; }
.demo .url { display: block; height: 26px; border-radius: 999px; background: color-mix(in srgb, var(--text) 9%, transparent); }
.demo .safari { padding: 8px 14px 22px; background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--border); }
.demo .tools { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px 0; color: #2f7cf6; }
.demo .tools i { width: 16px; height: 4px; border-radius: 2px; background: color-mix(in srgb, #2f7cf6 45%, transparent); }
.demo .tools b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.demo .chrome { display: flex; align-items: center; gap: 10px; padding: 40px 12px 8px; }
.demo .chrome .url { flex: 1; }
.demo .chrome b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; }
.demo .offer { position: absolute; left: 10px; right: 10px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 20px; background: var(--surface); box-shadow: var(--lift); transform: translateY(140%); transition: transform .45s cubic-bezier(.2,1,.3,1); font-size: 14px; }
.demo .offer > span:not(.mark) { flex: 1; }
.demo .pill { padding: 7px 14px; border-radius: 999px; background: #1a73e8; color: #fff; font-size: 13px; }

/* the share sheet, the confirm card, the home screen */
.demo .sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 14px 26px; border-radius: 26px 26px 0 0; background: var(--surface); box-shadow: 0 -10px 40px rgba(0,0,0,.18); transform: translateY(105%); transition: transform .5s cubic-bezier(.2,1,.3,1); }
.demo .sh-app, .demo .cf-app { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 4px 4px 14px; }
.demo .sh-app > span:not(.mark), .demo .cf-app > span:not(.mark) { flex: 1; }
.demo .sh-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-top: 8px; border-radius: 14px; background: color-mix(in srgb, var(--text) 6%, transparent); font-size: 13.5px; font-weight: 600; }
.demo .sh-row i { width: 18px; height: 18px; border-radius: 5px; background: color-mix(in srgb, var(--text) 16%, transparent); }
.demo .sh-row.blank span { height: 8px; width: 46%; border-radius: 4px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.demo .confirm { position: absolute; left: 12px; right: 12px; top: 28%; padding: 12px 14px 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--lift); opacity: 0; transform: scale(.92); transition: opacity .3s ease, transform .4s cubic-bezier(.2,1.3,.4,1); }
.demo .cf-bar { display: flex; justify-content: space-between; font-size: 13.5px; padding: 2px 2px 12px; color: #2f7cf6; }
.demo .cf-bar b, .demo .cf-btns b { font-weight: 700; border-radius: 10px; padding: 2px 6px; }
.demo .cf-btns { display: flex; justify-content: flex-end; gap: 18px; font-size: 13.5px; color: #1a73e8; padding-top: 6px; }
.demo .home { position: absolute; inset: 0; padding: 58px 18px 0; opacity: 0; transition: opacity .45s ease; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 55%, #1a1220), color-mix(in srgb, var(--fat) 45%, #1a1220) 55%, color-mix(in srgb, var(--carbs) 40%, #1a1220)); }
.demo .home .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 14px; }
.demo .home .grid > i, .demo .dock > i { aspect-ratio: 1; border-radius: 26%; background: rgba(255,255,255,.2); position: relative; }
.demo .home .grid > i::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -12px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.28); }
.demo .ours { position: relative; container-type: inline-size; }
.demo .ours .mark { --s: 100cqw; border-radius: 26%; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.demo .ours small { all: unset; position: absolute; left: -12px; right: -12px; bottom: -19px; text-align: center; color: #fff; font-size: 11px; font-weight: 600; }
.demo .dock { position: absolute; left: 10px; right: 10px; bottom: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 12px 14px; border-radius: 30px; background: rgba(255,255,255,.22); }

/* scene by scene */
.demo[data-scene=sheet] .sheet,
.demo[data-scene=offer] .offer { transform: none; }
.demo[data-scene=confirm] .confirm { opacity: 1; transform: none; }
.demo[data-scene=confirm] .sc::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.demo[data-scene=home] .home { opacity: 1; }
.js .demo[data-scene=home] .ours .mark { animation: drop .8s cubic-bezier(.2,1.4,.4,1) .25s both; }
.js .demo[data-scene=home] .ours small { animation: land .4s ease .85s both; opacity: 0; }
@keyframes drop { from { opacity: 0; transform: translateY(-90px) scale(.5); } 70% { opacity: 1; } }
/* a tap: a soft ring where the finger lands */
.demo [data-hit] { position: relative; }
.demo [data-hit].tapped::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 35%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 70%, transparent); animation: tap .65s ease-out both; pointer-events: none; }
@keyframes tap { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
/* the step being shown lights up */
.js .steps li { transition: opacity .3s ease; }
.js .install.playing .steps li { opacity: .45; }
.js .install.playing .steps li.on { opacity: 1; }
.js .install.playing .steps li.on::before { background: var(--brand); color: var(--on-brand); }
@media (prefers-reduced-motion: reduce) { .demo * { transition: none !important; animation: none !important; } }

.demo .qr { margin-top: 22px; display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 22px; background: rgba(255,255,255,.94); color: #0b0b0b; box-shadow: var(--shadow); }
.demo .qr svg { width: 92px; height: 92px; flex: none; stroke: none; }
.demo .qr b { display: block; font-size: 16px; }
.demo .qr span { font-size: 13.5px; color: #52514e; }
@media (max-width: 880px) { .install .wrap { grid-template-columns: 1fr; } .demo { margin: 0 auto; } .install:not([data-os=computer]) .demo .qr { display: none; } }

/* the hero's buttons, the sign-in page (v0.6.146) */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.last .cta { justify-content: center; }
.fine a { text-decoration: underline; text-underline-offset: 2px; }
.back { display: none; }

/* private */
.priv .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.priv .pc { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.priv .pc .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); margin-bottom: 16px; }
.priv .pc svg { width: 22px; height: 22px; fill: none; stroke: var(--c); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.priv .pc b { display: block; font-size: 18px; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 7px; }
.priv .pc p { color: var(--text-2); font-size: 15px; }
.priv .honest { margin-top: 24px; color: var(--text-2); font-size: 15.5px; max-width: 46em; }
@media (max-width: 980px) { .priv .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .priv .grid { grid-template-columns: 1fr; } }

/* last call */
.last .panel { position: relative; overflow: hidden; border-radius: 40px; padding: clamp(46px, 7vw, 90px) clamp(24px, 6vw, 80px); text-align: center; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--lift); }
.last .panel > :not(.aurora) { position: relative; z-index: 1; }
.last .aurora b { opacity: calc(var(--glow) * .95); }
.last h2 { margin-left: auto; margin-right: auto; }
.last .sub { margin: 0 auto; }
.last .signup { margin: 30px auto 0; }
footer { padding: 34px 0 max(44px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer .name { display: flex; gap: 10px; align-items: center; color: var(--text); font-weight: 700; margin-right: auto; }
footer .mark { --s: 26px; box-shadow: none; }
footer a { text-decoration: none; } footer a:hover { color: var(--text); }
footer .copy { flex-basis: 100%; font-size: 13px; }
footer select { font: inherit; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }

@media (max-width: 1300px) { .note.n2 { right: -8px; } }
@media (max-width: 940px) {
  .hero { padding-top: 104px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .stage { min-height: 0; padding: 10px 0 20px; }
  .note.n1 { left: 0; top: 34px; } .note.n2 { right: 0; } .note.n3 { left: 0; bottom: 6px; }
  section { padding: 70px 0; }
}
@media (max-width: 520px) {
  .signup { flex-direction: column; } .signup .btn { width: 100%; }
  .note { font-size: 11.5px; padding: 8px 11px 8px 8px; } .note b { font-size: 12px; }
  .note.n1 { left: -8px; } .note.n2 { display: none; } .note.n3 { left: -6px; bottom: -4px; }
  .tile { padding: 22px; border-radius: 26px; }
  .rc .when { grid-template-columns: 1fr; gap: 5px; } .rc .when .pill { justify-self: start; margin-top: 7px; }
  .ct { gap: 10px; }
  .phone { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- the sign-in box (v0.6.141): two tabs, the code, choosing a password.
 * The tabs are radio buttons, so they switch with no script; the script
 * only remembers the last one and adds the boxes' conveniences. ---- */
.box { margin-top: 30px; max-width: 470px; }
.box .signup { margin-top: 0; }
.box .notice { margin-top: 12px; }
.tab-r { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--text) 6%, transparent); }
.tabs { max-width: 100%; }
.tabs label { text-align: center; padding: 7px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 650; color: var(--text-2); cursor: pointer; user-select: none; }
.tab-r[value="new"]:checked ~ .tabs [data-t="new"],
.tab-r[value="pw"]:checked ~ .tabs [data-t="pw"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tab-r[value="new"]:focus-visible ~ .tabs [data-t="new"],
.tab-r[value="pw"]:focus-visible ~ .tabs [data-t="pw"] { outline: 2px solid var(--brand); outline-offset: 2px; }
.p-pw { display: none; }
.tab-r[value="pw"]:checked ~ .p-pw { display: block; }
.tab-r[value="pw"]:checked ~ .p-new { display: none; }
.stack { display: grid; gap: 10px; }
.box .stack input[type="email"], .box .stack input[type="password"], .box .stack input[type="text"] {
  width: 100%; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px; padding: 13px 20px; outline: none; box-shadow: var(--shadow);
}
.box .stack input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.box .hide { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.field { position: relative; display: block; }
.field input { padding-right: 76px !important; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none;
  color: var(--muted); font-size: 13px; font-weight: 650; padding: 6px 10px; border-radius: 999px; }
.eye:hover { color: var(--text); }
.js .eye[hidden] { display: inline-block; }
.btn.wide { width: 100%; white-space: normal; }
.under { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; flex-wrap: wrap;
  margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.link { background: none; border: 0; padding: 0; color: var(--text-2); font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }
.sent-to { font-size: 15.5px; color: var(--text-2); }
.sent-to b { color: var(--text); overflow-wrap: anywhere; }
.code { display: flex; gap: 7px; align-items: center; }
.code input { width: 48px; height: 58px; padding: 0; text-align: center; font: inherit; font-size: 24px; font-weight: 700;
  font-variant-numeric: tabular-nums; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); outline: none; box-shadow: var(--shadow); }
.code input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.code .gap { width: 8px; }
.code.done input { border-color: color-mix(in srgb, var(--protein) 60%, transparent); }
.hint { font-size: 13.5px; color: var(--muted); }
.rules { display: grid; gap: 3px; margin: 0 6px; font-size: 13.5px; color: var(--muted); }
.rules span::before { content: "○"; display: inline-block; width: 1.4em; }
.rules span.ok { color: var(--protein); } .rules span.ok::before { content: "✓"; }
.rules span.bad { color: var(--over); } .rules span.bad::before { content: "✕"; }
.welcome { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; text-align: left; }
.welcome .tick { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--protein) 16%, transparent); color: var(--protein); font-weight: 800; }
.welcome b { display: block; font-size: 17px; } .welcome small { color: var(--text-2); font-size: 14.5px; }
.box .row { display: flex; gap: 8px; }
.box .row .btn.brand { flex: 1; }
.last .box { margin: 30px auto 0; text-align: left; }
.last .tabs { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
@media (max-width: 520px) {
  .box .row { flex-direction: column; } .box .row .btn { width: 100%; }
  .code { gap: 5px; } .code input { width: 40px; height: 52px; font-size: 21px; border-radius: 12px; } .code .gap { width: 4px; }
}
@media (max-width: 360px) { .code input { width: 35px; } }

/* ---- an installed app opened signed out: the sign-in box alone ----
 * `.solo` is the same short page in a browser: choosing a password after
 * the mail signed you in (/welcome/password). */
@media (display-mode: standalone) {
  .tour { display: none !important; }
  .only-app { display: block; }
  .only-app .mark { --s: 84px; margin-bottom: 6px; }
  .hero { min-height: 100vh; min-height: 100dvh; padding: 24px 0; display: grid; align-items: center; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; text-align: center; justify-items: center; }
  h1 { font-size: clamp(34px, 9vw, 52px); }
  .lead, .signup, .notice, .box { margin-left: auto; margin-right: auto; }
  .box { width: 100%; text-align: left; }
  .tabs { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
}
.solo .tour, .solo .lead { display: none !important; }
.solo .tabs { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
.solo .agree { text-align: center; }
.solo .back { display: inline-block; position: fixed; z-index: 2; top: max(20px, env(safe-area-inset-top)); left: 20px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.solo .legal a { color: inherit; }
@media (display-mode: standalone) { .solo .back { display: none; } }
.solo .only-app { display: block; }
.solo .only-app .mark { --s: 72px; margin-bottom: 6px; }
.solo .hero { min-height: 100vh; min-height: 100dvh; padding: 24px 0; display: grid; align-items: center; }
.solo .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; text-align: center; justify-items: center; }
.solo h1 { font-size: clamp(30px, 7vw, 46px); }
.solo .box { width: 100%; margin-left: auto; margin-right: auto; text-align: left; }
