/* LawSquads — main stylesheet
   Palette: ink blue + cobalt, with law-student highlighter colours.
   Highlighter colours carry meaning: mint = UK, pink = US, yellow = emphasis / action. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-wdth-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #141B5C;
  --ink-2: #3A4180;
  --cobalt: #2F3BEA;
  --cobalt-deep: #222CC2;
  --paper: #F6F7FB;
  --white: #FFFFFF;
  --line: #D7DAEB;
  --hl: #FFE94A;      /* highlighter yellow */
  --uk: #5BE0A6;      /* highlighter mint  */
  --us: #FF7AB6;      /* highlighter pink  */
  --soft-on-ink: #C9CCF0;

  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: clamp(2.25rem, 4.6vw, 3.4rem);
  --fs-hero: clamp(3.1rem, 9.2vw, 8.25rem);
  --fs-page: clamp(2.7rem, 7.4vw, 6.25rem);

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius-panel: 18px;
  --radius-btn: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

[hidden] { display: none !important; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--cobalt); }

p { max-width: 68ch; margin: 0 0 1em; }

h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--hl); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { left: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Placeholder text the owner must replace before launch */
.fill { background: #FFE3F0; outline: 2px dashed var(--us); outline-offset: 1px; border-radius: 4px; padding: 0 .25em; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 2px solid var(--ink);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 70px; }

.logo {
  font-weight: 900; font-stretch: 125%; font-size: 1.4rem; letter-spacing: -0.015em;
  color: var(--ink); text-decoration: none; white-space: nowrap; line-height: 1;
  padding: 2px 3px;
  background: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 94%, transparent 94%);
}

/* Top bar: seven links that are always visible. Up to 1100px wide, two labels get shorter (Cases, Tools);
   up to 960px the links move to a strip under the logo, sized so all seven fit on a phone. */
.site-nav { margin-left: auto; min-width: 0; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 11px; border-radius: 8px; white-space: nowrap;
  font-weight: 650; font-size: 1rem; text-decoration: none; color: var(--ink);
}
.site-nav a:hover { background: var(--paper); }
.site-nav a[aria-current="page"] {
  background: linear-gradient(transparent 62%, var(--hl) 62%, var(--hl) 90%, transparent 90%);
}
.header-cta { white-space: nowrap; flex-shrink: 0; }
.cta-short, .nl-short { display: none; }
@media (max-width: 1100px) {
  .nl-long { display: none; }
  .nl-short { display: inline; }
  .header-inner { gap: 12px; }
  .site-nav a { padding: 8px 7px; font-size: .95rem; }
}
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; min-height: 0; padding-top: 10px; column-gap: 12px; row-gap: 0; }
  .header-inner .logo { order: 1; }
  .header-cta { order: 2; margin-left: auto; }
  .site-nav {
    order: 3; flex: 1 0 100%; margin: 8px calc(-1 * var(--gutter)) 0;
    border-top: 1px solid var(--line); overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { width: max-content; min-width: 100%; justify-content: space-between; padding: 3px var(--gutter); }
  .site-nav a { padding: 10px 8px; font-size: .97rem; }
  .site-nav.is-scrollable { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .site-nav.is-scrollable.at-end { -webkit-mask-image: none; mask-image: none; }
  html { scroll-padding-top: 124px; }
}
@media (max-width: 560px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .header-inner .logo { font-size: 1.25rem; }
  .site-nav ul { padding-inline: 6px; gap: 0; }
  .site-nav a { padding: 10px 4px; font-size: .88rem; }
}
@media (max-width: 400px) {
  .site-nav ul { padding-inline: 3px; }
  .site-nav a { padding: 10px 3px; font-size: .83rem; letter-spacing: -.005em; }
}
@media (max-width: 350px) {
  .site-nav a { padding: 10px 2px; font-size: .76rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 750; font-stretch: 108%; line-height: 1.1;
  padding: .85em 1.3em; border-radius: var(--radius-btn);
  border: 2px solid var(--ink); background: var(--ink); color: var(--white);
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.btn--hl { background: var(--hl); color: var(--ink); border-color: var(--ink); }
.btn--hl:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line:hover { background: rgba(255,255,255,.14); color: inherit; border-color: currentColor; }
.btn--small { padding: .6em 1em; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Highlighter swipe (the one orchestrated moment) ---------- */
.opp {
  color: var(--ink);
  padding: 0 .07em;
  border-radius: .05em .14em .08em .06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 100% 84%;
}
.opp.swipe { animation: swipe .6s cubic-bezier(.65,.05,.25,1) both; }
@keyframes swipe {
  from { background-size: 0% 84%; }
  to   { background-size: 100% 84%; }
}

/* ---------- Home hero ---------- */
.hero { background: var(--cobalt); color: var(--white); padding-block: clamp(44px, 7vw, 96px) clamp(44px, 6vw, 84px); }
.hero h1 {
  font-size: var(--fs-hero); font-weight: 900; font-stretch: 125%;
  line-height: .94; letter-spacing: -0.025em; text-wrap: initial;
}
.hero h1 .vs { display: block; }
.hero-sub { font-size: var(--fs-lg); max-width: 54ch; margin: 26px 0 0; color: var(--white); }
.hero-prompt { margin: 30px 0 12px; font-weight: 700; font-size: var(--fs-base); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chip {
  font: inherit; font-weight: 650; font-size: 1rem; white-space: nowrap;
  padding: .55em 1.05em; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.62);
}
.chip:hover { border-color: var(--white); }
.chip[aria-pressed="true"] { background: var(--white); color: var(--cobalt); border-color: var(--white); }

.matches { margin-top: 22px; max-width: 980px; }
.match {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-panel); padding: clamp(20px, 3vw, 32px);
  display: grid; grid-template-columns: 1fr auto; gap: 18px 36px; align-items: end;
}
.match[hidden] { display: none; }
.match h2 { font-size: var(--fs-2xl); font-weight: 850; font-stretch: 115%; margin: 10px 0 8px; }
.match p { margin: 0; color: var(--ink-2); }
.match-side { display: grid; gap: 14px; justify-items: start; }
.from { font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.from strong { display: block; font-size: 2rem; line-height: 1.05; font-weight: 900; font-stretch: 118%; color: var(--ink); }
@media (max-width: 760px) { .match { grid-template-columns: 1fr; } }

/* ---------- Tags (UK / US) ---------- */
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-block; font-size: .8125rem; font-weight: 800; letter-spacing: .02em; line-height: 1.5;
  padding: .1em .55em; border-radius: 6px; background: var(--uk); color: var(--ink);
}
.tag--us { background: var(--us); }
.tag--soon { background: var(--white); outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--cobalt); color: var(--white); padding-block: clamp(44px, 6.5vw, 92px); }
.page-hero h1 { font-size: var(--fs-page); font-weight: 900; font-stretch: 125%; line-height: .96; letter-spacing: -0.022em; text-wrap: initial; }
.page-hero h1 .vs { display: block; }
.page-hero .lead { margin-top: 22px; color: var(--white); }
.page-hero .btn-row { margin-top: 28px; }
.page-hero .tags { margin-bottom: 18px; }
.page-hero--plain h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(60px, 8.5vw, 116px); }
.section--white { background: var(--white); }
.section--hl { background: var(--hl); }
.section--ink { background: var(--ink); color: var(--white); }
.section--cobalt { background: var(--cobalt); color: var(--white); }
.section + .section--white, .section--white + .section { border-top: 0; }

.title { font-size: var(--fs-3xl); font-weight: 850; font-stretch: 118%; line-height: 1.02; max-width: 22ch; margin-bottom: 18px; }
.subtitle { font-size: var(--fs-xl); font-weight: 800; font-stretch: 112%; margin: 0 0 12px; }
.lead { font-size: var(--fs-lg); max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin: 0; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.points li { padding-left: 34px; position: relative; max-width: 60ch; }
.points li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 4px;
  background: var(--hl); outline: 2px solid var(--ink); outline-offset: -2px;
}
.points strong { display: block; font-stretch: 108%; }

/* ---------- Squad seats ---------- */
.squad-visual { display: grid; gap: 18px; justify-items: start; }
.tutor-seat {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--white); border-radius: 12px; padding: 10px 16px; font-weight: 800;
}
.seats { display: grid; grid-template-columns: repeat(3, 84px); gap: 14px; list-style: none; margin: 0; padding: 0; }
.seat {
  width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--white);
  display: grid; place-items: center; font-weight: 850; font-stretch: 112%;
}
.seat--you { background: var(--hl); }
.seat svg { width: 34px; height: 34px; }
.squad-caption { font-weight: 700; margin: 0; }

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.steps li { counter-increment: step; border-top: 3px solid currentColor; padding-top: 18px; }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 10px;
  font-size: 3.4rem; line-height: 1; font-weight: 900; font-stretch: 125%; color: var(--cobalt);
}
.section--cobalt .steps li::before, .section--ink .steps li::before { color: var(--hl); }
.steps h3 { font-size: 1.35rem; font-stretch: 112%; font-weight: 800; margin-bottom: 8px; }
.steps p { margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Service list ---------- */
.docket { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--ink); }
.docket li { border-bottom: 2px solid var(--ink); }
.docket a {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 8px 28px; align-items: center;
  padding: 26px 10px; color: inherit; text-decoration: none;
}
.docket a:hover { background: var(--white); }
.docket h3 { font-size: clamp(1.45rem, 2.7vw, 2.05rem); font-weight: 850; font-stretch: 118%; }
.docket p { margin: 6px 0 0; color: var(--ink-2); }
.docket .from { text-align: right; white-space: nowrap; }
.docket .from strong { font-size: 1.5rem; }
@media (max-width: 760px) {
  .docket a { grid-template-columns: 1fr; padding: 22px 4px; }
  .docket .from { text-align: left; }
}

