/* InsurWatch public pages: one visual system shared with the app (web.spec.md, Visual Design). */

/*
 * Role-named tokens. Each color equals an `insurwatchTheme` role in src/app/theme.ts
 * (INSURWATCH_LIGHT / INSURWATCH_DARK); test/marketing-tokens.test.ts keeps them equal.
 * Rules below use these properties, never literal colors.
 */
:root {
  --paper: #ffffff; /* surfacePrimary */
  --card: #ffffff; /* surfaceElevated */
  --highlight: #f2f6f6; /* surfaceSecondary: mist */
  --band: #f2f6f6; /* surfaceGroupedPrimary */
  --surface-white: #ffffff; /* the FAQ band; dark mode uses --card */
  --ink: #0a1b21; /* contentPrimary */
  --muted: #475960; /* contentSecondary: ink-2 */
  --subtle: #5c6e75; /* contentTertiary */
  --accent-text: #0b6670; /* contentAccent: teal */
  --accent: #0b6670; /* actionAccentFill */
  --on-accent: #ffffff; /* actionAccentOnFill */
  --line: #e1e8e9; /* borderSubtle */
  --line-strong: #7a8b91; /* borderStrong */
  --focus: #0b6670; /* focusRing */
  --green: #0b6b3e; /* intentSuccess */
  --amber: #8f4700; /* intentWarning */
  --neutral-fill: #e6eaeb; /* intentNeutralContainer */
  --on-neutral-fill: #475960; /* intentNeutralOnContainer */
  /* Derived roles. */
  --accent-hover: color-mix(in srgb, var(--accent) 86%, var(--ink));
  /* The midnight footer band: the dark scheme's surfacePrimary, contentPrimary,
     contentSecondary, contentAccent and surfaceSecondary (test/marketing-tokens.test.ts). */
  --inverse: #061217;
  --on-inverse: #f0f5f6;
  --on-inverse-muted: #9fb2b8;
  --on-inverse-accent: #63d2c7;
  --inverse-line: #183238;
  --inverse-raised: #183238; /* dark surfaceSecondary: the backdrop's inset panel */
  /* Dims the page behind the phone menu. */
  --scrim: color-mix(in srgb, var(--ink) 45%, transparent);
  /* The wordmark's full stop only (web.spec.md): brandVars.mark. */
  --brand-mark: #ff5f43;

  /*
   * Elevation: three levels; buttons carry none. The values are elevationVars in
   * src/app/elevation.stylex.ts; light-dark() follows the color-scheme each theme block sets.
   */
  --elevation-1:
    0 1px 2px light-dark(rgba(10, 27, 33, 0.06), rgba(0, 0, 0, 0.32)),
    0 1px 3px light-dark(rgba(10, 27, 33, 0.04), rgba(0, 0, 0, 0.24)),
    inset 0 1px 0 light-dark(transparent, rgba(240, 245, 246, 0.05));
  --elevation-2:
    0 2px 6px light-dark(rgba(10, 27, 33, 0.05), rgba(0, 0, 0, 0.3)),
    0 8px 24px light-dark(rgba(10, 27, 33, 0.07), rgba(0, 0, 0, 0.36)),
    inset 0 1px 0 light-dark(transparent, rgba(240, 245, 246, 0.06));
  --elevation-3:
    0 4px 12px light-dark(rgba(10, 27, 33, 0.07), rgba(0, 0, 0, 0.36)),
    0 20px 48px light-dark(rgba(10, 27, 33, 0.12), rgba(0, 0, 0, 0.48)),
    inset 0 1px 0 light-dark(transparent, rgba(240, 245, 246, 0.08));

  /* Shape. */
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-full: 999px;

  /* Typefaces (/fonts/fonts.css): Outfit for all text; Instrument Serif for the home page's
     headlines only (.display-face), 24px and up, at its one weight, 400. */
  --font:
    'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  /*
   * Text sizes: the app's text roles (src/app/Appearance.stylex.ts, consumerText) at a 16px
   * root. Display titles keep their clamp() sizes.
   */
  --text-title: 28px;
  --text-title-2: 24px;
  --text-title-3: 20px;
  --text-headline: 18px;
  --text-body: 16px;
  --text-callout: 15px;
  --text-footnote: 14px;
  --text-caption: 12px;
  /*
   * Title sizes (web.spec.md, Visual Design → Public pages): every page's h1 uses --title-page,
   * every section's h2 --title-section. Rules never set a title size of their own; the home
   * page sets both larger for its own sections (landing-aura.css).
   */
  --title-page: clamp(36px, 4.2vw, 60px);
  --title-section: clamp(32px, 3.6vw, 52px);
  /* Side padding: content stays within 1280px (80px margins at 1440) while bands stay full width. */
  --gutter: max(clamp(20px, 5vw, 48px), calc((100vw - 1280px) / 2));
  /* The sticky header's height (.site-header sets its own height from it): the home hero fills
     the first screen less this, and sticky stages sit under it. */
  --header-h: 84px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #061217; /* surfacePrimary */
    --card: #0f2329; /* surfaceElevated */
    --highlight: #183238; /* surfaceSecondary */
    --band: #0f2329; /* surfaceGroupedPrimary */
    --surface-white: var(--card);
    --ink: #f0f5f6; /* contentPrimary */
    --muted: #9fb2b8; /* contentSecondary */
    --subtle: #8098a0; /* contentTertiary */
    --accent-text: #63d2c7; /* contentAccent */
    --accent: #0b6670; /* actionAccentFill */
    --on-accent: #ffffff; /* actionAccentOnFill */
    --line: #213b42; /* borderSubtle */
    --line-strong: #5a777f; /* borderStrong */
    --focus: #63d2c7; /* focusRing */
    --green: #5ccb8f; /* intentSuccess */
    --amber: #f0a84b; /* intentWarning */
    --neutral-fill: #183238; /* intentNeutralContainer */
    --on-neutral-fill: #f0f5f6; /* intentNeutralOnContainer */
    --accent-hover: color-mix(in srgb, var(--accent) 84%, var(--ink));
    --inverse: var(--card);
    --on-inverse: var(--ink);
    --on-inverse-muted: var(--muted);
    --on-inverse-accent: var(--accent-text);
    --inverse-line: var(--line);
    --inverse-raised: var(--highlight);
    --scrim: color-mix(in srgb, var(--paper) 72%, transparent);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --paper: #061217; /* surfacePrimary */
  --card: #0f2329; /* surfaceElevated */
  --highlight: #183238; /* surfaceSecondary */
  --band: #0f2329; /* surfaceGroupedPrimary */
  --surface-white: var(--card);
  --ink: #f0f5f6; /* contentPrimary */
  --muted: #9fb2b8; /* contentSecondary */
  --subtle: #8098a0; /* contentTertiary */
  --accent-text: #63d2c7; /* contentAccent */
  --accent: #0b6670; /* actionAccentFill */
  --on-accent: #ffffff; /* actionAccentOnFill */
  --line: #213b42; /* borderSubtle */
  --line-strong: #5a777f; /* borderStrong */
  --focus: #63d2c7; /* focusRing */
  --green: #5ccb8f; /* intentSuccess */
  --amber: #f0a84b; /* intentWarning */
  --neutral-fill: #183238; /* intentNeutralContainer */
  --on-neutral-fill: #f0f5f6; /* intentNeutralOnContainer */
  --accent-hover: color-mix(in srgb, var(--accent) 84%, var(--ink));
  --inverse: var(--card);
  --on-inverse: var(--ink);
  --on-inverse-muted: var(--muted);
  --on-inverse-accent: var(--accent-text);
  --inverse-line: var(--line);
  --inverse-raised: var(--highlight);
  --scrim: color-mix(in srgb, var(--paper) 72%, transparent);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 96px;
}
/* Contents and anchor links glide to their section, unless motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Short pages keep the footer at the bottom of the screen. */
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: clip;
  transition:
    background 300ms ease,
    color 300ms ease;
}
body > main {
  flex: 1 0 auto;
  min-width: 0;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

a {
  color: inherit;
}
@media (hover: hover) {
  a:hover {
    text-decoration-thickness: 2px;
  }
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
p {
  line-height: 1.55;
}

/* A small label; monospace is kept for code and token values only (web.spec.md). */
.mono {
  font-size: 13px;
  font-weight: 400;
}
.display {
  margin: 0;
  font-weight: 500;
  line-height: 1.09;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.d-m {
  font-size: var(--title-section);
}
/*
 * The display face (web.spec.md, Visual Design → Type): Instrument Serif at its one weight, for the
 * home page's headlines only, 24px and up. After .display, so its weight wins; never synthesized.
 */
.display-face {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -0.03em;
}
.title {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.lede {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}

/*
 * Skip link (WCAG 2.4.1): the first stop on every page, shown only while it has focus, above the
 * sticky header. It leads to <main>, which takes focus without a ring, as sections do.
 */
.skip-link {
  position: absolute;
  top: 8px;
  left: var(--gutter);
  z-index: 40;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible {
  transform: none;
}
main:focus {
  outline: none;
}

/*
 * The language offer (web.spec.md, Languages → Detection): site.js adds it after load, fixed
 * under the sticky header, so it covers content for a moment and never moves it.
 */
.lang-offer {
  position: fixed;
  top: calc(var(--lang-offer-top, 0px) + 8px);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 25;
  width: fit-content;
  max-width: calc(100vw - 2 * var(--gutter));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 20px;
  border-radius: var(--radius-full);
  background: var(--inverse);
  color: var(--on-inverse);
  box-shadow: var(--elevation-2);
  font-size: var(--text-callout);
}
.lang-offer p {
  margin: 0;
}
.lang-offer a {
  /* A 44px tap area: inline padding grows the hit area without moving the line. */
  padding-block: 13px;
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (hover: hover) {
  .lang-offer a:hover {
    text-decoration-thickness: 2px;
  }
}
.lang-offer :focus-visible {
  outline: 2px solid var(--on-inverse);
  outline-offset: 2px;
}
.lang-offer-close {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
@media (hover: hover) {
  .lang-offer-close:hover {
    background: color-mix(in srgb, var(--on-inverse) 12%, transparent);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lang-offer {
    animation: lang-offer-in 200ms ease-out;
  }
  @keyframes lang-offer-in {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
  }
}

/* Layout */
.section {
  padding: clamp(80px, 11vw, 168px) var(--gutter) 0;
}
.section.last {
  padding-bottom: clamp(80px, 11vw, 168px);
}
.hero {
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.band {
  background: var(--band);
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}

/*
 * Header: wordmark, links and actions in one row. On phones the wordmark and the
 * primary action keep the first row; the links and Sign in take a second row.
 * The layout needs no JavaScript.
 *
 * The header takes the surface of the section beneath it: sections declare theirs with
 * data-surface (paper, white, band or inverse), and site.js copies the one under the
 * header's bottom edge onto the header. Without JavaScript it keeps the top section's
 * surface, which layout.ts sets.
 */
.site-header {
  box-sizing: border-box;
  min-height: var(--header-h);
  --header-bg: var(--paper);
  --header-ink: var(--ink);
  --header-line: var(--line-strong);
  --header-hover: var(--highlight);
  --header-focus: var(--focus);
  --header-hairline: var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--header-bg);
  color: var(--header-ink);
  transition:
    background-color 200ms ease,
    color 200ms ease;
}
.site-header[data-surface='white'] {
  --header-bg: var(--surface-white);
}
.site-header[data-surface='band'] {
  --header-bg: var(--band);
}
.site-header[data-surface='inverse'] {
  --header-bg: var(--inverse);
  --header-ink: var(--on-inverse);
  --header-line: color-mix(in srgb, var(--on-inverse) 56%, var(--inverse));
  --header-hover: color-mix(in srgb, var(--on-inverse) 12%, var(--inverse));
  --header-focus: var(--on-inverse);
  --header-hairline: color-mix(in srgb, var(--on-inverse) 14%, transparent);
}
.site-header :focus-visible {
  outline-color: var(--header-focus);
}
.site-header .pill.secondary {
  color: var(--header-ink);
  border-color: var(--header-line);
}
@media (hover: hover) {
  .site-header .pill.secondary:hover {
    background: var(--header-hover);
  }
}
/* A hairline once the page has scrolled, driven by the scroll position alone (no JavaScript). */
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-hairline linear both;
    animation-timeline: scroll(root);
    animation-range: 0 48px;
  }
}
@keyframes header-hairline {
  from {
    box-shadow: 0 1px 0 transparent;
  }
  to {
    box-shadow: 0 1px 0 var(--header-hairline);
  }
}
/* Wordmark: Outfit 500 in the header's ink (on-inverse over a midnight band), coral full stop
   (web.spec.md, Visual Design → Wordmark). */
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-title);
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.logo::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  /* Sit on the baseline, as a full stop, inside the 44px target. */
  transform: translateY(0.3em);
  background: var(--brand-mark);
  border-radius: var(--radius-full);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  font-size: var(--text-body);
  font-weight: 400;
}
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: 12px;
  color: var(--header-ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  white-space: nowrap;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}
/* Hover: the words darken and a hairline appears under them. Nothing moves, no fill. */
@media (hover: hover) {
  .site-nav a:hover {
    color: var(--header-ink);
    text-decoration-color: currentColor;
  }
}
/* The language switch is the quiet one (ink-2 on paper). */
.site-nav .site-lang {
  color: color-mix(in srgb, var(--header-ink) 74%, transparent);
}
.site-nav a[aria-current='page'] {
  color: var(--header-ink);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}
.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.site-nav + .site-actions {
  margin-left: 0;
}
/*
 * The phone menu (web.spec.md, Header). Below 720px the links do not fit on one row, so the
 * header keeps the logo, the primary action and a menu button; Sign in, How it works and
 * FAQs move into a modal panel that slides in from the right (layout.ts `siteMenu`).
 */
.menu-button {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--header-ink);
  cursor: pointer;
  transition: background 160ms ease;
}
@media (hover: hover) {
  .menu-button:hover {
    background: var(--header-hover);
  }
}
@media (max-width: 719px) {
  :root {
    --header-h: 68px;
  }
  .site-header {
    gap: 8px;
    padding-block: 12px;
  }
  .logo {
    margin-right: auto;
    font-size: var(--text-title);
  }
  /* The menu holds every link and its own Check my price, so the header keeps only the logo and the menu button. */
  .site-nav,
  .site-actions {
    display: none;
  }
  .site-actions {
    margin-left: 0;
  }
  .site-actions .pill.small {
    padding-inline: 16px;
    font-size: var(--text-callout);
  }
  .menu-button {
    display: inline-flex;
  }
}
/*
 * Tablets (720–959px): the page links and the actions do not fit on one row (Spanish needs
 * about 840px), so the links move into the phone menu and the header keeps the logo, Sign in,
 * the primary action and the menu button.
 */
@media (min-width: 720px) and (max-width: 959px) {
  .site-nav {
    display: none;
  }
  .site-header .logo {
    margin-right: auto;
  }
  .site-header .site-actions {
    margin-left: 0;
  }
  .menu-button {
    display: inline-flex;
  }
}
@media (max-width: 359px) {
  .logo {
    font-size: var(--text-title-2);
  }
  .site-actions .pill.small {
    padding-inline: 14px;
    font-size: var(--text-footnote);
  }
}

/*
 * The panel (web.spec.md, Header): a full-screen sheet on phones, a 400px side panel from
 * 480px. The dialog fills it edge to edge, so a click on the dialog itself is the backdrop.
 */
dialog.site-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  transform: translateX(100%);
  transition:
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
    overlay 280ms ease allow-discrete,
    display 280ms ease allow-discrete;
}
@media (min-width: 480px) {
  dialog.site-menu {
    width: 400px;
    border-left: 1px solid var(--line);
    box-shadow: var(--elevation-3);
  }
}
dialog.site-menu[open] {
  transform: none;
}
/* The panel takes the initial focus (autofocus) without a ring; its links and buttons keep theirs. */
.site-menu-panel:focus {
  outline: none;
}
dialog.site-menu::backdrop {
  background: transparent;
  transition:
    background-color 280ms ease,
    overlay 280ms ease allow-discrete,
    display 280ms ease allow-discrete;
}
dialog.site-menu[open]::backdrop {
  background: var(--scrim);
}
@starting-style {
  dialog.site-menu[open] {
    transform: translateX(100%);
  }
  dialog.site-menu[open]::backdrop {
    background: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.site-menu,
  dialog.site-menu::backdrop {
    transition: none;
  }
}
/* The page stays where it is while the menu is open. */
html:has(dialog.site-menu[open]) {
  overflow: hidden;
}
.site-menu-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* The same row as the page header: the logo, then the close button where the menu button was. */
.site-menu-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px var(--gutter);
}
.site-menu-head .logo {
  margin-right: auto;
  color: var(--ink);
}
/* Words for assistive technology only, such as "(opens in a new tab)". */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* A source on another site: a small arrow after the words, in the link's colour. */
.external-icon {
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.1em;
  vertical-align: 0.05em;
}
/* The heading names the dialog for assistive technology; the logo already says where you are. */
.site-menu-head h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.site-menu-head form {
  margin: 0;
}
.menu-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease;
}
@media (hover: hover) {
  .menu-close:hover {
    background: var(--highlight);
  }
}
.site-menu-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px var(--gutter) 32px;
}
.site-menu-group + .site-menu-group {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
/* Each group's heading leads with its icon (Lucide, 20px, muted like the heading). */
.site-menu-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--muted);
}
.site-menu-group-head svg {
  flex: none;
}
.site-menu-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-footnote);
  font-weight: 500;
}
.site-menu-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-menu-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-inline: -8px;
  padding-inline: 8px;
  border-radius: var(--radius-s);
  color: var(--ink);
  font-size: 17px;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}
