/* Pals website. One stylesheet: tokens first, then layout, then the home page, then the long-form pages.
   Colours follow DESIGN_LANGUAGE.md §1.4 (paper canvas, ink buttons, Mint as the one accent). */

:root {
  color-scheme: light dark;

  --font: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Bradley Hand", "Noteworthy", "Segoe Print", "Marker Felt", cursive;

  --bg: #ffffff;
  --panel: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #f2f2ee;
  --surface-3: #e8e8e3;
  --chip: #f1f1ed;
  --ink: #111214;
  --ink-2: #5f6168;
  --ink-3: #66686f;
  --line: rgba(17, 18, 20, 0.1);
  --line-2: rgba(17, 18, 20, 0.16);
  --on-ink: #ffffff;

  --mint: #00c29a;
  --mint-ink: #02765d;
  --mint-wash: #e0f8f3;
  --you: #d3f8eb;
  --bubble: #ecece8;
  --sky: #3aa8ff;
  --iris: #7b6cff;
  --rose: #ff5c8a;
  --amber: #ffb547;
  --attention: #9e5604;
  --success: #057936;
  --danger: #cd1d12;

  --app-canvas: #fafaf7;
  --dark-card: #161618;
  --dark-card-2: #232427;

  --shadow-soft: 0 1px 2px rgba(17, 18, 20, 0.04), 0 12px 32px -12px rgba(17, 18, 20, 0.14);
  --shadow-stage: 0 40px 100px -40px rgba(17, 18, 20, 0.22), 0 12px 32px -16px rgba(17, 18, 20, 0.1);
  --shadow-phone: 0 50px 90px -30px rgba(17, 18, 20, 0.45), 0 18px 36px -18px rgba(17, 18, 20, 0.35);

  --gutter: 16px;
  --measure: 768px;
  --wide: 1040px;
  --space: clamp(112px, 15vw, 208px);
  --fs-hero: clamp(2rem, 1.15rem + 3.4vw, 3.25rem);
  --fs-h2: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --track-tight: -0.035em;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --panel: #121214;
    --surface: #161618;
    --surface-2: #1e1f22;
    --surface-3: #2a2b2f;
    --chip: #1c1d20;
    --ink: #f4f4f1;
    --ink-2: #a2a3a8;
    --ink-3: #9a9ca2;
    --line: rgba(255, 255, 255, 0.12);
    --line-2: rgba(255, 255, 255, 0.18);
    --on-ink: #0b0b0c;
    --mint-ink: #26cea5;
    --mint-wash: #18302c;
    --you: #095946;
    --bubble: #1e1f22;
    --attention: #ffb547;
    --success: #4ade80;
    --danger: #ff6b5e;
    --app-canvas: #0b0b0c;
    --dark-card: #1b1c1f;
    --dark-card-2: #26272b;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-stage: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
    --shadow-phone: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--ink-3); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--you); color: var(--ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--on-ink); text-decoration: none; font-size: 15px;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.center { text-align: center; }
.section { padding-top: var(--space); }

.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}
.lede { max-width: 34em; margin: 20px auto 0; color: var(--ink-3); text-wrap: balance; }

.tag {
  display: inline-flex; align-items: center; vertical-align: middle;
  padding: 2px 9px; border-radius: 999px;
  background: var(--mint-wash); color: var(--mint-ink);
  font-size: 12px; font-weight: 600; letter-spacing: 0;
}
.tag-lg { font-size: 14px; padding: 4px 12px; margin-bottom: 20px; }

/* ---------- top bar ---------- */

.top { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; display: flex; align-items: center; justify-content: flex-end; min-height: 76px; padding-top: 8px; }
.top-home { margin-right: auto; color: var(--ink); }
.top-home .logo { width: 72px; height: auto; }
.top nav { display: flex; gap: 8px; }
.top nav a {
  color: var(--ink-3); text-decoration: none; font-size: 16px; letter-spacing: -0.01em;
  padding: 10px 14px; border-radius: 999px;
}
.top nav a:hover { color: var(--ink); background: var(--chip); }

/* ---------- hero ---------- */

