/* GCSE Solutions landing page. Mobile first; purple brand shared with quiz.gcsesolutions.co.uk. */
:root {
  --ink: #1e1036;
  --ink-2: #4b3d63;
  --muted: #6b5f80;
  --bg: #ffffff;
  --tint: #f6f2ff;
  --line: #e7defa;
  --brand: #6d28d9;
  --brand-2: #5b21b6;
  --brand-soft: #ede9fe;
  --sun: #fbbf24;
  --mint: #10b981;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(46, 16, 101, .12);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .8em 1.4em; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 1rem/1.2 var(--font); text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(109, 40, 217, .28); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(109, 40, 217, .34); }
.btn-lg { padding: 1em 1.7em; font-size: 1.08rem; }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-ghost { background: #fff; color: var(--brand-2); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--brand); }
.btn-light { background: #fff; color: var(--brand-2); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 6px 24px rgba(46, 16, 101, .08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; color: var(--ink); font: 700 1.2rem/1 var(--display); }
.brand b { color: var(--brand); font-weight: 700; }
.nav-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: var(--brand-soft); border-radius: 12px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--brand-2); border-radius: 2px; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.menu { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; gap: 4px; padding: 12px 16px 18px; background: #fff; box-shadow: 0 16px 30px rgba(46, 16, 101, .12); }
.menu.open { display: flex; }
.menu a:not(.btn) { padding: .7em .4em; text-decoration: none; color: var(--ink-2); font-weight: 700; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px;
  background: radial-gradient(1000px 500px at 85% 0%, #ede9fe 0%, transparent 60%), radial-gradient(800px 420px at 0% 100%, #fef3c7 0%, transparent 55%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 .8em; padding: .3em .8em; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); font-weight: 800; font-size: .82rem; letter-spacing: .02em; }
.hl { background: linear-gradient(120deg, var(--brand), #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: .45em; }
.ticks li { position: relative; padding-left: 1.8em; color: var(--ink-2); font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: .05em; width: 1.3em; height: 1.3em; display: grid; place-items: center; border-radius: 50%; background: #d1fae5; color: #047857; font-size: .8em; font-weight: 900; }

.hero-card { position: relative; max-width: 420px; margin-inline: auto; width: 100%; }
.q-card { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); border: 2px solid var(--line); transform: rotate(-1.5deg); animation: float 6s ease-in-out infinite; }
.q-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.chip { font-size: .78rem; font-weight: 800; padding: .3em .7em; border-radius: 999px; background: var(--brand); color: #fff; }
.chip-soft { background: var(--brand-soft); color: var(--brand-2); }
.q-text { font: 600 1.25rem/1.35 var(--display); margin-bottom: 16px; }
.q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-options span { padding: .7em; text-align: center; border-radius: 14px; background: var(--tint); font-weight: 800; border: 2px solid var(--line); }
.q-options .right { background: #d1fae5; border-color: #34d399; color: #065f46; }
.q-foot { display: flex; justify-content: space-between; margin-top: 16px; font-weight: 800; color: var(--muted); }
.score { color: var(--mint); }
.owl { position: absolute; left: -12px; bottom: -44px; font-size: 64px; filter: drop-shadow(0 8px 12px rgba(46, 16, 101, .2)); animation: bob 3s ease-in-out infinite; }
.bubble { position: absolute; left: 82%; top: 4px; white-space: nowrap; font: 700 .85rem var(--font); background: var(--ink); color: #fff; padding: .45em .8em; border-radius: 14px 14px 14px 2px; }

@keyframes float { 0%, 100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(-1.5deg) translateY(-8px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Stats */
.stats { background: var(--ink); color: #fff; padding: 26px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; text-align: center; }
.stats strong { display: block; font: 700 clamp(1.7rem, 5vw, 2.3rem)/1.1 var(--display); color: var(--sun); }
.stats span { font-size: .9rem; color: #d8cff0; font-weight: 600; }

/* Sections */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.sub { color: var(--ink-2); font-size: 1.08rem; max-width: 46em; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; counter-reset: none; }
.steps li { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 10px; background: var(--brand); color: #fff; font: 700 1.1rem var(--display); }
.steps p, .card p, .subject p { color: var(--ink-2); margin: 0; }

.subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 26px; }
.subject { display: block; padding: 20px; border-radius: var(--radius); background: #fff; border: 2px solid var(--line); text-decoration: none; color: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.subject:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.subject h3 { margin: .3em 0 .25em; }
.emoji { font-size: 1.9rem; line-height: 1; }

.split { display: grid; gap: 36px; align-items: center; }
.boards { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 26px; border-radius: 24px; background: linear-gradient(135deg, #f5f3ff, #fdf4ff); border: 2px dashed var(--line); }
.boards span { padding: .55em 1em; border-radius: 999px; background: #fff; font-weight: 800; color: var(--brand-2); box-shadow: 0 4px 12px rgba(46, 16, 101, .08); }

.cards { display: grid; gap: 14px; margin: 26px 0; }
.card { padding: 22px; border-radius: var(--radius); background: #fff; border: 2px solid var(--line); }
.card h3 { margin: .4em 0 .3em; }

.jobs { background: linear-gradient(160deg, #fff 0%, #fffbeb 100%); }
.jobs-card { padding: 26px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); border: 2px solid #fde68a; }
.roles { list-style: none; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roles li { display: flex; align-items: center; gap: .5em; padding: .6em .7em; border-radius: 12px; background: #fffbeb; font-weight: 700; font-size: .95rem; }

.faq details { background: #fff; border: 2px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 800; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }

/* Contact form */
.form { display: grid; gap: 14px; padding: 24px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); border: 2px solid var(--line); }
.form label { display: grid; gap: 6px; font-weight: 800; font-size: .95rem; }
.form input, .form select, .form textarea { width: 100%; padding: .8em .9em; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: 600 1rem var(--font); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form .check { grid-template-columns: auto 1fr; align-items: start; font-weight: 600; color: var(--ink-2); }
.form .check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 800; min-height: 1.4em; }
.form-status.ok { color: #047857; }
.form-status.err { color: #b91c1c; }
.micro { font-size: .82rem; color: var(--muted); margin: 0; }

.final { background: linear-gradient(135deg, var(--brand), #db2777); color: #fff; padding: 56px 0; text-align: center; }
.final h2 { color: #fff; }
.final-inner { display: grid; gap: 18px; justify-items: center; }

.footer { background: var(--ink); color: #d8cff0; padding: 40px 0 24px; }
.footer .brand { color: #fff; }
.footer .brand b { color: #c4b5fd; }
.footer .micro { color: #b8aed0; margin-top: .8em; }
.foot-grid { display: grid; gap: 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer nav a, .footer .linkish { color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; }
.footer .linkish { text-decoration: none; }
.copy { margin-top: 22px; }

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; padding: 16px 18px; background: #fff; border-radius: 18px; box-shadow: 0 12px 40px rgba(46, 16, 101, .25); border: 2px solid var(--line); font-size: .95rem; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 140px; }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Larger screens */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr 1fr; }
  .form .wide { grid-column: 1 / -1; }
  .roles { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  body { font-size: 18px; }
  .nav-toggle { display: none; }
  .menu { display: flex; position: static; flex-direction: row; align-items: center; gap: 22px; padding: 0; box-shadow: none; background: none; }
  .menu a:not(.btn) { border: 0; padding: 0; }
  .menu a:not(.btn):hover { color: var(--brand); }
  .menu .btn { margin: 0; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .section { padding: 96px 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .contact { align-items: start; }
  .foot-grid { grid-template-columns: 1fr auto; align-items: start; }
  .roles { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
