/* FendPulse web design: brand tokens from app repo docs/DESIGN_SYSTEM.md §1 (same palette as the alert center),
   with Liquid Glass v2 and the widget layout approved 2026-10-26 (DESIGN_SYSTEM.md §1b).
   Two layers, as in Apple's HIG "Materials":
   - .glass: only the floating controls (sticky header, menu sheet, tabs, dialog, chips, the device frame). Three
     layers: backdrop blur + saturation, an adaptive tint from the palette, and a specular rim (1px top highlight
     plus a gradient edge), over a soft layered shadow. Chromium also gets an SVG lens edge (see layout.mjs).
   - .card: the content. Solid widget cards on the page background, never blurred.
   Source: https://developer.apple.com/design/human-interface-guidelines/materials (checked 2026-10-26)
   Source: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/backdrop-filter (checked 2026-10-26) */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-5.3.0-latin-wght.3100e775e8.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;
}
/* Metric-matched fallback so the swap to Inter doesn't move the layout. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #14171f;
  --muted: #5b6170;
  --brand: #1f3a5f;
  --brand-2: #2b4f7e;
  --on-brand: #ffffff;
  --accent: #b08d57;
  --accent-ink: #6b4f22;
  --line: #e4e2da;
  --ok: #067647;
  --ok-tint: #ecfdf3;
  --warn: #b54708;
  --warn-tint: #fffaeb;
  --critical: #b42318;
  --critical-tint: #fef3f2;
  --medium: #175cd3;
  --medium-tint: #eff8ff;
  --info: #475467;
  --neutral-tint: #f2f4f7;

  /* 8px spacing scale. */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s12: 96px;
  --s16: 128px;

  /* Glass: the tint keeps dark text at WCAG AA over any backdrop (51% is the floor in light mode). */
  --glass-alpha: 70%;
  --sheet-alpha: 88%;
  --blur: blur(24px) saturate(180%);
  --rim: rgb(255 255 255 / 0.85);
  --rim-edge: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.95),
    rgb(255 255 255 / 0.3) 45%,
    rgb(31 58 95 / 0.18)
  );
  --edge: color-mix(in srgb, var(--brand) 12%, transparent);
  --card: var(--surface);
  --shadow-1:
    0 1px 1px rgb(20 23 31 / 0.03), 0 2px 6px rgb(20 23 31 / 0.04),
    0 12px 28px -12px rgb(31 58 95 / 0.14);
  --shadow-2:
    0 1px 2px rgb(20 23 31 / 0.05), 0 8px 18px rgb(20 23 31 / 0.06),
    0 30px 60px -20px rgb(31 58 95 / 0.28);
  --mesh:
    radial-gradient(
      60rem 40rem at 8% -10%,
      rgb(31 58 95 / 0.12),
      transparent 60%
    ),
    radial-gradient(
      48rem 36rem at 100% 0%,
      rgb(176 141 87 / 0.14),
      transparent 60%
    ),
    radial-gradient(
      50rem 40rem at 70% 100%,
      rgb(31 58 95 / 0.07),
      transparent 60%
    );
  --focus: #1f3a5f;

  --r-sm: 12px;
  --r-md: 16px;
  --r-card-s: 24px;
  --r-card: 28px;
  --header-h: 88px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116;
    --surface: #161b22;
    --text: #e8eaed;
    --muted: #9aa3b2;
    --brand: #7fa7d9;
    --brand-2: #9cbde6;
    --on-brand: #0e1116;
    --accent: #c9a86a;
    --accent-ink: #e2c995;
    --line: #2a313c;
    --ok: #75e0a7;
    --ok-tint: #0b2b1d;
    --warn: #fdb022;
    --warn-tint: #2e1f05;
    --critical: #fda29b;
    --critical-tint: #3a1210;
    --medium: #84caff;
    --medium-tint: #0b2540;
    --info: #c0c6d0;
    --neutral-tint: #1f2630;
    /* Light text over a white backdrop needs at least 62.2% dark tint for AA; 66% leaves headroom. */
    --glass-alpha: 66%;
    --rim: rgb(255 255 255 / 0.14);
    --rim-edge: linear-gradient(
      180deg,
      rgb(255 255 255 / 0.28),
      rgb(255 255 255 / 0.06) 45%,
      rgb(255 255 255 / 0.1)
    );
    --edge: rgb(255 255 255 / 0.09);
    --shadow-1: 0 1px 1px rgb(0 0 0 / 0.2), 0 12px 28px -12px rgb(0 0 0 / 0.5);
    --shadow-2: 0 1px 2px rgb(0 0 0 / 0.3), 0 30px 60px -20px rgb(0 0 0 / 0.7);
    --mesh:
      radial-gradient(
        60rem 40rem at 8% -10%,
        rgb(52 92 145 / 0.32),
        transparent 60%
      ),
      radial-gradient(
        48rem 36rem at 100% 0%,
        rgb(176 141 87 / 0.12),
        transparent 60%
      ),
      radial-gradient(
        50rem 40rem at 70% 100%,
        rgb(52 92 145 / 0.16),
        transparent 60%
      );
    --focus: #c9a86a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1116;
  --surface: #161b22;
  --text: #e8eaed;
  --muted: #9aa3b2;
  --brand: #7fa7d9;
  --brand-2: #9cbde6;
  --on-brand: #0e1116;
  --accent: #c9a86a;
  --accent-ink: #e2c995;
  --line: #2a313c;
  --ok: #75e0a7;
  --ok-tint: #0b2b1d;
  --warn: #fdb022;
  --warn-tint: #2e1f05;
  --critical: #fda29b;
  --critical-tint: #3a1210;
  --medium: #84caff;
  --medium-tint: #0b2540;
  --info: #c0c6d0;
  --neutral-tint: #1f2630;
  --glass-alpha: 66%;
  --rim: rgb(255 255 255 / 0.14);
  --rim-edge: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.28),
    rgb(255 255 255 / 0.06) 45%,
    rgb(255 255 255 / 0.1)
  );
  --edge: rgb(255 255 255 / 0.09);
  --shadow-1: 0 1px 1px rgb(0 0 0 / 0.2), 0 12px 28px -12px rgb(0 0 0 / 0.5);
  --shadow-2: 0 1px 2px rgb(0 0 0 / 0.3), 0 30px 60px -20px rgb(0 0 0 / 0.7);
  --mesh:
    radial-gradient(
      60rem 40rem at 8% -10%,
      rgb(52 92 145 / 0.32),
      transparent 60%
    ),
    radial-gradient(
      48rem 36rem at 100% 0%,
      rgb(176 141 87 / 0.12),
      transparent 60%
    ),
    radial-gradient(
      50rem 40rem at 70% 100%,
      rgb(52 92 145 / 0.16),
      transparent 60%
    );
  --focus: #c9a86a;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s2));
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter Variable",
    "Inter Fallback",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
