/* GENERATED by server-cf/scripts/build-site-assets.mjs. Do not edit.
   Sources: packages/ui/src/styles/{fonts,tokens}.generated.css and
   server-cf/src/site/assets/site.css. Font licence: ./ofl.0950b4cf68.txt */

/* latin-ext */
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./google-sans-var-latin-ext.b45b2ace16.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./google-sans-var-latin.0feef32352.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./google-sans-var-latin-ext.b45b2ace16.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./google-sans-var-latin.0feef32352.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./google-sans-var-latin-ext.b45b2ace16.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./google-sans-var-latin.0feef32352.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: "Google Sans Code";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./google-sans-code-var-latin-ext.b1b1ede148.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Google Sans Code";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./google-sans-code-var-latin.98eee6fe6d.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: "Google Sans Code";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./google-sans-code-var-latin-ext.b1b1ede148.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Google Sans Code";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./google-sans-code-var-latin.98eee6fe6d.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colour. Dark is the default: these are the values any
     surface gets before a theme is chosen. Other themes override the same
     custom properties below, which is why the utilities need no variants. */
  --color-ink-000: #1C1E1B;
  --color-ink-050: #252724;
  --color-ink-100: #2B2D2A;  /* Panels, sidebars, sheets and field interiors. */
  --color-ink-200: #323430;  /* Rows and cards at rest. */
  --color-ink-300: #3A3D38;
  --color-ink-400: #474A44;  /* Pressed state, and the unfilled track of the expiry ring. */
  --color-line-soft: #363933;  /* Dividers and the border of a resting row. */
  --color-line-hard: #4B4F48;  /* Secondary buttons, field borders, panel edges. */
  --color-line-sky: #3E5760;
  --color-fg-hi: #F5F2EB;
  --color-fg-mid: #C4C6BD;
  --color-fg-lo: #A0A498;
  --color-sky-300: #4CC8F6;
  --color-sky-400: #02A7E3;
  --color-sky-500: #02A0D9;
  --color-sky-600: #0295CA;  /* Pressed state of a sky fill. */
  --color-sky-tint: #293438;
  --color-on-sky: #252724;
  --color-knob: #F5F2EB;
  --color-sage: #6DBB97;
  --color-copper: #E3904F;
  --color-brick: #EE7A69;  /* Breached, weak, refused, and destructive outlines. */
  --color-iris: #B3A4F0;
  --color-sage-tint: #2D3731;  /* Chip ground behind sage text. */
  --color-copper-tint: #3A3329;  /* Chip ground behind copper text. */
  --color-brick-tint: #3B302C;
  --color-iris-tint: #35353A;  /* Chip ground behind iris text. */
  --color-scrim: rgba(20,21,19,0.74);  /* Behind a modal sheet or the mobile autofill sheet. */
  --color-mark-r: #0283B2;
  --color-mark-field: #02A4DE;

  /* Families. */
  --font-display: "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Display - set in --font-display. */
  --text-display: 52px;
  --text-display--line-height: 56px;
  --text-display--font-weight: 500;
  --text-display--letter-spacing: -0.015em;
  --text-title: 28px;
  --text-title--line-height: 34px;
  --text-title--font-weight: 500;

  /* Interface - set in --font-sans. */
  --text-heading: 20px;
  --text-heading--line-height: 26px;
  --text-heading--font-weight: 600;
  --text-subhead: 16px;
  --text-subhead--line-height: 22px;
  --text-subhead--font-weight: 600;
  --text-body: 14px;
  --text-body--line-height: 20px;
  --text-body--font-weight: 400;
  --text-body-strong: 14px;
  --text-body-strong--line-height: 20px;
  --text-body-strong--font-weight: 600;
  --text-field-touch: 16px;
  --text-field-touch--line-height: 22px;
  --text-field-touch--font-weight: 400;
  --text-caption: 12px;
  --text-caption--line-height: 17px;
  --text-caption--font-weight: 400;
  --text-label: 11px;
  --text-label--line-height: 14px;
  --text-label--font-weight: 600;
  --text-label--letter-spacing: 0.09em;
  /* --text-label is uppercase: pair it with `uppercase`. */

  /* Code - set in --font-mono. */
  --text-code-xl: 32px;
  --text-code-xl--line-height: 32px;
  --text-code-xl--font-weight: 500;
  --text-code-xl--letter-spacing: 0.1em;
  --text-code-lg: 20px;
  --text-code-lg--line-height: 24px;
  --text-code-lg--font-weight: 500;
  --text-code-lg--letter-spacing: 0.1em;
  --text-code: 13px;
  --text-code--line-height: 20px;
  --text-code--font-weight: 400;
  --text-code-masked: 13px;
  --text-code-masked--line-height: 20px;
  --text-code-masked--font-weight: 400;
  --text-code-masked--letter-spacing: 0.16em;

  /* Spacing. Reached as `p-(--space-7)`; see the note in the source. */
  --space-1: 4px;  /* Icon to its label. */
  --space-2: 8px;  /* Stacked meta lines; issuer to login. */
  --space-3: 12px;  /* Inside a chip or pill. */
  --space-4: 16px;  /* Row padding and card gutter. */
  --space-5: 20px;  /* Between cards. */
  --space-6: 24px;  /* Window edge on phone. */
  --space-7: 32px;  /* Window edge on desktop. */
  --space-8: 40px;  /* Between sections. */
  --space-9: 56px;  /* Empty-state breathing room. */
  --space-10: 72px;  /* Cover and hero margins. */
  --space-touch: 44px;

  /* Radii. These replace Tailwind's own xs..xl, which is the point. */
  --radius-xs: 6px;  /* Badges and status pips. */
  --radius-sm: 10px;  /* Buttons, fields, icon buttons, provider marks. */
  --radius-md: 14px;  /* Rows and cards. */
  --radius-lg: 20px;  /* Sheets and popovers. */
  --radius-xl: 22px;  /* The quick view panel where it meets the screen edge. */
  --radius-pill: 999px;  /* Segmented switch, tags, the round + button. */
  --radius-notch: 13px;

  /* Elevation. */
  --shadow-elev-1: 0 1px 2px rgba(0,0,0,0.45);  /* A resting row that needs separation from its ground. */
  --shadow-elev-2: 0 4px 12px rgba(0,0,0,0.5);  /* Menus and tooltips. */
  --shadow-elev-3: 0 12px 32px rgba(0,0,0,0.55);  /* Sheets and the extension popup. */
  --shadow-elev-4: 0 6px 18px rgba(0,0,0,0.44), 0 1px 3px rgba(0,0,0,0.3);

  /* Easings. `ease-out` deliberately replaces Tailwind's own, the
     same way the radii above do. */
  --ease-base: cubic-bezier(.2,.8,.2,1);
  --ease-out: cubic-bezier(.4,0,.2,1);
  --ease-liquid: cubic-bezier(.62,0,.32,1.03);

  /* Durations. Reached as `duration-(--duration-quick)`. */
  --duration-instant: 90ms;
  --duration-quick: 140ms;
  --duration-base: 220ms;
  --duration-calm: 320ms;
  --duration-draw-in: 280ms;
  --duration-let-go: 220ms;
  --duration-tick: 1000ms;
}

@media (prefers-color-scheme: light) {
  :root {
    --color-ink-000: #FFFFFF;
    --color-ink-050: #F5F2EB;
    --color-ink-100: #FFFFFF;
    --color-ink-200: #EEEBE3;
    --color-ink-300: #E6E8DF;
    --color-ink-400: #D6D9CE;
    --color-line-soft: #E2E1D8;
    --color-line-hard: #C9CBBF;
    --color-line-sky: #B8DDEA;
    --color-fg-hi: #252724;
    --color-fg-mid: #4B4F46;
    --color-fg-lo: #64695F;
    --color-sky-300: #015574;
    --color-sky-400: #01688D;
    --color-sky-500: #02739D;
    --color-sky-600: #014A65;
    --color-sky-tint: #DEF1F7;
    --color-on-sky: #FFFFFF;
    --color-knob: #FFFFFF;
    --color-sage: #2C6E52;
    --color-copper: #965014;
    --color-brick: #A6362A;
    --color-iris: #5B49A8;
    --color-sage-tint: #E6EEEA;
    --color-copper-tint: #F2EAE3;
    --color-brick-tint: #F4E7E5;
    --color-iris-tint: #EBE9F5;
    --color-scrim: rgba(37,39,36,0.42);
  }
}

/*
 * remempass.org. Source for public/assets/site.<hash>.css, which
 * scripts/build-site-assets.mjs writes with the token and font stylesheets
 * concatenated in front, so the page makes one stylesheet request.
 *
 * Every colour, size, radius, duration and easing is a token from
 * design/tokens.json, reached as a custom property. The few derived values
 * (the hero wordmark, the beam) are arithmetic on tokens, never new numbers,
 * and the beam's colour is the sky token mixed toward transparent rather
 * than a hand-picked translucent hex.
 *
 * The site follows the app's rules (design/DESIGN.md) where they apply to a
 * document: one accent, three resting surfaces, hairlines rather than boxes,
 * cards never nested. Where it differs it is because this IS a web page:
 * links to elsewhere get the pointing hand, the body scrolls, and text is
 * selectable.
 */

:root {
  --page-max: calc(var(--space-10) * 16);
  --reading-max: calc(var(--space-10) * 10);
  --gutter: var(--space-6);
  --masthead-h: calc(var(--space-9) + var(--space-2));
  --glass: color-mix(in oklab, var(--color-ink-100) 78%, transparent);
  --glass-edge: color-mix(in oklab, var(--color-fg-hi) 9%, transparent);
  --beam: color-mix(in oklab, var(--color-sky-400) 26%, transparent);
  --beam-faint: color-mix(in oklab, var(--color-sky-400) 9%, transparent);
  /* Floored at the display size, not above it: on a 320px phone with the
     reader's own letter spacing (WCAG 1.4.12) a larger floor ran the last
     letter off the screen. */
  --wordmark-size: clamp(var(--text-display), 15vw, calc(var(--text-display) * 2.6));
  --headline-size: clamp(var(--text-title), 5.2vw, calc(var(--text-display) * 0.86));
}

@media (min-width: 720px) {
  :root {
    --gutter: var(--space-7);
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --glass: color-mix(in oklab, var(--color-ink-100) 86%, transparent);
    --glass-edge: color-mix(in oklab, var(--color-fg-hi) 10%, transparent);
    --beam: color-mix(in oklab, var(--color-sky-400) 16%, transparent);
    --beam-faint: color-mix(in oklab, var(--color-sky-400) 6%, transparent);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark light;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--masthead-h) + var(--space-4));
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-ink-050);
  color: var(--color-fg-hi);
  font-family: var(--font-sans);
  font-size: var(--text-subhead);
  line-height: calc(var(--text-subhead--line-height) + var(--space-1));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main {
  flex: 1;
  outline: none;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: var(--color-line-hard);
  text-underline-offset: 3px;
  transition: color var(--duration-quick) var(--ease-base),
    text-decoration-color var(--duration-quick) var(--ease-base);
}

a:hover {
  color: var(--color-sky-400);
  text-decoration-color: currentColor;
}

button {
  font: inherit;
  cursor: default;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

strong {
  font-weight: 600;
  color: var(--color-fg-hi);
}

*:focus-visible {
  outline: 2px solid var(--color-sky-400);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: calc(-1 * var(--space-10));
  z-index: 30;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-sky-400);
  color: var(--color-on-sky);
}

.skip:focus {
  top: var(--space-4);
}

.icon {
  width: var(--space-5);
  height: var(--space-5);
  flex: none;
}

/* Banner, masthead, footer ---------------------------------------------- */