/* ---------- Integrity block ---------- */
.integrity .title { max-width: 18ch; }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 36px; }
.dodont h3 { font-size: 1.35rem; font-stretch: 112%; font-weight: 850; margin-bottom: 14px; }
.dodont ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dodont li { padding-left: 36px; position: relative; }
.dodont li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink) center / 14px 14px no-repeat;
}
.do li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23FFE94A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dont li::before { background-color: var(--white); outline: 2px solid var(--ink); outline-offset: -2px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' fill='none' stroke='%23141B5C' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
@media (max-width: 760px) { .dodont { grid-template-columns: 1fr; } }

/* ---------- Currency toggle ---------- */
.currency { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; padding: 3px; background: var(--white); }
.currency button {
  font: inherit; font-weight: 750; font-size: .95rem; color: var(--ink);
  border: 0; background: transparent; padding: .38em .95em; border-radius: 999px; cursor: pointer;
}
.currency button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.price-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 32px; }
.price-head .title { margin-bottom: 0; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 20px; }
.plan {
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius-panel);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.plan--feature { background: var(--cobalt); color: var(--white); border-color: var(--cobalt); }
.plan.plan--feature .muted, .plan.plan--feature .per { color: var(--soft-on-ink); }
.plan h3 { font-size: 1.4rem; font-weight: 850; font-stretch: 115%; }
.plan .amount { font-size: 2.6rem; line-height: 1; font-weight: 900; font-stretch: 120%; }
.plan .per { display: block; font-size: .95rem; font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.plan p { margin: 0; }
.plan ul { margin: 0; padding-left: 1.15em; display: grid; gap: 6px; }
.plan .btn { margin-top: auto; }
.plan--feature .btn { background: var(--hl); color: var(--ink); border-color: var(--hl); }
.plan--feature .btn:hover { background: var(--white); border-color: var(--white); }

/* ---------- Price tables (pricing page) ---------- */
.price-table { width: 100%; border-collapse: collapse; border-top: 3px solid var(--ink); }
.price-table caption { text-align: left; font-size: var(--fs-xl); font-weight: 850; font-stretch: 112%; padding-bottom: 12px; }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 16px 12px 16px 0; border-bottom: 2px solid var(--line); }
.price-table thead th { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 700; border-bottom: 2px solid var(--ink); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; padding-right: 0; font-weight: 800; }
.price-table tbody th { font-weight: 800; width: 30%; }
.table-wrap { overflow-x: auto; margin-bottom: 48px; }
@media (max-width: 640px) {
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 0; border-bottom: 2px solid var(--line); }
  .price-table th, .price-table td { border: 0; padding: 2px 0; }
  .price-table tbody th { width: auto; }
  .price-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--ink-2); }
  .price-table td:last-child { grid-row: 1; grid-column: 2; }
}

