/*
 * FoldOut website
 * Matte ceramic palette (bone, blush, sand, graphite) mirrored from the app's Palette.swift.
 * Theme: follows the system by default; html[data-theme="light" | "dark"] forces a mode.
 */

:root {
  --bg: #EEEAE5;
  --surface: #F7F4F0;
  --surface-2: #FBF9F6;
  --sunk: #E7E2DC;
  --line: #DCD5CD;
  --line-strong: #C5BCB2;
  --ink: #2E2D30;
  --muted: #6C6763;
  --primary: #39383B;
  --on-primary: #F7F4F0;
  --accent: #A35F59;
  --accent-soft: #F0DEDA;
  --accent-line: #D6ABA5;
  --ok: #4C7D59;
  --ok-soft: #DEE9DF;
  --glow: rgba(214, 171, 165, 0.45);
  --glow-2: rgba(216, 199, 169, 0.40);
  --dot: rgba(57, 56, 59, 0.07);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 30px -12px rgba(46, 45, 48, 0.18);
  --shadow-lg: 0 30px 80px -30px rgba(46, 45, 48, 0.35);

  /* Test paper is always printed on white, in both themes, just like the app. */
  --paper: #FFFFFF;
  --paper-ink: #14304F;
  --paper-back: #E4DCD1;

  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #1C1B1D;
  --surface: #242326;
  --surface-2: #2A292C;
  --sunk: #18171A;
  --line: #39373A;
  --line-strong: #5C585C;
  --ink: #EEE9E4;
  --muted: #ADA69F;
  --primary: #ECE6DF;
  --on-primary: #1F1E20;
  --accent: #DDA49C;
  --accent-soft: #3A2B2A;
  --accent-line: #7A5752;
  --ok: #8FBF99;
  --ok-soft: #22332A;
  --glow: rgba(122, 87, 82, 0.35);
  --glow-2: rgba(92, 88, 92, 0.30);
  --dot: rgba(238, 233, 228, 0.05);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 30px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #1C1B1D;
    --surface: #242326;
    --surface-2: #2A292C;
    --sunk: #18171A;
    --line: #39373A;
    --line-strong: #5C585C;
    --ink: #EEE9E4;
    --muted: #ADA69F;
    --primary: #ECE6DF;
    --on-primary: #1F1E20;
    --accent: #DDA49C;
    --accent-soft: #3A2B2A;
    --accent-line: #7A5752;
    --ok: #8FBF99;
    --ok-soft: #22332A;
    --glow: rgba(122, 87, 82, 0.35);
    --glow-2: rgba(92, 88, 92, 0.30);
    --dot: rgba(238, 233, 228, 0.05);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 30px -14px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
    color-scheme: dark;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Soft ceramic glow and a faint graph-paper dot grid behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, var(--glow), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, var(--glow-2), transparent 60%),
    radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 22px 22px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

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

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 650;
}

p {
  margin: 0;
}

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

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

.skip-link:focus {
  left: 12px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--surface-2);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon {
  display: none;
}

.theme-toggle[data-mode="auto"] .icon-auto,
.theme-toggle[data-mode="light"] .icon-light,
.theme-toggle[data-mode="dark"] .icon-dark {
  display: block;
}

@media (max-width: 720px) {
  .nav-links a.hide-sm {
    display: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn .btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.btn .btn-stack small {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

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

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 56px;
}

/* Let both hero columns shrink below their content width on small screens. */
.hero-grid > * {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 680;
  letter-spacing: -0.035em;
  margin: 18px 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lede {
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--ok);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* The recessed well that holds the white test paper, as in the app. */
.well {
  position: relative;
  padding: 16px;
  border-radius: 32px;
  background: var(--sunk);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.paper {
  position: relative;
  border-radius: 20px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.paper::after {
  /* faint printed grid on the paper */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(20, 48, 79, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(20, 48, 79, 0.045) 1px, transparent 1px) 0 0 / 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.fold-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  perspective: 1600px;
  perspective-origin: 50% 40%;
  z-index: 1;
}

.fold-scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  /* No opacity or will-change: opacity here, as either flattens the 3D children. */
  will-change: transform;
}

.fold-face {
  position: absolute;
  transform-style: preserve-3d;
}

.fold-side {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.fold-side.front {
  background-color: var(--paper);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.fold-side.back {
  transform: rotateY(180deg);
  background: var(--paper-back);
  box-shadow: inset 0 0 0 1.5px var(--paper-ink);
}

.stage-label {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: #6C6763;
  letter-spacing: 0.02em;
}

.stage-style {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #6C6763;
  background: rgba(238, 234, 229, 0.85);
  border: 1px solid #DCD5CD;
}

.stage-progress {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 120px;
  bottom: 22px;
  height: 3px;
  border-radius: 3px;
  background: rgba(20, 48, 79, 0.08);
  overflow: hidden;
}

.stage-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #A35F59;
}

/* Net picker: the 11 nets, right under the stage. */
.net-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 6px 10px;
  font-size: 13.5px;
}

.net-picker {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 6px;
  padding: 0 2px 2px;
}

.net-pick {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.net-pick:hover {
  border-color: var(--line-strong);
}

.net-pick:active {
  transform: scale(0.94);
}

.net-pick.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.net-pick svg {
  width: 100%;
  height: 100%;
}

/* Theme-aware net icons (CSS overrides the SVG's own fill and stroke). */
.net-pick rect {
  fill: var(--surface-2);
  stroke: var(--muted);
}

.net-pick.is-active rect {
  fill: var(--paper);
  stroke: var(--accent);
}

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  background: var(--surface);
  padding: 22px 24px;
}

.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat span {
  font-size: 14px;
  color: var(--muted);
}

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

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 12px 0 14px;
}

.section-head p {
  font-size: 18px;
  color: var(--muted);
}

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

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.feature .icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.feature p {
  font-size: 15.5px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 3px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  padding: 28px;
  position: relative;
}

.step .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}

.step h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 15.5px;
}

.step .art {
  margin-top: 22px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  height: 150px;
  display: grid;
  place-items: center;
}

.step .art svg {
  height: 120px;
  width: auto;
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 920px;
  margin-inline: auto;
}

.plan {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.plan.pro {
  position: relative;
  border-color: var(--accent-line);
  background:
    radial-gradient(500px 220px at 100% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
}

.plan h3 {
  font-size: 24px;
}

.plan .price {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 15px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 12px;
}

.plan li {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
}

.plan li svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--ok);
}

.plan.pro li svg {
  color: var(--accent);
}

.plan .fineprint {
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

/* Privacy band */

.privacy-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px 36px;
}

.privacy-band .shield {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--ok-soft);
  color: var(--ok);
}