@media (min-width: 720px) {
  body {
    font-size: 18px;
  }
}
/* The mesh sits on its own fixed layer so scrolling never repaints it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--mesh), var(--bg);
  pointer-events: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
.icon {
  flex: none;
  width: 20px;
  height: 20px;
}
.lens-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  &:hover {
    text-decoration-thickness: 2px;
  }
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}
ul,
ol {
  padding-left: 1.25em;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem);
  font-weight: 750;
  margin: 0 0 var(--s2);
}
/* Headlines: 36–40px on phones, up to 72px on desktop. */
h1.display {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  font-weight: 720;
  letter-spacing: -0.03em;
  margin: var(--s6) 0 var(--s2);
}
h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  margin: var(--s2) 0 var(--s1);
  letter-spacing: -0.015em;
}
p {
  margin: 0 0 var(--s2);
}
.lead {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}
.note {
  font-size: 15px;
  color: var(--muted);
}
.center {
  text-align: center;
  margin-inline: auto;
}
p.center {
  max-width: 65ch;
}
.eyebrow {
  margin: 0 0 var(--s1);
  font-size: 15px;
  font-weight: 650;
  color: var(--accent-ink);
}
.accent-text {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (forced-colors: active) {
  .accent-text {
    color: CanvasText;
    background: none;
  }
}

/* 12-column grid inside a ~1200px column. */
.wrap {
  width: min(100% - 2 * var(--s2), 1200px);
  margin-inline: auto;
}
@media (min-width: 720px) {
  .wrap {
    width: min(100% - 2 * var(--s4), 1200px);
  }
}
.wrap.narrow {
  max-width: 760px;
}
main {
  padding-block: var(--s5) var(--s3);
}

/* ---------- Surfaces ---------- */
.glass {
  --glass-tint: color-mix(in srgb, var(--bg) var(--glass-alpha), transparent);
  position: relative;
  background: var(--glass-tint);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 0;
  box-shadow:
    inset 0 1px 0 var(--rim),
    var(--shadow-1);
  /* Specular rim: a 1px gradient edge drawn on its own layer so the tint never shows the gradient through. */
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: var(--rim-edge);
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
      linear-gradient(#000 0 0) content-box exclude,
      linear-gradient(#000 0 0);
    pointer-events: none;
  }
}
/* Chromium only (color-theme.js): the lens edge bends the blurred backdrop at the rim. The url() must come last;
   placed first, Chromium drops the blur after it. */
:root[data-lens] .glass[data-lens] {
  -webkit-backdrop-filter: var(--blur) url(#fp-lens);
  backdrop-filter: var(--blur) url(#fp-lens);
}
.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
/* Continuous ("squircle") corners where the browser supports them. */
@supports (corner-shape: squircle) {
  .glass,
  .card,
  .button,
  .icon-tile {
    corner-shape: squircle;
  }
}

/* ---------- Header ---------- */
.skip {
  position: absolute;
  left: var(--s2);
  top: -64px;
  z-index: 200;
  padding: 10px var(--s2);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  &:focus {
    top: var(--s2);
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: var(--s1) var(--s1) 0;
  /* No view-transition-name (or filter, opacity, mask) here: Chromium then treats the header as a backdrop root and
     the bar's blur sees nothing behind it. */
}
@media (min-width: 720px) {
  .site-header {
    padding: 12px var(--s2) 0;
  }
}
.bar {
  display: flex;
  align-items: center;
  gap: var(--s1);
  width: min(100%, 1200px);
  min-height: 64px;
  margin-inline: auto;
  padding: var(--s1) var(--s1) var(--s1) var(--s2);
  border-radius: var(--r-card-s);
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.015em;
  min-height: 44px;
  img {
    border-radius: 9px;
  }
}
.mark {
  font-size: 19px;
  white-space: nowrap;
}
.nav-main {
  display: none;
  gap: 4px;
  margin-inline: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s2);
  border-radius: 999px;
  color: var(--text);
  font-size: 16px;
  font-weight: 560;
  text-decoration: none;
  transition: background-color 0.2s ease;
  &:hover {
    background: color-mix(in srgb, var(--brand) 9%, transparent);
  }
  &[aria-current="page"] {
    background: color-mix(in srgb, var(--brand) 13%, transparent);
    color: var(--brand);
  }
}
.bar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-main + .bar-actions {
  margin-left: 0;
}
.bar-cta {
  display: none;
}
.bar .button {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  transition: background-color 0.2s ease;
  &:hover {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
  }
}
/* Theme control: one button cycles auto → light → dark; the icon shows the current choice. */
#theme .icon {
  display: none;
}
:root:not([data-theme-choice]) #theme {
  display: none;
}
[data-theme-choice="system"] #theme .theme-system,
[data-theme-choice="light"] #theme .theme-light,
[data-theme-choice="dark"] #theme .theme-dark {
  display: block;
}
/* Tooltip from the button's own aria-label, on hover and keyboard focus. */
.tip {
  position: relative;
  &::after {
    content: attr(aria-label);
    position: absolute;
    top: calc(100% + var(--s1));
    right: 0;
    z-index: 60;
    width: max-content;
    max-width: 220px;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--text);
    color: var(--bg);
    font-size: 13px;
    font-weight: 550;
    line-height: 1.35;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.15s ease,
      visibility 0.15s;
  }
  &:hover::after,
  &:focus-visible::after {
    opacity: 1;
    visibility: visible;
  }
}
@media (min-width: 880px) {
  .nav-main,
  .bar-cta {
    display: flex;
  }
  .menu-button {
    display: none;
  }
}

