/* 17H — design system v25. Light "lab glass" + deep-navy instrument panels.
   Inter for UI, tabular numerals for data. The logo (17H box + wordmark) is
   untouched: Fraunces + IBM Plex Mono, navy #123A5E. */
:root {
  --bg: #F5F6F8;
  --solid: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.72);
  --ink: #0B1320;
  --muted: #566274;
  --faint: #8A94A3;
  --accent: #123A5E;          /* brand navy (logo) */
  --blue: #2F7DF6;            /* signal blue */
  --cyan: #46C8FF;
  --accent-soft: #E6EEF7;
  --line: rgba(11, 19, 32, 0.09);
  --line-strong: rgba(11, 19, 32, 0.18);
  --warn: #B42318; --warn-soft: #FDECEA;
  --good: #14805E;
  --deep: linear-gradient(160deg, #06121F 0%, #0C2540 55%, #123A5E 100%);
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --shadow: 0 1px 2px rgba(11,19,32,.04), 0 12px 32px -12px rgba(11,19,32,.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 72px; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; padding-inline: 24px; }
.wrap { max-width: 1120px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font); font-weight: 650; letter-spacing: -0.025em; text-wrap: balance; margin: 0; color: var(--ink); }
a { color: inherit; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }

/* ---- nav: frosted glass ---- */
nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; margin-inline: -24px; padding-inline: max(24px, calc((100vw - 1120px) / 2)); background: rgba(245,246,248,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
/* logo — unchanged */
.brand { display: flex; align-items: baseline; gap: 10px; font-family: "Fraunces", serif; font-size: 19px; font-weight: 600; text-decoration: none; color: #10161D; }
.brand .num { font-family: "IBM Plex Mono", monospace; background: #123A5E; color: #F6F7F9; font-size: 13px; font-weight: 600; padding: 3px 7px; border-radius: 3px; letter-spacing: 0.02em; }
nav .links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); align-items: center; }
nav .links a, nav .links button.link { text-decoration: none; background: none; border: none; font-family: inherit; font-size: 14px; color: var(--muted); cursor: pointer; padding: 0; transition: color .15s; }
nav .links a:hover, nav .links button.link:hover { color: var(--ink); }
nav .links a.btn-primary { color: #fff; padding: 8px 16px; font-size: 13.5px; background: var(--accent); }
@media (max-width: 760px) { nav .links a:not(.btn) { display: none; } nav .links { gap: 14px; } }

/* ---- buttons ---- */
.btn { font-family: inherit; font-size: 15px; font-weight: 600; padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px rgba(18,58,94,.55); }
.btn-primary:hover { background: #0E2F4D; box-shadow: 0 10px 26px -8px rgba(18,58,94,.6); }
.btn-primary:disabled { opacity: .55; cursor: default; box-shadow: none; }
.btn-ghost { background: rgba(255,255,255,.6); border-color: var(--line-strong); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; }
.btn-small { padding: 9px 16px; font-size: 13.5px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---- hero ---- */
.hero-wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 72px 56px; }
.hero-wrap::before { content: ""; position: absolute; inset: -80px -24px 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 0%, transparent 75%); }
.hero-wrap::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -60px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 40%, rgba(70,200,255,.38), rgba(47,125,246,.18) 45%, transparent 70%); filter: blur(30px); }
@media (max-width: 900px) { .hero-wrap { grid-template-columns: 1fr; padding-block: 48px 40px; } }
.hero { display: grid; gap: 24px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent) 0%, var(--blue) 55%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 540px; margin: 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

.lab { background: var(--glass); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); border: 1px solid rgba(255,255,255,.8); border-radius: var(--r-lg); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9); padding: 22px 22px 18px; }
.lab-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.lab-title { font-size: 15px; font-weight: 600; }
.lab-badge { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.lab svg { width: 100%; height: auto; display: block; }
.lab-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill { font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pill.dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-right: 7px; vertical-align: 1px; }
.draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.2s .3s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .draw { animation: none; stroke-dashoffset: 0; } }

