/* Leverrs homepage · neo-brutalist, same tokens as the Academy portal */
:root {
  --ink: #0B0B0F; --paper: #FBFAF7; --surface: #FFFFFF; --surface-2: #F2F0E9; --muted: #4E4E5A;
  --orange: #FF5C29; --lime: #C8FF3D; --yellow: #FFE45C; --pink: #FF9EC4; --sky: #8FD3FF; --lilac: #C3B1FF; --mint: #8AF0B0;
  --bw: 2.5px; --shadow: 4px 4px 0 var(--ink); --shadow-lg: 8px 8px 0 var(--ink);
  --display: "Space Grotesk", "SF Pro Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .9, .3, 1.2);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 17px/1.6 var(--text); color: var(--ink); background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(rgba(11,11,15,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11,11,15,.045) 1px, transparent 1px);
  background-size: 34px 34px;
}
::selection { background: var(--lime); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 0 0 .45em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18ch; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); padding: 8px 12px; border: 2px solid var(--ink); z-index: 100; }
.skip:focus { left: 8px; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--r, 0deg)); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Announcement + header */
.announce { background: var(--ink); color: var(--paper); display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px 16px; font-size: .92rem; text-align: center; }
.announce a { color: var(--lime); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200,255,61,.22); animation: blink 2s infinite; margin-right: 8px; vertical-align: 1px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: var(--bw) solid var(--ink); }
.bar { display: flex; align-items: center; gap: 20px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.55rem var(--display); letter-spacing: -.04em; }
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; border: 2px solid transparent; }
.nav a:hover { border-color: var(--ink); }
.nav-cta-mobile { display: none; }
.actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 12px; background: var(--surface); cursor: pointer; padding: 12px 11px; box-shadow: 2px 2px 0 var(--ink); }
.menu-btn span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 3px 0; transition: transform .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 74px; flex-direction: column; gap: 4px; margin: 0; padding: 14px 20px 22px; background: var(--paper); border-bottom: var(--bw) solid var(--ink); }
  .menu-open .nav { display: flex; }
  .nav a { font-size: 1.1rem; padding: 12px 14px; }
  .nav-cta-mobile { display: block; }
  .actions .btn { display: none; }
  .menu-btn { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: var(--bw) solid var(--ink);
  background: var(--ink); color: var(--paper); font: 700 1rem var(--display); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn.big { padding: 15px 28px; font-size: 1.1rem; }
.btn.orange { background: var(--orange); color: var(--ink); }
.btn.ghost, .btn.light { background: var(--surface); color: var(--ink); }
.dark .btn.orange, .cta-band .btn { box-shadow: 4px 4px 0 var(--lime); }
.dark .btn.orange:hover, .cta-band .btn:hover { box-shadow: 6px 6px 0 var(--lime); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 0; max-width: 100%; text-align: left; line-height: 1.3; font-weight: 600; font-size: .92rem; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; background: var(--surface); box-shadow: 2px 2px 0 var(--ink); margin-bottom: 22px; }
@media (max-width: 480px) { .pill-brand { display: none; } } /* keeps the pill on one line on phones */
.pill .live-dot { box-shadow: 0 0 0 3px rgba(11,11,15,.12); background: #6BC20E; }
.hero h1 { font-size: clamp(2.8rem, 7.2vw, 5.6rem); letter-spacing: -.055em; line-height: .98; animation: rise .7s var(--ease) both; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero h1 u { text-decoration: none; background: linear-gradient(transparent 60%, var(--lime) 60%); padding: 0 .04em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 52ch; animation: rise .7s .08s var(--ease) both; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; animation: rise .7s .16s var(--ease) both; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; font-size: .92rem; }
.ticks li { display: flex; align-items: flex-start; gap: 7px; } /* a wrapped line lines up with the text, not the tick */
.ticks li::before { content: "✓"; flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; background: var(--lime); border: 2px solid var(--ink); border-radius: 50%; font-size: .7rem; }

/* Product preview collage */
.preview { position: relative; min-height: 560px; }
.pv-card { position: absolute; background: var(--surface); border: var(--bw) solid var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px; animation: float 8s ease-in-out infinite; }
.pv-quiz { width: min(370px, 80%); left: 0; top: 20px; --r: -2deg; }
.pv-grade { width: 240px; right: 0; top: 215px; --r: 3deg; animation-delay: -2s; background: var(--yellow); z-index: 2; }
.pv-code { width: 300px; left: 6%; bottom: 0; --r: -1deg; animation-delay: -4s; background: var(--ink); color: #EDEDF2; }
.pv-chip { position: absolute; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; font: 700 .95rem var(--display); box-shadow: 3px 3px 0 var(--ink); animation: float 6s ease-in-out infinite; }
.pv-streak { background: #FFB98A; right: 2%; bottom: 40px; --r: -4deg; animation-delay: -1s; }
.pv-xp { background: var(--lime); right: 6%; top: 40px; --r: 5deg; animation-delay: -3s; }
.pv-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tag { font: 700 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 8px; background: var(--lime); }
.tag.ink { background: var(--ink); color: var(--paper); }
.pv-q { font: 600 1.05rem/1.35 var(--display); margin: 0 0 12px; }
.pv-opt { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 12px; padding: 7px 10px; margin-bottom: 7px; font-weight: 600; box-shadow: 2px 2px 0 var(--ink); }
.pv-opt b { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow); font-family: var(--display); }
.pv-opt b.k2 { background: var(--pink); } .pv-opt b.k3 { background: var(--sky); }
.pv-opt.ok { background: var(--mint); }
.pv-tick { margin-left: auto; }
.pv-feedback { margin-top: 10px; background: var(--mint); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; font-weight: 600; font-size: .9rem; }
.pv-grade-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.grade { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--lime); border: var(--bw) solid var(--ink); font: 700 2rem var(--display); box-shadow: 3px 3px 0 var(--ink); }
.pv-grade-row small { display: block; color: var(--muted); font-size: .8rem; }
.pv-bars i { display: block; height: 10px; border: 2px solid var(--ink); border-radius: 99px; margin-top: 6px; background: linear-gradient(90deg, var(--ink) var(--w), var(--surface) var(--w)); }
.pv-dots { display: flex; align-items: center; gap: 6px; font: 700 .72rem var(--mono); color: #9A9AA8; margin-bottom: 8px; }
.pv-dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; } .pv-dots i:nth-child(2) { background: #FEBC2E; } .pv-dots i:nth-child(3) { background: #28C840; }
.pv-dots span { margin-left: 6px; }
pre { margin: 0; font: .86rem/1.6 var(--mono); white-space: pre; overflow: hidden; }
pre .k { color: var(--orange); font-weight: 700; } pre .s { color: var(--lime); } pre .n { color: var(--yellow); }
.pv-pass { margin-top: 10px; display: inline-block; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px; font: 700 .8rem var(--display); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .preview { min-height: 470px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .preview { min-height: 450px; }
  .pv-quiz { width: 92%; }
  .pv-grade { width: 205px; top: 300px; right: 0; }
  .pv-code { display: none; }
  .pv-xp { top: auto; bottom: 120px; right: auto; left: 4px; }
  .pv-streak { bottom: 60px; right: auto; left: 4px; }
}

/* Marquee */
.strip { overflow: hidden; background: var(--lime); border-block: var(--bw) solid var(--ink); }
.track { display: flex; gap: 34px; width: max-content; padding: 13px 0; animation: marquee 30s linear infinite; font: 700 1.15rem var(--display); white-space: nowrap; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--surface-2); border-block: var(--bw) solid var(--ink); }
.section.dark { background: var(--ink); color: var(--paper);
  background-image: linear-gradient(rgba(251,250,247,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(251,250,247,.06) 1px, transparent 1px); background-size: 44px 44px; }
.kicker { display: inline-block; font: 700 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; background: var(--surface); margin-bottom: 18px; }
.kicker.lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.sub { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.dark .sub { color: rgba(251,250,247,.75); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.feature, .subject, .panel { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.feature:hover, .subject:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.feature .fe, .panel .fe { display: inline-grid; place-items: center; width: 58px; height: 58px; font-size: 1.8rem; color: var(--ink); background: var(--c); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); margin-bottom: 16px; }
.feature p, .subject p { color: var(--muted); margin: 0; }
.steps { list-style: none; padding: 0; margin: 36px 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.steps .num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--orange); border: var(--bw) solid var(--ink); font: 700 1.5rem var(--display); margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
.subjects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.subject { background: var(--c); text-decoration: none; position: relative; overflow: hidden; }
.subject span { position: absolute; right: 18px; top: 16px; display: grid; place-items: center; width: 54px; height: 54px; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }
.subject span .ic { width: 28px; height: 28px; }
.feature .fe .ic, .panel .fe .ic { width: 30px; height: 30px; }
.subject h3 { font-size: 1.6rem; margin-top: 4px; padding-right: 60px; }
.subject p { color: rgba(11,11,15,.75); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; font-weight: 600; }
/* Icons (site/icons.svg, from Lucide): line icons that take the text colour. */
.ic { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.22em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.list li > .ic { width: 1.35em; height: 1.35em; margin-top: .05em; padding: 3px; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; box-sizing: content-box; vertical-align: 0; }
.dark .list li > .ic { background: var(--lime); border-color: var(--lime); }
.track .ic { margin-right: 4px; }
.mock-mini, .code-mini { border: var(--bw) solid var(--paper); border-radius: 22px; padding: 20px; background: var(--surface); color: var(--ink); box-shadow: 8px 8px 0 var(--lime); }
.code-mini { background: var(--ink); color: #EDEDF2; border-color: var(--ink); box-shadow: 8px 8px 0 var(--orange); }
.code-mini pre { font-size: .92rem; }
.mm-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 14px; font-family: var(--display); }
.timer { font: 700 .85rem var(--mono); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px; }
.mm-pal { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mm-pal i { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 9px; font: 700 .85rem var(--display); font-style: normal; }
.mm-pal i.on { background: var(--sky); } .mm-pal i.cur { background: var(--ink); color: var(--paper); } .mm-pal i.flag { background: var(--yellow); }
.mm-q { font: 600 1.05rem var(--display); } .mm-q span { font: 700 .75rem var(--mono); background: var(--ink); color: var(--paper); border-radius: 99px; padding: 3px 8px; }
.mm-table { border-collapse: separate; border-spacing: 4px; }
.mm-table th { background: var(--ink); color: var(--paper); border-radius: 8px; padding: 6px 14px; font: 700 .85rem var(--mono); }
.mm-table td { border: 2px solid var(--ink); border-radius: 8px; padding: 6px 14px; text-align: center; min-width: 60px; font: 700 .9rem var(--mono); }
.mm-table td.typing { background: var(--yellow); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--surface); }
.panel h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.panel p { color: var(--muted); }
details { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: 16px; margin-bottom: 12px; box-shadow: 3px 3px 0 var(--ink); }
summary { cursor: pointer; padding: 18px 22px; font: 700 1.1rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }
.cta-band { background: var(--orange); border-block: var(--bw) solid var(--ink); padding: clamp(56px, 8vw, 100px) 0; text-align: center; }
.cta-band h2 { margin: 0 auto 26px; max-width: 16ch; }
.cta-band .btn.orange { background: var(--ink); color: var(--paper); }
.footer { background: var(--ink); color: var(--paper); padding: 56px 0 30px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr); gap: 36px 48px; align-items: start; }
.foot-brand p { margin: 14px 0 0; max-width: 30ch; color: rgba(251,250,247,.68); font-size: .95rem; line-height: 1.55; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.foot-cols div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-cols h2 { margin: 0 0 4px; font: 700 .72rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.footer nav a { color: rgba(251,250,247,.8); text-decoration: none; font-weight: 500; }
.footer nav a:hover { color: var(--lime); }
.footer .logo { color: var(--lime); }
.fine { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 22px; border-top: 1px solid rgba(251,250,247,.14); color: rgba(251,250,247,.55); font-size: .88rem; }
@media (max-width: 860px) {
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .features, .subjects, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .two { grid-template-columns: 1fr; gap: 36px; }
  .split.rev > :first-child { order: 2; }
}
@media (max-width: 620px) {
  .features, .subjects, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.9rem; }
  .btn.big { width: 100%; }
}

/* SATs and GCSE badges */
.mark { display: inline-block; flex: none; line-height: 0; }
.mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.exam-marks { display: flex; align-items: center; gap: 12px; margin-top: 26px; text-decoration: none; max-width: 520px; }
.exam-marks .mark { width: 66px; height: 66px; transition: transform .2s var(--ease); }
.exam-marks .mark-sats { transform: rotate(-6deg); }
.exam-marks .mark-gcse { transform: rotate(5deg); margin-left: -6px; }
.exam-marks:hover .mark-sats { transform: rotate(-12deg) translateY(-3px); }
.exam-marks:hover .mark-gcse { transform: rotate(10deg) translateY(-3px); }
.marks-text { font-size: .95rem; line-height: 1.4; padding-left: 6px; }
.exam-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.exam-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; align-items: start; background: var(--c); border: var(--bw) solid var(--ink); border-radius: 26px; padding: 28px; box-shadow: var(--shadow-lg); }
.exam-card .mark-lg { width: 132px; height: 132px; transform: rotate(-4deg); }
.exam-card h3 { font-size: 1.7rem; margin-bottom: 4px; }
.exam-for { font: 700 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; margin: 0; color: var(--muted); }
.exam-card .list { margin: 16px 0 22px; font-size: .97rem; }
.exam-note { margin: 28px 0 0; font-size: .82rem; color: var(--muted); max-width: 80ch; }
@media (max-width: 960px) { .exam-cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .exam-card { grid-template-columns: 1fr; padding: 22px; }
  .exam-card .mark-lg { width: 104px; height: 104px; }
  .exam-marks .mark { width: 56px; height: 56px; }
}

/* Pricing (shown while memberships are on) */
#pricing[hidden] { display: none; }
#pricing .price-big { font: 700 clamp(2rem, 4vw, 2.6rem)/1.05 var(--display); letter-spacing: -.03em; margin: 6px 0 2px; }
#pricing .note { margin-top: 18px; font-size: .92rem; color: var(--muted); }
