/* SquadSync public website (docs/WEBSITE_PLAN.md). Static pages served by the
   Cloudflare Worker next to the Flutter web app. Colours mirror
   lib/core/theme/app_theme.dart; the site is dark-only like the app. */

:root {
  --bg: #0B1220;
  --bg-2: #0F172A;
  --card: #141F38;
  --card-high: #1B294A;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --primary: #22C55E;
  --primary-ink: #052E16;
  --accent: #38BDF8;
  --text: #F8FAFC;
  --text-2: #CBD5E1;
  --muted: #94A3B8;
  --gold-light: #FDE68A;
  --gold: #F59E0B;
  --on-gold: #422006;
  --radius: 18px;
  --gutter: 16px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: #4ADE80; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
strong { color: var(--text); font-weight: 600; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
.green { color: var(--primary); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; letter-spacing: 0.04em; font-size: 1rem; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }
/* "Open web app": a bright outlined pill so it reads as a real way in, next
   to the solid Download button. */
.nav .nav-web {
  color: #4ADE80; font-weight: 600; border: 1px solid rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.10); box-shadow: 0 0 18px -6px rgba(34, 197, 94, 0.55);
}
.nav .nav-web:hover { color: #86EFAC; background: rgba(34, 197, 94, 0.18); border-color: rgba(74, 222, 128, 0.8); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line-strong);
    color: var(--text); border-radius: 10px; width: 42px; height: 40px; align-items: center; justify-content: center; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin-top: 8px; justify-content: center; }
}

/* ── Buttons & store badge ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
  font-weight: 700; font-size: 0.95rem; border-radius: 12px; padding: 10px 18px; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #4ADE80; color: var(--primary-ink); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--on-gold); }
.btn-gold:hover { color: var(--on-gold); filter: brightness(1.05); }

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
/* Google's badge PNG carries its own clear space; size it by height so the
   artwork itself lands around Google's 40px+ minimum. */
.play-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.play-badge img { height: 62px; width: auto; margin: -9px -10px; }
.web-cta { color: var(--text-2); font-weight: 500; font-size: 0.95rem; }
.web-cta .t-ios { display: none; }
/* iPhone/iPad (site.js adds .ios): no App Store listing yet, so the web app
   becomes the primary action and the Play badge steps aside. */
.ios .play-badge { display: none; }
.ios .web-cta {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700;
  background: var(--primary); color: var(--primary-ink); border-radius: 12px; padding: 12px 20px;
}
.ios .web-cta .t-default { display: none; }
.ios .web-cta .t-ios { display: inline; }
/* App Store badge: built in, switched off until the iOS listing exists. */
[data-appstore="off"] .app-store-badge { display: none !important; }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding: 72px 0; }
@media (max-width: 640px) { section { padding: 52px 0; } }
.section-head { margin-bottom: 36px; }
.section-head p { margin-top: 12px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -320px -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.18), transparent); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 24px; }
.hero .note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
/* The screen crops sit on a slightly lighter background than the page, so
   fade all four edges out instead of showing a rectangle. */
.hero-art img, .split-art img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
                      linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
              linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}
.hero-art img { width: 100%; max-width: 520px; margin-left: auto; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art img { margin: 0 auto; max-width: 420px; }
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; background: rgba(255, 255, 255, 0.03);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

.card {
  background: linear-gradient(160deg, var(--card-high), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--primary);
}
.icon svg { width: 22px; height: 22px; }
.icon.sky { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.3); color: var(--accent); }
.icon.gold { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.32); color: var(--gold-light); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; }
a.card { text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease; }
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); color: inherit; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 24px; font-family: var(--display); font-variation-settings: "wdth" 125;
  font-weight: 800; font-size: 1rem; color: var(--primary-ink); background: var(--primary);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
}

