/* OpenStatement site: the app's paper statement, as a product page (apps/OpenStatement/DESIGN.md §4).
   No web fonts, no scripts, no external requests. Phones are drawn here in CSS; the screens inside them are the app's
   own captures of its fictional sample data (img/shots/, img/PROVENANCE.md).
   Light: Paper #FAF8F3 · Ink #1C1F23 · Statement Blue #2F5D8A · Teal #1F7A6D (money in) · Amber #965A00 (attention).
   Dark:  Carbon #121416 · Ink #ECE9E2 · Accent #96BBE3 · Teal #5DC1AF · Amber #F0A93B. */

:root {
  color-scheme: light dark;
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --sunk: #F2EFE8;
  --ink: #1C1F23;
  --ink-2: #4E545B;                      /* 7.4:1 on paper */
  --accent: #2F5D8A;                     /* 6.6:1 on paper */
  --accent-fill: #2F5D8A;
  --on-accent: #FAF8F3;
  --teal: #1F7A6D;                       /* 5.3:1 on paper */
  --amber: #965A00;                      /* 5.3:1 on paper */
  --hair: rgba(28, 31, 35, 0.12);        /* ledger hairline */
  --rule: rgba(28, 31, 35, 0.55);        /* double rule under totals */
  --band: #2F5D8A;
  --band-2: #29527A;
  --band-ink: #FAF8F3;
  --bezel: #1C1F23;
  --bezel-edge: #3B4047;
  --screen-empty: #ECE8DF;
  --shadow: 0 1px 2px rgba(28, 31, 35, 0.08), 0 22px 44px -22px rgba(28, 31, 35, 0.42);
  --serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
  --max: 72rem;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --surface: #1A1D21;
    --sunk: #0D0F11;
    --ink: #ECE9E2;
    --ink-2: #A9AFB6;
    --accent: #96BBE3;
    --accent-fill: #3A6EA5;
    --on-accent: #FFFFFF;
    --teal: #5DC1AF;
    --amber: #F0A93B;
    --hair: rgba(236, 233, 226, 0.14);
    --rule: rgba(236, 233, 226, 0.5);
    --band: #1C3048;
    --band-2: #18293E;
    --band-ink: #ECE9E2;
    --bezel: #2A2E34;
    --bezel-edge: #4B5159;
    --screen-empty: #22262B;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 22px 44px -22px rgba(0, 0, 0, 0.9);
  }
}