.privacy-band .shield svg {
  width: 30px;
  height: 30px;
}

.privacy-band h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.privacy-band p {
  color: var(--muted);
}

/* CTA */

.cta {
  text-align: center;
  padding: 72px 32px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-size: clamp(32px, 4.4vw, 50px);
  margin: 18px 0 14px;
}

.cta p {
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
  margin-inline: auto;
}

.cta .hero-actions {
  justify-content: center;
}

.cta .brand-big {
  width: 92px;
  height: 92px;
  margin-inline: auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}

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

.footer {
  padding: 56px 0 48px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 12px;
  max-width: 36ch;
}

.footer h4 {
  margin: 4px 0 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer ul a {
  color: var(--ink);
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Document pages (Privacy, Terms, Support) ---------- */

.doc-hero {
  padding: 64px 0 28px;
}

.doc-hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  margin: 14px 0 12px;
  letter-spacing: -0.035em;
}

.doc-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 60ch;
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
}

.toc {
  position: sticky;
  top: 92px;
  font-size: 14px;
}

.toc strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  line-height: 1.4;
}

.toc a:hover,
.toc a.is-active {
  color: var(--ink);
  border-left-color: var(--accent);
  text-decoration: none;
}

.doc {
  padding: 44px clamp(24px, 4vw, 56px);
}

.doc section {
  scroll-margin-top: 92px;
}

.doc section + section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.doc h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.doc h3 {
  font-size: 17px;
  margin: 22px 0 8px;
}

.doc p,
.doc li {
  color: var(--ink);
  font-size: 16.5px;
}

.doc p + p {
  margin-top: 12px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
  margin: 12px 0 0;
}

.doc li + li {
  margin-top: 8px;
}

.doc li::marker {
  color: var(--accent);
}

.summary {
  padding: 26px 28px;
  margin-bottom: 18px;
  background:
    radial-gradient(420px 180px at 100% 0%, var(--ok-soft), transparent 70%),
    var(--surface);
}

.summary h2 {
  font-size: 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary h2 svg {
  width: 20px;
  height: 20px;
  color: var(--ok);
}

.summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.summary li {
  display: flex;
  gap: 10px;
  font-size: 15.5px;
}

.summary li svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--ok);
}

.callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--sunk);
  border: 1px solid var(--line);
  font-size: 15.5px;
}

.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 15px;
}

table.data th,
table.data td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data th {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Support */

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 56px;
}

.support-card {
  padding: 26px;
}

.support-card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.support-card .icon svg {
  width: 22px;
  height: 22px;
}

.support-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.support-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.support-card.contact {
  background:
    radial-gradient(380px 200px at 100% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
  border-color: var(--accent-line);
}

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

.faq details {
  padding: 0;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq .answer {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 16px;
}

.faq .answer p + p,
.faq .answer ol,
.faq .answer ul {
  margin-top: 10px;
}

.faq .answer ol,
.faq .answer ul {
  padding-left: 20px;
}

.faq .answer strong {
  color: var(--ink);
  font-weight: 600;
}

/* 404 */

.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}

.notfound h1 {
  font-size: clamp(44px, 7vw, 80px);
  margin: 22px 0 10px;
}

.notfound p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 30px;
}

.notfound .brand-big {
  width: 112px;
  height: 112px;
  margin-inline: auto;
  animation: tumble 5s ease-in-out infinite;
}

@keyframes tumble {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(-8deg) translateY(-10px); }
  60% { transform: rotate(6deg) translateY(4px); }
}

/* ---------- Reveal on scroll ---------- */

/* Only hidden when JavaScript is running, so content is never lost without it. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

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

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero .lede {
    max-width: 52ch;
  }

  .features,
  .steps,
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(1160px, 100% - 32px);
  }

  .hero {
    padding-top: 40px;
  }

  .section {
    padding: 72px 0;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .features,
  .steps,
  .plans,
  .support-grid,
  .footer-grid,
  .summary ul {
    grid-template-columns: 1fr;
  }

  .privacy-band {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .well {
    padding: 10px;
    border-radius: 24px;
  }

  .net-picker {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .net-picker-head {
    padding-top: 12px;
  }

  .fold-stage {
    aspect-ratio: 1 / 1;
  }

  .stage-progress {
    right: 100px;
  }
}

@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;
  }

  /* The fold is posed directly by script; it must never transition. */
  .fold-stage,
  .fold-scene,
  .fold-face {
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
