/* Marketing page only. Shares tokens and component classes with app.css. */

:root {
  --s1: 8px; --s2: 14px; --s3: 22px; --s4: 34px; --s5: 56px; --s6: 76px;
  --radius: 14px;
  --measure: 660px;              /* readable line length for body copy */
}

body.marketing { background: var(--plane); -webkit-font-smoothing: antialiased; }
/* padding-inline only: several sections carry .wrap themselves, and a shorthand here would
   override their block padding and collapse the section rhythm to nothing. */
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: var(--s3); }
section { padding-block: var(--s6); scroll-margin-top: 76px; }
section.band { background: var(--surface); border-block: 1px solid var(--border); }
section > .wrap > h2, section.wrap > h2 { margin-bottom: var(--s1); }
/* margin-block only - setting the inline margins here would outrank .cta's auto-centring
   and pin centred copy to the left of its own max-width box. */
section > .wrap > .sub, section.wrap > .sub { max-width: var(--measure);
  margin-block: 0 var(--s4); font-size: 15px; }
/* trailing small print should not stack its own margin on top of the section padding */
section > .wrap > :last-child, section.wrap > :last-child { margin-bottom: 0; }

/* marketing tables get more room than the dense app ones */
.marketing .scroll table th { padding: 14px 18px; }
.marketing .scroll table td { padding: 16px 18px; }

/* --- header ------------------------------------------------------------------ */
.top { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px); position: sticky; top: 0; z-index: 5; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topbar .logo { font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); font-weight: 600; padding: 0; }
.topbar nav { display: flex; align-items: center; gap: var(--s3); }
.topbar nav a { color: var(--ink-2); font-size: 14px; }
.topbar nav a:hover { color: var(--ink); text-decoration: none; }
.topbar nav a.btn { color: var(--ink); }
.langs { display: inline-flex; gap: 2px; border: 1px solid var(--border); border-radius: 999px;
  padding: 2px; }
.langs a { font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 3px 9px;
  border-radius: 999px; color: var(--muted); }
.langs a.on { background: var(--plane); color: var(--ink); }
.langs a:hover { color: var(--ink); text-decoration: none; }

/* --- hero -------------------------------------------------------------------- */
.hero { padding: 104px 0 var(--s6); position: relative; overflow: hidden; }
.hero::before {                       /* soft wash, keeps the page from reading flat */
  content: ""; position: absolute; inset: -40% 30% auto -10%; height: 620px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  pointer-events: none; z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 var(--s2); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; margin: 0 0 var(--s3);
  letter-spacing: -0.025em; max-width: 24ch; }   /* the <br> sets the break, not the wrap */
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: var(--measure);
  margin: 0 0 var(--s4); }
.hero .row { gap: var(--s2); margin-bottom: var(--s2); }
.small { font-size: 13px; }

/* --- data-source attribution strip ------------------------------------------- */
.sources { margin-top: var(--s5); padding-top: var(--s3);
  border-top: 1px solid var(--border); max-width: 900px; }
.sources-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 var(--s2); }
.sources ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3);
  margin: 0; padding: 0; }
.sources li { display: flex; align-items: center; gap: 9px; color: var(--muted);
  padding: 6px 0; }
.sources li.is-live { color: var(--ink-2); }
.sources svg { width: 21px; height: 21px; flex: none; opacity: .7; }
.sources li.is-live svg { opacity: 1; color: var(--good); }
.sources li span { display: flex; flex-direction: column; line-height: 1.25; }
.sources strong { font-size: 13px; font-weight: 650; letter-spacing: .04em; color: inherit; }
.sources em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.sources .tag { display: inline-block; align-self: center; font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--good);
  border: 1px solid color-mix(in srgb, var(--good) 45%, transparent);
  border-radius: 999px; padding: 1px 7px; }
.sources-note { font-size: 11.5px; color: var(--muted); margin: var(--s2) 0 0; max-width: 60ch; }

h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 var(--s1); letter-spacing: -0.02em; }
h3 { font-size: 16px; margin: 0 0 var(--s1); letter-spacing: -0.01em; }

/* --- cards & grids ----------------------------------------------------------- */
.card { border-radius: var(--radius); padding: var(--s3); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2);
  margin: var(--s3) 0 var(--s5); }
.grid3:last-child { margin-bottom: 0; }
.grid3 .card p { color: var(--ink-2); font-size: 14px; margin: 0; line-height: 1.6; }
.segments { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
.seg h3 { margin: 0; }
.seg .pain { color: var(--muted); font-size: 14px; font-style: italic; line-height: 1.6; }
.seg p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.price { font-weight: 600; white-space: nowrap; }
.price.big { font-size: 30px; font-weight: 600; margin: var(--s1) 0 2px; letter-spacing: -0.02em; }
.price.big .muted { font-size: 14px; font-weight: 400; letter-spacing: 0; }

/* --- the cost of getting it wrong -------------------------------------------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2);
  margin: var(--s3) 0 var(--s4); }
.figure { background: var(--plane); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--s3); }
.band .figure { background: var(--plane); }
.figure .n { font-size: 34px; font-weight: 650; line-height: 1.05; letter-spacing: -0.03em;
  color: var(--critical); }
.figure .n.calm { color: var(--ink); }
.figure .k { display: flex; align-items: baseline; gap: 6px; font-size: 13px;
  font-weight: 600; color: var(--ink); margin-top: var(--s1); }
.figure .src { display: block; font-size: 12px; color: var(--muted); margin-top: 4px;
  line-height: 1.5; }
.enforcement { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.enforcement .card { border-left: 3px solid var(--serious); }
.enforcement h3 { font-size: 15px; }
.enforcement p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* --- lookup ------------------------------------------------------------------ */
.lookup { display: flex; gap: var(--s1); max-width: 620px; margin: 0 0 var(--s1); }
.lookup input { font-size: 16px; padding: 12px 14px; border-radius: 10px; }
.lookup input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.lookup .btn { white-space: nowrap; padding: 12px 20px; }

.result { margin-top: var(--s3); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--s3); max-width: 780px; }
.band .result { background: var(--plane); }
.result.found { border-left: 3px solid var(--good); }
.result.not_found { border-left: 3px solid var(--critical); }
.result.out_of_region { border-left: 3px solid var(--warning); }
.result.unavailable { border-left: 3px solid var(--warning); }
.result table { margin-top: var(--s2); }
.result th { width: 130px; text-transform: none; letter-spacing: 0; font-size: 13px;
  padding: 7px 12px 7px 0; border: 0; color: var(--muted); }
.result td { padding: 7px 0; border: 0; font-size: 14px; }
.flag { margin-top: var(--s2); padding: var(--s2); border-radius: 10px;
  border: 1px solid var(--border); }

/* --- closing ----------------------------------------------------------------- */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .sub { margin-inline: auto; }
footer { padding: var(--s4) 0 var(--s6); }
footer p { max-width: 780px; line-height: 1.6; }

@media (max-width: 900px) {
  :root { --s6: 60px; --s5: 40px; }
  .hero { padding: 64px 0 var(--s6); }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .grid3, .segments, .enforcement { grid-template-columns: 1fr; }
  .topbar nav { gap: var(--s2); }
  .topbar nav a:not(.btn) { display: none; }
  .lookup { flex-direction: column; }
}

.coverage-count { font-size: 14px; color: var(--ink-2); max-width: var(--measure);
  margin: calc(var(--s4) * -1 + var(--s2)) 0 var(--s3); padding-left: var(--s2);
  border-left: 2px solid var(--accent); }