@media (prefers-contrast: more) {
  :root { --hair: rgba(28, 31, 35, 0.35); --rule: rgba(28, 31, 35, 0.9); --ink-2: #33383E; --amber: #8A5200; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --hair: rgba(236, 233, 226, 0.4); --rule: rgba(236, 233, 226, 0.9); --ink-2: #C9CED4; --amber: #FFC266; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

img { max-width: 100%; }

.skip {
  position: absolute; left: -999px; top: 0.5rem; z-index: 10;
  background: var(--surface); color: var(--accent); padding: 0.6rem 0.9rem; font-weight: 600;
}
.skip:focus { left: 0.5rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.35rem, 9vw, 4.25rem); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; line-height: 1.25; }
p, ul, ol, dl, table { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.25rem 0; }
strong { font-weight: 650; }
.lede { font-size: clamp(1.125rem, 2.6vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: var(--measure); }
.small { font-size: 0.9rem; color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: 0.92em; }
.up { color: var(--amber); }
.in { color: var(--teal); font-weight: 600; }

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

/* ---------- Masthead: Statement Blue, like the icon; the nav is a row of folder tabs ---------- */
.masthead {
  background: linear-gradient(180deg, var(--band), var(--band-2));
  color: var(--band-ink);
}
.masthead .wrap {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-top: 0.85rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem; min-height: 44px; margin-bottom: 0.7rem;
  color: var(--band-ink); text-decoration: none;
  font: 600 1.5rem/1.1 var(--serif);
}
.brand img { border-radius: 22%; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.masthead a:focus-visible { outline-color: var(--band-ink); }
.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.tabs li { margin: 0; }
.tabs a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.95rem;
  font: 600 0.95rem/1 var(--sans);
  color: var(--band-ink); text-decoration: none;
  border-radius: 0.55rem 0.55rem 0 0;
}
.tabs a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.tabs a[aria-current="page"] { background: var(--bg); color: var(--accent); }
.tabs a[aria-current="page"]:hover { text-decoration: none; }
.tabs a:focus-visible { outline-offset: -3px; }
@media (max-width: 26rem) {
  .masthead .wrap { gap: 0 1rem; }
  .brand { font-size: 1.3rem; margin-bottom: 0.25rem; }
  .brand img { width: 34px; height: 34px; }
  .tabs a { padding: 0 0.6rem; font-size: 0.9rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section + .section { border-top: 3px double var(--rule); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { color: var(--ink-2); font-size: 1.125rem; max-width: var(--measure); margin-bottom: 0; }
.sunk { background: var(--sunk); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.5rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.3rem;
  border-radius: 0.6rem; border: 1.5px solid var(--accent);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; color: var(--accent);
}
.button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.button.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }

/* ---------- Phones: drawn in CSS, no hardware artwork ---------- */
.phone {
  container-type: inline-size;
  width: min(var(--phone-w, 300px), 100%);
  margin: 0 auto;
}
.phone .bezel {
  padding: 3.4cqi;
  border-radius: 44px; border-radius: 15.5cqi;
  background: var(--bezel);
  box-shadow: inset 0 0 0 1px var(--bezel-edge), var(--shadow);
}
.phone .screen {
  display: block; width: 100%; height: auto; aspect-ratio: 660 / 1434;
  border-radius: 34px; border-radius: 12.2cqi;
  background: var(--screen-empty);
  color: transparent; /* a missing image keeps its frame and shows no broken alt text over it */
  overflow: hidden;
}
figure.shot { margin: 0; }
figure.shot figcaption { margin-top: 1rem; font-size: 0.95rem; color: var(--ink-2); max-width: 22rem; margin-inline: auto; }
figure.shot figcaption strong { display: block; color: var(--ink); font: 600 1.125rem/1.3 var(--serif); margin-bottom: 0.15rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 5.5rem); }
.hero .wrap {
  display: grid; gap: 2.5rem;
  grid-template-areas: "text" "phone" "summary";
}
.hero-text { grid-area: text; }
.hero-phone { grid-area: phone; --phone-w: 290px; }
.hero .summary { grid-area: summary; }
.hero h1 { padding-bottom: 0.9rem; margin-bottom: 1.25rem; border-bottom: 3px double var(--rule); max-width: 13ch; }
.hero .lede { margin-bottom: 1.5rem; }
.status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; margin: 0 0 1.5rem; }
.status .now {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 1rem/1.3 var(--sans); color: var(--ink);
}
.status .now::before {
  content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent);
}
.status .avail { font-size: 0.95rem; color: var(--ink-2); }
@media (min-width: 56rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
    grid-template-areas: "text phone" "summary phone";
    column-gap: clamp(3rem, 6vw, 6rem); row-gap: 2rem;
    align-items: start;
  }
  .hero-phone { --phone-w: 340px; align-self: center; }
  .hero .summary { max-width: 34rem; }
}

/* Statement summary: label · value rows, a double rule above the total (the app's own ledger) */
.summary {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem 0.9rem;
}
.summary .caption { font: 600 1.125rem/1.3 var(--serif); margin: 0 0 0.35rem; }
.summary .period { font-size: 0.875rem; color: var(--ink-2); margin: 0 0 0.6rem; }
.summary dl { margin: 0; }
.summary .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--hair); }
.summary dt { margin: 0; }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary .total { border-top: 3px double var(--rule); margin-top: 0.1rem; padding-top: 0.6rem; }
.summary .total dt, .summary .total dd { font: 700 1.125rem/1.3 var(--serif); }

