/* Life in the UK Test Prep website. Shared styles for every page.
   Layout: one 1120px column; sections alternate between the page ground and a tinted band. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #FAF7F1;
  --band: #EEF4F2;
  --card: #FFFFFF;
  --ink: #16323A;
  --muted: #4B6266;
  --line: #DCE4E1;
  --teal: #0F6E6E;
  --teal-deep: #0A5656;
  --teal-soft: #E3F0EF;
  --amber: #FFC24B;
  --coral: #F2765A;
  --cream: #FFF4E0;
  --on-teal: #FFFFFF;
  --on-teal-muted: #D3E8E5;
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 3.6rem);
  --radius: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E1B1E; --band: #13262A; --card: #182E33; --ink: #E8F1EF; --muted: #A9BFBC; --line: #2B464B;
    --teal: #3AA6A1; --teal-deep: #0F6E6E; --teal-soft: #1B3A3B; --cream: #2E2918; --on-teal: #FFFFFF; --on-teal-muted: #CFE6E3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0E1B1E; --band: #13262A; --card: #182E33; --ink: #E8F1EF; --muted: #A9BFBC; --line: #2B464B;
  --teal: #3AA6A1; --teal-deep: #0F6E6E; --teal-soft: #1B3A3B; --cream: #2E2918; --on-teal: #FFFFFF; --on-teal-muted: #CFE6E3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: var(--step-0); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }
.prose { max-width: 68ch; display: grid; gap: 16px; }
.prose h2 { margin-top: 24px; font-size: var(--step-2); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; margin-right: auto; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--teal-soft); color: var(--teal); }
.get { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-deep); color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 0.95rem; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.get:hover { background: var(--teal); }
.more { display: none; position: relative; }
.more summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 700; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.more summary::-webkit-details-marker { display: none; }
.more nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; display: grid; min-width: 210px; box-shadow: 0 16px 40px rgba(10, 30, 32, 0.16); }
.more nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-family: var(--display); font-weight: 600; }
.more nav a:hover { background: var(--teal-soft); }
@media (max-width: 880px) { .menu { display: none; } .more { display: block; } }
@media (max-width: 420px) { .site-head .get { display: none; } }

/* sections */
section { padding-block: clamp(56px, 8vw, 96px); }
.band { background: var(--band); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.crumbs { font-size: 0.9rem; color: var(--muted); padding-top: 24px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.page-head { padding-block: 28px 8px; display: grid; gap: 14px; }

/* hero */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-copy h1 span { color: var(--teal); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge-link { display: inline-block; line-height: 0; margin: -12px; }
.badge-link img { height: 82px; width: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--teal); color: var(--teal); text-decoration: none; font-family: var(--display); font-weight: 700; padding: 12px 20px; border-radius: 999px; background: transparent; }
.btn:hover { background: var(--teal-soft); }
.note { font-size: 0.9rem; color: var(--muted); }
.hero-shot { justify-self: center; position: relative; }
.phone { width: min(300px, 70vw); border-radius: 38px; background: #0B1214; padding: 10px; box-shadow: 0 30px 70px rgba(10, 40, 42, 0.28); }
.phone img { border-radius: 30px; aspect-ratio: 540 / 1200; width: 100%; object-fit: cover; }
.hero-shot::before { content: ""; position: absolute; inset: 12% -18% -6% -18%; background: radial-gradient(closest-side, var(--teal-soft), transparent); z-index: -1; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--card); padding: 22px 20px; display: grid; gap: 2px; }
.facts b { font-family: var(--display); font-size: var(--step-2); font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.facts span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.feature .shot { background: var(--teal-soft); padding: 22px 22px 0; height: 230px; overflow: hidden; display: flex; justify-content: center; }
.feature .shot img { width: 72%; border-radius: 18px 18px 0 0; box-shadow: 0 10px 30px rgba(10, 40, 42, 0.18); object-fit: cover; object-position: top; aspect-ratio: 540 / 1200; height: auto; }
.feature .txt { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.feature p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: #16323A; font-family: var(--display); font-weight: 800; display: grid; place-items: center; }
.steps p { color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* demo teaser */
.teaser { background: var(--teal-deep); color: var(--on-teal); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.teaser h2 { color: var(--on-teal); }
.teaser p { color: var(--on-teal-muted); max-width: 52ch; margin-top: 10px; }
.teaser .btn { border-color: var(--amber); background: var(--amber); color: #16323A; }
.teaser .btn:hover { background: #ffd47a; }
@media (max-width: 700px) { .teaser { grid-template-columns: 1fr; } }

/* test facts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chapters li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.chapters .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.15rem; border-bottom: 3px solid currentColor; }
.chapters small { display: block; color: var(--muted); font-size: 0.9rem; }
.c1 { background: #EEE7F6; color: #6A4C9C; } .c2 { background: #E3F0EF; color: #0F6E6E; } .c3 { background: #FDE7E1; color: #B84A31; }
.c4 { background: #FFF1D6; color: #8C6110; } .c5 { background: #E4EAF4; color: #3B5683; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* plans table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--display); font-size: 1rem; background: var(--teal-soft); }
tbody tr:last-child td { border-bottom: 0; }
td.y { color: var(--teal); font-weight: 700; }
td.n { color: var(--muted); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 16px; color: var(--muted); display: grid; gap: 10px; }

/* final cta */
.final { text-align: center; display: grid; justify-items: center; gap: 16px; }
.final p { color: var(--muted); max-width: 52ch; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: 0.95rem; color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-foot h2 { font-size: 0.95rem; letter-spacing: 0; color: var(--ink); margin-bottom: 8px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--teal); }
.disclaimer { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 4px; font-size: 0.875rem; }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr; } }

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

/* subpages */
.page-head h1 { font-size: var(--step-3); max-width: 24ch; }
.demo-frame { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--band); }
.demo-frame iframe { display: block; width: 100%; height: 980px; border: 0; }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .steps-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps-5 { grid-template-columns: 1fr; } }

.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 820px; }
.q { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 12px; }
.q-meta { font-size: 0.85rem; color: var(--muted); font-family: var(--display); font-weight: 600; }
.q h3 { font-size: 1.2rem; }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.opts li { display: flex; gap: 12px; align-items: center; background: var(--band); border-radius: 12px; padding: 10px 14px; }
.opts .l { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 0.85rem; }
.q details { border-top: 1px dashed var(--line); padding-top: 10px; }
.q summary { cursor: pointer; font-family: var(--display); font-weight: 700; color: var(--teal); width: max-content; }
.q details > div { padding-top: 10px; display: grid; gap: 6px; }

.guide { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); display: grid; gap: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 0.95rem; }
.toc a { color: var(--ink); }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; } .toc { position: static; } }
.facts-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .facts-3 { grid-template-columns: 1fr; } }
.weeks { list-style: none; padding: 0 !important; counter-reset: wk; }
.weeks li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 12px; padding: 12px 16px; }
.callout { background: var(--cream); border-radius: 16px; padding: 16px 18px; }

.doc { padding-block: 24px 64px; }
.doc h1 { font-size: var(--step-3); }
.doc .updated { color: var(--muted); font-size: 0.95rem; }
.doc h2 { font-size: var(--step-1); margin-top: 20px; }
.doc h3 { font-size: 1.05rem; margin-top: 8px; }
.doc ul, .doc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.prose .chapters, .prose .weeks { padding-left: 0; }
.q .qh { font-size: 1.2rem; letter-spacing: -0.01em; }