/* Mobile menu: a modal glass sheet over a dimmed page (Esc, backdrop click and focus return in site.js). */
.sheet {
  --glass-alpha: var(--sheet-alpha);
  position: fixed;
  inset: var(--s1) var(--s1) auto var(--s1);
  width: auto;
  max-width: 420px;
  max-height: calc(100dvh - 2 * var(--s1));
  margin: 0 0 0 auto;
  padding: var(--s2);
  border-radius: var(--r-card);
  color: var(--text);
  overflow: auto;
  box-shadow:
    inset 0 1px 0 var(--rim),
    var(--shadow-2);
  nav {
    display: grid;
    gap: 2px;
    margin: var(--s1) 0 var(--s2);
  }
  .button {
    width: 100%;
  }
  &::backdrop {
    background: rgb(14 17 22 / 0.45);
  }
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-left: var(--s2);
}
.sheet-title {
  font-weight: 650;
  color: var(--muted);
}
.sheet-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--s2);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  &:hover,
  &[aria-current="page"] {
    background: color-mix(in srgb, var(--brand) 11%, transparent);
  }
}

.preview-note {
  width: fit-content;
  margin: 12px auto 0;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 14px;
  background: var(--neutral-tint);
  color: var(--muted);
}

/* ---------- Buttons, badges and chips ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px var(--s2);
  margin: var(--s4) 0 var(--s1);
  &.center {
    justify-content: center;
  }
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 48px;
  padding: 0 var(--s3);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    scale 0.12s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  &.primary {
    color: var(--on-brand);
    background:
      linear-gradient(
        180deg,
        rgb(255 255 255 / 0.16),
        rgb(255 255 255 / 0) 55%
      ),
      var(--brand);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.28),
      0 1px 2px rgb(20 23 31 / 0.12),
      0 10px 24px -10px color-mix(in srgb, var(--brand) 60%, transparent);
    &:hover {
      background:
        linear-gradient(
          180deg,
          rgb(255 255 255 / 0.22),
          rgb(255 255 255 / 0) 55%
        ),
        var(--brand);
    }
  }
  &.secondary {
    color: var(--brand);
    background: var(--surface);
    border-color: color-mix(in srgb, var(--brand) 22%, transparent);
    box-shadow: var(--shadow-1);
    &:hover {
      background: color-mix(in srgb, var(--brand) 6%, var(--surface));
    }
  }
}
:root[data-theme="dark"] .button.secondary {
  color: var(--text);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .button.secondary {
    color: var(--text);
  }
}
/* "Coming soon to Stripe": a muted label, not a control, and always on one line. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 40px;
  padding: 0 var(--s2);
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--neutral-tint);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
  .icon {
    width: 18px;
    height: 18px;
  }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  margin: 0;
  padding: var(--s1) var(--s2) var(--s1) 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  .icon {
    width: 18px;
    height: 18px;
    color: var(--accent-ink);
  }
  &:not(.glass) {
    background: var(--neutral-tint);
  }
  &.small {
    padding: 2px 10px;
    font-size: 13px;
  }
}
.icon-tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  .icon {
    width: 22px;
    height: 22px;
  }
  &.small {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    .icon {
      width: 18px;
      height: 18px;
    }
  }
  &[data-sev="critical"] {
    color: var(--critical);
    background: var(--critical-tint);
  }
  &[data-sev="high"] {
    color: var(--warn);
    background: var(--warn-tint);
  }
}

/* ---------- Home: hero ---------- */
.hero {
  display: grid;
  gap: var(--s6);
  padding-block: var(--s3) var(--s4);
}
.hero-copy {
  min-width: 0;
  > .chip {
    margin-bottom: var(--s3);
  }
  .lead {
    margin-bottom: 0;
    margin-top: var(--s3);
  }
}
.hero h1 {
  margin: 0;
}
.icon-rows {
  display: grid;
  gap: 12px;
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 16px;
  font-weight: 550;
  li {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .icon {
    color: var(--accent-ink);
  }
}
.hero-shot {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: var(--s2);
  width: min(380px, 100%);
  margin: 0;
  figcaption {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
  }
}
.device {
  width: 100%;
  padding: 10px;
  border-radius: 40px;
  box-shadow:
    inset 0 1px 0 var(--rim),
    var(--shadow-2);
  img {
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 1000;
    object-fit: cover;
    object-position: top;
    border-radius: 30px;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
    mask-image: linear-gradient(180deg, #000 80%, transparent);
  }
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s1);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--s3);
    align-items: center;
    padding-block: var(--s8) var(--s4);
  }
  .hero-copy {
    grid-column: 1 / span 7;
  }
  .hero-shot {
    grid-column: 8 / span 5;
  }
}

