/* EbbDeck — public marketing pages and account (sign-up / log-in) pages. Colors only via variables (app.css + the few below). */

/* Section tokens for the public site: the deep navy band and the phone/browser hardware. Dark variants below. */
:root {
  --ink: #0E1A2B; --ink-card: #17263B; --ink-line: #263A55; --ink-text: #FFFFFF; --ink-muted: #C9D3E0; --ink-accent: #8FB4F0;
  --bezel: #1B1F24; --bezel-edge: #3B424C; --bezel-btn: #2A3038;
  --chart-soft: #9FB6DB; --flame-soft: #FBEADB; --flame-strong: #C2560C;
  --device-shadow: 0 40px 80px -40px rgba(14, 26, 43, .45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #111B2B; --ink-card: #18263A; --ink-line: #2A3B54; --ink-text: #EAF0F8; --ink-muted: #B5C3D6; --ink-accent: #A9C6F5;
    --bezel: #05070A; --bezel-edge: #3A4757; --bezel-btn: #2A3543;
    --chart-soft: #3A5A8C; --flame-soft: #3A2414; --flame-strong: #F58A45;
    --device-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  --ink: #111B2B; --ink-card: #18263A; --ink-line: #2A3B54; --ink-text: #EAF0F8; --ink-muted: #B5C3D6; --ink-accent: #A9C6F5;
  --bezel: #05070A; --bezel-edge: #3A4757; --bezel-btn: #2A3543;
  --chart-soft: #3A5A8C; --flame-soft: #3A2414; --flame-strong: #F58A45;
  --device-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}

/* ---------------------------------------------------------------- header + footer (public layout) */
.site-header { background: var(--card); }
.site-header .wrap { gap: 22px; }
.site-nav { gap: 22px; }
.site-nav a { font-size: 15px; font-weight: 600; white-space: nowrap; }
.site-nav .nav-qotd { color: var(--teal); }
.nav-login-mobile { display: none; }
.site-actions { margin-left: auto; }
@media (max-width: 1140px) {
  .site-header .wrap { gap: 12px; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 32px 16px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); min-height: 44px; }
  .site-actions .menu-btn { display: inline-flex; width: 44px; height: 44px; padding: 0; margin-left: 0; }
}
@media (max-width: 900px) { .nav-login-mobile { display: block; } }
@media (max-width: 640px) {
  .site-nav { padding: 8px 16px 16px; }
}
.site-footer { background: var(--card); }
.site-footer .wrap.footer-grid { padding-bottom: 24px; }
.footer-brand p { margin: 12px 0 0; max-width: 340px; }
.site-footer .wrap.footer-legal { padding-top: 0; padding-bottom: 36px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.footer-legal p:first-child { border-top: 1px solid var(--line); padding-top: 18px; }
.footer-legal p { margin: 0; max-width: 980px; }
@media (max-width: 760px) { .footer-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- shared bits */
.btn-lg { min-height: 52px; padding: 0 24px; border-radius: 12px; }
.narrow { max-width: 900px; }
.lead { font-size: 19px; color: var(--text-2); max-width: 720px; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.section { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 36px; }
.section-tight { padding-top: 8px; padding-bottom: 48px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.section-head.center { align-items: center; text-align: center; margin: 0 auto; }
.section-head p { margin: 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strong-link { font-weight: 700; }
.page-head { padding-top: 64px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.page-head h1 { max-width: 860px; }
.page-head .lead { margin: 0; }
.page-head-left { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 14px; }
.page-head-left h1 { font-size: clamp(30px, 4vw, 40px); }
.page-hero { background: var(--card); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 48px; padding-bottom: 44px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.025em; }
.page-hero .lead { margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--primary); }
.err { font-size: 14px; color: var(--bad); font-weight: 600; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.h-xl { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.h-lg { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.03em; }
.sec-lead { margin: 0; font-size: 18px; color: var(--text-2); }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* Answer options (question pages) */
.opt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.opt { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 12px; color: var(--text); background: var(--card); display: flex; gap: 6px; align-items: flex-start; }
.opt svg { flex: none; margin-left: auto; color: var(--ok); margin-top: 2px; }
.opt-right { border-color: var(--ok); background: var(--ok-bg); font-weight: 600; }
.opt-l { font-weight: 700; flex: none; min-width: 1.3em; }

/* ---------------------------------------------------------------- try-a-question card (home + sample questions) */
.tryq { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tryq.card { padding: 24px; border-radius: 18px; }
.tryq-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.tryq-stem { margin: 0; font-size: 16px; }
.labs-tbl { font-size: 14px; }
.labs-tbl td, .labs-tbl th { padding: 7px 12px; }
.tryq-opts { display: flex; flex-direction: column; gap: 8px; }
.tryq-opt { display: flex; align-items: flex-start; gap: 10px; text-align: left; width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; flex-wrap: wrap; }
.tryq-opt:hover { border-color: var(--primary); }
.tryq-opt .opt-l { font-weight: 700; min-width: 1.2em; }
.tryq-opt .opt-t { flex: 1 1 60%; min-width: 0; }
.tryq.is-answered .tryq-opt { cursor: default; }
.tryq.is-answered .tryq-opt:hover { border-color: var(--line-strong); }
.tryq-opt.is-right, .tryq.is-answered .tryq-opt.is-right:hover { border: 2px solid var(--ok); background: var(--ok-bg); font-weight: 600; }
.tryq-opt.is-wrong, .tryq.is-answered .tryq-opt.is-wrong:hover { border: 2px solid var(--bad); background: var(--bad-bg); }
.opt-tag { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.is-right .opt-tag { color: var(--ok); }
.is-wrong .opt-tag { color: var(--bad); }
.tryq-status { margin: 0; font-weight: 700; min-height: 0; }
.tryq-status:empty { display: none; }
.tryq[data-result="right"] .tryq-status { color: var(--ok); }
.tryq[data-result="wrong"] .tryq-status { color: var(--bad); }
.tryq-conf { display: flex; flex-direction: column; gap: 8px; }
.tryq-conf[hidden] { display: none; }
.tryq-conf-q { font-size: 14px; font-weight: 700; color: var(--text-2); }
.tryq-conf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.conf-btn { min-height: 46px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; padding: 0 6px; }
.conf-btn:hover { border-color: var(--primary); }
.conf-btn[aria-pressed="true"] { border: 2px solid var(--primary); background: var(--accent-soft); color: var(--accent-soft-text); }
.conf-guess[aria-pressed="true"] { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.conf-unsure[aria-pressed="true"] { border-color: var(--mark-strong); background: var(--mark-bg); color: var(--mark); }
.conf-sure[aria-pressed="true"] { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.tryq-sched { margin: 0; color: var(--text-2); }
.tryq-sched:empty { display: none; }
.tryq-foot { margin: 0; }
.reveal { border-top: 1px solid var(--line); padding-top: 12px; }
.reveal summary { cursor: pointer; font-weight: 700; color: var(--primary); min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
.reveal summary::-webkit-details-marker { display: none; }
.reveal summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.reveal[open] summary::before { transform: rotate(45deg); }
.reveal-body { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.reveal-body p { margin: 0; }
.reveal-body h4 { font-size: 16px; margin-top: 4px; }
.answer-line { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-bg); color: var(--ok); border-radius: var(--radius-sm); padding: 12px 14px; }
.answer-line svg { flex: none; margin-top: 2px; }
.answer-line span { color: var(--text); }
.answer-line strong { color: var(--ok); }
.why-wrong { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.why-wrong li { border-left: 3px solid var(--line-strong); padding-left: 12px; }
.refs { border-top: 1px dashed var(--line-strong); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .tryq.card { padding: 16px; } .conf-btn { font-size: 14px; } }

/* ---------------------------------------------------------------- home: hero + devices */
.home-hero { background: var(--card); overflow: hidden; border-bottom: 1px solid var(--line); }
.home-hero-inner { padding-top: 72px; display: flex; flex-direction: column; gap: 56px; }
.home-hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.kicker-pill { margin: 0; display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--text-2); }
.home-hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -0.035em; }
.home-lead { margin: 0; font-size: 19px; color: var(--text-2); max-width: 600px; }
.home-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 4px; }
.qotd-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent); background: var(--teal-bg); color: var(--text); text-decoration: none; font-size: 15px; }
.qotd-link b { color: var(--teal); }
.qotd-link svg { color: var(--teal); flex: none; }
.qotd-link:hover { color: var(--text); border-color: var(--teal); }
.qotd-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 22%, transparent); }

.devices { margin: 0; position: relative; }
.devices .browser { margin-right: 150px; }
.devices .devices-phone { position: absolute; right: 0; top: 44px; --ps: .92; }

/* Browser window */
.browser { background: var(--card); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: var(--device-shadow), 0 0 0 6px var(--bg); font-size: 13px; line-height: 1.4; color: var(--text); }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #E0645A; }
.browser-dots i:nth-child(2) { background: #E3B341; }
.browser-dots i:nth-child(3) { background: #5DBB5D; }
.browser-nav { display: flex; gap: 10px; color: var(--muted); }
.browser-url { flex: 1; max-width: 420px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 4px 12px; font-size: 12px; color: var(--text-2); }
.browser-spacer { width: 60px; }
.dash { display: grid; grid-template-columns: 210px minmax(0, 1fr); background: var(--surface); }
.dash-side { background: var(--card); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.dash-logo { display: flex; align-items: center; gap: 8px; padding: 0 6px 14px; font-family: var(--font-head); font-size: 17px; letter-spacing: -.02em; }
.dash-logo b { font-weight: 700; }
.dash-nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); }
.dash-nav .grow { flex: 1; }
.dash-nav.is-on { background: var(--accent-soft); color: var(--accent-soft-text); font-weight: 600; }
.dash-badge { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--primary); color: var(--on-primary); }
.dash-count { margin-top: 20px; background: var(--hero-grad); color: #FFFFFF; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.dash-count-cap { font-size: 10px; letter-spacing: .08em; color: #D6E2FA; font-weight: 600; }
.dash-count-n { font-family: var(--font-head); font-size: 28px; font-weight: 800; line-height: 1.1; }
.dash-count-s { font-size: 11px; color: #E4ECFC; }
.dash-user { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 14px 6px 4px; border-top: 1px solid var(--line); }
.dash-user b { display: block; font-weight: 600; }
.dash-user small { font-size: 11px; color: var(--muted); }
.dash-av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-soft-text); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.dash-main { padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash-top { display: flex; align-items: center; gap: 14px; }
.dash-hello { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.dash-hello small { font-size: 12px; color: var(--muted); }
.dash-hello b { font-family: var(--font-head); font-size: 21px; font-weight: 700; }
.dash-sync { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dash-search { display: flex; align-items: center; gap: 8px; width: 200px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dash-kpi, .dash-panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dash-cap { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-n { font-family: var(--font-head); font-size: 28px; font-weight: 800; line-height: 1; white-space: nowrap; }
.dash-n small { font-size: 14px; color: var(--muted); font-weight: 600; }
.dash-n.is-blue, .is-blue { color: var(--primary); }
.dash-s { font-size: 11px; color: var(--muted); }
.dash-s.is-ok { color: var(--ok); font-weight: 600; }
.dash-btn { margin-top: 4px; padding: 7px; border-radius: 7px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 12px; text-align: center; }
.dash-bar { display: block; height: 6px; border-radius: 3px; background: var(--accent-soft); margin-top: 4px; }
.dash-bar i { display: block; height: 6px; border-radius: 3px; background: var(--primary); }
.dash-bar.is-flame { background: var(--flame-soft); }
.dash-bar.is-flame i { background: var(--flame-strong); }
.dash-spark { width: 100%; height: 32px; }
.dash-spark path { stroke: var(--primary); }
.dash-streak { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.dash-streak i { height: 18px; border-radius: 4px; background: var(--primary); }
.dash-streak i.is-open { background: none; border: 2px dashed var(--chart-soft); }
.dash-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.dash-ph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.dash-ph b { font-weight: 600; font-size: 14px; }
.dash-ph span { font-size: 11px; color: var(--muted); }
.dash-ph span.is-blue { color: var(--primary); font-weight: 700; }
.dash-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 100px; border-bottom: 1px solid var(--line); }
.dash-chart i { border-radius: 4px 4px 0 0; background: var(--chart-soft); }
.dash-chart i.is-now { background: var(--primary); }
.dash-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.dash-weak { display: grid; grid-template-columns: minmax(0, 1fr) 90px 34px; gap: 8px; align-items: center; padding: 3px 0; }
.dash-weak .dash-bar { margin: 0; }
.dash-weak > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-weak .muted { text-align: right; }
.dash-tests { padding: 4px 16px; gap: 0; }
.dash-tr { display: grid; grid-template-columns: 1.6fr 1fr .7fr .6fr .9fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.dash-tr:last-child { border-bottom: 0; }
.dash-tr > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-th { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

/* iPhone (300 x 650 design size; --ps scales it) */
.phone-wrap { --ps: 1; width: calc(300px * var(--ps)); height: calc(650px * var(--ps)); flex: none; }
.iphone { position: relative; width: 300px; transform: scale(var(--ps)); transform-origin: top left; background: var(--bezel); border-radius: 54px; padding: 11px; box-shadow: 0 0 0 1.5px var(--bezel-edge), 0 40px 70px -24px rgba(14, 26, 43, .6); font-family: var(--font-body); line-height: 1.3; }
.iphone-btn { position: absolute; width: 3px; border-radius: 2px; background: var(--bezel-btn); }
.iphone-btn-a { left: -3px; top: 118px; height: 30px; }
.iphone-btn-b { left: -3px; top: 166px; height: 56px; }
.iphone-btn-c { left: -3px; top: 232px; height: 56px; }
.iphone-btn-r { right: -3px; top: 190px; height: 86px; }
.iphone-screen { position: relative; background: var(--bg); border-radius: 44px; overflow: hidden; height: 628px; color: var(--text); }
.iphone-island { position: absolute; top: 11px; left: 50%; margin-left: -46px; width: 92px; height: 27px; border-radius: 999px; background: #000000; z-index: 2; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 15px 28px 0 30px; font-size: 13px; font-weight: 600; height: 40px; }
.ph-status-r { display: flex; align-items: flex-end; gap: 2px; }
.ph-status-r i { width: 3px; background: var(--text); border-radius: 1px; }
.ph-status-r i:nth-child(1) { height: 5px; } .ph-status-r i:nth-child(2) { height: 7px; } .ph-status-r i:nth-child(3) { height: 9px; }
.ph-status-r b { width: 20px; height: 10px; border-radius: 3px; background: var(--text); margin-left: 6px; opacity: .85; }
.ph-body { padding: 10px 16px 0; display: flex; flex-direction: column; gap: 13px; }
.ph-head { display: flex; align-items: center; gap: 7px; }
.ph-head .logo-mark { flex: none; }
.ph-word { font-family: var(--font-head); font-size: 17px; letter-spacing: -.03em; color: var(--text); }
.ph-word b { font-weight: 700; }
.ph-pill { font-size: 8px; font-weight: 700; letter-spacing: .1em; padding: 2px 6px; border-radius: 999px; background: var(--teal-bg); color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent); }
.ph-avatar { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(160deg, #3F6AD8, #2B4FB4); color: #FFFFFF; font-weight: 600; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.ph-greet { display: flex; flex-direction: column; gap: 2px; }
.ph-date { font-size: 9.5px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
.ph-hello { font-family: var(--font-head); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.ph-mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; }
.ph-streak { background: var(--hero-grad); color: #FFFFFF; border-radius: 20px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 14px 28px -16px rgba(46, 82, 180, .7); }
.ph-streak-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ph-streak-top > div { display: flex; flex-direction: column; gap: 4px; }
.ph-cap { font-size: 8.5px; font-weight: 500; letter-spacing: .1em; color: #D6E2FA; }
.ph-streak-n { display: flex; align-items: center; gap: 6px; }
.ph-big { font-size: 34px; line-height: 1; }
.ph-days { font-size: 12px; color: #E4ECFC; padding-top: 10px; }
.ph-ring { width: 48px; height: 48px; position: relative; display: flex; align-items: center; justify-content: center; }
.ph-ring svg { position: absolute; inset: 0; }
.ph-ring-t { display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-size: 11px; }
.ph-ring-t small, .ph-exam-ring small { font-size: 6px; letter-spacing: .06em; color: #D6E2FA; }
.ph-note { font-size: 9.5px; color: #E4ECFC; line-height: 1.35; }
.ph-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; justify-items: center; font-size: 8px; color: #D6E2FA; }
.ph-week > span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ph-week i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; }
.ph-week i.is-done { background: #FFFFFF; border-color: #FFFFFF; color: #2E52B4; }
.ph-week i.is-today { border: 1.5px solid #FFFFFF; background: rgba(255, 255, 255, .18); }
.ph-rule { height: 1px; background: rgba(255, 255, 255, .22); }
.ph-exam { display: flex; align-items: center; gap: 10px; }
.ph-exam-ring { width: 44px; height: 44px; border-radius: 50%; border: 3.5px solid rgba(255, 255, 255, .25); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-size: 13px; flex: none; }
.ph-exam-t { display: flex; flex-direction: column; line-height: 1.25; }
.ph-exam-t .ph-cap { font-size: 7.5px; }
.ph-exam-t b { font-size: 12px; font-weight: 600; }
.ph-exam-t > span:last-child { font-size: 9px; color: #D6E2FA; }
.ph-card { background: var(--card); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 20px -14px rgba(20, 28, 43, .3); }
.ph-sr { display: flex; align-items: center; gap: 9px; }
.ph-sr-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--teal-bg); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: none; }
.ph-sr-t { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.ph-sr-t b { font-size: 13px; font-weight: 600; }
.ph-sr-t span { font-size: 9px; color: var(--muted); }
.ph-due { font-size: 10px; padding: 4px 9px; border-radius: 999px; background: var(--teal-bg); color: var(--teal); white-space: nowrap; }
.ph-go { padding: 10px; border-radius: 12px; background: linear-gradient(90deg, #3560D4, #4A7BE2); color: #FFFFFF; font-size: 12px; font-weight: 600; text-align: center; }
.ph-tabs { position: absolute; left: 10px; right: 10px; bottom: 16px; background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); border-radius: 26px; padding: 5px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); box-shadow: 0 10px 24px -12px rgba(20, 28, 43, .35); font-size: 9px; font-weight: 500; text-align: center; color: var(--text); }
.ph-tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 20px; }
.ph-tabs span.is-on { background: var(--accent-soft); color: var(--primary); }
.ph-home-bar { position: absolute; bottom: 6px; left: 50%; margin-left: -54px; width: 108px; height: 4px; border-radius: 999px; background: var(--text); }

@media (max-width: 1100px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { display: none; }
  .dash-search { display: none; }
}
@media (max-width: 860px) {
  .home-hero-inner { padding-top: 48px; gap: 40px; }
  .devices .browser { margin-right: 0; }
  .devices .devices-phone { position: relative; right: auto; top: auto; margin: -230px 4px 0 auto; --ps: .8; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-row { grid-template-columns: minmax(0, 1fr); }
  .dash-row .dash-panel:last-child, .dash-tests { display: none; }
  .dash-sync { display: none; }
}
@media (max-width: 640px) {
  .home-hero-inner { padding-top: 36px; gap: 32px; }
  .home-lead { font-size: 17px; }
  .home-ctas .btn { flex: 1 1 auto; }
  .browser-nav, .browser-spacer { display: none; }
  .dash-main { padding: 14px; gap: 10px; }
  .dash-kpi { padding: 10px; }
  .dash-n { font-size: 22px; }
  .dash-row { display: none; }
  .devices .devices-phone { --ps: .66; margin: -150px 0 0 auto; }
}

/* ---------------------------------------------------------------- home: sections */
.stats-strip { background: var(--card); border-bottom: 1px solid var(--line); }
.stats-grid { padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stats-grid > div { display: flex; flex-direction: column; }
.stats-n { font-family: var(--font-head); font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.stats-l { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-n { font-size: 26px; } }

.home-sec { padding-top: 96px; padding-bottom: 96px; scroll-margin-top: 72px; }
.home-sec-card { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-sec-stack { display: flex; flex-direction: column; gap: 44px; }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.sec-head.center { align-items: center; text-align: center; margin: 0 auto; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; align-items: flex-start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 640px) { .home-sec { padding-top: 56px; padding-bottom: 56px; } .sec-lead { font-size: 17px; } }

.curve-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.curve { width: 100%; height: auto; display: block; }
.curve-axis { stroke: var(--line-strong); stroke-width: 1.5; }
.curve-grid line { stroke: var(--line); stroke-width: 1; }
.curve-without { fill: none; stroke: var(--flame); stroke-width: 3; stroke-dasharray: 7 6; stroke-linecap: round; }
.curve-with { fill: none; stroke: var(--primary); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.curve-dots circle { fill: var(--teal); }
.curve-text text { font-size: 12px; fill: var(--muted); font-family: var(--font-body); }
.curve-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 12px; font-size: 14px; color: var(--text-2); }
.curve-legend span { display: flex; align-items: center; gap: 8px; }
.curve-legend i { display: inline-block; width: 22px; }
.lg-with { height: 3px; background: var(--primary); }
.lg-without { border-top: 3px dashed var(--flame); }
.curve-legend .lg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
@media (max-width: 640px) { .curve-card { padding: 14px; } }

.ink-band { background: var(--ink); color: var(--ink-text); scroll-margin-top: 72px; border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.ink-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.ink-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.ink-band h2, .ink-band h3 { color: var(--ink-text); }
.ink-band .sec-lead { color: var(--ink-muted); }
.eyebrow-ink { color: var(--ink-accent); }
.ink-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ink-card { background: var(--ink-card); border: 1px solid var(--ink-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.ink-card svg { color: var(--ink-accent); }
.ink-card h3 { font-size: 18px; font-weight: 700; }
.ink-card p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.ink-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.btn-outline-ink { color: var(--ink-text); border-color: var(--ink-line); background: transparent; }
.btn-outline-ink:hover { color: var(--ink-text); border-color: var(--ink-accent); }
.ink-link { color: var(--ink-accent); font-weight: 700; }
.ink-link:hover { color: var(--ink-text); }
.appstore-ink .appstore-btn { background: var(--ink-text); color: var(--ink); border-color: var(--ink-text); }
.appstore-ink .appstore-soon { color: var(--ink-muted); }
@media (max-width: 1000px) { .ink-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ink-grid { grid-template-columns: minmax(0, 1fr); } .ink-inner { padding-top: 56px; padding-bottom: 56px; gap: 32px; } }

.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.feat svg { color: var(--primary); }
.feat h3 { font-size: 19px; }
.feat p { margin: 0; color: var(--text-2); }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feat-grid { grid-template-columns: minmax(0, 1fr); } .feat { padding: 20px; } }

.split-try { align-items: start; }
.split-try .tryq.card { background: var(--bg); }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.plan.is-popular { border: 2px solid var(--primary); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-name { font-weight: 700; }
.plan-price { font-family: var(--font-head); font-size: 40px; font-weight: 800; line-height: 1.1; }
.plan .btn { margin-top: auto; }

.story-card { background: var(--ink); color: var(--ink-text); border: 1px solid var(--ink-line); border-radius: 18px; padding: 36px; display: flex; flex-direction: column; gap: 10px; }
.story-cap { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--ink-accent); }
.story-name { font-family: var(--font-head); font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.story-sub { color: var(--ink-muted); }
@media (max-width: 640px) { .story-card { padding: 24px; } }

.faq-wrap { max-width: 860px; display: flex; flex-direction: column; gap: 24px; }
.faq-wrap > p { margin: 0; }

.final-cta-wrap { padding-bottom: 96px; }
.final-cta { background: var(--hero-grad); color: #FFFFFF; border-radius: 24px; padding: 64px 40px; display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.final-cta h2 { color: #FFFFFF; font-size: clamp(34px, 4.5vw, 56px); line-height: 1; letter-spacing: -.035em; }
.final-cta p { margin: 0; font-size: 18px; max-width: 520px; color: #E4ECFC; }
.final-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 640px) { .final-cta { padding: 40px 20px; border-radius: 18px; } .final-cta-wrap { padding-bottom: 56px; } .final-ctas .btn { flex: 1 1 auto; } }

/* ---------------------------------------------------------------- pricing page */
.discount-note { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.discount-note svg, .invite svg { flex: none; }
.price-grid { gap: 18px; }
.price-card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--card); }
.price-card.is-popular { border: 2px solid var(--primary); }
.price-card h2.price-name { font-size: 18px; font-family: var(--font-body); font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.price-card form { margin-top: auto; }
.price-big { font-family: var(--font-head); font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--text); }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price-was { color: var(--muted); font-size: 18px; }
.price-blurb { margin: 0; }
.price-foot { margin-top: 18px; }
.price-app { margin: 18px auto 0; max-width: 820px; }
.compare th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; color: var(--text); background: none; border-top: 1px solid var(--line); padding: 12px 18px; white-space: normal; }
.compare thead th { font-size: 14px; padding: 14px 18px; }
.compare thead th + th, .compare td { text-align: center; }
.compare td { font-weight: 600; }
.compare .tick { color: var(--ok); vertical-align: middle; }
.compare .cross { color: var(--muted); vertical-align: middle; }
.mini-faq { padding-top: 48px; padding-bottom: 56px; gap: 28px; }
.mini-faq h3 { font-size: 18px; margin-bottom: 6px; }
.mini-faq p { margin: 0; color: var(--text-2); }
@media (max-width: 900px) and (min-width: 641px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- guide */
.guide { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 48px; padding-bottom: 64px; }
.toc { flex: 0 1 220px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; align-self: flex-start; position: sticky; top: 96px; }
.guide-body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 44px; max-width: 760px; }
.guide-body section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.guide-body h2 { font-size: 28px; }
.guide-body h3 { font-size: 19px; margin-top: 6px; }
.guide-body p { margin: 0; color: var(--text-2); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fact { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--card); }
.fact-big { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--text); line-height: 1.15; }
.fact p { margin: 4px 0 0; font-size: 15px; }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact-big { font-size: 20px; } }
.nice-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.guide-tbl th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 700; color: var(--text); background: none; border-top: 1px solid var(--line); white-space: normal; vertical-align: top; }
.guide-tbl td { vertical-align: top; }
.sys-tbl td:last-child, .sys-tbl th:last-child { text-align: right; white-space: nowrap; }
.sys-tbl a { font-weight: 600; }
.cta-box { background: var(--hero-grad); color: #FFFFFF; border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.cta-box-title { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.cta-box span { color: #E4ECFC; }
@media (max-width: 760px) {
  .toc { position: static; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .toc .label { flex-basis: 100%; }
  .guide { gap: 28px; padding-top: 28px; }
}
@media (max-width: 640px) {
  .plan-tbl thead { display: none; }
  .plan-tbl, .plan-tbl tbody, .plan-tbl tr, .plan-tbl th, .plan-tbl td { display: block; width: 100%; }
  .plan-tbl tr { padding: 12px 16px; border-top: 1px solid var(--line); }
  .plan-tbl tr:first-child { border-top: 0; }
  .plan-tbl th[scope="row"], .plan-tbl td { border: 0; padding: 0; }
  .plan-tbl th[scope="row"] { color: var(--primary); }
  .plan-tbl td:nth-child(2) { font-weight: 700; color: var(--text); margin: 2px 0; }
}

/* ---------------------------------------------------------------- FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.faq { border: 1px solid var(--line); border-radius: 14px; padding: 0; background: var(--card); }
.faq summary { cursor: pointer; padding: 18px 22px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.faq[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-q { font-family: var(--font-body); font-size: 17px; font-weight: 700; display: inline; letter-spacing: 0; }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--text-2); }
@media (max-width: 640px) { .faq summary { padding: 14px 16px; } .faq p { padding: 0 16px 16px; } }

/* ---------------------------------------------------------------- about + contact */
.about { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 56px; padding-bottom: 64px; }
.about-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.about-copy h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.025em; }
.about-copy h2 { font-size: 24px; margin-top: 12px; }
.about-copy p { margin: 0; color: var(--text-2); }
.about-copy .story-card { margin: 8px 0; }
.about-stats { margin-top: 4px; gap: 14px; }
.stat-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-box .stat { font-size: 30px; }
@media (max-width: 640px) { .about-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stat-box { padding: 12px; } .stat-box .stat { font-size: 22px; } }
.contact-card { flex: 1 1 380px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; align-self: flex-start; }
.contact-card h2 { font-size: 24px; }
.contact-card p { margin: 0; }
.contact-card .flashes { margin: 0; }
@media (max-width: 640px) { .about { gap: 32px; padding-top: 32px; } .contact-card { padding: 20px; } }

/* ---------------------------------------------------------------- sample questions */
.samples { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
.samples > section > h2 { font-size: 26px; }
.sys-jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sys-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 600; }
.sys-jump a:hover { border-color: var(--primary); color: var(--primary); }
.sys-group { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 90px; }
.sys-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.sys-group-head h2 { font-size: 24px; }
/* question pages (another section) reuse these */
.twin-pair { display: flex; flex-direction: column; gap: 16px; border: 2px solid var(--primary); border-radius: calc(var(--radius) + 4px); padding: 22px; background: var(--surface); }
.twin-pair-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.twin-pair-head p { margin: 0; }
.sample { display: flex; flex-direction: column; gap: 14px; }
.sample-meta { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.sample-meta .pill { white-space: normal; }
.sample-stem { margin: 0; font-size: 17px; }
@media (max-width: 640px) { .twin-pair { padding: 14px; } .sample.card { padding: 16px; } }

/* ---------------------------------------------------------------- web + iPhone page */
.app-hero .wrap.app-hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 0; }
.app-hero { overflow: hidden; }
.app-hero-copy { flex: 1 1 460px; min-width: 0; max-width: 640px; padding-bottom: 48px; }
.app-hero-art { flex: 0 0 auto; margin: 0 auto; height: 500px; overflow: hidden; }
.app-hero-art .phone-wrap { --ps: .9; }
.app-hero-actions { margin-top: 6px; gap: 14px 20px; }
.sync-grid h3 { font-size: 18px; }
.sync-grid p { margin: 0; color: var(--text-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { display: flex; gap: 14px; }
.steps p { margin: 0; color: var(--text-2); font-size: 16px; }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-head); }
.ticks-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--text-2); }
.ticks-list li { display: flex; gap: 10px; align-items: flex-start; }
.ticks-list svg { flex: none; color: var(--ok); margin-top: 3px; }
.ticks-list strong { color: var(--text); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
@media (max-width: 640px) {
  .app-hero .wrap.app-hero-inner { padding-top: 28px; gap: 24px; }
  .app-hero-copy { padding-bottom: 0; }
  .app-hero-art { height: 360px; }
  .app-hero-art .phone-wrap { --ps: .72; }
}

/* App Store button: plain outlined button, no Apple artwork */
.appstore-wrap { display: inline-flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.appstore-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 14px; border-radius: 12px; border: 2px solid var(--text); color: var(--text); background: var(--card); text-decoration: none; line-height: 1.1; }
a.appstore-btn:hover { border-color: var(--primary); color: var(--primary); }
.appstore-btn.is-soon { opacity: .8; cursor: default; }
.appstore-text { display: flex; flex-direction: column; }
.appstore-small { font-size: 12px; font-weight: 600; }
.appstore-big { font-family: var(--font-head); font-weight: 800; font-size: 19px; }
.appstore-soon { font-size: 14px; color: var(--muted); }
.appstore-lg .appstore-btn { min-height: 58px; }

/* ---------------------------------------------------------------- legal */
.legal { padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: clamp(30px, 4vw, 38px); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); background: var(--card); }
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab[aria-current] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.prose { display: flex; flex-direction: column; gap: 12px; color: var(--text-2); }
.prose h2 { font-size: 22px; margin-top: 14px; }
.prose p, .prose ul { margin: 0; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose code { font-size: 14px; background: var(--surface); padding: 1px 6px; border-radius: 4px; color: var(--text); }
.prose .tbl td { vertical-align: top; }

/* ---------------------------------------------------------------- 404 */
.notfound { padding-top: 96px; padding-bottom: 96px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* ---------------------------------------------------------------- generic dark CTA band (kept for other public pages) */
.cta-band { background: var(--ink); border-top: 1px solid var(--line); }
.cta-inner { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--ink-text); font-size: clamp(24px, 3vw, 30px); margin-bottom: 6px; }
.cta-band p { color: var(--ink-muted); margin: 0; }

/* ---------------------------------------------------------------- account pages (bare layout) */
body.auth { background: var(--surface); }
.auth-split { display: flex; flex-wrap: wrap; min-height: 100vh; }
.auth-aside { flex: 1 1 420px; background: var(--deep); color: var(--on-deep); padding: 56px 48px; display: flex; flex-direction: column; gap: 28px; }
.auth-aside h1 { color: var(--on-deep); font-size: clamp(28px, 3.4vw, 38px); }
.logo-on-deep, .logo-on-deep:hover { color: var(--on-deep); }
.logo-on-deep .accent { color: #9cc3f5; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; color: var(--on-deep-muted); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; color: #9cc3f5; }
.auth-main { flex: 1 1 520px; padding: 56px 48px; display: flex; justify-content: center; background: var(--bg); }
.auth-form { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.auth-form h2 { font-size: 28px; }
.auth-form p { margin: 0; }
.auth-form .flashes { margin: 0; }
.invite { display: flex; gap: 12px; align-items: center; }
.invite span { color: var(--text); }
.invite strong { color: var(--ok); }
.auth-center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 64px 16px; gap: 24px; }
.auth-center > p { margin: 0; text-align: center; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 28px; }
.auth-card p { margin: 0; }
.auth-card .flashes { margin: 0; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; }
.auth-links a { min-height: 32px; display: inline-flex; align-items: center; }
.auth-note { max-width: 420px; }
@media (max-width: 640px) {
  .auth-aside { padding: 28px 16px; gap: 18px; }
  .ticks { font-size: 16px; gap: 10px; }
  .auth-main { padding: 28px 16px 48px; }
  .auth-center { padding: 32px 16px; }
  .auth-card { padding: 22px 18px; }
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 640px) {
  .lead { font-size: 17px; }
  .section { padding-top: 48px; padding-bottom: 48px; gap: 28px; }
  .page-head { padding-top: 40px; }
  .page-head-left { padding-top: 36px; padding-bottom: 44px; }
  .mini-faq { padding-top: 36px; padding-bottom: 40px; }
  .legal { padding-top: 32px; }
  .cta-inner { padding-top: 40px; padding-bottom: 40px; }
  .price-big, .plan-price { font-size: 36px; }
}

/* Header fit on narrow phones (public layout only) */
.site-header .logo span { white-space: nowrap; }
@media (max-width: 420px) {
  .site-header .wrap { gap: 8px; }
  .site-header .logo { font-size: 16px; gap: 6px; }
  .site-header .logo svg { width: 28px; height: 28px; }
  .site-header .wordmark-tag { display: none; }
  .site-actions { gap: 6px; }
  .site-header .menu-btn, .site-header .theme-toggle { width: 40px; min-width: 40px; height: 44px; padding: 0; }
  .site-actions .btn-primary { padding: 0 10px; font-size: 15px; }
}
.link-row { gap: 10px 28px; }

/* ---------------------------------------------------------------- free question pages (/questions) */
.qhub { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 36px; }
.qhub h2, .qpage h2#rel-h { font-size: 24px; }
.qhub-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qhub-topics a { font-size: 15px; padding: 6px 14px; text-decoration: none; white-space: normal; }
.qhub-topics a[aria-current] { border-color: var(--primary); color: var(--primary); }
.qhub-topics .muted { font-weight: 600; margin-left: 4px; }
.qhub-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.qhub-list .pill { margin-left: 4px; vertical-align: 1px; }
.qhub-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; }
.qpage-byline { margin: 0; }
.qpage .qpage-h4 { font-size: 16px; margin-top: 4px; }
.qpage-expl { display: flex; flex-direction: column; gap: 12px; }
.qpage-expl ul { margin: 0; padding-left: 20px; }
.qpage .notice ul { margin: 6px 0 0; padding-left: 20px; }
