/* The Reread website. Warm paper, deep ink and the app's indigo; coral and green come from the tone gauge.
   Light by default, dark with the system or the theme button (data-theme on <html>). The landing page and the
   legal and support pages (privacy, terms, delete, support, 404) share it; their own part is near the end. */

/* Fraunces and Instrument Sans, served from this site (fonts/OFL.txt), so no page load reaches a third party. The
   files are Google Fonts' latin subsets: Fraunces with its optical-size and weight axes (500 to 700, italic 500),
   Instrument Sans with weight 400 to 600. Characters outside the subset (→, ⋮) use the fallback fonts, as before.
   firebase.json caches /fonts/ for a year, so a changed font needs a new file name (the version is in it). */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/fonts/fraunces-v38-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("/fonts/fraunces-italic-v38-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/instrument-sans-v4-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #fbf7f0;
  --paper-top: #f4eee3;
  --card: #ffffff;
  --card-soft: rgba(255, 255, 255, .72);
  --ink: #1c1b2e;
  --muted: #555168;
  --line: #e6ddcf;
  --accent: #4f46e5;          /* links and accents on the page background */
  --btn: #4f46e5;             /* filled buttons: white text on it is 6.3:1 */
  --btn-hover: #4338ca;
  --accent-soft: #ecebff;
  --coral: #c2381f;           /* "lands badly" as text (5.3:1 on paper) */
  --coral-tint: rgba(217, 45, 32, .16);
  --coral-soft: #fbe6e0;
  --good: #067647;            /* "lands well" */
  --good-soft: #dcf2e4;
  --amber: #f79009;
  --gauge-bad: #d92d20;
  --gauge-good: #067647;
  --shadow: 0 1px 2px rgba(28, 27, 46, .06), 0 12px 32px rgba(28, 27, 46, .08);
  --shadow-lg: 0 2px 6px rgba(28, 27, 46, .06), 0 30px 70px rgba(40, 32, 110, .16);
  --phone: #1c1b2e;
  --dot: rgba(28, 27, 46, .07);
  --band-indigo: #eeecfb;
  --band-coral: #fbeee8;
  --band-sage: #e9f3ec;
  --band-sand: #f5eee2;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --gutter: 16px;
}

/* Dark tokens: once for the system setting (unless the page is pinned to light), once for the pinned dark mode. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #12121b;
    --paper-top: #181824;
    --card: #1d1d2a;
    --card-soft: rgba(36, 36, 52, .72);
    --ink: #f4efe6;
    --muted: #b8b3c4;
    --line: #2f2e42;
    --accent: #a5b4fc;
    --btn: #4f46e5;
    --btn-hover: #5b54ee;
    --accent-soft: #24234a;
    --coral: #f97f6e;
    --coral-tint: rgba(249, 112, 102, .24);
    --coral-soft: #3a2026;
    --good: #5fd79b;
    --good-soft: #17322a;
    --amber: #fdb022;
    --gauge-bad: #f97066;
    --gauge-good: #47cd89;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 70px rgba(0, 0, 0, .45);
    --phone: #050508;
    --dot: rgba(244, 239, 230, .06);
    --band-indigo: #1b1a33;
    --band-coral: #261a1f;
    --band-sage: #15241e;
    --band-sand: #1c1a20;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #12121b;
  --paper-top: #181824;
  --card: #1d1d2a;
  --card-soft: rgba(36, 36, 52, .72);
  --ink: #f4efe6;
  --muted: #b8b3c4;
  --line: #2f2e42;
  --accent: #a5b4fc;
  --btn: #4f46e5;
  --btn-hover: #5b54ee;
  --accent-soft: #24234a;
  --coral: #f97f6e;
  --coral-tint: rgba(249, 112, 102, .24);
  --coral-soft: #3a2026;
  --good: #5fd79b;
  --good-soft: #17322a;
  --amber: #fdb022;
  --gauge-bad: #f97066;
  --gauge-good: #47cd89;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .3);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 70px rgba(0, 0, 0, .45);
  --phone: #050508;
  --dot: rgba(244, 239, 230, .06);
  --band-indigo: #1b1a33;
  --band-coral: #261a1f;
  --band-sage: #15241e;
  --band-sand: #1c1a20;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  background: var(--paper); color: var(--ink); overflow-x: hidden; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body, .navbar, .card, .step, .feature, details, .tourframe, .band, .modebtn {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
h1, h2, h3 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.12;
  font-optical-sizing: auto; text-wrap: balance;
}
p, li { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
@media (min-width: 720px) { :root { --gutter: 32px; } }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px;
  background: var(--btn); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Nav ---------- */
.navbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper-top) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.navin { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-weight: 650; font-size: 1.25rem; letter-spacing: -.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 12px rgba(79, 70, 229, .28); }
.navright { display: flex; align-items: center; gap: 10px; }
.navlinks { display: none; gap: 22px; margin-right: 8px; }
.navlinks a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.navlinks a:hover { color: var(--ink); }
@media (min-width: 900px) { .navlinks { display: flex; } }

/* One button that cycles Light, Dark and System; the icon swaps with a short cross-fade. */
.modebtn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 600 .85rem/1 var(--sans); cursor: pointer;
}
.modebtn:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.modebtn .ico { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); }
.modebtn .ico svg { position: absolute; width: 16px; height: 16px; opacity: 0; transform: rotate(-45deg) scale(.7);
  transition: opacity .2s ease, transform .25s var(--ease-out); }
.modebtn[data-mode="light"] .i-light, .modebtn[data-mode="dark"] .i-dark, .modebtn[data-mode="auto"] .i-auto {
  opacity: 1; transform: none; }
.modebtn .lbl { min-width: 48px; text-align: left; }
@media (max-width: 560px) { .modebtn .lbl { display: none; } .modebtn { padding: 0 4px; width: 40px; justify-content: center; } }

/* ---------- Buttons ---------- */
.cta, .navcta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px;
  background: var(--btn); color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap;
  transition: background-color .2s ease, transform .16s var(--ease-out), box-shadow .2s ease;
}
.navcta { height: 40px; padding: 0 16px; font-size: .92rem; gap: 0; }
.cta { min-height: 54px; padding: 0 26px; font-size: 1.05rem; box-shadow: 0 10px 28px rgba(79, 70, 229, .3); }
.cta svg, .navcta svg { flex: none; }
.cta:hover, .navcta:hover { background: var(--btn-hover); }
.cta:active, .navcta:active, .modebtn:active, .tournav:active, .totop:active, .demo-toggle:active { transform: scale(.97); }
/* Hidden visually only, so the link's accessible name stays "Get it on Google Play". */
@media (max-width: 400px) {
  .navcta .long {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 24px; overflow: hidden; overflow: clip visible; }
.hero::before {
  /* A faint dot grid, like squared notepaper, fading out toward the bottom. */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.heroin { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 48px; }
  .heroin { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 500;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.hero h1 { position: relative; z-index: 0; font-size: clamp(2.5rem, 7.2vw, 4.4rem); font-weight: 600; margin-top: 18px; }
.hero h1 em { font-style: italic; font-weight: 500; position: relative; white-space: nowrap; color: var(--accent); }
/* The highlighter swipe under "meant", the same tint the app uses on flagged phrases. */
.hero h1 em::after {
  content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .06em; height: .3em; z-index: -1;
  background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: .12em;
  transform-origin: left center; transform: scaleX(1);
}
.js .hero h1 em::after { transform: scaleX(0); animation: swipe .7s var(--ease-out) .45s forwards; }
@keyframes swipe { to { transform: scaleX(1); } }
.lead { margin: 20px 0 28px; color: var(--muted); font-size: clamp(1.1rem, 2.2vw, 1.25rem); max-width: 36em; }
.lead strong { color: var(--ink); font-weight: 600; }
.subnote { margin-top: 14px; color: var(--muted); font-size: .92rem; max-width: 36em; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 34px; max-width: 560px; }
@media (min-width: 640px) and (max-width: 899px), (min-width: 1140px) {
  .stats { grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 30px; }
}
.stat b { display: block; white-space: nowrap; font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.2;
  font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .86rem; line-height: 1.35; display: block; }

/* Phone frames: one look for the hero, the tour and the feature sections. */
.phone {
  width: min(300px, 72vw); margin: 0 auto; border-radius: 40px; padding: 9px; background: var(--phone);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.phone img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; border-radius: 32px; background: #f6f7f9; }

.herophone { position: relative; width: min(320px, 76vw); margin: 0 auto; }
.herophone .phone { width: 100%; }
/* Floating cards around the hero phone: their message, and what Decode says it likely means. */
.float {
  position: absolute; z-index: 2; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; font-size: .88rem; line-height: 1.4;
}
.float.msg { left: -18%; top: 9%; max-width: 230px; border-bottom-left-radius: 6px; }
.float.msg small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; margin-bottom: 2px; letter-spacing: .02em; }
.float.verdict {
  right: -14%; bottom: 13%; max-width: 230px; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; font-weight: 600; line-height: 1.3;
}
.float.verdict svg { width: 28px; height: 28px; flex: none; color: var(--good); }
.float.verdict small { display: block; color: var(--good); font-size: .75rem; font-weight: 600; margin-bottom: 2px; letter-spacing: .02em; }
@media (max-width: 520px) {
  .float.msg { left: -6%; top: 5%; max-width: 190px; font-size: .8rem; }
  .float.verdict { right: -5%; bottom: 8%; max-width: 190px; font-size: .8rem; }
  .float.verdict svg { width: 24px; height: 24px; }
}
.js .float { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js .float.msg { transition-delay: .25s; }
.js .float.verdict { transition-delay: .6s; }
.js .loaded .float { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
section { padding: 88px 0 0; scroll-margin-top: 64px; }
.kicker { display: block; text-align: center; color: var(--accent); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); text-align: center; margin-bottom: 14px; }
.tagline { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 38em; font-size: 1.08rem; }

/* How it works */
.steps { display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px 24px; }
.step .n {
  /* The number sits in a small speech bubble. */
  width: 42px; height: 38px; display: grid; place-items: center; margin-bottom: 16px;
  border-radius: 14px 14px 14px 4px; background: var(--btn); color: #fff;
  font: 600 1.05rem/1 var(--serif); font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- The demo (stands in for the video until one exists) ---------- */
.film {
  position: relative; margin: 0 auto; width: min(100%, 1040px); border-radius: var(--r-lg); overflow: hidden;
  background: var(--band-indigo); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 22px 16px 70px;
}
.film::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); background-size: 20px 20px;
}
@media (min-width: 820px) { .film { padding: 44px 44px 76px; } }
.demo { position: relative; display: grid; gap: 18px; align-items: start; }
@media (min-width: 820px) { .demo { grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; } }

.chat { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--band-sage); color: var(--good); font-weight: 700; }
.chat-head b { display: block; font-size: .95rem; line-height: 1.2; }
.chat-head small { color: var(--muted); font-size: .78rem; }
.bubble { max-width: 92%; padding: 11px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.5; }
.bubble.them { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble mark { background: transparent; color: inherit; border-radius: 4px; padding: 0 1px;
  transition: background-color .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.bubble mark.on { background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: 0 2px 0 var(--accent); }
.chat-time { color: var(--muted); font-size: .75rem; margin: 6px 0 0 4px; }
.sharepill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--btn); color: #fff; font-size: .85rem; font-weight: 600;
}
.sharepill img { width: 24px; height: 24px; border-radius: 7px; }

.result { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.r-top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink); }
.chip.solid { background: var(--btn); border-color: var(--btn); color: #fff; }
.r-label { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.r-meaning { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.3; margin: 6px 0 14px; font-weight: 550; }
.r-signals { list-style: none; padding: 0; display: grid; gap: 8px; margin-bottom: 12px; }
.r-signals li { font-size: .88rem; color: var(--muted); padding-left: 12px; border-left: 3px solid var(--accent); line-height: 1.45; }
.r-signals q { color: var(--ink); font-weight: 600; display: block; }
.r-other { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.r-other b { color: var(--ink); font-weight: 600; }
.replies { display: grid; gap: 8px; }
.reply { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; padding: 10px 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font-size: .88rem; line-height: 1.45; }
.reply b { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); min-width: 3.6em; }

/* Steps of the demo appear in order (site.js sets .on). Without JavaScript everything is simply visible. */
.js .film [data-at] { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.js .film [data-at].on { opacity: 1; transform: none; }
.js .film.fading [data-at] { opacity: 0; transform: none; transition-duration: .35s; }
.demo-toggle {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 2; display: none; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 600 .85rem/1 var(--sans); cursor: pointer; transition: transform .16s var(--ease-out), border-color .2s ease;
}
.js .demo-toggle { display: inline-flex; }
.js .demo-toggle[hidden] { display: none; }
.demo-toggle:hover { border-color: var(--accent); }
.demo-toggle svg { width: 14px; height: 14px; }
.demo-toggle .i-play { display: none; }
.demo-toggle[aria-pressed="true"] .i-play { display: block; }
.demo-toggle[aria-pressed="true"] .i-pause { display: none; }
.filmnote { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 14px; }

/* ---------- Screenshot tour ---------- */
.tourframe { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--band-sand);
  padding: 14px 0 6px; overflow: hidden; }
.track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 18px 22px;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
@media (min-width: 820px) {
  .track { padding: 14px 64px 22px; cursor: grab; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
}
.track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.track::-webkit-scrollbar { display: none; }
.track img { -webkit-user-drag: none; user-select: none; }
.track figure { flex: 0 0 auto; width: min(250px, 64vw); scroll-snap-align: center; }
.track .phone { width: 100%; border-radius: 34px; padding: 7px; box-shadow: var(--shadow); }
.track .phone img { border-radius: 28px; }
.track figcaption { text-align: center; margin-top: 14px; font-weight: 600; font-size: .95rem; }
.track figcaption span { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; margin-top: 2px; }
.tournav {
  position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: none; place-items: center;
  box-shadow: var(--shadow); transition: transform .16s var(--ease-out), opacity .2s ease, border-color .2s ease;
}
.tournav:hover { border-color: var(--accent); }
.tournav:disabled { opacity: 0; pointer-events: none; }
.tournav.prev { left: 14px; } .tournav.next { right: 14px; }
.tournav svg { width: 20px; height: 20px; }
@media (min-width: 820px) { .tournav { display: grid; } }
.tourhint { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 14px; }

/* ---------- Feature bands ---------- */
.band { position: relative; margin-top: 88px; padding: 64px 0 56px; border-radius: 0; overflow: hidden; }
.band > .wrap { z-index: 1; }
.band section { padding-top: 0; }
.band.indigo { background: var(--band-indigo); }
.band.coral { background: var(--band-coral); }
.band.sage { background: var(--band-sage); }
.band.sand { background: var(--band-sand); }
@media (min-width: 1264px) {
  /* On wide screens the bands become rounded panels inside the page margin, like cards on a desk. */
  .band { margin-inline: 32px; border-radius: 40px; }
}
/* Two soft pools of light in opposite corners, so the bands feel lit rather than flat. */
.band::before, .band::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--card) 70%, transparent), transparent);
}
.band::before { width: 640px; height: 640px; top: -320px; right: -220px; }
.band::after { width: 520px; height: 520px; bottom: -280px; left: -200px; opacity: .8; }