.banner {
  padding: var(--space-2) var(--gutter);
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  text-align: center;
}

.banner-ok {
  background: var(--color-sky-tint);
  color: var(--color-fg-hi);
  border-bottom: 1px solid var(--color-line-soft);
}

/* Focused once by the page so it is read, never by the keyboard; a ring on a
   full-width bar under the masthead only showed along its bottom edge. */
.banner-ok:focus {
  outline: none;
}

.banner-warn {
  background: var(--color-copper-tint);
  color: var(--color-copper);
  border-bottom: 1px solid color-mix(in oklab, var(--color-copper) 30%, transparent);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--color-ink-050) 72%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--color-line-soft);
}

.masthead-inner {
  max-width: var(--page-max);
  height: var(--masthead-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* The horizontal logo, set live rather than placed as an image: Google Sans at
   550 with the logo's tightened spacing, and the symbol sized off the caps the
   way the outlined master is. Google Sans caps are 0.716em, so a symbol 1.6
   caps tall is 1.146em, square, and the 0.45-cap gap is 0.322em. Centring on
   the line box centres it on the caps closely enough at this size. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.322em;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 550;
  letter-spacing: -0.022em;
  line-height: 1;
  text-decoration: none;
  color: var(--color-fg-hi);
}

.wordmark:hover {
  color: var(--color-fg-hi);
}

.wordmark .mark {
  width: 1.146em;
  height: 1.146em;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--space-8);
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-body);
  color: var(--color-fg-mid);
  text-decoration: none;
  white-space: nowrap;
}

/* The masthead wordmark keeps its accessible name (aria-label) when the word
   itself gives way on the narrowest phones. */
@media (max-width: 380px) {
  .masthead .wordmark span {
    display: none;
  }
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-fg-hi);
}

/* Signed out, the narrowest masthead gives Security's room to the two
   account buttons; signed in there is only the menu button, and room for it. */
@media (max-width: 560px) {
  .nav:not(.nav-signed-in) .nav-link:first-child {
    display: none;
  }
  .nav .btn-small {
    padding: 0 var(--space-3);
  }
}

/* The signed-in account menu. A <details> disclosure, so it opens and closes
   with no script; the panel hangs from the masthead's right edge. */
.user-menu {
  position: relative;
}

.user-menu-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--space-8);
  padding: 0 var(--space-2) 0 var(--space-1);
  border: 1px solid var(--color-line-hard);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--color-fg-hi);
  font-size: var(--text-body);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--duration-quick) var(--ease-base);
}

.user-menu-button::-webkit-details-marker {
  display: none;
}

.user-menu-button:hover,
.user-menu[open] .user-menu-button {
  background: var(--color-ink-300);
}

.user-avatar {
  display: inline-grid;
  place-items: center;
  width: var(--space-6);
  height: var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--color-sky-tint);
  color: var(--color-sky-400);
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: 1;
}

.user-menu-caret {
  width: var(--space-4);
  height: var(--space-4);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--color-fg-lo);
  transition: transform var(--duration-quick) var(--ease-base);
}

.user-menu[open] .user-menu-caret {
  transform: rotate(180deg);
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: 25;
  width: max-content;
  min-width: calc(var(--space-10) * 4);
  max-width: min(calc(100vw - 2 * var(--gutter)), calc(var(--space-10) * 6));
  /* It hangs from a sticky masthead, so the page scrolling cannot bring its
     lower items into view; at 400% zoom it scrolls inside itself instead. */
  max-height: calc(100dvh - var(--masthead-h) - var(--space-4));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-2);
  border: 1px solid var(--color-line-hard);
  border-radius: var(--radius-md);
  background: var(--color-ink-100);
  box-shadow: var(--shadow-elev-3);
}

.user-menu-who {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--color-line-soft);
  margin-bottom: var(--space-1);
}

.user-menu-caption {
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  color: var(--color-fg-lo);
}

.user-menu-email {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-fg-hi);
  overflow-wrap: anywhere;
}

.user-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.user-menu-list a,
.user-menu-signout button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--space-8);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-fg-mid);
  font: inherit;
  font-size: var(--text-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.user-menu-list a:hover,
.user-menu-signout button:hover {
  background: var(--color-ink-300);
  color: var(--color-fg-hi);
}

.user-menu-list a[aria-current="page"] {
  color: var(--color-fg-hi);
  font-weight: 600;
}

.user-menu-signout {
  margin-top: var(--space-1);
  padding-top: var(--space-1);
  border-top: 1px solid var(--color-line-soft);
}

/* Visually hidden, not display:none: the word stays in the button's name. */
@media (max-width: 560px) {
  .user-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* At high zoom a sticky masthead takes a third of the window and covers
   whatever focus lands under it. */
@media (max-height: 480px) {
  .masthead {
    position: relative;
  }
}

.footer {
  margin-top: var(--space-10);
  border-top: 1px solid var(--color-line-soft);
  color: var(--color-fg-mid);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-9) var(--gutter) var(--space-8);
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 860px) {
  .footer-inner {
    grid-template-columns: 1.2fr 2fr;
  }
}

.footer-line {
  margin-top: var(--space-3);
  max-width: 34ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--space-10) * 2), 1fr));
  gap: var(--space-7);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  text-decoration: none;
  min-height: var(--space-6);
  display: inline-flex;
  align-items: center;
}

.footer-head {
  margin-bottom: var(--space-1);
  font-size: var(--text-label);
  line-height: var(--text-label--line-height);
  font-weight: var(--text-label--font-weight);
  letter-spacing: var(--text-label--letter-spacing);
  text-transform: uppercase;
  color: var(--color-fg-lo);
}

.footer-base {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-5) var(--gutter) var(--space-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-top: 1px solid var(--color-line-soft);
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  color: var(--color-fg-lo);
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: calc(var(--space-8) + var(--space-1));
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--text-body-strong);
  font-weight: var(--text-body-strong--font-weight);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-quick) var(--ease-base),
    border-color var(--duration-quick) var(--ease-base),
    color var(--duration-quick) var(--ease-base),
    transform var(--duration-quick) var(--ease-base);
}

.btn .icon {
  width: var(--space-4);
  height: var(--space-4);
}

.btn-small {
  min-height: var(--space-8);
  padding: 0 var(--space-4);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--color-sky-400);
  color: var(--color-on-sky);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-sky-300) 40%, transparent) inset,
    0 var(--space-2) var(--space-6) calc(-1 * var(--space-2)) var(--beam);
}

.btn-primary:hover {
  background: var(--color-sky-300);
  color: var(--color-on-sky);
}

.btn-primary:active {
  background: var(--color-sky-600);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--color-line-hard);
  color: var(--color-fg-hi);
}

.btn-ghost:hover {
  background: var(--color-ink-300);
  color: var(--color-fg-hi);
}

.btn-ghost:active {
  background: var(--color-ink-400);
}

.btn-danger {
  background: transparent;
  border-color: var(--color-brick);
  color: var(--color-brick);
}

.btn-danger:hover {
  background: var(--color-brick-tint);
  color: var(--color-brick);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.cta-left {
  justify-content: flex-start;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  color: var(--color-sky-400);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-body-strong);
}

.text-link .icon {
  width: var(--space-4);
  height: var(--space-4);
}

/* The AuthKit vocabulary: beam, grid, ticks, eyebrow ---------------------- */

.beam {
  position: absolute;
  inset: 0 0 auto 50%;
  width: min(100vw, calc(var(--page-max) * 1.2));
  height: min(130vh, calc(var(--space-10) * 14));
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(40% 55% at 50% 0%, var(--beam) 0%, transparent 72%),
    conic-gradient(from 180deg at 50% -6%, transparent 168deg, var(--beam-faint) 176deg, var(--beam) 180deg, var(--beam-faint) 184deg, transparent 192deg);
  mask-image: linear-gradient(to bottom, black 35%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, black 35%, transparent 92%);
  z-index: 0;
}

.beam-low {
  height: calc(var(--space-10) * 8);
  opacity: 0.8;
}

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--color-line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-line-soft) 1px, transparent 1px);
  background-size: calc(var(--space-10) * 2) calc(var(--space-10) * 2);
  background-position: center top;
  mask-image: radial-gradient(60% 55% at 50% 30%, black 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, black 0%, transparent 78%);
  opacity: 0.55;
}

.frame {
  position: relative;
}

.tick {
  position: absolute;
  width: var(--space-3);
  height: var(--space-3);
  pointer-events: none;
}

.tick::before,
.tick::after {
  content: "";
  position: absolute;
  background: var(--color-fg-lo);
}

.tick::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
}

.tick::after {
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
}

.tick.tl {
  left: calc(-1 * var(--space-3) / 2);
  top: calc(-1 * var(--space-3) / 2);
}

.tick.tr {
  right: calc(-1 * var(--space-3) / 2);
  top: calc(-1 * var(--space-3) / 2);
}

.tick.bl {
  left: calc(-1 * var(--space-3) / 2);
  bottom: calc(-1 * var(--space-3) / 2);
}

.tick.br {
  right: calc(-1 * var(--space-3) / 2);
  bottom: calc(-1 * var(--space-3) / 2);
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--color-fg-mid);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  height: 1px;
  width: var(--space-10);
  background: linear-gradient(to right, transparent, var(--color-line-hard));
}

.eyebrow::after {
  background: linear-gradient(to left, transparent, var(--color-line-hard));
}

.section-head:not(.centered) .eyebrow {
  justify-content: flex-start;
}

.section-head:not(.centered) .eyebrow::before {
  display: none;
}

.headline {
  font-family: var(--font-display);
  font-size: var(--headline-size);
  font-weight: var(--text-display--font-weight);
  line-height: 1.06;
  letter-spacing: var(--text-display--letter-spacing);
  color: var(--color-fg-hi);
  text-wrap: balance;
}

/* The second half of a two-part headline steps back rather than lighting up:
   sky is for actions, never decoration (design/DESIGN.md §3). */
.headline span {
  color: var(--color-fg-mid);
}

.headline-lg {
  font-size: clamp(var(--text-title), 7vw, var(--text-display));
}

.headline-sm {
  font-size: clamp(var(--text-title), 4.4vw, calc(var(--text-display) * 0.72));
  overflow-wrap: anywhere;
}

.section-sub {
  max-width: 58ch;
  color: var(--color-fg-mid);
  font-size: calc(var(--text-subhead) + var(--space-1) / 2);
  line-height: 1.55;
}

.caption {
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  color: var(--color-fg-lo);
}

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: var(--space-10) var(--gutter) 0;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.hero-frame {
  padding: var(--space-2) var(--space-8);
  border-top: 1px solid var(--color-line-soft);
  border-bottom: 1px solid var(--color-line-soft);
}

/* The corner ticks sit outside the frame; on the narrowest phones the side
   padding pushed them past the window edge. */
@media (max-width: 400px) {
  .hero-frame {
    max-width: 100%;
    padding-inline: var(--space-3);
  }
}

/* The hero name is the wordmark, so it is set the way the logo is: flat
   colour at weight 550 and the logo's -22/1000 spacing. It used to fade into
   the accent; the brand guide rules out gradients on the mark, and a word that
   changes colour halfway down reads as a link state. */
.wordmark-xl {
  font-family: var(--font-display);
  font-size: var(--wordmark-size);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.022em;
  padding-bottom: 0.06em;
  color: var(--color-fg-hi);
}

/* Wide enough that the second sentence balances over two lines on a laptop:
   at 40ch it took three and left "terminal." alone on the last. "end-to-end"
   uses non-breaking hyphens in home.ts so it never splits at a line end. */
.hero-sub {
  max-width: 58ch;
  color: var(--color-fg-mid);
  font-size: clamp(var(--text-subhead), 2.2vw, var(--text-heading));
  line-height: 1.5;
  text-wrap: balance;
}