@media (hover: hover) {
  .site-menu-group a:hover {
    background: var(--highlight);
  }
}
.site-menu-group a:focus-visible {
  outline-offset: -2px;
}
/* Rows read as plain links, as on the page; the chevrons stay in the markup for older styles. */
.site-menu-group a svg {
  display: none;
}
/* Explore: the big links, the first thing the sheet offers. */
.site-menu-group:first-child .site-menu-group-head {
  margin-bottom: 4px;
}
.site-menu-group:first-child a {
  min-height: 56px;
  font-size: var(--text-title);
  letter-spacing: -0.03em;
}
.site-menu-foot {
  padding: 16px var(--gutter) max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.site-menu-foot .pill {
  width: 100%;
  min-height: 56px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.theme-toggle .sun {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .sun {
  display: block;
}
:root[data-theme='dark'] .theme-toggle .moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .sun {
    display: block;
  }
  :root:not([data-theme='light']) .theme-toggle .moon {
    display: none;
  }
}

/* Controls: full rounding, medium labels, no glow (web.spec.md, Consumer controls). */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  font: inherit;
  font-weight: 400;
  font-size: var(--text-body);
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease;
}
@media (hover: hover) {
  .pill:hover {
    background: var(--highlight);
  }
}
.pill.accent {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}
@media (hover: hover) {
  .pill.accent:hover {
    background: var(--accent-hover);
  }
}
.pill.small {
  min-height: 44px;
  padding: 0 18px;
  font-size: var(--text-callout);
}
.pill.secondary {
  border-color: var(--line-strong);
}
/* Tonal (the design system's Button variant="filled" tone="secondary"): a soft grey fill and no outline,
   for a quiet action that still reads as a button, such as adding InsurWatch to an assistant.
   The transparent border keeps the edge in forced-colours mode. */
.pill.tonal {
  gap: 0.5em;
  border-color: transparent;
  background: var(--neutral-fill);
  color: var(--on-neutral-fill);
}
/* In the header (Sign in) and the home hero (How it works), the quiet action is A5's mist with ink. */
.site-header .pill.tonal,
.home-hero .pill.tonal {
  background: var(--highlight);
  color: var(--ink);
}
@media (hover: hover) {
  .site-header .pill.tonal:hover,
  .home-hero .pill.tonal:hover {
    background: var(--neutral-fill);
  }
}
@media (hover: hover) {
  .pill.tonal:hover {
    background: color-mix(in srgb, var(--on-neutral-fill) 8%, var(--neutral-fill));
  }
}
.pill.tonal:active {
  background: color-mix(in srgb, var(--on-neutral-fill) 14%, var(--neutral-fill));
}
/* A quiet action: no border until hovered, for a way out beside the primary action. */
.pill.plain {
  border-color: transparent;
}
@media (hover: hover) {
  .pill.plain:hover {
    background: var(--highlight);
  }
}
/* Numbered rows (layout.ts `rows`). */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.rows > li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.rows .num {
  color: var(--accent-text);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.rows .head {
  flex: 1 1 280px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
}
.rows .body {
  flex: 1 1 320px;
  font-size: var(--text-headline);
  line-height: 1.5;
}

/* Accordions: <details> keeps full content readable without JavaScript. */
.accordion {
  border-top: 1px solid var(--line);
}
.accordion details {
  border-bottom: 1px solid var(--line);
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 20px 0;
  font-size: clamp(19px, 1.65vw, 23px);
  font-weight: 400;
  line-height: 1.45;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary::after {
  content: '+';
  flex: none;
  color: var(--accent-text);
  font-size: var(--text-title-2);
  font-weight: 400;
}
.accordion details[open] summary::after {
  content: '−';
}
.accordion details p {
  margin: 0;
  padding: 0 32px 24px 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

/* The waitlist form. */
.start {
  display: grid;
  gap: 16px;
  align-items: end;
}
.start label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.start input {
  min-width: 0;
  min-height: 56px;
  padding: 0 16px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  caret-color: var(--accent);
  font: inherit;
  font-size: var(--text-headline);
}
.start button {
  grid-column: 1 / -1;
}
.start[data-waitlist] .turnstile,
.start[data-waitlist] [data-waitlist-status],
.start[data-waitlist] [data-join-code],
.start[data-waitlist] .join-passkey {
  grid-column: 1 / -1;
}
.start[data-waitlist] [hidden],
.start[data-waitlist] .turnstile[hidden],
.start[data-waitlist] [data-waitlist-status]:empty {
  display: none;
}
.start[data-waitlist] .join-passkey:not([hidden]) {
  display: flex;
  gap: 12px;
}
.start[data-waitlist] .join-passkey button {
  flex: 1;
}

/* The early access dialog; without JavaScript, following its link shows it in place. */
dialog.signup {
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
  color: var(--ink);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--elevation-3);
}
dialog.signup::backdrop {
  background: var(--scrim);
}
dialog.signup:target:not([open]) {
  display: block;
  position: static;
  margin: 0 auto 80px;
}
dialog.signup .close {
  float: right;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--text-title);
  line-height: 1;
  cursor: pointer;
}
dialog.signup .title {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.4vw, 32px);
}
dialog.signup > p {
  margin: 0 0 20px;
}

/*
 * Privacy, terms, security and support: a readable document on a white surface. Title, a Key
 * facts card, an "On this page" list (a side rail on wide screens), then the sections.
 */
.doc-main {
  background: var(--surface-white);
}
.doc-layout {
  /* The same edges as the header: the gutters, nothing narrower (web.spec.md). */
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(72px, 9vw, 136px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 32px;
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.doc-head h1,
.doc h1 {
  margin: 0 0 12px;
  font-size: var(--title-page);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.doc-updated {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: var(--text-footnote);
}
.doc-head p:not(.doc-updated) {
  margin: 0 0 16px;
  color: var(--muted);
}
.doc-head p:last-child {
  margin-bottom: 0;
}
.doc-head a,
.doc a,
.key-facts a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
@media (hover: hover) {
  .doc-head a:hover,
  .doc a:hover,
  .key-facts a:hover {
    text-decoration-thickness: 2px;
  }
}

/* Key facts: a declarations sheet. A heavy rule opens it; each fact sits on a hairline and links to the section that says it in full. */
.key-facts {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.key-facts h2 {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: var(--text-callout);
  font-weight: 400;
  line-height: 1.4;
}
.key-facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0 32px;
}
.key-facts li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
}
.key-facts li p {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  text-wrap: pretty;
}
.key-facts li > a {
  align-self: start;
  color: var(--muted);
  font-size: var(--text-footnote);
  text-decoration: none;
}
@media (hover: hover) {
  .key-facts li > a:hover {
    color: var(--accent-text);
    text-decoration: underline;
  }
}
@media (min-width: 720px) {
  .key-facts ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Three facts share one row on wide screens rather than leaving a gap. */
@media (min-width: 1024px) {
  .key-facts ul:has(> li:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Only one navigation is exposed. Both layouts work before JavaScript starts. */
.doc-toc-rail {
  display: none;
}
.doc-toc summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-body);
}
.doc-toc summary::-webkit-details-marker {
  display: none;
}
.doc-toc summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}
.doc-toc details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.doc-toc summary:focus-visible,
.doc-toc a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.doc-toc ol {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.doc-toc a {
  position: relative;
  display: block;
  padding: 8px 12px 8px 24px;
  border-radius: var(--radius-s);
  color: var(--muted);
  font-size: var(--text-callout);
  line-height: 1.4;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}
/* On touch screens each contents link is a full 44px target. */
@media (pointer: coarse) {
  .doc-toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
  }
}
@media (hover: hover) {
  .doc-toc a:hover {
    background: var(--highlight);
    color: var(--ink);
  }
}
.doc-toc a[aria-current='location'] {
  color: var(--ink);
}
.doc-toc a[aria-current='location']::before {
  content: '';
  position: absolute;
  left: 10px;
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--brand-mark);
}

/* Sections: a hairline between them sets the rhythm. */
.doc section + section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.doc h2 {
  margin: 0 0 12px;
  font-size: var(--text-title-2);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.doc p {
  margin: 0 0 18px;
  line-height: 1.7;
}
.doc ul {
  margin: 0 0 18px;
  padding-left: 1.2em;
  display: grid;
  gap: 12px;
}
/* Sections take focus when a contents or key-fact link reaches them, so keyboard and
   screen-reader users continue from the section. They are not controls and show no ring. */
.doc > section:focus {
  outline: none;
}
.doc li::marker {
  color: var(--muted);
}
/* Two weights only (web.spec.md): lead-ins are medium, not bold. */
.doc strong {
  font-weight: 500;
}
.doc > :last-child > :last-child,
.doc > p:last-child {
  margin-bottom: 0;
}

/* Keep prose readable at every viewport, including tablets without the contents rail. */
.doc-head p,
.doc p,
.doc ul {
  max-width: 75ch;
}

/*
 * Wide screens: pages with a contents list get a rail column under the logo and the content
 * column out to the header's last action. Pages without one use the whole width. Prose keeps a
 * readable line length either way.
 */
@media (min-width: 1024px) {
  .doc-layout.has-toc {
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 64px;
    align-items: start;
  }
  .doc-layout.has-toc > .doc-head {
    grid-area: 1 / 2;
  }
  .doc-layout.has-toc > .key-facts {
    grid-area: 2 / 2;
  }
  .doc-layout.has-toc > .doc {
    grid-area: 3 / 2;
  }
  .doc-layout.has-toc > .doc-toc {
    grid-column: 1;
    grid-row: 2 / 4;
    position: sticky;
    top: 112px;
  }
  .doc-toc details {
    display: none;
  }
  .doc-toc-rail {
    display: block;
  }
  .doc-toc-rail > p {
    margin: 0;
    padding: 0 12px 8px;
    color: var(--muted);
    font-size: var(--text-footnote);
  }
}

/*
 * Learn (web.spec.md, Public pages → Learn). Quiet chrome, generous space, one rich moment:
 * featured tiles stage the site's comparison pixels as a floor in perspective, with the
 * article's key figure standing on it as a slip of paper. Depth comes from layered surfaces
 * and the three elevation levels, never from colour.
 */
.learn-layout {
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(80px, 10vw, 144px);
  display: grid;
  row-gap: clamp(48px, 6vw, 80px);
}
/* Wide screens: the topics sit on the subtitle's line, at the right, so the header stays short. */
@media (min-width: 1024px) {
  .learn-head:has(.learn-topics) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 32px;
  }
  .learn-head:has(.learn-topics) h1 {
    grid-column: 1 / -1;
  }
  .learn-head .learn-topics ul {
    margin: 0;
    justify-content: flex-end;
  }
}
.learn-head h1 {
  margin: 0 0 16px;
  font-size: var(--title-page);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.learn-head p {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.learn-crumbs ol {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--muted);
  font-size: var(--text-footnote);
}
.learn-crumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--subtle);
}
.learn-crumbs a {
  color: var(--muted);
  text-decoration: none;
}
@media (hover: hover) {
  .learn-crumbs a:hover {
    color: var(--accent-text);
    text-decoration: underline;
  }
}
.learn-layout > .learn-crumbs ol {
  margin: 0;
}

/* Topics: the categories as quiet pills under the title. */
.learn-topics ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.learn-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  /* A neutral grey from the ink, so the pills read as quiet filters, not as blue buttons. */
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--ink);
  font-size: var(--text-callout);
  text-decoration: none;
  transition: background 160ms ease;
}
@media (hover: hover) {
  .learn-topics a:hover {
    background: color-mix(in srgb, var(--ink) 9%, transparent);
  }
}
.learn-topics a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Featured tiles: a tall, rounded surface that lifts toward you on hover. */
.learn-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}
.learn-feature a {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius-l);
  /* Dark: one surface step above the page, with a hairline edge, so the tile reads as an object. */
  background: linear-gradient(
    180deg,
    light-dark(var(--highlight), var(--band)),
    light-dark(color-mix(in srgb, var(--highlight) 55%, var(--card)), var(--highlight))
  );
  outline: 1px solid light-dark(transparent, color-mix(in srgb, var(--ink) 10%, transparent));
  outline-offset: -1px;
  box-shadow: var(--elevation-1);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 240ms ease;
}