.split { display: grid; gap: 36px; align-items: center; margin-top: 48px; }
.split:first-of-type { margin-top: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.rev .media { order: 2; }
}
.split h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.split p { color: var(--muted); font-size: 1.04rem; }
.split p + p { margin-top: 10px; }
.split .more { margin-top: 18px; }
.ticks { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
/* The circle, then the tick as a mask filled with --good, so both follow the theme. */
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--good-soft);
}
.ticks li::after {
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; background: var(--good);
  -webkit-mask: var(--tick) center / 14px no-repeat; mask: var(--tick) center / 14px no-repeat;
}
.media .phone { width: min(290px, 70vw); }

/* Illustration: the three ways in, drawn in CSS so it follows the theme. */
.ways { display: grid; gap: 14px; max-width: 460px; margin: 0 auto; width: 100%; }
.way { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow); }
.way-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.way-title .no { width: 26px; height: 24px; border-radius: 9px 9px 9px 3px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font: 600 .82rem/1 var(--serif); }
.way-title small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .78rem; }
.targets { display: flex; gap: 16px; }
.target { display: grid; justify-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.target i { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; }
.target i svg { width: 20px; height: 20px; stroke: var(--muted); }
.target.me { color: var(--ink); font-weight: 600; }
.target.me img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 3px var(--accent-soft); }
.tiles { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; }
.tile { height: 46px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center;
  gap: 8px; padding: 0 12px; font-size: .78rem; color: var(--muted); min-width: 0; }