/* The beam and grid sit in one layer so the scroll story can move them as a
   single plane behind the hero. */
.hero-back {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-help {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-fg-mid);
  font-size: var(--text-body);
  text-decoration: none;
}

.hero-help .icon {
  width: var(--space-4);
  height: var(--space-4);
}

.hero-stage {
  position: relative;
  z-index: 1;
  max-width: calc(var(--space-10) * 13);
  margin: var(--space-10) auto 0;
  padding-bottom: var(--space-10);
  text-align: left;
}

/* The captures are the app's real windows: transparent corners, no shadow
   baked in, so the shadow and hairline are the page's. The app is dark-only,
   so they stay dark in the light theme, the way a dark-mode screenshot does. */
.shot-window,
.shot-crop {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px var(--glass-edge), var(--shadow-elev-3),
    0 var(--space-10) calc(var(--space-10) * 1.5) calc(-1 * var(--space-8)) var(--beam);
}

.shot-crop {
  overflow: hidden;
  aspect-ratio: 6 / 5;
}

/* Up close: the sidebar is cropped away so the list and the detail fill it. */
.shot-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 0;
}

.shot-quick,
.shot-handle-woken,
.shot-handle-dormant {
  width: 100%;
  height: auto;
}

/* The quick panel and the woken handle beside it, docked to the edge of the
   vault window the way they dock to the edge of a screen. The proportions
   are the captures' own: 340 for the panel window, 58 for the handle, and
   the handle's 8 inset from the edge (SHOT_SIZES, design/DESIGN.md §11). */
.hero-dock {
  position: absolute;
  right: var(--space-2);
  bottom: 0;
  width: 42%;
  display: flex;
  align-items: center;
}

.hero-quick {
  flex: 0 0 calc(100% * 340 / 406);
}

.hero-handle {
  position: relative;
  flex: 0 0 calc(100% * 58 / 406);
  padding-right: calc(100% * 8 / 406);
  box-sizing: content-box;
}

/* The screen edge the handle lives on. */
.hero-edge {
  position: absolute;
  top: -150%;
  bottom: -150%;
  right: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-line-hard) 30%, var(--color-sky-400) 50%, var(--color-line-hard) 70%, transparent);
}

@media (min-width: 720px) {
  .hero-dock {
    right: var(--space-5);
    bottom: calc(var(--space-5) * -1 + var(--space-10));
    width: 38%;
  }
}

/* From 1200 the dock overhangs the stage; below that the overhang pushed the
   page sideways. */
@media (min-width: 1200px) {
  .hero-dock {
    right: calc(-1 * var(--space-10) * 1.1);
    bottom: var(--space-8);
    width: calc(var(--space-10) * 5.4);
  }
}

/* Mockups ------------------------------------------------------------------ */

.mock {
  position: relative;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elev-3), 0 0 0 1px var(--color-line-soft) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  user-select: none;
}

.mock::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in oklab, var(--color-sky-300) 55%, transparent), transparent);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: calc(var(--space-8) + var(--space-3));
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--color-line-soft);
}

.lights {
  display: inline-flex;
  gap: var(--space-2);
  flex: none;
}

.lights i {
  width: var(--space-3);
  height: var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-ink-400);
}

.mock-search {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
  height: var(--space-7);
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-ink-100);
  border: 1px solid var(--color-line-soft);
  color: var(--color-fg-lo);
  font-size: var(--text-caption);
}

.mock-search .icon {
  width: var(--space-4);
  height: var(--space-4);
}

.mock-seg {
  display: none;
  padding: calc(var(--space-1) / 2);
  gap: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-ink-100);
  border: 1px solid var(--color-line-soft);
  font-size: var(--text-caption);
}

@media (min-width: 640px) {
  .mock-seg {
    display: inline-flex;
  }
}

.mock-seg span {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  color: var(--color-fg-mid);
}

.mock-seg .is-on {
  background: var(--color-ink-300);
  color: var(--color-fg-hi);
}

.mock-body {
  display: grid;
}

@media (min-width: 720px) {
  .mock-body {
    grid-template-columns: 1fr 1fr;
  }
}

.mock-list {
  list-style: none;
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

.mock-row.is-selected {
  background: var(--color-ink-200);
  box-shadow: 0 0 0 1px var(--color-line-soft) inset;
}

.mock-row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.mock-row-title {
  font-weight: 600;
  color: var(--color-fg-hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-row-sub {
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  color: var(--color-fg-lo);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: calc(var(--space-7) + var(--space-1));
  height: calc(var(--space-7) + var(--space-1));
  border-radius: var(--radius-sm);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.avatar-sky {
  background: var(--color-sky-tint);
  color: var(--color-sky-400);
}

.avatar-sage {
  background: var(--color-sage-tint);
  color: var(--color-sage);
}

.avatar-iris {
  background: var(--color-iris-tint);
  color: var(--color-iris);
}

.avatar-copper {
  background: var(--color-copper-tint);
  color: var(--color-copper);
}

/* The countdown ring at its shipped geometry, rendered at 20px (space-5). */
.ring {
  width: var(--space-5);
  height: var(--space-5);
  flex: none;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 2.5;
}

.ring-track {
  stroke: var(--color-ink-400);
}

.ring-fill {
  stroke: var(--color-sky-400);
  stroke-linecap: round;
}

.ring-warn .ring-fill {
  stroke: var(--color-copper);
}

.mock-detail {
  display: none;
  padding: var(--space-5);
  border-left: 1px solid var(--color-line-soft);
}

@media (min-width: 720px) {
  .mock-detail {
    display: block;
  }
}

.mock-detail-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-line-soft);
}

.mock-label {
  margin: var(--space-3) 0 var(--space-1);
  font-size: var(--text-label);
  line-height: var(--text-label--line-height);
  font-weight: var(--text-label--font-weight);
  letter-spacing: var(--text-label--letter-spacing);
  text-transform: uppercase;
  color: var(--color-fg-lo);
}

.mock-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.mock-digits {
  font-family: var(--font-mono);
  font-size: var(--text-code-xl);
  line-height: var(--text-code-xl--line-height);
  font-weight: var(--text-code-xl--font-weight);
  letter-spacing: var(--text-code-xl--letter-spacing);
  color: var(--color-fg-hi);
}

.mock-code .ring {
  width: var(--space-7);
  height: var(--space-7);
}

.mock-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--space-8);
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-ink-100);
  border: 1px solid var(--color-line-soft);
  color: var(--color-fg-mid);
  font-size: var(--text-body);
}

.mock-field .icon {
  width: var(--space-4);
  height: var(--space-4);
  color: var(--color-fg-lo);
}

.mock-masked {
  font-family: var(--font-mono);
  letter-spacing: var(--text-code-masked--letter-spacing);
}

.mock-quick {
  border-radius: var(--radius-xl);
  padding-bottom: var(--space-2);
}

.mock-quick-head {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3) var(--space-1);
}

.mock-plus {
  display: inline-grid;
  place-items: center;
  width: var(--space-7);
  height: var(--space-7);
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--color-ink-200);
  border: 1px solid var(--color-line-soft);
  color: var(--color-fg-mid);
}

.mock-quick-foot {
  padding: var(--space-2) var(--space-4) 0;
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  color: var(--color-fg-lo);
}

.mock-pre {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-code);
  line-height: calc(var(--text-code--line-height) + var(--space-1));
  color: var(--color-fg-hi);
  white-space: pre;
}

.t-prompt {
  color: var(--color-sky-400);
}

.t-dim {
  color: var(--color-fg-lo);
}

.t-ok {
  color: var(--color-sage);
}

.t-mask {
  color: var(--color-fg-mid);
  letter-spacing: 0.04em;
}

.t-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--color-sky-400);
  /* Four blinks and it rests visible: under five seconds, per WCAG 2.2.2. */
  animation: caret 1.1s steps(1) 4;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.mock-ext {
  padding: var(--space-5);
  min-height: calc(var(--space-10) * 3.4);
}

.mock-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-line-hard);
}

.mock-page-title {
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.mock-input {
  min-height: var(--space-7);
  display: flex;
  align-items: center;
  padding: 0 var(--space-3);
  border-radius: var(--radius-xs);
  background: var(--color-ink-100);
  border: 1px solid var(--color-line-soft);
  color: var(--color-fg-mid);
  font-size: var(--text-caption);
}

.mock-input.is-filled {
  border-color: color-mix(in oklab, var(--color-sky-400) 55%, transparent);
  background: var(--color-sky-tint);
  color: var(--color-fg-hi);
}

.mock-ext-pop {
  margin: var(--space-3) 0 0 auto;
  /* Wide enough for a two-line row beside both of its buttons, Fill and
     Copy, as the real popup has them. */
  width: min(100%, calc(var(--space-10) * 4.6));
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  background: var(--color-ink-100);
  border: 1px solid var(--color-line-hard);
  box-shadow: var(--shadow-elev-2);
}

.mock-ext-pop .mock-label {
  margin: var(--space-1) var(--space-2) var(--space-2);
}

.mock-kbd {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-xs);
  background: var(--color-sky-400);
  color: var(--color-on-sky);
  font-size: var(--text-caption);
  font-weight: 600;
}

/* The popup's second button, Copy, in the quiet style the real one has
   (Popup.tsx): a hairline pill on the row's own ground. */
.mock-ext-pop .mock-kbd {
  border-radius: var(--radius-pill);
}

.mock-kbd-quiet {
  margin-left: var(--space-1);
  background: var(--color-ink-200);
  border: 1px solid var(--color-line-soft);
  color: var(--color-fg-hi);
}

.mock-cipher .mock-pre {
  padding: var(--space-6);
}

.mock-term-title {
  flex: 1;
  text-align: center;
  font-size: var(--text-caption);
  color: var(--color-fg-lo);
  margin-right: var(--space-9);
}

/* Sections ----------------------------------------------------------------- */

.section {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: calc(var(--space-10) + var(--space-8)) var(--gutter) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.section-head.centered {
  align-items: center;
  text-align: center;
  margin: 0 auto var(--space-9);
}

.section-head.centered .section-sub {
  margin: 0 auto;
}

.features {
  padding-top: calc(var(--space-10) * 1.6);
}

.tiles {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--color-line-soft);
  border-left: 1px solid var(--color-line-soft);
}

@media (min-width: 560px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tile {
  padding: var(--space-6);
  border-right: 1px solid var(--color-line-soft);
  border-bottom: 1px solid var(--color-line-soft);
  transition: background-color var(--duration-base) var(--ease-base);
}

.tile:hover {
  background: color-mix(in oklab, var(--color-ink-100) 60%, transparent);
}

.tile .icon {
  width: var(--space-6);
  height: var(--space-6);
  color: var(--color-sky-400);
  margin-bottom: var(--space-4);
}

.tile-title {
  font-size: var(--text-subhead);
  line-height: var(--text-subhead--line-height);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.tile-text {
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  color: var(--color-fg-mid);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-9);
  align-items: start;
}

.split-media {
  align-items: center;
}

/* Grid children default to min-width: auto, and a <pre> inside one then sets
   the column to its longest line: the page scrolls sideways on a phone. */
.split > *,
.trio > *,
.hero-stage > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-10);
  }
}

.steps-flow {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-line-hard);
  margin-left: var(--space-4);
}