/* ---------- Callouts, subjects, timeline ---------- */
.callout {
  background: var(--white); border: 2px solid var(--ink); border-left-width: 10px; border-left-color: var(--hl);
  border-radius: 0 var(--radius-panel) var(--radius-panel) 0; padding: 22px 26px;
}
.callout h2, .callout h3 { font-size: var(--fs-xl); font-weight: 850; font-stretch: 112%; margin-bottom: 10px; }
.callout p:last-child { margin-bottom: 0; }

.subjects { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.subjects li { background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: .3em .9em; font-weight: 600; }
.subject-group + .subject-group { margin-top: 26px; }
.cols-2 > .subject-group + .subject-group { margin-top: 0; }
.subject-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 850; font-stretch: 110%; margin-bottom: 12px; }

.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.era { border: 2px solid var(--ink); border-radius: var(--radius-panel); padding: 24px; background: var(--white); }
.era--next { background: var(--ink); color: var(--white); border-color: var(--ink); }
.era .when { font-weight: 800; font-stretch: 112%; font-size: 1.05rem; }
.era h3 { font-size: 1.7rem; font-weight: 900; font-stretch: 120%; margin: 6px 0 10px; }
.era p { margin: 0; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 860px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
.block h3 { font-size: 1.3rem; font-weight: 850; font-stretch: 112%; margin-bottom: 8px; }
.block p:last-child { margin-bottom: 0; }

.source { font-size: var(--fs-sm); color: var(--ink-2); }
.source a { color: inherit; }

/* ---------- FAQ ---------- */
.faq { border-top: 3px solid var(--ink); max-width: 880px; }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 48px 20px 0; font-weight: 800; font-stretch: 108%; font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 2rem; font-weight: 500; line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 22px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band .title { max-width: 18ch; }
.cta-band .btn-row { margin-top: 26px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 680px; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form .row-2 { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 750; margin-bottom: 6px; }
.field .hint { display: block; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; margin-top: -2px; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="month"], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--radius-btn); background: var(--white);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--cobalt); flex: none; }
.form-status { font-weight: 700; min-height: 1.6em; margin: 0; }
.plan-note { background: var(--hl); border-radius: 8px; padding: 8px 12px; font-weight: 700; margin: 0; }
.plan-note[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

/* ---------- Legal / long-form ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.65rem; font-weight: 850; font-stretch: 112%; margin: 2em 0 .5em; }
.prose h3 { font-size: 1.2rem; font-weight: 800; margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose .updated { color: var(--ink-2); font-size: var(--fs-sm); }
.toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.toc a { display: block; border: 2px solid var(--ink); border-radius: 999px; padding: .25em .85em; text-decoration: none; font-weight: 650; background: var(--white); }
.toc a:hover { background: var(--hl); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-block: clamp(52px, 7vw, 80px) 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.site-footer .logo { color: var(--white); background: linear-gradient(transparent 56%, var(--cobalt) 56%, var(--cobalt) 94%, transparent 94%); }
.site-footer h2 { font-size: 1rem; font-weight: 800; margin-bottom: 12px; font-stretch: 108%; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--hl); }
.footer-blurb { color: var(--soft-on-ink); margin-top: 16px; max-width: 40ch; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.25); margin-top: 44px; padding-top: 22px; color: var(--soft-on-ink); font-size: var(--fs-sm); }
.footer-legal p { max-width: 100ch; margin-bottom: .6em; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #1FAF55; color: var(--white);
  border: 2px solid var(--white); box-shadow: 0 8px 22px rgba(20, 27, 92, .28);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float[hidden] { display: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .opp { background-size: 100% 84%; }
}

/* ---------- Spacing utilities ---------- */
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 20px; }
.mt-l { margin-top: 32px; }
.mt-xl { margin-top: 56px; }

