/* Prime Maths Tutoring
   Layout: one calm, dark page with plenty of space, hairline rules and a single gold accent.
   The faint squared paper and the highlighter underline are the two nods to revision. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Colour scheme: Black & Gold */
:root {
  --paper: #0A0A0B;
  --paper-2: #111113;
  --ink: #F4F4F2;
  --ink-2: #A6A6A2;
  --line: #26262A;
  --grid: #161618;
  --brand: #E8AE4A;
  --brand-hover: #F0C06A;
  --on-brand: #0A0A0B;
  --highlight: #E8AE4A;
  --on-highlight: #0A0A0B;
  --band: #151517;
  --on-band: #F4F4F2;
  --on-band-2: #A6A6A2;
  --card: #141416;
  --card-bar: #1B1B1E;
  --logo-prime: #6E8BFF;
  --logo-dot: #2A2A2F;
  --logo-line: #E8AE4A;
  --logo-stroke: 9;
  --success: #6FD69B;
  --error: #FF8A80;

  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --h-weight: 600;
  --h-stretch: 100%;
  --h-tracking: -0.02em;

  --wrap: 70rem;
  --radius: 14px;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 12px 32px rgb(0 0 0 / 0.28);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--font-display); }
h1, h2 { font-weight: var(--h-weight); font-stretch: var(--h-stretch); letter-spacing: var(--h-tracking); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Highlighter underline on a key phrase */
mark {
  color: inherit;
  background: linear-gradient(transparent 80%, var(--highlight) 80%, var(--highlight) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.05em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.5rem;
  background: var(--brand); color: var(--on-brand);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 2.5rem; padding: 0 1.15rem; font-size: 0.9375rem; white-space: nowrap; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow::after { content: "\2192"; display: inline-block; margin-left: 0.35em; transition: transform 0.15s ease; }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover::after { transform: translateX(3px); }
.fineprint { font-size: 0.9375rem; color: var(--ink-2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand .logo-mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: var(--h-weight); font-stretch: var(--h-stretch); letter-spacing: -0.015em; line-height: 1.1; white-space: nowrap; }

/* Section tabs */
.tabs {
  position: relative; display: flex; gap: 0.15rem; padding: 0.25rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  overflow-x: auto; scrollbar-width: none; min-width: 0;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 0.4rem 0.72rem; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="true"] { color: var(--ink); background: color-mix(in srgb, var(--brand) 18%, transparent); }

/* Mac-style window */
.window { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.window-bar {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 2.6rem; padding: 0 4.5rem; background: var(--card-bar); border-bottom: 1px solid var(--line);
}
.window-dots { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); display: flex; gap: 0.45rem; }
.window-dots i { width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink-2) 45%, transparent); }
.window-title { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }

/* Logo: a see-through mark, so all 100 dots stay visible */
.logo-mark .p { fill: var(--logo-prime); }
.logo-mark .n { fill: var(--logo-dot); }
.logo-mark .s { fill: none; stroke: var(--logo-line); stroke-width: var(--logo-stroke); stroke-linejoin: round; }

/* Hero */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before {
  /* faint squared paper that fades out towards the text */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 85% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
.lede { font-size: 1.1875rem; color: var(--ink-2); max-width: 32rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 32rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.stats li { display: grid; gap: 0.1rem; align-content: start; padding-inline: 1.5rem; border-left: 1px solid var(--line); min-width: 0; }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats strong { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { font-size: 0.875rem; color: var(--ink-2); line-height: 1.4; }

/* At a glance */
.glance .window-body { margin: 0; display: grid; padding: 0.4rem 1.6rem 0.5rem; }
.glance dl > div:first-child { border-top: 0; }
.glance dl > div {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem;
  padding-block: 0.75rem; border-top: 1px solid var(--line);
}
.glance dt { font-size: 0.9375rem; color: var(--ink-2); }
.glance dd { margin: 0; font-size: 0.9375rem; }
.glance dd p + p { margin-top: 0.15rem; }
.glance strong { font-weight: 650; font-variant-numeric: tabular-nums; }

/* Sections */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-tint { background: var(--paper-2); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 40rem; }
.section-head p { color: var(--ink-2); }
.section-head .eyebrow { color: var(--brand); }
.section-head.flush { margin-bottom: 0; }
.section-head .link-arrow { justify-self: start; }

/* Feedback carousel */
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.reviews-controls { display: flex; gap: 0.5rem; }
.round-btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: inherit; font-size: 1.1rem; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.round-btn:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.reviews-track {
  list-style: none; margin: 0; padding: 0.25rem 0 1rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); column-gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; min-width: 0;
}
.review blockquote { margin: 0; flex: 1; font-size: 1.0625rem; line-height: 1.55; }
.review blockquote p::before { content: "\2018"; }
.review blockquote p::after { content: "\2019"; }
.review-meta { font-size: 0.875rem; color: var(--ink-2); }
.review-meta strong { color: var(--ink); font-weight: 600; }
.review-result { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.grade { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-size: 2.75rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.grade span:last-child { color: var(--brand); }
.grade .arrow { font-size: 1.5rem; color: var(--ink-2); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; counter-reset: step; }
.steps li { display: grid; gap: 0.5rem; align-content: start; padding-top: 1.6rem; border-top: 1px solid var(--line); position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -0.9rem; left: 0;
  display: grid; place-items: center; width: 1.8rem; height: 1.8rem;
  background: var(--paper-2); color: var(--brand);
  border: 1px solid var(--brand); border-radius: 50%;
  font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps p { color: var(--ink-2); font-size: 1rem; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.founder-side { display: grid; gap: 1.25rem; justify-items: start; }
.avatar {
  width: 5.5rem; height: 5.5rem; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--card); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.avatar .logo-mark { width: 70%; height: 70%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.founder-copy { display: grid; gap: 1.1rem; max-width: 38rem; min-width: 0; }
.founder-copy p { color: var(--ink-2); }
.founder-copy p.lead { color: var(--ink); font-size: 1.1875rem; }
.signoff { display: grid; gap: 0.1rem; margin-top: 0.5rem; }
.founder-copy .signoff strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.signoff span { font-size: 0.9375rem; color: var(--ink-2); }

/* What makes us different */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2.5rem; }
.points li { display: grid; gap: 0.45rem; align-content: start; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.points p { color: var(--ink-2); font-size: 1rem; }

/* Prices */
.prices { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prices-intro { display: grid; gap: 1rem; }
.prices-intro p { color: var(--ink-2); }
.offer {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
}
.offer::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-top: 0.55rem; border-radius: 50%; background: var(--highlight); box-shadow: 0 0 0 4px color-mix(in srgb, var(--highlight) 25%, transparent); }
.prices-intro .offer p { color: var(--ink); }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.price-table thead th { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); text-align: left; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-table thead th:last-child, .price-table td { text-align: right; }
.price-table tbody th { text-align: left; font-weight: 600; padding: 1.05rem 1.4rem; }
.price-table tbody th span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--ink-2); }
.price-table td { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; padding: 1.05rem 1.4rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table td small { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.price-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.price-table .free td { color: var(--brand); }

/* Booking */
.book { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.book-intro { display: grid; gap: 1rem; position: sticky; top: 6.5rem; }
.book-intro p { color: var(--ink-2); }
.checks { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.checks li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--ink); font-size: 1rem; }
.checks li::before { content: ""; flex: none; width: 0.45rem; height: 0.8rem; border: solid var(--brand); border-width: 0 2px 2px 0; transform: translateY(-0.1rem) rotate(45deg); }

/* Forms */
.form { display: grid; gap: 1.1rem; padding: 1.5rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-size: 0.9375rem; font-weight: 500; color: var(--ink); padding: 0; }
.optional { font-weight: 400; color: var(--ink-2); font-size: 0.8125rem; margin-left: 0.25rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 2.9rem; padding: 0.65rem 0.85rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 55%, calc(100% - 0.85rem) 55%;
  background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink-2) 70%, transparent); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--ink-2) 45%, var(--line)); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 0.5rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2); font-size: 0.9375rem;
  transition: all 0.15s ease;
}
.chip:hover span { color: var(--ink); }
.chip input:checked + span { border-color: var(--brand); color: var(--ink); background: color-mix(in srgb, var(--brand) 16%, transparent); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.trap { position: absolute; left: -9999px; }
.btn-block { width: 100%; margin-top: 0.25rem; border: 0; cursor: pointer; }
.btn-block:disabled { opacity: 0.6; cursor: wait; }
.form-status { font-size: 0.9375rem; color: var(--ink-2); min-height: 1.4em; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }
.email-card {
  display: inline-flex; align-items: center; gap: 0.6rem; justify-self: start;
  padding: 0.85rem 1.1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-weight: 500; text-decoration: none; word-break: break-all;
}
.email-card::before { content: "@"; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); font-weight: 600; flex: none; }
.email-card:hover { border-color: var(--brand); color: var(--ink); }

/* Booking page */
.link-back { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.link-back::before { content: "\2190"; margin-right: 0.4em; }
.link-back:hover { color: var(--ink); }
.booking-page .hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.booking-page h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.book-points { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.book-points li { padding-left: 1rem; border-left: 2px solid var(--brand); color: var(--ink-2); font-size: 1rem; }
.book-points strong { color: var(--ink); font-weight: 600; }
.book-panel { display: grid; min-width: 0; }
.thanks:focus { outline: none; }
.thanks-body { display: grid; justify-items: center; text-align: center; gap: 1rem; padding: clamp(2rem, 6vw, 3.5rem) 1.5rem; }
.thanks-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.thanks-body p { color: var(--ink-2); max-width: 26rem; }
.thanks-mark { width: 5.5rem; height: 5.5rem; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; }
.thanks-mark .logo-mark { width: 70%; height: 70%; }

.chip input[aria-invalid="true"] + span { border-color: var(--error); }
.quick { display: grid; gap: 0.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.quick dl { margin: 0; display: grid; gap: 0.6rem; }
.quick dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; font-size: 0.9375rem; }
.quick dt { color: var(--ink-2); }
.quick dd { margin: 0; }
.footer-link { color: var(--ink-2); }
.footer-link:hover { color: var(--brand); }

.not-found { display: grid; gap: 1.1rem; justify-items: start; max-width: 36rem; padding-block: clamp(2rem, 8vw, 5rem); }
.not-found p:not(.eyebrow) { color: var(--ink-2); }

/* FAQs */
.faqs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-list { border-top: 1px solid var(--line); min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.15rem; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 0.55rem; height: 0.55rem;
  border: solid var(--ink-2); border-width: 0 1.5px 1.5px 0;
  transform: translateY(-0.15rem) rotate(45deg); transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(0.1rem) rotate(-135deg); }
.faq-list details p { padding-bottom: 1.25rem; color: var(--ink-2); max-width: 40rem; }

/* Logo story */
.logo-story { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2.5rem; align-items: center; max-width: 50rem; }
.logo-story h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 0.9rem; }
.logo-story p { color: var(--ink-2); }
.logo-story p + p { margin-top: 0.75rem; }
.logo-large .logo-mark { width: 100%; height: auto; display: block; }

/* Closing panel, with equal space above and below */
.closing { padding-block: clamp(3rem, 7vw, 5rem); }
.closing-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  background: var(--band); color: var(--on-band);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 5vw, 3.5rem);
}
.closing h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.closing p { color: var(--on-band-2); margin-top: 0.4rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: center; padding-block: 1.75rem; font-size: 0.9rem; color: var(--ink-2); }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.footer-brand .logo-mark { width: 1.7rem; height: 1.7rem; }
.copyright { margin-left: auto; }

/* Narrow desktop: logo only, so all the tabs fit */
@media (min-width: 961px) and (max-width: 1180px) {
  .site-header .brand-name { display: none; }
}

/* Tablet */
@media (max-width: 960px) {
  html { scroll-padding-top: 8rem; }
  .header-inner { flex-wrap: wrap; row-gap: 0.6rem; padding-block: 0.6rem; }
  .tabs { order: 3; flex-basis: 100%; }
  .hero-grid, .founder, .prices, .book, .faqs { grid-template-columns: minmax(0, 1fr); }
  .hero::before { -webkit-mask-image: radial-gradient(ellipse 90% 50% at 70% 75%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 90% 50% at 70% 75%, #000 20%, transparent 75%); }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-track { grid-auto-columns: calc((100% - 1.25rem) / 2); }
  .book-intro { position: static; }
  .booking-page .book-points { display: none; }
  .founder-side { grid-auto-flow: column; align-items: center; justify-content: start; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .closing-inner { flex-direction: column; text-align: center; }
  .closing-inner .actions { justify-content: center; }
  .header-inner { min-height: 3.75rem; column-gap: 0.75rem; }
  .glance .window-body { padding-inline: 1.2rem; }
  .brand .logo-mark { width: 2.2rem; height: 2.2rem; }
  .brand-name { font-size: 0.95rem; }
  .brand { gap: 0.5rem; }
  .btn-small { padding: 0 0.9rem; font-size: 0.875rem; }
  .lede { font-size: 1.0625rem; }
  .stats li { padding-inline: 1rem; }
  .stats strong { font-size: 1.45rem; }
  .stats span { font-size: 0.8125rem; }
  .steps, .points { grid-template-columns: minmax(0, 1fr); }
  .steps { row-gap: 3rem; }
  .reviews-track { grid-auto-columns: 86%; }
  .glance dl > div { grid-template-columns: 6rem minmax(0, 1fr); gap: 0.75rem; }
  .price-table thead th, .price-table tbody th, .price-table td { padding-left: 1rem; padding-right: 1rem; }
  .price-table td { font-size: 1.35rem; }
  .logo-story { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .logo-large { width: 9rem; }
  .avatar { width: 4.5rem; height: 4.5rem; }
  .form { padding: 1.2rem; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .copyright { margin-left: 0; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 0.9375rem; }
  .btn-small { padding: 0 0.85rem; }
  .long-label { display: none; }
  .stats li { padding-inline: 0.75rem; }
}
