/* Plainsign web — tokens from the brand board ("Plainsign — eSign iOS app"), light + dark. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-var.woff2?v=cc21735e86") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* Signature script for the editor mockup (Latin letters only). */
@font-face {
  font-family: "Mrs Saint Delafield";
  src: url("/assets/fonts/mrs-saint-delafield.woff2?v=d5c926d29d") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --paper: #FAF8F4;
  --surface: #FFFFFF;
  --surface2: #F2EEE6;
  --surface3: #E8E3D9;
  --line: #E3DDD1;
  --line-strong: #CBC3B4;
  --ink: #1B1E26;
  --ink2: #4F5461;
  --ink3: #6A6E78;
  --primary: #1E3A8A;
  --primary-press: #172E6E;
  --on-primary: #FFFFFF;
  --primary-soft: #E7ECF8;
  --primary-text: #1E3A8A;
  --seal: #B5400F;
  --seal-soft: #FBE9DF;
  --seal-text: #A13A0E;
  --success: #157F3B;
  --success-soft: #E2F2E7;
  --warn: #8A4B0B;
  --warn-soft: #FCEFD7;
  --danger: #B42318;
  --danger-soft: #FCE8E6;
  --glass: rgba(250, 248, 244, 0.86);
  --shadow: 0 1px 2px rgba(27, 30, 38, 0.06), 0 8px 24px rgba(27, 30, 38, 0.08);
  --shadow-lg: 0 2px 6px rgba(27, 30, 38, 0.08), 0 24px 60px rgba(27, 30, 38, 0.18);
  --desk: #ECE7DE;
  --page: #FFFFFF;
  --page-ink: #1B1E26;
  --page-rule: #9AA0AB;

  /* The privacy band: navy in light mode, a deep ink panel in dark mode. */
  --band: #1E3A8A;
  --on-band: #FFFFFF;
  --on-band2: #C9D3F2;

  --serif: "Newsreader", "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --script: "Mrs Saint Delafield", "Snell Roundhand", cursive;

  --r-button: 14px;
  --r-card: 16px;
  --r-sheet: 28px;
  --max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131519;
    --surface: #1C1F24;
    --surface2: #24272D;
    --surface3: #2E3239;
    --line: #30343B;
    --line-strong: #474C56;
    --ink: #F3F0EA;
    --ink2: #C3BEB5;
    --ink3: #A39E95;
    --primary: #3D5BC0;
    --primary-press: #334EA8;
    --primary-soft: #1F2A47;
    --primary-text: #A3B7F5;
    --seal: #E0692F;
    --seal-soft: #3A2114;
    --seal-text: #F29A6A;
    --success: #4CC27A;
    --success-soft: #173323;
    --warn: #F0B45A;
    --warn-soft: #33260F;
    --danger: #F2877D;
    --danger-soft: #3A1D1A;
    --glass: rgba(19, 21, 25, 0.86);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.55);
    --desk: #0E1013;
    --page: #F4F1EA;
    --page-rule: #8F959F;

    --band: #1F2A47;
    --on-band: #F3F0EA;
    --on-band2: #C3CCE6;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

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

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap {
  --gutter: 20px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
@media (min-width: 760px) { .wrap { --gutter: 32px; } }

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-block;
  color: var(--seal-text);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.muted { color: var(--ink2); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-button);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--primary-press); }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 1.0625rem; }
.btn .icon { width: 20px; height: 20px; stroke-width: 2; }

.store-badge { display: inline-block; border-radius: 12px; }
.store-badge img { width: 168px; height: 56px; }

/* ---------- Brand mark ---------- */

.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 22.5%;
  background: #1E3A8A;
}
.mark svg { width: 100%; height: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 500 1.4375rem/1 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  display: none;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--surface2); }
.nav a[aria-current="page"] { color: var(--ink); }
@media (min-width: 860px) { .nav a:not(.btn) { display: inline-block; } }

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

.section { padding-block: 72px; }
.section.tinted { background: var(--surface2); }
@media (min-width: 960px) { .section { padding-block: 104px; } }

.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; }
.section-head p { color: var(--ink2); font-size: 1.125rem; }

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

.hero { position: relative; overflow: hidden; padding-block: 48px 72px; }
@media (min-width: 960px) { .hero { padding-block: 72px 112px; } }

/* The faint signature loop from the brand board, the one decorative moment. */
.hero-loop {
  position: absolute;
  right: -120px;
  top: -60px;
  width: 820px;
  max-width: none;
  height: auto;
  fill: none;
  stroke: var(--line);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
/* Phones: the copy stacks above the mockup, so the loop moves down behind the phone. */
@media (max-width: 959px) {
  .hero > .hero-loop { top: auto; bottom: 60px; right: -220px; width: 680px; }
}

.hero .wrap { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; } }