/* =====================================================================
   v2 components: articles, squads, quiz, sign-ups, Adam, mobile bar
   ===================================================================== */

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.section--ink .btn--outline, .section--cobalt .btn--outline { color: var(--white); border-color: var(--white); }
.btn--danger { background: var(--white); color: #B3261E; border-color: #B3261E; }
.btn--danger:hover { background: #B3261E; color: var(--white); border-color: #B3261E; }
.tag--plain { background: var(--paper); outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
.page-hero .tag--plain, .section--cobalt .tag--plain { background: var(--white); }

/* ---------- Footer sign-up ---------- */
.footer-top { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: end; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.25); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }
.signup { display: grid; gap: 8px; max-width: 560px; }
.signup label { font-weight: 750; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-row input { flex: 1 1 220px; min-width: 0; font: inherit; color: var(--ink); padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--radius-btn); background: var(--white); }
.signup .field select { width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--radius-btn); background: var(--white); }
.signup-note { font-size: var(--fs-sm); margin: 0; color: var(--ink-2); }
.signup-status { font-weight: 700; margin: 0; min-height: 1.4em; }
.site-footer .signup-row input { border-color: var(--white); }
.site-footer .signup-note { color: var(--soft-on-ink); }
.site-footer .signup-note a { text-decoration: underline; }

/* ---------- Article lists ---------- */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 40px; border-top: 3px solid var(--ink); }
.article-card { padding: 26px 0; border-bottom: 2px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.article-card-title { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 850; font-stretch: 112%; line-height: 1.12; }
.article-card-title a { text-decoration: none; }
.article-card-title a:hover { text-decoration: underline; text-decoration-color: var(--cobalt); }
.article-card p { margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.page-hero .article-meta { color: var(--soft-on-ink); margin-top: 18px; }
.page-hero .article-meta a { color: var(--white); }
.article-list--compact .article-card-title { font-size: 1.3rem; }

/* ---------- Article page ---------- */
.crumbs { display: flex; gap: 8px; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { color: var(--white); }
.article-hero h1 { font-size: clamp(2.1rem, 5vw, 3.75rem); font-weight: 900; font-stretch: 118%; line-height: 1.02; max-width: 24ch; margin-top: 14px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-side { order: -1; } }
.article-body { font-size: 1.125rem; line-height: 1.7; }
.article-body > h2:first-of-type { margin-top: 1.2em; }
.article-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 6px solid var(--hl); font-size: 1.15rem; }
.article-body code { font-size: .92em; background: var(--paper); padding: .1em .35em; border-radius: 4px; }
.keypoints { background: var(--hl); border-radius: var(--radius-panel); padding: 22px 26px; margin-bottom: 1.6em; }
.keypoints h2 { margin: 0 0 10px !important; font-size: 1.3rem !important; }
.keypoints ul { margin: 0; }
.faq--article { margin-top: 10px; }
.faq--article summary { font-size: 1.1rem; }
.sources { padding-left: 1.3em; font-size: 1rem; }
.author-box { margin-top: 2.4em; padding: 22px 24px; border: 2px solid var(--ink); border-radius: var(--radius-panel); font-size: 1rem; }
.author-box .author-name { font-weight: 800; margin-bottom: 6px; }
.article-side { position: sticky; top: 96px; display: grid; gap: 20px; }
@media (max-width: 960px) { .article-side { position: static; } }
.toc-box { border-top: 3px solid var(--ink); padding-top: 14px; }
.toc-title { font-weight: 800; margin: 0 0 8px; }
.toc-box ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .97rem; }
@media (max-width: 960px) { .toc-box { display: none; } }
.side-cta { background: var(--cobalt); color: var(--white); border-radius: var(--radius-panel); padding: 22px; display: grid; gap: 10px; }
.side-cta p { margin: 0; }
.side-cta-title { font-weight: 850; font-stretch: 112%; font-size: 1.2rem; }

/* ---------- Squads ---------- */
.squad-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.squad-card { border: 2px solid var(--ink); border-radius: var(--radius-panel); padding: 24px; display: grid; gap: 12px; align-content: start; background: var(--white); }
.squad-card--full { background: var(--paper); }
.squad-name { font-size: 1.45rem; font-weight: 850; font-stretch: 115%; }
.squad-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0; }
.squad-facts dt { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.squad-facts dd { margin: 0; font-weight: 750; }
.pips { display: flex; gap: 6px; }
.pip { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); }
.pip--taken { background: var(--ink); }
.squad-card .btn { justify-self: start; }
.empty-state { border: 2px dashed var(--ink); border-radius: var(--radius-panel); padding: 28px; max-width: 760px; }