.hero { width: min(100% - 2 * var(--gutter), 1000px); text-align: center; padding-top: clamp(72px, 10vw, 128px); }
.hero-logo { display: flex; justify-content: center; color: var(--ink); }
.hero-logo .logo { width: clamp(184px, 23vw, 260px); height: auto; }
.hero-title {
  margin: clamp(56px, 8vw, 96px) auto 0;
  max-width: 19em;
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.chip {
  display: inline;
  padding: 0.04em 0.32em 0.08em 0.14em;
  margin-inline: 0.02em;
  border-radius: 999px;
  background: var(--chip);
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.pict { display: inline-block; width: 0.98em; height: 0.98em; margin-right: 0.14em; vertical-align: -0.17em; transform: rotate(-6deg); transition: transform 0.4s var(--ease); }
.chip:nth-of-type(2) .pict { transform: rotate(5deg); }
.chip:hover .pict { transform: rotate(0) scale(1.08); }
.soon {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px;
  margin-top: clamp(32px, 4vw, 44px); color: var(--ink-3); font-size: 15px;
}
.soon-a, .soon-b { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (max-width: 359px) { .soon-b > .soon-sep:first-child { display: none; } }
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-wash); }
.soon-sep { color: var(--ink-3); }

/* ---------- demo ---------- */

.demo-section { padding-top: clamp(104px, 10vw, 144px); }
.demo-head { position: relative; }
.try {
  width: clamp(176px, 40vw, 212px); height: auto; margin: 10px auto -24px; transform: translateX(clamp(-84px, -10vw, -24px));
  color: var(--ink-3); overflow: visible;
}
.try text { font: 400 30px var(--hand); fill: currentColor; letter-spacing: 0; }
.try-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The phone is 53em tall and 24.9em wide with its rim: one em is sized so the phone and the switcher fit one
   screen together (height), and the phone fits between the gutters (width). */
.demo {
  --phone-fs: clamp(10.5px, min((100vh - 240px) / 53, (100vw - 2 * var(--gutter) - 12px) / 24.9), 13px);
  position: relative; display: flex; flex-direction: column;
  width: min(100% - 2 * var(--gutter), var(--wide)); margin: 20px auto 0;
}
@supports (height: 100svh) {
  .demo { --phone-fs: clamp(10.5px, min((100svh - 240px) / 53, (100vw - 2 * var(--gutter) - 12px) / 24.9), 13px); }
}
.stage {
  position: relative; display: flex; justify-content: center;
  padding: 16px 0 24px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 11%, transparent), transparent) no-repeat 50% 50% / min(100%, 760px) 92%;
}