/* ---------- Sections and the bento grid ---------- */
.band {
  padding-top: var(--s8);
}
@media (min-width: 720px) {
  .band {
    padding-top: clamp(var(--s12), 8vw, var(--s16));
  }
}
.section-head {
  max-width: 720px;
  margin-bottom: var(--s5);
  h2 {
    margin: 0;
  }
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
  > * {
    grid-column: span 12;
  }
}
@media (min-width: 720px) {
  .bento {
    gap: var(--s3);
    > .size-s,
    > .size-h,
    > .size-t,
    > .size-q {
      grid-column: span 6;
    }
  }
  .steps > :last-child {
    grid-column: span 12;
  }
}
@media (min-width: 1024px) {
  .bento {
    > .size-l {
      grid-column: span 6;
      grid-row: span 2;
    }
    > .size-m {
      grid-column: span 6;
    }
    > .size-s {
      grid-column: span 3;
    }
    > .size-t {
      grid-column: span 4;
    }
  }
  .steps > :last-child {
    grid-column: span 4;
  }
}
@media (min-width: 1200px) {
  .bento > .size-q {
    grid-column: span 3;
  }
  .bento.trust > .size-q {
    grid-column: span 6;
  }
}
.widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: var(--s3);
  border-radius: var(--r-card-s);
  h3 {
    margin: 4px 0 0;
  }
  > p {
    margin: 0;
    max-width: 52ch;
    color: var(--muted);
    font-size: 16px;
  }
  .viz {
    margin-top: auto;
    padding-top: var(--s1);
  }
}
@media (min-width: 720px) {
  .widget {
    padding: var(--s4);
    border-radius: var(--r-card);
  }
}
.size-l {
  .viz {
    margin-top: var(--s1);
  }
  .icon-tile {
    width: 52px;
    height: 52px;
  }
  h3 {
    font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  }
}
.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin: 0;
}
.step-n {
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}

