/* =====================================================================
   Styles. Colours are CSS variables at the top: change them in one place.
   Three themes, picked with the "Display" button (Aa):
     light = warm sand (default)
     warm  = deeper sand (easiest for long reading)
     dark  = soft navy dark (text never pure white)
   "Automatic" follows the device. js/theme.js sets data-theme on <html>.
   All text meets WCAG AA contrast (body text 11:1 or more).
   ===================================================================== */
/* EdBoat theme (navy + royal blue + gold). Variable names unchanged; only values. */
:root {
  --bg:          #F5EAD8;  /* sand page */
  --surface:     #FBF6EE;  /* cards */
  --surface-2:   #EBDDC5;  /* tinted sections */
  --text:        #201E1D;
  --text-muted:  #5B554D;
  --border:      #DCD3C4;
  --border-strong:#A19786;
  --accent:      #2F6BD6;  /* royal blue: buttons, links */
  --accent-hover:#1E4690;
  --accent-ink:  #FFFFFF;
  --accent-soft: #E1EAFB;
  --heading:     #0F2747;  /* navy */
  --navy:        #0F2747;  /* NEW: dark panels, exam bars, footer */
  --navy-2:      #1B3A63;  /* NEW: decorative circles / fills on navy */
  --sky:         #8DB0F2;  /* NEW: accent on navy */
  --gold:        #F0AE3C;  /* NEW: highlight (tassel colour) */
  --gold-soft:   #FCE9C8;
  --gold-ink:    #6B3F05;
  --soon-bg:     #FCE9C8;
  --soon-text:   #6B3F05;
  --ok:          #24683C;
  --ok-bg:       #DCEDDF;
  --bad:         #9C3229;
  --bad-bg:      #F5E0DC;
  --focus:       #2F6BD6;
  --shadow:      0 3px 10px rgba(46,43,37,.16);
  --shadow-lg:   0 12px 32px rgba(46,43,37,.22);

  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Caprasimo", Georgia, serif;   /* headings only, weight 400 */

  --radius: 28px;       /* cards */
  --radius-lg: 32px;    /* big panels */
  --radius-sm: 20px;    /* small cards, chips */
  /* buttons, inputs, tags, selects: border-radius: 999px (pill) */
  color-scheme: light;
}
:root[data-theme="warm"] {
  --bg:#EDE2CC; --surface:#F6EEDF; --surface-2:#E3D4B8; --text:#2F2A22; --text-muted:#5E5445;
  --border:#D6CBB2; --border-strong:#B3A588;
  --accent:#2556B0; --accent-hover:#1E4690; --accent-ink:#FFFFFF; --accent-soft:#DDE4F2;
  --heading:#0F2747; --focus:#2556B0;
}
:root[data-theme="dark"] {
  --bg:#121A26; --surface:#1A2433; --surface-2:#212D3F; --text:#DCE3EC; --text-muted:#A3AFBF;
  --border:#2E3B4F; --border-strong:#46566D;
  --accent:#8DB0F2; --accent-hover:#B0C9F6; --accent-ink:#0F2747; --accent-soft:#1E3152;
  --heading:#E6ECF4; --navy:#0B1C33; --navy-2:#1B3A63; --sky:#8DB0F2;
  --gold:#F0AE3C; --gold-soft:#3A2F1C; --gold-ink:#F3CD86;
  --soon-bg:#3A2F1C; --soon-text:#F3CD86; --ok:#8CCB9E; --ok-bg:#1E3326; --bad:#E9A097; --bad-bg:#3B2421;
  --focus:#B0C9F6; --shadow:0 3px 10px rgba(0,0,0,.3); --shadow-lg:0 12px 32px rgba(0,0,0,.4);
  color-scheme: dark;
}
/* Type scale, spacing (unchanged) */
:root {
  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: clamp(2rem, 1.4rem + 2.2vw, 2.875rem);
  --fs-xxl: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem);
  --gutter: 16px;
  --section-y: clamp(56px, 8vw, 88px);
}
/* Larger text (Display > Text size) */
:root[data-size="large"] { font-size: 112.5%; }
:root[data-size="xl"] { font-size: 125%; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 650; }
h1 { font-size: var(--fs-xxl); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: var(--accent-ink); }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 32px; } }
.narrow { max-width: 820px; }

.section { padding: var(--section-y) 0; }
.section-tint { background: var(--surface-2); }
.section-intro { color: var(--text-muted); font-size: var(--fs-md); max-width: 60ch; margin-bottom: 2.25rem; }
.eyebrow { font-size: var(--fs-sm); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: 700 1rem/1 var(--font-body);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-head); font-weight: 750; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; inset: 6px 5px 7px 6px; border: solid var(--accent-ink); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.logo-img { height: 32px; width: auto; display: block; }
.nav-toggle { display: none; }
.site-menu { display: flex; align-items: center; gap: 24px; }
.site-menu ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-menu ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text); text-decoration: none; font-size: .9375rem; border-radius: var(--radius-sm); }
.site-menu ul a:hover { color: var(--accent); background: var(--surface-2); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); cursor: pointer; }
  .site-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .site-menu.is-open { display: flex; }
  .site-menu ul { flex-direction: column; }
  .site-menu ul a { width: 100%; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 var(--section-y); }