/* ---------- Quiz ---------- */
.quiz { max-width: 820px; }
.quiz-count { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.quiz-progress { height: 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--cobalt); transition: width .3s ease; }
.quiz fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.quiz-stem { font-size: 1.2rem; font-weight: 650; line-height: 1.5; margin-bottom: 14px; padding: 0; outline: none; }
.quiz-opt { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 12px; cursor: pointer; background: var(--white); }
.quiz-opt:hover { background: var(--paper); }
.quiz-opt input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--cobalt); }
.quiz-opt:has(input:checked) { background: var(--hl); }
.quiz-opt:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.quiz-letter { font-weight: 900; font-stretch: 115%; }
.quiz-error { color: #B3261E; font-weight: 700; min-height: 1.4em; margin: 10px 0; }
.quiz-score { font-size: clamp(3.5rem, 10vw, 6rem); font-weight: 900; font-stretch: 125%; line-height: 1; margin: 0 0 12px; }
.quiz-score span { background: var(--hl); padding: 0 .08em; }
.quiz-split { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.quiz-split div { border: 2px solid var(--ink); border-radius: 10px; padding: 8px 14px; }
.quiz-signup { margin: 28px 0; padding: 22px; border: 2px solid var(--ink); border-radius: var(--radius-panel); background: var(--paper); max-width: none; }
.quiz-review { padding-left: 1.3em; display: grid; gap: 22px; }
.quiz-review li { padding-left: 6px; }
.quiz-review li p { margin-bottom: .5em; }
.quiz-review-head { display: flex; gap: 10px; align-items: center; font-weight: 800; }
.quiz-results .btn-row { margin: 18px 0; }

/* ---------- Mobile quick-action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 2px solid var(--ink);
  }
  .mobile-bar .btn { padding: .8em .6em; font-size: 1rem; }
  body { padding-bottom: 78px; }
  .wa-float { display: none; }
  .adam-launcher { display: none !important; }
}

/* ---------- Mobile polish ---------- */
@media (max-width: 760px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
  .section { padding-block: 56px; }
  .lead { font-size: 1.125rem; }
  .btn { min-height: 48px; }
  .plans { grid-template-columns: 1fr; }
  .faq summary { font-size: 1.08rem; }
  .article-body { font-size: 1.0625rem; }
}

/* ---------- Adam ---------- */
.adam-launcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 65;
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 800; font-stretch: 108%;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--ink); color: var(--white); border: 2px solid var(--white);
  box-shadow: 0 8px 22px rgba(20, 27, 92, .3); cursor: pointer;
}
.adam-launcher:hover { background: var(--cobalt); }
.adam-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hl); color: var(--ink); font-weight: 900; font-stretch: 125%; font-size: 1.1rem; flex: none;
}
.adam-avatar--lg { width: 44px; height: 44px; font-size: 1.3rem; }
.wa-float { bottom: 86px; }
.adam-panel {
  position: fixed; right: 18px; bottom: 86px; z-index: 80;
  width: min(400px, calc(100vw - 36px)); height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius-panel);
  box-shadow: 0 18px 50px rgba(20, 27, 92, .3); overflow: hidden;
}
.adam-panel[hidden] { display: none; }
.adam-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--cobalt); color: var(--white); }
.adam-title { font-weight: 900; font-stretch: 118%; font-size: 1.2rem; margin: 0; line-height: 1.1; }
.adam-sub { margin: 0; font-size: var(--fs-sm); color: var(--soft-on-ink); }
.adam-close { margin-left: auto; font: inherit; font-weight: 700; background: transparent; color: var(--white); border: 2px solid var(--white); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.adam-log { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; background: var(--paper); }
.adam-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .98rem; line-height: 1.5; }
.adam-msg p { margin: 0 0 .5em; }
.adam-msg p:last-child { margin-bottom: 0; }
.adam-msg ul { margin: .3em 0 .5em; padding-left: 1.2em; }
.adam-msg--assistant { background: var(--white); border: 2px solid var(--ink); justify-self: start; border-bottom-left-radius: 4px; }
.adam-msg--user { background: var(--ink); color: var(--white); justify-self: end; border-bottom-right-radius: 4px; }
.adam-msg--thinking { color: var(--ink-2); }
.adam-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: var(--paper); }
.adam-suggest:empty { display: none; }
.adam-chip { font: inherit; font-size: .9rem; font-weight: 650; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; }
.adam-chip:hover { background: var(--hl); }
.adam-form { display: flex; gap: 8px; padding: 12px; border-top: 2px solid var(--ink); align-items: flex-end; }
.adam-form textarea { flex: 1; font: inherit; color: var(--ink); resize: none; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; min-height: 46px; max-height: 120px; }
.adam-send { padding: .7em 1em; }
.adam-note { margin: 0; padding: 0 12px 10px; font-size: .78rem; color: var(--ink-2); }
@media (max-width: 760px) {
  .adam-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; bottom: 0; right: 0; }
  html.adam-open, html.adam-open body { overflow: hidden; }
  .adam-form { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
@media print { .adam-launcher, .adam-panel, .mobile-bar, .wa-float { display: none !important; } }

/* =====================================================================
   v3: booking, checkout notices, thank-you, mock exams
   ===================================================================== */
.site-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 90; max-width: min(560px, calc(100vw - 32px)); background: var(--ink); color: var(--white); font-weight: 700; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(20,27,92,.3); }
.site-toast[hidden] { display: none; }
.notice { background: var(--hl); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 14px; font-weight: 650; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tick-list li { padding-left: 30px; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--ink) center / 12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23FFE94A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Booking */
.booking-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .booking-layout { grid-template-columns: 1fr; } .booking-side { order: -1; } }
.steps--stack { grid-template-columns: 1fr; gap: 18px; }
.steps--stack li::before { font-size: 2.2rem; }
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day-tab { flex: none; display: grid; gap: 2px; font: inherit; font-weight: 750; text-align: left; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer; }
.day-tab span { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.day-tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.day-tab[aria-selected="true"] span { color: var(--soft-on-ink); }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 18px; }
.time-btn { display: grid; gap: 2px; font: inherit; font-weight: 750; padding: 12px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); color: var(--ink); cursor: pointer; text-align: center; }
.time-btn span { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.time-btn:hover { background: var(--paper); }
.time-btn[aria-pressed="true"] { background: var(--hl); }
.booking-form { margin-top: 10px; padding: 22px; border: 2px solid var(--ink); border-radius: var(--radius-panel); background: var(--paper); max-width: none; }

/* Thank-you */
.confirm-card { border: 2px solid var(--ink); border-radius: var(--radius-panel); padding: clamp(22px, 4vw, 36px); max-width: 780px; }
.voucher-code { font-size: clamp(2rem, 6vw, 3rem); font-weight: 900; font-stretch: 120%; letter-spacing: .06em; background: var(--hl); display: inline-block; padding: 4px 16px; border: 2px solid var(--ink); border-radius: 10px; }

/* Mock exams */
.mock-shell { min-height: 70vh; }
.mock-head { margin-bottom: 24px; }
.mock-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.mock-card { border: 2px solid var(--ink); border-radius: var(--radius-panel); padding: 22px; display: grid; gap: 10px; align-content: start; }
.mock-card .btn { justify-self: start; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.attempt-table { margin-top: 10px; }
.mock-intro { max-width: 700px; display: grid; gap: 16px; }
.exam { border: 2px solid var(--ink); border-radius: var(--radius-panel); background: var(--white); }
.exam-q fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.exam-q legend { padding: 0; }
.exam-bar { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 12px 18px; background: var(--ink); color: var(--white); position: sticky; top: 70px; z-index: 5; border-radius: calc(var(--radius-panel) - 3px) calc(var(--radius-panel) - 3px) 0 0; }
.exam-bar p { margin: 0; }
.exam-title { font-weight: 850; font-stretch: 110%; }
.exam-pos { color: var(--soft-on-ink); font-weight: 650; }
.exam-timer { margin-left: auto !important; font-weight: 900; font-stretch: 115%; font-size: 1.15rem; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.12); }
.exam-timer.is-low { background: #B3261E; }
.exam-bar .btn--outline { color: var(--white); border-color: var(--white); }
.exam-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.exam-q { padding: clamp(18px, 3vw, 32px); min-height: 360px; }
.exam-nav { border-left: 2px solid var(--ink); padding: 18px; background: var(--paper); }
.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.nav-btn { font: inherit; font-weight: 750; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); color: var(--ink); cursor: pointer; position: relative; }
.nav-btn.is-ans { background: var(--ink); color: var(--white); }
.nav-btn.is-flag::after { content: ""; position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--us); border: 2px solid var(--ink); }
.nav-btn.is-cur { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.nav-key { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-sm); margin: 14px 0 0; }
.nav-key .k { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ink); display: inline-block; }
.nav-key .k--ans { background: var(--ink); }
.nav-key .k--flag { background: var(--us); border-radius: 50%; margin-left: 10px; }
.exam-foot { display: flex; gap: 10px; justify-content: space-between; padding: 12px 18px; border-top: 2px solid var(--ink); background: var(--paper); border-radius: 0 0 calc(var(--radius-panel) - 3px) calc(var(--radius-panel) - 3px); }
#toggle-nav { display: none; }
@media (max-width: 900px) {
  .exam-body { grid-template-columns: 1fr; }
  .exam-nav { display: none; border-left: 0; border-top: 2px solid var(--ink); }
  .exam.nav-open .exam-nav { display: block; }
  #toggle-nav { display: inline-flex; }
  .exam-bar { top: 70px; }
  .exam-timer { margin-left: 0 !important; }
}
/* While a timed mock is running, hide the site's floating buttons so nothing covers the exam controls */
body.in-exam .mobile-bar, body.in-exam .wa-float, body.in-exam .adam-launcher { display: none !important; }
body.in-exam { padding-bottom: 0; }
@media (max-width: 600px) {
  .exam-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 10px; padding: 10px 12px; }
  .exam-title { grid-column: 1 / 3; grid-row: 1; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .exam-timer { grid-column: 3; grid-row: 1; justify-self: end; font-size: 1rem; }
  .exam-pos { grid-column: 1; grid-row: 2; font-size: .9rem; }
  #toggle-nav { grid-column: 2; grid-row: 2; }
  #finish { grid-column: 3; grid-row: 2; }
  .exam-foot { position: sticky; bottom: 0; z-index: 4; padding: 10px 12px; }
  .exam-foot .btn { padding-left: 14px; padding-right: 14px; }
  .exam-q { min-height: 0; }
  .exam-q .quiz-stem { font-size: 1.05rem; }
}
.finish-panel { display: grid; gap: 12px; max-width: 640px; }
.subject-bars { display: grid; gap: 10px; max-width: 760px; }
.sbar { display: grid; grid-template-columns: minmax(140px, 1.2fr) 2fr auto; gap: 12px; align-items: center; }
.sbar-name { font-weight: 650; }
.sbar-track { height: 14px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); }
.sbar-fill { display: block; height: 100%; width: 0; background: var(--cobalt); transition: width .4s ease; }
.sbar-val { font-weight: 800; font-variant-numeric: tabular-nums; }
.review-filter { margin-bottom: 16px; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; padding: 2px; }
.seg button { font: inherit; font-weight: 700; border: 0; background: transparent; padding: 4px 14px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.seg button.is-on { background: var(--ink); color: var(--white); }
.linkish { font: inherit; background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; padding: 0; margin-left: 8px; }

/* ---------- v4: refund policy, confirmation dialog, offers ---------- */
.eyebrow { font-size: var(--fs-sm); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 6px; }
.narrow { max-width: 900px; }
.policy-box { border: 2px solid var(--ink); border-radius: var(--radius-panel); padding: clamp(22px, 4vw, 40px); background: var(--paper); box-shadow: 6px 6px 0 var(--hl); }
.policy-box .title { max-width: none; }
.policy-box .tick-list { margin: 18px 0; }
.notice--policy { background: var(--white); border-color: var(--ink); font-weight: 500; font-size: var(--fs-sm); line-height: 1.5; }
.notice--policy strong { font-weight: 850; }
.footer-legal .refund-note { font-weight: 650; }

html.has-modal { overflow: hidden; }
.consent { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 27, 92, .55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.consent-card { position: relative; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-panel); padding: clamp(20px, 4vw, 32px); width: min(560px, 100%); display: grid; gap: 14px; box-shadow: 8px 8px 0 var(--hl); }
.consent-card .subtitle { margin: 0; padding-right: 36px; }
.consent-card .eyebrow { margin: 0; }
.consent-price { font-size: 1.15rem; margin: 0; }
.consent-price strong { font-size: 1.6rem; font-weight: 900; }
.consent-price s { color: var(--ink-2); }
.consent-check { font-size: var(--fs-sm); line-height: 1.45; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.consent-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); border-radius: 8px; }
.consent-x:hover { background: var(--paper); }
.consent .btn-row { margin: 0; }
.consent .btn[disabled] { opacity: .5; cursor: not-allowed; }
.consent .form-status:empty { display: none; }