/* Widget visuals (decorative; the card text carries the meaning). */
.viz {
  margin: 0;
  font-size: 14px;
}
.viz-alerts {
  display: grid;
  gap: var(--s1);
  padding: 0;
  list-style: none;
  li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 12px var(--s2);
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--brand) 5%, var(--surface));
    border: 1px solid var(--edge);
    font-weight: 600;
  }
}
.viz-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  padding: 0;
  list-style: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--neutral-tint);
  color: var(--info);
  .icon {
    width: 16px;
    height: 16px;
  }
  &[data-state="on"] {
    background: var(--ok-tint);
    color: var(--ok);
  }
  &[data-state="warn"] {
    background: var(--warn-tint);
    color: var(--warn);
  }
  &[data-state="off"] {
    background: var(--critical-tint);
    color: var(--critical);
  }
}
.viz-ring {
  display: flex;
  align-items: center;
  gap: var(--s2);
  p {
    display: grid;
    margin: 0;
    color: var(--muted);
    line-height: 1.2;
  }
}
.viz-n {
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.viz-bars {
  display: grid;
  gap: var(--s1);
  p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
  }
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  i {
    flex: 1;
    min-height: 4px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--brand) 22%, transparent);
  }
}
.bars .h2 {
  height: 12.5%;
}
.bars .h3 {
  height: 18.75%;
}
.bars .h4 {
  height: 25%;
}
.bars .h5 {
  height: 31.25%;
}
.bars .h6 {
  height: 37.5%;
}
.bars .h9 {
  height: 56.25%;
  background: color-mix(in srgb, var(--warn) 55%, transparent);
}
.bars .h12 {
  height: 75%;
  background: color-mix(in srgb, var(--warn) 70%, transparent);
}
.bars .h14 {
  height: 87.5%;
  background: var(--warn);
}
.bars .h16 {
  height: 100%;
  background: var(--critical);
}
.viz-trial {
  display: grid;
  gap: var(--s1);
  p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
  }
}
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  li {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    max-width: 44px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 650;
    color: var(--muted);
    background: var(--neutral-tint);
    font-variant-numeric: tabular-nums;
  }
  .today {
    color: var(--on-brand);
    background: var(--brand);
  }
}

.see {
  margin-top: var(--s3);
  padding: var(--s3);
  h2 {
    margin-top: 0;
    font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  }
  p {
    margin: 0;
  }
}
@media (min-width: 720px) {
  .see {
    padding: var(--s4);
  }
}
.see-cols {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.see-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s1) !important;
  .icon {
    color: var(--accent-ink);
  }
}
.cta-card {
  display: grid;
  gap: var(--s3);
  align-items: center;
  margin-top: var(--s12);
  margin-bottom: var(--s3);
  padding: var(--s4) var(--s3);
  h2 {
    margin: 0 0 var(--s1);
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  }
  p {
    margin: 0 0 var(--s3);
    color: var(--muted);
  }
  .viz-trial {
    width: 100%;
    max-width: 360px;
  }
}
@media (min-width: 720px) {
  .cta-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: var(--s6);
    padding: var(--s6);
  }
}

/* ---------- Pricing ---------- */
.page-head {
  margin-bottom: var(--s5);
  &.center .lead {
    margin-inline: auto;
  }
}
.plans {
  display: grid;
  gap: var(--s3);
  max-width: 912px;
  margin: 0 auto var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.plan {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  min-width: 0;
  padding: var(--s3);
  container-type: inline-size;
  h2 {
    margin: 0;
    font-size: 1.375rem;
  }
  .note {
    margin: 0;
  }
  &.featured {
    border: 1.5px solid var(--accent);
  }
}
@media (min-width: 720px) {
  .plan {
    padding: var(--s4);
  }
}
.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1) var(--s2);
  min-height: 34px;
}
.save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  .icon {
    width: 16px;
    height: 16px;
  }
}
.price {
  margin: var(--s1) 0 0;
  font-size: 1.125rem;
  color: var(--muted);
  span {
    font-size: clamp(2.5rem, 1.5rem + 8cqi, 3.5rem);
    font-weight: 760;
    letter-spacing: -0.035em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
  }
}
.checklist {
  display: grid;
  gap: 10px;
  margin: var(--s2) 0 var(--s3);
  padding: 0;
  list-style: none;
  li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  .icon {
    margin-top: 0.2em;
    width: 18px;
    height: 18px;
    color: var(--ok);
  }
}
.plan-foot {
  margin-top: auto;
  display: flex;
  .soon,
  .button {
    flex: 1;
    justify-content: center;
  }
}
.facts {
  display: grid;
  gap: var(--s2);
  max-width: 1200px;
  margin: var(--s5) auto var(--s3);
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  li {
    display: flex;
    align-items: flex-start;
    gap: var(--s2);
    padding: 20px var(--s3);
    border-radius: var(--r-card-s);
  }
  .icon {
    margin-top: 2px;
    color: var(--accent-ink);
  }
  p {
    display: grid;
    gap: 4px;
    margin: 0;
    min-width: 0;
  }
  span {
    color: var(--muted);
    font-size: 15px;
  }
}
.included-box {
  margin-top: var(--s6);
  padding: var(--s3);
  h2 {
    margin-top: 0;
  }
  .checklist {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
    gap: 12px var(--s4);
    margin-bottom: 0;
  }
}
@media (min-width: 720px) {
  .included-box {
    padding: var(--s5);
  }
}

/* ---------- Accordions (pricing questions, help) ---------- */
.accordion {
  display: grid;
  gap: 12px;
}
.qa {
  border-radius: 20px;
  box-shadow: none;
  summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s2);
    min-height: 60px;
    padding: 14px 20px;
    list-style: none;
    cursor: pointer;
    border-radius: inherit;
    &::-webkit-details-marker {
      display: none;
    }
    h3 {
      margin: 0;
      font-size: 1.0625rem;
    }
  }
  .chev {
    color: var(--muted);
    transition: rotate 0.2s ease;
  }
  &[open] .chev {
    rotate: 180deg;
  }
  .qa-body {
    padding: 0 20px 20px;
    color: var(--muted);
    p {
      margin: 0;
      max-width: 65ch;
    }
  }
}