.flow-step {
  position: relative;
  padding: 0 0 var(--space-8) var(--space-8);
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-num {
  position: absolute;
  left: calc(-1 * var(--space-4) - 1px);
  top: 0;
  display: grid;
  place-items: center;
  width: var(--space-7);
  height: var(--space-7);
  border-radius: var(--radius-pill);
  background: var(--color-ink-050);
  border: 1px solid var(--color-sky-400);
  color: var(--color-sky-400);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  box-shadow: 0 0 var(--space-5) var(--beam-faint);
}

.flow-title {
  font-size: var(--text-heading);
  line-height: var(--text-heading--line-height);
  font-weight: 600;
  margin: var(--space-1) 0 var(--space-2);
}

.flow-text {
  color: var(--color-fg-mid);
  max-width: 52ch;
}

.sees {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
  border-top: 1px solid var(--color-line-soft);
}

.sees > div {
  display: grid;
  grid-template-columns: calc(var(--space-10) * 1.4) 1fr;
  gap: var(--space-4);
  padding-top: var(--space-3);
}

.sees dt {
  font-size: var(--text-label);
  line-height: calc(var(--text-subhead--line-height) + var(--space-1));
  font-weight: var(--text-label--font-weight);
  letter-spacing: var(--text-label--letter-spacing);
  text-transform: uppercase;
  color: var(--color-fg-lo);
}

.sees div:last-child dt {
  color: var(--color-sky-400);
}

.sees dd {
  color: var(--color-fg-mid);
}

.trio {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 960px) {
  .trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-7);
  }
}

.trio-item figcaption {
  margin-top: var(--space-6);
  color: var(--color-fg-mid);
  font-size: var(--text-body);
  line-height: 1.55;
}

.trio-item figcaption strong {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-subhead);
}

.checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-line-soft);
}

.checks li {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-line-soft);
  color: var(--color-fg-mid);
}

.checks .icon {
  color: var(--color-sky-400);
  margin-top: 2px;
}

.privacy-band {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}

.privacy-band > .icon {
  width: var(--space-8);
  height: var(--space-8);
  color: var(--color-sky-400);
  flex: none;
}

.band-title {
  font-family: var(--font-display);
  font-size: var(--text-title);
  line-height: var(--text-title--line-height);
  font-weight: var(--text-title--font-weight);
  margin-bottom: var(--space-2);
}

.band-text {
  color: var(--color-fg-mid);
  max-width: 70ch;
}

.privacy-band {
  padding-bottom: var(--space-9);
  border-bottom: 1px solid var(--color-line-soft);
}

.faq-list {
  max-width: calc(var(--space-10) * 10);
  margin: 0 auto;
  border-top: 1px solid var(--color-line-soft);
}

.faq-item {
  border-bottom: 1px solid var(--color-line-soft);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: calc(var(--space-9) + var(--space-1));
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--color-fg-lo);
  transition: transform var(--duration-base) var(--ease-base);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--color-sky-400);
}

.faq-item p {
  padding: 0 0 var(--space-5);
  max-width: 68ch;
  color: var(--color-fg-mid);
}

.final-cta {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  padding-bottom: var(--space-8);
}

.final-cta > *:not(.beam) {
  position: relative;
  z-index: 1;
}

.final-cta .section-sub {
  margin-bottom: var(--space-3);
}

/* Home: the tour ------------------------------------------------------------ */

.story {
  padding-bottom: var(--space-10);
}

.story-rest {
  padding-top: 0;
}

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-9);
  align-items: center;
  padding: var(--space-10) 0;
}

.chapter + .chapter {
  border-top: 1px solid var(--color-line-soft);
}

@media (min-width: 900px) {
  .chapter {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: calc(var(--space-10) * 1.2);
    padding: calc(var(--space-10) * 1.5) 0;
  }

  .chapter-flip .chapter-copy {
    order: 2;
  }
}

.chapter-label {
  margin-bottom: var(--space-3);
  color: var(--color-sky-400);
  font-size: var(--text-label);
  line-height: var(--text-label--line-height);
  font-weight: var(--text-label--font-weight);
  letter-spacing: var(--text-label--letter-spacing);
  text-transform: uppercase;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-title), 3.6vw, calc(var(--text-display) * 0.8));
  font-weight: var(--text-display--font-weight);
  line-height: 1.08;
  letter-spacing: var(--text-display--letter-spacing);
  text-wrap: balance;
}

.chapter-lead {
  margin-top: var(--space-5);
  max-width: 48ch;
  color: var(--color-fg-mid);
  font-size: calc(var(--text-subhead) + var(--space-1) / 2);
  line-height: 1.55;
}

.chapter-points {
  list-style: none;
  margin-top: var(--space-6);
  border-top: 1px solid var(--color-line-soft);
}

.chapter-points li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-line-soft);
  color: var(--color-fg-mid);
  font-size: var(--text-body);
  line-height: 1.55;
}

.chapter-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--space-3) + 0.7em);
  width: var(--space-3);
  height: 1px;
  background: var(--color-sky-400);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: calc(var(--space-5) + var(--space-1));
  height: calc(var(--space-5) + var(--space-1));
  margin-right: var(--space-1);
  padding: 0 var(--space-1);
  border: 1px solid var(--color-line-hard);
  border-bottom-width: 2px;
  border-radius: var(--radius-xs);
  background: var(--color-ink-100);
  color: var(--color-fg-hi);
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  line-height: 1;
}

.chapter-visual {
  position: relative;
  isolation: isolate;
}

/* The plate is the deepest layer: a pool of the beam's light and a patch of
   the hero's grid, so each picture sits on something that moves slower. */
.plate {
  position: absolute;
  inset: calc(-1 * var(--space-8)) calc(-1 * var(--space-6));
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50% 50% at 50% 50%, var(--beam) 0%, transparent 70%),
    linear-gradient(to right, var(--color-line-soft) 1px, transparent 1px) center / var(--space-10) var(--space-10),
    linear-gradient(to bottom, var(--color-line-soft) 1px, transparent 1px) center / var(--space-10) var(--space-10);
  mask-image: radial-gradient(closest-side, black 30%, transparent);
  -webkit-mask-image: radial-gradient(closest-side, black 30%, transparent);
  opacity: 0.8;
}

/* A note floating over a picture, nearer the reader than the picture is.
   It drifts but never fades, so its text is at full contrast whenever it
   is on screen. */
.chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  max-width: calc(100% - var(--space-6));
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-line-hard);
  border-radius: var(--radius-md);
  background: var(--color-ink-100);
  box-shadow: var(--shadow-elev-3);
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  color: var(--color-fg-mid);
}

.chip > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chip b {
  color: var(--color-fg-hi);
  font-weight: 600;
}

.chip code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-sky-400);
}

.chip-sub {
  color: var(--color-fg-lo);
}

.chip .icon {
  color: var(--color-sky-400);
}

.chip kbd {
  min-width: var(--space-8);
  height: var(--space-8);
  font-size: var(--text-subhead);
}

.chip .ring {
  width: var(--space-6);
  height: var(--space-6);
}

.chip-bl {
  left: var(--space-3);
  bottom: calc(-1 * var(--space-6));
}

.chip-br {
  right: var(--space-3);
  bottom: calc(-1 * var(--space-6));
}

.chip-tr {
  right: var(--space-3);
  top: calc(-1 * var(--space-6));
}

.chip-tl {
  left: var(--space-3);
  top: calc(-1 * var(--space-6));
}

@media (min-width: 1200px) {
  .chip-bl {
    left: calc(-1 * var(--space-7));
  }

  .chip-br {
    right: calc(-1 * var(--space-7));
  }

  .chip-tr {
    right: calc(-1 * var(--space-7));
  }

  .chip-tl {
    left: calc(-1 * var(--space-7));
  }
}

/* Mock-ups the captures don't cover: a 2FA set-up page, the review list. */
.mock-url {
  flex: 1;
  margin-right: var(--space-9);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-ink-200);
  color: var(--color-fg-lo);
  font-size: var(--text-caption);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6);
}

.qr-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.qr-line {
  height: var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-ink-300);
}

.qr-line.short {
  width: 60%;
}

.qr-target {
  position: relative;
  width: calc(var(--space-10) * 1.9);
  margin: var(--space-3);
}

.qr {
  width: 100%;
  height: auto;
  color: var(--color-ink-050);
}

.qr-ground {
  fill: var(--color-fg-hi);
}

@media (prefers-color-scheme: light) {
  .qr {
    color: var(--color-fg-hi);
  }

  .qr-ground {
    fill: var(--color-ink-000);
  }
}

/* The movable frame, held over the code: four sky corners. */
.scan-frame {
  position: absolute;
  inset: calc(-1 * var(--space-3));
}

.scan-frame i {
  position: absolute;
  width: var(--space-5);
  height: var(--space-5);
  border: 2px solid var(--color-sky-400);
}

.scan-frame i:nth-child(1) {
  left: 0;
  top: 0;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: var(--radius-xs);
}

.scan-frame i:nth-child(2) {
  right: 0;
  top: 0;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: var(--radius-xs);
}

.scan-frame i:nth-child(3) {
  left: 0;
  bottom: 0;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: var(--radius-xs);
}

.scan-frame i:nth-child(4) {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: var(--radius-xs);
}

@media (max-width: 480px) {
  .qr-page {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .qr-copy {
    width: 100%;
  }
}

.mock-review {
  padding: var(--space-4);
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-1) var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-line-soft);
}

.review-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
}

.review-title .icon {
  width: var(--space-4);
  height: var(--space-4);
  color: var(--color-copper);
}

.review-count {
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-ink-300);
  color: var(--color-fg-mid);
  font-size: var(--text-caption);
}

.mock-review .mock-label {
  margin: var(--space-4) var(--space-2) var(--space-1);
}

.badge {
  flex: none;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-xs);
  font-size: var(--text-caption);
  line-height: 1;
  font-weight: 600;
}

.badge-weak {
  background: var(--color-brick-tint);
  color: var(--color-brick);
}

.badge-reused {
  background: var(--color-copper-tint);
  color: var(--color-copper);
}

.badge-stale {
  background: var(--color-iris-tint);
  color: var(--color-iris);
}

/* Home: the quick panel, pinned ------------------------------------------- */

/* Without motion this is three pictures in a row, each with its own strip of
   screen edge. The scroll story turns it into one pinned picture below. */
.pin {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-10) var(--gutter);
}

.pin-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-9);
}

.notch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .notch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-7);
  }
}

.notch-screen,
.notch-rail {
  display: none;
}

.notch-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* The picture leads visually; the copy stays first in reading order. */
.notch-step .notch-fig {
  order: -1;
}

/* Each picture is a strip of desktop ending at the screen edge, at one scale
   for all three so the dots, the controls and the panel keep their sizes
   relative to one another. */
.notch-fig {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: calc(var(--space-10) * 4.6);
  padding-right: var(--space-2);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  background:
    radial-gradient(60% 50% at 100% 50%, var(--beam), transparent 70%),
    linear-gradient(to right, var(--color-line-soft) 1px, transparent 1px) right / var(--space-9) var(--space-9),
    linear-gradient(to bottom, var(--color-line-soft) 1px, transparent 1px) right / var(--space-9) var(--space-9),
    var(--color-ink-000);
  overflow: hidden;
}

.notch-fig::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-sky-400), transparent);
}

.notch-fig img {
  width: auto;
  height: calc(100% - var(--space-6));
}

.notch-fig .shot-handle-woken {
  height: calc((100% - var(--space-6)) * 150 / 460);
}

.notch-fig .shot-handle-dormant {
  height: calc((100% - var(--space-6)) * 45 / 460);
}

.notch-num {
  display: inline-grid;
  place-items: center;
  width: var(--space-7);
  height: var(--space-7);
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-sky-400);
  border-radius: var(--radius-pill);
  color: var(--color-sky-400);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
}