@media (hover: hover) {
  .learn-feature a:hover {
    box-shadow: var(--elevation-2);
  }
}
.learn-feature a:focus-visible,
.learn-group-head a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.learn-feature-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 28px 28px;
}
.learn-eyebrow {
  color: var(--accent-text);
  font-size: var(--text-footnote);
}
.learn-feature-title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.learn-feature.lead .learn-feature-title {
  max-width: 22ch;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.learn-card-summary {
  max-width: 56ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
.learn-meta {
  margin-top: auto;
  padding-top: 12px;
  color: var(--muted);
  font-size: var(--text-footnote);
}

/*
 * The stage. The floor is the comparison pixel art tilted away from the viewer, fading into
 * the distance; the slip stands on it on a two-sheet stack with a soft contact shadow.
 */
.learn-stage {
  position: relative;
  height: 260px;
  display: grid;
  place-items: center;
  perspective: 900px;
  perspective-origin: 50% 0%;
  overflow: hidden;
}
.learn-floor {
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: 0;
  height: 140%;
  background: url('/design/comparison-pixels.svg#still') 0 0 / 300px 233px repeat;
  transform: rotateX(56deg);
  transform-origin: 50% 100%;
  /* Fades into the distance and toward the words below, so the tile has no seam. */
  /* prettier-ignore */
  mask-image: linear-gradient(to top, transparent 0%, #000 22%, #000 40%, transparent 92%); /* token-exempt: mask alpha, not a colour */
  pointer-events: none;
}
.learn-feature + .learn-feature .learn-floor {
  background-position: -140px -90px;
}
@media (hover: hover) {
  .learn-feature a:is(:hover, :focus-visible) .learn-floor {
    background-image: url('/design/comparison-pixels.svg');
  }
}
.learn-slip {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px 24px 20px;
  border-top: 2px solid var(--ink);
  border-radius: 2px 2px var(--radius-s) var(--radius-s);
  background: light-dark(var(--card), var(--band));
  box-shadow: var(--elevation-3);
  transform: translateY(-8px);
}
/* Two sheets under the slip, so it reads as the top of a small stack. */
.learn-slip::before,
.learn-slip::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: light-dark(var(--card), var(--band));
  box-shadow: var(--elevation-1);
}
.learn-slip::before {
  transform: translate(6px, 6px) rotate(1.5deg);
}
.learn-slip::after {
  transform: translate(12px, 12px) rotate(3deg);
  opacity: 0.7;
}

.learn-figure-label {
  color: var(--muted);
  font-size: var(--text-footnote);
}
.learn-figure-value {
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.learn-feature:not(.lead) .learn-figure-value {
  font-size: clamp(36px, 3.6vw, 48px);
}

/* Categories: a 2px rule opens each, as Key facts does; articles sit on hairlines. */
.learn-group {
  display: grid;
  gap: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.learn-group-head {
  display: grid;
  gap: 8px;
  align-content: start;
}
.learn-group > h2,
.learn-group-head h2,
.learn-related h2 {
  margin: 0;
  /* A step under section titles, from the same token so the two scale together. */
  font-size: max(24px, calc(var(--title-section) * 0.62));
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.learn-group-head h2 a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  text-decoration: none;
}
.learn-group-head h2 a svg {
  color: var(--muted);
}

.learn-group-head p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
/* Every article list is the same tiles: one column on phones, two from 720px, three from 1024px. */
.learn-tiles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}
.learn-tiles .learn-stage {
  height: 220px;
}
/* Smaller tiles stage the same objects a little smaller. */
.learn-tiles .learn-stage > :not(.learn-floor) {
  scale: 0.82;
}
.learn-tiles .learn-feature-text {
  padding: 0 24px 24px;
}
@media (min-width: 720px) {
  .learn-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .learn-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.learn-draft {
  color: var(--amber);
}

/* Articles. */
.doc-head .learn-summary {
  margin: 0 0 16px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.learn-byline {
  color: var(--muted);
  font-size: var(--text-footnote);
}
.doc-head .learn-byline {
  margin: 0;
}
.learn-byline a {
  color: var(--muted);
}
/* "3 min read" and the date stay whole: a phone line never ends on "min" with "read" below. */
.learn-byline time,
.learn-byline-part {
  white-space: nowrap;
}
.learn-article > .doc-head {
  position: relative;
  isolation: isolate;
}
/* Behind the title: the floor alone, receding from the top right. */
.learn-article > .doc-head > .learn-stage {
  position: absolute;
  inset: -64px 0 auto auto;
  width: min(560px, 70%);
  height: 340px;
  z-index: -1;
  /* prettier-ignore */
  mask-image: radial-gradient(ellipse at 100% 0%, #000 25%, transparent 72%); /* token-exempt: mask alpha, not a colour */
}
.learn-article > .doc-head > .learn-stage .learn-slip {
  display: none;
}
/* On phones the title needs the whole width to itself. */
@media (max-width: 719px) {
  .learn-article > .doc-head > .learn-stage {
    display: none;
  }
}
.doc h3 {
  margin: 28px 0 8px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
}
.doc ol {
  margin: 0 0 18px;
  padding-left: 1.4em;
  display: grid;
  gap: 12px;
  max-width: 75ch;
}
.learn-article .doc h2 {
  margin-top: 56px;
}
.learn-table {
  margin: 0 0 24px;
  overflow-x: auto;
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--elevation-1);
}
.learn-table:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.learn-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-callout);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.learn-table th,
.learn-table td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.learn-table thead th {
  background: var(--band);
  font-weight: 500;
}
.learn-table tbody th {
  font-weight: 500;
}
.learn-table tr:last-child > * {
  border-bottom: 0;
}
.learn-next {
  margin-top: 40px;
}
.learn-related {
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

/* Reading progress: a 2px accent line along the top edge, driven by scroll where supported. */
.learn-progress {
  display: none;
}
@supports (animation-timeline: scroll()) {
  .learn-progress {
    display: block;
    position: fixed;
    inset: 0 0 auto;
    height: 2px;
    z-index: 30;
    background: var(--accent);
    transform-origin: 0 50%;
    animation: learn-progress linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes learn-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (min-width: 720px) {
  .learn-stage {
    height: 300px;
  }
  .learn-feature-text {
    padding: 0 36px 36px;
  }
}
@media (min-width: 1024px) {
  .learn-features:has(> li:nth-child(2)) {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
  .learn-feature.lead .learn-stage {
    height: 340px;
  }
  .learn-feature:not(.lead) .learn-stage {
    height: 340px;
  }
  .learn-article.has-toc > .doc-head {
    grid-area: 1 / 2;
  }
  .learn-article.has-toc > .doc {
    grid-area: 2 / 2;
  }
  .learn-article.has-toc > .doc-toc {
    grid-row: 2 / 3;
  }
  .learn-article.has-toc > .learn-related {
    grid-area: 3 / 2;
  }
}

/*
 * Dark: the light-tinted pixel art turns grey on dark paper, so the floor is drawn in the
 * accent text colour through the art's own shape instead: blue pixels, same pattern.
 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .learn-floor {
    background: var(--accent);
    mask-image:
      url('/design/comparison-pixels.svg#still'),
      linear-gradient(to top, transparent 0%, #000 22%, #000 40%, transparent 92%); /* token-exempt: mask alpha, not a colour */
    mask-size:
      300px 233px,
      100% 100%;
    mask-repeat: repeat, no-repeat;
    mask-composite: intersect;
    opacity: 0.6;
  }
}
:root[data-theme='dark'] .learn-floor {
  background: var(--accent);
  mask-image:
    url('/design/comparison-pixels.svg#still'),
    linear-gradient(to top, transparent 0%, #000 22%, #000 40%, transparent 92%); /* token-exempt: mask alpha, not a colour */
  mask-size:
    300px 233px,
    100% 100%;
  mask-repeat: repeat, no-repeat;
  mask-composite: intersect;
  opacity: 0.6;
}

/* Tiles, groups and related rows rise in as they enter the view; nothing moves under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .learn-group,
    .learn-features > li,
    .learn-related {
      animation: learn-rise linear both;
      animation-timeline: view();
      /* Done within the first quarter of entry, so text in view is never left faded (WCAG 1.4.3). */
      animation-range: entry 0% entry 25%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  @media (hover: hover) {
    .learn-feature a:is(:hover, :focus-visible) .learn-floor {
      background-image: url('/design/comparison-pixels.svg#still');
    }
  }
}
@keyframes learn-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/*
 * Scene: limits. Three blocks of true proportion standing on the floor, drawn as solid
 * isometric boxes in the accent: a front face, a lit top and a shaded side.
 */
.learn-limits {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 3vw, 36px);
  transform: translateY(-12px);
}
.learn-limit {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.learn-limit-value {
  margin-bottom: 14px;
  margin-right: 12px;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.learn-limit-block {
  position: relative;
  width: clamp(40px, 4.4vw, 56px);
  height: calc(var(--share) * clamp(96px, 11vw, 150px));
  min-height: 12px;
  margin-right: 12px;
  background: linear-gradient(
    180deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 82%, var(--inverse))
  );
  box-shadow: var(--elevation-2);
  transform-origin: 50% 100%;
}
.learn-limit-block::before,
.learn-limit-block::after {
  content: '';
  position: absolute;
}
/* The lit top face. */
.learn-limit-block::before {
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
  background: color-mix(in srgb, var(--accent) 60%, var(--on-accent));
  transform: skewX(-45deg);
  transform-origin: 0 100%;
}
/* The shaded side face. */
.learn-limit-block::after {
  top: 0;
  bottom: 0;
  left: 100%;
  width: 12px;
  background: color-mix(in srgb, var(--accent) 70%, var(--inverse));
  transform: skewY(-45deg);
  transform-origin: 0 0;
}
.learn-limit-label {
  margin-right: 12px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--card);
  box-shadow: var(--elevation-1);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* Scene: document. The named paper on a second sheet, one line marked as the one to read. */
.learn-docs {
  position: relative;
  width: clamp(140px, 13vw, 170px);
  aspect-ratio: 0.77;
  transform: translateY(16px);
}
.learn-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  border-top: 2px solid var(--ink);
  border-radius: 2px 2px var(--radius-s) var(--radius-s);
  background: light-dark(var(--card), var(--band));
  box-shadow: var(--elevation-3);
  transform: rotate(3deg);
}
.learn-page.back {
  border-top-color: var(--line-strong);
  box-shadow: var(--elevation-1);
  transform: translate(-28px, 10px) rotate(-7deg);
}
.learn-page-title {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
}
.learn-page-line {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--line);
}
.learn-page-line.short {
  width: 62%;
}
.learn-page-line.mark {
  height: 14px;
  margin-inline: -6px;
  border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--accent) 28%, var(--card));
  box-shadow: inset 3px 0 0 var(--accent);
}

/* An article with a scene opens with it, full width under the byline, like a hero image. */
.learn-hero {
  margin-top: 32px;
  overflow: hidden;
  border-radius: var(--radius-l);
  /* Dark: one surface step above the page, with a hairline edge, so the tile reads as an object. */
  background: linear-gradient(
    180deg,
    light-dark(var(--highlight), var(--band)),
    light-dark(color-mix(in srgb, var(--highlight) 55%, var(--card)), var(--highlight))
  );
  outline: 1px solid light-dark(transparent, color-mix(in srgb, var(--ink) 10%, transparent));
  outline-offset: -1px;
}
.learn-hero .learn-stage {
  height: clamp(240px, 26vw, 320px);
}

/* Footer: product, connection and trust links on the inverse surface. */
.marketing-footer {
  background: var(--inverse);
  color: var(--on-inverse);
  padding: 88px var(--gutter) 48px;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, max-content));
  gap: 56px;
  max-width: 1280px;
  margin-inline: auto;
}
.footer-invitation {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
  max-width: 400px;
  min-width: 0;
}
.footer-wordmark {
  color: var(--on-inverse);
  text-decoration: none;
  font-size: 44px;
  font-weight: 500;
  line-height: 52px;
  letter-spacing: -0.05em;
}
.footer-wordmark span {
  color: var(--brand-mark);
}
.footer-invitation p {
  margin: 0;
  font-size: 17px;
  line-height: 26px;
  color: var(--on-inverse);
}
.footer-contact {
  color: var(--on-inverse-accent);
  font-size: var(--text-body);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 16px;
  min-width: 0;
  max-width: 220px;
}
/* h2: the footer's groups follow the page's own h1 and h2s without skipping a level. */
.footer-column h2 {
  margin: 0 0 4px;
  font-size: var(--text-footnote);
  font-weight: 500;
  line-height: 20px;
  color: var(--on-inverse-muted);
}
.footer-column a {
  color: inherit;
  font-size: var(--text-callout);
  line-height: 20px;
  text-decoration: none;
  text-underline-offset: 5px;
}
@media (hover: hover) {
  .footer-column a:hover,
  .footer-bottom a:hover {
    text-decoration: underline;
  }
}
@media (hover: hover) {
  .footer-contact:hover {
    text-decoration-thickness: 2px;
  }
}
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  margin: 72px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--inverse-line);
  color: var(--on-inverse-muted);
  font-size: var(--text-footnote);
}
.footer-bottom p {
  margin: 0 auto 0 0;
}
.footer-bottom a {
  color: var(--on-inverse);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 5px;
}
/* Translated pages (web.spec.md, Languages): the insurance-documents disclosure above the footer's last row. */
.footer-disclosure {
  max-width: 1280px;
  margin: 32px auto 0;
  color: var(--on-inverse-muted);
  font-size: 13px;
  line-height: 1.5;
}
/* A translated document page says first that the English version governs. */
.doc-translation-note {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--muted);
  font-size: var(--text-callout);
  line-height: 1.5;
}
.marketing-footer .theme-toggle {
  color: var(--on-inverse-muted);
  border-color: color-mix(in srgb, var(--on-inverse) 24%, transparent);
}
.marketing-footer :focus-visible {
  outline-color: currentColor;
  outline-offset: 5px;
}
@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 32px;
  }
  .footer-invitation {
    grid-column: 1 / -1;
    max-width: 520px;
  }
  .footer-column {
    max-width: none;
  }
}
/* Phones (Paper, Home · 390): one column, the groups one under another. */
@media (max-width: 600px) {
  .marketing-footer {
    padding: 64px var(--gutter) 40px;
  }
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: start;
    gap: 16px;
    margin-top: 48px;
  }
}
/* Phones and any touch screen (a tablet's footer too): every footer link is a 44px target. */
@media (max-width: 760px), (pointer: coarse) {
  .footer-column {
    gap: 4px;
  }
  .footer-column a,
  .footer-bottom a,
  .footer-contact {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* The assistants InsurWatch works in: a muted label, a short divider, then their marks. */
.works-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.works-with p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-footnote);
  line-height: 20px;
}
.works-with ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
/* Under 360px the marks wrap below the label, so the divider would lead a row of its own. */
@media (max-width: 359px) {
  .works-with ul {
    padding-left: 0;
    border-left: 0;
  }
}
.works-with li {
  display: inline-flex;
  align-items: center;
  font-size: 26px;
  line-height: 1;
}
.works-with .mark {
  width: 1em;
  height: 1em;
  flex: none;
}
/* OpenAI's Blossom takes the text color, so it reads in light and dark. Its file
   carries the required clear space, so the box is larger and the margin gives it back. */