/* ---------- Help and legal: search and side navigation ---------- */
.search {
  max-width: 640px;
  margin-bottom: var(--s1);
  label {
    display: block;
    margin-bottom: var(--s1);
    font-weight: 650;
  }
}
.field {
  position: relative;
  .icon {
    position: absolute;
    left: 18px;
    top: 50%;
    translate: 0 -50%;
    color: var(--muted);
    pointer-events: none;
  }
  input {
    width: 100%;
    min-height: 56px;
    padding: 0 20px 0 52px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--muted) 55%, transparent);
    font: inherit;
    color: var(--text);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    &:focus-visible {
      outline: 3px solid var(--focus);
      outline-offset: 2px;
    }
  }
}
.doc-layout {
  display: grid;
  gap: var(--s3);
  align-items: start;
}
.toc {
  border-radius: 20px;
  border: 1px solid var(--edge);
  background: var(--card);
  summary {
    min-height: 48px;
    padding: 12px 18px;
    font-weight: 650;
    cursor: pointer;
  }
  ol {
    margin: 0;
    padding: 0 10px 12px;
    list-style: none;
  }
  a {
    display: block;
    padding: 7px 10px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    &:hover {
      color: var(--text);
      background: color-mix(in srgb, var(--brand) 8%, transparent);
    }
  }
}
@media (min-width: 1024px) {
  .doc-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: var(--s6);
  }
  .toc {
    position: sticky;
    top: calc(var(--header-h) + var(--s2));
    max-height: calc(100vh - var(--header-h) - var(--s4));
    overflow: auto;
  }
}
.faq-group {
  margin-bottom: var(--s5);
  h2 {
    margin: 0 0 var(--s2);
    font-size: 1.375rem;
  }
}
.faq-group:not(:has([data-faq-item]:not([hidden]))) {
  display: none;
}
.prose {
  max-width: 72ch;
  min-width: 0;
  overflow-wrap: anywhere;
  h1 {
    font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem);
  }
  h2 {
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    margin-top: var(--s5);
  }
  h3 {
    font-size: 1.125rem;
  }
  li {
    margin-bottom: 6px;
  }
  /* Custom markers instead of the browser's default bullets; numbered lists keep their numbers. */
  ul {
    padding-left: 0;
    list-style: none;
    > li {
      position: relative;
      padding-left: 1.25em;
      &::before {
        content: "";
        position: absolute;
        left: 0.2em;
        top: 0.68em;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent);
      }
    }
  }
  ol > li::marker {
    color: var(--muted);
    font-weight: 600;
  }
}
.table {
  margin: var(--s2) 0;
  border-radius: var(--r-md);
  border: 1px solid var(--edge);
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
/* Small screens: each row becomes a stacked card with the column names beside the values, so nothing scrolls
   sideways. */
@media (max-width: 719px) {
  .table {
    thead {
      display: none;
    }
    table,
    tbody,
    tr,
    td {
      display: block;
    }
    tr {
      padding: 12px var(--s2);
      border-bottom: 1px solid var(--line);
    }
    tr:last-child {
      border-bottom: 0;
    }
    td {
      display: grid;
      grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
      gap: 12px;
      padding: 4px 0;
      border: 0;
      &::before {
        content: attr(data-label);
        font-weight: 650;
        color: var(--muted);
      }
    }
  }
}
code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
blockquote,
.banner {
  margin: var(--s2) 0;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--edge);
  background: var(--card);
}
.banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  .icon {
    margin-top: 3px;
    color: var(--brand);
  }
}

/* ---------- Badges, lights ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  background: var(--neutral-tint);
  color: var(--info);
  &[data-sev="critical"] {
    background: var(--critical-tint);
    color: var(--critical);
  }
  &[data-sev="high"],
  &[data-state="warn"] {
    background: var(--warn-tint);
    color: var(--warn);
  }
  &[data-sev="medium"] {
    background: var(--medium-tint);
    color: var(--medium);
  }
  &[data-state="on"] {
    background: var(--ok-tint);
    color: var(--ok);
  }
}
.status-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.status {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.3;
}
.light {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--info);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--info) 18%, transparent);
  &[data-light="green"] {
    background: var(--ok);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 18%, transparent);
  }
  &[data-light="amber"] {
    background: var(--warn);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--warn) 18%, transparent);
  }
  &[data-light="red"] {
    background: var(--critical);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--critical) 18%, transparent);
  }
}
.status-card {
  padding: var(--s3);
  border-radius: var(--r-card-s);
  /* Room for the longest state, so a live refresh never shifts the page. */
  min-block-size: 240px;
  @media (min-width: 600px) {
    min-block-size: 140px;
  }
  .note {
    margin: 12px 0 0;
  }
  &[data-tone="red"] {
    background: color-mix(in srgb, var(--critical-tint) 75%, transparent);
    border: 1px solid color-mix(in srgb, var(--critical) 18%, transparent);
  }
}
.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: var(--r-card-s);
  }
  .icon {
    margin-top: 3px;
    color: var(--accent-ink);
  }
}