.tile svg { width: 16px; height: 16px; flex: none; stroke: currentColor; }
.tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.me { background: var(--btn); border-color: var(--btn); color: #fff; font-weight: 600; }
@media (max-width: 479px) {
  /* On phones the neighbouring tiles shrink to icons, so "Reread clipboard" fits. */
  .tile:not(.me) { width: 46px; padding: 0; justify-content: center; }
  .tile:not(.me) span { display: none; }
}
.selbar { display: inline-flex; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: .8rem; font-weight: 600; overflow: hidden;
  box-shadow: var(--shadow); }
.selbar span { padding: 8px 12px; }
.selbar .me { background: var(--btn); color: #fff; }
.seltext { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.seltext mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); padding: 1px 2px; border-radius: 3px; }

/* Illustration: masking on the phone. */
.maskdemo { display: grid; gap: 12px; max-width: 460px; margin: 0 auto; width: 100%; }
.maskcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow); }
.maskcard .lbl { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 8px; }
.maskcard .lbl svg { width: 14px; height: 14px; stroke: currentColor; }
.maskcard p { font-size: 1rem; line-height: 1.7; color: var(--ink); }
.pii { background: var(--coral-soft); color: var(--coral); border-radius: 5px; padding: 1px 3px; font-weight: 500; }
.tok { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .86em; background: var(--good-soft); color: var(--good);
  border-radius: 5px; padding: 2px 5px; font-weight: 600; white-space: nowrap; }