.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 4.75rem); line-height: 1.04; letter-spacing: -0.02em; }
.lead { max-width: 38rem; color: var(--ink2); font-size: clamp(1.125rem, 2.2vw, 1.25rem); line-height: 1.55; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; }
.cta-note { color: var(--ink3); font-size: 0.9375rem; }

.ticks { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.ticks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px 0 10px;
  border-radius: 17px;
  background: var(--surface2);
  color: var(--ink2);
  font-size: 0.9375rem;
  font-weight: 500;
}
.ticks .icon { width: 18px; height: 18px; color: var(--success); stroke-width: 2.4; }

/* ---------- Editor mockup ---------- */
/* Everything inside the phone is sized in --u, one iPhone point at the phone's current width. */

.hero-art { position: relative; justify-self: center; padding: 8px 0; }

.phone {
  --w: min(340px, 84vw);
  --u: calc(var(--w) / 390);
  position: relative;
  width: var(--w);
  aspect-ratio: 390 / 800;
  padding: calc(var(--u) * 12);
  border-radius: calc(var(--u) * 62);
  background: #15171B;
  box-shadow: var(--shadow-lg), inset 0 0 0 calc(var(--u) * 2) #2E3138;
}

.screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--u) * 50);
  background: var(--paper);
  color: var(--ink);
  font-size: calc(var(--u) * 15);
  line-height: 1.3;
}

.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 50);
  padding: calc(var(--u) * 8) calc(var(--u) * 30) 0;
  font-size: calc(var(--u) * 15);
  font-weight: 600;
}
.status i {
  display: block;
  width: calc(var(--u) * 26);
  height: calc(var(--u) * 12);
  border: calc(var(--u) * 1.5) solid currentColor;
  border-radius: calc(var(--u) * 4);
  opacity: 0.8;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 8);
  padding: calc(var(--u) * 6) calc(var(--u) * 16) calc(var(--u) * 10);
  border-bottom: 1px solid var(--line);
}
.navbar b { font-size: calc(var(--u) * 16); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar .back { color: var(--primary-text); font-size: calc(var(--u) * 16); white-space: nowrap; }
.saved {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 4);
  color: var(--success);
  font-size: calc(var(--u) * 12);
  font-weight: 600;
  white-space: nowrap;
}
.saved .icon { width: calc(var(--u) * 14); height: calc(var(--u) * 14); stroke-width: 2.6; }

.desk { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: calc(var(--u) * 16); background: var(--desk); }