/* ---------- Demo dashboard ---------- */
.dash {
  container: dash / inline-size;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.dash-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--edge);
}
.dots {
  display: inline-flex;
  gap: 7px;
  i {
    width: 12px;
    height: 12px;
    border-radius: 99px;
    background: #ff5f57;
    &:nth-child(2) {
      background: #febc2e;
    }
    &:nth-child(3) {
      background: #28c840;
    }
  }
}
.dash-title {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-width: 0;
  font-weight: 650;
  font-size: 15px;
  img {
    flex: none;
    border-radius: 6px;
  }
}
@container dash (max-width: 440px) {
  .dots {
    display: none;
  }
}
.dash-top .chip {
  margin-left: auto;
}
.dash-body {
  display: grid;
}
/* Segmented control: the one glass element inside the demo. */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--s2) var(--s2) 0;
  padding: 6px;
  border-radius: 20px;
  [role="tab"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s1);
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-weight: 650;
    font-size: 15px;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
    &:hover {
      color: var(--text);
    }
    &[aria-selected="true"] {
      color: var(--brand);
      background: var(--surface);
      box-shadow:
        0 1px 2px rgb(20 23 31 / 0.08),
        0 4px 12px rgb(20 23 31 / 0.06);
    }
  }
}
.panel {
  padding: var(--s3) 20px 28px;
  min-width: 0;
  h2 {
    margin: 28px 0 12px;
    font-size: 1.0625rem;
    color: var(--muted);
    letter-spacing: 0;
  }
}
@container dash (min-width: 760px) {
  .dash-body {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .tabs {
    flex-direction: column;
    align-self: start;
    margin: 20px 0 20px 20px;
    [role="tab"] {
      flex: none;
      justify-content: flex-start;
    }
  }
  .panel {
    padding: 28px var(--s4) var(--s4);
  }
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@container dash (min-width: 560px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.stat {
  display: grid;
  gap: var(--s1);
  justify-items: start;
  padding: var(--s2);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--brand) 4%, var(--surface));
  border: 1px solid var(--edge);
}
.stat-n {
  font-size: 2rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.alerts,
.checks,
.assets {
  margin: 0;
  padding: 0;
  list-style: none;
}
.alert-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 14px;
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  text-align: left;
  transition: background-color 0.2s ease;
  &:hover {
    background: color-mix(in srgb, var(--brand) 7%, transparent);
  }
  .badge {
    grid-column: 2;
    justify-self: start;
  }
  .chev {
    display: none;
    color: var(--muted);
  }
}
.alert-title {
  font-weight: 600;
  font-size: 16px;
}
@container dash (min-width: 520px) {
  .alert-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    .badge {
      grid-column: auto;
    }
    .chev {
      display: block;
    }
  }
}
.alerts li + li {
  border-top: 1px solid var(--line);
}
.detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.anatomy {
  display: grid;
  gap: 4px 28px;
  h2 {
    margin-top: 20px;
  }
  p {
    margin: 0;
  }
}
@container dash (min-width: 900px) {
  .anatomy {
    grid-template-columns: 1fr 1.4fr 0.6fr;
  }
}
.score-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.ring svg {
  rotate: -90deg;
  circle {
    fill: none;
    stroke-width: 11;
  }
  .ring-track {
    stroke: color-mix(in srgb, var(--brand) 12%, transparent);
  }
  .ring-value {
    stroke: var(--brand);
    stroke-linecap: round;
  }
}
.ring.small svg circle {
  stroke-width: 14;
}
.score {
  margin: 0;
  font-size: 1.25rem;
  color: var(--muted);
  span {
    font-size: 3rem;
    font-weight: 760;
    letter-spacing: -0.03em;
    color: var(--text);
  }
}
.checks {
  margin-top: var(--s2);
  li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 12px;
    min-height: 52px;
    padding-block: 6px;
    border-bottom: 1px solid var(--line);
    > span:first-child {
      display: flex;
      gap: 10px;
      align-items: center;
    }
  }
  .ok {
    color: var(--ok);
  }
  .warn {
    color: var(--warn);
  }
}

/* Demo dialog: glass over a dimmed page. */
.dialog {
  --glass-alpha: var(--sheet-alpha);
  width: min(100% - 2 * var(--s2), 460px);
  padding: 28px;
  border-radius: var(--r-card);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 var(--rim),
    var(--shadow-2);
  h2 {
    margin: 0 0 12px;
    font-size: 1.375rem;
  }
  .actions {
    margin: 20px 0 0;
    justify-content: flex-end;
  }
  &::backdrop {
    background: rgb(14 17 22 / 0.45);
  }
}