.notch-title {
  font-size: var(--text-heading);
  line-height: var(--text-heading--line-height);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.notch-text {
  color: var(--color-fg-mid);
  font-size: var(--text-body);
  line-height: 1.55;
  max-width: 44ch;
}

.notch-foot {
  margin: var(--space-8) auto 0;
  max-width: 64ch;
  text-align: center;
  color: var(--color-fg-lo);
  font-size: var(--text-body);
  line-height: 1.55;
}

.notch-foot strong {
  color: var(--color-fg-mid);
}

/* Home: why it's secure ----------------------------------------------------- */

.secure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-9);
}

@media (min-width: 960px) {
  .secure-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--space-10);
    align-items: start;
  }

  /* The board stays in view while the chain is read beside it. */
  .sees-board {
    position: sticky;
    top: calc(var(--masthead-h) + var(--space-8));
  }
}

.key-flow {
  position: relative;
}

.key-spine {
  position: absolute;
  left: calc(var(--space-7) / 2);
  top: var(--space-4);
  bottom: var(--space-8);
  width: 1px;
  background: var(--color-line-hard);
}

.key-spine-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--color-sky-400), color-mix(in oklab, var(--color-sky-400) 30%, transparent));
  transform-origin: top;
}

.key-chain {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.key-node {
  position: relative;
  display: grid;
  grid-template-columns: var(--space-7) minmax(0, 1fr);
  gap: var(--space-5);
}

.key-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--space-7);
  height: var(--space-7);
  border: 1px solid var(--color-line-hard);
  border-radius: var(--radius-pill);
  background: var(--color-ink-050);
  color: var(--color-fg-lo);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
}

.key-dot-lit {
  position: absolute;
  inset: -1px;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: var(--color-sky-400);
  color: var(--color-on-sky);
  box-shadow: 0 0 var(--space-5) var(--beam);
}

.key-title {
  font-size: var(--text-heading);
  line-height: var(--text-heading--line-height);
  font-weight: 600;
  margin: var(--space-1) 0 var(--space-2);
}

.key-text {
  color: var(--color-fg-mid);
  max-width: 52ch;
}

.sees-board {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-7);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  background: var(--color-ink-100);
}

.sees-col p {
  color: var(--color-fg-mid);
  font-size: var(--text-body);
  line-height: 1.6;
}

.sees-col + .sees-col {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line-soft);
}

.sees-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--text-label);
  line-height: var(--text-label--line-height);
  font-weight: var(--text-label--font-weight);
  letter-spacing: var(--text-label--letter-spacing);
  text-transform: uppercase;
  color: var(--color-fg-lo);
}

.sees-head .icon {
  width: var(--space-4);
  height: var(--space-4);
}

.sees-never .sees-head {
  color: var(--color-sky-400);
}

.sees-foot {
  color: var(--color-fg-lo);
  font-size: var(--text-body);
  line-height: 1.55;
}

.sees-board .text-link {
  margin-top: 0;
}

/* Home: what's different ---------------------------------------------------- */

.diff-grid {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8) var(--space-7);
}

@media (min-width: 640px) {
  .diff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .diff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.diff {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line-hard);
}

.diff .icon {
  width: var(--space-6);
  height: var(--space-6);
  margin-bottom: var(--space-4);
  color: var(--color-sky-400);
}

.diff-title {
  font-size: var(--text-subhead);
  line-height: var(--text-subhead--line-height);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.diff-text {
  color: var(--color-fg-mid);
  font-size: var(--text-body);
  line-height: 1.55;
}

/* Home: where your data lives ------------------------------------------------- */

.homes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

@media (min-width: 960px) {
  .homes-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "main self" "main local";
    gap: var(--space-6);
  }

  .home-card-main {
    grid-area: main;
  }
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-7);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  background: var(--color-ink-100);
}

/* The default is the easy path, so it is the one with the light on it. */
.home-card-main {
  position: relative;
  border-color: var(--color-line-sky);
  background:
    radial-gradient(70% 60% at 0% 0%, var(--beam-faint), transparent 70%),
    var(--color-ink-100);
  box-shadow: 0 var(--space-8) var(--space-10) calc(-1 * var(--space-8)) var(--beam);
}

.home-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.home-card-top .icon {
  width: var(--space-7);
  height: var(--space-7);
  color: var(--color-sky-400);
}

.pill {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-ink-300);
  color: var(--color-fg-mid);
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  font-weight: 600;
}

.pill-sky {
  background: var(--color-sky-tint);
  color: var(--color-sky-400);
}

.home-title {
  font-family: var(--font-display);
  font-size: var(--text-title);
  line-height: var(--text-title--line-height);
  font-weight: var(--text-title--font-weight);
}

.home-card-main .home-title {
  font-size: clamp(var(--text-title), 3.4vw, calc(var(--text-display) * 0.8));
  line-height: 1.1;
}

.home-lead {
  color: var(--color-fg-mid);
  line-height: 1.55;
}

.home-points {
  list-style: none;
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-line-soft);
}

.home-points li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-line-soft);
  color: var(--color-fg-mid);
  font-size: var(--text-body);
  line-height: 1.55;
}

.home-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--space-3) + 0.7em);
  width: var(--space-2);
  height: 1px;
  background: var(--color-sky-400);
}

/* Two of your devices and the hub between them, with only ciphertext on the
   wire. */
.sync-map {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--space-6) 0 var(--space-2);
}

/* On the wide layout the card is as tall as the two beside it; the map
   takes the spare height and grows to fill it. */
@media (min-width: 960px) {
  .sync-map {
    padding: var(--space-8) var(--space-2);
  }

  .sync-node .icon {
    width: var(--space-7);
    height: var(--space-7);
    padding: var(--space-4);
  }
}

.sync-node {
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  max-width: calc(var(--space-10) * 1.3);
  color: var(--color-fg-mid);
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  text-align: center;
}

.sync-node .icon {
  box-sizing: content-box;
  padding: var(--space-3);
  border: 1px solid var(--color-line-hard);
  border-radius: var(--radius-md);
  background: var(--color-ink-050);
  color: var(--color-fg-mid);
}

.sync-hub .icon {
  border-color: var(--color-sky-400);
  color: var(--color-sky-400);
  box-shadow: 0 0 var(--space-6) var(--beam);
}

.sync-node small {
  display: block;
  color: var(--color-fg-lo);
  font-size: var(--text-label);
  letter-spacing: var(--text-label--letter-spacing);
}

.sync-line {
  flex: 1;
  position: relative;
  min-width: var(--space-6);
  height: 1px;
  margin: 0 var(--space-2) calc(var(--space-6) + var(--space-1));
  background: linear-gradient(to right, var(--color-line-hard), var(--color-sky-400), var(--color-line-hard));
}

.sync-line span {
  position: absolute;
  left: 50%;
  bottom: var(--space-2);
  transform: translateX(-50%);
  color: var(--color-fg-lo);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  white-space: nowrap;
}

/* On a phone, or with wider text spacing, three nodes in a row don't fit:
   the map turns to run top to bottom, and each name gets the full width. */
@media (max-width: 480px) {
  .sync-map {
    flex-direction: column;
    align-items: stretch;
  }

  .sync-node {
    max-width: none;
  }

  .sync-line {
    flex: none;
    align-self: center;
    width: 1px;
    min-width: 0;
    height: var(--space-7);
    margin: var(--space-2) 0;
    background: linear-gradient(to bottom, var(--color-line-hard), var(--color-sky-400), var(--color-line-hard));
  }

  .sync-line span {
    left: var(--space-3);
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
}

.mock-terminal-wrap .mock-pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.home-note {
  padding-top: var(--space-3);
  color: var(--color-fg-lo);
  font-size: var(--text-caption);
  line-height: 1.55;
}

/* The three ways a vault moves or is kept, under the three places it lives. */
.keep-list {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8) var(--space-7);
  margin-top: var(--space-10);
}

@media (min-width: 960px) {
  .keep-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.keep {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line-hard);
}

.keep .icon {
  width: var(--space-6);
  height: var(--space-6);
  margin-bottom: var(--space-4);
  color: var(--color-sky-400);
}

.keep-title {
  font-size: var(--text-subhead);
  line-height: var(--text-subhead--line-height);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.keep-text {
  color: var(--color-fg-mid);
  font-size: var(--text-body);
  line-height: 1.55;
}

.keep-note {
  margin-top: var(--space-3);
  color: var(--color-fg-lo);
  font-size: var(--text-caption);
  line-height: 1.55;
}

.homes-link {
  display: flex;
  width: fit-content;
  margin: var(--space-8) auto 0;
}

/* Home: help band, FAQ footer ---------------------------------------------- */

.help-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-7);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 120% at 100% 50%, var(--beam-faint), transparent 70%),
    var(--color-ink-100);
}

.faq-more {
  margin-top: var(--space-6);
  text-align: center;
  color: var(--color-fg-mid);
  font-size: var(--text-body);
}

/* Home: the scroll story ------------------------------------------------------
   Layers in a `data-scene` move as that scene crosses the viewport. Only
   transform and opacity are animated, so nothing is laid out again while
   scrolling. Every rule that moves or hides anything is under `.sx`, which
   site.js puts on <html> only when the reader allows motion, so with no
   script, or with reduced motion, the page is the static one above.

   Two engines drive the same keyframes. Where the browser has scroll-driven
   animations, the keyframes run on a view timeline and the compositor plays
   them. Elsewhere (`.sx-js`) the animation is paused and site.js seeks it,
   writing the scene's progress, 0 to 1, into --p, and a negative delay of
   --p seconds into a one-second animation lands on the same frame. The
   ranges map one to one: `cover` for a plain scene, `exit` for the hero,
   `contain` for the pinned panel. */

