/* Roboto, self-hosted (Apache 2.0 — see fonts/LICENSE.txt).
   Google now ships Roboto as a variable font: one file covers the whole weight
   axis, so there is no separate 500 file. Downloading "400" and "500" from the
   Fonts API returns byte-identical woff2s.

   The latin subset omits U+2192, so the arrow in "Read the full comparison"
   renders from the fallback stack. That is fine and costs nothing; pulling
   latin-ext for one glyph would not be. */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/roboto-latin.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;
}

/* Material 3 structure on a neutral palette.
   MD3 colour roles, shape scale and elevation tokens written as plain CSS — no
   component library, no bundle, no build step. Material's own neutrals are
   tinted toward its primary (its surface white is #fef7ff); these are true
   neutrals with an indigo accent, so the colour appears only where MD3 actually
   calls for primary: filled buttons, step markers, links and the hero grid. */

:root {
  --md-primary: #4f46e5;
  --md-on-primary: #ffffff;
  --md-primary-container: #e7e5fb;
  --md-on-primary-container: #1c1660;
  --md-secondary-container: #eeeef4;
  --md-on-secondary-container: #26272f;

  --md-surface: #ffffff;
  --md-surface-1: #fbfbfc;
  --md-surface-2: #f6f6f8;
  --md-surface-3: #f1f1f4;
  --md-on-surface: #08090b;
  --md-on-surface-variant: #6b7180;
  --md-outline: #9aa0ad;
  --md-outline-variant: #e6e7eb;
  --md-grid: rgba(79, 70, 229, .13);

  --md-elev-1: 0 1px 2px rgba(0,0,0,.30), 0 1px 3px 1px rgba(0,0,0,.15);
  --md-elev-2: 0 1px 2px rgba(0,0,0,.30), 0 2px 6px 2px rgba(0,0,0,.15);

  --shape-sm: 8px;
  --shape-md: 12px;
  --shape-lg: 16px;
  --shape-xl: 28px;
  --shape-full: 999px;

  --font: Roboto, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Roboto Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;

  --measure: 38rem;
  --page: 64rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --md-primary: #a5b4fc;
    --md-on-primary: #0b0c10;
    --md-primary-container: #312c78;
    --md-on-primary-container: #e2e0ff;
    --md-secondary-container: #22252d;
    --md-on-secondary-container: #dfe2ea;

    --md-surface: #08090b;
    --md-surface-1: #0e1014;
    --md-surface-2: #131519;
    --md-surface-3: #191c22;
    --md-on-surface: #f4f5f7;
    --md-on-surface-variant: #8b91a0;
    --md-outline: #6a7080;
    --md-outline-variant: #22252c;
    --md-grid: rgba(165, 180, 252, .10);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--md-surface);
  color: var(--md-on-surface);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--md-primary); text-underline-offset: 3px; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; font-weight: 400; }
p { margin: 0 0 1em; }

code { font-family: var(--mono); font-size: .9em; }
pre {
  background: var(--md-surface-2);
  border-radius: var(--shape-md);
  padding: 1rem 1.15rem; margin: 1rem 0 0; overflow-x: auto;
}
pre code { font-size: .92rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

section { max-width: var(--page); margin: 0 auto; padding: 4rem 1.5rem; }

/* MD3 headline/title scale */
section > h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.25rem); /* headline-medium */
  letter-spacing: 0;
  margin-bottom: 1.5rem;
}

/* top app bar */
.site-head {
  background: var(--md-surface-2);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1.5rem;
  position: sticky; top: 0; z-index: 10;
}
.wordmark {
  font-size: 1.35rem; font-weight: 500; letter-spacing: 0;
  color: var(--md-on-surface); text-decoration: none;
}
.wordmark span { color: var(--md-primary); }
.site-head nav { display: flex; gap: .4rem; }
.site-head nav a {
  color: var(--md-on-surface-variant); text-decoration: none;
  font-size: .875rem; font-weight: 500; letter-spacing: .07em;
  padding: .5rem 1rem; border-radius: var(--shape-full);
  transition: background .15s ease;
}
.site-head nav a:hover { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }

/* hero on plain surface, with a primary-tinted grid fading out behind it */
.hero {
  position: relative;
  padding-top: 5.5rem;
  padding-bottom: 4.5rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -5rem 0 auto 0;
  height: 26rem;
  background:
    repeating-linear-gradient(to right, var(--md-grid) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, var(--md-grid) 0 1px, transparent 1px 72px);
  -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 20% 0%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.hero h1 {
  font-size: clamp(2.35rem, 6.2vw, 3.7rem); /* display-small/medium */
  font-weight: 400; letter-spacing: -0.018em;
  max-width: 17ch; margin-bottom: .45em;
}
.lede {
  font-size: 1.12rem; line-height: 1.6;
  color: var(--md-on-surface-variant);
  max-width: var(--measure);
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 2.1rem 0 1.1rem; }

/* filled + outlined buttons, MD3 shape */
.btn {
  display: inline-block;
  padding: .65rem 1.5rem;
  border-radius: var(--shape-full);
  border: 1px solid var(--md-outline);
  background: transparent;
  color: var(--md-primary);
  text-decoration: none;
  font-size: .875rem; font-weight: 500; letter-spacing: .01em;
  transition: box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: rgba(79, 70, 229, .07); }
.btn-primary {
  background: var(--md-primary); border-color: var(--md-primary);
  color: var(--md-on-primary); box-shadow: var(--md-elev-1);
}
.btn-primary:hover { box-shadow: var(--md-elev-2); background: var(--md-primary); }

.hero-note { font-size: .8125rem; color: var(--md-on-surface-variant);
  margin: 0; letter-spacing: .02em; }

/* demo — currently unused: the section is out of index.html until the video
   exists. Kept rather than deleted, unlike the CSP allowances that came out
   with it. An over-broad CSP is a standing permission; unused CSS is a rule
   that never matches, so the asymmetry is deliberate. */
.video {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--md-surface-2);
  border-radius: var(--shape-lg);
  overflow: hidden;
  box-shadow: var(--md-elev-1);
}
.video-poster { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 80px; height: 80px; border-radius: var(--shape-lg);
  border: 0; background: var(--md-primary-container);
  color: var(--md-on-primary-container);
  cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--md-elev-2);
  transition: border-radius .18s ease, transform .12s ease;
}
.video-play:hover { border-radius: var(--shape-full); }
.video-play:disabled { opacity: .45; cursor: default; box-shadow: none; }
.video-play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 3px; }
.caption { color: var(--md-on-surface-variant); font-size: .875rem; margin: 1rem 0 0; max-width: var(--measure); }

/* coverage — assist chips */
.pill-grid { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-grid li {
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--shape-sm);
  padding: .4rem 1rem; font-size: .875rem; font-weight: 500;
  color: var(--md-on-surface-variant);
  background: var(--md-surface);
}
.covers-note { color: var(--md-on-surface-variant); max-width: var(--measure); margin: 0; }

/* filled cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.card {
  background: var(--md-surface-2);
  border-radius: var(--shape-md);
  padding: 1.5rem;
}
.card h3 { font-size: 1.125rem; font-weight: 500; margin-bottom: .55em; }
.card p { color: var(--md-on-surface-variant); font-size: .9rem; margin: 0; }

/* compare */
.compare p { max-width: var(--measure); color: var(--md-on-surface-variant); }
.compare strong { color: var(--md-on-surface); font-weight: 500; }

/* install */
.install-lede { color: var(--md-on-surface-variant); max-width: var(--measure); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 1.4rem 1.5rem 1.4rem 4.2rem;
  background: var(--md-surface-1);
  border-radius: var(--shape-md);
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 1.4rem; top: 1.4rem;
  width: 2rem; height: 2rem; border-radius: var(--shape-full);
  background: var(--md-primary); color: var(--md-on-primary);
  display: grid; place-items: center;
  font-size: .875rem; font-weight: 500;
}
.steps h3 { font-size: 1rem; font-weight: 500; margin-bottom: .3em; }
.steps p { color: var(--md-on-surface-variant); font-size: .9rem; margin: 0; }
.install-more { margin: 2rem 0 0; color: var(--md-on-surface-variant); max-width: var(--measure); }

/* footer */
.site-foot {
  background: var(--md-surface-2);
  padding: 2.5rem 1.5rem 4rem;
  border-radius: var(--shape-xl) var(--shape-xl) 0 0;
  margin-top: 3rem;
}
.site-foot > * { max-width: var(--page); margin-left: auto; margin-right: auto; }
.site-foot p { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0 auto 1.2rem; }
.site-foot a {
  color: var(--md-on-surface-variant); text-decoration: none;
  font-size: .875rem; font-weight: 500;
}
.site-foot a:hover { color: var(--md-primary); }
.disclaimer {
  display: block; color: var(--md-on-surface-variant); font-size: .8125rem;
  max-width: var(--measure); line-height: 1.55; margin: 0 auto; opacity: .85;
}

@media (max-width: 46rem) {
  section { padding: 3rem 1.25rem; }
  .hero { padding-top: 3.2rem; padding-bottom: 2.6rem; }
}
