/* ExamType website. Colours match src/theme.ts in the app. No external fonts or requests. */

:root {
  --navy: #0b1f33;
  --navy-2: #12304d;
  --ink: #10243e;
  --muted: #52657a;
  --blue: #3157d5;
  --blue-dark: #2443aa;
  --blue-soft: #e9eeff;
  --teal: #1d9a8a;
  --teal-dark: #123a4a;
  --teal-soft: #e5f7f3;
  --amber: #9a6700;
  --amber-soft: #fff4d6;
  --canvas: #f4f7fb;
  --paper: #ffffff;
  --border: #dce4ee;
  --border-strong: #c2cedb;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.1);
  --shell: min(100% - 48px, 1160px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5.6vw, 66px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.03em; }
h3 { font-size: 19px; }
p { margin: 0; }

.shell { width: var(--shell); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; padding: 10px 14px; background: var(--paper); border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color 160ms; }
.header.scrolled { border-bottom-color: var(--border); }
.header-row { height: 68px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(49, 87, 213, 0.28); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--navy); }
.menu-button { display: none; margin-left: auto; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); color: var(--navy); font: 600 14px var(--font); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: 700 15px var(--font); text-decoration: none; white-space: nowrap; transition: transform 120ms, background 120ms; }
.button:active { transform: scale(0.98); }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(49, 87, 213, 0.3); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { background: var(--paper); color: var(--navy); border-color: var(--border-strong); }
.button-secondary:hover { border-color: var(--navy); }
.button-small { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.button-light { background: #fff; color: var(--navy); }

/* Hero */
.hero { padding: 72px 0 90px; background: linear-gradient(180deg, var(--canvas) 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow.teal { color: var(--teal); }
.eyebrow.light { color: #9fb6ff; }
.hero-app { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-app img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 26px rgba(49, 87, 213, 0.32); }
.hero-app strong { display: block; color: var(--navy); font-size: 17px; }
.hero-app span { color: var(--muted); font-size: 14px; }
.lede { margin-top: 22px; max-width: 540px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.price-note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.price-note strong { color: var(--navy); }

/* Real app screenshots in an iPad frame */
.ipad { position: relative; padding: 14px; border-radius: 34px; background: #1b1f24; box-shadow: 0 40px 80px rgba(11, 31, 51, 0.28), inset 0 0 0 2px #3a4048; }
.shot { display: block; width: 100%; height: auto; border-radius: 22px; }
.mock-caption { margin-top: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 56px 0 0; }
.gallery figure { margin: 0; }
.gallery .shot { border-radius: 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.gallery figcaption { margin-top: 14px; color: #aebed0; font-size: 14px; }

/* Facts strip */
.facts { border-block: 1px solid var(--border); background: #fff; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 22px; border-left: 1px solid var(--border); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; color: var(--navy); font-size: 15px; }
.fact span { color: var(--muted); font-size: 13px; }

/* Sections */
.section { padding: 110px 0; }
.section-alt { background: var(--canvas); }
.section-dark { background: var(--navy); color: #c9d6e3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }
.section-dark .section-head p { color: #aebed0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 28px 24px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 22px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 800; font-size: 15px; }
.step .when { margin-bottom: 6px; color: #9fb6ff; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.step p { margin-top: 10px; font-size: 14px; line-height: 1.65; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 30px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px; background: var(--blue-soft); }
.feature-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-copy p { margin-top: 18px; color: var(--muted); font-size: 17px; }
.ticks { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 32px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%233157D5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.ticks.teal li::before { background-color: var(--teal-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%231D9A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Printed page mock */
.print-stage { position: relative; display: grid; place-items: center; padding: 20px 0 40px; }
.sheet { position: relative; width: min(100%, 400px); aspect-ratio: 210 / 297; display: flex; flex-direction: column; padding: 7% 8% 6%; border-radius: 4px; background: #fff; box-shadow: var(--shadow); font-family: Arial, Helvetica, sans-serif; color: #000; }
.sheet.behind { position: absolute; transform: rotate(-4deg) translate(-26px, 10px); opacity: 0.6; }
.sheet-head { padding-bottom: 8px; border-bottom: 1.5px solid #000; font-size: 11px; font-weight: 700; }
.sheet-head small { display: block; margin-top: 3px; color: #444; font-size: 9px; font-weight: 400; }
.sheet-lines { flex: 1; display: grid; align-content: start; gap: 15px; padding-top: 16px; }
.sheet-lines i { display: block; height: 5px; border-radius: 3px; background: #d6dde6; }
.sheet-foot { display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid #888; font-size: 8px; }
.file-chip { position: absolute; bottom: 0; right: 4%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; color: var(--navy); }
.file-chip b { display: grid; place-items: center; width: 28px; height: 34px; border-radius: 4px; background: #b4233c; color: #fff; font-size: 8px; }
.sheet.practice .sheet-head { color: var(--teal); }

/* Responsibility table */
.duties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.duty { padding: 34px 32px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.duty.centre { background: var(--canvas); }
.duty .tag { display: inline-block; margin-bottom: 14px; padding: 5px 10px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 800; }
.duty.centre .tag { background: var(--amber-soft); color: var(--amber); }
.notice { display: flex; gap: 16px; margin-top: 18px; padding: 22px 24px; border-radius: 14px; background: var(--amber-soft); color: #5c4300; font-size: 14px; }
.notice strong { color: #3d2c00; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: stretch; }
.price-card { padding: 40px; border-radius: 24px; background: #fff; color: var(--ink); }
.price-card .head { display: flex; align-items: center; gap: 14px; }
.price-card .head img { width: 52px; height: 52px; border-radius: 12px; }
.price { margin: 28px 0 4px; color: var(--navy); font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-sub { color: var(--muted); font-size: 15px; }
.price-card .ticks { margin-bottom: 30px; }
.schools { padding: 40px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px; background: var(--navy-2); }
.schools p { margin-top: 14px; font-size: 15px; }
.schools .big { margin-top: 28px; color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.schools small { color: #9fb0c2; font-size: 13px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { position: relative; padding: 24px 44px 24px 0; color: var(--navy); font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 20px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 18px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); font-size: 15px; }

/* Final call to action */
.cta { padding: 0 0 110px; }
.cta-card { display: flex; align-items: center; gap: 36px; padding: 52px; border-radius: 28px; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #dbe3ff; }
.cta-card img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }
.cta-card h2 { color: #fff; }
.cta-card p { margin-top: 10px; font-size: 17px; }
.cta-card .button { margin-left: auto; }

/* Footer */
.footer { padding: 64px 0 40px; background: #061625; color: #8ea2b6; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .logo { color: #fff; }
.footer p { margin-top: 14px; max-width: 320px; }
.footer h4 { margin: 0 0 14px; color: #fff; font-size: 13px; }
.footer nav { display: grid; gap: 10px; }
.footer nav a { color: #8ea2b6; text-decoration: none; }
.footer nav a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 12px; }

/* Document pages (support, privacy, checklist) */
.doc-hero { padding: 72px 0 40px; background: var(--canvas); }
.doc-hero h1 { font-size: clamp(36px, 4.6vw, 54px); }
.doc-hero p { margin-top: 16px; max-width: 680px; color: var(--muted); font-size: 18px; }
.doc { padding: 56px 0 100px; }
.doc-body { max-width: 760px; }
.doc-body h2 { margin: 48px 0 14px; font-size: 26px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { margin: 28px 0 8px; font-size: 18px; }
.doc-body p, .doc-body li { color: #33475c; font-size: 16px; line-height: 1.75; }
.doc-body p + p { margin-top: 12px; }
.doc-body ul { padding-left: 22px; }
.doc-body li + li { margin-top: 6px; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.contact-card strong { display: block; color: var(--navy); }
.contact-card span { color: var(--muted); font-size: 14px; }
.contact-card .button { margin-left: auto; }
.checklist li { list-style: none; position: relative; padding-left: 34px; }
.checklist ul { padding-left: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border: 2px solid var(--border-strong); border-radius: 5px; }
.print-button { margin-top: 24px; }

@media print {
  .header, .footer, .print-button, .skip { display: none !important; }
  .doc-hero { padding: 0 0 12px; background: none; }
  .doc { padding: 0; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .split, .pricing, .duties { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse > :first-child { order: 0; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .cta-card .button { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 32px, 1160px); }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 16px; }
  .menu-button { display: block; }
  .header .button-small { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 48px 0 70px; }
  .lede { font-size: 17px; }
  .steps, .features, .facts-row { grid-template-columns: 1fr; }
  .fact { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--border); }
  .fact:last-child { border-bottom: 0; }
  .ipad { padding: 8px; border-radius: 20px; }
  .shot { border-radius: 13px; }
  .gallery { grid-template-columns: 1fr; }
  .price-card, .schools, .cta-card, .duty { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-card .button { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