/* ---------- Press ---------- */
.press-grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.press-card {
  padding: var(--s3);
  min-width: 0;
  h2 {
    margin: 0 0 var(--s1);
    font-size: 1.125rem;
  }
  h2 ~ h2 {
    margin-top: var(--s3);
  }
}
@media (min-width: 720px) {
  .press-card {
    padding: var(--s4);
  }
}
.assets {
  display: grid;
  gap: 6px;
  a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
  }
}
.shots {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  figure {
    margin: 0;
    padding: 10px 10px 14px;
    border-radius: var(--r-card-s);
  }
  img {
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
  }
  figcaption {
    margin-top: 10px;
    padding-inline: 6px;
    font-size: 15px;
  }
}

/* ---------- Footer ---------- */
.site-foot {
  margin-top: var(--s12);
  border-top: 1px solid var(--edge);
  background: color-mix(in srgb, var(--surface) 45%, transparent);
}
.foot-grid {
  display: grid;
  gap: var(--s4);
  padding-block: var(--s6) var(--s4);
}
.foot-brand {
  .lockup {
    min-height: 0;
    margin-bottom: 10px;
  }
  p {
    max-width: 34ch;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
  }
}
.sitemap {
  display: grid;
  gap: 28px var(--s3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  font-size: 15px;
  ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  a {
    display: inline-block;
    min-height: 24px;
    color: var(--muted);
    text-decoration: none;
    overflow-wrap: anywhere;
    &:hover {
      color: var(--text);
      text-decoration: underline;
    }
  }
  .reply {
    color: var(--muted);
    font-size: 14px;
  }
}
.foot-h {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
}
.foot-legal {
  border-top: 1px solid var(--edge);
}
footer {
  padding-block: 20px 36px;
  color: var(--muted);
  p {
    margin: 2px 0;
    font-size: 14px;
  }
}
@media (min-width: 720px) {
  .sitemap {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .foot-grid {
    grid-template-columns: 1fr 2.4fr;
    gap: var(--s6);
  }
}

/* ---------- Motion (CSS only, ≤250 ms, transform-only so nothing shifts, off for reduced motion) ---------- */
/* Source: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@view-transition (checked 2026-10-26)
   Source: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/animation-timeline (checked 2026-10-26) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.22s;
  }
  .button:active,
  .icon-button:active,
  .tabs [role="tab"]:active {
    scale: 0.97;
  }
  .sheet,
  .dialog {
    transition:
      opacity 0.2s ease,
      scale 0.2s ease,
      overlay 0.2s allow-discrete,
      display 0.2s allow-discrete;
    @starting-style {
      opacity: 0;
      scale: 0.97;
    }
  }
  /* The header condenses as the page scrolls; cards settle into place as they enter the viewport. */
  @supports (animation-timeline: scroll()) {
    .bar {
      animation: condense linear both;
      animation-timeline: scroll(root);
      animation-range: 0 160px;
    }
    .widget,
    .plan,
    .facts > li,
    .see {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 50%;
    }
  }
  @supports (interpolate-size: allow-keywords) {
    :root {
      interpolate-size: allow-keywords;
    }
    .qa::details-content {
      block-size: 0;
      overflow: clip;
      transition:
        block-size 0.22s ease,
        content-visibility 0.22s allow-discrete;
    }
    .qa[open]::details-content {
      block-size: auto;
    }
  }
}
@keyframes condense {
  to {
    translate: 0 -4px;
    scale: 0.985;
    box-shadow:
      inset 0 1px 0 var(--rim),
      var(--shadow-2);
  }
}
@keyframes settle {
  from {
    scale: 0.96;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Accessibility fallbacks (keep last: they override the theme blocks above) ---------- */
/* No backdrop-filter support: near-solid fills so text never sits on unblurred content. */
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  :root,
  :root[data-theme],
  .glass,
  .sheet,
  .dialog {
    --glass-alpha: 95%;
    --sheet-alpha: 97%;
  }
}
/* Reduce transparency: solid surfaces, no blur, a quieter background. Source:
   https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/prefers-reduced-transparency (checked 2026-10-26) */
@media (prefers-reduced-transparency: reduce) {
  :root,
  :root[data-theme],
  .glass,
  .sheet,
  .dialog {
    --glass-alpha: 100%;
    --sheet-alpha: 100%;
  }
  .glass,
  :root[data-lens] .glass[data-lens] {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body::before {
    opacity: 0.4;
  }
}
/* More contrast: solid surfaces, visible borders, full-strength secondary text. */
@media (prefers-contrast: more) {
  :root,
  :root[data-theme],
  .glass,
  .sheet,
  .dialog {
    --glass-alpha: 100%;
    --sheet-alpha: 100%;
    --edge: var(--text);
    --muted: var(--text);
    --rim-edge: linear-gradient(var(--text), var(--text));
  }
  .glass,
  :root[data-lens] .glass[data-lens] {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body::before {
    display: none;
  }
  .button.primary {
    border-color: var(--text);
  }
}
@media (forced-colors: active) {
  .glass,
  .card,
  .button,
  .soon,
  .tabs [role="tab"][aria-selected="true"],
  .toc {
    border: 1px solid CanvasText;
  }
  .glass::before {
    display: none;
  }
  body::before {
    display: none;
  }
}