.works-with .mark.blossom {
  width: 2.2em;
  height: 2.2em;
  margin: -0.6em;
  background: currentColor;
  mask: url('/logos/openai-blossom.svg') center / contain no-repeat;
}
/* Grok swaps to its light mark in dark mode. */
.on-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .on-light {
    display: none;
  }
  :root:not([data-theme='light']) .on-dark {
    display: block;
  }
}
:root[data-theme='dark'] .on-light {
  display: none;
}
:root[data-theme='dark'] .on-dark {
  display: block;
}

/*
/*
 * The waitlist page (web.spec.md, Waitlist page): one picture, one promise, one action. The
 * headline and the action share the first row on wide screens; the scene of cars waiting at the
 * lookout spans the content width under them (logo to header button), cropped on a phone to the
 * front of the line, the car under the coral lamp. The art keeps its own colours in both schemes
 * on a rounded panel, as the funnel shows it (chat.spec.md, Scene art).
 */
.waitlist-hero {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(40px, 6vw, 96px);
}
.waitlist-hero h1 {
  font-size: var(--title-page);
  line-height: 1.08;
}
.waitlist-hero h1 span {
  display: block;
}
.waitlist-hero h1 span:last-child {
  color: var(--muted);
}
.waitlist-action {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.waitlist-action > p {
  margin: 0;
}
.waitlist-action .lede {
  max-width: 40ch;
  color: var(--muted);
  font-size: var(--text-headline);
  line-height: 1.55;
}
.waitlist-form {
  display: grid;
  gap: 8px;
}
.waitlist-form label {
  font-size: var(--text-footnote);
  color: var(--muted);
}
.waitlist-field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.waitlist-field input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 56px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  caret-color: var(--accent);
  font: inherit;
  font-size: var(--text-headline);
}
@media (hover: hover) {
  .waitlist-field input:hover {
    border-color: var(--ink);
  }
}
.waitlist-field input[aria-invalid='true'] {
  border-color: var(--amber);
}
.waitlist-field .pill {
  flex: 1 1 auto;
  min-height: 56px;
}
.waitlist-field .pill:disabled {
  cursor: progress;
  background: var(--accent-hover);
}
.waitlist-form .turnstile[hidden],
.waitlist-status:empty {
  display: none;
}
.waitlist-status {
  margin: 4px 0 0;
  font-size: var(--text-footnote);
}
.waitlist-note {
  max-width: 44ch;
  color: var(--muted);
  font-size: var(--text-footnote);
  line-height: 1.5;
}
.waitlist-open .pill {
  min-height: 56px;
}
.waitlist-scene {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  background: var(--band);
}
.waitlist-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 100%;
}
.waitlist-next {
  display: grid;
  gap: 24px;
  padding: 0 var(--gutter) clamp(80px, 11vw, 168px);
}
.waitlist-next h2 {
  margin: 0;
  font-size: var(--title-section);
}
@media (min-width: 600px) {
  .waitlist-scene {
    aspect-ratio: 16 / 7;
  }
  .waitlist-scene img {
    object-position: 50% 100%;
  }
}
@media (min-width: 960px) {
  .waitlist-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: 64px;
  }
  .waitlist-hero h1 {
    grid-column: 1;
  }
  .waitlist-action {
    grid-column: 2;
  }
  .waitlist-scene {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  /* The scroll-linked hairline is off with the animations; keep the edge visible instead. */
  .site-header {
    box-shadow: 0 1px 0 var(--header-hairline);
  }
}

