/* THE CODE · member-flow walkthrough
   Tokens from brand/design-tokens.json. App surfaces follow the mobile "coastal paper" theme. */

@font-face { font-family: "Fraunces"; src: url(assets/fraunces-latin.woff2) format("woff2"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url(assets/inter-tight-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(assets/jetbrains-mono-latin.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink-900: #0A0A0A; --ink-800: #141414; --ink-700: #1C1C1C; --ink-500: #3A3A3A; --ink-300: #6B6B6B;
  --bone-100: #F4F1EC; --bone-200: #EAE6DF; --bone-300: #D8D2C8;
  --ox-500: #5B1A1A; --ox-600: #4A1414;
  /* app (mobile theme) */
  --a-bg: #F5F4F1; --a-card: #FCFBF8; --a-line: #DEDDD8; --a-line-hi: #C1BEB6; --a-muted: #696963;
  --a-green: #35674A; --a-amber: #8D5B19; --a-red: #9D302A; --a-sea: #265B6A;

  --display: "Fraunces", "GT Sectra", Georgia, serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--ink-900); color: var(--bone-100);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ox-500); outline-offset: 2px; }
.stage :focus-visible { outline-color: #c9a6a0; }
.screen :focus-visible { outline-color: var(--ox-500); }

.eyebrow, .caps {
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; margin: 0;
}

/* ───────── stage ───────── */
.stage {
  height: 100vh; height: 100dvh; display: grid; grid-template-columns: minmax(240px, 300px) 1fr minmax(240px, 320px);
  gap: 0; position: relative;
  background:
    radial-gradient(1200px 700px at 50% 110%, rgba(91,26,26,0.28), transparent 60%),
    var(--ink-900);
}
.rail, .notes { padding: 36px 32px; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.rail { border-right: 1px solid var(--ink-700); }
.notes { border-left: 1px solid var(--ink-700); justify-content: flex-end; }
.rail .eyebrow, .notes .eyebrow { color: #b3ada3; }

.wordmark { font-family: var(--display); font-weight: 300; letter-spacing: 0.08em; font-size: 18px; white-space: pre; }
.rail-top .eyebrow { margin-top: 28px; }
.rail-title { font-family: var(--display); font-weight: 300; font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 0; }

.steps { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--ink-700); }
.steps li { border-bottom: 1px solid var(--ink-700); }
.steps button {
  display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; width: 100%; text-align: left;
  padding: 14px 0; opacity: 0.85; transition: opacity 0.2s var(--ease), padding 0.3s var(--ease);
}
.steps button:hover { opacity: 1; }
.steps .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; padding-top: 5px; color: #b3ada3; grid-row: span 2; }
.steps .t { font-family: var(--display); font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; }
.steps .d { font-size: 13px; color: #b3ada3; }
.steps li.is-active button { opacity: 1; padding-left: 10px; }
.steps li.is-active .n { color: #d08a80; }
.steps li.is-done button { opacity: 0.9; }
.restart { margin-top: auto; align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #b3ada3; padding: 28px 0 0; }
.restart:hover { color: var(--bone-100); }

.notes .note-h { font-family: var(--display); font-weight: 300; font-size: 34px; line-height: 1.08; letter-spacing: -0.02em; margin: 12px 0 0; }
.notes .note-p { color: #bdb8ae; font-size: 15px; max-width: 34ch; margin: 14px 0 0; }
.note-sys { margin: 28px 0 0; border-top: 1px solid var(--ink-700); }
.note-sys div { padding: 12px 0; border-bottom: 1px solid var(--ink-700); }
.note-sys dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #b3ada3; }
.note-sys dd { margin: 4px 0 0; font-size: 14px; color: #d6d1c7; }
.notes > * { animation: noteIn 0.5s var(--ease) both; }
@keyframes noteIn { from { opacity: 0; transform: translateY(6px); } }

/* ───────── device ───────── */
.device-col { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 0; padding: 18px 0 10px; gap: 14px; }
.device-fit { position: relative; flex: none; }
.device {
  position: absolute; top: 0; left: 0; width: 414px; height: 868px; transform-origin: 0 0;
  background: #0b0b0b; border-radius: 64px; padding: 12px;
  box-shadow: 0 0 0 1.5px #3a3a3a, 0 0 0 5px #121212, 0 40px 90px -20px rgba(0,0,0,0.75), inset 0 0 0 2px #1d1d1d;
}
.island { position: absolute; z-index: 60; top: 25px; left: 50%; width: 118px; height: 34px; transform: translateX(-50%); background: #000; border-radius: 20px; }
.screen { position: relative; width: 390px; height: 844px; border-radius: 52px; overflow: hidden; background: #fff; isolation: isolate; font-family: var(--sys); color: #111; }

.statusbar {
  position: absolute; z-index: 50; top: 0; left: 0; right: 0; height: 54px; padding: 18px 34px 0 42px;
  display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none;
  font-family: var(--sys); font-weight: 600; font-size: 16.5px; letter-spacing: -0.2px; transition: color 0.3s;
}
.sb-icons { display: flex; gap: 6px; align-items: center; margin-top: 3px; }
.screen[data-sb="dark"] .statusbar { color: #111; }
.screen[data-sb="light"] .statusbar { color: #fff; }
.home-ind { position: absolute; z-index: 55; bottom: 8px; left: 50%; width: 134px; height: 5px; border-radius: 3px; background: #111; transform: translateX(-50%); opacity: 0.9; pointer-events: none; transition: background 0.3s; }
.screen[data-sb="light"] .home-ind { background: #fff; }

.scene {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.99);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s 0.45s;
}
.scene.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; z-index: 5; }

.controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; min-height: 40px; align-items: center; max-width: 520px; }
.ctrl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 11px 16px; border: 1px solid #3a3a3a; border-radius: 2px; color: var(--bone-100); transition: background 0.2s, border-color 0.2s;
}
.ctrl:hover { background: var(--ink-700); border-color: #5a5a5a; }
.ctrl-hint { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #b3ada3; }

/* ───────── shared bits ───────── */
.ox { color: var(--ox-500); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 2px; transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-block { width: 100%; }
.btn-ink { background: var(--ink-900); color: var(--bone-100); }
.btn-ink:hover { background: var(--ink-500); }
.btn-ink:active { transform: scale(0.985); }
.btn-ink[disabled] { opacity: 0.35; cursor: not-allowed; }
.btn-line { border: 1px solid var(--bone-300); color: var(--ink-900); }
.btn-line:hover { background: var(--bone-200); }
.fine { font-size: 12.5px; line-height: 1.45; color: var(--ink-300); margin: 12px 0 0; }
.link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-300); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--bone-300); padding: 14px 0; align-self: flex-start; }
.link:hover { color: var(--ink-900); }

.toast { position: absolute; z-index: 70; left: 24px; right: 24px; bottom: 104px; background: var(--ink-900); color: var(--bone-100); font-size: 13.5px; padding: 12px 16px; border-radius: 2px; opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.35s var(--ease); pointer-events: none; font-family: var(--body); }
.toast.on { opacity: 1; transform: none; }

/* ───────── 01 WhatsApp ───────── */
.wa { background: #EFEAE2; display: flex; flex-direction: column; }
.wa::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, #e4ddd1 1.3px, transparent 1.6px), radial-gradient(circle at 70% 70%, #e4ddd1 1.3px, transparent 1.6px);
  background-size: 34px 34px, 34px 34px; background-position: 0 0, 17px 17px;
}
.wa-head { position: relative; z-index: 2; flex: none; margin-top: 0; padding: 54px 14px 8px 10px; display: flex; align-items: center; gap: 8px; background: #F7F7F7; border-bottom: 0.5px solid #d6d6d6; }
.wa-back { padding: 8px 6px 8px 4px; display: flex; }
.wa-av { width: 38px; height: 38px; border-radius: 50%; background: #0A0A0A; object-fit: cover; }
.wa-who { flex: 1; min-width: 0; }
.wa-name { font-weight: 600; font-size: 16.5px; display: flex; align-items: center; gap: 5px; line-height: 1.2; }
.wa-sub { font-size: 12.5px; color: #667781; line-height: 1.2; min-height: 15px; }
.wa-sub.live { color: #00A884; }
.wa-act { display: flex; gap: 18px; align-items: center; padding-right: 4px; }
.wa-body { position: relative; z-index: 1; flex: 1; overflow-y: auto; padding: 10px 12px 14px; scrollbar-width: none; display: flex; flex-direction: column; gap: 4px; scroll-behavior: smooth; }
.wa-body::-webkit-scrollbar { display: none; }
.wa-day { align-self: center; margin: 6px 0 4px; }
.wa-day span { background: #fff; color: #54656F; font-size: 12px; padding: 4px 11px; border-radius: 8px; box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.wa-enc { align-self: center; max-width: 300px; text-align: center; background: #FFEECD; color: #54656F; font-size: 11.5px; line-height: 1.35; padding: 7px 12px; border-radius: 8px; margin: 2px 0 10px; box-shadow: 0 1px 0 rgba(0,0,0,0.05); }
.wa-enc svg { vertical-align: -1px; margin-right: 3px; }
.wa-hint { margin-top: auto; padding: 22px 0 6px; text-align: center; }
.wa-hint p { font-size: 12px; color: #667781; margin: 0 0 10px; }
.wa-hint-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chip { background: #fff; color: #00805f; font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 18px; box-shadow: 0 1px 1px rgba(0,0,0,0.12); display: inline-flex; gap: 7px; align-items: center; }
.chip:hover { background: #f4fff9; }
.chip-pdf { animation: nudge 2.4s 1s var(--ease) infinite; }
@keyframes nudge { 0%, 70%, 100% { box-shadow: 0 1px 1px rgba(0,0,0,0.12), 0 0 0 0 rgba(0,168,132,0); } 80% { box-shadow: 0 1px 1px rgba(0,0,0,0.12), 0 0 0 7px rgba(0,168,132,0.18); } }

.msg { max-width: 86%; display: flex; flex-direction: column; gap: 3px; animation: msgIn 0.35s var(--ease) both; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.msg.in { align-self: flex-start; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
.bub { position: relative; padding: 6px 9px 5px 10px; border-radius: 9px; font-size: 15.2px; line-height: 1.34; box-shadow: 0 1px 0.5px rgba(11,20,26,0.13); color: #111b21; }
.in .bub { background: #fff; border-top-left-radius: 2px; }
.out .bub { background: #D9FDD3; border-top-right-radius: 2px; }
.bub p { margin: 0; }
.bub p + p { margin-top: 7px; }
.bub b { font-weight: 600; }
.bub .time { float: right; margin: 7px 0 -3px 12px; font-size: 11px; color: #667781; display: inline-flex; gap: 3px; align-items: center; line-height: 1; }
.bub .tick { color: #53bdeb; }
.bub .sender { display: block; font-size: 13px; font-weight: 600; color: #00805f; margin-bottom: 2px; }

.pdf { display: flex; gap: 10px; align-items: center; background: rgba(11,20,26,0.06); border-radius: 7px; padding: 9px 10px; margin: 1px 0 3px; min-width: 232px; }
.pdf-ic { flex: none; width: 34px; height: 40px; border-radius: 4px; background: #E4443B; color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; display: grid; place-items: end center; padding-bottom: 5px; position: relative; }
.pdf-ic::before { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 10px 10px 0; border-color: transparent #f6b3ae transparent transparent; border-top-right-radius: 4px; }
.pdf b { display: block; font-size: 14px; font-weight: 500; line-height: 1.25; word-break: break-all; }
.pdf small { font-size: 12px; color: #667781; }

.wa-btns { display: flex; flex-direction: column; gap: 3px; width: 100%; min-width: 236px; }
.wa-btn { background: #fff; color: #00A5F4; font-size: 15px; font-weight: 500; text-align: center; padding: 11px 12px; border-radius: 9px; box-shadow: 0 1px 0.5px rgba(11,20,26,0.13); display: flex; gap: 7px; align-items: center; justify-content: center; transition: background 0.15s; }
.wa-btn:hover:not([disabled]) { background: #f3f9fc; }
.wa-btn[disabled] { color: #8696A0; cursor: default; }
.wa-btn.picked { color: #00805f; }

.card-link { display: block; overflow: hidden; border-radius: 7px; background: rgba(11,20,26,0.05); margin: 2px 0 4px; min-width: 236px; text-align: left; width: 100%; }
.card-link .cl-img { height: 104px; background: #14363B url(assets/coast.jpg) center right/cover; position: relative; }
.card-link .cl-img::after { content: "THE  CODE"; white-space: pre; position: absolute; left: 12px; bottom: 10px; color: #F4F1EC; font-family: var(--display); font-weight: 300; letter-spacing: 0.08em; font-size: 16px; }
.card-link .cl-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,36,46,0.75), transparent 70%); }
.card-link .cl-t { padding: 8px 10px 0; font-size: 14.5px; font-weight: 600; }
.card-link .cl-d { padding: 0 10px 8px; font-size: 12.5px; color: #667781; }

.consent-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #00805f; letter-spacing: 0.01em; }
.consent-box { margin: 5px 0 6px; padding: 9px 10px; border-left: 3px solid #00A884; background: rgba(0,168,132,0.07); border-radius: 0 6px 6px 0; font-size: 14px; }
.consent-box ul { margin: 5px 0 0; padding-left: 16px; }
.consent-box li { margin: 2px 0; }

.prog { min-width: 236px; }
.prog ul { list-style: none; padding: 0; margin: 6px 0 2px; }
.prog li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #667781; padding: 3px 0; transition: color 0.3s; }
.prog li i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #c7ced2; flex: none; transition: all 0.3s; position: relative; }
.prog li.run { color: #111b21; } .prog li.run i { border-color: #00A884 #c7ced2 #c7ced2; animation: spin 0.8s linear infinite; }
.prog li.ok { color: #111b21; } .prog li.ok i { background: #00A884; border-color: #00A884; }
.prog li.ok i::after { content: ""; position: absolute; left: 3.5px; top: 1.5px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

.typing { align-self: flex-start; background: #fff; border-radius: 9px; border-top-left-radius: 2px; padding: 11px 13px; box-shadow: 0 1px 0.5px rgba(11,20,26,0.13); display: inline-flex; gap: 4px; animation: msgIn 0.25s var(--ease) both; }
.typing i { width: 6.5px; height: 6.5px; border-radius: 50%; background: #9aa6ae; animation: bob 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3.5px); opacity: 1; } }

.wa-compose { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 10px 30px; background: #F7F7F7; border-top: 0.5px solid #d6d6d6; }
.wa-plus { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.wa-plus.pulse { animation: nudge 1.8s infinite; }
.wa-field { flex: 1; display: flex; align-items: center; background: #fff; border: 0.5px solid #d6d6d6; border-radius: 19px; padding: 0 10px 0 14px; height: 36px; margin: 0; }
.wa-field input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; min-width: 0; font-family: var(--sys); }
.wa-cam { flex: none; }
.wa-mic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: background 0.2s; }
.wa-mic .ic-send { display: none; }
.wa-compose.typing-on .wa-mic { background: #00A884; }
.wa-compose.typing-on .wa-mic .ic-send { display: block; }
.wa-compose.typing-on .wa-mic .ic-mic, .wa-compose.typing-on .wa-cam { display: none; }

/* ───────── 02/03 browser ───────── */
.web { background: var(--bone-100); color: var(--ink-900); font-family: var(--body); }
.web-page { position: absolute; inset: 0 0 82px 0; overflow: hidden; }
.view { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateX(18px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s 0.4s; }
.web[data-view="report"] .view-report, .web[data-view="signup"] .view-signup { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.web[data-view="report"] .view-signup { transform: translateX(40px); }
.web[data-view="signup"] .view-report { transform: translateX(-40px); }

.safari { position: absolute; bottom: 0; left: 0; right: 0; height: 82px; background: rgba(244,241,236,0.96); border-top: 0.5px solid var(--bone-300); padding: 10px 20px 0; z-index: 3; }
.safari .url { margin: 0 auto; width: 100%; height: 42px; border-radius: 12px; background: var(--bone-200); display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--sys); font-size: 15px; color: #3a3a3a; }
.safari .url svg { opacity: 0.55; }

.w-head { height: 106px; padding: 56px 22px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--bone-300); background: rgba(244,241,236,0.92); position: relative; z-index: 4; }
.w-mark { font-family: var(--display); font-weight: 300; font-size: 17px; letter-spacing: 0.08em; white-space: pre; }
.w-tag { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; color: var(--ink-300); }
.w-back { width: 28px; height: 28px; display: grid; place-items: center; margin-left: -6px; }
.view-signup .w-head { justify-content: space-between; }

.w-scroll { position: absolute; top: 106px; left: 0; right: 0; bottom: 0; overflow: hidden; }
.w-hero { padding: 24px 22px 0; }
.w-hero .eyebrow { color: var(--ink-300); }
.w-h { font-family: var(--display); font-weight: 300; font-size: 41px; line-height: 1.04; letter-spacing: -0.02em; margin: 12px 0 0; }
.w-lede { margin: 12px 0 0; color: var(--ink-500); font-size: 15px; }
.w-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-top: 1px solid var(--bone-300); border-bottom: 1px solid var(--bone-300); }
.w-stats div { padding: 12px 0 11px 0; }
.w-stats div + div { padding-left: 14px; border-left: 1px solid var(--bone-300); }
.w-stats b { display: block; font-family: var(--display); font-weight: 300; font-size: 34px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.w-stats span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-300); }
.w-blurzone { padding: 18px 18px 0; pointer-events: none; user-select: none; }

/* progressive blur gate */
.gate-blur { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none; }
.gate-blur-1 { top: 336px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%); mask-image: linear-gradient(to bottom, transparent 0, #000 34%); }
.gate-blur-2 { top: 400px; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); background: linear-gradient(to bottom, rgba(244,241,236,0) 0%, rgba(244,241,236,0.55) 50%, rgba(244,241,236,0.96) 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40%); mask-image: linear-gradient(to bottom, transparent 0, #000 40%); }
.gate-cta { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 22px 20px; text-align: center; }
.gate-cta .eyebrow { color: var(--ox-500); margin-bottom: 12px; }
.gate-cta .btn { min-height: 56px; font-size: 12px; }
.gate-cta .fine { margin-top: 10px; }
.gate-cta .btn svg { flex: none; }
.btn.pulse { animation: inkPulse 2.6s 1.5s var(--ease) infinite; }
@keyframes inkPulse { 0%, 75%, 100% { box-shadow: 0 0 0 0 rgba(10,10,10,0); } 85% { box-shadow: 0 0 0 8px rgba(10,10,10,0.1); } }

/* signup */
.su-progress { position: absolute; top: 106px; left: 0; right: 0; height: 2px; background: var(--bone-300); z-index: 4; }
.su-progress i { display: block; height: 100%; width: 33.33%; background: var(--ink-900); transition: width 0.6s var(--ease); }
.su-body { position: absolute; top: 108px; left: 0; right: 0; bottom: 0; overflow: hidden; }
.su-step { position: absolute; inset: 0; padding: 30px 22px 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease), visibility 0s 0.35s; }
.su-step.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.su-step.was { transform: translateX(-24px); }
.su-step .eyebrow { color: var(--ink-300); }
.su-h { font-family: var(--display); font-weight: 300; font-size: 34px; line-height: 1.08; letter-spacing: -0.02em; margin: 12px 0 24px; }
.su-p { color: var(--ink-500); margin: -8px 0 22px; font-size: 15px; }
.su-p b { font-weight: 500; color: var(--ink-900); }
.field { display: block; margin-bottom: 16px; position: relative; }
.field span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-300); margin-bottom: 7px; }
.field input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--bone-300); border-radius: 2px; background: #fbf9f5; color: var(--ink-900); font-size: 16px; outline: 0; transition: border-color 0.2s; }
.field input:focus { border-color: var(--ink-900); background: #fff; }
.field-locked input { background: var(--bone-200); color: var(--ink-500); }
.field-locked em { position: absolute; right: 12px; bottom: 15px; font-style: normal; font-size: 11.5px; color: var(--a-green); display: flex; gap: 5px; align-items: center; }
.field-locked em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--a-green); }
.field input.bad { border-color: var(--a-red); }

.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 20px; }
.otp input { height: 58px; text-align: center; font-family: var(--display); font-size: 26px; border: 1px solid var(--bone-300); border-radius: 2px; background: #fbf9f5; outline: 0; padding: 0; min-width: 0; transition: border-color 0.2s, background 0.2s; }
.otp input:focus { border-color: var(--ink-900); background: #fff; }
.otp input.f { border-color: var(--ink-500); }

.check { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--bone-300); font-size: 14.5px; color: var(--ink-500); line-height: 1.45; cursor: pointer; }
.check:nth-of-type(2) { border-bottom: 1px solid var(--bone-300); margin-bottom: 22px; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i { flex: none; width: 20px; height: 20px; border: 1px solid var(--ink-500); border-radius: 2px; margin-top: 1px; position: relative; transition: background 0.2s; }
.check input:checked + i { background: var(--ink-900); }
.check input:checked + i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--bone-100); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.check input:focus-visible + i { outline: 2px solid var(--ox-500); outline-offset: 2px; }

.su-done .done-mark { width: 64px; height: 64px; border: 1px solid var(--ink-900); border-radius: 50%; display: grid; place-items: center; margin: 6px 0 22px; animation: pop 0.7s 0.2s var(--ease) both; }
@keyframes pop { from { transform: scale(0.7); opacity: 0; } }
.su-done .btn + .btn { margin-top: 10px; }
.su-done .su-p { margin-top: -6px; }

/* ───────── 04 app store ───────── */
.store { background: #fff; padding-top: 54px; font-family: var(--sys); }
.st-top { display: flex; justify-content: space-between; padding: 8px 18px; color: #0a84ff; font-size: 17px; }
.st-app { display: flex; gap: 16px; padding: 14px 18px 18px; }
.st-icon { width: 118px; height: 118px; border-radius: 27px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.15); background: #0a0a0a; flex: none; }
.st-meta { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.st-meta h3 { margin: 4px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.st-meta p { margin: 2px 0 0; color: #8a8a8e; font-size: 14.5px; }
.st-get { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.st-get small { font-size: 11px; color: #8a8a8e; line-height: 1.15; }
.get { position: relative; min-width: 78px; height: 32px; border-radius: 16px; background: #f0f0f5; color: #0a84ff; font-weight: 700; font-size: 15px; display: grid; place-items: center; transition: background 0.2s, min-width 0.3s var(--ease), width 0.3s; }
.get .get-ring { position: absolute; width: 30px; height: 30px; opacity: 0; transform: rotate(-90deg); transition: opacity 0.2s; }
.get .rb { fill: none; stroke: #d8d8de; stroke-width: 3; } .get .rf { fill: none; stroke: #0a84ff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; }
.get .stop { fill: #0a84ff; transform: rotate(90deg); transform-origin: 18px 18px; }
.get.loading { min-width: 32px; width: 32px; background: transparent; }
.get.loading .get-label { opacity: 0; } .get.loading .get-ring { opacity: 1; }
.get.pending { animation: nudgeBlue 2s 0.8s infinite; }
@keyframes nudgeBlue { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(10,132,255,0); } 82% { box-shadow: 0 0 0 7px rgba(10,132,255,0.18); } }
.st-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 4px 18px 0; padding: 12px 0; border-top: 0.5px solid #d8d8de; border-bottom: 0.5px solid #d8d8de; text-align: center; }
.st-stats div { border-left: 0.5px solid #e4e4e8; display: flex; flex-direction: column; gap: 1px; } .st-stats div:first-child { border: 0; }
.st-stats small { font-size: 11px; letter-spacing: 0.04em; color: #8a8a8e; font-weight: 600; }
.st-stats b { font-size: 20px; color: #6b6b6f; font-weight: 600; line-height: 1.25; } .st-stats span { font-size: 11px; color: #8a8a8e; }
.st-shots { display: flex; gap: 10px; padding: 18px 18px 0; overflow: hidden; }
.shot { flex: none; width: 150px; height: 250px; border-radius: 18px; overflow: hidden; position: relative; border: 0.5px solid #d8d8de; background: var(--a-bg); }
.shot.s1 { background: #14363B; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; }
.shot.s1 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% center; opacity: 0.9; }
.shot.s1::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,36,46,0.8), transparent 60%); }
.shot.s1 b, .shot.s1 span { position: relative; z-index: 1; } .shot.s1 b { font-family: var(--display); font-weight: 300; font-size: 56px; line-height: 1; } .shot.s1 span { font-size: 12px; opacity: 0.85; }
.shot.s2 { padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.shot.s2 i { display: block; height: 38px; background: #fff; border-radius: 10px; position: relative; } .shot.s2 i::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 9px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #35674A 60%, var(--a-line) 60%); }
.shot.s2 i:nth-child(2)::after { background: linear-gradient(90deg, #9D302A 85%, var(--a-line) 85%); }
.shot.s2 span { margin-top: auto; font-family: var(--display); font-size: 22px; }
.shot.s3 { background: #000; } .shot.s3 img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.st-note { padding: 20px 18px 0; } .st-note h4 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -0.3px; } .st-note p { margin: 0; color: #3a3a3c; font-size: 15px; line-height: 1.4; }
.st-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 88px; background: rgba(250,250,252,0.96); border-top: 0.5px solid #d8d8de; display: flex; justify-content: space-around; padding-top: 12px; font-size: 11px; color: #8a8a8e; } .st-tabs .on { color: #0a84ff; }

/* ───────── splash ───────── */
.splash { background: var(--ink-900); display: grid; place-items: center; align-content: center; gap: 18px; }
.sp-mark { font-family: var(--display); font-weight: 300; font-size: 38px; letter-spacing: 0.08em; color: var(--bone-100); white-space: pre; }
.sp-rule { display: block; width: 1px; height: 0; background: var(--bone-100); opacity: 0.7; transition: height 1.1s var(--ease); margin: 0 auto; }
.splash.is-active .sp-rule { height: 56px; }

/* ───────── 05 login (app) ───────── */
.login { background: var(--a-bg); color: #0a0a0a; font-family: var(--sys); }
.lg-body { height: 100%; padding: 96px 26px 0; display: flex; flex-direction: column; }
.lg-mark { font-family: var(--display); font-weight: 300; font-size: 19px; letter-spacing: 0.08em; white-space: pre; }
.lg-card { margin-top: 64px; }
.login .caps { font-size: 9.5px; letter-spacing: 0.3em; color: var(--a-muted); }
.lg-h { font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1.04; letter-spacing: -1.6px; margin: 12px 0 10px; }
.lg-p { margin: 0 0 28px; font-size: 15px; color: var(--a-muted); line-height: 1.45; }
.a-label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 8px; }
.a-input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--a-line-hi); border-radius: 14px; background: #fff; font-size: 17px; outline: 0; color: #0a0a0a; font-family: var(--sys); }
.a-input:focus { border-color: #0a0a0a; }
.a-code { letter-spacing: 0.4em; font-variant-numeric: tabular-nums; }
.a-code::placeholder { letter-spacing: 0; }
.a-btn { width: 100%; height: 54px; margin-top: 16px; border-radius: 27px; background: var(--ox-500); color: #fff; font-size: 16px; font-weight: 500; transition: background 0.2s, transform 0.2s var(--ease); font-family: var(--sys); }
.a-btn:hover { background: var(--ox-600); } .a-btn:active { transform: scale(0.985); } .a-btn[disabled] { opacity: 0.6; }
.a-btn-line { background: transparent; color: #0a0a0a; border: 1px solid var(--a-line-hi); margin-top: 12px; } .a-btn-line:hover { background: var(--a-line); }
.lg-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.lg-links button { font-size: 14px; color: var(--ox-500); padding: 10px 10px 10px 0; font-weight: 500; }
.lg-fine { margin-top: auto; margin-bottom: 60px; font-size: 12.5px; color: var(--a-muted); }

/* ───────── 06 app ───────── */
.app { background: var(--a-bg); font-family: var(--sys); color: #0a0a0a; }
.tabs { position: absolute; inset: 0 0 83px 0; }
.tab { position: absolute; inset: 0; overflow-y: auto; padding-bottom: 28px; scrollbar-width: none; opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.tab::-webkit-scrollbar { display: none; }
.tab.is-on { opacity: 1; visibility: visible; }
.a-head { padding: 62px 22px 6px; display: flex; justify-content: space-between; align-items: center; }
.a-mark { font-family: var(--display); font-weight: 300; font-size: 17px; letter-spacing: 0.08em; white-space: pre; }
.a-mail { width: 40px; height: 40px; display: grid; place-items: center; margin-right: -8px; color: #0a0a0a; }
.a-greet { padding: 8px 22px 6px; }
.a-greet h2 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -1.4px; margin: 0; }
.a-greet p { margin: 4px 0 0; font-size: 15px; color: var(--a-muted); }
.a-pad { padding: 10px 18px 0; display: flex; flex-direction: column; gap: 12px; }

.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 83px; background: var(--a-card); border-top: 0.6px solid var(--a-line); display: flex; padding: 8px 6px 0; }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--a-muted); font-size: 11px; height: 44px; transition: color 0.2s; }
.tabbar button.on { color: var(--ox-500); font-weight: 500; }

.age { position: relative; border-radius: 26px; overflow: hidden; color: #fff; background: #14363B; min-height: 188px; padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; }
.age img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.age::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,36,46,0.72), rgba(0,0,0,0.08)), linear-gradient(180deg, rgba(0,0,0,0.2), transparent 40%, rgba(0,0,0,0.52)); }
.age > *:not(img) { position: relative; z-index: 2; }
.age .caps { font-size: 9.5px; letter-spacing: 0.3em; opacity: 0.9; }
.age .big { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.age .big b { font-family: var(--display); font-weight: 300; font-size: 78px; line-height: 0.95; letter-spacing: -3px; }
.age .big span { font-size: 16px; opacity: 0.9; }
.age p { margin: 0; font-size: 14px; opacity: 0.92; max-width: 24ch; line-height: 1.35; }
.age small { font-size: 11.5px; opacity: 0.75; }

.sumrow { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 22px; padding: 16px 0; }
.sumrow div { text-align: center; } .sumrow div + div { border-left: 1px solid var(--a-line); }
.sumrow b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: -1px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sumrow span { font-size: 11.5px; color: var(--a-muted); }
.sumrow .fl { color: var(--a-red); }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick button { background: #fff; border-radius: 20px; padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; font-size: 13.5px; font-weight: 500; position: relative; transition: transform 0.2s var(--ease); }
.quick button:active { transform: scale(0.97); }
.quick svg { color: var(--ox-500); }
.quick .lock { position: absolute; top: 10px; right: 10px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; color: var(--a-muted); }
.quick button.dim { color: #8c8c86; } .quick button.dim svg { color: #a6a49e; }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.sec-head h3 { font-family: var(--display); font-weight: 400; font-size: 23px; letter-spacing: -0.6px; margin: 0; }
.sec-head button { color: var(--ox-500); font-size: 14px; font-weight: 500; padding: 8px 0 8px 8px; }
.card { background: #fff; border-radius: 24px; }
.organ { display: flex; align-items: center; gap: 14px; padding: 16px 18px; width: 100%; text-align: left; }
.organ + .organ { border-top: 1px solid var(--a-line); margin: 0 18px; width: calc(100% - 36px); padding-left: 0; padding-right: 0; }
.organ .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.organ .o-t { flex: 1; min-width: 0; } .organ b { display: block; font-weight: 500; font-size: 16px; } .organ span { display: block; font-size: 13px; color: var(--a-muted); margin-top: 1px; }
.stat { flex: none; font-size: 11.5px; font-weight: 500; padding: 4px 10px; border-radius: 12px; }
.stat.flagged { color: var(--a-red); background: rgba(157,48,42,0.1); } .stat.borderline { color: var(--a-amber); background: rgba(141,91,25,0.11); } .stat.optimal { color: var(--a-green); background: rgba(53,103,74,0.1); }
.foot { font-size: 12px; color: var(--a-muted); margin: -4px 4px 0; }
.more { padding: 4px 18px; } .more details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 17px; padding: 14px 0; cursor: pointer; } .more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "⌄"; color: var(--ox-500); font-size: 20px; transition: transform 0.3s; } .more details[open] summary::after { transform: rotate(180deg); }
.more .pat { display: flex; gap: 12px; padding: 0 0 14px; } .more .pat i { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; } .more .pat b { font-weight: 500; font-size: 15px; display: block; } .more .pat span { font-size: 13px; color: var(--a-muted); }
.upd { display: flex; justify-content: space-between; align-items: flex-end; padding: 8px 4px 0; }
.upd .caps { font-size: 11px; letter-spacing: 0.3em; color: var(--a-muted); } .upd p { margin: 4px 0 0; font-size: 12px; color: var(--a-muted); }
.plan-nudge { background: transparent; border: 1px solid var(--a-line-hi); border-radius: 22px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.plan-nudge p { margin: 0; font-size: 13.5px; color: var(--a-muted); line-height: 1.4; } .plan-nudge b { display: block; color: #0a0a0a; font-weight: 500; font-size: 15px; }
.plan-nudge button { flex: none; color: var(--ox-500); font-weight: 500; font-size: 14px; }

/* results */
.seg { display: flex; gap: 6px; padding: 8px 18px 4px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: none; font-size: 13.5px; padding: 8px 14px; border-radius: 18px; background: #fff; color: var(--a-muted); transition: all 0.2s; }
.seg button.on { background: #0a0a0a; color: #fff; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.mk { background: #fff; border-radius: 20px; padding: 14px 16px; text-align: left; width: 100%; display: block; }
.mk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mk-name b { display: block; font-weight: 500; font-size: 15.5px; line-height: 1.25; } .mk-name small { color: var(--a-muted); font-size: 12px; }
.mk-val { text-align: right; flex: none; } .mk-val b { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -0.8px; line-height: 1.1; font-variant-numeric: tabular-nums; } .mk-val small { color: var(--a-muted); font-size: 11.5px; margin-left: 3px; }
.mk-bar { position: relative; height: 4px; border-radius: 2px; background: var(--a-line); margin: 14px 0 8px; }
.mk-bar i { position: absolute; top: -4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c, #999); background: var(--c, #999); }
.mk-bar::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; bottom: 0; background: rgba(53,103,74,0.28); border-radius: 2px; }
.mk-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--a-muted); }
.mk-foot svg { display: block; }
.mk.flagged { --c: var(--a-red); } .mk.borderline { --c: var(--a-amber); } .mk.optimal { --c: var(--a-green); }
.mk-delta.bad { color: var(--a-red); } .mk-delta.up { color: var(--a-amber); }
.mk.hide { display: none; }

/* body */
.bodyview { position: relative; margin: 10px 18px 0; border-radius: 26px; overflow: hidden; background: #000; height: 560px; }
.bodyview img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; opacity: 0.95; }
.pin { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; display: grid; place-items: center; }
.pin i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(255,255,255,0.18); position: relative; }
.pin i::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--c); animation: ring 2.4s infinite var(--ease); opacity: 0; }
@keyframes ring { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
.p-thy { left: 50%; top: 14%; --c: #d9a24f; } .p-heart { left: 52%; top: 27%; --c: #ef6f63; } .p-liver { left: 44%; top: 34.5%; --c: #ef6f63; } .p-kid { left: 56%; top: 42%; --c: #d9a24f; }
.pin.on i { box-shadow: 0 0 0 4px rgba(255,255,255,0.5); }
.pin-card { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(252,251,248,0.96); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pin-card small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--a-muted); } .pin-card b { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -0.5px; } .pin-card span { font-size: 13px; color: var(--a-muted); }

/* profile */
.plan-card { padding: 20px; } .plan-card .caps { font-size: 11px; letter-spacing: 0.3em; color: var(--a-muted); } .plan-card h3 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -1px; margin: 8px 0 6px; } .muted { color: var(--a-muted); font-size: 14px; margin: 0; line-height: 1.45; }
.plan-card .a-btn { margin-top: 18px; height: 48px; }
.list-card { padding: 4px 18px; } .list-card div { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; font-size: 14.5px; } .list-card div + div { border-top: 1px solid var(--a-line); } .list-card span { color: var(--a-muted); } .list-card b { font-weight: 500; text-align: right; }

/* blurred preview content on the web (uses app card styles inside .web) */
.web .age { min-height: 170px; margin-bottom: 12px; }
.web .card { margin-top: 12px; }
.web .organ + .organ { border-color: var(--bone-300); }
.web .mk { margin-top: 8px; background: #fff; }
.web .a-card, .web .age, .web .card, .web .mk { font-family: var(--sys); color: #0a0a0a; }

/* ───────── responsive ───────── */
@media (max-width: 1100px) {
  .stage { grid-template-columns: 1fr; }
  .rail, .notes { display: none; }
}
@media (max-width: 520px) {
  .controls { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
}

.wa-reset { margin-left: auto; font-size: 14px; font-weight: 600; color: #00A884; padding: 6px 10px; border-radius: 14px; }
.wa-reset:active { background: rgba(0,168,132,0.12); }
.wa-link { color: #027eb5; word-break: break-all; }
.done-card { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #cfe0d5; border-radius: 20px; padding: 14px 16px; margin-bottom: 12px; }
.done-card i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--a-green, #35674A); display: grid; place-items: center; margin-top: 1px; }
.done-card b { display: block; font-size: 15px; font-weight: 600; color: #0a0a0a; }
.done-card span { display: block; font-size: 13px; color: var(--a-muted); line-height: 1.4; margin-top: 2px; }

/* ───────── story ───────── */
.story { background: #0A0A0A; color: #F4F1EC; }
.story-bars { position: absolute; z-index: 6; top: 58px; left: 16px; right: 16px; display: flex; gap: 4px; }
.story-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(244,241,236,0.28); overflow: hidden; }
.story-bars b { display: block; height: 100%; width: 0; background: #F4F1EC; }
.story-skip { position: absolute; z-index: 7; top: 70px; right: 14px; font-size: 13px; font-weight: 600; color: rgba(244,241,236,0.85); padding: 6px 10px; }
.story-slides, .sl { position: absolute; inset: 0; }
.sl { padding: 118px 24px 56px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s 0.5s; overflow: hidden; }
.sl.is-past { transform: translateX(-24px); }
.sl.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sl-ink { background: #0A0A0A; } .sl-ox { background: #5B1A1A; } .sl-green { background: #14281D; } .sl-amber { background: #2B1F0D; } .sl-coast { background: #0c2128; }
.sl-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: 0; }
.sl-coast::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5,15,20,0.55), rgba(5,15,20,0.15) 40%, rgba(5,15,20,0.85)); }
.sl > *:not(.sl-bg) { position: relative; z-index: 2; }
.sl-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: rgba(244,241,236,0.7); margin: 0; }
.sl-big { margin-top: auto; display: flex; align-items: baseline; gap: 12px; }
.sl-big b { font-family: var(--display); font-weight: 300; font-size: 176px; line-height: 0.85; letter-spacing: -8px; }
.sl-big span { font-size: 22px; opacity: 0.9; }
.sl-h { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.08; letter-spacing: -1px; margin: 18px 0 0; max-width: 14ch; }
.sl-h-top { margin-top: 14px; max-width: 16ch; font-size: 34px; }
.sl-p { font-size: 15px; line-height: 1.45; color: rgba(244,241,236,0.78); margin: 12px 0 0; max-width: 30ch; }
.sl-pair { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.sl-pair div { display: flex; align-items: baseline; gap: 14px; }
.sl-pair b { font-family: var(--display); font-weight: 300; font-size: 128px; line-height: 0.9; letter-spacing: -6px; }
.sl-pair div + div b { color: #f2b8a8; }
.sl-pair span { font-size: 22px; opacity: 0.9; }
.sl-card { margin-top: 22px; background: #fff; border-radius: 22px; color: #0a0a0a; padding: 4px 0; }
.sl-card .organ { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; }
.sl-card .organ + .organ { border-top: 1px solid var(--a-line); }
.sl-stack { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.sl-stack .mk { color: #0a0a0a; font-family: var(--sys); }
.sl-miss { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sl-miss li { display: flex; gap: 12px; align-items: flex-start; border: 1px dashed rgba(244,241,236,0.38); border-radius: 16px; padding: 11px 14px; }
.sl-miss i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px dashed #e8b36a; margin-top: 2px; }
.sl-miss b { display: block; font-size: 15px; font-weight: 600; } .sl-miss span { display: block; font-size: 13px; color: rgba(244,241,236,0.7); line-height: 1.35; margin-top: 1px; }
.sl-does { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 30px; }
.sl-does li { display: flex; gap: 14px; }
.sl-does em { font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: 0.12em; color: #f2b8a8; padding-top: 4px; }
.sl-does b { display: block; font-family: var(--display); font-weight: 400; font-size: 25px; letter-spacing: -0.4px; line-height: 1.15; }
.sl-does span { display: block; font-size: 13.5px; color: rgba(244,241,236,0.74); margin-top: 3px; line-height: 1.35; }
.sl-plans { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.sl-plan { background: #F4F1EC; color: #0a0a0a; border-radius: 22px; padding: 16px 18px; }
.sl-plan.pro { background: #fff; outline: 2px solid #B4574A; }
.pl-top { display: flex; align-items: baseline; justify-content: space-between; }
.pl-top b { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -0.5px; }
.pl-top span { font-weight: 600; font-size: 17px; } .pl-top small { font-weight: 400; font-size: 12px; color: #6b6b6b; }
.sl-plan p { font-size: 13.5px; line-height: 1.4; color: #3a3a3a; margin: 6px 0 12px; }
.sl-cta { display: block; width: 100%; height: 46px; border-radius: 23px; background: #0a0a0a; color: #F4F1EC; font-size: 15px; font-weight: 600; }
.sl-plan.pro .sl-cta { background: #5B1A1A; }
.sl-cta-line { background: transparent; color: #0a0a0a; border: 1.5px solid #0a0a0a; }
.sl-skip-link { margin: 14px auto 0; font-size: 14px; color: rgba(244,241,236,0.8); text-decoration: underline; text-underline-offset: 3px; padding: 6px 10px; }
.story-zone { position: absolute; z-index: 4; top: 100px; bottom: 0; }
.story-zone.l { left: 0; width: 34%; } .story-zone.r { right: 0; width: 66%; }
.sl:last-child ~ .story-zone, .story:has(.sl:last-child.is-on) .story-zone.r { display: none; }
.story:has(.sl:last-child.is-on) .story-zone.l { width: 100%; bottom: auto; height: 60px; }
.story-tap { position: absolute; z-index: 5; bottom: 30px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,241,236,0.55); margin: 0; pointer-events: none; }
.story-tap[hidden] { display: none; }
.sl.is-on > *:not(.sl-bg) { animation: slIn 0.6s var(--ease) both; }
.sl.is-on > *:nth-child(3) { animation-delay: 0.08s; } .sl.is-on > *:nth-child(4) { animation-delay: 0.16s; } .sl.is-on > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes slIn { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .sl.is-on > * { animation: none; } }

/* story: richer visuals */
.sl-bg-body { left: auto; right: -30px; width: 78%; object-fit: contain; object-position: top right; opacity: 0.55; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.sl-dots { display: grid; grid-template-columns: repeat(14, 1fr); gap: 7px; margin-top: 22px; }
.sl-dots i { aspect-ratio: 1; border-radius: 50%; background: #6fae8a; animation: dotIn 0.45s var(--ease) both; }
.sl-dots i.watch, .sl-legend i.watch { background: #e2a24a; } .sl-dots i.bad, .sl-legend i.bad { background: #e8715f; }
.sl-legend { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(244,241,236,0.8); margin: 16px 0 0; }
.sl-legend i { width: 9px; height: 9px; border-radius: 50%; background: #6fae8a; margin-left: 8px; } .sl-legend i:first-child { margin-left: 0; }
@keyframes dotIn { from { opacity: 0; transform: scale(0.2); } }
.sl-big { margin-top: auto; }
.sl-ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.sl-ages div { background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 10px 12px; }
.sl-ages .hl { background: rgba(244,241,236,0.92); color: #0a0a0a; }
.sl-ages small { display: block; font-size: 11px; opacity: 0.75; } .sl-ages b { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: -1px; }
.sl-donut { position: relative; width: 190px; margin: 22px auto 0; }
.sl-donut div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sl-donut b { font-family: var(--display); font-weight: 300; font-size: 74px; line-height: 0.9; letter-spacing: -3px; } .sl-donut span { font-size: 14px; opacity: 0.85; }
.sl-p-c { text-align: center; max-width: none; margin-top: 16px; font-size: 13px; }
.sl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.sl-chips span { font-size: 13px; background: rgba(244,241,236,0.14); border: 1px solid rgba(244,241,236,0.25); border-radius: 999px; padding: 7px 12px; } .sl-chips b { font-weight: 600; margin-left: 3px; color: #f2b8a8; }
.sl-body { position: relative; margin-top: 14px; height: 250px; border-radius: 22px; overflow: hidden; background: #000; }
.sl-body img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; opacity: 0.95; }
.sl-body .pn { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(255,255,255,0.2); }
.sl-body .pn::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--c); animation: ring 2.4s infinite var(--ease); }
.sl-body .pn em { position: absolute; left: 18px; top: -4px; font-style: normal; font-size: 11px; color: #fff; text-shadow: 0 1px 3px #000; }
.sl-card-s { margin-top: 12px; padding: 0; } .sl-card-s .organ { padding: 9px 14px; } .sl-card-s .organ .o-t span { font-size: 11.5px; }
.sl-cover { margin-top: 16px; } .cv-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: rgba(244,241,236,0.8); } .cv-row b { font-family: var(--display); font-weight: 400; font-size: 24px; color: #F4F1EC; }
.cv-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin: 6px 0; } .cv-bar i { background: #e2a24a; } .cv-bar u { background: repeating-linear-gradient(90deg, rgba(244,241,236,0.35) 0 4px, transparent 4px 8px); }
.sl-miss { gap: 8px; margin-top: 14px; } .sl-miss li { padding: 9px 14px; }
.sl-proto { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.sl-proto .pr { display: flex; gap: 12px; background: rgba(244,241,236,0.96); color: #0a0a0a; border-radius: 18px; padding: 12px 14px; font-family: var(--sys); }
.pr-i { flex: none; width: 38px; height: 38px; border-radius: 12px; background: #EFE4D6; color: #5B1A1A; display: grid; place-items: center; }
.sl-proto b { display: block; font-size: 15px; font-weight: 600; } .sl-proto small { display: block; font-size: 12px; color: #8D5B19; margin-top: 1px; } .sl-proto .pr div > span { display: block; font-size: 12px; color: #6b6b6b; margin-top: 2px; }
.sl-line { display: flex; justify-content: space-between; position: relative; margin-top: 22px; padding-top: 2px; }
.sl-line::before { content: ""; position: absolute; left: 7px; right: 7px; top: 8px; height: 1.5px; background: rgba(244,241,236,0.4); }
.sl-line div { position: relative; display: flex; flex-direction: column; align-items: flex-start; } .sl-line div:last-child { align-items: flex-end; } .sl-line div:nth-child(2) { align-items: center; }
.sl-line i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #F4F1EC; background: #5B1A1A; } .sl-line i.on, .sl-line i.end { background: #F4F1EC; }
.sl-line b { font-size: 13px; margin-top: 7px; } .sl-line span { font-size: 11.5px; color: rgba(244,241,236,0.7); }
.sl-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.sl-three div { border: 1px solid rgba(244,241,236,0.25); border-radius: 16px; padding: 10px 12px; } .sl-three b { font-family: var(--display); font-weight: 300; font-size: 38px; letter-spacing: -1.5px; line-height: 1; display: block; } .sl-three span { font-size: 12px; color: rgba(244,241,236,0.75); }
.sl-plans { margin-top: 14px; gap: 10px; } .sl-plan { position: relative; padding: 14px 16px; }
.pl-list { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pl-list li { font-size: 13px; color: #3a3a3a; padding-left: 20px; position: relative; } .pl-list li::before { content: ""; position: absolute; left: 3px; top: 3px; width: 5px; height: 9px; border: solid #35674A; border-width: 0 2px 2px 0; transform: rotate(40deg); }
.pl-tag { position: absolute; right: 14px; top: -10px; font-style: normal; font-size: 11px; font-weight: 600; background: #5B1A1A; color: #F4F1EC; padding: 3px 10px; border-radius: 999px; }
.sl-h-top { max-width: 18ch; }

/* protocol + vitamins mock-ups */
.sl-app { margin-top: 16px; background: #FCFBF8; color: #0a0a0a; border-radius: 24px; padding: 14px 14px 8px; font-family: var(--sys); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.ap-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; }
.ap-head small, .ap-day { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: #7a766e; margin: 0; } .ap-head b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -0.6px; }
.ap-ring { position: relative; } .ap-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; }
.ap-day { padding: 2px 4px 6px; }
.ap-task { display: flex; gap: 12px; align-items: center; padding: 9px 4px; border-top: 1px solid #ece8df; }
.ap-task i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid #c9c4b9; display: grid; place-items: center; } .ap-task.done i { background: #35674A; border-color: #35674A; }
.ap-task small { display: block; font-size: 11px; color: #8D5B19; font-weight: 600; letter-spacing: 0.04em; } .ap-task b { display: block; font-size: 14.5px; font-weight: 600; } .ap-task.done b { text-decoration: line-through; text-decoration-color: #b5b0a5; color: #7a766e; } .ap-task span { display: block; font-size: 12px; color: #6b6b6b; margin-top: 1px; }
.sl-vits { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.vt { display: flex; align-items: center; gap: 12px; background: rgba(244,241,236,0.96); color: #0a0a0a; border-radius: 18px; padding: 10px 14px; font-family: var(--sys); }
.vt-b { flex: none; width: 34px; height: 46px; border-radius: 9px 9px 7px 7px; background: var(--c); position: relative; box-shadow: inset -5px 0 0 rgba(0,0,0,0.12); } .vt-b::before { content: ""; position: absolute; left: 6px; right: 6px; top: -6px; height: 8px; border-radius: 3px; background: #2b2b2b; } .vt-b i { position: absolute; left: 6px; right: 6px; top: 16px; height: 14px; border-radius: 2px; background: rgba(255,255,255,0.85); }
.vt > div:nth-child(2) { flex: 1; } .vt b { font-size: 15px; font-weight: 600; display: block; } .vt small { display: block; font-size: 12px; color: #6b6b6b; margin-top: 1px; }
.vt-t { display: flex; align-items: baseline; gap: 5px; font-size: 13px; color: #8a2f27; } .vt-t em { font-style: normal; color: #6b6b6b; } .vt-t b { display: inline; color: #35674A; font-size: 14px; }
.sl-goal { margin-top: 14px; border: 1px solid rgba(244,241,236,0.25); border-radius: 18px; padding: 12px 14px; } .sl-goal > p { margin: 0 0 8px; font-size: 12.5px; color: rgba(244,241,236,0.8); }
.gl-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 12.5px; } .gl-row b { font-size: 12.5px; font-weight: 600; }
.gl-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(244,241,236,0.18); } .gl-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #e8715f; } .gl-bar u { position: absolute; top: -4px; width: 2px; height: 14px; background: #7ed0a0; }

.sl-three-b { margin-top: auto; }

/* heart and liver slide */
.sl-body { height: 240px; }
.sl-body .pn { width: 22px; height: 22px; margin: -11px 0 0 -11px; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255,255,255,0.22); }
.sl-body .pn b { font-size: 12px; font-weight: 700; color: #0a0a0a; }
.sl-body .pn::after { inset: -8px; }
.sl-organs { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.og { display: flex; align-items: center; gap: 12px; background: #FCFBF8; color: #0a0a0a; border-radius: 16px; padding: 10px 14px; font-family: var(--sys); }
.og-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #0a0a0a; background: #e2a24a; }
.og.flagged .og-n { background: #e8715f; }
.og div { flex: 1; min-width: 0; } .og b { display: block; font-size: 15px; font-weight: 600; } .og small { display: block; font-size: 12px; color: #6b6b6b; line-height: 1.3; margin-top: 1px; }
.og em { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #f4dcd8; color: #9D302A; } .og.borderline em { background: #f3e5cc; color: #8D5B19; }
/* designed pdf */
.pdf-file { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 14px; border-radius: 16px; background: rgba(244,241,236,0.12); border: 1px solid rgba(244,241,236,0.25); }
.pdf-file b { display: block; font-size: 14px; font-weight: 600; } .pdf-file span { display: block; font-size: 12px; color: rgba(244,241,236,0.72); }
.paper-wrap { position: relative; margin: 18px 6px 0; }
.paper { position: relative; background: #FBF9F4; color: #0a0a0a; border-radius: 6px; padding: 18px 20px 14px; font-family: var(--sys); box-shadow: 0 22px 44px rgba(0,0,0,0.4); transform: rotate(-1.2deg); }
.paper-back { position: absolute; inset: 0; transform: rotate(2.2deg); background: #E9E3D6; box-shadow: 0 10px 24px rgba(0,0,0,0.3); padding: 0; }
.pp-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #0a0a0a; padding-bottom: 8px; }
.pp-top span { font-family: var(--display); font-size: 15px; letter-spacing: 0.18em; } .pp-top em { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: 0.14em; color: #5B1A1A; }
.paper h3 { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: -1px; margin: 14px 0 0; line-height: 1; }
.pp-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: #6b6b6b; margin: 6px 0 0; }
.pp-rule { height: 3px; width: 44px; background: #5B1A1A; margin: 12px 0; }
.pp-lead { font-family: var(--display); font-size: 15px; line-height: 1.4; margin: 0 0 12px; color: #1c1c1c; }
.pp-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; } .pp-tbl th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; font-weight: 500; color: #6b6b6b; padding: 0 0 5px; border-bottom: 1px solid #d9d3c6; }
.pp-tbl td { padding: 7px 0; border-bottom: 1px solid #ece6d9; } .pp-tbl td:last-child { color: #35674A; font-weight: 600; } .pp-tbl td b { color: #9D302A; }
.pp-foot { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: #8a857a; letter-spacing: 0.06em; }
.pp-vits { margin-top: 12px; display: flex; flex-direction: column; }
.pv { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #ece6d9; }
.pv > div:nth-child(2) { flex: 1; } .pv b { display: block; font-size: 15px; font-weight: 600; } .pv small { display: block; font-size: 11.5px; color: #6b6b6b; } .pv > div > span { display: block; font-size: 12px; color: #8D5B19; margin-top: 1px; }
.pv-t { text-align: right; } .pv-t b { font-size: 13px; color: #35674A; white-space: nowrap; }
.pp-note { margin-top: 12px; font-size: 12px; line-height: 1.4; color: #3a3a3a; background: #F1ECE0; border-radius: 6px; padding: 9px 11px; }
