/* ==========================================================================
   Afterbell Media — shared styles for /index.html (EN, LTR) and /ar/index.html (AR, RTL)
   Dark theme: slate navy, soft white, and a muted teal accent.
   Layout uses logical properties (inline-start/end) so RTL mirrors itself.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Palette */
  --bg: #111925;
  --bg-deep: #0E1520;
  --surface: #172231;
  --surface-2: #202D3D;
  --line: #2A3748;
  --line-strong: #3F5164;
  --heading: #F1F3F2;
  --text: #C3CDD6;
  --muted: #A6B3C0;
  --accent: #A0C9BE;
  --accent-hover: #B3D7CD;
  --accent-text: #AACEC5;
  --accent-soft: rgba(160, 201, 190, .08);
  --accent-line: rgba(160, 201, 190, .34);
  --accent-hairline: rgba(160, 201, 190, .18);
  --on-accent: #111925;

  /* Type: English defaults */
  --font-head: 'Archivo', Arial, sans-serif;
  --font-body: 'Hanken Grotesk', Arial, sans-serif;
  --font-wordmark: 'Hanken Grotesk', Arial, sans-serif;
  --ls-eyebrow: 1.2px;
  --ls-h1: -2.5px;
  --ls-h2: -1.5px;
  --lh-h1: 1.02;
  --lh-h2: 1.1;
  --lh-body: 1.6;

  /* Layout */
  --max: 1160px;
  --gutter: clamp(24px, 4vw, 64px);
  --section-y: clamp(80px, 8vw, 116px);
  --radius: 20px;
}

/* Arabic: IBM Plex Sans Arabic, no letter-spacing, taller lines */
:root:lang(ar) {
  --font-head: 'IBM Plex Sans Arabic', 'Hanken Grotesk', Tahoma, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --ls-eyebrow: 0;
  --ls-h1: 0;
  --ls-h2: 0;
  --lh-h1: 1.25;
  --lh-h2: 1.35;
  --lh-body: 1.8;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol { margin: 0; }
img, svg { display: block; max-width: 100%; }

a { color: var(--accent-text); }
a:hover { color: var(--heading); }

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--heading);
  color: var(--bg);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }
.skip-link:hover { color: var(--bg); }

.container {
  max-width: var(--max);
  margin-inline: auto;
}

/* Latin names inside Arabic text keep their own direction */
bdi { unicode-bidi: isolate; }

/* ---------- Announcement bar (above header) ---------- */
.announce {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  padding: 9px var(--gutter);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
  text-wrap: balance;
}
.announce strong {
  font-weight: 700;
  color: var(--heading);
}
.announce-dot {
  display: inline-block;
  vertical-align: 1px;
  margin-inline-end: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(160, 201, 190, .55);
  animation: announce-pulse 2s ease-out infinite;
}
@keyframes announce-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(160, 201, 190, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(160, 201, 190, 0); }
  100% { box-shadow: 0 0 0 0 rgba(160, 201, 190, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .announce-dot { animation: none; }
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 20px var(--gutter);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
}
.logo:hover { color: var(--heading); }
.wordmark {
  font-family: var(--font-wordmark);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px; /* Latin wordmark on both pages: After + teal "bell" + lighter "Media" */
  line-height: 1;
  color: var(--heading);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  padding-block: 10px; /* 44px touch target */
}
.nav-link:hover { color: var(--heading); }
/* Language switch: small outlined pill */
.nav-link[lang] {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--heading);
}
.nav-link[lang]:hover { background: var(--surface-2); }
.nav-link[lang="ar"] { font-family: 'IBM Plex Sans Arabic', Tahoma, sans-serif; }
.nav-link[lang="en"] { font-family: 'Hanken Grotesk', Arial, sans-serif; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }

/* Floating Book a call button: phones and tablets, toggled by assets/site.js */
.mobile-cta {
  position: fixed;
  z-index: 50;
  inset-inline: 16px;
  bottom: max(16px, env(safe-area-inset-bottom)); /* clear the iPhone home bar */
  max-width: 440px;
  margin-inline: auto; /* centred once the screen is wider than max-width */
  min-height: 52px;
  padding: 14px 24px;
  font-size: 17px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transform: translateY(calc(100% + 32px));
  visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.mobile-cta.is-visible {
  transform: none;
  visibility: visible;
  transition: transform .25s ease;
}
@media (min-width: 900px) {
  .mobile-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-cta,
  .mobile-cta.is-visible { transition: none; }
}

.btn-lg { padding: 18px 32px; font-size: 18px; }
.btn-xl { padding: 18px 32px; font-size: 19px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section > .container {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.5vw, 60px);
}

/* Section header: small teal label, then H2, centred */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.6vw, 20px);
  text-align: center;
}