/* ---- stat tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--solid); border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--shadow); }
.tile .val { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; color: var(--accent); }
.tile .lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---- sections ---- */
section { padding-block: 72px; }
section.tight { padding-block: 36px; }
.section-head { display: grid; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; max-width: 560px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--solid); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); }
.panel .tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 18px; }
.panel h3 { font-size: 26px; line-height: 1.15; margin-bottom: 12px; }
.panel p { color: var(--muted); font-size: 16px; margin: 0; }
.panel.solution { background: var(--deep); position: relative; overflow: hidden; }
.panel.solution::after { content: ""; position: absolute; width: 320px; height: 320px; right: -90px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(70,200,255,.45), transparent 65%); }
.panel.solution .tag { color: var(--cyan); }
.panel.solution h3 { color: #fff; }
.panel.solution p { color: #B9CBE0; position: relative; z-index: 1; }

/* instrument band: how it works */
.band { background: var(--deep); border-radius: 36px; padding: clamp(28px, 5vw, 64px); color: #fff; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 80% 0%, #000, transparent 70%); }
.band > * { position: relative; }
.band .eyebrow { color: var(--cyan); }
.band .section-head h2 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); padding: 28px; display: grid; gap: 12px; align-content: start; backdrop-filter: blur(10px); }
.step .idx { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; background: linear-gradient(120deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.step h3 { font-size: 20px; color: #fff; }
.step p { color: #B9CBE0; font-size: 15px; margin: 0; }
.step .ex { font-size: 12.5px; font-weight: 600; background: rgba(70,200,255,.14); color: var(--cyan); padding: 6px 12px; border-radius: 999px; display: inline-block; width: fit-content; }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } }
.audience-card { background: var(--solid); border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow); transition: transform .2s; }
.audience-card:hover { transform: translateY(-3px); }
.audience-card .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.audience-card .ico svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.audience-card h3 { font-size: 19px; margin-bottom: 8px; }
.audience-card p { font-size: 15px; color: var(--muted); margin: 0; }

.waitlist { background: var(--deep); color: #fff; border-radius: 36px; padding: clamp(32px, 6vw, 72px); display: grid; gap: 20px; position: relative; overflow: hidden; }
.waitlist::after { content: ""; position: absolute; width: 480px; height: 480px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(70,200,255,.4), transparent 65%); }
.waitlist > * { position: relative; z-index: 1; }
.waitlist .eyebrow { color: var(--cyan); }
.waitlist h2 { color: #fff; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.06; letter-spacing: -0.035em; max-width: 620px; font-weight: 700; }
.waitlist p { color: #B9CBE0; max-width: 520px; font-size: 16.5px; margin: 0; }
.waitlist form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.waitlist input[type="email"] { flex: 1; min-width: 220px; padding: 14px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-family: inherit; font-size: 15px; background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(8px); }
.waitlist input[type="email"]::placeholder { color: #8FA6C0; }
.waitlist .btn-primary { background: #fff; color: var(--accent); box-shadow: none; }
.waitlist .status { font-size: 13.5px; color: var(--cyan); }
.waitlist .fine { font-size: 13px; color: #8FA6C0; }

.banner { background: var(--accent-soft); border-radius: var(--r-md); padding: 18px 22px; display: grid; gap: 4px; }
.banner .banner-title { font-size: 14px; font-weight: 650; color: var(--accent); }
.banner p { margin: 0; font-size: 13.5px; color: var(--muted); }
.note { font-size: 12.5px; color: var(--faint); margin: 0; }

footer { padding-block: 48px 64px; display: grid; gap: 18px; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 28px; }
.footer-row a { text-decoration: none; color: var(--muted); }
.footer-row a:hover { color: var(--ink); }
.ig-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--accent) !important; font-weight: 600; font-size: 14px; }
.ig-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- planner form ---- */
.planner { display: grid; gap: 12px; max-width: 780px; }
.g-step { background: var(--solid); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow); }
.g-step h3 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; display: flex; gap: 10px; align-items: center; }
.g-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--blue)); color: #fff; font-size: 12px; font-weight: 650; letter-spacing: 0; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g-chip input { position: absolute; opacity: 0; pointer-events: none; }
.g-chip { border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: 14.5px; user-select: none; background: var(--bg); border: 1px solid transparent; transition: background .15s, color .15s, transform .1s; }
.g-chip:hover { background: var(--accent-soft); }
.g-chip:active { transform: scale(.97); }
.g-chip:has(input:checked) { background: var(--accent); color: #fff; font-weight: 600; }
.g-chip:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.g-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.g-inl { font-size: 14.5px; color: var(--muted); }
.planner input[type=number], .planner select, .planner input[type=time] { font: inherit; font-size: 15px; color: inherit; background: var(--bg); border: 1px solid transparent; border-radius: 12px; padding: 10px 14px; }
.planner input[type=number] { width: 110px; }
.planner input:focus, .planner select:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.g-hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* ---- plan output ---- */
.results { margin-top: 40px; display: grid; gap: 20px; max-width: 780px; }
.g-sec-t { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 30px 0 12px; }
.g-sum { background: var(--deep); color: #E6F0FA; border-radius: var(--r-md); padding: 20px 22px; font-size: 15.5px; line-height: 1.5; }
.g-sum b { color: var(--cyan); font-size: 1.15em; }
.g-alert { background: var(--accent-soft); border-radius: var(--r-sm); padding: 14px 18px; font-size: 14.5px; margin-top: 10px; color: var(--accent); }
.g-cards { display: grid; gap: 10px; }
.g-card { background: var(--solid); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow); }
.g-card-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.g-card-n { font-weight: 650; font-size: 16.5px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.g-card-n::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(47,125,246,.15); }
.g-card.opt .g-card-n::before { background: var(--faint); box-shadow: 0 0 0 4px rgba(138,148,163,.15); }
.g-card.lab .g-card-n::before { background: var(--warn); box-shadow: 0 0 0 4px rgba(180,35,24,.12); }
.g-tag { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.g-card.opt .g-tag { background: var(--bg); color: var(--muted); }
.g-card.lab .g-tag { background: var(--warn-soft); color: var(--warn); }
.g-kv { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: 14.5px; }
.g-kv dt { color: var(--faint); font-size: 13px; padding-top: 1px; }
.g-kv dd { margin: 0; }
.g-tl { background: var(--solid); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
.g-tl-r { display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line); }
.g-tl-r:first-child { border-top: 0; }
.g-tl-k { padding: 14px 18px; font-weight: 600; font-size: 14px; color: var(--accent); }
.g-tl-v { padding: 14px 18px; font-size: 14.5px; }
.g-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.g-day { background: var(--solid); border-radius: var(--r-sm); padding: 12px 4px; text-align: center; font-size: 12px; min-height: 96px; box-shadow: var(--shadow); }
.g-day b { display: block; font-size: 13.5px; margin-bottom: 6px; }
.g-day.inj { background: linear-gradient(160deg, var(--accent), var(--blue)); color: #fff; }
.g-day.peak { background: var(--accent-soft); }
.g-day small { display: block; color: var(--muted); line-height: 1.35; }
.g-day.inj small { color: #DCEBFF; }
@media (max-width: 560px) { .g-week { grid-template-columns: repeat(4, 1fr); } .g-tl-r { grid-template-columns: 1fr; } .g-tl-k { padding-bottom: 0; } }

/* ---- private area ---- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.bar .meta { font-size: 14px; color: var(--muted); margin: 0; }
.bar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); background: var(--bg); padding: 14px 16px; border-radius: var(--r-sm); }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.status-line { font-size: 14px; color: var(--muted); min-height: 20px; margin: 0; }
.history { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 780px; }
.history h3 { font-size: 20px; margin-bottom: 14px; }
.h-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.h-row:first-of-type { border-top: none; }
.h-row .h-sub { color: var(--muted); font-size: 13px; }
.h-row .h-actions { display: flex; gap: 14px; }
.link-btn { background: none; border: none; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--blue); cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--warn); }
.viewing { background: var(--accent-soft); border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.print-head { display: none; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: rgba(11,19,32,.06); border-radius: 999px; margin-bottom: 32px; max-width: 100%; overflow-x: auto; }
.tab { background: none; border: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); padding: 9px 22px; cursor: pointer; white-space: nowrap; border-radius: 999px; transition: background .2s, color .2s, box-shadow .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11,19,32,.12), 0 4px 12px -4px rgba(11,19,32,.12); }
.pane { max-width: 780px; }

.today-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.today-head h3 { font-size: 34px; letter-spacing: -0.035em; font-weight: 700; }
.today-head .date { color: var(--muted); font-size: 15px; margin-top: 2px; text-transform: capitalize; }
.streak { font-size: 13px; background: var(--deep); color: var(--cyan); padding: 7px 14px; font-weight: 600; border-radius: 999px; }
.quote { margin: 0 0 18px; padding: 26px 28px; background: var(--solid); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.quote p { font-size: clamp(20px, 3vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin: 0; background: linear-gradient(100deg, var(--accent), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote .lbl, .tipbox .lbl { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.tipbox { background: var(--deep); color: #E6F0FA; border-radius: var(--r-lg); padding: 24px 28px; margin-bottom: 24px; position: relative; overflow: hidden; }
.tipbox::after { content: ""; position: absolute; width: 200px; height: 200px; right: -60px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(70,200,255,.35), transparent 65%); }
.tipbox .lbl { color: var(--cyan); position: relative; z-index: 1; }
.tipbox p { margin: 0; font-size: 17px; line-height: 1.45; position: relative; z-index: 1; }
.tipbox.care { background: var(--solid); color: var(--ink); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--blue); }
.tipbox.care::after { display: none; }
.tipbox.care .lbl { color: var(--blue); }

.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ring { display: grid; justify-items: center; gap: 6px; }
.ring svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.ring .trk { stroke: rgba(11,19,32,.08); }
.ring .bar-c { transition: stroke-dashoffset .5s cubic-bezier(.4,0,.2,1); }
.ring span { font-size: 13px; color: var(--muted); font-weight: 500; }

.ci { background: var(--solid); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 26px; box-shadow: var(--shadow); }
.ci h3 { font-size: 24px; letter-spacing: -0.03em; }
.ci .sub { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.q-label { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { flex: 1 1 0; min-width: 82px; background: var(--bg); border: 1px solid transparent; border-radius: 18px; padding: 14px 6px 12px; cursor: pointer; font: inherit; color: var(--ink); display: grid; gap: 6px; justify-items: center; transition: transform .12s, background .2s; }
.opt .em { font-size: 28px; line-height: 1; transition: transform .2s; }
.opt .tx { font-size: 13px; color: var(--muted); }
.opt:hover { background: var(--accent-soft); }
.opt:active { transform: scale(.96); }
.opt[aria-pressed="true"] { background: linear-gradient(160deg, var(--accent), #1D5A94); box-shadow: 0 8px 20px -8px rgba(18,58,94,.6); }
.opt[aria-pressed="true"] .em { transform: scale(1.12); }
.opt[aria-pressed="true"] .tx { color: #fff; font-weight: 600; }
.supp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.supp { border-radius: 999px; padding: 9px 16px; background: var(--bg); border: 1px solid transparent; font: inherit; font-size: 14.5px; cursor: pointer; color: var(--ink); transition: background .15s; }
.supp:hover { background: var(--accent-soft); }
.supp[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }
.supp[aria-pressed="true"]::before { content: "\2713\00a0 "; }
textarea.note-in { width: 100%; min-height: 96px; font: inherit; font-size: 15.5px; padding: 14px 16px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--bg); color: var(--ink); resize: vertical; }
textarea.note-in:focus { outline: 2px solid var(--blue); background: #fff; }
.editing { background: var(--accent-soft); border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.noplan { background: var(--solid); border-radius: var(--r-md); padding: 24px; display: grid; gap: 10px; margin-bottom: 18px; justify-items: start; box-shadow: var(--shadow); }
.noplan h3 { font-size: 19px; } .noplan p { margin: 0; color: var(--muted); font-size: 15px; }

.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; }
.cell { background: var(--solid); border: 1px solid transparent; border-radius: 16px; padding: 10px 2px; text-align: center; font: inherit; cursor: pointer; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s; }
.cell:hover { transform: translateY(-2px); }
.cell small { display: block; font-size: 11px; color: var(--faint); text-transform: capitalize; }
.cell b { display: block; font-size: 14px; margin: 2px 0; }
.cell .em { font-size: 22px; min-height: 28px; display: block; color: var(--line-strong); }
.cell.has { box-shadow: inset 0 0 0 1.5px var(--blue), var(--shadow); }
.d-row { border-top: 1px solid var(--line); padding: 18px 0; display: grid; gap: 10px; }
.d-row:first-child { border-top: none; }
.d-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-date { font-weight: 650; font-size: 16px; text-transform: capitalize; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d-chip { font-size: 12.5px; background: var(--accent-soft); color: var(--accent); padding: 4px 11px; border-radius: 999px; }
.d-note { margin: 0; font-size: 15px; white-space: pre-wrap; }

/* ---- supplements ---- */
.supp-intro { color: var(--muted); font-size: 16px; margin: 0 0 8px; max-width: 560px; }
.cat { margin-top: 40px; }
.cat-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.cat-head h3 { font-size: 24px; letter-spacing: -0.03em; }
.cat-badge { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--deep); color: var(--cyan); padding: 4px 10px; border-radius: 999px; }
.cat-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.prod { background: var(--solid); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s; }
.prod:hover { transform: translateY(-3px); }
.prod-pic { aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); display: grid; place-items: center; padding: 14px; }
.prod-pic img { width: 100%; height: 100%; object-fit: contain; }
.prod-pic.ph svg { width: 38%; height: 38%; stroke: var(--line-strong); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.prod-body { padding: 16px 16px 18px; display: grid; gap: 12px; flex: 1; align-content: start; }
.prod-name { font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.3; margin: 0; }
.prod-note { font-size: 13px; color: var(--muted); margin: -6px 0 0; }
.code-box { width: 100%; border: none; cursor: pointer; font: inherit; background: linear-gradient(160deg, var(--accent), #1D5A94); color: #fff; border-radius: 12px; padding: 12px 10px; font-size: 16px; font-weight: 650; letter-spacing: .08em; text-align: center; box-shadow: 0 8px 20px -10px rgba(18,58,94,.7); transition: transform .12s, filter .2s; }
.code-box:hover { filter: brightness(1.12); }
.code-box:active { transform: scale(.98); }
.code-box small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .04em; opacity: .75; margin-top: 2px; text-transform: none; }
.prod-shop { font-size: 13.5px; font-weight: 600; color: var(--blue); text-decoration: none; justify-self: center; }
.prod-shop:hover { text-decoration: underline; text-underline-offset: 3px; }

@media print {
  body { background: #fff; padding: 0; }
  nav, footer, .tabs, .bar .actions, #plan-form-wrap, .history, .viewing, #lang-switch, .no-print, #pane-today, #pane-diary, #pane-supp { display: none !important; }
  .print-head { display: block; margin-bottom: 16px; }
  .g-card, .g-tl, .g-day { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .g-sum { background: #eef3f8; color: #000; }
}
@media (max-width: 480px) {
  .planner input, .waitlist input[type="email"], select, input[type="email"], textarea { font-size: 16px !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ===== v27: CDMO matcher ===== */
.mm-form { display: grid; gap: 14px; margin-top: 10px; }
.mm-f { display: grid; gap: 6px; }
.mm-f > span { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.mm-f select { font: inherit; font-size: 15px; color: inherit; background: var(--bg); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; width: 100%; }
.mm-f select:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.mm-caps { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-cap { cursor: pointer; }
.mm-cap input { position: absolute; opacity: 0; pointer-events: none; }
.mm-cap span { display: inline-block; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid transparent; transition: background .15s, color .15s; }
.mm-cap:hover span { background: var(--accent-soft); }
.mm-cap input:checked + span { background: var(--accent); color: #fff; }
.mm-cap input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.mm-results { display: grid; gap: 14px; padding-top: 24px; }
.mm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mm-head h3 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.03em; }
.mm-count { font-size: 14px; font-weight: 600; color: var(--blue); }
.mm-card { display: grid; grid-template-columns: 52px 1fr; gap: 16px; background: var(--solid); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow); }
.mm-rank { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #F6F7F9; display: grid; place-items: center; font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 16px; }
.mm-body h4 { font-size: 19px; margin: 0 0 6px; line-height: 1.25; }
.mm-body { min-width: 0; }
.mm-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--muted); }
.mm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.mm-chip { font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.mm-chip.ok { background: #E3F4EC; color: var(--good); }
.mm-chip.no { background: var(--warn-soft); color: var(--warn); }
.mm-chip.na { background: var(--bg); color: var(--faint); }
.mm-chip.want { box-shadow: inset 0 0 0 1.5px currentColor; }
.mm-body p { font-size: 14.5px; color: var(--muted); margin: 0 0 8px; }
.mm-src { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; }
.mm-src:hover { text-decoration: underline; }
.mm-disc { font-size: 13px; color: var(--faint); max-width: 760px; margin: 6px 0 0; }
@media (max-width: 560px) { .mm-card { grid-template-columns: 1fr; } }
#results[hidden] { display: none !important; }
html, body { overflow-x: clip; }
nav .btn, .brand { white-space: nowrap; }

/* ===== v28: detailed matcher (private) ===== */
.mm-form-wide { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.mm-detail .mm-body h5 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 16px 0 6px; }
.mm-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; margin: 10px 0 0; }
.mm-dl dt { font-size: 12px; font-weight: 600; color: var(--faint); letter-spacing: .04em; }
.mm-dl dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink); }
.mm-score { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--blue); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 4px; }
.mm-ins { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--muted); display: grid; gap: 4px; }
.mm-hint { font-size: 13px; color: var(--faint); margin: 6px 0 0; }
