/* ============================================================================
   ByeFeed website
   ----------------------------------------------------------------------------
   One stylesheet for every page. The colour tokens are the app's own, value
   for value: assets/brand/byefeed-tokens.json (mirrored in AppPalette and
   res/values*/colors_byefeed.xml). Change a brand colour there first.

   Colour discipline, from assets/brand/BRAND.md:
     * primary  (Ink in light, Highlighter in dark) - main buttons, active UI.
     * brand    (Highlighter) - highlights, Pro, the best-value plan.
     * accent   (Coral) - the "blocked" state only, always with Ink text.
     * danger   - irreversible deletion only.
   ========================================================================= */

@font-face { font-family: "Sora"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/sora-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/nunito-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/nunito-800.woff2") format("woff2"); }

:root {
  /* Brand */
  --highlighter: #FFD447;
  --ink: #1C1A17;
  --paper: #FFF7E6;
  --coral: #FF6A4D;

  /* Light theme (the default, as in the app) */
  --bg: #FFF7E6;
  --surface: #FFFFFF;
  --border: #E6D9C0;
  --text: #1C1A17;
  --text-muted: #5C554A;
  --primary: #1C1A17;
  --on-primary: #FFF7E6;
  --brand: #FFD447;
  --on-brand: #1C1A17;
  --accent: #FF6A4D;
  --on-accent: #1C1A17;
  --success: #17774D;
  --danger: #C4401F;

  /* Derived */
  --mark-bars: var(--ink);          /* feed bars: Ink on light, Paper on dark */
  --hl: #FFD447;                    /* highlighter stroke behind words */
  --header-bg: rgba(255, 247, 230, 0.9);
  --shadow: 0 1px 2px rgba(28, 26, 23, 0.06), 0 12px 32px -12px rgba(28, 26, 23, 0.18);
  --contrast-bg: #FFF7E6;           /* the set-apart band (privacy, closing CTA) */
  --contrast-surface: #FFFFFF;
  --emph-border: #1C1A17;           /* Pro card and best-value plan outline */
  --best-bg: #FFF8E1;               /* Highlighter at 16% over the surface */

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  /* Shape and layout */
  --radius-btn: 16px;
  --radius-card: 20px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --doc-maxw: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  color-scheme: light;
}

/* Dark theme. It applies when the visitor has chosen it with the theme button
   (data-theme="dark", set by site.js), or when their device prefers dark and
   they have not chosen light. The two blocks must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1A17;
    --surface: #262320;
    --border: #45403A;
    --text: #FFF7E6;
    --text-muted: #BDB3A1;
    --primary: #FFD447;
    --on-primary: #1C1A17;
    --brand: #FFD447;
    --on-brand: #1C1A17;
    --accent: #FF7A5E;
    --on-accent: #1C1A17;
    --success: #4CC38A;
    --danger: #FF8A70;

    --mark-bars: var(--paper);
    --hl: rgba(255, 212, 71, 0.34);
    --header-bg: rgba(28, 26, 23, 0.9);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    --contrast-bg: #262320;
    --contrast-surface: #1C1A17;
    --emph-border: #FFD447;
    --best-bg: #3C3524;

    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1A17;
  --surface: #262320;
  --border: #45403A;
  --text: #FFF7E6;
  --text-muted: #BDB3A1;
  --primary: #FFD447;
  --on-primary: #1C1A17;
  --brand: #FFD447;
  --on-brand: #1C1A17;
  --accent: #FF7A5E;
  --on-accent: #1C1A17;
  --success: #4CC38A;
  --danger: #FF8A70;

  --mark-bars: var(--paper);
  --hl: rgba(255, 212, 71, 0.34);
  --header-bg: rgba(28, 26, 23, 0.9);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  --contrast-bg: #262320;
  --contrast-surface: #1C1A17;
  --emph-border: #FFD447;
  --best-bg: #3C3524;

  color-scheme: dark;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
svg { flex: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand);
}
a:hover { text-decoration-color: currentColor; }

strong, b { font-weight: 800; }

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

/* ---- The mark & wordmark -------------------------------------------------- */

.mark { display: block; width: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand .mark { height: 30px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.4rem;
  line-height: 1;
}

/* Highlighter stroke behind a word, like the pen it is named after. */
.hl {
  background-image: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 90%, transparent 90%);
  padding-inline: 0.06em;
  margin-inline: -0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---- Header & navigation --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}
.site-nav { margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 4px; }

/* Light / dark switch. Shown only once site.js is running, since it is what
   applies and remembers the choice; without it the page follows the device. */
.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a:not(.btn) {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }
.nav-cta-item { margin-left: 8px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  /* Without JavaScript the links simply wrap under the brand; the collapsed
     menu only exists once site.js has marked the page with .js. */
  .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .site-nav { margin-left: 0; }
  .site-nav ul { flex-wrap: wrap; }
  .nav-cta-item { margin-left: 0; }

  .js .header-inner { flex-wrap: nowrap; padding-block: 0; }
  .js .header-actions { margin-left: auto; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-nav.open { display: block; }
  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 20px;
    max-width: var(--maxw);
    margin-inline: auto;
  }
  .js .site-nav a:not(.btn) { display: block; padding: 14px 12px; font-size: 1.08rem; }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brand); border-radius: 0; }
  .js .nav-cta-item { margin-top: 10px; }
  .js .nav-cta-item .btn { width: 100%; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.96rem; border-radius: 14px; }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 86%, var(--bg)); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--text); min-height: 52px; }