@media (prefers-reduced-motion: no-preference) {
  .sx .fx {
    animation-timing-function: linear;
    animation-fill-mode: both;
  }

  @supports (animation-timeline: view()) {
    .sx [data-scene] {
      view-timeline: --scene block;
    }

    .sx .fx {
      animation-duration: auto;
      animation-timeline: --scene;
      animation-range: cover 0% cover 100%;
    }

    .sx [data-scene="exit"] .fx {
      animation-range: exit 0% exit 100%;
    }

    .sx [data-scene="pin"] {
      view-timeline: --pin block;
      view-timeline-inset: var(--masthead-h) 0;
    }

    .sx [data-scene="pin"] .fx {
      animation-timeline: --pin;
      animation-range: contain 0% contain 100%;
    }
  }

  .sx-js .fx {
    animation-duration: 1s;
    animation-play-state: paused;
    animation-delay: calc(var(--p, 0) * -1s);
  }

  /* Depth. A layer further back drifts down against the scroll and so seems
     to move slower; a nearer one drifts up and seems faster. */
  .sx .depth-back,
  .sx .depth-1,
  .sx .depth-2,
  .sx .depth-3,
  .sx .hero-back,
  .sx .hero-vault,
  .sx .hero-quick,
  .sx .hero-handle,
  .sx .diff,
  .sx .depth-front {
    animation-name: fx-drift;
  }


  .sx .depth-back {
    --y0: calc(-1 * var(--space-9));
    --y1: var(--space-9);
  }

  .sx .depth-1 {
    --y0: var(--space-7);
    --y1: calc(-1 * var(--space-7));
  }

  .sx .depth-2 {
    --y0: var(--space-9);
    --y1: calc(-1 * var(--space-9));
  }

  .sx .depth-3 {
    --y0: calc(var(--space-10) * 1.3);
    --y1: calc(-1 * var(--space-10) * 1.3);
  }

  .sx .depth-front {
    --y0: calc(var(--space-10) * 1.6);
    --y1: calc(-1 * var(--space-10) * 1.6);
  }

  /* The hero comes apart as it leaves: the light falls behind, the window
     holds, the panel and the handle lift off it at their own speeds. */
  .sx .hero-back {
    --y1: calc(var(--space-10) * 3);
  }

  .sx .hero-vault {
    --y1: calc(-1 * var(--space-8));
    --s1: 0.96;
  }

  .sx .hero-quick {
    --y1: calc(-1 * var(--space-10) * 2.2);
  }

  .sx .hero-handle {
    --y1: calc(-1 * var(--space-10) * 3.4);
  }

  /* The columns of the differences grid travel at three speeds and line up
     as the grid crosses the middle of the window. */
  @media (min-width: 960px) {
    .sx .diff-1 {
      --y0: var(--space-6);
      --y1: calc(-1 * var(--space-6));
    }

    .sx .diff-2 {
      --y0: calc(var(--space-10) * 1.2);
      --y1: calc(-1 * var(--space-10) * 1.2);
    }

    .sx .diff-3 {
      --y0: var(--space-9);
      --y1: calc(-1 * var(--space-9));
    }
  }

  /* Stacked in one column, cards drifting at different speeds would run into
     each other; there they all move together. */
  @media (max-width: 959px) {
    .sx .homes .fx {
      --y0: var(--space-5);
      --y1: calc(-1 * var(--space-5));
    }
  }

  /* The chain of keys lights in order as each step reaches the middle. */
  .sx .key-spine-fill {
    animation-name: fx-fill;
  }

  .sx .key-dot-lit {
    animation-name: fx-light;
  }

  /* The pinned panel: three beats on one stretch of screen edge. The section
     is made tall and its contents stick, so the scroll distance is the
     timeline the beats play across.

     It pins only where the whole scene fits in the window: wide enough for
     copy beside the screen, tall enough for the heading, the screen and the
     footnote under the masthead. Anywhere smaller - a phone, a short laptop
     window, 200% or 400% zoom - a pinned box would have to clip what does
     not fit (WCAG 1.4.10, 1.4.12), so the section stays the static three
     pictures in a row, which reflow like any other content. Even when it
     pins, the box only has a minimum height and clips sideways, never
     vertically: text spacing that makes the copy longer grows the box. */
  @media (min-width: 900px) and (min-height: 700px) {
    .sx .pin {
      height: 340vh;
      padding-top: 0;
      padding-bottom: 0;
    }

    .sx .pin-sticky {
      /* The screen's height is 0.8 of its width; the height term leaves room
         for the masthead, heading, footnote and gaps (four space-10s). */
      --stage-w: min(calc(var(--space-10) * 8), 44vw, calc((100svh - var(--masthead-h) - var(--space-10) * 4) * 1.25));
      --u: calc(var(--stage-w) / 600);
      position: sticky;
      top: var(--masthead-h);
      min-height: calc(100svh - var(--masthead-h));
      /* Out to the window's edges, so the sideways clip cuts at the window
         and not through the screen's shadow. */
      margin: 0 calc(-1 * var(--gutter));
      padding: 0 var(--gutter);
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: var(--space-6);
      overflow-x: clip;
      overflow-y: visible;
    }

    .sx .pin-head {
      margin-bottom: 0;
    }

    .sx .notch-grid {
      grid-template-columns: var(--space-1) minmax(0, 1fr) auto;
      grid-template-areas: "rail copy screen";
      gap: var(--space-8);
      align-items: center;
      justify-items: start;
    }

    .sx .notch-step {
      display: contents;
    }

    .sx .notch-copy {
      grid-area: copy;
      align-self: center;
    }

    .sx .notch-num {
      display: none;
    }

    .sx .notch-title {
      font-family: var(--font-display);
      font-size: clamp(var(--text-title), 3vw, calc(var(--text-display) * 0.72));
      font-weight: var(--text-display--font-weight);
      line-height: 1.1;
      margin-bottom: var(--space-4);
    }

    .sx .notch-text {
      font-size: calc(var(--text-subhead) + var(--space-1) / 2);
    }

    .sx .notch-rail {
      display: block;
      grid-area: rail;
      align-self: center;
      position: relative;
      width: 1px;
      height: calc(var(--stage-w) * 0.6);
      background: var(--color-line-hard);
    }

    .sx .notch-rail-fill {
      position: absolute;
      inset: 0;
      background: var(--color-sky-400);
      transform-origin: top;
      animation-name: fx-fill-pin;
    }

    .sx .notch-screen {
      display: block;
      grid-area: screen;
      justify-self: center;
      position: relative;
      width: var(--stage-w);
      height: calc(var(--stage-w) * 0.8);
      border: 1px solid var(--color-line-soft);
      border-radius: var(--radius-lg);
      background: var(--color-ink-000);
      box-shadow: var(--shadow-elev-3);
      overflow: hidden;
    }

    /* The desktop's grid fades out toward the left, so the eye goes to the
       edge where everything happens. */
    .sx .notch-screen::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to right, var(--color-line-soft) 1px, transparent 1px) right / var(--space-9) var(--space-9),
        linear-gradient(to bottom, var(--color-line-soft) 1px, transparent 1px) right / var(--space-9) var(--space-9);
      mask-image: linear-gradient(to left, black, transparent 85%);
      -webkit-mask-image: linear-gradient(to left, black, transparent 85%);
    }

    /* A menu bar, so the box reads as a screen and not as a card. */
    .sx .notch-screen::after {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: calc(24 * var(--u));
      border-bottom: 1px solid var(--color-line-soft);
      background: var(--color-ink-100);
    }

    .sx .notch-edge {
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      width: 2px;
      background: linear-gradient(to bottom, transparent, var(--color-sky-400), transparent);
    }

    .sx .notch-glow {
      position: absolute;
      right: calc(-1 * var(--stage-w) * 0.3);
      top: 20%;
      width: calc(var(--stage-w) * 0.7);
      height: 60%;
      border-radius: var(--radius-pill);
      background: radial-gradient(closest-side, var(--beam), transparent);
      animation-name: fx-glow;
    }

    /* The figures share the screen's grid cell and sit against its right
       edge, the handle 8 in from it, at one scale (--u) taken from the
       captures' own sizes. Order goes back to 0: in a grid it also sets
       paint order, and -1 would put the figures under the screen. */
    .sx .notch-fig {
      order: 0;
      grid-area: screen;
      justify-self: center;
      width: var(--stage-w);
      height: calc(var(--stage-w) * 0.8);
      padding: 0 calc(8 * var(--u)) 0 0;
      border: 0;
      background: none;
      overflow: visible;
      pointer-events: none;
    }

    .sx .notch-fig::after {
      content: none;
    }

    .sx .notch-fig img {
      height: auto;
    }

    .sx .notch-fig .shot-handle-dormant {
      width: calc(20 * var(--u));
    }

    .sx .notch-fig .shot-handle-woken {
      width: calc(58 * var(--u));
    }

    .sx .notch-fig .shot-quick {
      width: calc(340 * var(--u));
      margin-right: calc(-12 * var(--u));
    }

    .sx .notch-step-1 .notch-fig {
      transform-origin: 100% 50%;
      animation-name: fx-beat-1-fig;
    }

    .sx .notch-step-2 .notch-fig {
      transform-origin: 100% 50%;
      animation-name: fx-beat-2-fig;
    }

    .sx .notch-step-3 .notch-fig {
      animation-name: fx-beat-3-fig;
    }

    .sx .notch-step-1 .notch-copy {
      animation-name: fx-beat-1;
    }

    .sx .notch-step-2 .notch-copy {
      animation-name: fx-beat-2;
    }

    .sx .notch-step-3 .notch-copy {
      animation-name: fx-beat-3;
    }

    .sx .notch-foot {
      margin-top: 0;
    }
  }
}

@keyframes fx-drift {
  from {
    transform: translate3d(0, var(--y0, 0), 0) scale(var(--s0, 1));
  }
  to {
    transform: translate3d(0, var(--y1, 0), 0) scale(var(--s1, 1));
  }
}

@keyframes fx-fill {
  0%,
  15% {
    transform: scaleY(0);
  }
  70%,
  100% {
    transform: scaleY(1);
  }
}

@keyframes fx-fill-pin {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes fx-light {
  0%,
  28% {
    opacity: 0;
    transform: scale(0.6);
  }
  42%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fx-glow {
  0% {
    opacity: 0.4;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.3);
  }
}

/* Beat 1, the dots: 0 to a third. Beat 2, the controls: a third to two
   thirds. Beat 3, the panel: the rest. The captions hand over with a short
   gap in which neither shows, so two never overlap mid-fade and the text on
   screen is always one caption at full contrast or none; the pictures
   below are free to blend. */
@keyframes fx-beat-1 {
  0%,
  29% {
    opacity: 1;
    transform: none;
  }
  33%,
  100% {
    opacity: 0;
    transform: translate3d(0, calc(-1 * var(--space-5)), 0);
  }
}

@keyframes fx-beat-2 {
  0%,
  34% {
    opacity: 0;
    transform: translate3d(0, var(--space-5), 0);
  }
  38%,
  59% {
    opacity: 1;
    transform: none;
  }
  63%,
  100% {
    opacity: 0;
    transform: translate3d(0, calc(-1 * var(--space-5)), 0);
  }
}

@keyframes fx-beat-3 {
  0%,
  64% {
    opacity: 0;
    transform: translate3d(0, var(--space-5), 0);
  }
  68%,
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes fx-beat-1-fig {
  0%,
  28% {
    opacity: 1;
    transform: none;
  }
  36%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes fx-beat-2-fig {
  0%,
  28% {
    opacity: 0;
    transform: scale(0.3);
  }
  38%,
  58% {
    opacity: 1;
    transform: none;
  }
  66%,
  100% {
    opacity: 0;
    transform: translate3d(calc(-1 * var(--space-5)), 0, 0);
  }
}

/* The panel slides in from the screen edge by at most half a gutter, so
   even before it shows it never sits outside the window. */
@keyframes fx-beat-3-fig {
  0%,
  60% {
    opacity: 0;
    transform: translate3d(calc(var(--gutter) / 2), 0, 0);
  }
  76%,
  100% {
    opacity: 1;
    transform: none;
  }
}

/* Scroll reveal: only when the script has run and motion is allowed. Without
   either, every section is simply there. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(var(--space-5));
  }
  .reveal-ready [data-reveal] {
    transition: opacity var(--duration-calm) var(--ease-base), transform calc(var(--duration-calm) * 2) var(--ease-base);
  }
}

/* Page hero (security) and documents ---------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-10) var(--gutter) var(--space-9);
  text-align: center;
}

.page-hero > *:not(.beam) {
  position: relative;
  z-index: 1;
}

.doc {
  max-width: var(--reading-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.doc-section {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-line-soft);
}

.doc-section p + p {
  margin-top: var(--space-4);
}

.doc-section p,
.doc-list {
  color: var(--color-fg-mid);
}

.doc-h2 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-heading);
  line-height: var(--text-heading--line-height);
  font-weight: 600;
}

.doc-h2 .icon {
  color: var(--color-sky-400);
}

.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-3) 0;
}

.doc-list li {
  position: relative;
  padding-left: var(--space-5);
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: var(--space-2);
  height: 1px;
  background: var(--color-sky-400);
}

.doc-limits .doc-h2 .icon {
  color: var(--color-copper);
}

.doc-help .cta-row {
  margin-top: var(--space-5);
}

/* Legal --------------------------------------------------------------------- */

.legal {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-10) var(--gutter) 0;
}

.legal-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--reading-max);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-line-soft);
}

.legal-head .eyebrow {
  justify-content: flex-start;
}

.legal-head .eyebrow::before {
  display: none;
}

.legal-body {
  display: grid;
  gap: var(--space-8);
  padding-top: var(--space-8);
}