.eyebrow-text,
.eyebrow-plain {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: var(--ls-eyebrow);
  color: var(--accent-text);
}
:root:lang(ar) .eyebrow-text,
:root:lang(ar) .eyebrow-plain { font-size: 15px; }

.h1, .h2 {
  font-family: var(--font-head);
  font-weight: 700;
  text-wrap: balance;
  color: var(--heading);
}
.h1 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  max-width: 980px;
}
.h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  max-width: 860px;
}
.accent { color: var(--accent-text); }

.lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: var(--lh-body);
  color: var(--text);
  max-width: 720px;
}

/* ---------- Hero ---------- */
/* A quiet frame and a single fine rule set off the headline. */
.hero {
  padding: clamp(16px, 3vw, 44px) var(--gutter);
  background: var(--bg);
}
.hero > .container {
  position: relative;
  align-items: center;
  text-align: center;
  gap: clamp(20px, 2.2vw, 32px);
  padding: clamp(54px, 8vw, 112px) clamp(16px, 5vw, 72px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 3vw, 32px);
}
.hero > .container::before {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline: 0;
  margin-inline: auto;
  inline-size: clamp(48px, 10vw, 144px);
  block-size: 1px;
  background: var(--accent-line);
  pointer-events: none;
}
.hero .h1 {
  font-family: 'Archivo', var(--font-head);
  max-inline-size: 16ch;
  font-size: clamp(34px, 7vw, 96px);
}
.hero .accent { white-space: nowrap; }
.hero-text {
  font-size: clamp(18px, 2vw, 22px);
  line-height: var(--lh-body);
  color: var(--text);
  max-width: 640px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---------- Service strip (scrolling, below the hero) ---------- */
.service-strip {
  display: flex;
  align-items: center;
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-head);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 600;
  line-height: 1.3;
}
/* English labels in caps; Arabic has no case and no letter-spacing */
:root:not(:lang(ar)) .service-strip { text-transform: uppercase; letter-spacing: .5px; }
.strip-window { flex: 1; min-width: 0; overflow: hidden; }
.strip-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  list-style: none;
  margin: 0;
  padding: 24px var(--gutter);
}
.strip-group li {
  display: inline-flex;
  align-items: center;
  gap: 32px;
}
/* Four-point sparkle, drawn as SVG so it renders the same in every font */
.strip-star {
  flex: none;
  width: 14px;
  height: 14px;
  fill: var(--accent-text);
}
.strip-group[aria-hidden="true"] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .is-scrolling .strip-track {
    display: flex;
    width: max-content;
    min-width: 200%;
    animation: strip-scroll 31s linear infinite;
  }
  .is-scrolling .strip-group {
    display: flex;
    flex: 1 0 auto;
    flex-wrap: nowrap;
    justify-content: space-around;
    white-space: nowrap;
    padding-inline: 16px;
    gap: 32px;
  }
  .strip-window:is(:hover, :focus-within) .strip-track { animation-play-state: paused; }
  [dir="rtl"] .strip-track { --strip-end: 50%; }
  @keyframes strip-scroll {
    to { transform: translateX(var(--strip-end, -50%)); }
  }
}

/* Placeholder label text (WhatsApp number) */
.placeholder {
  font-size: 17px;
  color: var(--text);
}

/* ---------- Cards ---------- */
.section + .section { border-block-start: 1px solid var(--line); }
#proof, #system, .book { background: var(--bg-deep); }

.eyebrow-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow-text::before, .eyebrow-text::after {
  content: "";
  inline-size: 22px;
  block-size: 1px;
  background: var(--accent-line);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
/* Highlighted card: teal hairline and tint instead of a solid fill */
.card.card-dark {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.card-title {
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--heading);
}
.card-text {
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--text);
}

.card-list {
  padding-inline-start: 22px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}
.card-list li::marker { color: var(--accent-text); }