.page {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 9);
  width: 100%;
  padding: calc(var(--u) * 22) calc(var(--u) * 22) calc(var(--u) * 18);
  border-radius: calc(var(--u) * 3);
  background: var(--page);
  color: var(--page-ink);
  box-shadow: 0 1px 2px rgba(27, 30, 38, 0.1), 0 6px 18px rgba(27, 30, 38, 0.1);
}
.page-title {
  margin-bottom: calc(var(--u) * 4);
  font: 500 calc(var(--u) * 13) / 1.2 var(--serif);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.bar { display: block; height: calc(var(--u) * 5); border-radius: 99px; background: var(--page-rule); opacity: 0.32; }

.row { display: grid; grid-template-columns: calc(var(--u) * 62) 1fr; align-items: end; gap: calc(var(--u) * 8); }
.row small { color: #6A6E78; font-size: calc(var(--u) * 10); letter-spacing: 0.02em; padding-bottom: calc(var(--u) * 4); }

.field {
  display: flex;
  align-items: flex-end;
  min-height: calc(var(--u) * 26);
  padding: 0 calc(var(--u) * 6) calc(var(--u) * 3);
  border-bottom: calc(var(--u) * 1) solid var(--page-rule);
  font-size: calc(var(--u) * 13);
}
/* Highlighted, still-empty field: what the app draws around a blank it found. */
.field.todo {
  border: calc(var(--u) * 1.5) dashed #1E3A8A;
  border-radius: calc(var(--u) * 5);
  background: rgba(30, 58, 138, 0.08);
  color: #1E3A8A;
  font-size: calc(var(--u) * 11);
  font-weight: 600;
  align-items: center;
}

.sign-block { display: grid; gap: calc(var(--u) * 4); margin-top: calc(var(--u) * 10); }
.sign-line {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: calc(var(--u) * 58);
  padding: 0 calc(var(--u) * 6);
  border: calc(var(--u) * 1.5) solid #1E3A8A;
  border-radius: calc(var(--u) * 5);
  background: rgba(30, 58, 138, 0.05);
}
.sign-line::before {
  content: "";
  position: absolute;
  left: calc(var(--u) * 6);
  right: calc(var(--u) * 6);
  bottom: calc(var(--u) * 12);
  border-bottom: calc(var(--u) * 1) solid var(--page-rule);
}
.sign-line .x { position: relative; margin-bottom: calc(var(--u) * 13); color: #6A6E78; font-size: calc(var(--u) * 12); }
.signature {
  position: relative;
  margin: 0 0 calc(var(--u) * 2) calc(var(--u) * 10);
  color: #1E3A8A;
  font: 400 calc(var(--u) * 40) / 1 var(--script);
  white-space: nowrap;
}
.signature::after {
  content: "";
  position: absolute;
  right: calc(var(--u) * -16);
  bottom: calc(var(--u) * 16);
  width: calc(var(--u) * 7);
  height: calc(var(--u) * 7);
  border-radius: 50%;
  background: #E0692F;
}
.sign-block small { color: #6A6E78; font-size: calc(var(--u) * 10); }

.toolbar {
  display: grid;
  gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 12) calc(var(--u) * 16) calc(var(--u) * 26);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.tools { display: flex; justify-content: space-between; color: var(--ink2); font-size: calc(var(--u) * 11); font-weight: 500; }
.tools span:first-child { color: var(--primary-text); font-weight: 600; }
.next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 50);
  padding: 0 calc(var(--u) * 18);
  border-radius: calc(var(--u) * 14);
  background: var(--primary);
  color: var(--on-primary);
  font-size: calc(var(--u) * 16);
  font-weight: 600;
}
.next small { font-size: calc(var(--u) * 13); font-weight: 500; opacity: 0.8; }

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.chip-fields { top: 18%; left: -12px; color: var(--primary-text); }
.chip-device { bottom: 16%; right: -12px; }
.chip-device .icon { color: var(--success); }
@media (min-width: 480px) {
  .chip-fields { left: -48px; }
  .chip-device { right: -48px; }
}

/* The signature writes itself in once, then the seal dot lands. */
@media (prefers-reduced-motion: no-preference) {
  .signature { animation: write 1.6s cubic-bezier(0.5, 0, 0.3, 1) 0.6s both; }
  .signature::after { animation: seal 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) 2.2s both; }
  .chip { animation: rise 0.6s ease-out both; }
  .chip-fields { animation-delay: 0.3s; }
  .chip-device { animation-delay: 2.4s; }
}
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -20% 0 0); } }
@keyframes seal { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- How it works ---------- */

.steps { display: grid; gap: 16px; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; gap: 10px; align-content: start; padding: 26px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  color: var(--primary-text);
  font: 500 3rem/1 var(--serif);
}
.steps p { color: var(--ink2); }
.steps .meta { color: var(--ink3); font-size: 0.875rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Promises (pain → answer) ---------- */

.promises { display: grid; gap: 16px; padding: 0; list-style: none; }
.promises li { display: grid; gap: 10px; align-content: start; padding: 24px; }
.promises .eyebrow { font-size: 0.8125rem; }
.promises h3 { font-size: 1.25rem; line-height: 1.3; }
.promises p { color: var(--ink2); font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 640px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .promises { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Features ---------- */

.features { display: grid; gap: 16px; padding: 0; list-style: none; }
.features li { display: grid; gap: 8px; align-content: start; padding: 24px; }
.features .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-text);
}
.features p { color: var(--ink2); font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }

.also { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding: 0; list-style: none; color: var(--ink2); font-size: 0.9375rem; }
.also li { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--surface); border: 1px solid var(--line); }
.also li:first-child { padding: 0; border: 0; background: none; color: var(--ink); font-weight: 600; }

/* ---------- Privacy band ---------- */

.band { padding-block: 72px; background: var(--band); color: var(--on-band); }
@media (min-width: 960px) { .band { padding-block: 104px; } }
.band .wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .band .wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 72px; } }

.zero { display: grid; gap: 14px; }
.zero b { font: 500 clamp(6rem, 18vw, 10rem)/0.85 var(--serif); letter-spacing: -0.04em; }
.zero h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; }
.zero p { color: var(--on-band2); font-size: 1.125rem; }

.band-list { display: grid; gap: 22px; padding: 0; list-style: none; }
.band-list li { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.band-list .icon { grid-row: span 2; width: 26px; height: 26px; margin-top: 1px; color: var(--on-band); }
.band-list h3 { font-size: 1.125rem; }
.band-list p { color: var(--on-band2); font-size: 0.9375rem; line-height: 1.5; }
.band a { color: var(--on-band); }
.band :focus-visible { outline-color: var(--on-band); }

/* ---------- Pricing ---------- */

.plans { display: grid; gap: 16px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); } }