/* the iPhone */
.phone {
  font-size: var(--phone-fs);
  position: relative; flex: none;
  width: 24.4em; height: 53em;
  padding: 0.5em;
  border-radius: 4.3em;
  background: #0c0c0e;
  box-shadow: 0 0 0 0.16em #c8c8cd, 0 0 0 0.24em #e9e9ec, var(--shadow-phone);
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-family: var(--font);
  color: var(--ink);
  text-align: left;
}
@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 0 0 0.16em #3a3a3f, 0 0 0 0.24em #1d1d20, var(--shadow-phone); }
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 3.8em;
  background: var(--app-canvas);
}
.ios-status { position: relative; flex: none; height: 3.7em; display: flex; align-items: center; justify-content: space-between; padding: 0.3em 1.85em 0 2.45em; }
.ios-time { font-weight: 600; font-size: 1.15em; letter-spacing: -0.01em; }
.island { position: absolute; left: 50%; top: 0.8em; width: 7.4em; height: 2.25em; transform: translateX(-50%); border-radius: 2em; background: #000; }
.ios-icons { display: flex; align-items: center; gap: 0.32em; }
.ios-icons svg { height: 0.8em; width: auto; fill: currentColor; }
.ios-icons svg:last-child { height: 0.88em; }

.app-head { flex: none; display: flex; align-items: center; gap: 0.7em; padding: 0.3em 1.1em 0.75em; border-bottom: 1px solid var(--line); }
.avatar {
  flex: none; width: 2.6em; height: 2.6em; border-radius: 50%;
  background: var(--mint); color: #0c2a22; display: inline-grid; place-items: center;
  font-family: ui-rounded, "SF Pro Rounded", var(--font); font-weight: 700; font-size: 1em; letter-spacing: 0;
}
.avatar.sm { width: 22px; height: 22px; font-size: 12px; }
.avatar.xs { width: 18px; height: 18px; font-size: 10px; margin-right: 6px; }
.tri i, .tab-tri i { display: block; width: 0.32em; height: 0.9em; border-radius: 1em; background: #111214; }
.who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.who-name { font-weight: 600; font-size: 1.12em; display: flex; align-items: center; gap: 0.35em; }
.ai-badge { font-size: 0.6em; font-weight: 700; padding: 0.12em 0.45em; border-radius: 0.5em; background: var(--surface-3); color: var(--ink-2); letter-spacing: 0.02em; }
.who-status { font-size: 0.82em; color: var(--ink-3); }
.head-btn { width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.head-btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.thread {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0.6em 0.95em 0.5em;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.6em);
  mask-image: linear-gradient(to bottom, transparent 0, #000 1.6em);
}
.scene { display: flex; flex-direction: column; gap: 0.6em; border-radius: 1em; }
.scene:focus-visible { outline-offset: 2px; }
.scene-label { display: none; }

.you, .pal { font-size: 1em; line-height: 1.32; padding: 0.58em 0.85em; max-width: 82%; }
.you { align-self: flex-end; background: var(--you); border-radius: 1.2em 1.2em 0.35em 1.2em; }
.pal { align-self: flex-start; background: var(--bubble); border-radius: 1.2em 1.2em 1.2em 0.35em; }
.you-media { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3em; max-width: 82%; }

.work { font-size: 0.82em; color: var(--ink-3); display: flex; padding-left: 0.2em; min-height: 1.4em; }
.w-busy, .w-done { align-items: center; gap: 0.45em; }
.w-busy { display: none; }
.w-done { display: flex; }
.ico-s { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.w-done .ico-s { color: var(--success); }
.tri { display: inline-flex; align-items: center; gap: 0.16em; }
.tri i { width: 0.3em; height: 0.75em; background: var(--mint); animation: tri 1s ease-in-out infinite; }
.tri i:nth-child(2) { animation-delay: 0.15s; }
.tri i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tri { 0%, 100% { transform: scaleY(0.6); opacity: 0.5; } 50% { transform: scaleY(1.15); opacity: 1; } }

.ui-card {
  background: var(--surface);
  border-radius: 1.15em;
  padding: 0.85em 0.9em;
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(17, 18, 20, 0.05), 0 6px 16px -10px rgba(17, 18, 20, 0.18);
}
.btn-ui {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35em;
  padding: 0.6em 1em; border-radius: 999px; font-weight: 600; font-size: 0.9em; white-space: nowrap;
}
button.btn-ui { min-height: max(24px, 2.6em); }
button.btn-ui, button.product {
  appearance: none; border: 0; margin: 0; font-family: inherit; line-height: 1.2; letter-spacing: inherit; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, filter 0.2s;
}
button.btn-ui:hover, button.product:hover { filter: brightness(0.96); }
button.btn-ui.ink:hover { opacity: 0.88; filter: none; }
button.btn-ui:active, button.product:active { transform: scale(0.97); }
.phone button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 999px; }
.phone button.product:focus-visible { border-radius: 1.15em; }
.is-resolved .ap-actions { opacity: 0.45; }
button[aria-disabled="true"] { cursor: default; transform: none; }
.btn-ui.ink { background: var(--ink); color: var(--on-ink); }
.btn-ui.soft { background: var(--surface-2); color: var(--ink); }
.ap-actions { display: flex; justify-content: flex-end; gap: 0.45em; margin-top: 0.75em; }
.ap-actions .btn-ui.ink { flex: 1; }
.ap-title { font-weight: 600; font-size: 1.02em; line-height: 1.25; }
.ap-sub { margin-top: 0.25em; font-size: 0.84em; color: var(--ink-3); }

/* scene 1: plan */
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; }
.plan-day { font-weight: 600; }
.wx { display: inline-flex; align-items: center; gap: 0.3em; font-size: 0.78em; color: var(--ink-2); background: var(--surface-2); padding: 0.25em 0.6em; border-radius: 999px; }
.plan-rows { margin-top: 0.6em; display: grid; gap: 0.15em; }
.plan-rows li { display: grid; grid-template-columns: 3.1em 1fr; align-items: start; gap: 0.5em; padding: 0.32em 0.45em; border-radius: 0.7em; }
.plan-rows .t { font-size: 0.82em; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 0.12em; }
.plan-rows .what { font-size: 0.92em; font-weight: 500; display: flex; flex-direction: column; line-height: 1.25; }
.plan-rows small { font-size: 0.82em; font-weight: 400; color: var(--ink-3); }
.plan-rows li.new { background: var(--mint-wash); box-shadow: inset 0.2em 0 0 var(--mint); }

/* scene 2: gift */
.clarify .cl-q { font-weight: 600; }
.cl-opts { display: flex; flex-wrap: wrap; gap: 0.35em; margin-top: 0.55em; }
.opt { display: inline-flex; align-items: center; gap: 0.25em; font-size: 0.86em; padding: 0.35em 0.75em; border-radius: 999px; background: var(--surface-2); }
.opt.is-picked { background: var(--ink); color: var(--on-ink); }
.products { display: grid; gap: 0.4em; }
.product { width: 100%; display: flex; align-items: center; gap: 0.65em; padding: 0.55em 0.55em 0.55em 0.55em; text-align: left; color: var(--ink); font-size: 1em; }
.thumb { flex: none; width: 2.7em; height: 2.7em; border-radius: 0.75em; display: grid; place-items: center; }
.thumb svg { width: 1.55em; height: 1.55em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.th-sage { background: #e5f3e3; color: #467342; }
.th-amber { background: #fff0e6; color: #9e5604; }
.th-iris { background: #efedff; color: #6450e1; }
.p-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.p-name { font-size: 0.9em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-meta { font-size: 0.78em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.p-meta b { font-weight: 600; color: var(--ink); }
.p-why { font-size: 0.76em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-go { flex: none; width: 1.1em; height: 1.1em; fill: none; stroke: var(--ink-3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* scene 3: flyer */
.flyer { width: 8.6em; height: auto; border-radius: 0.9em; box-shadow: 0 6px 18px -8px rgba(17, 18, 20, 0.45); transform: rotate(2deg); }
.fl-big { font: 800 17px var(--font); letter-spacing: -0.02em; }
.fl-small { font: 700 8px var(--font); letter-spacing: 0.06em; }
.fl-tiny { font: 600 5.6px var(--font); letter-spacing: 0.06em; }
.ev-done { display: flex; align-items: center; gap: 0.35em; margin-bottom: 0.6em; font-size: 0.8em; font-weight: 600; color: var(--success); }
.ev-row { display: flex; gap: 0.75em; align-items: flex-start; }
.ev-date {
  flex: none; width: 3em; padding: 0.3em 0 0.35em; border-radius: 0.75em; text-align: center;
  background: var(--surface-2); font-size: 1.15em; font-weight: 600; line-height: 1.05;
}
.ev-date b { display: block; font-size: 0.5em; letter-spacing: 0.08em; color: var(--danger); margin-bottom: 0.15em; }
.fc-ev .ev-date b { color: #cd1d12; }
.ev-text { display: flex; flex-direction: column; gap: 0.12em; min-width: 0; }
.ev-title { font-weight: 600; }
.ev-meta { font-size: 0.84em; color: var(--ink-3); display: inline-flex; align-items: center; gap: 0.25em; }

/* scene 4: receipts */
.receipts { display: flex; gap: 0.3em; }
.ph { width: 3.3em; height: 4.3em; border-radius: 0.6em; display: grid; place-items: center; overflow: hidden; }
.ph-1 { background: #cfc6b4; }
.ph-2 { background: #b9c4cf; }
.ph-3 { background: #d6cbbf; }
.ph-4 { background: #c3cbb8; }
.rc {
  width: 2.4em; height: 3.5em; padding: 0.45em 0.35em 0; background: #fdfdfb;
  display: flex; flex-direction: column; gap: 0.26em; box-shadow: 0 2px 5px -1px rgba(17, 18, 20, 0.35);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 87.5% 94%, 75% 100%, 62.5% 94%, 50% 100%, 37.5% 94%, 25% 100%, 12.5% 94%, 0 100%);
}
.ph-1 .rc { transform: rotate(-5deg); }
.ph-2 .rc { transform: rotate(4deg); }
.ph-3 .rc { transform: rotate(-2deg); }
.ph-4 .rc { transform: rotate(6deg); }
.rc i { display: block; height: 0.17em; border-radius: 1em; background: #d3d3cc; }
.rc i:nth-child(2) { width: 70%; }
.rc b { display: block; height: 0.24em; width: 55%; margin-left: auto; border-radius: 1em; background: #5f6168; }
.sh-title { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.sh-kind { font-size: 0.7em; font-weight: 600; color: var(--mint-ink); background: var(--mint-wash); padding: 0.2em 0.55em; border-radius: 999px; }
.sh-table { width: 100%; margin-top: 0.5em; border-collapse: collapse; font-size: 0.82em; font-variant-numeric: tabular-nums; }
.sh-table td { padding: 0.32em 0; border-bottom: 1px solid var(--line); }
.sh-table td:nth-child(2) { color: var(--ink-3); }
.sh-table td:last-child { text-align: right; }
.sh-table tfoot td { border: 0; padding-top: 0.45em; font-weight: 600; }
.sh-bars, .fc-bars { display: flex; gap: 2px; height: 0.42em; margin-top: 0.55em; border-radius: 1em; overflow: hidden; }
.bar { display: block; height: 100%; }
.b-meals { flex: 55.55; background: var(--mint); }
.b-transport { flex: 23.4; background: var(--sky); }
.b-office { flex: 18.2; background: var(--iris); }
.sh-legend { display: flex; flex-wrap: wrap; gap: 0.2em 0.8em; margin-top: 0.4em; font-size: 0.72em; color: var(--ink-3); }
.sh-legend i { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; margin-right: 0.3em; }
.k-meals { background: var(--mint); }
.k-transport { background: var(--sky); }
.k-office { background: var(--iris); }

/* scene 5: call */
.call-rows { margin-top: 0.6em; display: grid; gap: 0.35em; font-size: 0.82em; }
.call-rows div { display: grid; grid-template-columns: 4.4em 1fr; gap: 0.5em; }
.call-rows dt { color: var(--ink-3); }
.call-rows dd { line-height: 1.3; }
.soon-chip { align-self: center; }
.phone .tag { font-size: 0.8em; padding: 0.2em 0.7em; }

/* what the app would confirm when a button in the phone is pressed */
.toast {
  position: absolute; z-index: 3; left: 50%; top: 8.1em; width: max-content; max-width: calc(100% - 2.4em);
  padding: 0.7em 1.05em; border-radius: 1.1em; background: var(--ink); color: var(--on-ink);
  font-size: 0.88em; font-weight: 500; line-height: 1.3; text-align: center;
  box-shadow: 0 10px 24px -10px rgba(17, 18, 20, 0.5);
  opacity: 0; transform: translate(-50%, -0.6em); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.45s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.faceid {
  position: absolute; z-index: 4; left: 50%; top: 44%; width: 6em; height: 6em; margin: -3em 0 0 -3em;
  display: grid; place-items: center; border-radius: 1.5em; background: rgba(28, 28, 30, 0.88); color: #fff;
  opacity: 0; transform: scale(0.85); pointer-events: none; transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
.faceid svg { width: 3.2em; height: 3.2em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.faceid.on { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  .faceid { background: rgba(78, 78, 84, 0.96); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 16px 40px -12px #000; }
}
.faceid.on svg { animation: faceid 1.1s ease-in-out both; }
@keyframes faceid { 0% { opacity: 0.5; } 45% { opacity: 1; transform: scale(1.08); } 70% { color: #fff; } 100% { color: var(--mint); transform: none; } }

.composer {
  flex: none; display: flex; align-items: center; gap: 0.5em;
  margin: 0.3em 0.75em 0; padding: 0 0.4em; height: 3em;
  border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.c-field { flex: 1; color: var(--ink-3); font-size: 0.95em; }
.c-plus, .c-mic { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; }
.c-plus { background: var(--surface-2); }
.c-mic { background: var(--ink); color: var(--on-ink); }
.composer svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tabbar {
  flex: none; display: flex; justify-content: space-around; align-items: center;
  margin: 0.45em 0.75em 1.5em; height: 3.7em; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 6px 18px -10px rgba(17, 18, 20, 0.25);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 0.18em; font-size: 0.62em; font-weight: 500; color: var(--ink-3); min-width: 4.5em; }
.tab svg { width: 2.2em; height: 2.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.is-on { color: var(--mint-ink); }
.tab-tri { height: 2.2em; display: flex; align-items: center; gap: 0.22em; }
.tab-tri i { width: 0.42em; height: 1.15em; background: currentColor; }
.tab-tri i:nth-child(2) { height: 1.55em; }
.home-ind { position: absolute; left: 50%; bottom: 0.55em; width: 9em; height: 0.36em; transform: translateX(-50%); border-radius: 1em; background: var(--ink); opacity: 0.9; }

/* switcher */
.switch {
  display: flex; width: max-content; max-width: 100%; margin: 0 auto 4px; padding: 4px; gap: 2px;
  border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 1000px) { .switch { order: 2; margin: 16px auto 0; } }
.sw {
  appearance: none; border: 0; background: transparent; color: var(--ink-3); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px 0 6px; border-radius: 999px;
  font: 500 15px var(--font); letter-spacing: -0.01em;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.sw-n { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.sw-l { display: inline-flex; align-items: center; gap: 6px; }
.sw-tag { padding: 1px 7px; border-radius: 999px; background: var(--mint-wash); color: var(--mint-ink); font-size: 11.5px; font-weight: 600; letter-spacing: 0; }
.sw:hover { color: var(--ink); }
.sw[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(17, 18, 20, 0.08), 0 4px 12px -6px rgba(17, 18, 20, 0.2); }
.sw[aria-selected="true"] .sw-n { background: var(--ink); color: var(--on-ink); }
.sw:focus-visible { outline-offset: 1px; border-radius: 999px; }
@media (max-width: 639px) {
  .sw { padding: 0 5px; gap: 6px; }
  .sw[aria-selected="true"] { padding-right: 12px; }
  .sw-n { width: 34px; height: 34px; }
  .sw[aria-selected="false"] .sw-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sw-soon[aria-selected="false"] .sw-n::after { content: ""; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px var(--surface-2); }
}
@media (max-width: 359px) {
  .switch { gap: 0; }
  .sw { padding: 0 3px; gap: 4px; }
  .sw[aria-selected="true"] { padding-right: 9px; }
  .sw-n { width: 32px; height: 32px; }
  .sw-tag { display: none; }
  .sw-soon .sw-n::after { content: ""; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px var(--surface-2); }
}

/* notes beside the phone */
.notes { width: 100%; max-width: 420px; margin: 12px auto 0; text-align: center; }
.nojs-hint { display: none; }
.note + .note { margin-top: 40px; }
.note-n { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.note-n .tag { margin-left: 6px; letter-spacing: 0; }
.note-t { margin-top: 6px; font-size: 22px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.note-d { margin-top: 8px; font-size: 16px; color: var(--ink-3); line-height: 1.5; }
.did { display: none; }

/* JavaScript on: one scene at a time, the beats play in */
.js .scene[hidden], .js .note[hidden] { display: none; }
.js .notes { min-height: 132px; }
.js .note + .note { margin-top: 0; }
.js .beat {
  opacity: 0; visibility: hidden; transform: translateY(0.7em) scale(0.985); transform-origin: 50% 100%;
  transition: opacity 0.45s ease, transform 0.6s var(--ease), visibility 0s linear 0.45s;
}
.js .beat.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s ease, transform 0.6s var(--ease), visibility 0s; }
.js .work:not(.done) .w-busy { display: flex; }
.js .work:not(.done) .w-done { display: none; }
.js .work.done .w-done { animation: fade-in 0.4s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* JavaScript off: every scene stacked in a phone that scrolls, with its name above it */
html:not(.js) .switch { display: none; }
html:not(.js) .nojs-hint { display: block; margin-top: 4px; text-align: center; font-size: 15px; color: var(--ink-3); }
html:not(.js) .notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px 24px; max-width: var(--wide); margin-top: 40px; text-align: left; }
html:not(.js) .note + .note { margin-top: 0; }
html:not(.js) .thread { justify-content: flex-start; overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
html:not(.js) .scene + .scene { margin-top: 1.6em; }
html:not(.js) .scene-label { display: block; font-size: 0.75em; font-weight: 600; color: var(--ink-3); text-align: center; text-transform: uppercase; letter-spacing: 0.06em; }

@media (min-width: 1000px) {
  .stage { padding: 32px 0; }
  .js .demo .notes {
    position: absolute; inset: 0 0 auto 0; height: calc(53 * var(--phone-fs) + 64px);
    margin: 0; max-width: none; text-align: left; pointer-events: none;
  }
  .js .demo .note { position: absolute; top: 50%; left: clamp(16px, 3vw, 48px); right: clamp(16px, 3vw, 48px); transform: translateY(-50%); display: flex; justify-content: space-between; align-items: center; }
  .js .demo .note[hidden] { display: none; }
  .js .demo .note-main { width: clamp(200px, 22vw, 268px); pointer-events: auto; }
  .js .did {
    display: block; width: clamp(200px, 20vw, 252px); padding: 18px 20px; border-radius: 22px; pointer-events: auto;
    background: var(--surface); box-shadow: var(--shadow-soft), 0 0 0 1px var(--line);
    font-size: 15px; line-height: 1.35;
  }
  .did::before { content: "What your Pal did"; display: block; margin-bottom: 10px; font-size: 13px; color: var(--ink-3); }
  .did li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
  .did li + li { border-top: 1px solid var(--line); }
  .did svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--success); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .did li.wait svg { stroke: var(--attention); }
  .did li.wait { color: var(--ink-2); }
  .note-d { font-size: 16.5px; }
}

/* ---------- feature grids ---------- */

.grid { display: grid; gap: 48px 56px; margin-top: clamp(56px, 7vw, 96px); }
@media (min-width: 720px) { .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.features .ico { width: 24px; height: 24px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cards3 .ico, .own-card .ico { width: 30px; height: 30px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { margin-top: 16px; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.35; }
.cards3 h3, .own-card h3 { margin-top: 24px; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.35; }
.features p { margin-top: 4px; font-size: 1rem; color: var(--ink-3); line-height: 1.55; text-wrap: pretty; }
.cards3 li > p, .own-card > p { margin-top: 4px; font-size: 1rem; color: var(--ink-3); line-height: 1.55; text-wrap: pretty; }
.caps { gap: 44px 48px; }
@media (min-width: 1000px) { .caps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.caps .ask {
  width: fit-content; max-width: 100%; margin-top: 14px; padding: 7px 13px;
  border-radius: 16px 16px 5px 16px; background: var(--you); color: var(--ink); font-size: 0.875rem; line-height: 1.4;
}
.caps li { display: flex; flex-direction: column; }
/* phones: one compact row a capability (icon, name, an example ask) */
@media (max-width: 719px) {
  .caps { gap: 28px; }
  .caps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .caps .ico { grid-row: 1 / span 2; margin-top: 1px; }
  .caps h3 { margin-top: 0; }
  .caps li > p:not(.ask) { display: none; }
  .caps .ask { margin-top: 8px; }
}

.cards3 {
  display: grid; margin-top: clamp(48px, 6vw, 80px);
  border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; background: var(--bg);
}
.cards3 li { padding: 32px; }
.cards3 li + li { border-top: 1px solid var(--line-2); }
@media (min-width: 860px) {
  .cards3 { grid-template-columns: repeat(3, 1fr); }
  .cards3 li + li { border-top: 0; border-left: 1px solid var(--line-2); }
}

/* coming soon: own address and number */
.own { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
@supports (grid-template-rows: subgrid) {
  .own-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}
@media (min-width: 720px) { .own { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.own-card { min-width: 0; padding: clamp(20px, 4vw, 28px); border-radius: 24px; border: 1px solid var(--line-2); }
.own-card h3 { margin-top: 24px; }
.own-ui { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; padding: 14px; border-radius: 18px; background: var(--panel); font-size: 14px; }
.mrow, .callrow { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.mrow-ic, .call-av { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
.call-av { border-radius: 50%; background: var(--mint); color: #111214; }
.mrow svg, .callrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mrow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mrow-t b { font-weight: 600; }
.mrow-t span { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow-tag { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); padding: 3px 9px; border-radius: 999px; }
.mrow-tag.ok { color: var(--mint-ink); background: var(--mint-wash); }
.quote { padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

/* trust */
.trust-card {
  width: min(100%, 380px); margin: clamp(48px, 6vw, 72px) auto 0; padding: 20px;
  border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-stage), 0 0 0 1px var(--line);
  font-size: 15px; transform: rotate(-1.5deg);
}
.tc-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.tc-title { margin-top: 12px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.tc-sub { margin-top: 6px; color: var(--ink-3); line-height: 1.45; }
.tc-mail { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); line-height: 1.45; }
.tc-to { font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.trust-card .ap-actions { font-size: 16px; margin-top: 14px; }
.trust-card .btn-ui { padding: 11px 20px; }

/* ---------- pricing ---------- */

.price-card {
  padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 72px);
  border-radius: clamp(28px, 4vw, 40px);
  background: #141416; color: #f4f4f1; text-align: center;
}
@media (prefers-color-scheme: dark) { .price-card { background: #1a1b1e; box-shadow: 0 0 0 1px var(--line); } }
.price { margin-top: 18px; color: #c9cacd; }
.price .amt { color: #fff; font-size: 1.6em; font-weight: 500; letter-spacing: -0.03em; }
.price-d { max-width: 30em; margin: 18px auto 0; color: #b4b5ba; line-height: 1.6; text-wrap: balance; }
.store-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
  padding: 18px clamp(22px, 5vw, 34px); border-radius: 999px; background: #fff; color: #111214; white-space: nowrap;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.375rem); font-weight: 500; letter-spacing: -0.02em;
}
.store-pill svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.price-fine { margin-top: 20px; font-size: 14px; color: #a7a8ad; }

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

.faq { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details p { padding: 0 40px 28px 0; color: var(--ink-3); line-height: 1.65; }

/* ---------- card fan ---------- */

.fan-section { padding-top: clamp(88px, 10vw, 136px); }
.fan { position: relative; height: 440px; overflow: clip; }
.fan-inner { position: absolute; left: 50%; top: 30px; width: 1200px; height: 400px; transform: translateX(-50%); transform-origin: 50% 0; }
.fc {
  position: absolute; left: 50%; top: 30px; width: 240px; min-height: 164px; margin-left: -120px;
  padding: 18px; border-radius: 24px; font-size: 13px; line-height: 1.35;
  transform-origin: 50% 1500px; transform: rotate(var(--r));
  box-shadow: 0 24px 40px -24px rgba(17, 18, 20, 0.45), 0 0 0 1px rgba(17, 18, 20, 0.06);
  transition: translate 0.4s var(--ease);
}
.fc:hover { translate: 0 -12px; }
/* each side card keeps its content clear of the neighbour that overlaps it */
.fc-1, .fc-2, .fc-3 { padding-right: 58px; }
.fc-5, .fc-6, .fc-7 { padding-left: 58px; }
/* 8 degrees apart around a pivot 1500px below: neighbours overlap about 30px at the top and 52px at the
   bottom (under the 58px padding above), and the outer cards' top corners stay inside a 1440px window */
.fc-1 { --r: -24deg; z-index: 1; }
.fc-2 { --r: -16deg; z-index: 2; }
.fc-3 { --r: -8deg; z-index: 3; }
.fc-4 { --r: 0deg; z-index: 7; }
.fc-5 { --r: 8deg; z-index: 5; }
.fc-6 { --r: 16deg; z-index: 4; }
.fc-7 { --r: 24deg; z-index: 3; }
.fc-paper { background: #f6f0dc; color: #2a2617; }
.fc-dark { background: var(--dark-card); color: #f4f4f1; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.fc-mint { background: #00c29a; color: #0c2a22; }
.fc-mint .fc-k, .fc-mint .fc-m { opacity: 1; }
.fc-white { background: #ffffff; color: #111214; }
.fc-iris { background: #ecebff; color: #1f1a4d; }
.fc-k { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: 0.75; }
.fc-k svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.fc-big { margin-top: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.fc-m { margin-top: 6px; font-size: 12.5px; opacity: 0.72; }
.fc-toast { display: inline-block; margin-top: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(17, 18, 20, 0.08); font-size: 12px; }
.fc-wx { font-size: 15px; opacity: 0.85; }
.fc-wx span { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; margin-right: 4px; opacity: 1; }
.fc-tl { margin-top: 10px; display: grid; gap: 4px; font-size: 12.5px; }
.fc-tl li { padding: 4px 8px; border-radius: 8px; background: var(--dark-card-2); }
.fc-tl b { display: inline-block; width: 40px; font-weight: 500; opacity: 0.7; }
.fc-list { margin-top: 8px; display: grid; gap: 4px; font-size: 12.5px; }
.fc-list li { padding-left: 12px; position: relative; }
.fc-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.fc-btns { display: flex; gap: 6px; margin-top: 14px; font-size: 14px; }
.fc-btns .btn-ui { flex: 1; padding: 8px 10px; }
.fc-white .btn-ui.ink { background: #111214; color: #fff; }
.fc-white .btn-ui.soft { background: #f2f2ee; color: #111214; }
.fc-prod { display: flex; align-items: center; gap: 10px; }
.fc-prod > span:last-child { display: flex; flex-direction: column; font-size: 12px; }
.fc-prod b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.fc-prod .thumb { width: 44px; height: 44px; font-size: 14px; }
.fc-price { margin-top: 12px; font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.fc-total { margin-top: 8px; font-size: 34px; font-weight: 500; letter-spacing: -0.04em; }
.fc-bars { height: 8px; margin-top: 10px; }
.fc-ev { display: flex; gap: 10px; align-items: flex-start; }
.fc-ev .ev-date { background: #fff; color: #111214; font-size: 16px; }
.fc-ev > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.fc-ev b { font-size: 15px; font-weight: 600; line-height: 1.25; }
.fc-7 .fc-toast { background: rgba(31, 26, 77, 0.08); }

@media (max-width: 1100px) {
  .fan { height: 390px; }
  .fan-inner { transform: translateX(-50%) scale(0.86); }
}
@media (max-width: 760px) {
  .fan-section { padding-top: 88px; }
  .fan { height: 260px; }
  .fan-inner { top: 8px; transform: translateX(-50%) scale(0.72); }
}
@media (prefers-color-scheme: dark) {
  .fc-white, .fc-paper, .fc-iris, .fc-mint { filter: brightness(0.86) saturate(0.95); }
}

/* ---------- footer ---------- */

.foot {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px;
  padding: 40px 0 56px; font-size: 14px; color: var(--ink-3); line-height: 1.5;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; }
.foot-links a { color: var(--ink-2); }
@media (max-width: 760px) {
  .foot-links { gap: 0 18px; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
.home .foot { padding-top: 24px; }

/* ---------- long-form pages ---------- */

.page-head { padding-top: clamp(48px, 7vw, 96px); }
.page-title { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); font-weight: 500; letter-spacing: var(--track-tight); line-height: 1.08; }
.page-meta { margin-top: 14px; color: var(--ink-3); font-size: 15px; }
.doc { --doc: 70ch; padding-bottom: 96px; }
.doc-layout { display: grid; gap: 40px; margin-top: 40px; }
.toc { border-radius: 20px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; }
.toc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 0 22px; font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-2px) rotate(45deg); transition: transform 0.25s var(--ease);
}
.toc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.toc ol { display: grid; gap: 2px; padding: 0 22px 18px; }
.toc a { display: block; padding: 5px 0; text-decoration: none; color: var(--ink-2); line-height: 1.35; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 760px) { .toc ol { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
@media (min-width: 1180px) {
  .doc-layout { grid-template-columns: 240px minmax(0, var(--doc)); justify-content: center; gap: 72px; }
  .toc-nav { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; }
  .toc { background: none; border: 0; }
  .toc summary { min-height: 0; padding: 4px 0 10px; font-size: 13px; color: var(--ink-3); }
  .toc ol { grid-template-columns: 1fr; padding: 0; }
  .doc .page-head { padding-left: calc(240px + 72px); }
}
.prose { max-width: var(--doc); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.6em; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; scroll-margin-top: 24px; }
.prose h3 { margin-top: 2em; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25em; list-style: disc; }
.prose ul ul { margin-top: 0.4em; list-style: circle; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--ink-3); }
.prose strong { font-weight: 600; }
.prose a { text-decoration-color: var(--ink-3); }

.support .prose { margin-inline: auto; }
.support-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
@media (min-width: 720px) { .support-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.s-card { min-width: 0; padding: 24px; border-radius: 22px; border: 1px solid var(--line-2); }
.s-card a, .prose a { overflow-wrap: anywhere; }
.s-card h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }
.s-card p { margin-top: 8px; color: var(--ink-3); line-height: 1.6; font-size: 1rem; }
.s-card .ico { width: 28px; height: 28px; margin-bottom: 18px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.path { display: inline; padding: 1px 7px; border-radius: 7px; background: var(--chip); color: var(--ink); font-size: 0.94em; white-space: nowrap; }
.mail-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); text-decoration: none; font-weight: 500;
}
.mail-pill:hover { opacity: 0.9; }
.mail-pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.lost { text-align: center; padding: clamp(96px, 16vw, 200px) 0 120px; }
.lost .page-title { margin-top: 8px; }
.lost p { margin-top: 14px; color: var(--ink-3); }
.lost .mail-pill { margin-top: 36px; }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .beat { opacity: 1; visibility: visible; transform: none; }
  .faceid.on svg { animation: none; color: var(--mint); }
  .tri i { animation: none; transform: none; opacity: 1; }
  .fc:hover { translate: none; }
}

.section-sm { padding-top: clamp(72px, 10vw, 120px); padding-bottom: 40px; }
.h2-sm { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); }