/* Proof cards */
.proof-card { padding: 32px; gap: 10px; }
.proof-group-title {
  margin: 24px 0 0;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
  text-align: center;
}
.proof-num {
  font-family: var(--font-head);
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--accent-text);
  padding-block-end: 16px;
  margin-block-end: 6px;
  border-block-end: 1px solid var(--line-strong);
}
.proof-name {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--heading);
}
.proof-text {
  font-size: 15px;
  line-height: var(--lh-body);
  color: var(--text);
}
.proof-source {
  border-block-start: 1px solid var(--line);
  margin-block-start: auto; /* sits at the bottom of every card */
  padding-block: 8px;
  font-size: 14px;
  text-underline-offset: 3px;
}
/* One row you swipe, scroll or flip with the arrows (see assets/site.js).
   Phones show one card with the next peeking in, tablets two, wide screens three. */
.proof-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  scrollbar-width: none;
  /* room for focus outlines, without shifting the cards */
  padding: 6px;
  margin: -6px;
}
.proof-track::-webkit-scrollbar { display: none; }
.proof-track > .proof-card { scroll-snap-align: start; }
@media (min-width: 600px) {
  .proof-track { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (min-width: 1100px) {
  .proof-track { grid-auto-columns: calc((100% - 40px) / 3); }
}
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-block-start: 28px;
}
.carousel-controls[hidden] { display: none; }
.carousel-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  transition: border-color .2s, color .2s, opacity .2s;
}
.carousel-btn:hover { border-color: var(--accent-line); color: var(--accent-text); }
.carousel-btn:focus-visible { border-radius: 999px; }
.carousel-btn[aria-disabled="true"] { opacity: .4; cursor: default; border-color: var(--line-strong); color: var(--heading); }
.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[dir="rtl"] .carousel-btn svg { transform: scaleX(-1); }

.fine-print {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* ---------- Page comparison (solution section) ---------- */
.pages-compare { width: min(100%, 480px); margin: 8px auto 0; display: flex; flex-direction: column; gap: 20px; }
.pc-caption {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 700; letter-spacing: var(--ls-eyebrow);
  color: var(--muted); text-align: center;
}
.pc-side {
  border-radius: var(--radius); padding: 28px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.pc-good { border-color: var(--accent-line); }
.pc-head { display: flex; align-items: center; gap: 12px; padding-block-end: 14px; border-block-end: 1px solid var(--line-strong); }
.school-page-logo {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  background: var(--accent);
}
.school-page-logo::before {
  content: "";
  inline-size: 36px;
  block-size: 36px;
  background: var(--on-accent);
  mask: url("/assets/thanaweia-break.svg") center / contain no-repeat;
}
.pc-handle { font-family: var(--font-wordmark); font-size: 15px; font-weight: 600; color: var(--heading); }
.pc-tiles { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pc-tile {
  aspect-ratio: 3 / 4; border-radius: 8px; padding: 10px 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  position: relative; overflow: hidden;
}
.pc-tile.pc-you { background: var(--accent-soft); border-color: var(--accent-line); }
.pc-tile.pc-misc { background: var(--bg-deep); }
.pc-face {
  position: absolute; inset-block-start: 22%; inset-inline-start: 50%; transform: translateX(-50%);
  width: min(38%, 52px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--line-strong); color: var(--heading);
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
[dir="rtl"] .pc-face { transform: translateX(50%); }
.pc-you .pc-face { background: var(--accent); color: var(--on-accent); }
.pc-name { font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--heading); }
.pc-sub { font-size: 11px; line-height: 1.3; color: var(--muted); }
.pc-badge {
  align-self: flex-start; margin: 0; padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.5;
}
.pc-badge-good { background: var(--accent); color: var(--on-accent); }
.pc-title { margin: 0; font-family: var(--font-head); font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--heading); }
.pc-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }

@media (max-width: 639px) {
  .pc-side { padding: 16px; }
}

@media (min-width: 900px) {
  .pages-compare { width: min(100%, 860px); }
  .pc-side {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    align-items: start;
    gap: 12px 32px;
  }
  .pc-head { grid-column: 1 / -1; }
  .pc-tiles { grid-column: 1; grid-row: 2 / 5; }
  .pc-badge, .pc-title, .pc-text { grid-column: 2; }
  .pc-badge { justify-self: start; }
}

/* Closing line under a section's cards (problem section) */
.section-close {
  align-self: center;
  max-width: 720px;
  font-family: var(--font-head);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--heading);
  text-align: center;
  text-wrap: balance;
}