.plan { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding: 26px 24px; }
.plan h3 { color: var(--ink2); font-size: 0.9375rem; font-weight: 600; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price b { font: 500 2.5rem/1 var(--serif); letter-spacing: -0.02em; }
.price span { color: var(--ink2); font-size: 0.9375rem; }
.plan p { color: var(--ink2); font-size: 0.9375rem; line-height: 1.5; }
.plan-best { border: 2px solid var(--primary); }
.tag {
  position: absolute;
  top: -13px;
  left: 22px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--seal);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.02em;
}
@media (prefers-color-scheme: dark) { .tag { color: #1A0D06; } }

.plan-perks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding: 0; list-style: none; color: var(--ink); font-weight: 500; }
.plan-perks li { display: inline-flex; align-items: center; gap: 8px; }
.plan-perks .icon { width: 20px; height: 20px; color: var(--success); stroke-width: 2.4; }
.fine { margin-top: 20px; max-width: 52rem; color: var(--ink3); font-size: 0.875rem; line-height: 1.55; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; max-width: 50rem; }
.faq details { padding: 0 20px; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-block: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--ink3);
  border-bottom: 2px solid var(--ink3);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -1px); }
.faq details > div { display: grid; gap: 10px; padding-bottom: 20px; color: var(--ink2); }

/* ---------- Download ---------- */

.download {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 56px 24px;
  overflow: hidden;
  border-radius: var(--r-sheet);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.download h2 { position: relative; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; }
.download p { position: relative; max-width: 32rem; color: var(--ink2); }
.download .app-icon { position: relative; width: 96px; height: 96px; border-radius: 22.5%; box-shadow: var(--shadow-lg); }
.download .store-badge { position: relative; }
.download .hero-loop { right: auto; left: 50%; top: 10%; width: 900px; transform: translateX(-50%); }

/* ---------- Footer ---------- */

.site-footer { padding-block: 40px 48px; border-top: 1px solid var(--line); color: var(--ink3); font-size: 0.875rem; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer .brand { font-size: 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; list-style: none; font-size: 0.9375rem; }
.footer-links a { color: var(--ink2); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* ---------- Legal / support pages ---------- */

.page-head { padding-block: 48px 8px; }
.page-head .wrap { display: grid; gap: 14px; max-width: 52rem; }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); line-height: 1.05; }
.page-head p { color: var(--ink2); font-size: 1.125rem; }
@media (min-width: 960px) { .page-head { padding-top: 80px; } }

.page-body { padding-block: 24px 72px; }
.page-body .wrap { max-width: 52rem; }

.prose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; font-size: 1.0625rem; line-height: 1.6; }
.prose h2 { margin-top: 28px; font-size: clamp(1.5rem, 4.5vw, 1.875rem); line-height: 1.15; }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 1.25em; }
.prose li::marker { color: var(--ink3); }
.prose .note { padding: 16px 18px; border-radius: var(--r-card); background: var(--primary-soft); }
.prose .note.seal { background: var(--seal-soft); }

.toc { padding: 18px 20px; }
.toc ol { display: grid; gap: 6px; margin-top: 8px; padding-left: 1.25em; font-size: 0.9375rem; }
@media (min-width: 640px) { .toc ol { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

.table-scroll { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.table-scroll th, .table-scroll td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-scroll th { background: var(--surface2); font-weight: 600; }
.table-scroll tr:last-child td { border-bottom: 0; }

/* Phones: each row becomes a small card, with the column name above each value. */
@media (max-width: 639px) {
  .table-scroll table { min-width: 0; }
  .table-scroll thead { display: none; }
  .table-scroll tr, .table-scroll td { display: block; }
  .table-scroll tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table-scroll tr:last-child { border-bottom: 0; }
  .table-scroll td { padding: 0; border: 0; }
  .table-scroll td:first-child { font-weight: 600; font-size: 1rem; }
  .table-scroll td[data-label] { margin-top: 8px; }
  .table-scroll td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--ink3);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

.contact-card { display: grid; gap: 12px; padding: 24px; }
.contact-card h2 { margin: 0; }
.contact-card .btn { justify-self: start; }
.contact-card .small { font-size: 0.9375rem; overflow-wrap: anywhere; }

/* ---------- 404 ---------- */

.not-found { display: grid; place-items: center; align-content: center; gap: 16px; min-height: 64vh; padding-block: 64px; text-align: center; }
.not-found h1 { font-size: clamp(2.5rem, 7vw, 4rem); line-height: 1.05; }
.not-found p { color: var(--ink2); }