.offer-card { border: 2px solid var(--ink); border-radius: var(--radius-panel); padding: clamp(20px, 4vw, 32px); background: #FFF9D6; max-width: 780px; }
.offer-card .subtitle { margin-bottom: 8px; }
.offer-price { font-size: 1.2rem; margin: 10px 0 4px; }
.offer-price strong { font-size: 2.2rem; font-weight: 900; font-stretch: 118%; }
.offer-price s { color: var(--ink-2); margin-right: 6px; }
.squad-pick { display: grid; gap: 10px; margin: 14px 0; }
.squad-pick label { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; background: var(--white); cursor: pointer; }
.squad-pick input { margin-top: 4px; accent-color: var(--cobalt); width: 20px; height: 20px; flex: none; }

/* ---------- free tools ---------- */
.tool { border: 2px solid var(--ink); border-radius: var(--radius-panel); background: var(--white); padding: clamp(16px, 3.5vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.tool > *, .tool-out > *, .dg-year { min-width: 0; }
.prose .tool-table-wrap, .tool-table-wrap { max-width: 100%; }
.tool h2, .tool h3 { margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tool .field input:not([type="checkbox"]):not([type="radio"]), .tool .field select, .tool .field textarea, .tool-table input, .tool-table select {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; min-height: 46px;
}
.tool .field textarea { min-height: 90px; resize: vertical; }
.tool input:focus-visible, .tool select:focus-visible, .tool textarea:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.tool-out { border-top: 2px dashed var(--line); padding-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat-box { border: 2px solid var(--ink); border-radius: 12px; padding: 14px; background: var(--paper); }
.stat-box b { display: block; font-size: 1.9rem; font-weight: 900; font-stretch: 118%; line-height: 1.05; }
.stat-box span { font-size: var(--fs-sm); color: var(--ink-2); }
.verdict { border-radius: 12px; padding: 12px 16px; border: 2px solid var(--ink); font-weight: 650; }
.verdict--good { background: #DDF8EC; }
.verdict--tight { background: #FFF6C2; }
.verdict--bad { background: #FFE0EE; }
.bar-track { height: 14px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); overflow: hidden; }
.bar-fill { height: 100%; background: var(--cobalt); width: 0; transition: width .3s; }
.tool-table-wrap { overflow-x: auto; }
.tool-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 520px; }
.tool-table th { text-align: left; border-bottom: 2px solid var(--ink); padding: 8px 6px; }
.tool-table td { border-bottom: 1px solid var(--line); padding: 6px; vertical-align: top; }
.tool-table input, .tool-table select { min-height: 40px; padding: 6px 8px; }
.tool-table .num { width: 90px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-set { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-set label { display: inline-flex; gap: 6px; align-items: center; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: var(--fs-sm); font-weight: 650; background: var(--white); }
.chip-set input { accent-color: var(--cobalt); width: 16px; height: 16px; margin: 0; flex: none; }
.chip-set label:has(input:checked) { background: var(--hl); }
.ref-out { border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; background: var(--paper); font-size: 1.05rem; line-height: 1.55; }
.ref-out + .tool-actions { margin-top: -6px; }
.ref-label { font-size: var(--fs-sm); font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.ref-history { display: grid; gap: 8px; padding-left: 20px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.tool-card { border: 2px solid var(--ink); border-radius: var(--radius-panel); padding: 22px; background: var(--white); display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.tool-card:hover, .tool-card:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--hl); }
.tool-card h3 { font-size: 1.25rem; font-weight: 850; font-stretch: 112%; margin: 0; }
.tool-card p { margin: 0; color: var(--ink-2); }
.tool-card .tag { justify-self: start; }
.cost-bars { display: grid; gap: 10px; }
.cost-bar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.cost-bar .bar-track { height: 12px; }
.plan-table tr.is-phase td { font-weight: 800; background: var(--paper); }
@media (max-width: 620px) { .cost-bar { grid-template-columns: 1fr auto; } .cost-bar .bar-track { grid-column: 1 / -1; order: 3; } }
@media print {
  .site-header, .site-footer, .mobile-bar, .adam-launcher, .adam-panel, .wa-float, .no-print, .page-hero .btn-row { display: none !important; }
  .tool { border: 0; padding: 0; }
  body { background: #fff; }
}


/* ================================================================ v5: free library (case law, question of the day, deadlines) */
.chip-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip-filter button { font: inherit; font-weight: 700; font-size: var(--fs-sm); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.chip-filter button span { font-weight: 600; color: var(--ink-2); margin-left: 2px; }
.chip-filter button.is-on { background: var(--hl); }
.chip-filter button:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.signup--panel { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-panel); padding: 22px; max-width: none; }
.more-link { margin-top: 24px; font-weight: 650; }
.tag--warn { background: #FFF1B8; outline: 1.5px solid #B07B00; outline-offset: -1.5px; }

/* Case law */
.case-search { margin-top: 26px; max-width: 620px; }
.case-search input { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); padding: 14px 16px; border: 2px solid var(--white); border-radius: var(--radius-btn); background: var(--white); }
.case-group { margin-bottom: 40px; }
.case-group h2 { margin-bottom: 16px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.case-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.case-card { display: grid; gap: 8px; align-content: start; padding: 18px; border: 2px solid var(--ink); border-radius: var(--radius-panel); background: var(--white); text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.case-card:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.case-card:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.case-cite { font-size: var(--fs-sm); font-weight: 700; color: var(--cobalt); }
.case-card-title { font-size: 1.15rem; font-weight: 850; font-stretch: 110%; line-height: 1.15; margin: 0; }
.case-card-desc { font-size: .95rem; color: var(--ink-2); }
.case-card-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; }
.case-topic { font-size: var(--fs-sm); color: var(--ink-2); }
.case-citation { font-size: 1.15rem; font-weight: 700; margin-top: 10px; color: var(--hl); }
.case-facts { border: 2px solid var(--ink); border-radius: var(--radius-panel); padding: 18px 20px; margin-bottom: 26px; background: var(--paper); }
.case-facts dl { display: grid; gap: 10px; margin: 0; }
.case-facts dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.case-facts dt { font-weight: 750; font-size: var(--fs-sm); color: var(--ink-2); }
.case-facts dd { margin: 0; }
.case-oscola { margin-right: 8px; }
@media (max-width: 560px) { .case-facts dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Question of the day */
.qotd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .qotd-layout { grid-template-columns: minmax(0, 1fr); } }
.qotd-side { display: grid; gap: 20px; }
.qotd-label { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-sm); color: var(--cobalt); margin-bottom: 10px; }
.qotd { border: 2px solid var(--ink); border-radius: var(--radius-panel); padding: clamp(18px, 3vw, 30px); background: var(--white); box-shadow: 6px 6px 0 var(--ink); }
.qotd-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 650; margin-bottom: 12px; }
.qotd-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 850; font-stretch: 110%; line-height: 1.15; margin-bottom: 14px; }
.qotd-title a { text-decoration: none; }
.qotd-stem p { margin: 0 0 12px; }
.qotd-ask { font-weight: 750; margin: 6px 0 12px; }
.qotd-options { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.qotd-opt { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-btn); padding: 12px 14px; cursor: pointer; }
.qotd-opt:hover:not([disabled]) { background: var(--paper); }
.qotd-opt:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.qotd-letter { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); font-weight: 850; }
.qotd-opt.is-right { background: #DDF7EA; border-color: #0F7A4A; }
.qotd-opt.is-right .qotd-letter { background: #0F7A4A; border-color: #0F7A4A; color: var(--white); }
.qotd-opt.is-wrong { background: #FDE4E4; border-color: #B3261E; }
.qotd-opt.is-wrong .qotd-letter { background: #B3261E; border-color: #B3261E; color: var(--white); }
.qotd-opt[disabled] { cursor: default; }
.qotd-result { font-weight: 800; min-height: 1.4em; margin: 0 0 10px; }
.qotd-reveal { border-top: 2px solid var(--line); padding-top: 12px; }
.qotd-reveal summary { cursor: pointer; font-weight: 750; color: var(--cobalt); }
.qotd-answer { margin-top: 12px; }
.qotd-answer p { margin: 0 0 12px; }
.qotd-correct { font-size: 1.05rem; }
.qotd-stats { margin-top: 14px; }
.qotd-pager { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.qotd-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.qotd-list li { border-bottom: 1px solid var(--line); }
.qotd-list a { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 4px; text-decoration: none; color: var(--ink); }
.qotd-list a:hover .qotd-list-title { text-decoration: underline; }
.qotd-list li[aria-current] a { background: var(--paper); }
.qotd-list-date { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 650; }
.qotd-list-title { font-weight: 750; }
.qotd-list.is-done-list .is-done .qotd-list-title::after { content: " ✓"; color: #0F7A4A; }
@media (max-width: 640px) { .qotd-list a { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Deadlines tracker */
.dl-checked { margin-top: 14px; color: var(--soft-on-ink); }
.page-hero .dl-checked { color: var(--soft-on-ink); }
.dl-filters { display: grid; gap: 4px; margin-bottom: 12px; }
.dl-filters .chip-filter { margin-bottom: 8px; }
.dl-filter-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.dl-filter-row select, .dl-filter-row input[type="search"] { font: inherit; color: var(--ink); padding: 10px 12px; border: 2px solid var(--ink); border-radius: var(--radius-btn); background: var(--white); }
.dl-filter-row input[type="search"] { flex: 1 1 240px; min-width: 0; }
.dl-summary { font-weight: 650; min-height: 1.4em; }
.dl-table-wrap { margin-bottom: 18px; border: 2px solid var(--ink); border-radius: var(--radius-panel); }
.dl-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.dl-table th { text-align: left; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.dl-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dl-table tr:last-child td { border-bottom: 0; }
.dl-firm > span, .dl-prog > span, .dl-close > span, .dl-table td > strong { display: block; }
.dl-firm strong { font-size: 1.02rem; }
.dl-close strong { white-space: nowrap; }
.dl-badge { display: inline-block !important; margin-top: 6px; font-size: .78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--ink); white-space: nowrap; }
.dl-badge--soon { background: var(--hl); }
.dl-badge--open { background: #DDF7EA; border-color: #0F7A4A; color: #0B5C38; }
.dl-badge--closed { background: var(--paper); color: var(--ink-2); border-color: var(--line); }
.dl-badge--tbc { background: var(--paper); }
.dl-row--closed { color: var(--ink-2); }
.dl-row--closed .dl-firm strong { color: var(--ink-2); }
.dl-actions { white-space: nowrap; }
.dl-actions .btn { margin: 0 6px 6px 0; }
.dl-notes .tag { margin-right: 4px; }
@media (max-width: 860px) {
  .dl-table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .dl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dl-table, .dl-table tbody, .dl-table tr, .dl-table td { display: block; width: 100%; }
  .dl-table tr { border: 2px solid var(--ink); border-radius: var(--radius-panel); padding: 6px 2px; margin-bottom: 12px; background: var(--white); }
  .dl-table td { border-bottom: 0; padding: 6px 14px; }
  .dl-actions { white-space: normal; }
}

/* Article tables (markdown) */
.data-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: .97rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table thead th { border-bottom: 2px solid var(--ink); background: var(--paper); font-size: var(--fs-sm); }
.prose .table-wrap { margin-bottom: 22px; }

.page-hero--compact { padding-block: clamp(34px, 4.6vw, 60px); }
.page-hero--compact h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); }
.page-hero--compact .lead { margin-top: 16px; }

.optout { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