.maskarrow { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.maskarrow svg { width: 18px; height: 18px; stroke: var(--good); }
.masknote { font-size: .85rem; color: var(--muted); text-align: center; }

/* What Reread does */
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px;
  transition: transform .2s var(--ease-out), border-color .2s ease, box-shadow .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
}
.feature .ic { width: 46px; height: 46px; border-radius: 14px 14px 14px 5px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); }
.feature .ic svg { width: 22px; height: 22px; stroke: var(--accent); }
.feature.coral .ic { background: var(--coral-soft); } .feature.coral .ic svg { stroke: var(--coral); }
.feature.good .ic { background: var(--good-soft); } .feature.good .ic svg { stroke: var(--good); }
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .98rem; }

/* Plan strip */
.plan { display: grid; gap: 20px; align-items: center; margin-top: 28px; padding: 24px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line); }
@media (min-width: 820px) { .plan { grid-template-columns: auto 1fr; gap: 28px; padding: 28px 32px; } }
.plan-steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: var(--good-soft); color: var(--good); white-space: nowrap; }
.pill.pro { background: var(--accent-soft); color: var(--accent); }
.plan-steps svg { width: 18px; height: 18px; stroke: var(--muted); flex: none; }
.plan p { color: var(--muted); font-size: .96rem; }