@media (min-width: 980px) {
  .legal-body {
    grid-template-columns: calc(var(--space-10) * 3.4) minmax(0, var(--reading-max));
    gap: var(--space-10);
  }
  .toc {
    position: sticky;
    top: calc(var(--masthead-h) + var(--space-6));
    align-self: start;
  }
}

.toc-head {
  margin-bottom: var(--space-3);
  font-size: var(--text-label);
  font-weight: var(--text-label--font-weight);
  letter-spacing: var(--text-label--letter-spacing);
  text-transform: uppercase;
  color: var(--color-fg-lo);
}

.toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  border-left: 1px solid var(--color-line-soft);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
}

.toc a {
  display: block;
  padding: var(--space-1) var(--space-4);
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--color-fg-mid);
  text-decoration: none;
}

.toc a:hover {
  border-left-color: var(--color-sky-400);
}

.prose {
  color: var(--color-fg-mid);
  min-width: 0;
}

.prose section + section {
  margin-top: var(--space-8);
}

.prose h2 {
  margin-bottom: var(--space-3);
  font-size: var(--text-heading);
  line-height: var(--text-heading--line-height);
  font-weight: 600;
  color: var(--color-fg-hi);
}

.prose h3 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--text-subhead);
  line-height: var(--text-subhead--line-height);
  font-weight: 600;
  color: var(--color-fg-hi);
}

.prose p,
.prose ul,
.prose ol,
.prose table {
  margin: 0 0 var(--space-4);
}

.prose ul,
.prose ol {
  padding-left: var(--space-5);
}

.prose li + li {
  margin-top: var(--space-2);
}

.prose a {
  color: var(--color-fg-hi);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
}

/* On a phone a three-column table scrolls inside itself rather than
   widening the page. */
@media (max-width: 640px) {
  .prose .table-scroll {
    margin: 0 0 var(--space-4);
  }
  .prose .table-scroll table {
    margin: 0;
    min-width: calc(var(--space-10) * 7);
  }
}

.prose th,
.prose td {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: 1px solid var(--color-line-soft);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--color-fg-hi);
  font-weight: 600;
}

/* Auth card (join, sign-in, link pages) -------------------------------------- */

.auth {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: start center;
  padding: var(--space-10) var(--gutter) var(--space-9);
  min-height: calc(100vh - var(--masthead-h) - var(--space-10));
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: calc(var(--space-10) * 6.4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-7);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elev-3), 0 0 0 1px var(--color-line-soft) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (max-width: 480px) {
  .auth-card {
    padding: var(--space-7) var(--space-5);
  }
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -1px auto auto 15%;
  width: 70%;
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in oklab, var(--color-sky-300) 70%, transparent), transparent);
}

.auth-card .eyebrow {
  justify-content: flex-start;
}

.auth-card .eyebrow::before {
  display: none;
}

.auth-title {
  font-family: var(--font-display);
  font-size: var(--text-title);
  line-height: var(--text-title--line-height);
  font-weight: var(--text-title--font-weight);
}

.auth-sub {
  color: var(--color-fg-mid);
  overflow-wrap: anywhere;
}

.auth-alt {
  font-size: var(--text-body);
  color: var(--color-fg-mid);
  text-align: center;
}

.auth-icon {
  display: inline-grid;
  place-items: center;
  width: var(--space-9);
  height: var(--space-9);
  border-radius: var(--radius-md);
  background: var(--color-sky-tint);
  color: var(--color-sky-400);
}

.auth-icon .icon {
  width: var(--space-6);
  height: var(--space-6);
}

.auth-icon-warn {
  background: var(--color-copper-tint);
  color: var(--color-copper);
}

.status-code {
  font-family: var(--font-mono);
  font-size: var(--text-code-lg);
  color: var(--color-sky-400);
}

/* Forms ------------------------------------------------------------------- */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.field-label {
  font-size: var(--text-body-strong);
  font-weight: var(--text-body-strong--font-weight);
  line-height: var(--text-body-strong--line-height);
  padding: 0;
}

.optional {
  margin-left: var(--space-1);
  font-weight: 400;
  font-size: var(--text-caption);
  color: var(--color-fg-lo);
}

.input {
  width: 100%;
  min-height: calc(var(--space-8) + var(--space-2));
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  /* line-hard is a hairline colour at 1.6:1; a field's only outline needs
     3:1 against its surroundings (WCAG 1.4.11). */
  border: 1px solid color-mix(in srgb, var(--color-fg-lo) 80%, var(--color-ink-100));
  background: var(--color-ink-100);
  color: var(--color-fg-hi);
  font: inherit;
  font-size: var(--text-subhead);
  transition: border-color var(--duration-quick) var(--ease-base), box-shadow var(--duration-quick) var(--ease-base);
}

.input:hover {
  border-color: var(--color-fg-lo);
}

/* The inset ring makes the focused edge two pixels of sky: with the resting
   border now dark enough for 3:1, a one-pixel colour change alone was hard
   to tell from rest. */
.input:focus-visible {
  outline: none;
  border-color: var(--color-sky-400);
  box-shadow: inset 0 0 0 1px var(--color-sky-400), 0 0 0 3px color-mix(in oklab, var(--color-sky-400) 25%, transparent);
}

.input[aria-invalid="true"] {
  border-color: var(--color-brick);
}

.input-row {
  display: flex;
  gap: var(--space-2);
}

@media (max-width: 480px) {
  .input-row {
    flex-direction: column;
  }
}

.field-hint,
.form-note {
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  color: var(--color-fg-lo);
  overflow-wrap: anywhere;
}

.form-note {
  text-align: center;
}

.field-error {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  color: var(--color-brick);
}

.field-error .icon {
  width: var(--space-4);
  height: var(--space-4);
}

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--space-10) * 2.4), 1fr));
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--space-8);
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line-soft);
  background: var(--color-ink-100);
  font-size: var(--text-body);
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--color-sky-400);
  background: var(--color-sky-tint);
}

.checks-group {
  gap: var(--space-3);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  color: var(--color-fg-mid);
  cursor: pointer;
}

.check input,
.choice input {
  flex: none;
  width: var(--space-5);
  height: var(--space-5);
  margin: 0;
  accent-color: var(--color-sky-400);
}

.check input {
  margin-top: calc(var(--space-1) / -2);
}

.alert {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
}

.alert .icon {
  width: var(--space-5);
  height: var(--space-5);
}

.alert-error {
  background: var(--color-brick-tint);
  color: var(--color-brick);
}

.alert-ok {
  background: var(--color-sage-tint);
  color: var(--color-sage);
}

.alert-warn {
  background: var(--color-copper-tint);
  color: var(--color-copper);
}

.cf-turnstile {
  min-height: calc(var(--space-10) - var(--space-1));
}

/* Turnstile will not draw narrower than 300px. On the narrowest phones the
   card gives up some padding and the widget is drawn slightly smaller, so
   the page never scrolls sideways. */
@media (max-width: 360px) {
  .auth {
    padding-inline: var(--space-3);
  }
  .auth-card {
    padding-inline: var(--space-4);
  }
  .turnstile-wrap {
    /* Its 300px would otherwise become the card's minimum width. */
    contain: inline-size;
    width: 100%;
    overflow: hidden;
  }
  .cf-turnstile {
    transform: scale(0.85);
    transform-origin: left top;
    margin-bottom: calc(-1 * var(--space-3));
  }
}

/* Account ------------------------------------------------------------------ */

.acct {
  max-width: var(--reading-max);
  margin: 0 auto;
  padding: var(--space-10) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.acct-narrow {
  max-width: calc(var(--space-10) * 8);
}

.acct-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.acct-head .eyebrow {
  justify-content: flex-start;
}

.acct-head .eyebrow::before {
  display: none;
}

.acct-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-7);
  border-top: 1px solid var(--color-line-soft);
  color: var(--color-fg-mid);
}

.acct-h2 {
  font-size: var(--text-label);
  line-height: var(--text-label--line-height);
  font-weight: var(--text-label--font-weight);
  letter-spacing: var(--text-label--letter-spacing);
  text-transform: uppercase;
  color: var(--color-fg-lo);
}

.status-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-ink-100);
  border: 1px solid var(--color-line-soft);
}

.status-invited {
  border-color: var(--color-line-sky);
  background:
    radial-gradient(80% 120% at 100% 0%, var(--beam-faint), transparent 60%),
    var(--color-ink-100);
}

.status-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-fg-hi);
}

.pip {
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-pill);
}

.pip-wait {
  background: var(--color-sky-400);
  box-shadow: 0 0 0 4px var(--color-sky-tint);
}

.pip-ok {
  background: var(--color-sage);
  box-shadow: 0 0 0 4px var(--color-sage-tint);
}

.status-big {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: var(--text-display--line-height);
  font-weight: var(--text-display--font-weight);
  color: var(--color-fg-hi);
}

.status-big span {
  font-family: var(--font-sans);
  font-size: var(--text-subhead);
  color: var(--color-fg-lo);
}

.status-text {
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
}

.invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-ink-000);
  border: 1px solid var(--color-line-hard);
}

.invite-code {
  font-family: var(--font-mono);
  font-size: var(--text-code-lg);
  line-height: var(--text-code-lg--line-height);
  font-weight: var(--text-code-lg--font-weight);
  letter-spacing: 0.06em;
  color: var(--color-fg-hi);
  overflow-wrap: anywhere;
  user-select: all;
}

.mini-steps {
  padding-left: var(--space-5);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* The unsigned-Windows steps under the download list: the section's own gap
   already separates them from the rows, so this only keeps the lead-in line
   and its steps together. */
.windows-unsigned {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  /* The steps' size, not the page's larger reading size: the lead-in line
     belongs to the list, and at a size of its own it read as a new section. */
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
}

.rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-line-soft);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-line-soft);
}

@media (max-width: 560px) {
  .row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.row-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.row-title {
  font-weight: 600;
  color: var(--color-fg-hi);
}

.row-meta {
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  color: var(--color-fg-lo);
}

.row-hash {
  font-size: var(--text-caption);
  color: var(--color-fg-lo);
  overflow-wrap: anywhere;
}

.row-hash code {
  font-size: var(--text-caption);
}

/* Earlier builds on the account page: folded under the current ones, opened
   the way the FAQ opens. */
.acct-earlier {
  margin-top: var(--space-5);
}

.acct-earlier summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: calc(var(--space-9) + var(--space-1));
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.acct-earlier summary::-webkit-details-marker {
  display: none;
}

.acct-earlier summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--color-fg-lo);
  transition: transform var(--duration-base) var(--ease-base);
}

.acct-earlier[open] summary::after {
  transform: rotate(45deg);
  color: var(--color-sky-400);
}

.empty {
  padding: var(--space-5);
  border: 1px dashed var(--color-line-hard);
  border-radius: var(--radius-md);
  font-size: var(--text-body);
  text-align: center;
}

.form-inline .field {
  max-width: none;
}

.action-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-line-soft);
}

.action {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-2);
  border-bottom: 1px solid var(--color-line-soft);
  text-decoration: none;
  color: var(--color-fg-hi);
  transition: background-color var(--duration-quick) var(--ease-base);
}

.action:hover {
  background: var(--color-ink-100);
  color: var(--color-fg-hi);
}

.action .icon {
  color: var(--color-sky-400);
  margin-top: 2px;
}