.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.hero h1 { max-width: 14ch; }
.lead { font-size: var(--fs-md); color: var(--text-muted); max-width: 46ch; margin-bottom: 1.75rem; }
.hero-note { margin-top: 1rem; font-size: var(--fs-sm); color: var(--text-muted); }

/* Illustration: test screen */
.mock-screen { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: .8125rem; max-width: 520px; width: 100%; justify-self: center; }
.mock-bar, .mock-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.mock-foot { border-bottom: 0; border-top: 1px solid var(--border); justify-content: space-between; }
.mock-chip { background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.mock-count { color: var(--text-muted); }
.mock-timer { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.mock-body { padding: 20px 16px 16px; }
.mock-line { display: block; height: 10px; border-radius: 6px; background: var(--surface-2); margin-bottom: 10px; }
.w90 { width: 90%; } .w75 { width: 75%; } .w70 { width: 70%; } .w65 { width: 65%; } .w60 { width: 60%; } .w50 { width: 50%; }
.mock-options { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.mock-options li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.mock-options .mock-line { margin: 0; flex: 0 1 auto; }
.mock-options li.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.mock-radio { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; }
.is-picked .mock-radio { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 8px var(--accent); }
.is-picked .mock-line { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.mock-flag { display: inline-flex; align-items: center; gap: 6px; color: var(--soon-text); font-weight: 700; }
.mock-nav { display: flex; gap: 4px; }
.mock-nav i { width: 10px; height: 10px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); }
.mock-nav i.done { background: var(--accent); border-color: var(--accent); }
.mock-nav i.flagged { background: var(--soon-bg); border-color: var(--soon-text); }
.mock-nav i.current { outline: 2px solid var(--text); outline-offset: 1px; }
.mock-next { background: var(--accent); color: var(--accent-ink); padding: 6px 14px; border-radius: 999px; font-weight: 700; }
@media (max-width: 420px) { .mock-nav, .mock-count { display: none; } }

/* ---------- Free trial ---------- */
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts li { background: var(--surface); padding: 16px 20px; display: grid; gap: 2px; }
.facts strong { font-family: var(--font-head); font-size: var(--fs-md); font-weight: 650; }
.facts span { color: var(--text-muted); font-size: .9375rem; }

/* ---------- Tiers ---------- */
.tier-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.tier-num { font-family: var(--font-head); font-weight: 750; font-size: 2.5rem; line-height: 1; color: var(--accent); }
.tier h3 { margin: 0; }
.tier p { margin: 0; color: var(--text-muted); }
.badge-soon { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: var(--soon-bg); color: var(--soon-text); white-space: nowrap; }
.badge-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Features ---------- */
.feature-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.feature .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
.feature p { color: var(--text-muted); margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-head); font-weight: 750; font-size: 1.125rem; margin-bottom: 16px; }
.steps p { color: var(--text-muted); margin: 0; }

/* ---------- Sample question ---------- */
.sample-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.sample-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sample-card legend { font-family: var(--font-head); font-size: var(--fs-md); font-weight: 650; margin-bottom: 18px; padding: 0; }
.sample-options { display: grid; gap: 10px; }
.option { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; min-height: 52px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.option:hover { border-color: var(--border-strong); }
.option input { margin: 3px 0 0; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.option-letter { font-weight: 700; color: var(--text-muted); min-width: 1.2em; }
.option-body { flex: 1; min-width: 0; }
.option-expl { display: block; margin-top: 6px; font-size: .9375rem; color: var(--text-muted); }
.option.is-correct { border-color: var(--ok); background: var(--ok-bg); }
.option.is-wrong { border-color: var(--bad); background: var(--bad-bg); }
.option-tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.is-correct .option-tag { background: var(--ok); color: var(--surface); }
.is-wrong .option-tag { background: var(--bad); color: var(--surface); }
.form-msg { color: var(--bad); font-weight: 700; min-height: 1.6em; margin: 12px 0 4px; font-size: .9375rem; }
.sample-result:not(:empty) { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface-2); }
.sample-result p { margin: 0; }
.sample-result strong { font-family: var(--font-head); }

/* ---------- Price card ---------- */
.price-card { background: var(--surface); border: 2px solid var(--accent); border-radius: 16px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.price-head { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 20px; }
.price-name { margin-bottom: 8px; }
.price { margin: 0 0 6px; }
.price-amount { font-family: var(--font-head); font-size: var(--fs-xxl); font-weight: 750; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.price-currency { font-weight: 700; color: var(--text-muted); font-size: var(--fs-md); }
.price-sub { color: var(--text-muted); margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check-list svg { color: var(--accent); margin-top: 2px; }
.check-list .item-label { font-weight: 700; }
.check-list .item-desc { display: block; color: var(--text-muted); font-size: .9375rem; }
.check-list .badge-soon { margin-left: 8px; vertical-align: 1px; }
.disclaimer { font-size: var(--fs-sm); color: var(--text-muted); margin: 20px 0 0; line-height: 1.55; }

/* ---------- FAQ accordion ---------- */
.faq-group { margin-bottom: 32px; }
.faq-group h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-family: var(--font-body); font-weight: 700; margin-bottom: 8px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q { margin: 0; font-size: 1rem; }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 4px; background: none; border: 0; color: var(--text); font: 700 1.0625rem/1.4 var(--font-body); text-align: left; cursor: pointer; }
.faq-btn:hover { color: var(--accent); }
.faq-btn svg { flex: none; transition: transform .2s ease; color: var(--accent); }
.faq-btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a { padding: 0 4px 20px; color: var(--text-muted); max-width: 68ch; }
.faq-a p { margin: 0; }

/* ---------- Contact ---------- */
.copy-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); margin: 8px 0; }
.copy-text { font-size: var(--fs-md); font-weight: 700; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; flex: 1 1 200px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 120px; background: var(--bg); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 8px; }
.footer-brand { font-family: var(--font-head); font-weight: 750; font-size: 1.25rem; margin-bottom: 4px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--text); }
.site-footer .disclaimer { max-width: 80ch; border-top: 1px solid var(--border); padding-top: 20px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); max-width: calc(100% - 32px); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: var(--radius-sm); font-size: .9375rem; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 90; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Chatbot ---------- */
.chat-launcher { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: 700 1rem/1 var(--font-body); box-shadow: 0 6px 20px rgba(0,0,0,.18); cursor: pointer; }
.chat-launcher:hover { background: var(--accent-hover); }
.chat-launcher[aria-expanded="true"] { display: none; }
.chat-panel { position: fixed; right: 16px; bottom: 16px; z-index: 70; width: 380px; max-width: calc(100vw - 32px); height: min(620px, calc(100vh - 32px)); height: min(620px, calc(100dvh - 32px)); display: flex; flex-direction: column; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.22); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 14px 10px 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.chat-title { font-family: var(--font-head); font-weight: 650; font-size: 1.125rem; margin: 0 0 2px; }
.chat-note { font-size: .8125rem; color: var(--text-muted); margin: 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg p { margin: 0 0 .5em; } .msg p:last-child { margin: 0; }
.msg-bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg-user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg-meta { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font: 400 .875rem/1.3 var(--font-body); cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input, .lead-form input, .lead-form textarea { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--bg); color: var(--text); font: 400 1rem/1.4 var(--font-body); }
.chat-form input:focus-visible, .lead-form input:focus-visible, .lead-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.lead-form { display: grid; gap: 8px; margin-top: 10px; }
.lead-form label { font-size: .8125rem; font-weight: 700; }
.lead-form input, .lead-form textarea { border-radius: var(--radius-sm); width: 100%; font-size: .9375rem; }
.lead-form textarea { min-height: 72px; resize: vertical; }
.lead-form .form-msg { margin: 0; min-height: 0; font-size: .8125rem; }
@media (max-width: 480px) {
  .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%; height: 88vh; height: 88dvh; border-radius: 16px 16px 0 0; }
}

/* ---------- Legal template pages ---------- */
.template-banner { background: var(--soon-bg); color: var(--soon-text); border: 2px dashed currentColor; border-radius: var(--radius); padding: 16px 20px; font-weight: 700; margin: 32px 0; }
.legal { padding-top: 24px; padding-bottom: var(--section-y); }
.legal h1 { font-size: var(--fs-xl); }
.legal h2 { font-size: var(--fs-md); margin-top: 2em; }
.legal p, .legal li { color: var(--text); max-width: 70ch; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   Short, quick-decision layout
   ===================================================================== */
.center { text-align: center; }
.center-block { max-width: 72ch; margin-left: auto; margin-right: auto; text-align: center; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.hero { padding-bottom: clamp(48px, 7vw, 88px); }
.hero .lead { margin-bottom: 1.25rem; }

/* Hero quick facts */
.quick-facts { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quick-facts li { background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 6px 14px; font-size: .9375rem; }
.quick-facts strong { color: var(--accent); }

/* How it works, as one line */
.step-line { list-style: none; margin: 0 auto 32px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; color: var(--text-muted); font-weight: 700; }
.step-line li { display: inline-flex; align-items: center; gap: 8px; }
.step-line span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .875rem; }

/* Free vs bundle */
.plan-grid { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 880px; margin: 0 auto; align-items: stretch; }
@media (min-width: 720px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(22px, 3.5vw, 32px); display: flex; flex-direction: column; }
.plan-main { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { font-size: var(--fs-md); margin-bottom: 4px; }
.plan-price { margin: 0 0 2px; }
.plan .price-amount { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.plan-sub { color: var(--text-muted); font-size: .9375rem; margin: 0 0 20px; }
.plan .check-list { margin-bottom: 24px; gap: 10px; flex: 1; }
.plan .check-list li { grid-template-columns: 20px 1fr; gap: 10px; font-size: .9875rem; }
.plan .badge-soon { margin-left: 4px; }
.ck { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); position: relative; margin-top: 2px; }
.ck::after { content: ""; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
#plans .disclaimer { margin-top: 24px; }

/* Feature strip */
.feature-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .feature-strip { grid-template-columns: repeat(3, 1fr); } }
.feature-strip li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.feature-strip svg { width: 28px; height: 28px; color: var(--accent); }
.feature-strip strong { font-size: .9875rem; line-height: 1.35; }

/* FAQ, short version */
.faq-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 24px 0 8px; text-align: center; }
.faq-more p { margin: 0; }
#faq-all { margin-top: 24px; }
.faq-cat { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 700; margin: 0 0 8px; }
#contact .copy-box { max-width: 560px; margin: 8px auto; }

/* Chat: suggestions sit inside the conversation, answers read from the top */
.chat-log { position: relative; }
.chat-log .chat-chips { padding: 4px 0 0; flex-direction: column; align-items: flex-start; }

/* Anything marked hidden stays hidden, whatever its display style */
[hidden] { display: none !important; }
.plan .check-list { align-content: start; }
@media (max-width: 640px) { .mock-screen { display: none; } }

/* =====================================================================
   EdBoat brand: logo image and colours taken from the logo
   ===================================================================== */
h1, h2 { color: var(--heading); }
.brand.has-logo-img .brand-mark { display: none; }
.logo-img { height: 30px; width: auto; display: block; }
.footer-brand .logo-img { height: 26px; }
@media (max-width: 400px) { .logo-img { height: 26px; } }
/* Light and dark versions of the logo; a single logo gets a light badge in the dark setting */
.logo-img.logo-dark { display: none; }
:root[data-theme="dark"] .logo-img.logo-light { display: none; }
:root[data-theme="dark"] .logo-img.logo-dark { display: block; }
:root[data-theme="dark"] .logo-img:not(.logo-light):not(.logo-dark) { background: #EEF0EC; padding: 5px 9px; border-radius: 8px; box-sizing: content-box; }

/* Subjects covered */
.subjects { margin-top: 32px; text-align: center; }
.subjects-title { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-family: var(--font-body); font-weight: 700; margin-bottom: 12px; }
.subject-list { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; }
.subject-list li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .9375rem; }

/* Real test screenshot + brand symbol in the hero */
.hero-mark { width: 100%; max-width: 360px; height: auto; justify-self: center; }
@media (max-width: 640px) { .hero-mark { display: none; } }
.screen-shot { margin: 0 auto 28px; max-width: 1040px; }
.screen-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.screen-shot figcaption { text-align: center; font-size: var(--fs-sm); color: var(--text-muted); margin-top: 10px; }
.hero-mark { max-width: 300px; }

/* Free test page */
.free-test { padding-top: 24px; padding-bottom: var(--section-y); }
.free-test h1 { font-size: var(--fs-xl); }
.test-frame { margin-top: 16px; min-height: 480px; }
.test-frame iframe { width: 100%; border: 0; }
.test-fallback { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--border, #ccc); border-radius: 12px; }

/* Three or more plan cards (free test + several bundles) */
.plan-grid.cols-3 { max-width: 1160px; }
@media (min-width: 980px) { .plan-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.plan .price-currency { color: var(--text-muted); font-size: .9375rem; font-weight: 700; }
.plan-count { margin: -8px 0 16px; font-size: 1.0625rem; }
.plan-count strong { font-size: 1.375rem; color: var(--accent); }

/* ---------- Display settings (Aa) ---------- */
.display-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 40px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text); font: 700 .9375rem/1 var(--font-body); cursor: pointer; }
.display-btn:hover { border-color: var(--accent); color: var(--accent); }
.display-pop { position: fixed; z-index: 90; width: 290px; max-width: calc(100vw - 24px); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 36px rgba(0,0,0,.18); padding: 14px 16px 16px; font-family: var(--font-body); }
.display-pop h2 { font-size: 1rem; margin: 0 0 4px; color: var(--text); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.display-pop fieldset { border: 0; padding: 0; margin: 10px 0 0; }
.display-pop legend { font-size: .8125rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; padding: 0; }
.display-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.display-opts label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: .9375rem; line-height: 1.2; }
.display-opts label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.display-opts input { accent-color: var(--accent); margin: 0; flex: none; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); flex: none; }
.swatch.light { background: linear-gradient(135deg, #F5EAD8 50%, #2F6BD6 50%); }
.swatch.warm { background: linear-gradient(135deg, #EDE2CC 50%, #2556B0 50%); }
.swatch.dark { background: linear-gradient(135deg, #1A2433 50%, #8DB0F2 50%); }
.swatch.auto { background: linear-gradient(135deg, #F5EAD8 50%, #1A2433 50%); }
.header-inner:has(.display-btn) { justify-content: flex-start; }
.header-inner:has(.display-btn) > .brand { margin-right: auto; }
.header-inner > .display-btn { order: 5; }
.header-inner > .nav-toggle { order: 6; }
.exam-top .display-btn { margin-left: 4px; background: transparent; color: var(--ex-bar-ink); border-color: rgba(255,255,255,.5); min-height: 36px; font-family: Arial, sans-serif; }
.exam-top .display-btn:hover { color: var(--ex-bar-ink); border-color: var(--ex-bar-ink); }
.exam-body .display-pop { font-family: Arial, sans-serif; }
.msg ul { margin: 0 0 .5em; padding-left: 1.2em; } .msg li { margin: 2px 0; }
.msg-typing { color: var(--text-muted); animation: chat-pulse 1.2s ease-in-out infinite; }
@keyframes chat-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .msg-typing { animation: none; } }

/* =====================================================================
   Help chat (design v2): navy header, soft bubbles, round send button
   ===================================================================== */
.chat-launcher { right: 20px; bottom: 20px; min-height: 54px; padding: 0 22px 0 18px; gap: 10px; font-size: 1rem; letter-spacing: .01em;
  box-shadow: 0 8px 24px rgba(15,39,71,.30), 0 2px 6px rgba(0,0,0,.12); transition: transform .15s ease, box-shadow .15s ease; }
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,39,71,.36), 0 2px 6px rgba(0,0,0,.12); }
.chat-panel { right: 20px; bottom: 20px; width: 390px; height: min(600px, calc(100vh - 40px)); height: min(600px, calc(100dvh - 40px));
  border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0,0,0,.22), 0 4px 12px rgba(0,0,0,.08); background: var(--bg); }
.chat-head { align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border: 0; background: var(--navy); color: #F4F7F6; }
:root[data-theme="dark"] .chat-head { background: var(--navy); }
.chat-avatar { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; flex: none; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-title { color: #FFFFFF; font-size: 1.0625rem; margin: 0; line-height: 1.3; }
.chat-note { color: rgba(244,247,246,.82); font-size: .8125rem; display: flex; align-items: center; gap: 6px; margin: 2px 0 0; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #6EE7A8; box-shadow: 0 0 0 3px rgba(110,231,168,.25); flex: none; }
.chat-x { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.12); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.chat-x:hover { background: rgba(255,255,255,.22); }
.chat-x:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.chat-log { padding: 18px 16px 12px; gap: 12px; background: var(--bg); scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: .9375rem; line-height: 1.55; }
.msg-bot { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.msg-user { border-bottom-right-radius: 6px; box-shadow: 0 2px 6px rgba(15,39,71,.18); }
.msg-bot a { color: var(--accent); font-weight: 700; }
.msg .btn-sm { margin-top: 4px; }
.msg-typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; animation: none; }
.msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); opacity: .4; animation: chat-dots 1.2s infinite ease-in-out; }
.msg-typing span:nth-child(2) { animation-delay: .15s; } .msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dots { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .msg-typing span { animation: none; opacity: .6; } .chat-launcher { transition: none; } }
.chat-log .chat-chips { gap: 8px; padding: 2px 0 0; }
.chat-chips-label { margin: 4px 0 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.chat-chips .chip { min-height: 40px; padding: 8px 14px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .875rem; border-radius: 12px; }
.chat-chips .chip:hover { background: var(--accent); color: var(--accent-ink); }
.chat-form { gap: 8px; padding: 12px 12px 8px; border-top: 1px solid var(--border); background: var(--surface); align-items: center; }
.chat-form input { border: 1px solid var(--border-strong); background: var(--bg); padding: 10px 16px; font-size: .9375rem; }
.chat-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.chat-send { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-send:hover { background: var(--accent-hover); }
.chat-foot { margin: 0; padding: 0 14px 10px; background: var(--surface); font-size: .75rem; color: var(--text-muted); text-align: center; }
.chat-foot a { color: var(--accent); }
@media (max-width: 520px) {
  .chat-launcher { right: 14px; bottom: 14px; }
  .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%; height: 90vh; height: 90dvh; border-radius: 20px 20px 0 0; border-bottom: 0; }
}

/* =====================================================================
   EdBoat v3 look (design handoff, Nov 2026)
   Sand ground, Caprasimo headings over Figtree, pill shapes, navy panels,
   royal-blue actions, tassel-gold highlights. Overrides the rules above.
   ===================================================================== */
body { font-family: var(--font-body); line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; color: var(--heading); }
h1 { font-size: var(--fs-xxl); font-weight: 400; letter-spacing: -0.015em; }
b, strong { font-weight: 700; }
.eyebrow { color: var(--accent); letter-spacing: .08em; }
.pill-eyebrow { display: inline-block; align-self: flex-start; background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; padding: 6px 14px; font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0; }

/* Buttons and other controls are pills */
.btn { border-radius: 999px; font-family: var(--font-body); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-secondary { border-width: 1.5px; border-color: var(--border-strong); }
.btn-sky { background: var(--sky); color: #0F2747; }
.btn-sky:hover { background: #B0C9F6; color: #0F2747; }
.btn-gold { background: var(--gold); color: #3A2303; }
.btn-gold:hover { background: #F5C063; color: #3A2303; }
.chip, .subject-list li, .display-btn { border-radius: 999px; }

/* Header: the wordmark picture has built-in padding */
.site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom-color: color-mix(in srgb, var(--text) 10%, transparent); }
.header-inner { min-height: 76px; }
.logo-img { height: 52px; margin: -6px 0; }
.site-menu ul a { font-weight: 500; font-size: 1rem; border-radius: 999px; padding: 0 14px; }
#nav-login-link { font-weight: 600; color: var(--heading); }
@media (max-width: 640px) { .logo-img { height: 44px; margin: -4px 0; } .header-inner { min-height: 64px; } }
.footer-brand .logo-img { height: 48px; }
.site-footer .logo-img.logo-light, .site-footer .logo-img:not(.logo-dark) { display: none; }
.site-footer .logo-img.logo-dark { display: block; }

/* ---------- Home: hero ---------- */
.hero { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-copy > * { margin: 0; }
.hero h1 { max-width: 15ch; font-size: clamp(2.375rem, 1.4rem + 3.9vw, 4.25rem); line-height: 1.04; text-wrap: balance; }
.hero .lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); max-width: 30ch; margin: 0; color: var(--text-muted); }
.hero .btn-row { gap: 12px; }
.quick-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 28px; margin: 12px 0 0; padding: 24px 0 0; border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent); width: 100%; }
.quick-facts li { background: none; padding: 0; border-radius: 0; font-size: .875rem; color: var(--text-muted); display: block; }
.quick-facts strong { display: block; }
.quick-facts strong { font-family: var(--font-head); font-weight: 400; font-size: 1.75rem; line-height: 1.2; color: var(--heading); }
.hero-phone-photo { display: none; }
.hero-art { position: relative; height: 520px; display: none; }
@media (min-width: 900px) { .hero-art { display: block; } }
.hero-circle { position: absolute; right: -40px; top: 0; width: 520px; height: 520px; max-width: 100%; border-radius: 50%; background: var(--accent-soft); overflow: hidden; margin: 0; }
.hero-circle img, .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-dot { position: absolute; left: 60px; top: 30px; width: 96px; height: 96px; border-radius: 50%; background: var(--gold); opacity: .9; }
.hero-shot { position: absolute; left: -24px; top: 236px; width: 440px; max-width: 90%; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-badge { position: absolute; right: 0; bottom: -6px; background: var(--surface); border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; }
.hero-badge > span { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9375rem; flex: none; }
.hero-badge b { display: block; font-size: .9375rem; }
.hero-badge small { font-size: .8125rem; color: var(--text-muted); }
.photo { margin: 0; overflow: hidden; }
@media (max-width: 899px) {
  .hero-phone-photo { display: block; height: 220px; width: 100%; border-radius: 28px; }
  .hero .btn-row { width: 100%; flex-direction: column; }
  .hero .btn-row .btn { width: 100%; }
  .quick-facts { grid-template-columns: 1fr 1fr; gap: 10px; border-top: 0; padding-top: 0; }
  .quick-facts li { background: var(--surface); border-radius: 20px; padding: 14px 16px; font-size: .8125rem; }
  .quick-facts strong { font-size: 1.5rem; }
}

/* ---------- Home: free vs bundle ---------- */
.section-tint { background: var(--surface-2); }
.plans-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }
.plans-head h2 { margin: 0; max-width: 16ch; font-size: var(--fs-xl); }
.step-line { margin: 0; gap: 10px; justify-content: flex-start; color: var(--text); font-weight: 600; font-size: .9375rem; }
.step-line li { background: var(--surface); border-radius: 999px; padding: 8px 16px 8px 8px; gap: 10px; }
.step-line span { width: 26px; height: 26px; background: var(--navy); color: #fff; font-size: .8125rem; }
.plan-grid { max-width: none; gap: 24px; }
@media (min-width: 720px) { .plan-grid { grid-template-columns: 1fr 1.25fr; } }
.plan { background: var(--surface); border: 0; border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 36px); gap: 0; }
.plan h3 { font-size: 1.75rem; margin: 0 0 14px; }
.plan .price-amount { font-family: var(--font-head); font-weight: 400; letter-spacing: 0; font-size: clamp(2.25rem, 1.6rem + 2vw, 2.75rem); color: var(--text); }
.plan .plan-price { margin: 0 0 12px; }
.plan .plan-sub { font-size: 1rem; margin-bottom: 18px; }
.plan .check-list li { font-size: 1rem; }
.ck { background: none; }
.ck::after { border-color: var(--accent); left: 7px; }
.plan-note { margin: 20px 0 0; font-size: .9375rem; }
#plans .disclaimer { text-align: left; }
.plan-main { position: relative; overflow: hidden; background: var(--navy); color: #DBE3EA; border: 0; box-shadow: var(--shadow-lg); }
.plan-main::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--navy-2); }
.plan-main > * { position: relative; }
.plan-main h3 { color: #fff; }
.plan-main .plan-sub, .plan-main .plan-note, .plan-main .price-term, .plan-main .price-alt { color: #C9D4DD; }
.plan-main .price-amount { color: #fff; font-size: clamp(2.75rem, 2rem + 2.4vw, 3.75rem); line-height: 1; }
.plan-main .check-list { grid-template-columns: 1fr; }
@media (min-width: 1000px) { .plan-grid:not(.cols-3) .plan-main .check-list { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.plan-main .ck::after { border-color: #9DBDF5; }
.plan-main .plan-count, .plan-main .plan-count strong { color: #fff; }
.plan-main .badge-soon { background: #3A2F1C; color: #F3CD86; }
.plan-main .plan-sub:only-of-type { color: #C9D4DD; }
.plan-flag { align-self: flex-start; display: inline-block; background: var(--gold); color: #3A2303; border-radius: 999px; padding: 5px 12px; font-size: .8125rem; font-weight: 700; margin: 0 0 14px; }
.price-was { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 8px; }
.price-was s { font-size: 1.375rem; font-weight: 600; color: var(--text-muted); text-decoration-thickness: 2px; }
.plan-main .price-was s { color: #9FB0BF; }
.save-pill { display: inline-block; background: var(--gold); color: #3A2303; border-radius: 999px; padding: 4px 12px; font-size: .875rem; font-weight: 800; }
.offer-note { font-size: .875rem; font-weight: 600; color: var(--gold-ink); }
.plan-main .offer-note { color: #F3CD86; }
.price-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 6px; }
.price-term { font-size: 1rem; color: var(--text-muted); }
.price-alt { margin: 0; font-size: .9375rem; color: var(--text-muted); }
.price-alt b { color: var(--text); }
.plan-main .price-alt b { color: #fff; }
.plan-main .price-alt s { color: #9FB0BF; }
.plan .btn-block { margin-top: auto; }
.plan-grid.cols-3 .plan:not(.plan-main) .btn-sky { background: var(--accent); color: var(--accent-ink); }

/* ---------- Home: who it's for ---------- */
.audience h2 { font-size: var(--fs-xl); margin-bottom: 28px; }
.aud-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .aud-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.aud-grid li { display: flex; flex-direction: column; gap: 10px; }
.aud-grid .photo { height: 300px; border-radius: var(--radius-lg); background: var(--surface-2); }
.aud-grid h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; letter-spacing: 0; margin: 4px 0 0; }
.aud-grid p { margin: 0; color: var(--text-muted); }

/* ---------- Home: feels like exam day (navy) + sample question ---------- */
.section-navy { background: var(--navy); color: #C9D4DD; }
.section-navy h2 { color: #fff; }
.sim-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 980px) { .sim-grid { grid-template-columns: 1fr 1.45fr; gap: 64px; } .sim-grid:has(#sample[hidden]) { grid-template-columns: 1fr; } }
.sim-copy h2 { font-size: var(--fs-xl); margin-bottom: 16px; }
.sim-copy > p { font-size: 1.125rem; max-width: 36ch; }
.feature-chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.feature-chips li { background: #1B3A63; color: #DCE6F5; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .9375rem; }
.section-navy .subjects { text-align: left; margin-top: 28px; }
.section-navy .subjects-title { color: #9FB0BF; }
.section-navy .subject-list { justify-content: flex-start; }
.section-navy .subject-list li { background: transparent; border-color: #3A5A78; color: #DCE6F5; }
.mini-exam { background: #fff; color: #201E1D; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); font-family: var(--font-body); min-width: 0; color-scheme: light; }
.mini-top { background: #13304F; color: #fff; min-height: 48px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 8px 16px; border-bottom: 1px solid #2A4566; }
.mini-top img { width: 24px; height: 24px; border-radius: 6px; }
.mini-title { font-family: var(--font-body); font-weight: 700; font-size: .875rem; letter-spacing: 0; color: #fff; margin: 0 auto 0 0; }
.mini-count { font-size: .875rem; }
.mini-mark { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; }
.mini-mark i { width: 16px; height: 16px; border-radius: 3px; border: 1.5px solid #C9D4DD; }
.mini-timer { background: #1B3A63; border-radius: 5px; padding: 5px 10px; font-weight: 700; font-size: .875rem; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .mini-count, .mini-mark { display: none; } }
.mini-exam .sample-card { background: #fff; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.mini-exam fieldset { padding: 22px 26px 4px; }
.mini-exam legend { float: left; width: 100%; font-family: var(--font-body); font-weight: 400; font-size: 1.0625rem; line-height: 1.5; color: #201E1D; margin: 0 0 14px; }
.mini-exam .sample-options { gap: 10px; clear: both; }
.mini-exam .option { border: 1px solid #C8CFD7; border-radius: 6px; padding: 12px 16px; gap: 14px; align-items: center; background: #fff; color: #201E1D; min-height: 0; }
.mini-exam .option:hover { border-color: #8D99A6; }
.mini-exam .option:has(input:checked) { border: 1.5px solid #0F2747; background: #E6ECF3; }
.mini-exam .option input { accent-color: #0F2747; margin: 0; width: 18px; height: 18px; }
.mini-exam .option-letter { color: #201E1D; }
.mini-exam .option-expl { color: #4D5560; }
.mini-exam .option.is-correct { border: 1.5px solid #24683C; background: #DCEDDF; }
.mini-exam .option.is-wrong, .mini-exam .option.is-wrong:has(input:checked) { border: 1.5px solid #9C3229; background: #F5E0DC; }
.mini-exam .is-correct .option-tag { background: #24683C; color: #fff; }
.mini-exam .is-wrong .option-tag { background: #9C3229; color: #fff; }
.mini-exam .form-msg { color: #9C3229; margin: 0 26px; min-height: 1.4em; }
.mini-exam .sample-result:not(:empty) { margin: 0 26px 16px; background: #F4F5F7; color: #201E1D; border-radius: 8px; }
.mini-exam .sample-result strong { font-family: var(--font-body); }
.mini-bottom { background: #13304F; min-height: 50px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; flex-wrap: wrap; }
.mini-btn { border: 1px solid #6D859C; color: #8FA3B5; background: transparent; border-radius: 4px; padding: 7px 14px; font: 700 .875rem/1.2 var(--font-body); }
.mini-review { color: #fff; margin-right: auto; }
.mini-btn.solid { background: #fff; color: #0F2747; border-color: #fff; cursor: pointer; min-height: 36px; }
.mini-btn.solid:hover { background: #E6ECF3; }
.mini-exam :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Home: FAQ ---------- */
.faq-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.3fr; gap: 64px; } }
.faq-side h2 { font-size: var(--fs-xl); margin-bottom: 14px; }
.faq-side p { color: var(--text-muted); font-size: 1.0625rem; }
.faq-photo { height: 380px; border-radius: var(--radius-lg); margin-top: 12px; }
@media (max-width: 899px) { .faq-photo { display: none; } }
.faq-main { min-width: 0; }
.faq-item, .faq-item:first-of-type { background: var(--surface); border: 0; border-radius: 24px; padding: 4px 22px; margin-bottom: 10px; }
.faq-btn { font-size: 1.125rem; padding: 14px 0; }
.faq-btn svg { color: var(--accent); }
.faq-a { padding: 0 0 18px; }
.faq-group h3, .faq-cat { margin-top: 8px; }
.faq-more { align-items: flex-start; text-align: left; }

/* ---------- Home: contact + closing call to action ---------- */
.copy-box { border: 0; border-radius: 999px; padding: 10px 10px 10px 24px; background: var(--surface); box-shadow: var(--shadow); }
.cta-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1.25fr 1fr; gap: 56px; } }
.cta-photo { height: 380px; border-radius: var(--radius-lg); }
@media (max-width: 640px) { .cta-photo { height: 240px; } }
.cta-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta-copy > * { margin: 0; }
.cta-copy h2 { font-size: var(--fs-xl); }
.cta-copy p:not(.pill-eyebrow) { font-size: 1.125rem; color: var(--text-muted); }

/* ---------- Footer (navy) ---------- */
.site-footer { background: var(--navy); color: #C9D4DD; border-top: 0; padding: 56px 0 120px; font-size: .9375rem; }
.site-footer .muted { color: #C9D4DD; }
.footer-links a { color: #fff; }
.footer-links a:hover { color: var(--sky); }
.footer-word { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.03em; font-size: 2rem; line-height: 1.1; color: #fff; margin: 0 0 10px; }
.footer-word span { color: var(--sky); }
.footer-about p { margin: 0 0 8px; }
.site-footer .disclaimer { color: #9FB0BF; border-top-color: #2A4566; }
.site-footer .footer-brand { margin-bottom: 8px; }

/* Copyright notice (every page) */
.copy-note { font-size: 13px; line-height: 1.5; margin: 0; color: var(--text-muted); max-width: none; }
.copy-note b { color: var(--heading); }
.copy-band { background: var(--surface-2); padding: 14px 0; margin-top: 24px; }
.site-footer .copy-note { color: #9FB0BF; border-top: 1px solid #2A4566; padding-top: 18px; margin-top: 18px; }
.site-footer .copy-note b { color: #fff; }

/* ---------- Help chat ---------- */
.chat-launcher { background: var(--navy); color: #fff; }
.chat-launcher:hover { background: var(--navy-2); color: #fff; }
.chat-head { background: var(--navy); }
.msg-user { background: var(--navy); color: #fff; border-radius: 22px 22px 6px 22px; }
:root[data-theme="dark"] .msg-user { background: var(--navy-2); }
.msg-bot { border: 0; box-shadow: var(--shadow); border-radius: 6px 22px 22px 22px; }
.chat-chips .chip { border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; }
.chat-chips .chip:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.chat-panel { border-radius: 28px; }
@media (max-width: 520px) { .chat-panel { border-radius: 28px 28px 0 0; } }

/* Legal pages */
.legal h1 { font-size: var(--fs-xl); }
.template-banner { border-radius: var(--radius-sm); }
@media (max-width: 520px) { .copy-box { border-radius: 24px; padding: 14px 16px; } }