.btn-outline:hover { background: var(--surface); }

.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: color-mix(in srgb, var(--brand) 88%, var(--ink)); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--brand);
}

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

.band { padding-block: clamp(64px, 9vw, 112px); }
.band-tight { padding-block: clamp(48px, 7vw, 80px); }
.band + .band { border-top: 1px solid var(--border); }

/* The set-apart band (privacy, closing CTA) follows the theme: the page's own
   Paper with white cards in light, a raised panel with darker cards in dark.
   Text, buttons and the mark all keep the theme's own colours. */
.band-contrast {
  --bg: var(--contrast-bg);
  --surface: var(--contrast-surface);
  background: var(--bg);
  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: 16px; }
.section-head > p { color: var(--text-muted); font-size: 1.1rem; }

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

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

.hero { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 112px); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-title { font-size: clamp(2.7rem, 7.2vw, 4.7rem); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 22px; }

.hero-sub { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--text-muted); max-width: 33em; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
}
.hero-note li { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--success); }

/* ---- Phone mock: the real block screen, drawn to BRAND.md --------------------- */

.phone {
  position: relative;
  width: min(330px, 100%);
  margin-inline: auto;
  padding: 11px;
  border-radius: 46px;
  background: #1C1A17;
  box-shadow: 0 0 0 1px #45403A, var(--shadow), 0 40px 80px -40px rgba(28, 26, 23, 0.45);
}

.phone-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  padding: 44px 20px 20px;
  display: flex;
  flex-direction: column;
  min-height: 600px;
}
.phone-screen::before {
  /* camera cut-out */
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  width: 22px; height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: #1C1A17;
}

.bs-moment { text-align: center; }
.bs-mark { width: 172px; margin: 6px auto 14px; overflow: visible; }
.bs-title { font-family: var(--font-display); font-weight: 700; font-size: 2.15rem; line-height: 1.1; letter-spacing: -0.04em; margin: 0 0 10px; }
.bs-copy { font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); margin: 0; }
.bs-copy b { color: var(--text); }

.bs-decision { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  gap: 12px;
  text-align: left;
  margin-bottom: 4px;
}
.fact-label { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 700; }
.fact-value { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.25; }

/* "Go Back · 9s": the primary fill sweeps in from the left, and the label
   reads text over the empty part and on_primary over the filled part. */