/* How it works: separate the teacher’s step from the team’s work. */
.step-groups { display: grid; }
.step-group {
  min-width: 0;
  padding-block: 24px;
  text-align: center;
}
.step-group-team { border-block-start: 1px solid var(--accent-line); }
.step-group-title {
  margin-block-end: 24px;
  color: var(--accent-text);
  font-family: var(--font-head);
  font-size: 18px;
}
@media (min-width: 1024px) {
  .step-groups { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .step-group { padding-block: 0; text-align: start; }
  .step-group-teacher { padding-inline-end: 28px; }
  .step-group-team {
    border-block-start: 0;
    border-inline-start: 1px solid var(--accent-line);
    padding-inline-start: 28px;
  }
}
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 28px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  font-family: 'Hanken Grotesk', Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent-text);
}
.step-title {
  font-family: var(--font-head);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--heading);
}
.step-text {
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--text);
  max-width: 320px;
}

/* FAQ: native <details>, boxed items, no JavaScript */
.faq {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding-inline: 24px;
  transition: border-color .15s ease;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { border-color: var(--accent-line); background: var(--surface-2); }
.faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding-block: 20px;
  font-family: var(--font-head);
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.4;
  font-weight: 700;
  color: var(--heading);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Hanken Grotesk', Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent-text);
  transition: transform .2s ease;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-q:hover { color: var(--accent-text); }
.faq-a {
  padding-bottom: 22px;
  padding-inline-end: 52px;
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
  .faq-q::after,
  .faq-item { transition: none; }
}

/* ---------- Guarantee panel ---------- */
.guarantee { padding: 40px var(--gutter); }
.guarantee > .container {
  align-items: center;
  gap: 20px;
  padding: 72px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-block-start-color: var(--accent-line);
  border-radius: 24px;
}
.guarantee .h2 { font-size: clamp(34px, 5vw, 64px); }
.guarantee-text {
  font-size: clamp(18px, 2vw, 21px);
  line-height: var(--lh-body);
  color: var(--text);
  max-width: 680px;
}

/* ---------- Book a call ---------- */
.book { padding: 128px var(--gutter); }
.book > .container {
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 64px);
  border: 1px solid var(--line);
  border-block-start-color: var(--accent-line);
  background: var(--surface);
  border-radius: var(--radius);
}
.book .h2 {
  font-size: clamp(40px, 6vw, 76px);
  max-width: none;
}
.book-text {
  font-size: clamp(18px, 2vw, 21px);
  line-height: var(--lh-body);
  color: var(--text);
  max-width: 680px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 32px var(--gutter);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer .wordmark { font-size: 18px; }
.wm-accent { color: var(--accent-text); }
.wm-light { font-weight: 500; }
.footer-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   Responsive (mobile first)
   ========================================================================== */

/* Phones */
@media (max-width: 599px) {
  :root {
    --gutter: 20px;
    --section-y: 88px;
  }
  .hero { padding-block: 16px 24px; }
  .card { padding: 28px; }
  .section > .container { gap: 44px; }
  .proof-card { padding: 28px; }
  .guarantee { padding-block: 24px; }
  .guarantee > .container { padding: 56px 24px; }
  .book { padding-block: 80px; }
  .book .btn-xl { padding: 16px 26px; font-size: 17px; }

  .faq-item { padding-inline: 18px; }
  .faq-a { padding-inline-end: 0; }
  .faq-q { padding-block: 18px; }

  /* Header: logo on the first row, text links on the second */
  .site-header { padding-block: 16px; }
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 20px;
  }
}

/* Tablets and up */
@media (min-width: 600px) {
  .grid-2,
  .step-group-team .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-group-team .step:last-child { grid-column: 1 / -1; }
  .nav-links { display: contents; }
}

@media (min-width: 600px) and (max-width: 1023px) {
  :root { --section-y: 104px; }
}

/* Desktop */
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .step { align-items: flex-start; text-align: start; }
  #faq > .container {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr);
    align-items: start;
  }
  #faq .section-head { align-items: flex-start; text-align: start; }
  #faq .eyebrow-text::after { display: none; }
  .guarantee > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: clamp(40px, 5vw, 72px);
    column-gap: 56px;
    text-align: start;
  }
  .guarantee .eyebrow-plain { grid-column: 1 / -1; }
  .guarantee-text { padding-inline-start: 32px; border-inline-start: 1px solid var(--accent-line); }

}