/* ---------- Benefits: a phone and its story, alternating sides on wide screens ---------- */
.features { display: grid; gap: clamp(3.5rem, 9vw, 6.5rem); }
.feature { display: grid; gap: 2rem; align-items: center; --phone-w: 270px; }
.feature .copy { max-width: var(--measure); }
.where { display: inline-block; font: 600 0.95rem/1.3 var(--sans); color: var(--accent); margin: 0 0 0.6rem; }
.feature h3 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.15; margin-bottom: 0.9rem; }
.feature p { font-size: 1.0625rem; }
.points { list-style: none; padding: 0; margin: 1.25rem 0 0; border-top: 1px solid var(--hair); }
.points li { margin: 0; padding: 0.6rem 0 0.6rem 1.6rem; border-bottom: 1px solid var(--hair); position: relative; }
.points li::before { content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 0.55rem; height: 0.3rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
@media (min-width: 52rem) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 5rem); --phone-w: 310px; }
  .feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature .copy { justify-self: start; }
  .feature > figure { order: -1; }
  .feature.flip > figure { order: 1; }
}

/* ---------- Privacy band ---------- */
.privacy .wrap { display: grid; gap: 2.5rem; align-items: center; --phone-w: 270px; }
@media (min-width: 52rem) { .privacy .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(3rem, 7vw, 6rem); --phone-w: 310px; } }
.privacy h2 { margin-bottom: 1rem; }
.privacy .copy { max-width: 40rem; }

/* Your bank → SimpleFIN Bridge → This iPhone; nothing back to us */
.flow { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.5rem; }
.flow li {
  margin: 0; display: flex; align-items: center; gap: 0.5rem;
  font: 600 0.98rem/1.25 var(--sans);
}
.flow .node { background: var(--surface); border: 1px solid var(--hair); border-radius: 0.6rem; padding: 0.55rem 0.8rem; }
.flow .node.you { border-color: var(--accent); color: var(--accent); }
.flow li + li::before { content: "\2192"; color: var(--ink-2); font-weight: 400; }
@media (max-width: 30rem) {
  .flow, .flow li { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .flow li + li::before { content: "\2193"; padding-left: 1.1rem; }
}
.facts { display: grid; gap: 0 2rem; padding: 0; list-style: none; margin: 1.25rem 0 1.5rem; border-top: 1px solid var(--hair); }
.facts li { margin: 0; padding: 0.65rem 0; border-bottom: 1px solid var(--hair); }
.facts strong { display: block; }
.facts span { color: var(--ink-2); font-size: 0.97rem; }
@media (min-width: 40rem) { .facts { grid-template-columns: 1fr 1fr; } }

.note {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.2rem;
}
.note.attention { border-left-color: var(--amber); }
.note p:last-child, .note ul:last-child, .note ol:last-child { margin-bottom: 0; }

/* ---------- Gallery of three more screens ---------- */
.gallery-scroll { margin: 0 0 3.5rem; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 3rem 2rem; --phone-w: 250px; }
.gallery li { margin: 0; text-align: center; }
/* Phones: a row you swipe through, the next screen peeking in, instead of three tall phones stacked */
@media (max-width: 39.99rem) {
  .gallery-scroll {
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .gallery { grid-auto-flow: column; grid-auto-columns: min(74%, 250px); gap: 1.25rem; padding: 0.25rem 0 1rem; }
  .gallery li { scroll-snap-align: start; }
  .gallery figure.shot figcaption { font-size: 0.9rem; }
}
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); --phone-w: 260px; } }

/* Ledger list of features: hairline rows */
.ledger { list-style: none; padding: 0; margin: 0; border-top: 3px double var(--rule); }
.ledger li { margin: 0; padding: 0.95rem 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 1fr; gap: 0.2rem 2rem; }
.ledger .k { font: 600 1.125rem/1.35 var(--serif); }
.ledger .v { max-width: 44rem; }
@media (min-width: 44rem) { .ledger li { grid-template-columns: minmax(10rem, 15rem) 1fr; } }

/* ---------- Quick setup ---------- */
.start { display: grid; gap: 2.5rem; align-items: center; margin-bottom: clamp(3rem, 7vw, 5rem); --phone-w: 240px; }
@media (min-width: 52rem) { .start { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(3rem, 7vw, 6rem); --phone-w: 290px; } }
.start .copy { max-width: var(--measure); }
.start h3 { margin-bottom: 0.75rem; }