.charge {
  --fill: 42%;
  position: relative;
  height: 52px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--primary);
  background: var(--bg);
  overflow: hidden;
  font-weight: 800;
  font-size: 1rem;
}
.charge-fill,
.charge-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.charge-fill { background: var(--primary); clip-path: inset(0 calc(100% - var(--fill)) 0 0); }
.charge-label { color: var(--text); }
.charge-label.on { color: var(--on-primary); clip-path: inset(0 calc(100% - var(--fill)) 0 0); }

.ghost-btn {
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-btn);
  border: 2px solid var(--text);
  font-weight: 800;
  font-size: 1rem;
}

/* The mark waves once: the hand swings about its wrist, and the feed bars
   slide out from behind it on the last swing (MarkWave in byefeed_mark.dart).
   Nothing moves when the visitor has asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .wave .wave-hand {
    transform-box: view-box;
    transform-origin: 104px 184px;
    animation: bf-wave 1.4s cubic-bezier(0.45, 0, 0.3, 1) 0.35s both;
  }
  .wave .wave-bars {
    animation: bf-bars 1.4s cubic-bezier(0.2, 0.8, 0.3, 1) 0.35s both;
  }
  @keyframes bf-wave {
    0%   { transform: rotate(0deg); }
    18%  { transform: rotate(-13deg); }
    40%  { transform: rotate(10deg); }
    60%  { transform: rotate(-8deg); }
    80%  { transform: rotate(6deg); }
    100% { transform: rotate(0deg); }
  }
  @keyframes bf-bars {
    0%, 62% { transform: translateX(-70px); opacity: 0; }
    100%    { transform: translateX(0); opacity: 1; }
  }
}

/* ---- Problem ---------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split.top { align-items: start; }

.lede { font-size: 1.14rem; color: var(--text-muted); }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}
.points h3 { font-size: 1.12rem; margin-bottom: 6px; letter-spacing: -0.02em; }
.points p { color: var(--text-muted); font-size: 0.99rem; }

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

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature { padding: 24px 22px 26px; }
.feature h3 { font-size: 1.14rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.feature p { color: var(--text-muted); font-size: 0.98rem; }

.ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  margin-bottom: 18px;
}
.ico svg { width: 24px; height: 24px; }

/* ---- Short-form feeds mock -------------------------------------------------------- */

.feed-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.feed-list li { position: relative; padding-left: 30px; color: var(--text-muted); }
.feed-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.feed-list strong { color: var(--text); }

.feeds { max-width: 400px; margin-inline: auto; padding: 8px 0 0; box-shadow: var(--shadow); }
.feeds-title { padding: 12px 20px 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; }
.feed-row { display: flex; align-items: center; gap: 14px; padding: 11px 20px; }
.feed-row + .feed-row { border-top: 1px solid var(--border); }
.feed-tile {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}
.feed-tile svg { width: 18px; height: 18px; }
.feed-row.on .feed-tile { background: var(--brand); border-color: var(--ink); color: var(--ink); }
.feed-name { flex: 1; font-weight: 700; font-size: 0.97rem; }