/* ── Home (A5) ── */
/* A headline's last word and its coral stop stay on one line (sections.ts `coralStop`). */
.stop-word {
  white-space: nowrap;
}
/* Motion (web.spec.md, Visual Design → Motion): one spring for arrivals and feedback, one smooth
   curve, one exit curve, three durations. Transform and opacity only; nothing moves under reduced
   motion. */
:root {
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 500ms;
}
/*
 * The shared iPhone and its light backdrop (web.spec.md, Visual Design → Phone and backdrop;
 * src/site/phone.ts `iPhone`, `phoneBackdrop`). The device is laid out at full size in points
 * (screen 393 by 852, 55pt corners, a 7pt bezel) and scaled as one by `--phone-scale`, so its
 * screen content scales with it; `.iw-phone` takes the scaled box, so the page lays it out at its
 * drawn size. Set `--phone-scale` on any ancestor to size it (the defaults sit on :root).
 */
:root {
  --phone-scale: 0.66;
  /* The closing photo's text and scrim: white on any scheme, the scrim in midnight. */
  --on-photo: #ffffff;
  --on-photo-muted: rgba(255, 255, 255, 0.88);
  --photo-ink: #061217;
  --photo-scrim-mid: rgba(6, 18, 23, 0.5);
  --photo-scrim: rgba(6, 18, 23, 0.72);
  /* The hero pixel field's teal steps (public/design/comparison-pixels.svg). */
  --pixel-bright: #63d2c7;
  --pixel-near: #3f9e97;
}
.iw-phone {
  position: relative;
  flex: none;
  border-radius: calc(62px * var(--phone-scale, 0.66));
  box-shadow: var(--elevation-3);
  width: calc(407px * var(--phone-scale, 0.66));
  height: calc(866px * var(--phone-scale, 0.66));
}
.iw-phone-device {
  position: absolute;
  top: 0;
  left: 0;
  width: 407px;
  height: 866px;
  padding: 7px;
  border-radius: 62px;
  background: var(--ink);
  transform: scale(var(--phone-scale, 0.66));
  transform-origin: 0 0;
}
.iw-phone-button {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: var(--ink);
}
.iw-phone-button[data-button='action'] {
  left: -3px;
  top: 128px;
  height: 34px;
}
.iw-phone-button[data-button='up'] {
  left: -3px;
  top: 190px;
  height: 64px;
}
.iw-phone-button[data-button='down'] {
  left: -3px;
  top: 268px;
  height: 64px;
}
.iw-phone-button[data-button='power'] {
  right: -3px;
  top: 220px;
  height: 100px;
}
.iw-phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 393px;
  height: 852px;
  overflow: hidden;
  border-radius: 55px;
  background: var(--card);
}
.iw-phone-status {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 4px 30px 0 52px;
  color: var(--ink);
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
}
.iw-phone-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.iw-phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 126px;
  height: 37px;
  margin-left: -63px;
  border-radius: var(--radius-full);
  background: var(--ink);
}
.iw-phone-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.iw-phone-frame {
  display: block;
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  color-scheme: light;
}
.iw-phone-home {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 140px;
  height: 5px;
  margin-left: -70px;
  border-radius: var(--radius-full);
  background: var(--ink);
}
/* The backdrop: a plain panel that holds the phone over the hero's staggered pixel field
   (landing-aura.css, .hero-pixels; Imran, 2026-11-13). No radius, no line, no shadow. */
.iw-backdrop {
  --backdrop-frame: 40px;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: var(--backdrop-frame);
  background: var(--paper);
}
.iw-backdrop-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--paper);
}
/* The field: wider and taller than the device, so it peeks out on every side and fades out. */
.iw-backdrop .hero-pixels {
  left: 50%;
  top: 50%;
  inset-inline-end: auto;
  width: calc(407px * var(--phone-scale, 0.66) + 280px);
  height: calc(866px * var(--phone-scale, 0.66) + 200px);
  transform: translate(-50%, -50%);
  z-index: -1;
}
@media (max-width: 1000px) {
  :root {
    --phone-scale: 0.62;
  }
  .iw-backdrop {
    --backdrop-frame: 16px;
  }
  .iw-backdrop-panel {
    padding: 24px 16px;
  }
}
@media (max-width: 359px) {
  :root {
    --phone-scale: 0.53;
  }
}
/* ── end Home ── */

/* ── Assistant pages (A5) ─────────────────────────────────────────────────────────────────────
 * web.spec.md, Public pages → Assistant pages; Paper, A5 · InsurWatch in ChatGPT / in Claude
 * (1440 and 390): /chatgpt and /claude. Serif titles, whitespace between sections (no rules),
 * the title in a 440px column and its content in a 720px one on wide screens. The example
 * answer follows the prompts on phones and sits beside them on wide screens, as Paper's boards do.
 */