/* Video */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 20px; overflow: hidden;
  background: #000; border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(34, 197, 94, 0.35);
}
.video-frame iframe, .video-frame .video-facade, .video-frame .video-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { display: block; cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade .play {
  position: absolute; top: 50%; left: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%);
  background: #FF0000; border-radius: 14px; display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
.video-facade .play::after { content: ""; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.unmute {
  position: absolute; left: 14px; bottom: 58px; z-index: 2; display: none; align-items: center; gap: 8px;
  background: rgba(11, 18, 32, 0.88); color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 16px; font: 600 0.9rem var(--body); cursor: pointer;
}
.unmute.show { display: inline-flex; }
.video-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 14px; font-size: 0.92rem; }
.video-meta a { color: var(--text-2); }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 72px; }
.split.reverse .split-art { order: -1; }
.split-art img { width: 100%; max-width: min(460px, 100%); margin: 0 auto; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.reverse .split-art { order: 0; } }
.ticks { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(34, 197, 94, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ticks.gold li::before {
  background: rgba(245, 158, 11, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FDE68A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Feature tour (features page) */
.tour { display: grid; gap: 16px; }
.tour .card { display: grid; grid-template-columns: 44px 1fr; gap: 6px 18px; align-items: start; }
.tour .card .icon { margin: 0; grid-row: span 2; }
.tour .card ul { grid-column: 2; margin-top: 6px; padding-left: 18px; font-size: 0.95rem; }
.tour .card li { margin-bottom: 4px; }
.tag-pro {
  display: inline-block; vertical-align: middle; margin-left: 8px; font: 800 0.66rem var(--body); letter-spacing: 0.08em;
  color: var(--on-gold); background: linear-gradient(135deg, var(--gold-light), var(--gold)); padding: 3px 8px; border-radius: 999px;
}

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 28px; }
.plan h3 { font-size: 1.35rem; }
.plan .price { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 2.6rem; color: var(--text); margin: 14px 0 2px; line-height: 1; }
.plan .price small { font: 500 1rem var(--body); color: var(--muted); }
.plan .alt { color: var(--muted); font-size: 0.95rem; }
.plan .ticks { margin: 22px 0 26px; flex: 1; }
.plan.pro { border-color: rgba(245, 158, 11, 0.45); background: linear-gradient(160deg, #2A2414, var(--card) 55%); position: relative; }
.plan.pro h3 { background: linear-gradient(135deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan .who { font-size: 0.95rem; margin-top: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--card); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.compare thead th { color: var(--text); font-weight: 700; background: var(--card-high); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 22%; }
.compare tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  table.compare { min-width: 0; }
  .compare th, .compare td { padding: 12px 10px; font-size: 0.86rem; }
  .compare td:not(:first-child), .compare th:not(:first-child) { width: 25%; }
}
.yes { color: var(--primary); font-weight: 700; }
.yes.gold { color: var(--gold-light); }
.no { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; color: var(--text); font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; }

/* CTA band */
.cta-band {
  border-radius: 24px; padding: 48px 28px; text-align: center; border: 1px solid rgba(34, 197, 94, 0.3);
  background: radial-gradient(120% 140% at 50% 0%, rgba(34, 197, 94, 0.18), transparent 60%), var(--card);
}
.cta-band .get { justify-content: center; margin-top: 24px; }

/* ── Team generator (/team-generator) ─────────────────────────────────── */
.tg { display: grid; gap: 20px; }
.tg > * { width: 100%; max-width: 820px; }
.tg-panel { display: grid; gap: 12px; }
.tg-label { display: block; color: var(--text); font-weight: 700; font-size: 1rem; }
.tg textarea {
  width: 100%; resize: vertical; min-height: 140px; padding: 14px; border-radius: 12px;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line-strong); font: 500 1rem/1.5 var(--body);
}
.tg textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tg #tg-add { justify-self: start; }
.tg-list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 12px 0 10px; }
.tg-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tg-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.tg-player {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 4px 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 6px 14px;
}
.tg-name { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-stars { display: inline-flex; }
.tg-star { background: none; border: 0; cursor: pointer; font-size: 1.35rem; line-height: 1; padding: 6px 3px; color: rgba(255, 255, 255, 0.18); }
.tg-star.on { color: var(--gold); }
.tg-gk, .tg-remove {
  min-width: 38px; height: 34px; border-radius: 9px; cursor: pointer; font: 700 0.8rem var(--body);
  background: transparent; color: var(--muted); border: 1px solid var(--line-strong);
}
.tg-gk.on { background: rgba(56, 189, 248, 0.15); color: var(--accent); border-color: rgba(56, 189, 248, 0.5); }
.tg-remove { font-size: 1.15rem; border-color: transparent; }
.tg-remove:hover { color: var(--text); }
/* Narrow phones: name on its own line, controls underneath. */
@media (max-width: 480px) {
  .tg-player { grid-template-columns: minmax(0, 1fr) auto auto; }
  .tg-name { grid-column: 1 / -1; }
}
.tg-controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 8px; }
.tg-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.tg-seg button { background: transparent; color: var(--text-2); border: 0; padding: 10px 20px; font: 700 1rem var(--body); cursor: pointer; }
.tg-seg button + button { border-left: 1px solid var(--line-strong); }
.tg-seg button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.tg-go { padding: 14px 26px; font-size: 1.05rem; }
.tg-go:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.tg-actions .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.tg-limit { display: grid; gap: 10px; justify-items: start; padding: 16px; border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08); }
.tg-limit p { margin: 0; }
.tg-results { display: grid; gap: 16px; scroll-margin-top: 84px; }
.tg-results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.tg-balance { color: var(--primary); font-weight: 600; }
.tg-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tg-team { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--team); border-radius: 16px; padding: 18px 20px; }
.tg-team-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.tg-team-head h3 { color: var(--team); }
.tg-team-head span { color: var(--muted); font-size: 0.85rem; }
.tg-team ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.tg-team li { color: var(--text); font-weight: 500; }
.tg-badge { font: 800 0.68rem var(--body); letter-spacing: 0.06em; color: var(--team); border: 1px solid var(--team); border-radius: 6px; padding: 1px 5px; margin-left: 4px; vertical-align: middle; }
.tg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tg-cta { margin-top: 12px; }
.tg-panel > *, .tg-teams > * { min-width: 0; }
/* The tool stays left-aligned on phones (the site's .card centring would
   scatter the form), but its buttons go full width. */
@media (max-width: 640px) {
  .tg .tg-panel, .tg .tg-team { text-align: left; }
  .tg #tg-add, .tg-go { justify-self: stretch; width: 100%; justify-content: center; }
  .tg-results-head, .tg-actions { justify-content: center; text-align: center; }
  .tg-actions .btn { flex: 1 1 140px; justify-content: center; }
}

/* ── Legal / document pages ───────────────────────────────────────────── */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }
.doc h2 {
  font-family: var(--body); font-variation-settings: normal; font-stretch: normal;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin: 36px 0 10px; scroll-margin-top: 84px;
}
.doc h3 { font-family: var(--body); font-variation-settings: normal; font-size: 1.02rem; margin: 22px 0 6px; }
.doc p, .doc li { font-size: 1rem; }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc em { color: var(--text); font-style: normal; font-weight: 500; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 8px; }
.toc p { font-weight: 700; color: var(--text); margin-bottom: 8px; font-size: 0.92rem; }
.toc ol { margin: 0; columns: 2; column-gap: 28px; font-size: 0.92rem; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.callout { border-left: 3px solid var(--primary); background: rgba(34, 197, 94, 0.07); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 0 0 18px; }
.callout p:last-child { margin-bottom: 0; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 32px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--text); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .about p { font-size: 0.92rem; margin: 12px 0 16px; max-width: 34ch; }
.legal-line { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }

/* Grid children default to min-width:auto, so a wide image or long word can
   push a one-column grid wider than the phone screen. */
.hero-grid > *, .split > *, .grid-3 > *, .grid-2 > *, .plans > *, .footer-grid > * { min-width: 0; }
.plan .btn { align-self: flex-start; }

/* ── Phones: centred layout ───────────────────────────────────────────────
   Headings, intros, cards, actions and the footer centre on narrow screens.
   Bullet and tick lists stay left-aligned (as a centred block) and policy
   body text stays left-aligned, because ragged centred paragraphs are hard
   to read. */
@media (max-width: 640px) {
  .hero, .section-head, .split > div:first-child { text-align: center; }
  .hero .lead, .section-head .lead, .split .lead { margin-left: auto; margin-right: auto; }
  .pill-row, .get { justify-content: center; }
  .hero-art img { margin: 0 auto; }
  .hero h1 { margin-bottom: 14px; }

  .video-meta { flex-direction: column; align-items: center; text-align: center; }

  .card { text-align: center; }
  .card .icon { margin-left: auto; margin-right: auto; }
  .step { padding-top: 60px; }
  .step::before { left: 50%; transform: translateX(-50%); }

  .split .ticks { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; text-align: left; }

  .plan { align-items: center; }
  .plan .ticks { align-self: stretch; text-align: left; }
  .plan .btn { align-self: center; }

  .tour .card { grid-template-columns: 1fr; }
  .tour .card .icon { grid-row: auto; margin: 0 auto 8px; }
  .tour .card ul { grid-column: 1; text-align: left; margin-top: 14px; }

  section .wrap > p { text-align: center; }

  .doc h1, .doc .updated { text-align: center; }

  .footer-grid { text-align: center; }
  .site-footer .brand { justify-content: center; }
  .site-footer .about p { margin-left: auto; margin-right: auto; }
  .legal-line { flex-direction: column; align-items: center; text-align: center; }
}