.action > span {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.action-sub {
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  color: var(--color-fg-lo);
}

.action-danger .icon,
.action-danger strong {
  color: var(--color-brick);
}

.acct-signout {
  padding-bottom: 0;
}

/* Motion ----------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* The social card (og.html), rendered once to og.png at 1200x630. */
.og-body {
  min-height: 0;
}

.og {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Fixed by the Open Graph card format, not a design value. */
  width: 1200px;
  height: 630px;
  display: grid;
  place-items: center;
  background: var(--color-ink-050);
}

.og .beam {
  height: 100%;
}

.og-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.og .wordmark-xl {
  font-size: calc(var(--text-display) * 2.6);
}

.og .hero-sub {
  font-size: var(--text-title);
  max-width: none;
}

.og-url {
  font-family: var(--font-mono);
  font-size: var(--text-subhead);
  color: var(--color-sky-400);
}

/* Admin (admin.remempass.org) ---------------------------------------------- */
/*
 * Only the operator sees these. Denser than the public pages because they are
 * read as tables, but built from the same tokens: hairlines, one surface step
 * for a tile, sky only for the one action that sends email.
 */

.admin-badge {
  margin-left: var(--space-2);
  padding: 0 var(--space-2);
  border: 1px solid var(--color-line-sky);
  border-radius: var(--radius-pill);
  font-size: var(--text-label);
  line-height: calc(var(--text-label--line-height) + var(--space-1));
  font-weight: var(--text-label--font-weight);
  letter-spacing: var(--text-label--letter-spacing);
  text-transform: uppercase;
  color: var(--color-sky-400);
}

.admin-who {
  font-size: var(--text-caption);
  color: var(--color-fg-lo);
}

@media (max-width: 720px) {
  .admin-who {
    display: none;
  }
}

/* The public masthead drops its first link on a phone to make room for the
   waitlist button; here the first link is Overview, and there is no button. */
@media (max-width: 560px) {
  .admin .nav-link:first-child {
    display: inline-flex;
  }

  .admin .masthead .wordmark > span:not(.admin-badge) {
    display: none;
  }
}

.admin-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-8) var(--gutter) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.admin-wrap > * {
  min-width: 0;
}

.admin-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.admin-section-head .text-link {
  margin-top: 0;
}

.admin-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.admin-count {
  width: calc(var(--space-10) + var(--space-4));
  min-height: var(--space-8);
  padding-block: 0;
}

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.admin-filter .input {
  width: auto;
  flex: 1 1 calc(var(--space-10) * 3);
}

.admin-filter select.input {
  flex: 0 1 auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-10) * 2.5), 1fr));
  gap: var(--space-3);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  background: var(--color-ink-100);
  color: var(--color-fg-mid);
  text-decoration: none;
}

a.stat:hover {
  border-color: var(--color-line-hard);
  color: var(--color-fg-hi);
}

.stat-n {
  font-family: var(--font-display);
  font-size: var(--text-title);
  line-height: var(--text-title--line-height);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--color-fg-hi);
}

.stat-label {
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
}

.table-scroll {
  position: relative; /* so a visually-hidden header label scrolls with the table, not the page */
  overflow-x: auto;
}

/* A table this wide scrolls sideways on a phone rather than folding an
   address onto four lines. */
.table-scroll .data {
  min-width: calc(var(--space-10) * 9);
}

.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  color: var(--color-fg-mid);
}

.data th {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-line-hard);
  text-align: left;
  font-size: var(--text-label);
  font-weight: var(--text-label--font-weight);
  letter-spacing: var(--text-label--letter-spacing);
  text-transform: uppercase;
  color: var(--color-fg-lo);
  white-space: nowrap;
}

.data td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-line-soft);
  vertical-align: middle;
}

.data td:first-child,
.data th:first-child {
  padding-left: 0;
}

.data .num {
  font-variant-numeric: tabular-nums;
  color: var(--color-fg-lo);
}

.data .act {
  text-align: right;
  padding-right: 0;
}

.data time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cell-main {
  display: block;
  min-width: calc(var(--space-10) * 2.5);
  color: var(--color-fg-hi);
  overflow-wrap: anywhere;
}

.cell-sub,
.cell-sub-inline {
  color: var(--color-fg-lo);
}

.cell-sub {
  display: block;
}

.tag {
  display: inline-block;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-ink-300);
  color: var(--color-fg-mid);
  white-space: nowrap;
}

.tag-waiting,
.tag-ev-confirmed {
  background: var(--color-sky-tint);
  color: var(--color-sky-300);
}

.tag-invited,
.tag-ev-invited {
  background: var(--color-iris-tint);
  color: var(--color-iris);
}

.tag-joined,
.tag-ev-vault_account {
  background: var(--color-sage-tint);
  color: var(--color-sage);
}

.tag-ev-rights {
  background: var(--color-copper-tint);
  color: var(--color-copper);
}

/* Help center (/help, /help/<slug>) ----------------------------------------- */
/*
 * Articles reuse the policy pages' layout (.legal, .legal-body, .toc, .prose);
 * what is here is only what a how-to needs on top: numbered steps, callouts,
 * code samples, the search form and the index's cards and rows.
 */

/* Signed out on a phone the masthead already gives up Security for the two
   account buttons; Help goes with it, and stays in the footer. */
@media (max-width: 560px) {
  .nav:not(.nav-signed-in) .nav-help {
    display: none;
  }
}

/* An article page marks Help as the current section, not the current page. */
.nav-link[aria-current="true"] {
  color: var(--color-fg-hi);
}

.help {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-10) var(--gutter) 0;
}

.help-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--reading-max);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-line-soft);
}

.help-head .eyebrow {
  justify-content: flex-start;
}

.help-head .eyebrow::before {
  display: none;
}

.help-search {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.help-search-row {
  display: flex;
  gap: var(--space-2);
}

.help-search-row .input {
  flex: 1;
  min-width: 0;
}

.help-search-row .btn {
  min-height: calc(var(--space-8) + var(--space-2));
}

.help-topics {
  padding-top: var(--space-6);
}

.help-topics ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.help-topics a {
  display: inline-flex;
  align-items: center;
  min-height: var(--space-7);
  padding: 0 var(--space-3);
  border: 1px solid var(--color-line-hard);
  border-radius: var(--radius-pill);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  color: var(--color-fg-mid);
  text-decoration: none;
}

.help-topics a:hover {
  background: var(--color-ink-300);
  color: var(--color-fg-hi);
}

.help-section {
  padding-top: var(--space-9);
}

.help-h2 {
  font-size: var(--text-heading);
  line-height: var(--text-heading--line-height);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.help-section-sub {
  margin-top: var(--space-1);
  color: var(--color-fg-mid);
}

.help-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--space-10) * 4)), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.help-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-5);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  background: var(--color-ink-100);
  text-decoration: none;
  transition: border-color var(--duration-quick) var(--ease-base);
}

.help-card:hover {
  border-color: var(--color-line-hard);
  color: inherit;
}

.help-card-title,
.help-row-title {
  font-size: var(--text-body-strong);
  line-height: var(--text-body-strong--line-height);
  font-weight: 600;
  color: var(--color-fg-hi);
}

.help-card:hover .help-card-title,
.help-row:hover .help-row-title {
  color: var(--color-sky-400);
}

.help-card-text,
.help-row-text {
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  color: var(--color-fg-mid);
}

.help-rows {
  list-style: none;
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-line-soft);
}

.prose .help-rows {
  padding-left: 0;
}

.prose .help-rows li + li {
  margin-top: 0;
}

.help-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-line-soft);
  text-decoration: none;
}

.prose .help-row {
  color: inherit;
}

.help-empty {
  margin-top: var(--space-4);
  max-width: var(--reading-max);
  color: var(--color-fg-mid);
}

.help-back {
  margin-top: var(--space-5);
}

.help-contact {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  max-width: var(--reading-max);
  margin-top: var(--space-9);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  background: var(--color-ink-100);
  color: var(--color-fg-mid);
}

.help-contact .icon {
  color: var(--color-sky-400);
}

.help-contact-title {
  margin-bottom: var(--space-1);
  font-size: var(--text-body-strong);
  line-height: var(--text-body-strong--line-height);
  font-weight: 600;
  color: var(--color-fg-hi);
}

.help-contact a {
  color: var(--color-fg-hi);
}

/* Articles ------------------------------------------------------------------ */

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  color: var(--color-fg-lo);
}

.crumbs li + li::before {
  content: "/" / "";
  margin-right: var(--space-2);
  color: var(--color-fg-lo);
}

.crumbs a {
  color: var(--color-fg-mid);
}

/* A short article has no contents column; its text takes the first one. */
@media (min-width: 980px) {
  .legal-body.help-body-solo {
    grid-template-columns: minmax(0, var(--reading-max));
  }
}

.help-intro {
  margin-bottom: var(--space-8);
  color: var(--color-fg-hi);
}

.help-prose :not(pre) > code {
  padding: 0 var(--space-1);
  border-radius: var(--radius-xs);
  background: var(--color-ink-200);
  color: var(--color-fg-hi);
  overflow-wrap: anywhere;
}

.prose .help-steps {
  list-style: none;
  padding-left: 0;
  counter-reset: help-step;
}

.help-steps > li {
  position: relative;
  min-height: var(--space-6);
  padding-left: calc(var(--space-6) + var(--space-3));
  counter-increment: help-step;
}

.help-steps > li::before {
  content: counter(help-step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--space-6);
  height: var(--space-6);
  border: 1px solid var(--color-line-hard);
  border-radius: var(--radius-pill);
  background: var(--color-ink-200);
  color: var(--color-fg-hi);
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: 1;
}

.prose .help-steps > li + li {
  margin-top: var(--space-3);
}

.help-steps ul {
  margin: var(--space-2) 0 0;
}

.help-note {
  margin: 0 0 var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-line-hard);
  border-radius: var(--radius-sm);
  background: var(--color-ink-100);
  color: var(--color-fg-hi);
}

/* Tinted all round rather than flagged with a side stripe: the same
   alert-box language the forms use, so a warning reads as one here too. */
.help-note-warn {
  border-color: color-mix(in oklab, var(--color-copper) 40%, transparent);
  background: var(--color-copper-tint);
}

.help-note-label {
  font-size: var(--text-label);
  line-height: var(--text-label--line-height);
  font-weight: var(--text-label--font-weight);
  letter-spacing: var(--text-label--letter-spacing);
  text-transform: uppercase;
  color: var(--color-fg-mid);
}

.prose .help-note-label {
  margin-bottom: var(--space-1);
}

.help-note-warn .help-note-label {
  color: var(--color-copper);
}

.prose .help-note p:last-child {
  margin-bottom: 0;
}

.help-code {
  margin: 0 0 var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-sm);
  background: var(--color-ink-100);
  color: var(--color-fg-hi);
  font-family: var(--font-mono);
  font-size: var(--text-code);
  line-height: var(--text-code--line-height);
  overflow-x: auto;
  white-space: pre;
}

.help-code code {
  font-size: inherit;
}

.help-foot {
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line-soft);
}

.help-related {
  margin-bottom: var(--space-6);
}

.help-feedback {
  color: var(--color-fg-mid);
}

.help-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (max-width: 560px) {
  .help-pager {
    grid-template-columns: 1fr;
  }
}

.help-pager-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.prose .help-pager-link {
  color: inherit;
}

.help-pager-link:hover {
  border-color: var(--color-line-hard);
}

.help-pager-next {
  grid-column: 2;
  text-align: right;
}

@media (max-width: 560px) {
  .help-pager-next {
    grid-column: auto;
    text-align: left;
  }
}

.help-pager-dir {
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  color: var(--color-fg-lo);
}

.help-pager-title {
  font-weight: 600;
  color: var(--color-fg-hi);
}

.help-pager-link:hover .help-pager-title {
  color: var(--color-sky-400);
}

/* Two columns of topics on a wide screen halve the index's length; each
   column stays a readable measure. */
@media (min-width: 980px) {
  .help-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-9);
  }
}

/* A shortcut is one thing; it never breaks across lines. */
.help-keys {
  white-space: nowrap;
}