.assistant-layout {
  /* Page and section titles in the display face, 52–92px and 40–64px (Paper 390 / 1440). */
  --title-page: clamp(44px, calc(37px + 3.81vw), 92px);
  --title-section: clamp(40px, calc(31px + 2.29vw), 64px);
  /* The selected prompt's fill: A5's selection tint, from the accent and the ground. Replaced by
     the shared --selection-container role (intentSelectionContainer) when the coordinator adds it
     to :root and the dark blocks (eng audit S-3). */
  --selection-fill: color-mix(in srgb, var(--accent) 12%, var(--paper));
  padding: 28px var(--gutter) 64px;
  display: grid;
  row-gap: 64px;
}
.assistant-hero {
  display: grid;
  gap: 48px;
  align-items: center;
}
.assistant-hero-copy {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.assistant-hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: var(--title-page);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.assistant-hero .lede {
  max-width: 520px;
  font-size: var(--text-headline);
  line-height: 1.5;
}
.assistant-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-footnote);
  line-height: 20px;
}
.assistant-marks {
  display: inline-flex;
  color: var(--ink);
  font-size: 18px;
}
.assistant-card-title {
  font-size: 22px;
}
.assistant-hero .mark {
  width: 1em;
  height: 1em;
  flex: none;
}
/* OpenAI's Blossom takes the text color; its file carries clear space, as in .works-with. */
:is(.assistant-hero, .assistant-example) .mark.blossom {
  width: 2em;
  height: 2em;
  margin: -0.5em;
  background: currentColor;
  mask: url('/logos/openai-blossom.svg') center / contain no-repeat;
}
.assistant-actions {
  display: grid;
  gap: 10px;
  margin: 0;
}
.assistant-actions .pill {
  min-height: 56px;
  padding-inline: 28px;
  font-size: 17px;
}
.assistant-actions .pill.tonal {
  gap: 10px;
  background: var(--highlight);
  color: var(--ink);
}
.assistant-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-footnote);
  line-height: 20px;
}
/* The one thing a person adds: a white card on a hairline, lifted. */
.assistant-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--elevation-2);
}
.assistant-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.assistant-card-title span {
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
}
.assistant-card-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--text-callout);
  line-height: 22px;
}
.connector-url-label {
  margin: 0 0 8px;
  font-size: var(--text-footnote);
  line-height: 18px;
}
/* The URL on a mist pill, the Copy button a white pill inside it. */
.connector-url-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 4px 4px 4px 16px;
  border-radius: var(--radius-full);
  background: var(--highlight);
}
.connector-url-row code {
  min-width: 0;
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.connector-url-row .pill {
  flex: none;
  /* A 48px target on phones too (the workboard's tap size). */
  min-height: 48px;
  padding-inline: 16px;
  border-color: transparent;
  background: var(--paper);
}
/* Under 360px the URL keeps its line and Copy moves under it. */
@media (max-width: 359px) {
  .connector-url-row {
    flex-wrap: wrap;
    padding: 12px 12px 12px 16px;
    border-radius: var(--radius-l);
  }
}
.connector-url-status {
  margin: 4px 0 0;
  min-height: 1.5em;
  color: var(--muted);
  font-size: var(--text-footnote);
}
.connector-url-status:empty {
  min-height: 0;
}
.assistant-section {
  display: grid;
  gap: 20px;
}
.assistant-section h2 {
  margin: 0;
  max-width: 440px;
  font-size: var(--title-section);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.assistant-section-body {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.assistant-section-body p {
  margin: 0;
  max-width: 65ch;
  font-size: var(--text-body);
  line-height: 24px;
}
.assistant-section-body a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
/* Hover only where there is a pointer that hovers. */
@media (hover: hover) {
  .assistant-actions .pill.tonal:hover,
  .connector-url-row .pill:hover {
    background: var(--neutral-fill);
  }
  .assistant-section-body a:hover {
    text-decoration-thickness: 2px;
  }
}
.assistant-plans,
.assistant-other {
  color: var(--muted);
}
.assistant-links {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}
/* Steps: a numbered timeline. Each number sits in a 32px circle (ink on mist, every step alike), one thin line in the line role joins the circles and ends at the last one, and the title
   sits beside its number with the body below. The numbers come from the list (a counter whose
   alternative text is empty, so it is not read); the list keeps its semantics in Safari through
   an empty marker instead of list-style: none. The steps never sit side by side, so the line is
   vertical at every width. */
.assistant-steps {
  margin: 0;
  padding: 0;
  list-style-type: '\200B';
  counter-reset: step;
}
.assistant-steps > li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 16px;
  padding-bottom: 24px;
}
.assistant-steps > li:last-child {
  padding-bottom: 0;
}
.assistant-steps > li::before {
  content: counter(step);
  content: counter(step) / '';
  grid-row: 1 / span 2;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--highlight);
  color: var(--ink);
  font-size: var(--text-callout);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* The line from this circle to the next one: the segments meet into one line. */
.assistant-steps > li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  bottom: 0;
  left: calc(16px - 0.75px);
  width: 1.5px;
  background: var(--line);
  transform-origin: top;
}
.assistant-step-title {
  margin: 0;
  padding-top: 4px;
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 24px;
}
.assistant-step-body {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 24px;
}
.assistant-step-body strong {
  color: var(--ink);
  font-weight: 500;
}
/* As each step scrolls in, its number fades in and its line draws down to the next number, once
   per pass and never looping; nothing moves under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .assistant-steps > li {
      view-timeline: --assistant-step block;
    }
    .assistant-steps > li::before {
      animation: assistant-step-in linear both;
      animation-timing-function: var(--ease-smooth, ease-out);
      animation-timeline: --assistant-step;
      animation-range: entry 0% entry 60%;
    }
    .assistant-steps > li:not(:last-child)::after {
      animation: assistant-step-line linear both;
      animation-timing-function: var(--ease-smooth, ease-out);
      animation-timeline: --assistant-step;
      animation-range: entry 60% contain 15%;
    }
  }
}
@keyframes assistant-step-in {
  from {
    opacity: 0;
  }
}
@keyframes assistant-step-line {
  from {
    transform: scaleY(0);
  }
}
.assistant-section-body > .connector-url {
  margin-top: 6px;
}
/* Then ask: the prompts as quiet bubbles under the title; the example answer beside them. */
.assistant-ask-copy {
  display: grid;
  align-content: start;
  gap: 24px;
  min-width: 0;
}
.assistant-prompts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.assistant-prompts li {
  padding: 14px 20px;
  border-radius: 22px;
  background: var(--highlight);
  font-size: var(--text-body);
  line-height: 24px;
}
@media (min-width: 960px) {
  .assistant-layout {
    padding: 76px var(--gutter) 144px;
    row-gap: 128px;
  }
  .assistant-hero {
    grid-template-columns: minmax(0, 700px) minmax(360px, 470px);
    justify-content: space-between;
    column-gap: 48px;
    padding-bottom: 24px;
  }
  .assistant-hero-copy {
    gap: 32px;
  }
  .assistant-hero .lede {
    font-size: var(--text-title-3);
    line-height: 30px;
  }
  .assistant-eyebrow {
    gap: 10px;
    font-size: var(--text-callout);
  }
  .assistant-marks {
    font-size: 20px;
  }
  .assistant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .assistant-card {
    padding: 24px;
  }
  .connector-url-row {
    padding-left: 20px;
  }
  .connector-url-row code {
    font-size: var(--text-callout);
    line-height: 20px;
  }
  .connector-url-row .pill {
    padding-inline: 18px;
  }
  .assistant-card-title span {
    font-size: var(--text-headline);
  }
  .assistant-section {
    grid-template-columns: minmax(0, 440px) minmax(0, 720px);
    justify-content: space-between;
    column-gap: 48px;
  }
  .assistant-section-body {
    gap: 20px;
  }
  .assistant-section-body p {
    font-size: 17px;
    line-height: 27px;
  }
  .assistant-section-body > .assistant-plans {
    margin-bottom: 12px;
    line-height: 26px;
  }
  .assistant-steps > li {
    column-gap: 20px;
    padding-bottom: 28px;
  }
  .assistant-step-title,
  .assistant-step-body {
    font-size: 17px;
    line-height: 26px;
  }
  .assistant-step-title {
    padding-top: 3px;
  }
  .assistant-ask-copy {
    gap: 40px;
  }
  .assistant-prompts {
    justify-items: start;
  }
  .assistant-prompts li {
    font-size: 17px;
  }
}
/* The prompt the example answers is selected: the selection tint and a teal ring. */
.assistant-ask[data-example='1'] .assistant-prompts > li:nth-child(1),
.assistant-ask[data-example='2'] .assistant-prompts > li:nth-child(2),
.assistant-ask[data-example='3'] .assistant-prompts > li:nth-child(3) {
  background: var(--selection-fill);
  outline: 1.5px solid var(--accent-text);
  outline-offset: -1.5px;
}
.assistant-example {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  overflow: clip;
}
.assistant-example-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding-inline: 20px;
  color: var(--muted);
  font-size: var(--text-footnote);
}
.assistant-example-host {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.assistant-example .mark {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--ink);
  font-size: 16px;
}
.assistant-example-chat {
  display: grid;
  gap: 12px;
  padding: 20px 16px 24px;
}
.assistant-example-ask {
  justify-self: end;
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--highlight);
  font-size: var(--text-body);
  line-height: 22px;
}
/* InsurWatch's name over its reply, as the host labels a connector's answer. */
.assistant-example-from {
  margin: 0;
  font-size: var(--text-callout);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 18px;
}
.assistant-example-from span {
  color: var(--brand-mark);
}
.assistant-example-card {
  width: min(100%, 460px);
  container: assistant-card / inline-size;
}
/* The shared card frame (always light), at the card's height, reserved up front so nothing
   shifts (no script resizes it; site.js sizes only the home page's frames). The height follows
   the frame's width: the 3-insurer panel draws 799px
   tall in a 270px frame, 639px at 296, 601px at 314, 520px at 386 and 502px from 416. */
.assistant-example-frame {
  display: block;
  width: calc(100% + 24px);
  height: 830px;
  margin: -12px;
  border: 0;
  background: transparent;
  color-scheme: light;
}
@container assistant-card (min-width: 272px) {
  .assistant-example-frame {
    height: 680px;
  }
}
@container assistant-card (min-width: 290px) {
  .assistant-example-frame {
    height: 604px;
  }
}
@container assistant-card (min-width: 362px) {
  .assistant-example-frame {
    height: 522px;
  }
}
@container assistant-card (min-width: 392px) {
  .assistant-example-frame {
    height: 504px;
  }
}
.assistant-example-reply {
  max-width: 560px;
  margin: 0;
  font-size: var(--text-body);
  line-height: 24px;
}
@media (min-width: 960px) {
  .assistant-example-chat {
    padding: 28px 32px 32px;
  }
}
/* ── end Assistant pages ── */

/* ── Learn (A5) ── */
/*
 * Learn hub, topic, writer and article pages (web.spec.md, Learn, A5). Text-only tiles with a
 * --line outline, the display face for titles, a 680px reading column. Class names are new
 * (learn-hub, learn-tile, learn-read…), so the retired Learn rules above match nothing here.
 */
.learn-hub,
.learn-read {
  --learn-wash: color-mix(in srgb, var(--accent) 12%, var(--paper));
  --learn-ease-spring: var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1));
  --learn-ease-smooth: var(--ease-smooth, cubic-bezier(0.25, 0.46, 0.45, 0.94));
  font-variant-numeric: tabular-nums;
}