.paths { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.path {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 1rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  display: grid; gap: 2rem; align-items: start; --phone-w: 240px;
}
@media (min-width: 52rem) { .path { grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: clamp(2rem, 5vw, 4rem); --phone-w: 280px; } }
.path-head { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 0.4rem; }
.letter {
  flex: none; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--accent-fill); color: var(--on-accent); font: 700 1.2rem/1 var(--serif);
}
.path h3 { padding-top: 0.25rem; }
.path .tagline { color: var(--ink-2); margin: 0 0 1.25rem; }

ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.25rem; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3rem; margin: 0; min-height: 2.2rem; }
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.1rem;
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent);
  font: 700 1rem/1 var(--serif);
}
ol.steps > li::after { content: ""; position: absolute; left: calc(1rem - 0.75px); top: 2.1rem; bottom: 0.2rem; border-left: 1.5px dotted var(--hair); }
ol.steps > li:last-child { padding-bottom: 0; }
ol.steps > li:last-child::after { display: none; }
ol.steps strong.do { display: block; font-size: 1.0625rem; }
ol.steps .how { display: block; color: var(--ink-2); font-size: 0.98rem; margin-top: 0.15rem; }
ol.steps .how strong { color: var(--ink); }

.first { margin-top: clamp(3.5rem, 8vw, 5.5rem); display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .first { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: clamp(3rem, 6vw, 5rem); } }
.first h3 { margin-bottom: 1.25rem; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; --phone-w: 210px; }
.pair figcaption { margin-top: 0.75rem; text-align: center; font-size: 0.9rem; color: var(--ink-2); }
.pair figcaption strong { display: block; color: var(--ink); font: 600 1rem/1.3 var(--serif); }

.try { margin-top: clamp(3rem, 7vw, 4.5rem); }
.try .note { padding: 1.25rem 1.4rem; }
.try h3 { margin-bottom: 0.5rem; }

/* App screens drawn in HTML: the onboarding choice and the SimpleFIN checklist, with the app's own words.
   Sizes are in container units so they scale with the phone. */