/* Toggles: primary track, brand knob (BRAND.md "Shape"). */
.toggle {
  width: 46px; height: 28px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  flex: none;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.feed-row.on .toggle { background: var(--primary); }
.feed-row.on .toggle::after { left: 22px; background: var(--brand); box-shadow: inset 0 0 0 2px var(--ink); }

.feeds-foot { border-top: 1px solid var(--border); padding: 14px 20px; color: var(--text-muted); font-size: 0.88rem; }

/* ---- Steps ------------------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { padding: 26px 24px 28px; counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.16rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.98rem; }

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

.privacy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.privacy-item { padding: 24px 22px; }
.privacy-item h3 { font-size: 1.1rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.privacy-item p { color: var(--text-muted); font-size: 0.97rem; }
.band-contrast .section-head > p { color: var(--text-muted); }
.band-foot { margin-top: 32px; }

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

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
  max-width: 1000px;
  margin-inline: auto;
}

.plan { padding: 30px 28px; display: flex; flex-direction: column; }
.plan-pro { border: 2px solid var(--emph-border); box-shadow: var(--shadow); }

.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.plan-name { font-size: 1.5rem; letter-spacing: -0.03em; }
.plan-lead { color: var(--text-muted); margin-bottom: 18px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.chip-brand { background: var(--brand); color: var(--on-brand); border-color: var(--ink); }

.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 0.99rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 3px; top: 0.42em;
  width: 13px; height: 7px;
  border-left: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success);
  transform: rotate(-45deg);
}
.checks .muted { color: var(--text-muted); }

.plan-options { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
}
.option-best { border: 2px solid var(--emph-border); background: var(--best-bg); }
.option-name { font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.option-price { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; text-align: right; white-space: nowrap; }
.option-price small { font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0; margin-left: 2px; }
.option-note { grid-column: 1 / -1; color: var(--text-muted); font-size: 0.9rem; }
.save[hidden] { display: none; }

.plan .btn { margin-top: auto; width: 100%; }
.plan-fine { color: var(--text-muted); font-size: 0.86rem; margin: 12px 0 0; text-align: center; }

.price-free { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 6px; }

.price-country {
  max-width: 1000px;
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  color: var(--text-muted);
  font-size: 0.97rem;
}
.price-country strong { color: var(--text); }
.price-country [data-price-picker]:not([hidden]) { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.price-country select {
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  min-height: 44px;
  padding: 6px 12px;
  max-width: 260px;
}

.fine-print {
  max-width: 820px;
  margin: 26px auto 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}
.fine-print a { color: inherit; }

/* ---- FAQ (accordion) --------------------------------------------------------------------- */

.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-list.left { margin-inline: 0; }

.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 19px 58px 19px 22px;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.4;
  border-radius: var(--radius-card);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 22px; height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  /* A "+" drawn in Ink on the Highlighter disc; it becomes "-" when open. */
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 10px no-repeat,
    var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.faq-item[open] > summary::after {
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat,
    var(--brand);
}
.faq-item > summary:hover { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.faq-item[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.answer { padding: 0 22px 22px; color: var(--text-muted); }
.answer strong, .answer b { color: var(--text); }
.answer ul, .answer ol { padding-left: 22px; margin: 0 0 1em; }
.answer li { margin-bottom: 6px; }
.answer li:last-child { margin-bottom: 0; }
.faq-item:target { outline: 3px solid var(--brand); outline-offset: 2px; }

.more-link { text-align: center; margin-top: 28px; }

/* ---- Closing call to action ----------------------------------------------------------------- */

.closer { text-align: center; }
.closer .mark { height: 110px; margin: 0 auto 26px; }
.closer h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.closer p { color: var(--text-muted); max-width: 40ch; margin-inline: auto; font-size: 1.1rem; }
.closer .cta-row { justify-content: center; }

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

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 56px 28px; font-size: 0.97rem; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand p { color: var(--text-muted); margin: 14px 0 20px; }
.footer-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 6px 0 14px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--brand); }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }

/* ---- Document pages (Privacy Policy, Delete Account, FAQ) -------------------------- */

.page-head { padding-block: clamp(44px, 7vw, 80px) clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); letter-spacing: -0.04em; margin-bottom: 14px; }
.page-head .lead { font-size: 1.14rem; color: var(--text-muted); max-width: 44em; }
.meta { color: var(--text-muted); font-size: 0.93rem; margin-top: 18px; }

.breadcrumb { font-size: 0.93rem; margin-bottom: 18px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); font-weight: 700; }
.breadcrumb [aria-current] { color: var(--text); font-weight: 700; }

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(32px, 5vw, 56px) clamp(64px, 9vw, 104px);
}

.toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; font-size: 0.93rem; }
.toc > summary {
  list-style: none;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  pointer-events: none;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; font-weight: 600; line-height: 1.35; }
.toc a:hover { color: var(--text); border-left-color: var(--brand); }