/* The breadcrumb: muted words, links underlined in --line; 44px rows on touch screens. */
.learn-trail ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  color: var(--muted);
  font-size: var(--text-footnote);
  line-height: 20px;
}
.learn-trail li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.learn-trail li + li::before {
  content: '/';
}
.learn-trail a {
  color: var(--muted);
  text-decoration: underline 1px var(--line);
  text-underline-offset: 3px;
}
.learn-trail a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
.learn-trail a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (pointer: coarse) {
  .learn-trail a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Hub head: the large title and its line on the left, the topics on the right. */
.learn-hub {
  --title-page: clamp(88px, 10.6vw, 152px);
  --title-section: clamp(40px, 3.9vw, 56px);
}
.learn-hub.is-sub {
  --title-page: clamp(48px, 6.1vw, 88px);
}
.learn-hub > .learn-trail {
  padding: clamp(20px, 4.4vw, 64px) var(--gutter) 0;
}
.learn-hub-head {
  padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.learn-hub.is-sub .learn-hub-head {
  padding-top: 20px;
}
.learn-hub-title {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.learn-hub-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: var(--title-page);
  line-height: 0.92;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.learn-hub-head p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 26px;
}
.learn-stop {
  display: inline-block;
  color: var(--brand-mark);
  transform-origin: 50% 85%;
}
@media (prefers-reduced-motion: no-preference) {
  .learn-stop {
    animation: learn-stop-pop 500ms var(--learn-ease-spring) 240ms both;
  }
}
@keyframes learn-stop-pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
}

/* Topics: outlined pills; on phones one row that scrolls sideways, each a 48px target. */
.learn-pills ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
}
.learn-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--ink);
  font-size: var(--text-callout);
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}
.learn-pills a:hover {
  background: var(--highlight);
}
.learn-pills a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 719px) {
  .learn-pills {
    margin-inline: calc(-1 * var(--gutter));
  }
  .learn-pills ul {
    overflow-x: auto;
    padding: 4px var(--gutter);
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .learn-pills ul::-webkit-scrollbar {
    display: none;
  }
  .learn-pills li {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}
@media (min-width: 720px) {
  .learn-hub-head p {
    font-size: 22px;
    line-height: 30px;
  }
  .learn-hub-title {
    gap: 12px;
  }
  .learn-pills ul {
    flex-wrap: wrap;
  }
  .learn-pills a {
    min-height: 44px;
  }
}
@media (min-width: 900px) {
  .learn-hub-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 64px;
  }
  .learn-hub-head .learn-pills {
    padding-bottom: 4px;
  }
  .learn-pills ul {
    justify-content: flex-end;
  }
}

/* Tiles: the cover, then the words; white, a --line outline, 16px corners. */
.learn-lead-row ul,
.learn-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.learn-lead-row {
  padding: 0 var(--gutter) clamp(48px, 7.8vw, 112px);
}
.learn-tile {
  min-width: 0;
}
.learn-tile a {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}
.learn-tile-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}
.learn-tile a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (hover: hover) {
  .learn-tile a:hover {
    border-color: color-mix(in srgb, var(--line) 40%, var(--line-strong));
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .learn-tile a {
    transition: transform 240ms var(--learn-ease-smooth);
  }
  .learn-tile a:hover {
    transform: translateY(-2px);
  }
}
.learn-tile-topic,
.learn-tile-time {
  color: var(--muted);
  font-size: var(--text-footnote);
  line-height: 20px;
}
.learn-tile-title {
  color: var(--ink);
  font-size: 26px;
  line-height: 28px;
  text-wrap: pretty;
}
.learn-tile-text {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 24px;
  text-wrap: pretty;
}
.learn-tile-time {
  display: none;
}
/* The lead tile keeps its own reading time below; phones put the others' beside the topic. */
.learn-tile.is-lead .learn-tile-body {
  gap: 12px;
  padding: 24px 20px;
}
.learn-tile.is-lead .learn-tile-title {
  font-size: 32px;
  line-height: 34px;
  letter-spacing: -0.01em;
}
.learn-tile.is-lead .learn-tile-inline-time {
  display: none;
}
.learn-tile.is-lead .learn-tile-time {
  display: block;
  padding-top: 4px;
}
@media (min-width: 720px) {
  .learn-lead-row ul,
  .learn-grid {
    gap: clamp(24px, 2.8vw, 40px);
  }
  .learn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .learn-tile-body {
    gap: 10px;
    padding: 28px 32px 32px;
  }
  .learn-tile-inline-time {
    display: none;
  }
  .learn-tile-time {
    display: block;
    margin-top: auto;
    padding-top: 6px;
  }
  .learn-tile-title {
    font-size: 30px;
    line-height: 33px;
    letter-spacing: -0.01em;
  }
  .learn-tile.is-lead .learn-tile-body,
  .learn-tile.is-featured .learn-tile-body {
    gap: 12px;
    padding: 32px 40px 40px;
  }
  .learn-tile.is-lead .learn-tile-title {
    font-size: clamp(40px, 3.4vw, 48px);
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .learn-tile.is-featured .learn-tile-title {
    font-size: 40px;
    line-height: 42px;
    letter-spacing: -0.02em;
  }
  .learn-tile.is-lead .learn-tile-text,
  .learn-tile.is-featured .learn-tile-text {
    font-size: 17px;
    line-height: 26px;
  }
  .learn-tile.is-lead .learn-tile-time,
  .learn-tile.is-featured .learn-tile-time {
    padding-top: 8px;
  }
}
@media (min-width: 900px) {
  .learn-lead-row ul:has(> li:nth-child(2)) {
    grid-template-columns: minmax(0, 19fr) minmax(0, 12fr);
  }
  /* The narrower featured tile's cover takes the extra height, so both tiles' words line up. */
  .learn-lead-row .learn-tile .learn-cover {
    flex: 1 0 auto;
  }
  .learn-lead-row .learn-tile-body {
    flex: 0 0 auto;
  }
}
@media (min-width: 1024px) {
  .learn-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* All articles: the section title, then the grid. */
.learn-all {
  padding: 0 var(--gutter) clamp(64px, 10vw, 144px);
  display: grid;
  gap: clamp(20px, 2.8vw, 40px);
}
.learn-all > h2,
.learn-more > h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--title-section);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
@media (min-width: 720px) {
  .learn-all {
    padding-top: 24px;
  }
}

/* Article head. */
.learn-read {
  --title-page: clamp(42px, 5vw, 72px);
}
.learn-read-head {
  padding: clamp(20px, 4.4vw, 64px) var(--gutter) clamp(28px, 2.8vw, 40px);
  display: grid;
  gap: 16px;
}
.learn-read-head h1 {
  margin: 0;
  max-width: 880px;
  color: var(--ink);
  font-size: var(--title-page);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.learn-lede {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 26px;
}
.learn-by {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-footnote);
  line-height: 20px;
}
.learn-by a {
  color: var(--ink);
  text-decoration: underline 1px;
  text-underline-offset: 3px;
}
.learn-by a:hover {
  color: var(--accent-text);
}
.learn-by time,
.learn-by-time {
  white-space: nowrap;
}
.learn-by a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (min-width: 720px) {
  .learn-read-head {
    gap: 20px;
  }
  .learn-lede {
    font-size: 22px;
    line-height: 30px;
  }
  .learn-by {
    font-size: var(--text-callout);
  }
}

/* Covers: 16:9 on the mist ground, the same crop on the article and its tiles. */
.learn-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--highlight);
  overflow: hidden;
}
.learn-cover > picture,
.learn-cover img,
.learn-cover-art {
  display: block;
  width: 100%;
  height: 100%;
}
.learn-cover img {
  object-fit: cover;
}
.learn-read-cover {
  margin: 0;
  padding: 0 var(--gutter) clamp(40px, 5vw, 72px);
}
.learn-read-cover .learn-cover {
  max-width: 960px;
  border-radius: var(--radius-m);
}
/* The infographics draw with the role properties, so they follow light and dark. */
.learn-cover-art text {
  font-family: var(--font);
}
.cv-ground {
  fill: var(--highlight);
}
.cv-paper,
.cv-car .cv-body,
.cv-car .cv-wheel {
  fill: var(--card);
  stroke: var(--ink);
  stroke-width: 6px;
}
.cv-outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6px;
}
.cv-teal,
.cv-car.is-teal .cv-body,
.cv-car.is-teal .cv-wheel {
  fill: var(--accent);
  stroke: none;
}
.cv-car .cv-window {
  fill: var(--highlight);
  stroke: var(--ink);
  stroke-width: 5px;
}
.cv-car.is-teal .cv-window {
  fill: var(--on-accent);
  stroke: none;
}
.cv-car.is-dashed .cv-body,
.cv-line.is-dashed,
.cv-outline.is-dashed {
  fill: none;
  stroke-dasharray: 18 14;
}
.cv-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6px;
  stroke-linecap: round;
}
.cv-rule {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 10px;
  stroke-linecap: round;
}
.cv-dot {
  fill: var(--line-strong);
}
.cv-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10px;
  stroke-linejoin: round;
}
.cv-mark {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 12px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cv-ink {
  fill: var(--ink);
}
.cv-muted {
  fill: var(--muted);
}
.cv-accent {
  fill: var(--accent-text);
}
.cv-on-accent {
  fill: var(--on-accent);
}
.cv-figure {
  letter-spacing: -0.02em;
}

/* Limit lines: one shared scale, a teal line to each limit. */
.learn-lines {
  padding: 0 var(--gutter) clamp(40px, 5vw, 72px);
}
.learn-lines-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  --learn-label: 68px;
  --learn-label-gap: 10px;
}
.learn-lines-rows {
  width: 100%;
  max-width: calc(var(--learn-label) + var(--learn-label-gap) + 420px);
  display: grid;
}
.learn-line {
  display: grid;
  grid-template-columns: var(--learn-label) minmax(0, 1fr);
  gap: var(--learn-label-gap);
  height: 56px;
}
.learn-line-label {
  padding-top: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
  text-align: right;
}
.learn-line-track {
  position: relative;
}
.learn-line-tick {
  position: absolute;
  left: 0;
  top: 24px;
  width: 1.5px;
  height: 12px;
  background: var(--muted);
}
.learn-line-now {
  position: absolute;
  left: 0;
  top: 29px;
  width: calc(var(--now) * 100%);
  height: 1.5px;
  background: var(--accent);
  transform-origin: left center;
}
.learn-line-dot {
  position: absolute;
  top: 26px;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
}
.learn-line-dot {
  left: calc(var(--now) * 100% - 4.5px);
  background: var(--accent);
}
.learn-line-value {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  left: max(calc(var(--now) * 100%), 22px);
  top: 4px;
  color: var(--ink);
  font-size: var(--text-callout);
  line-height: 20px;
}
@media (min-width: 720px) {
  .learn-lines-panel {
    min-height: 320px;
    padding: 32px;
    --learn-label: 92px;
    --learn-label-gap: 16px;
  }
  .learn-line-label {
    font-size: var(--text-footnote);
  }
  .learn-line-value {
    font-size: var(--text-body);
  }
}
/* The lines draw out once, row by row; the values follow. */
@media (prefers-reduced-motion: no-preference) {
  .learn-line-now {
    animation: learn-line-draw 500ms var(--learn-ease-smooth) calc(160ms + var(--order) * 80ms) both;
  }
  .learn-line-dot,
  .learn-line-value {
    animation: learn-line-fade 240ms var(--learn-ease-smooth) calc(560ms + var(--order) * 80ms) both;
  }
}
@keyframes learn-line-draw {
  from {
    transform: scaleX(0);
  }
}
@keyframes learn-line-fade {
  from {
    opacity: 0;
  }
}

/* Article body: the contents rail beside a 680px reading column on wide screens. */
.learn-read-body {
  padding: 0 var(--gutter) clamp(64px, 6.7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 24px;
}
@media (min-width: 1024px) {
  .learn-read.has-toc .learn-read-body {
    grid-template-columns: 240px minmax(0, 680px);
    column-gap: clamp(40px, 5.5vw, 80px);
    align-items: start;
  }
  .learn-read .learn-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
.learn-read .learn-toc ol {
  margin: 0;
  gap: 4px;
}
.learn-read .learn-toc details ol {
  margin-top: 8px;
}
.learn-read .learn-toc .doc-toc-rail > p {
  margin: 0;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: var(--text-footnote);
  line-height: 20px;
}
.learn-read .learn-toc a {
  padding: 8px 12px;
  border-radius: var(--radius-s);
  color: var(--muted);
  font-size: var(--text-callout);
  line-height: 20px;
  transition: none;
}
.learn-read .learn-toc a:hover,
.learn-read .learn-toc a[aria-current='location'] {
  background: var(--highlight);
  color: var(--ink);
}
.learn-read .learn-toc a[aria-current='location']::before {
  content: none;
}
.learn-read .learn-toc summary {
  min-height: 52px;
  padding-inline: 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--highlight);
  color: var(--ink);
  font-size: var(--text-callout);
}

/* The reading column: about 68 characters, 18px on 30px leading (17 on 27 on phones). */
.learn-prose {
  --title-section: clamp(30px, 2.8vw, 40px);
  min-width: 0;
  max-width: 680px;
  color: var(--ink);
  font-size: 17px;
  line-height: 27px;
}
.learn-prose > *,
.learn-example > * {
  margin: 0;
}
.learn-prose > * + *,
.learn-example > * + * {
  margin-top: 20px;
}
.learn-prose > * + h2 {
  margin-top: 56px;
}
.learn-prose > * + h3 {
  margin-top: 36px;
}
.learn-prose > h2 {
  font-size: var(--title-section);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.learn-prose > h3 {
  font-size: var(--text-title-3);
  font-weight: 500;
  line-height: 1.3;
}
.learn-prose > h2 + *,
.learn-prose > h3 + * {
  margin-top: 16px;
}
.learn-prose strong {
  font-weight: 500;
}
.learn-prose p,
.learn-prose li {
  text-wrap: pretty;
}
.learn-prose a {
  color: var(--accent-text);
  text-decoration: underline 1px;
  text-underline-offset: 3px;
}
.learn-prose a:hover {
  text-decoration-thickness: 2px;
}
.learn-prose a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.learn-prose a .external-icon {
  margin-left: 2px;
  vertical-align: -1px;
}
.learn-prose ul,
.learn-prose ol {
  padding: 0;
  display: grid;
  gap: 8px;
}
.learn-prose ul {
  list-style: none;
}
.learn-prose ul > li {
  position: relative;
  padding-left: 28px;
}
.learn-prose ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--muted);
}
.learn-prose ol {
  padding-left: 28px;
}
.learn-prose ol > li::marker {
  color: var(--muted);
}
@media (min-width: 720px) {
  .learn-prose {
    font-size: 18px;
    line-height: 30px;
  }
  .learn-prose ul > li::before {
    top: 13px;
  }
}

/* Key facts: a mist box at the top of the reading column, plain lines, no bullets. */
.learn-facts {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-m);
  background: var(--highlight);
  color: var(--ink);
}
.learn-facts-title {
  margin: 0;
  font-size: 15px;
  line-height: 20px;
}
.learn-prose .learn-facts ul {
  margin: 0;
  gap: 8px;
}
.learn-prose .learn-facts li {
  padding-left: 0;
  font-size: 16px;
  line-height: 24px;
}
.learn-prose .learn-facts li::before {
  content: none;
}

