/* @section: product-site-shell */
:root {
  --bg: #101820;
  --ink: #142033;
  --muted: #667788;
  --line: #e4e8e2;
  --paper: #fbfaf6;
  --cream: #f4f1e8;
  --accent: #1f3b2c;
  --accent-soft: #e7efe6;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(16, 32, 51, 0.08);
  --radius: 16px;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.site { min-height: 100vh; display:flex; flex-direction:column; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display:flex; align-items:center; justify-content:space-between; gap: 18px;
  padding: 16px 28px; background: rgba(251,250,246,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-brand { display:flex; align-items:center; gap: 12px; text-decoration:none; color: inherit; }
.site-mark { font-size: 20px; font-weight: 800; letter-spacing: -0.06em; }
.site-mark span { color: #c45b4a; }
.site-brand-text { display:flex; flex-direction:column; line-height:1.15; }
.site-brand-text strong { font-size: 13px; font-weight: 700; }
.site-brand-text em { font-style: normal; font-size: 11px; color: var(--muted); }
.site-nav { display:flex; flex-wrap:wrap; gap: 4px 14px; }
.site-nav button {
  border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 8px 4px; font-weight: 500;
}
.site-nav button:hover, .site-nav button.active { color: var(--ink); }
.site-nav button.active { font-weight: 700; }
.site-actions { display:flex; align-items:center; gap: 10px; }
.ghost-btn { border:0; background:transparent; color: var(--muted); font-size: 16px; }
.account-chip {
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 999px; padding: 9px 14px; font-size: 12px; font-weight: 700;
}
.account-chip.is-user { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.site-main { flex: 1; width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; }
.site-footer {
  width: min(1120px, calc(100% - 32px)); margin: 0 auto 28px;
  display:flex; justify-content:space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 13px;
}
.site-footer strong { display:block; color: var(--ink); margin-bottom: 6px; }
.site-footer-meta { display:flex; gap: 14px; align-items:flex-start; font-size: 12px; }
.screen-root { min-height: 70vh; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.app { min-height: 70vh; background: var(--paper); }
.app-nav { display:none; } /* product header replaces nested app nav */
.primary-btn { background: var(--ink) !important; color:#fff !important; box-shadow: none !important; border-radius: 10px !important; }
.primary-btn:hover { transform: none !important; opacity: .92; }
.hero h2, .subscreen h2 { font-family: "Newsreader", Georgia, serif; letter-spacing: -0.03em; }
.hero { background: linear-gradient(120deg, #fbfaf6 55%, #eef3ea 55%) !important; }
.auth-tabs { display:flex; flex-wrap:wrap; gap:8px; margin: 0 0 18px; }
.auth-tabs button {
  border: 1px solid var(--line); background:#fff; color: var(--muted);
  border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600;
}
.auth-tabs button.active { background: var(--ink); color:#fff; border-color: var(--ink); }
.field-row { display:grid; gap: 8px; margin-bottom: 14px; }
@media (max-width: 900px) {
  .site-nav { display:none; }
  .site-header { padding: 14px 16px; }
  .site-main { width: calc(100% - 20px); padding-bottom: 96px; }
  .screen-root { border-radius: 16px; }
}


.prototype-shell,.topbar,.workspace,.sidebar,.canvas,.browser-chrome,.canvas-toolbar,.canvas-footer { display:none !important; }
/* @section: design-system */
:root {
  color-scheme: light;
  --bg: #0b1f33;
  --ink: #10243a;
  --muted: #6b7885;
  --line: #dce4e1;
  --paper: #fffdf7;
  --cream: #f7f4ea;
  --lime: #c6f36b;
  --lime-deep: #9bc742;
  --coral: #f26b5b;
  --sky: #d9eef1;
  --shadow: 0 22px 60px rgba(16,36,58,.14);
  --radius: 18px;
  font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #edf1ee;
  color: var(--ink);
  line-height: 1.45;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font: inherit;
}

button { cursor: pointer; }
.prototype-shell { min-height: 100vh; }
.topbar { height: 72px; background: var(--bg); color: #eef7f0; display:flex; align-items:center; justify-content:space-between; padding:0 28px; }
.brand-lockup,.topbar-actions,.canvas-tools,.device-toggle,.cluster,.meta-row { display:flex; align-items:center; }
.brand-lockup { gap:11px; }
.brand-mark { font-size:19px; font-weight:900; letter-spacing:-.08em; color:var(--lime); }
.brand-mark span { color:var(--coral); }
.brand-name { font-size:12px; font-weight:800; letter-spacing:.02em; }
.brand-meta { color:#9eabb8; font-size:10px; margin-top:2px; }
.topbar-actions { gap:16px; }
.preview-pill { font-size:11px; color:#b9c9c4; display:flex; gap:7px; align-items:center; }
.dot { width:7px; height:7px; border-radius:50%; background:var(--lime); box-shadow:0 0 0 4px rgba(198,243,107,.12); }
.icon-button,.avatar-button { border:0; background:transparent; color:#e9f1ed; }
.icon-button { font-size:18px; }
.avatar-button { width:30px; height:30px; border-radius:50%; background:var(--lime); color:var(--ink); font-weight:800; }
.workspace { display:grid; grid-template-columns:220px 1fr; min-height:calc(100vh - 72px); }
.sidebar { background:#f4f5f0; border-right:1px solid #dce3df; padding:28px 16px 20px; display:flex; flex-direction:column; }
.sidebar-label,.canvas-kicker { font-size:10px; font-weight:800; letter-spacing:.16em; color:#8a9693; }
.sidebar-label { padding:0 12px 12px; }
.screen-nav { display:grid; gap:4px; }
.screen-nav-item { border:0; background:transparent; color:#5c6b6d; text-align:left; padding:11px 12px; border-radius:11px; display:flex; align-items:center; gap:10px; font-size:12px; }
.screen-nav-item:hover { background:#e8eee8; color:var(--ink); }
.screen-nav-item.active { background:var(--bg); color:#fff; font-weight:700; }
.nav-icon { width:20px; font-weight:800; color:var(--lime-deep); text-align:center; }
.screen-nav-item.active .nav-icon { color:var(--lime); }
.sidebar-footer { margin-top:auto; padding:16px 12px 0; color:#718080; font-size:10px; line-height:1.5; }
.sidebar-footer strong { color:var(--ink); }
.mini-road { height:28px; display:flex; justify-content:space-around; align-items:center; background:#dfe6de; border-radius:9px; margin-bottom:10px; }
.mini-road span { height:8px; width:3px; background:#fff; border-radius:2px; }
.mini-road i { display:block; width:38px; height:3px; background:#f0b64f; }
.canvas { background:#e9efeb; min-width:0; padding:28px 34px 20px; }
.canvas-toolbar { display:flex; justify-content:space-between; align-items:end; margin-bottom:18px; }
.canvas-kicker { color:#8b9996; margin-bottom:5px; }
.canvas h1 { margin:0; font-size:26px; letter-spacing:-.04em; }
.canvas-tools { gap:12px; }
.device-toggle { background:#dce5df; padding:3px; border-radius:10px; }
.device-toggle-item { border:0; background:transparent; border-radius:8px; padding:8px 10px; font-size:11px; color:#65716f; }
.device-toggle-item span { opacity:.55; margin-left:3px; }
.device-toggle-item.active { background:#fff; color:var(--ink); box-shadow:0 2px 7px rgba(16,36,58,.08); font-weight:700; }
.outline-button { border:1px solid #c9d6d0; background:transparent; color:#586764; border-radius:9px; padding:8px 12px; font-size:11px; }
.board-wrap { min-height:730px; display:flex; justify-content:center; align-items:flex-start; padding:14px 0 22px; overflow:auto; }
.artboard { background:#fff; box-shadow:var(--shadow); position:relative; transition:width .25s ease; }
.desktop-board { width:min(100%, 1120px); min-height:690px; border-radius:14px; overflow:hidden; }
.mobile-board { width:390px; min-height:844px; border-radius:32px; overflow:hidden; border:7px solid #172f3e; }
.is-hidden { display:none !important; }
.browser-chrome { height:30px; background:#edf1ed; border-bottom:1px solid #dde5e1; display:flex; align-items:center; gap:5px; padding:0 12px; }
.browser-chrome > span { width:7px; height:7px; background:#c6d0cc; border-radius:50%; }
.chrome-url { margin-left:12px; height:17px; border-radius:5px; background:#fff; color:#a8b2ae; font-size:9px; padding:2px 12px; flex:1; }
.mobile-notch { position:absolute; z-index:4; width:126px; height:23px; left:50%; top:0; transform:translateX(-50%); border-radius:0 0 15px 15px; background:#172f3e; }
.screen-root { min-height:660px; }
.canvas-footer { display:flex; justify-content:space-between; color:#8b9996; font-size:10px; padding:0 4px; }
.footer-status { color:#5d716c; }

/* Screens */
.app { min-height:660px; background:var(--paper); }
.app-nav { display:flex; justify-content:space-between; align-items:center; padding:24px 42px; border-bottom:1px solid #ebeee8; }
.app-logo { font-weight:900; color:var(--ink); letter-spacing:-.08em; font-size:18px; }
.app-logo b { color:var(--coral); }
.app-nav-links { display:flex; gap:22px; font-size:11px; color:#77827e; }
.app-nav-links a { color:inherit; text-decoration:none; }
.nav-cta { border:0; background:var(--bg); color:#fff; padding:10px 15px; border-radius:9px; font-size:11px; font-weight:800; }
.hero { display:grid; grid-template-columns:1.05fr .95fr; gap:44px; padding:65px 76px 52px; background:linear-gradient(120deg,#fffdf7 52%,#f5f8eb 52%); }
.hero-copy { max-width:520px; }
.eyebrow { text-transform:uppercase; letter-spacing:.16em; font-size:10px; font-weight:900; color:#778a73; margin:0 0 18px; }
.hero h2 { font-size:52px; line-height:.99; letter-spacing:-.07em; margin:0 0 20px; color:var(--ink); }
.hero h2 em { color:#779c37; font-style:normal; }
.hero-lead { color:#61706f; font-size:15px; max-width:420px; line-height:1.55; margin:0 0 26px; }
.hero-actions { display:flex; gap:10px; align-items:center; }
.primary-btn,.secondary-btn,.text-btn { border-radius:10px; padding:13px 18px; font-size:12px; font-weight:800; border:0; }
.primary-btn { background:var(--coral); color:#fff; box-shadow:0 7px 0 #d45145; }
.primary-btn:hover { transform:translateY(1px); box-shadow:0 5px 0 #d45145; }
.secondary-btn { background:#eaf0dc; color:#52712d; }
.text-btn { background:transparent; color:#62706e; padding-inline:8px; }
.hero-note { display:flex; align-items:center; gap:8px; color:#85928d; font-size:10px; margin-top:18px; }
.hero-note span { display:inline-flex; width:18px; height:18px; background:var(--lime); color:#34511a; align-items:center; justify-content:center; border-radius:50%; font-weight:900; }
.road-illustration { min-height:290px; display:flex; align-items:center; justify-content:center; position:relative; }
.road-card { width:280px; height:240px; border-radius:24px; background:var(--bg); position:relative; overflow:hidden; box-shadow:0 18px 28px rgba(16,36,58,.16); transform:rotate(3deg); }
.road-card:before { content:""; position:absolute; width:210px; height:340px; background:#304859; transform:rotate(28deg); left:46px; top:-45px; border-radius:70px; }
.road-card:after { content:""; position:absolute; left:137px; top:0; height:240px; border-left:3px dashed #f3cb65; transform:rotate(28deg); }
.road-sign { position:absolute; z-index:1; width:82px; height:82px; border-radius:50%; background:var(--coral); border:7px solid #fff7ec; right:27px; top:32px; display:grid; place-items:center; color:white; font-weight:900; font-size:27px; transform:rotate(-8deg); box-shadow:0 7px 0 #d45145; }
.road-label { position:absolute; z-index:1; left:21px; bottom:18px; color:#fff; font-size:9px; letter-spacing:.1em; text-transform:uppercase; font-weight:800; }
.float-chip { position:absolute; z-index:2; background:#fff; border-radius:10px; padding:9px 11px; box-shadow:0 8px 20px rgba(16,36,58,.15); font-size:10px; font-weight:800; }
.float-chip.one { top:30px; left:14px; color:#668438; }
.float-chip.two { right:8px; bottom:20px; color:#d85b4f; }
.trust-row { background:var(--bg); color:#d6e3de; display:flex; justify-content:center; gap:52px; padding:16px 24px; font-size:10px; }
.trust-row b { color:#fff; }
.pain-strip { padding:29px 76px 36px; }
.section-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:18px; }
.section-heading h3 { font-size:20px; letter-spacing:-.04em; margin:0; }
.section-heading p { margin:0; color:#8a9690; font-size:11px; }
.pain-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.pain-card { border:1px solid #e6ece4; border-radius:14px; padding:17px; background:#fff; }
.pain-card .pain-icon { width:30px; height:30px; border-radius:9px; background:#fdf0db; display:grid; place-items:center; color:#c88437; font-weight:900; margin-bottom:12px; }
.pain-card h4 { margin:0 0 5px; font-size:12px; }
.pain-card p { margin:0; color:#7a8682; font-size:11px; line-height:1.5; }

.subscreen { min-height:660px; padding:54px 76px; background:var(--paper); }
.centered { max-width:470px; margin:0 auto; }
.subscreen h2 { font-size:34px; letter-spacing:-.06em; margin:0 0 9px; }
.subscreen .intro { color:#73807e; font-size:13px; margin:0 0 27px; }
.back-link { color:#75857c; font-size:11px; margin-bottom:28px; display:inline-block; }
.field-label { font-size:11px; font-weight:800; display:block; margin:17px 0 7px; }
.field { border:1px solid #dbe4dd; border-radius:10px; padding:13px; width:100%; background:white; font-size:13px; color:var(--ink); }
.helper { color:#8d9995; font-size:10px; margin-top:8px; }
.info-box { background:#eef4e1; border:1px solid #dfeacf; border-radius:12px; padding:14px; font-size:11px; color:#5e7541; display:flex; gap:10px; margin:18px 0; }
.full-btn { width:100%; }
.split-card { display:grid; grid-template-columns:1.1fr .9fr; gap:20px; align-items:stretch; }
.code-card { border:1px solid #e2e9e4; border-radius:16px; padding:22px; background:white; position:relative; }
.code-card.active { border:2px solid var(--lime-deep); background:#f8fbeF; }
.code-card .code-num { font-size:35px; font-weight:900; letter-spacing:-.08em; color:var(--bg); }
.code-card h3 { margin:5px 0 4px; font-size:14px; }
.code-card p { color:#7c8884; font-size:11px; margin:0 0 16px; line-height:1.5; }
.code-card .tick { position:absolute; top:16px; right:16px; width:22px; height:22px; background:var(--lime); border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:900; }
.hub { background:#f7f8f2; min-height:660px; }
.hub-header { background:var(--paper); padding:31px 44px 22px; display:flex; justify-content:space-between; align-items:start; }
.hub-header h2 { margin:0; font-size:28px; letter-spacing:-.06em; }
.hub-header p { color:#78857f; font-size:12px; margin:6px 0 0; }
.progress-ring { width:58px; height:58px; border-radius:50%; background:conic-gradient(var(--coral) 0 62%,#e9efdf 62%); display:grid; place-items:center; }
.progress-ring:after { content:"62%"; width:42px; height:42px; border-radius:50%; background:var(--paper); display:grid; place-items:center; font-size:11px; font-weight:900; }
.hub-body { padding:22px 44px; display:grid; grid-template-columns:1.35fr .65fr; gap:18px; }
.module-list,.quick-card { background:#fff; border:1px solid #e3ebe4; border-radius:15px; padding:18px; }
.module-list h3,.quick-card h3 { font-size:13px; margin:0 0 13px; }
.module-row { display:flex; align-items:center; gap:12px; padding:13px 0; border-top:1px solid #edf0eb; }
.module-row:first-of-type { border-top:0; }
.module-no { width:31px; height:31px; border-radius:9px; display:grid; place-items:center; font-size:11px; font-weight:900; background:#edf4e3; color:#69873a; }
.module-row.locked .module-no { background:#edf0ed; color:#a1aaa5; }
.module-copy { flex:1; }
.module-copy strong { display:block; font-size:11px; }
.module-copy span { color:#8b9791; font-size:10px; }
.module-status { font-size:10px; font-weight:800; color:#709044; }
.quick-card { background:var(--bg); color:#fff; }
.quick-card p { color:#aebdb7; font-size:11px; line-height:1.5; }
.quick-card .primary-btn { margin-top:7px; background:var(--lime); color:var(--ink); box-shadow:0 6px 0 #8db344; }
.question-wrap { background:#f7f8f2; min-height:660px; padding:24px 44px; }
.question-top { display:flex; justify-content:space-between; color:#7b8882; font-size:11px; margin-bottom:18px; }
.question-progress { height:5px; background:#e4ebe3; border-radius:4px; margin-bottom:25px; overflow:hidden; }
.question-progress span { display:block; height:100%; width:46%; background:var(--coral); }
.question-card { background:#fff; border:1px solid #e0e8e1; border-radius:16px; padding:25px; max-width:750px; margin:0 auto; }
.question-card h2 { font-size:22px; letter-spacing:-.04em; margin:0 0 21px; line-height:1.18; }
.sign-figure { width:min(100%, 205px); margin:0 0 20px; padding:0; }
.sign-figure-button { width:100%; border:1px solid #dce6df; border-radius:12px; background:#f7f8f2; padding:10px; display:grid; justify-items:center; gap:5px; color:#52712d; }
.sign-figure-button:hover { border-color:var(--lime-deep); background:#f1f7e5; }
.sign-figure-button:active { transform:translateY(1px); }
.sign-figure img { width:100%; height:142px; object-fit:contain; }
.sign-figure span { font-size:9px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.sign-figure.compact { width:135px; margin:0 0 12px; }
.sign-figure.compact img { height:92px; }
.sign-lightbox { width:min(92vw, 540px); max-height:92vh; margin:auto; padding:0; border:0; border-radius:18px; background:var(--paper); color:var(--ink); box-shadow:0 30px 90px rgba(0,0,0,.35); }
.sign-lightbox::backdrop { background:rgba(11,31,51,.76); backdrop-filter:blur(3px); }
.sign-lightbox-inner { display:grid; gap:12px; padding:16px; }
.sign-lightbox-close { justify-self:end; border:1px solid #c9d6d0; border-radius:9px; background:#fff; color:var(--ink); padding:8px 12px; font-size:11px; font-weight:800; }
.sign-lightbox-close:hover { background:#edf3e9; }
.sign-lightbox img { width:100%; max-height:70vh; object-fit:contain; background:#f7f8f2; border-radius:12px; }
.sign-lightbox p { margin:0; text-align:center; color:#5d716c; font-size:12px; line-height:1.5; }
body.lightbox-open { overflow:hidden; }
.options { display:grid; gap:9px; }
.option { border:1px solid #dce6df; background:#fff; border-radius:11px; text-align:left; padding:14px; display:flex; gap:12px; align-items:center; font-size:12px; color:#41525a; }
.option:hover { border-color:#a9cc68; background:#f8fbeF; }
.option.selected { border-color:#e26b5e; background:#fff3f0; }
.option.correct { border-color:#9dc655; background:#f0f8df; }
.option.wrong { border-color:#e9b0a6; background:#fff0ed; }
.option-key { width:24px; height:24px; border-radius:7px; background:#edf2eb; display:grid; place-items:center; font-weight:900; font-size:11px; }
.feedback { display:flex; gap:10px; align-items:flex-start; padding:13px; border-radius:11px; margin-top:14px; background:#f0f8df; color:#587334; font-size:11px; line-height:1.5; }
.feedback.wrong { background:#fff0ed; color:#a7564b; }
.question-actions { display:flex; justify-content:space-between; align-items:center; margin-top:20px; }
.mock { background:var(--bg); color:#fff; min-height:660px; padding:34px 56px; }
.mock .eyebrow { color:var(--lime); }
.mock h2 { font-size:37px; letter-spacing:-.06em; max-width:520px; margin:0 0 10px; }
.mock p { color:#b7c6c1; font-size:12px; max-width:500px; }
.exam-meta { display:flex; gap:10px; margin:24px 0; }
.meta-chip { border:1px solid #345063; padding:9px 12px; border-radius:9px; color:#c7d5cf; font-size:10px; }
.timer { margin-top:34px; border-top:1px solid #29465a; padding-top:28px; display:flex; align-items:center; justify-content:space-between; }
.timer strong { font-size:46px; letter-spacing:-.06em; color:var(--lime); }
.mock .primary-btn { background:var(--lime); color:var(--ink); box-shadow:0 6px 0 #8db344; }
.result { min-height:660px; background:#f7f8f2; padding:44px 66px; }
.result-banner { display:flex; justify-content:space-between; align-items:center; background:var(--bg); border-radius:17px; color:#fff; padding:25px 28px; }
.result-banner h2 { font-size:30px; letter-spacing:-.06em; margin:0 0 4px; }
.result-banner p { color:#b4c2bd; margin:0; font-size:11px; }
.score { text-align:right; }
.score strong { color:var(--lime); font-size:43px; letter-spacing:-.08em; display:block; line-height:1; }
.score span { font-size:10px; color:#b5c3be; }
.result-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:17px; }
.result-card { background:#fff; border:1px solid #e1e9e1; border-radius:15px; padding:19px; }
.result-card h3 { margin:0 0 12px; font-size:12px; }
.metric { display:flex; align-items:end; justify-content:space-between; margin-bottom:6px; }
.metric b { font-size:24px; letter-spacing:-.06em; }
.metric span { color:#718179; font-size:10px; }
.bar { height:7px; border-radius:5px; background:#e9eee8; overflow:hidden; }
.bar span { display:block; height:100%; border-radius:5px; background:var(--coral); }
.result-card.success { background:#f1f8df; border-color:#dce9c6; }
.result-card.success h3 { color:#64833a; }
.paywall { background:var(--paper); min-height:660px; padding:43px 75px; }
.paywall h2 { font-size:33px; letter-spacing:-.06em; margin:0 0 8px; }
.paywall .intro { color:#77847f; font-size:12px; margin-bottom:24px; }
.price-layout { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.price-card { border:1px solid #e1e9df; border-radius:16px; padding:22px; }
.price-card.featured { background:var(--bg); color:#fff; border-color:var(--bg); }
.price { font-size:40px; letter-spacing:-.08em; font-weight:900; margin:12px 0; }
.price small { font-size:12px; letter-spacing:0; color:#8a9591; font-weight:500; }
.featured .price small { color:#aabbb4; }
.price-list { list-style:none; padding:0; margin:18px 0; display:grid; gap:9px; font-size:11px; color:#74817c; }
.featured .price-list { color:#c0cec7; }
.price-list li:before { content:"✓"; color:var(--lime-deep); font-weight:900; margin-right:8px; }
.paddle-slot { margin-top:18px; border:1px dashed #c9d8d0; border-radius:11px; padding:13px; color:#83908a; font-size:10px; text-align:center; }
.settings { background:#f7f8f2; min-height:660px; padding:45px 80px; }
.settings h2 { font-size:32px; letter-spacing:-.06em; margin:0 0 18px; }
.settings-list { background:#fff; border:1px solid #e1e9e2; border-radius:15px; }
.setting-row { padding:17px 19px; display:flex; align-items:center; justify-content:space-between; border-top:1px solid #edf0eb; }
.setting-row:first-child { border-top:0; }
.setting-row strong { font-size:12px; display:block; }
.setting-row span { font-size:10px; color:#8b9792; }
.switch { width:39px; height:22px; background:var(--lime); border-radius:14px; padding:3px; }
.switch i { display:block; width:16px; height:16px; background:#fff; border-radius:50%; margin-left:auto; }
.states { background:#f7f8f2; min-height:660px; padding:39px 54px; }
.states h2 { font-size:29px; letter-spacing:-.06em; margin:0 0 6px; }
.states > p { color:#7b8882; font-size:11px; margin-bottom:22px; }
.state-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.state-card { background:#fff; border:1px solid #e0e8e1; border-radius:14px; padding:17px; min-height:130px; }
.state-card h3 { font-size:12px; margin:0 0 10px; }
.state-demo { border-radius:9px; padding:11px; font-size:10px; }
.state-demo.loading { background:#f0f3ef; color:#89948f; }
.skeleton { height:8px; width:75%; background:#dce4df; border-radius:5px; margin:5px 0; }
.state-demo.error { background:#fff0ed; color:#a45b52; }
.state-demo.success { background:#f0f8df; color:#5f7c38; }
.state-demo.empty { border:1px dashed #ccd9d0; color:#87938d; text-align:center; }

@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; }
  .sidebar { display:none; }
  .canvas { padding:20px 15px; }
  .desktop-board { min-width:820px; }
  .board-wrap { justify-content:flex-start; }
}
@media (max-width: 600px) {
  .topbar { padding:0 17px; height:62px; }
  .preview-pill,.icon-button { display:none; }
  .canvas-toolbar { align-items:flex-start; gap:12px; flex-direction:column; }
  .canvas-tools { width:100%; justify-content:space-between; }
  .mobile-board { display:block; }
  .desktop-board { display:none; }
  .canvas-footer { display:none; }
}
@media (min-width: 601px) {
  .mobile-board { margin:0 auto; }
}

/* refinement pass: editorial product UI, less playful and more considered */
:root {
  --bg: #15251f;
  --ink: #18221f;
  --muted: #7a837e;
  --line: #d9dfd9;
  --paper: #fbfaf6;
  --cream: #f2f0e9;
  --lime: #b8d86a;
  --lime-deep: #799d38;
  --coral: #d86a5d;
  --sky: #e4ece8;
  --shadow: 0 12px 30px rgba(17,35,28,.08);
  --radius: 8px;
}
body { background:#e6e9e4; }
.topbar { height:64px; padding:0 30px; background:#111d19; }
.brand-mark { font-size:18px; letter-spacing:-.06em; }
.brand-name { font-size:11px; letter-spacing:.08em; text-transform:uppercase; }
.brand-meta { display:none; }
.preview-pill { font-size:10px; letter-spacing:.04em; }
.avatar-button { width:27px; height:27px; font-size:11px; }
.workspace { grid-template-columns:196px 1fr; min-height:calc(100vh - 64px); }
.sidebar { background:#eff1ec; padding:26px 12px 18px; }
.sidebar-label { font-size:9px; letter-spacing:.18em; color:#8c958f; padding:0 10px 13px; }
.screen-nav { gap:2px; }
.screen-nav-item { padding:10px; border-radius:6px; font-size:11px; letter-spacing:.01em; }
.screen-nav-item.active { background:#17251f; }
.nav-icon { width:17px; font-size:10px; }
.sidebar-footer { font-size:9px; }
.mini-road { border-radius:5px; height:22px; }
.canvas { background:#e6e9e4; padding:25px 32px 18px; }
.canvas-toolbar { margin-bottom:14px; }
.canvas h1 { font-size:23px; font-weight:700; letter-spacing:-.045em; }
.canvas-kicker { font-size:9px; letter-spacing:.18em; }
.device-toggle { border-radius:6px; background:#d8ddd7; }
.device-toggle-item { border-radius:4px; padding:7px 9px; font-size:10px; }
.outline-button { border-radius:6px; padding:7px 10px; font-size:10px; }
.artboard { box-shadow:0 14px 30px rgba(17,35,28,.10); }
.desktop-board { border-radius:9px; min-height:690px; }
.mobile-board { border-radius:23px; border-width:5px; }
.browser-chrome { height:26px; }
.chrome-url { height:15px; font-size:8px; }
.app { background:var(--paper); }
.app-nav { padding:21px 42px; border-bottom:1px solid var(--line); }
.app-logo { font-size:16px; }
.app-nav-links { gap:20px; font-size:10px; }
.nav-cta { border-radius:5px; padding:9px 12px; font-size:10px; }
.hero { grid-template-columns:1fr 0.72fr; gap:30px; padding:58px 72px 48px; background:var(--paper); border-bottom:1px solid var(--line); }
.hero-copy { max-width:500px; }
.eyebrow { font-size:9px; letter-spacing:.18em; color:#74857a; }
.hero h2 { font-size:48px; line-height:1.02; letter-spacing:-.075em; margin-bottom:18px; }
.hero h2 em { color:#557d45; }
.hero-lead { font-size:13px; line-height:1.55; max-width:400px; }
.hero-actions { gap:8px; }
.primary-btn,.secondary-btn,.text-btn { border-radius:5px; padding:11px 14px; font-size:10px; }
.primary-btn { background:#1d3128; box-shadow:none; }
.primary-btn:hover { transform:none; box-shadow:none; background:#294438; }
.secondary-btn { background:#e8eee3; color:#506c40; }
.text-btn { color:#65736c; }
.hero-note { font-size:9px; }
.hero-note span { width:16px; height:16px; font-size:9px; }
.road-illustration { min-height:260px; }
.road-card { width:245px; height:210px; border-radius:7px; transform:rotate(2deg); box-shadow:0 15px 25px rgba(16,36,58,.12); }
.road-card:before { width:190px; height:310px; left:38px; top:-45px; }
.road-card:after { left:120px; height:220px; border-width:2px; }
.road-sign { width:70px; height:70px; border-radius:50%; border-width:5px; right:22px; top:26px; font-size:21px; box-shadow:none; }
.road-label { font-size:8px; }
.float-chip { border-radius:5px; padding:7px 9px; box-shadow:0 4px 15px rgba(16,36,58,.10); font-size:9px; }
.float-chip.one { top:28px; left:4px; }
.float-chip.two { right:0; bottom:20px; }
.trust-row { padding:14px 24px; font-size:9px; gap:44px; }
.pain-strip { padding:28px 72px 34px; }
.section-heading h3 { font-size:18px; }
.section-heading p { font-size:10px; }
.pain-grid { gap:10px; }
.pain-card { border-radius:7px; padding:15px; }
.pain-card .pain-icon { width:27px; height:27px; border-radius:6px; margin-bottom:10px; }
.pain-card h4 { font-size:11px; }
.pain-card p { font-size:10px; }
.subscreen { padding:50px 72px; }
.back-link { font-size:10px; margin-bottom:25px; }
.subscreen h2 { font-size:31px; }
.subscreen .intro { font-size:12px; }
.field-label { font-size:10px; }
.field { border-radius:5px; padding:11px; font-size:12px; }
.info-box { border-radius:6px; font-size:10px; padding:12px; }
.split-card { gap:12px; }
.code-card { border-radius:8px; padding:19px; }
.code-card .code-num { font-size:31px; }
.code-card h3 { font-size:12px; }
.code-card p { font-size:10px; }
.hub-header { padding:28px 42px 20px; }
.hub-header h2 { font-size:26px; }
.hub-body { padding:20px 42px; gap:14px; }
.module-list,.quick-card { border-radius:8px; padding:16px; }
.module-row { padding:11px 0; }
.module-no { width:28px; height:28px; border-radius:5px; font-size:10px; }
.question-wrap { padding:22px 42px; }
.question-card { border-radius:8px; padding:23px; }
.question-card h2 { font-size:20px; }
.option { border-radius:6px; padding:12px; font-size:11px; }
.option-key { width:22px; height:22px; border-radius:5px; font-size:10px; }
.feedback { border-radius:6px; font-size:10px; }
.mock { padding:33px 54px; }
.mock h2 { font-size:35px; }
.meta-chip { border-radius:5px; font-size:9px; }
.timer strong { font-size:43px; }
.result { padding:40px 62px; }
.result-banner { border-radius:8px; padding:23px 24px; }
.result-banner h2 { font-size:28px; }
.result-grid { gap:12px; }
.result-card { border-radius:8px; padding:17px; }
.paywall { padding:40px 70px; }
.paywall h2 { font-size:31px; }
.price-card { border-radius:8px; padding:20px; }
.featured .price-card { background:#15251f; }
.paddle-slot { border-radius:6px; }
.settings { padding:42px 72px; }
.settings h2 { font-size:30px; }
.settings-list { border-radius:8px; }
.setting-row { padding:15px 17px; }
.states { padding:36px 48px; }
.state-card { border-radius:8px; padding:15px; }
.state-demo { border-radius:5px; }
.canvas-footer { font-size:9px; }

@media (max-width: 980px) {
  .desktop-board { min-width:780px; }
}
@media (max-width: 600px) {
  .topbar { height:58px; padding:0 16px; }
  .workspace { min-height:calc(100vh - 58px); }
  .canvas { padding:18px 12px; }
  .canvas h1 { font-size:20px; }
  .canvas-tools { gap:8px; }
  .hero { grid-template-columns:1fr; padding:38px 26px 28px; }
  .hero h2 { font-size:39px; }
  .hero-lead { font-size:12px; }
  .road-illustration { min-height:180px; }
  .road-card { width:205px; height:165px; }
  .road-card:before { width:160px; height:250px; left:32px; }
  .road-card:after { left:100px; height:180px; }
  .road-sign { width:58px; height:58px; font-size:17px; }
  .float-chip { font-size:8px; }
  .trust-row { gap:14px; padding:12px 15px; font-size:8px; justify-content:space-between; }
  .pain-strip { padding:24px 26px; }
  .pain-grid { grid-template-columns:1fr; }
  .app-nav { padding:17px 22px; }
  .app-nav-links { display:none; }
  .nav-cta { padding:8px 10px; }
  .subscreen { padding:42px 26px; }
  .split-card { grid-template-columns:1fr; }
  .hub-header { padding:25px 25px 18px; }
  .hub-body { grid-template-columns:1fr; padding:16px 25px; }
  .question-wrap { padding:20px 20px; }
  .question-card { padding:18px; }
  .mock { padding:29px 25px; }
  .result { padding:29px 23px; }
  .result-banner { align-items:flex-start; gap:16px; flex-direction:column; }
  .score { text-align:left; }
  .result-grid { grid-template-columns:1fr; }
  .paywall { padding:31px 25px; }
  .price-layout { grid-template-columns:1fr; }
  .settings { padding:32px 25px; }
  .states { padding:29px 23px; }
  .state-grid { grid-template-columns:1fr; }
}

/* v3: premium product marketing treatment */
:root {
  --bg: #0b0d0e;
  --ink: #16191a;
  --muted: #697174;
  --line: #dedfdd;
  --paper: #f8f8f6;
  --cream: #f1f2ef;
  --lime: #a8d45c;
  --lime-deep: #658b2f;
  --coral: #b65e53;
  --shadow: 0 18px 40px rgba(13,18,16,.11);
  --radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
body { background:#e9eae8; color:var(--ink); }
.topbar { background:#0b0d0e; }
.brand-mark { color:#d2e8a1; font-weight:700; letter-spacing:-.08em; }
.brand-mark span { color:#b8776f; }
.brand-name { color:#f3f4f1; font-weight:600; letter-spacing:.12em; }
.preview-pill { color:#a8afab; }
.workspace { grid-template-columns:180px 1fr; }
.sidebar { background:#f0f1ee; }
.screen-nav-item { color:#78807d; }
.screen-nav-item.active { background:#111516; }
.canvas { background:#e9eae8; }
.canvas h1 { font-size:22px; font-weight:650; letter-spacing:-.055em; }
.canvas-kicker { color:#9a9f9c; font-size:8px; letter-spacing:.19em; }
.artboard { box-shadow:0 18px 42px rgba(18,24,20,.14); }
.desktop-board { border-radius:6px; }
.app-nav { padding:23px 48px; }
.app-logo { font-size:16px; font-weight:700; letter-spacing:-.08em; }
.app-logo b { color:#b36d65; }
.app-nav-links { font-size:10px; color:#6f7774; gap:26px; }
.app-nav-links a { text-decoration:none; color:inherit; }
.nav-cta { background:#171b1b; border-radius:3px; padding:10px 14px; font-size:10px; font-weight:600; }
.hero-v3 { grid-template-columns:1fr 1.05fr; gap:80px; align-items:center; padding:94px 86px 90px; background:#fafaf8; border-bottom:1px solid #e5e7e3; }
.hero-v3 .hero-copy { max-width:480px; }
.hero-v3 .eyebrow { color:#7f8884; font-size:8px; letter-spacing:.22em; margin-bottom:22px; }
.hero-v3 h2 { font-size:64px; line-height:.98; letter-spacing:-.085em; font-weight:650; margin-bottom:24px; }
.hero-v3 .hero-lead { color:#69716e; font-size:15px; max-width:400px; line-height:1.6; margin-bottom:31px; }
.hero-v3 .hero-actions { gap:22px; }
.hero-v3 .primary-btn { background:#101515; color:#fff; border-radius:3px; padding:13px 17px; font-size:11px; font-weight:600; }
.hero-v3 .text-btn { font-size:11px; padding:12px 0; color:#39423f; }
.hero-v3 .hero-note { margin-top:22px; color:#88908c; font-size:9px; }
.hero-v3 .hero-note span { background:#d1e79d; color:#3c5a20; }
.product-preview { background:#fff; border:1px solid #dfe4df; box-shadow:0 30px 70px rgba(21,31,26,.14); min-height:360px; }
.preview-top { height:47px; border-bottom:1px solid #eaede9; display:flex; align-items:center; padding:0 18px; gap:12px; }
.preview-brand { font-size:12px; letter-spacing:-.08em; font-weight:700; }
.preview-brand span { color:#b36d65; }
.preview-code { flex:1; text-align:center; font-size:8px; letter-spacing:.14em; color:#9da4a0; }
.preview-avatar { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; background:#d3e89d; color:#263620; font-size:9px; font-weight:700; }
.preview-body { padding:32px 36px; }
.preview-overline { font-size:8px; letter-spacing:.17em; color:#99a29d; margin-bottom:12px; }
.preview-title { font-size:34px; font-weight:650; letter-spacing:-.07em; }
.preview-sub { font-size:11px; color:#828b86; margin-top:5px; }
.preview-progress { height:5px; background:#edf0eb; margin:31px 0 10px; }
.preview-progress span { display:block; height:100%; background:#8eb950; }
.preview-progress-row { display:flex; justify-content:space-between; font-size:10px; color:#5c6862; }
.preview-progress-row b { color:#769e3c; font-weight:600; }
.preview-rule { border-top:1px solid #edf0ec; margin:24px 0 4px; }
.preview-rows > div { display:flex; align-items:center; padding:16px 0; border-bottom:1px solid #edf0ec; font-size:10px; color:#5d6763; }
.preview-rows .preview-index { width:28px; color:#9aa39f; font-size:9px; }
.preview-rows b { margin-left:auto; font-size:9px; color:#7c9b46; font-weight:600; }
.proof-row { background:#111516; color:#c4cbc7; padding:19px 24px; display:flex; justify-content:center; gap:74px; font-size:9px; letter-spacing:.03em; }
.proof-row b { color:#fff; font-weight:600; }
.feature-strip { padding:53px 86px 66px; background:#fafaf8; }
.section-heading { margin-bottom:30px; }
.section-heading h3 { font-size:22px; font-weight:600; letter-spacing:-.06em; }
.section-heading p { font-size:10px; color:#8a928e; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:42px; }
.feature-item { display:flex; gap:16px; border-top:1px solid #dfe3de; padding-top:17px; }
.feature-item > span { font-size:10px; color:#80964c; letter-spacing:.1em; }
.feature-item h4 { font-size:12px; font-weight:600; margin:0 0 7px; }
.feature-item p { font-size:10px; color:#7f8884; line-height:1.55; margin:0; }
.pain-strip { display:none; }
.road-illustration { display:none; }
.trust-row { display:none; }
.canvas-footer { color:#909793; }

@media (max-width: 980px) {
  .hero-v3 { gap:38px; padding:65px 55px; }
  .hero-v3 h2 { font-size:49px; }
  .product-preview { min-height:315px; }
  .feature-strip { padding:42px 55px; }
}
@media (max-width: 600px) {
  .workspace { grid-template-columns:1fr; }
  .hero-v3 { grid-template-columns:1fr; gap:34px; padding:53px 28px 45px; }
  .hero-v3 h2 { font-size:44px; }
  .hero-v3 .hero-lead { font-size:13px; }
  .hero-v3 .hero-actions { gap:16px; }
  .product-preview { min-height:300px; }
  .preview-body { padding:26px 25px; }
  .preview-title { font-size:29px; }
  .proof-row { gap:14px; justify-content:space-between; font-size:8px; padding:15px 17px; }
  .feature-strip { padding:35px 28px 44px; }
  .feature-grid { grid-template-columns:1fr; gap:25px; }
  .section-heading h3 { font-size:19px; }
}

/* ------------------------------------------------------------------------- */
/* K53-WIRE-1: real API states, auth, practice locks, mock exam and mobile nav */
/* ------------------------------------------------------------------------- */

.account-chip {
  border: 1px solid #3d5149;
  background: transparent;
  color: #eef7f0;
  border-radius: 999px;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.account-chip:hover { border-color: var(--lime); }
.account-chip.is-user { background: var(--lime); border-color: var(--lime); color: #263620; }
.session-chip {
  border: 1px solid #c9d6d0;
  border-radius: 999px;
  padding: 7px 11px;
  color: #586764;
  font-size: 9px;
  max-width: 290px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dot.offline { background: #d96b5d; box-shadow: 0 0 0 4px rgba(217,107,93,.12); }
.mobile-tabbar { display: none; }
.toast-root {
  position: fixed;
  z-index: 200;
  right: 18px;
  top: 82px;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 36px));
  pointer-events: none;
}
.toast {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: #17251f;
  color: #eef5f0;
  border: 1px solid #345043;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.45;
  box-shadow: 0 14px 36px rgba(10,20,15,.24);
  animation: toast-in .2s ease-out;
}
.toast.success { border-color: #87ad4c; }
.toast.error { border-color: #d57a6f; }
.toast.leaving { opacity: 0; transform: translateY(-5px); transition: .22s ease; }
.toast-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d3e89d;
  color: #263620;
  font-weight: 900;
  font-size: 10px;
}
.toast.error .toast-mark { background: #f1c1b9; color: #6b2e27; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }

.spinner {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -1px;
  margin-right: 7px;
  animation: spin .65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.is-busy { cursor: progress !important; }
button:disabled { opacity: .52; cursor: not-allowed; }
button:disabled:hover { transform: none; box-shadow: none; }

.inline-state {
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 11px;
  line-height: 1.5;
  margin: 14px 0;
  background: #edf2eb;
  color: #586764;
}
.inline-state.error { background: #fff0ed; color: #9c4d43; }
.inline-state.success { background: #f0f8df; color: #587334; }
.inline-state.info { background: #edf4f1; color: #4d6a61; }
.inline-success { margin: 17px 0; }
.inline-note {
  background: #f3f6ef;
  border: 1px solid #e1e8dd;
  color: #6a776f;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 10px;
  margin: 0 0 16px;
}
.state-panel {
  border: 1px solid #e0e8e1;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  color: #71807a;
  font-size: 11px;
  line-height: 1.55;
}
.state-panel p { margin: 7px 0 12px; }
.state-panel h3 { color: var(--ink); margin: 0 0 7px; font-size: 15px; letter-spacing: -.04em; }
.state-panel.loading { background: #f2f5f1; }
.state-panel.loading p { margin-bottom: 0; }
.state-panel .skeleton { height: 10px; width: 76%; margin: 7px 0; }
.state-panel .skeleton.short { width: 44%; }
.state-panel.error { background: #fff4f1; border-color: #eed3cd; color: #925148; }
.state-panel.error strong { color: #7d3c33; }
.state-panel.success { background: #f1f8df; border-color: #dce9c6; color: #5f7c38; }
.state-panel.empty { border-style: dashed; background: #fbfcf9; text-align: left; }
.state-panel.compact { padding: 13px; }
.state-panel.compact p { margin: 0; }
.dev-link-box {
  border: 1px dashed #b8c9a0;
  border-radius: 8px;
  background: #f7fbf0;
  padding: 16px;
  margin: 15px 0;
}
.dev-link-box .eyebrow { margin-bottom: 9px; }
.dev-link-box p:last-child { color: #7b8b71; font-size: 9px; line-height: 1.5; margin: 9px 0 0; }
.wide-centered { max-width: 720px; }

.module-row-btn {
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.module-row-btn:hover { background: #f7faf3; }
.module-row-btn:disabled { opacity: 1; }
.quick-progress {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #345044;
  margin-top: 15px;
  padding-top: 11px;
  color: #aebdb7;
  font-size: 9px;
}
.quick-progress b { color: var(--lime); }
.progress-ring:after { content: attr(data-progress); }

.chapter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 14px;
  max-width: 750px;
  margin-inline: auto;
}
.chapter-chip {
  border: 1px solid #dce5dd;
  background: #fff;
  color: #66736d;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 9px;
  line-height: 1.2;
}
.chapter-chip b { color: #75963e; font-weight: 700; }
.chapter-chip.active { border-color: #9bc742; background: #f3f9e6; color: #45642c; }
.chapter-chip.locked { border-style: dashed; color: #9aa39e; background: #f7f8f5; }
.locked-card { max-width: 750px; text-align: left; }
.locked-card h2 { max-width: 520px; }
.locked-card p:not(.eyebrow) { color: #78847f; font-size: 12px; line-height: 1.6; max-width: 540px; }
.locked-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.feedback.progress { background: #eef4f1; color: #5f716a; }
.feedback.error { background: #fff0ed; color: #a7564b; }

.page-lead { color: #77847f; font-size: 12px; margin: -7px 0 22px; max-width: 620px; }
.review-section { margin-top: 24px; }
.review-section .section-heading h3 { font-size: 15px; }
.review-section .section-heading { padding-bottom: 8px; border-bottom: 1px solid #e1e8e1; }
.review-card {
  background: #fff;
  border: 1px solid #e1e9e1;
  border-radius: 8px;
  padding: 17px;
  margin-top: 10px;
}
.review-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.review-head .eyebrow { margin: 0; color: #78904e; }
.review-pos { color: #939d97; font-size: 9px; }
.review-card h3 { font-size: 13px; line-height: 1.4; margin: 9px 0 10px; letter-spacing: -.02em; }
.review-answer { margin: 4px 0; font-size: 10px; line-height: 1.5; }
.review-answer.wrong { color: #9c554b; }
.review-answer.correct { color: #5f7c38; }
.review-explanation { border-top: 1px solid #edf0eb; margin: 10px 0 0; padding-top: 9px; color: #6f7b75; font-size: 10px; line-height: 1.55; }
.result-actions { display: flex; gap: 9px; margin-top: 17px; flex-wrap: wrap; align-items: center; }
.result-copy { font-size: 11px; color: #6d814b; line-height: 1.5; margin: 0 0 15px; }
.result-meta { justify-content: space-between; margin-top: 13px; font-size: 10px; color: #7b8882; gap: 8px; flex-wrap: wrap; }
.result-meta span { white-space: nowrap; }

.last-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid #345063;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0 4px;
  background: #1a2f39;
}
.last-result .eyebrow { margin: 0 0 3px; }
.last-result strong { display: block; color: #fff; font-size: 20px; letter-spacing: -.04em; }
.last-result span { color: #aebdb7; font-size: 9px; }
.mock-exam { padding: 30px 36px 38px; }
.mock-exam-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.mock-title { font-size: 30px !important; margin: 0; }
.mock-saving { display: block; color: #9fb1a9; font-size: 9px; margin-top: 6px; }
.mock-clock { text-align: right; border-left: 1px solid #345063; padding-left: 24px; }
.mock-clock span { display: block; color: #aebdb7; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.mock-clock strong { display: block; color: var(--lime); font-size: 38px; line-height: 1; letter-spacing: -.06em; margin-top: 7px; }
.mock-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 18px; margin-top: 20px; align-items: start; }
.mock-question .question-progress { margin: 0 0 14px; background: #29465a; }
.mock-question .question-progress span { background: var(--lime); }
.mock .question-card .eyebrow { color: #74857a; margin-bottom: 12px; }
.mock .question-card h2 { color: var(--ink); font-size: 19px; line-height: 1.25; }
.mock .question-card { max-width: none; }
.mock-actions { display: flex; justify-content: space-between; margin-top: 12px; }
.mock .text-btn { color: #b8c9c1; }
.mock .text-btn:disabled { opacity: .35; }
.mock-palette { background: #1a2f39; border: 1px solid #345063; border-radius: 8px; padding: 14px; }
.palette-head { color: #b8c9c1; font-size: 10px; }
.palette-head strong { color: #fff; font-size: 15px; }
.palette-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 13px 0; }
.palette-btn {
  border: 1px solid #3d5968;
  background: transparent;
  color: #b8c9c1;
  border-radius: 3px;
  aspect-ratio: 1;
  font-size: 9px;
  padding: 0;
}
.palette-btn.answered { background: #d3e89d; border-color: #d3e89d; color: #263620; }
.palette-btn.current { outline: 2px solid var(--coral); outline-offset: 1px; }
.mock-confirm { background: #fff2ee; color: #773d35; border-radius: 6px; padding: 12px; margin-top: 10px; }
.mock-confirm strong { font-size: 12px; }
.mock-confirm p { color: #8f5a52; font-size: 10px; line-height: 1.45; margin: 5px 0 10px; }
.mock-confirm .primary-btn { margin-bottom: 5px; }

.setting-value { color: #78904e !important; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.settings-note {
  border: 1px solid #e1e9e2;
  background: #fbfcf9;
  border-radius: 8px;
  padding: 14px 16px;
  color: #75827c;
  font-size: 10px;
  line-height: 1.55;
  margin-top: 14px;
}
.settings-note strong { color: var(--ink); }
.switch { border: 0; cursor: pointer; }
.switch.off { background: #d8dfd9; }
.switch.off i { margin-left: 0; }

.state-demo.disabled { background: #f2f5f1; color: #89948f; display: grid; gap: 8px; justify-items: start; }
.state-demo.disabled span { font-size: 9px; }
.state-demo.progress { background: #edf4f1; color: #526e64; display: flex; align-items: center; }
.api-health { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #71807a; font-size: 10px; }
.api-health strong { color: var(--ink); }
.mock .state-panel { background: #1a2f39; border-color: #345063; color: #b8c9c1; }
.mock .state-panel .skeleton { background: #345063; }
.mock .state-panel h3, .mock .state-panel p { color: #d5e0db; }

@media (max-width: 980px) {
  .desktop-board { min-width: 0; width: 100%; }
  .board-wrap { justify-content: center; }
  .mock-layout { grid-template-columns: 1fr; }
  .mock-palette { order: -1; }
  .palette-grid { grid-template-columns: repeat(12, 1fr); }
  .mobile-tabbar {
    display: flex;
    position: fixed;
    z-index: 90;
    left: 0;
    right: 0;
    bottom: 0;
    background: #15251f;
    border-top: 1px solid #2c4438;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    justify-content: space-around;
    box-shadow: 0 -8px 24px rgba(13,25,19,.16);
  }
  .mobile-tabbar button {
    border: 0;
    background: transparent;
    color: #9fb1a9;
    font-size: 9px;
    display: grid;
    gap: 3px;
    justify-items: center;
    padding: 4px 7px;
    border-radius: 5px;
  }
  .mobile-tabbar button span { font-size: 14px; color: #c8d6cf; }
  .mobile-tabbar button.active { background: #263c31; color: #fff; }
  .mobile-tabbar button.active span { color: var(--lime); }
  body { padding-bottom: 62px; }
  .toast-root { top: 17px; }
  .result { padding: 30px 34px; }
  .settings { padding: 34px 38px; }
  .paywall { padding: 34px 38px; }
  .hub-body { grid-template-columns: 1fr; }
  .split-card { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .desktop-board { display: block; }
  .canvas-toolbar { gap: 10px; }
  .canvas-tools { justify-content: flex-start; flex-wrap: wrap; }
  .session-chip { max-width: 210px; }
  .subscreen { padding: 34px 22px; }
  .question-wrap { padding: 20px 17px; }
  .question-card { padding: 18px; }
  .question-card h2 { font-size: 18px; }
  .question-top { gap: 10px; flex-wrap: wrap; }
  .question-actions { gap: 8px; }
  .result { padding: 25px 18px; }
  .result-banner { align-items: flex-start; gap: 14px; }
  .result-banner h2 { font-size: 23px; }
  .result-grid { grid-template-columns: 1fr; }
  .score strong { font-size: 33px; }
  .paywall { padding: 27px 18px; }
  .price-layout { grid-template-columns: 1fr; }
  .settings { padding: 28px 17px; }
  .setting-row { gap: 12px; flex-wrap: wrap; }
  .setting-row > button { margin-left: auto; }
  .settings h2 { font-size: 27px; }
  .hub-header { padding: 23px 20px 16px; }
  .hub-body { padding: 16px 17px; }
  .module-copy span { line-height: 1.4; }
  .module-status { white-space: nowrap; }
  .chapter-strip { max-width: none; }
  .mock { padding: 25px 18px 32px; }
  .mock-exam { padding: 18px 13px 30px; }
  .mock h2 { font-size: 30px; }
  .mock-title { font-size: 24px !important; }
  .mock-exam-head { gap: 10px; }
  .mock-clock { padding-left: 12px; }
  .mock-clock strong { font-size: 28px; }
  .mock-palette { padding: 11px; }
  .palette-grid { grid-template-columns: repeat(8, 1fr); }
  .last-result { align-items: flex-start; flex-direction: column; }
  .account-chip { padding: 0 10px; }
  .toast-root { right: 10px; width: calc(100vw - 20px); }
}

.login-mode-switch { margin-top: 14px; }
.receipt-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #60736a !important;
  word-break: break-all;
  max-width: 430px;
  display: inline-block;
}

/* Keep the timed exam on its dark product surface and make selected answers neutral. */
.app.mock {
  background: var(--bg);
  color: #fff;
}
.mock h2 { color: #fff; }
.mock .question-card h2 { color: var(--ink); }
.mock .option.selected {
  border-color: #9dc655;
  background: #f0f8df;
  color: var(--ink);
}
.price-card.featured .primary-btn {
  background: var(--lime);
  color: var(--ink);
  box-shadow: none;
}
.price-card.featured .primary-btn:hover { background: #b6e45f; }
/* The hidden mobile board from the prototype is intentionally not rendered. */
.mobile-board { display: none !important; }

/* Product gate: visible six states and explanation language */
button,
a,
input {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease,
    box-shadow .16s ease, transform .16s ease, opacity .16s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #2f6f5e;
  outline-offset: 3px;
}

.primary-btn:hover {
  background: #e65c4d;
}

.primary-btn:active {
  transform: translateY(5px);
  box-shadow: 0 2px 0 #d45145;
}

.secondary-btn:hover {
  background: #dce9c4;
  color: #3f5b25;
}

.secondary-btn:active {
  transform: translateY(1px);
  background: #cfdfb3;
}

.text-btn:hover {
  background: #edf3e9;
  color: var(--ink);
}

.text-btn:active {
  background: #dfe8da;
  transform: translateY(1px);
}

.option {
  transition: background-color .16s ease, border-color .16s ease, transform .12s ease;
}

.option:hover:not(:disabled) {
  border-color: var(--lime-deep);
  background: #f4f9e9;
}

.option:active:not(:disabled) {
  transform: scale(.995);
  background: #eaf3d8;
}

.option:disabled {
  cursor: not-allowed;
}

.option.correct:disabled,
.option.wrong:disabled,
.option.selected:disabled {
  opacity: 1;
}

.option.selected:not(:disabled) {
  box-shadow: inset 0 0 0 1px var(--coral);
}

.is-busy,
button[aria-busy="true"] {
  cursor: progress;
}

.feedback-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.feedback-body p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  width: fit-content;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid #dde6dc;
  border-radius: 999px;
  background: #f7f9f3;
}

.language-switch > span {
  padding: 0 7px;
  color: #738079;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.language-switch.compact {
  margin: 7px 0 0;
  background: rgba(255, 255, 255, .55);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: #607069;
  font-size: 9px;
  font-weight: 800;
}

.lang-btn:hover {
  background: #e8f0df;
  color: var(--ink);
}

.lang-btn:active {
  transform: translateY(1px);
}

.lang-btn.active,
.lang-btn[aria-pressed="true"] {
  background: #17251f;
  color: #fff;
}

.setting-row .language-switch {
  margin: 0;
  flex-shrink: 0;
}

.review-section > .language-switch {
  margin-top: 12px;
}

.mistakes-page > .language-switch {
  margin-bottom: 20px;
}

.price-card.featured .primary-btn:active {
  transform: translateY(1px);
  background: #a9da4d;
}

.palette-btn:focus-visible,
.chapter-chip:focus-visible,
.module-row-btn:focus-visible {
  outline: 3px solid #2f6f5e;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Signed-out free preview */
.guest-banner {
  max-width: 750px;
  margin: 0 auto 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #dbe7c8;
  border-radius: 9px;
  background: #f6fae9;
  color: #546a37;
}

.guest-banner div {
  display: grid;
  gap: 2px;
}

.guest-banner strong {
  font-size: 11px;
}

.guest-banner span {
  font-size: 9px;
  color: #75836b;
}

.guest-banner .secondary-btn {
  flex-shrink: 0;
  padding: 8px 11px;
}

.guest-state-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.state-pill {
  border: 1px solid #dfe7dc;
  border-radius: 999px;
  padding: 5px 9px;
  color: #6e7c75;
  background: #f8faf5;
  font-size: 9px;
  font-weight: 700;
}

.state-pill.success {
  border-color: #cfe2b3;
  background: #f0f8df;
  color: #587334;
}

@media (max-width: 700px) {
  .guest-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Button-state matrix on the UI states screen */
.button-state-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 24px;
}

.button-state-card {
  display: grid;
  gap: 9px;
  align-content: start;
  justify-items: start;
  padding: 12px;
  border: 1px solid #dfe7dc;
  border-radius: 9px;
  background: #fff;
  min-width: 0;
}

.button-state-card > span {
  color: #77857e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.button-state-card .primary-btn {
  width: 100%;
  padding: 11px 8px;
  font-size: 10px;
  white-space: nowrap;
}

.primary-btn.is-demo-hover {
  background: #e65c4d;
  transform: translateY(1px);
  box-shadow: 0 5px 0 #d45145;
}

.primary-btn.is-demo-focus {
  outline: 3px solid #2f6f5e;
  outline-offset: 3px;
}

.primary-btn.is-demo-active {
  background: #d95547;
  transform: translateY(5px);
  box-shadow: 0 2px 0 #d45145;
}

@media (max-width: 1000px) {
  .button-state-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .button-state-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