.phone .screen.mock {
  aspect-ratio: 660 / 1434; background: #FAF8F3; color: #1C1F23;
  padding: 15cqi 6.5cqi 6cqi; font: 4.1cqi/1.35 var(--sans);
  display: flex; flex-direction: column; gap: 3.2cqi;
}
.mock .m-title { font: 600 7.4cqi/1.15 var(--serif); margin: 0 0 1.5cqi; }
.mock .m-nav { font: 600 4.8cqi/1.2 var(--serif); text-align: center; margin: 0 0 1cqi; }
.mock .m-row { display: flex; justify-content: space-between; gap: 2cqi; }
.mock .m-row span { color: #4E545B; text-align: right; }
.mock .m-card { background: #FFFFFF; border-radius: 3.6cqi; padding: 3.6cqi 4cqi; display: grid; grid-template-columns: 1fr auto; gap: 0 2cqi; align-items: center; }
.mock .m-card b { font-weight: 600; font-size: 4.5cqi; }
.mock .m-card span { color: #4E545B; font-size: 3.6cqi; grid-column: 1; }
.mock .m-card i { grid-row: 1 / span 2; grid-column: 2; font-style: normal; color: #4E545B; font-size: 5cqi; }
.mock .m-label { color: #4E545B; font-size: 3.5cqi; margin: 1cqi 0 -1.5cqi 1cqi; }
.mock .m-group { background: #FFFFFF; border-radius: 3.6cqi; padding: 1cqi 4cqi; }
.mock .m-group > div { padding: 2.4cqi 0; border-bottom: 1px solid rgba(28, 31, 35, 0.1); display: flex; gap: 2.5cqi; align-items: baseline; }
.mock .m-group > div:last-child { border-bottom: 0; }
.mock .m-n { flex: none; display: inline-grid; place-items: center; width: 5.6cqi; height: 5.6cqi; border-radius: 50%; border: 1px solid #2F5D8A; color: #2F5D8A; font-size: 3.3cqi; font-weight: 600; }
.mock .m-link { color: #2F5D8A; }
.mock .m-flow { display: flex; justify-content: space-between; align-items: center; gap: 1cqi; font-size: 3.2cqi; text-align: center; color: #4E545B; }
.mock .m-flow span { background: #FFFFFF; border-radius: 2.4cqi; padding: 2cqi 1.6cqi; color: #1C1F23; font-weight: 600; }
.mock .m-btn { background: #2F5D8A; color: #FFFFFF; border-radius: 6cqi; text-align: center; padding: 2.8cqi; font-weight: 600; }
.mock .m-field { color: #6B7178; }

/* ---------- You stay in control ---------- */
.control { display: grid; gap: 0 2.5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.control li { margin: 0; padding: 1.25rem 0; border-top: 1px solid var(--hair); }
.control h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.control p { margin: 0; }
@media (min-width: 46rem) { .control { grid-template-columns: 1fr 1fr; } }
.goal { font: 600 1.125rem/1.4 var(--serif); padding-top: 1.25rem; border-top: 3px double var(--rule); max-width: 46rem; }
.isnt { max-width: 46rem; color: var(--ink-2); }

/* ---------- FAQ teaser ---------- */
.faq-teaser { max-width: 46rem; border-top: 1px solid var(--hair); margin-bottom: 1.75rem; }
.faq-teaser details { border-bottom: 1px solid var(--hair); }
.faq-teaser summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 44px; padding: 0.85rem 0; font: 600 1.125rem/1.35 var(--serif);
}
.faq-teaser summary::-webkit-details-marker { display: none; }
.faq-teaser summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--sans); color: var(--accent); }
.faq-teaser details[open] summary::after { content: "\2212"; }
.faq-teaser details > div { padding: 0 0 1rem; }
.faq-teaser details p:last-child { margin-bottom: 0; }

.closing { text-align: left; }
.closing .wrap { display: grid; gap: 1rem; }
.closing p { max-width: var(--measure); }

/* ---------- Documents: support and privacy ---------- */
.doc-head { padding-block: clamp(2.25rem, 6vw, 4rem) 0; }
.doc-head h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); padding-bottom: 0.7rem; margin-bottom: 1rem; border-bottom: 3px double var(--rule); }
.doc-head .lede, .doc-head > .wrap > p { max-width: 44rem; }
.doc-head.alone { padding-bottom: clamp(3rem, 8vw, 5rem); }
.meta { font-size: 0.92rem; color: var(--ink-2); margin: 0 0 1.25rem; }

.doc { display: grid; gap: 2rem; padding-block: 2rem clamp(3rem, 8vw, 5rem); }
.doc .body { min-width: 0; max-width: 46rem; }
.doc .body > section, .doc .body > h2 { scroll-margin-top: 1rem; }
.doc h2 { font-size: clamp(1.5rem, 3.6vw, 1.9rem); margin: 2.75rem 0 0.9rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--hair); }
.doc .body > :first-child, .doc .body > section:first-child > h2:first-child { margin-top: 0; }
.doc h3 { font: 600 1.0625rem/1.35 var(--sans); margin: 1.4rem 0 0.35rem; }
.doc [id] { scroll-margin-top: 1rem; }

/* On-this-page navigation: a list on phones, a sticky column on wide screens */
.toc-box { background: var(--surface); border: 1px solid var(--hair); border-radius: 0.75rem; padding: 1rem 1.2rem; align-self: start; }
.toc-box .toc-title { font: 600 1.05rem/1.3 var(--serif); margin: 0 0 0.5rem; }
.toc-box p.toc-group { font: 600 0.9rem/1.3 var(--sans); color: var(--ink-2); margin: 0.9rem 0 0.2rem; }
.toc { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: flex; align-items: center; min-height: 40px; padding: 0.15rem 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc li:last-child a { border-bottom: 0; }
.toc-box .toc { columns: 1; }
@media (min-width: 40rem) and (max-width: 63.99rem) { .toc-box .toc { columns: 2 14rem; column-gap: 1.5rem; } .toc li { break-inside: avoid; } }
@media (min-width: 64rem) {
  .doc { grid-template-columns: 17.5rem minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
  .toc-box { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding-block: 0.8rem; }
  .toc a { min-height: 32px; font-size: 0.94rem; line-height: 1.3; }
  .toc-box p.toc-group { margin-top: 0.7rem; }
}

/* Support: quick cards at the top */
.cards { display: grid; gap: 1rem; margin: 0 0 1.5rem; }
@media (min-width: 44rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: 0.75rem; padding: 1rem 1.15rem; }
.card .card-title { font: 600 1.2rem/1.3 var(--serif); margin: 0 0 0.35rem; }
.card p { margin: 0 0 0.5rem; font-size: 0.97rem; }
.card p:last-child { margin: 0; }
.card.attention { border-top: 3px solid var(--amber); }

.quick { display: grid; gap: 1.25rem; margin-bottom: 1rem; }
@media (min-width: 44rem) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quick > div { background: var(--surface); border: 1px solid var(--hair); border-radius: 0.75rem; padding: 1.1rem 1.2rem; }
.quick h3 { margin-top: 0; display: flex; gap: 0.6rem; align-items: center; }
.quick .letter { width: 1.9rem; height: 1.9rem; font-size: 1rem; }
.quick ol.steps { margin-bottom: 0; }
.quick ol.steps > li { padding-left: 2.6rem; padding-bottom: 0.8rem; }
.quick ol.steps > li::before { width: 1.75rem; height: 1.75rem; font-size: 0.9rem; }
.quick ol.steps > li::after { left: calc(0.875rem - 0.75px); top: 1.85rem; }

.cancel { background: var(--surface); border: 1px solid var(--hair); border-top: 4px solid var(--amber); border-radius: 0.75rem; padding: 0.25rem 1.2rem 1.1rem; margin-top: 2.75rem; }
.cancel h2 { margin-top: 1rem; }

dl.faq { margin: 0 0 1rem; }
dl.faq dt { font-weight: 650; margin-top: 1.1rem; }
dl.faq dt:first-child { margin-top: 0; }
dl.faq dd { margin: 0.2rem 0 0; }

/* "What we store" table */
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
table.store { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
table.store caption { text-align: left; font: 600 1.05rem/1.4 var(--serif); padding-bottom: 0.4rem; }
table.store th, table.store td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--hair); }
table.store thead th { font: 600 0.88rem/1.3 var(--sans); color: var(--ink-2); border-bottom: 1px solid var(--rule); }
table.store tbody th { font-weight: 600; }
@media (max-width: 36rem) {
  table.store thead { position: absolute; left: -999px; }
  table.store, table.store tbody, table.store tr, table.store th, table.store td { display: block; width: 100%; }
  table.store tr { border-bottom: 1px solid var(--rule); padding: 0.4rem 0; }
  table.store th, table.store td { border: 0; padding: 0.2rem 0; }
  table.store td::before { content: attr(data-label) " · "; font-weight: 600; color: var(--ink-2); }
}

.contact { background: var(--surface); border: 1px solid var(--hair); border-top: 3px double var(--rule); border-radius: 0 0 0.75rem 0.75rem; padding: 0.9rem 1.1rem; margin: 0 0 1rem; }
.contact p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
footer.site { border-top: 3px double var(--rule); background: var(--sunk); color: var(--ink-2); font-size: 0.875rem; line-height: 1.55; }
footer.site .wrap { padding-block: 1.5rem 2.5rem; }
footer.site a { color: var(--ink); }
footer.site ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0 0 0.75rem; }
footer.site li { margin: 0; }
footer.site li a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
footer.site p { max-width: 52rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .masthead { background: none; color: var(--ink); border-bottom: 3px double var(--rule); }
  .brand { color: var(--ink); }
  .tabs, .skip, .actions, .toc-box { display: none; }
  .phone .bezel { box-shadow: none; }
  .doc { display: block; }
}