/* Questions */
.faq { max-width: 820px; margin: 32px auto 0; display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font: 600 1.12rem/1.35 var(--serif); letter-spacing: -.005em; border-radius: 18px;
}
summary::-webkit-details-marker { display: none; }
summary .plus { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); flex: none; }
summary .plus::before, summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px;
  background: var(--accent); transition: transform .25s var(--ease-out);
}
summary .plus::after { transform: rotate(90deg); }
details[open] summary .plus::after { transform: rotate(0deg); }
details .ans { padding: 0 20px 18px; color: var(--muted); }
details .ans p + p { margin-top: 8px; }

/* ---------- Final call to action ---------- */
.final {
  position: relative; overflow: hidden; margin: 96px 0 0; padding: 56px 24px; border-radius: var(--r-lg); text-align: center;
  background: #1c1b2e; color: #f4efe6;
}
:root[data-theme="dark"] .final { background: #22213a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .final { background: #22213a; } }
.final::before {
  /* A large, faint tone gauge behind the text. */
  content: ""; position: absolute; left: 50%; bottom: -170px; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%;
  background: conic-gradient(from 270deg, #f97066, #fdb022 25%, #47cd89 50%, transparent 50%);
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 61.5%, #000 70%, transparent 70.5%);
  mask: radial-gradient(circle, transparent 61%, #000 61.5%, #000 70%, transparent 70.5%);
  opacity: .22; pointer-events: none;
}
.final > * { position: relative; }
.final h2 { color: #fff; margin-bottom: 10px; }
.final p { color: rgba(244, 239, 230, .82); max-width: 34em; margin: 0 auto; }
.final .cta { margin-top: 24px; background: #fff; color: #1c1b2e; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.final .cta:hover { background: #ecebff; }
.final .subnote { margin: 18px auto 0; color: rgba(244, 239, 230, .78); }
.final .subnote a { color: #fff; }
/* The page's indigo ring is under 3:1 on this dark panel in the light theme; the light indigo passes in both. */
.final :focus-visible { outline-color: #a5b4fc; }

/* ---------- Footer ---------- */
footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: .9rem; }
.footin { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.footlinks { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
.entity { margin-top: 14px; font-size: .84rem; }

/* Back to top */
.totop {
  position: fixed; right: 16px; bottom: 16px; z-index: 20; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; translate: 0 12px; pointer-events: none;
  transition: opacity .25s var(--ease-out), translate .25s var(--ease-out), transform .16s var(--ease-out);
}
.totop.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.totop svg { width: 20px; height: 20px; }
@media (min-width: 720px) { .totop { right: 24px; bottom: 24px; } }

/* ---------- Legal and support pages ---------- */
/* The current page in the nav. */
.navlinks a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: .45em; }

/* Long documents jump straight to a section (contents, app links like terms#fair-use) instead of gliding past it. */
html:has(.doc) { scroll-behavior: auto; }
.doc { position: relative; padding: 40px 0 0; }
.doc::before {
  /* The hero's dot grid, fainter and shorter, so the pages feel like the same notepaper. */
  content: ""; position: absolute; inset: 0 0 auto; height: 320px; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent); mask-image: linear-gradient(180deg, #000 20%, transparent);
}
@media (min-width: 900px) { .doc { padding-top: 64px; } }
.doc-head, .doc-body { position: relative; max-width: 70ch; margin: 0 auto; }
.doc-head { margin-bottom: 32px; }
.doc-head .kicker { text-align: left; }
.doc-head h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.doc-meta { margin-top: 12px; color: var(--muted); font-size: .92rem; }
/* With a contents list: one column on phones, the list beside the text (and staying in view) on wide screens. */
@media (min-width: 1100px) {
  .doc-grid { display: grid; grid-template-columns: 240px minmax(0, 70ch); gap: 56px; justify-content: center; align-items: start; }
  .doc-grid .doc-head { grid-column: 2; }
  .doc-grid .toc { grid-column: 1; grid-row: 2; position: sticky; top: 88px; margin: 0; max-height: calc(100vh - 112px); overflow-y: auto; }
  .doc-grid .doc-body { grid-column: 2; grid-row: 2; margin: 0; }
}
.toc { max-width: 70ch; margin: 0 auto 36px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); }
.toc h2 { text-align: left; font: 600 .78rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; }
/* The number in its own column, so a long title wraps under the title rather than under the number. */
.toc a { display: grid; grid-template-columns: 2em 1fr; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: .92rem;
  line-height: 1.35; }
.toc a:hover { color: var(--accent); }
.toc a span { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Running text: a readable measure, calm spacing. */
.prose { font-size: 1.0625rem; }
.prose > * + *, .prose li > * + * { margin-top: 1em; }
.prose h2 {
  display: flex; align-items: baseline; gap: 12px; text-align: left; font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  margin: 2.4em 0 0; padding-top: 1.1em; border-top: 1px solid var(--line);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.22rem; line-height: 1.25; margin-top: 1.9em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose [id] { scroll-margin-top: 84px; }
/* Section numbers: the speech bubble of "How it works" for h2s, the accent for h3s. */
.prose h2 .num {
  flex: none; min-width: 38px; height: 34px; padding: 0 9px; display: inline-grid; place-items: center; align-self: center;
  border-radius: 13px 13px 13px 4px; background: var(--btn); color: #fff; font: 600 1rem/1 var(--serif);
  font-variant-numeric: tabular-nums;
}
.prose h3 .num { color: var(--accent); margin-right: .35em; font-variant-numeric: tabular-nums; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose ol > li::marker { font-weight: 600; }
.prose strong { font-weight: 600; }
.prose code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .86em; padding: 1px 5px; border-radius: 5px;
  background: var(--good-soft); color: var(--good); white-space: nowrap; }
.prose .lead { margin: 1em 0 0; max-width: none; color: var(--ink); font-size: 1.15rem; }
.prose a { overflow-wrap: anywhere; }

/* Callouts: the short version, or something that needs your attention (coral). */
.callout { padding: 16px 20px; border-radius: var(--r-sm); background: var(--accent-soft); border-left: 4px solid var(--accent); }
.callout.warn { background: var(--coral-soft); border-left-color: var(--coral); }
.callout > * + * { margin-top: .6em; }

/* Tables scroll inside their own box on narrow screens, so the page itself never scrolls sideways. */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { background: var(--paper-top); font-weight: 600; white-space: nowrap; }
.table-wrap td:first-child { font-weight: 600; min-width: 10em; }
/* On phones each row becomes a small block: its first cell as the title, the rest under it (with data-label as a
   caption where a cell needs one), so three columns never squeeze into a few words per line. */
@media (max-width: 600px) {
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .table-wrap tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { display: block; padding: 0; border: 0; min-width: 0; }
  .table-wrap td + td { margin-top: 6px; }
  .table-wrap td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .78rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
}

/* The contact card at the end of each page. */
.contact { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.contact > * + * { margin-top: .5em; }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.doc-actions .cta { box-shadow: none; }

/* Reveal on scroll: a short rise and fade, once. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .float { opacity: 1; transform: none; }
  .js .hero h1 em::after { transform: scaleX(1); animation: none; }
}

/* Printing or saving as PDF shows everything, scrolled to or not. */
@media print {
  .js .reveal, .js .film [data-at], .js .float { opacity: 1 !important; transform: none !important; }
}