.doc { max-width: var(--doc-maxw); min-width: 0; }
.doc > section + section { margin-top: 18px; }
.doc h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 44px 0 16px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.doc > section:first-child > h2:first-child,
.doc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { font-family: var(--font-body); font-weight: 800; letter-spacing: 0; font-size: 1.12rem; margin: 28px 0 10px; }
.doc p, .doc li { max-width: 70ch; }
.doc ul, .doc ol { padding-left: 24px; margin: 0 0 1em; }
.doc li { margin-bottom: 8px; }
.doc li > ul, .doc li > ol { margin-top: 8px; }
.doc .muted { color: var(--text-muted); }

/* In-app labels, set apart so the words match what is on screen. */
.ui {
  display: inline;
  font-weight: 800;
  padding: 0.04em 0.4em;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  white-space: nowrap;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0 0 22px;
}
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 800; margin-bottom: 6px; display: block; }
.callout-danger { border-left-color: var(--danger); }
.callout-danger .callout-title { color: var(--danger); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0 0 24px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.95rem; }
caption { text-align: left; padding: 12px 16px 0; font-weight: 800; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--border); }
thead th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 800; white-space: nowrap; }
tbody th { font-weight: 800; }
tbody tr:last-child > * { border-bottom: 0; }
td ul { margin: 0; padding-left: 18px; }
td li { margin-bottom: 4px; }

/* Numbered steps with the step number in a disc. */
.steps-list { list-style: none; counter-reset: s; padding-left: 0 !important; margin: 0 0 22px; display: grid; gap: 12px; }
.steps-list > li { counter-increment: s; position: relative; padding-left: 46px; margin: 0; min-height: 32px; }
.steps-list > li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: -2px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  font-size: 0.92rem;
}

/* Settings-row mocks: the three states of Settings -> Account, word for word. */
.state-grid { display: grid; gap: 14px; margin: 0 0 24px; }
.state { padding: 18px 20px; }
.state-label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.row-mock {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 2px 14px;
  align-items: start;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  margin-bottom: 12px;
}
.row-mock svg { width: 22px; height: 22px; margin-top: 2px; color: var(--text-muted); grid-row: span 2; }
.row-title { font-weight: 800; }
.row-sub { font-size: 0.9rem; color: var(--text-muted); line-height: 1.45; }
.row-id { font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; font-size: 0.85rem; color: var(--text-muted); overflow-wrap: anywhere; }
.state p { margin-bottom: 0; }
.state p + p { margin-top: 10px; }

.page-body { padding-block: clamp(36px, 5vw, 56px) clamp(64px, 9vw, 104px); }

.pill-nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.pill-nav a {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  background: var(--surface);
}
.pill-nav a:hover { border-color: var(--text); }

.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 18px; }

.help-box { margin-top: 56px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.help-box h2 { font-size: 1.35rem; margin-bottom: 4px; }
.help-box p { color: var(--text-muted); margin: 0; }

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

.notfound { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.notfound .mark { height: 120px; margin: 0 auto 28px; }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 12px; }
.notfound p { color: var(--text-muted); }
.notfound .cta-row { justify-content: center; }
.notfound .notfound-more { margin-top: 28px; }

/* ---- Responsive ------------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: 2; }
  .split-media { order: 2; }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .steps { grid-template-columns: minmax(0, 1fr); }

  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc {
    position: static;
    max-height: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 4px 18px;
  }
  .toc > summary {
    pointer-events: auto;
    cursor: pointer;
    margin: 0;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
  }
  .toc > summary::after { content: "Show"; letter-spacing: 0.06em; color: var(--text); }
  .toc[open] > summary::after { content: "Hide"; }
  .toc ol { margin-bottom: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .features, .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cta-row .btn { width: 100%; }
  .phone-screen { min-height: 560px; }
  .plan { padding: 24px 20px; }
  .help-box .btn { width: 100%; }
}

@media (max-width: 380px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .option { grid-template-columns: minmax(0, 1fr); }
  .option-price { text-align: left; }
}

@media print {
  .site-header, .site-footer, .toc, .skip-link, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .doc-layout { display: block; padding: 0; }
  a { text-decoration: underline; }
}