/* An example and its list share one outlined panel. */
.learn-example {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
@media (min-width: 720px) {
  .learn-example {
    padding: 24px;
  }
}

/* Tables: outlined and rounded, no row lines; the column the article is about is washed teal. */
.learn-sheet {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.learn-sheet:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.learn-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-callout);
  line-height: 20px;
}
.learn-sheet th,
.learn-sheet td {
  padding: 10px 8px;
  text-align: right;
  vertical-align: top;
  font-weight: 400;
}
.learn-sheet th:first-child {
  text-align: left;
}
.learn-sheet thead th {
  vertical-align: bottom;
  color: var(--muted);
  font-size: var(--text-footnote);
}
.learn-sheet tbody tr:last-child > * {
  padding-bottom: 16px;
}
.learn-sheet .is-marked {
  background: var(--learn-wash);
}
.learn-sheet thead .is-marked {
  color: var(--accent-text);
}
@media (min-width: 720px) {
  .learn-sheet table {
    font-size: var(--text-body);
  }
  .learn-sheet th,
  .learn-sheet td {
    padding: 12px;
  }
}

/* Narrow phones keep all four columns: tighter cells, smaller figures. */
@media (max-width: 419px) {
  .learn-sheet table {
    font-size: var(--text-footnote);
  }
  .learn-sheet th,
  .learn-sheet td {
    padding: 8px 6px;
  }
  .learn-sheet thead th {
    font-size: 13px;
  }
}

/* The one action at the end; full width on phones. */
.learn-prose > .learn-cta {
  margin-top: 32px;
}
@media (max-width: 719px) {
  .learn-cta .pill {
    width: 100%;
    min-height: 52px;
  }
}

/* Related: the section title and hub tiles. */
.learn-more {
  --title-section: clamp(32px, 3.9vw, 56px);
  padding: 0 var(--gutter) clamp(72px, 10vw, 144px);
  display: grid;
  gap: clamp(24px, 2.2vw, 32px);
}
/* ── end Learn ── */

/* ── Docs (A5) ── */
/*
 * Documents, Support, the opt-out page and 404 (web.spec.md, Public pages; A5 documents, Support
 * and 404). Scoped to `.docs` and `.lost`, which only src/site/pages.ts renders; Learn keeps the
 * shared `.doc-layout` rules above.
 */
.docs {
  /* These pages' own title sizes: 56px at 390 to 96px at 1440, and 30px to 36px. */
  --title-page: clamp(44px, calc(41.1px + 3.81vw), 96px);
  --title-section: clamp(30px, calc(27.8px + 0.571vw), 36px);
  display: grid;
  grid-template-columns: minmax(0, 680px);
  padding: 0 var(--gutter) clamp(72px, 10vw, 144px);
  color: var(--ink);
  overflow-wrap: break-word;
}

/* Head: breadcrumb, the title in the display face (set on the head), the date. */
.docs-head {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0 32px;
}
.docs.has-toc .docs-head {
  padding-bottom: 16px;
}
.docs-head > :not(h1) {
  margin: 0;
  font-family: var(--font);
  letter-spacing: normal;
}
.docs-head h1 {
  margin: 0;
  max-width: 100%;
  font-size: var(--title-page);
  font-weight: inherit;
  line-height: 0.96;
  text-wrap: balance;
}
.docs-crumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--text-footnote);
  line-height: 20px;
}
/* The crumbs run as text, so a long current crumb wraps beside its slash. */
.docs-crumbs li {
  display: inline;
}
.docs-crumbs li + li::before {
  content: '/';
  content: '/' / '';
  padding-inline: 8px;
}
.docs-crumbs a {
  color: inherit;
  text-decoration: underline 1px var(--line);
  text-underline-offset: 3px;
}
/* Phones: each crumb is a 44px row. */
@media (max-width: 719px), (pointer: coarse) {
  .docs-crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
.docs-updated {
  color: var(--muted);
  font-size: var(--text-footnote);
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

/* On this page: a 52px mist disclosure on narrow screens; a sticky rail at 1024px and wider. */
.docs .doc-toc {
  grid-column: 1 / -1;
  margin-bottom: 32px;
}
.docs .doc-toc summary {
  min-height: 52px;
  padding-inline: 16px;
  border-color: transparent;
  border-radius: 12px;
  background: var(--highlight);
  color: var(--ink);
  font-size: var(--text-callout);
  font-weight: 500;
}
.docs .doc-toc ol {
  gap: 4px;
}
.docs .doc-toc a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: var(--text-callout);
  line-height: 20px;
}
.docs .doc-toc a[aria-current='location'] {
  background: var(--highlight);
  color: var(--ink);
  font-weight: 500;
}
.docs .doc-toc a[aria-current='location']::before {
  content: none;
}

/* The reading column: intro, Key facts, the text. */
.docs-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.docs-intro {
  font-size: 19px;
  line-height: 30px;
}
.docs-intro p {
  margin: 0 0 16px;
  line-height: inherit;
}
.docs-intro p:last-child {
  margin-bottom: 0;
}
.docs-intro a,
.docs-text a:not(.pill),
.docs .key-facts li > p a {
  color: var(--accent-text);
  text-decoration: underline 1px;
  text-underline-offset: 3px;
}

/* Key facts: a mist card of white rows, no lines; each row is its section link's target. */
.docs .key-facts {
  padding: 12px;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--highlight);
}
.docs .key-facts h2 {
  margin: 0;
  padding: 4px 16px 12px;
  color: var(--ink);
  font-size: var(--text-callout);
  font-weight: 500;
  line-height: 20px;
}
.docs .key-facts ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.docs .key-facts li {
  position: relative;
  gap: 4px;
  padding: 12px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--surface-white);
}
.docs .key-facts li p {
  font-size: var(--text-body);
  line-height: 24px;
}
.docs .key-facts li > a {
  color: var(--muted);
  font-size: var(--text-footnote);
  line-height: 20px;
  text-decoration: underline 1px var(--line);
  text-underline-offset: 3px;
}
/* The whole row answers the link (at least 44px); links in the fact's own text stay on top. */
.docs .key-facts li > a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.docs .key-facts li > p a {
  position: relative;
  z-index: 1;
}
.docs .key-facts li > a:focus-visible {
  outline: none;
}
.docs .key-facts li:has(> a:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (hover: hover) {
  .docs .key-facts li:has(> a):hover > a {
    color: var(--accent-text);
    text-decoration-color: currentColor;
  }
}

/* The text: sections apart by whitespace, display-face titles, small ink-2 dots. */
.docs-text {
  font-size: 17px;
  line-height: 28px;
}
.docs-text > section {
  padding-top: 40px;
}
.docs-text > section + section {
  margin-top: 24px;
}
.docs-text > section:focus {
  outline: none;
}
.docs-text h2 {
  margin: 0 0 16px;
  font-size: var(--title-section);
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
}
.docs-text p {
  margin: 0 0 16px;
  line-height: inherit;
}
.docs-text ul {
  margin: 0 0 16px;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.docs-text li::marker {
  color: var(--muted);
}
.docs-text strong {
  font-weight: 500;
}
.docs-text > :last-child > :last-child,
.docs-text > p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .docs-head {
    gap: 20px;
    padding: 64px 0 56px;
  }
  .docs.has-toc .docs-head {
    padding-bottom: 56px;
  }
  .docs-updated {
    font-size: var(--text-callout);
  }
  .docs.has-toc {
    grid-template-columns: 240px minmax(0, 680px);
    column-gap: clamp(48px, 5.6vw, 80px);
    align-items: start;
  }
  .docs .doc-toc {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    margin: 0;
  }
  .docs.has-toc .docs-column {
    grid-column: 2;
    grid-row: 2;
  }
  .docs .doc-toc-rail ol {
    margin-top: 0;
  }
  .docs .doc-toc-rail > p {
    padding: 0 0 12px;
    font-weight: 500;
    line-height: 20px;
  }
}

/* Not found: the headline, one way home, and the shared phone on its pixel backdrop. */
.lost {
  /* This page's own title size: 44px at 390 to 80px at 1440. */
  --title-page: clamp(40px, calc(30.6px + 3.43vw), 80px);
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 40px var(--gutter) 64px;
  color: var(--ink);
}
.lost p {
  margin: 0;
}
.lost-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 700px;
}
.lost-eyebrow {
  color: var(--muted);
  font-size: var(--text-footnote);
  font-weight: 500;
  line-height: 20px;
}
.lost h1 {
  margin: 0;
  font-size: var(--title-page);
  letter-spacing: -0.02em;
  line-height: 1;
}
.lost h1 > span {
  display: block;
  text-wrap: balance;
}
.lost h1 > span + span {
  color: var(--muted);
}
/* The one delight: the last full stop is the wordmark's coral and pops in once. */
.lost h1 .lost-stop {
  display: inline-block;
  color: var(--brand-mark);
}
@media (prefers-reduced-motion: no-preference) {
  .lost h1 .lost-stop {
    transform-origin: 50% 85%;
    animation: lost-stop-in var(--dur-slow) var(--ease-spring) 400ms both;
  }
}
@keyframes lost-stop-in {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.lost-body {
  color: var(--muted);
  font-size: 17px;
  line-height: 26px;
}
.lost-actions {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}
.lost-actions .pill {
  min-height: 52px;
}
.lost .pill.tonal {
  background: var(--highlight);
  color: var(--ink);
}
@media (hover: hover) {
  .lost .pill.tonal:hover {
    background: var(--neutral-fill);
  }
}
.lost-note {
  color: var(--muted);
  font-size: var(--text-footnote);
  line-height: 20px;
}
@media (min-width: 600px) {
  .lost-actions {
    align-self: flex-start;
    flex-direction: row;
    align-items: center;
  }
  .lost-actions .pill {
    min-height: 48px;
  }
}
/* The phone: below the copy on phones, smaller; beside it from 1024px, sized so the copy and the
   whole phone fit above the fold at 1440×900. */
.lost-phone {
  --phone-scale: 0.56;
  align-self: stretch;
}
@media (max-width: 359px) {
  .lost-phone {
    --phone-scale: 0.5;
  }
}
@media (min-width: 600px) {
  .lost-phone {
    --phone-scale: 0.62;
    align-self: flex-start;
    width: min(100%, 560px);
  }
}
@media (min-width: 1024px) {
  .lost {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    --lost-phone-w: clamp(400px, 34vw, 520px);
    --lost-gap: clamp(48px, 5.6vw, 80px);
    gap: var(--lost-gap);
    padding: 56px var(--gutter) 96px;
  }
  .lost-copy {
    flex: 1 1 0;
    min-width: 0;
    gap: 24px;
  }
  .lost-eyebrow {
    font-size: var(--text-callout);
  }
  .lost-body {
    font-size: var(--text-headline);
    line-height: 28px;
  }
  .lost-actions {
    padding-top: 8px;
  }
  .lost-phone {
    flex: 0 0 auto;
    align-self: center;
    width: var(--lost-phone-w);
  }
  /* Two lines, never wrapped: sized to the copy column (8.5em holds the longer line), so the
     headline keeps its height when Instrument Serif replaces the fallback and nothing shifts. */
  .lost h1 {
    overflow-x: clip;
    font-size: min(
      var(--title-page),
      calc((100vw - 2 * var(--gutter) - var(--lost-phone-w) - var(--lost-gap)) / 8.5)
    );
  }
  .lost h1 > span {
    white-space: nowrap;
  }
}
/* ── end Docs ── */
