/* SiteScribe website — industrial editorial. Brand tokens mirror the app. */
:root {
  --navy: #152536;
  --navy-2: #1d3247;
  --navy-3: #0e1a27;
  --red: #d9364f;
  --red-bright: #ff5a6e;
  --red-dark: #b42339;
  --paper: #f4f1ec;
  --paper-2: #ebe6de;
  --white: #ffffff;
  --ink: #152536;
  --muted: #5d6b7a;
  --muted-on-dark: rgba(255, 255, 255, 0.72);
  --line: #ddd6cb;
  --line-dark: rgba(255, 255, 255, 0.12);
  --hazard: #f2c94c;
  --green: #1f8a5b;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  --text-h2: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --text-hero: clamp(2.6rem, 1.5rem + 5vw, 5.4rem);

  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --max: 1200px;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --shadow-card: 0 1px 0 rgba(21, 37, 54, 0.04), 0 12px 32px -18px rgba(21, 37, 54, 0.35);
  --shadow-phone: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius-s); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: var(--text-h2); font-weight: 800; }
h3 { font-size: var(--text-h3); font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: var(--red-bright); }
.lede { font-size: var(--text-lg); color: var(--muted); max-width: 38rem; }
.on-dark .lede { color: var(--muted-on-dark); }
.accent { color: var(--red); }
.on-dark .accent { color: var(--red-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  transition: transform var(--duration-fast) var(--ease-out-expo), background-color var(--duration-fast), box-shadow var(--duration-normal) var(--ease-out-expo);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -12px rgba(217, 54, 79, 0.8); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(217, 54, 79, 0.9); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-ghost { border-color: rgba(255, 255, 255, 0.3); color: var(--white); }
.on-dark .btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 37, 54, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; background: var(--white); }
.wordmark { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--white); }
.wordmark b { color: var(--red-bright); font-weight: 900; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--muted-on-dark); transition: color var(--duration-fast); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav .btn { min-height: 42px; padding: 0 1.1rem; font-size: 0.92rem; color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line-dark);
    padding: 0.5rem var(--gutter) 1.25rem;
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path var(--duration-normal) var(--ease-out-expo), opacity var(--duration-fast);
  }
  .nav.open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .nav .btn { margin-top: 1rem; min-height: 50px; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  background: var(--navy);
  padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(4rem, 3rem + 5vw, 8rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("assets/site-hero.jpg") center 20% / cover no-repeat;
  filter: saturate(0.85);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 26, 39, 0.97) 0%, rgba(21, 37, 54, 0.9) 42%, rgba(21, 37, 54, 0.55) 100%),
    linear-gradient(0deg, rgba(14, 26, 39, 0.85) 0%, transparent 40%);
}
.hero::after {
  /* Hazard tape edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 14px, var(--navy-3) 14px 28px);
  opacity: 0.9;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero h1 { font-size: var(--text-hero); font-weight: 900; letter-spacing: -0.035em; margin: 1.1rem 0 1.4rem; }
.hero h1 .line { display: block; }
.hero .lede { max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.8rem; color: var(--muted-on-dark); font-size: var(--text-sm); }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta svg { width: 16px; height: 16px; color: var(--red-bright); }

.phone {
  position: relative; width: min(320px, 78vw); margin-inline: auto;
  border-radius: 44px; padding: 12px; background: #0b141d;
  box-shadow: var(--shadow-phone);
}
.phone img { border-radius: 33px; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; }
.hero .phone { transform: rotate(3deg); animation: phone-rise 900ms var(--ease-out-expo) both; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 0.7rem;
  background: var(--white); color: var(--ink); border-radius: 16px; padding: 0.75rem 1rem;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55); font-size: 0.85rem; font-weight: 600; line-height: 1.25;
  animation: card-in 900ms var(--ease-out-expo) both;
}
.float-card small { display: block; color: var(--muted); font-weight: 500; }
.float-card .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card .dot svg { width: 18px; height: 18px; }
.float-card.one { left: -22%; top: 11%; animation-delay: 250ms; }
.float-card.two { right: -10%; bottom: 14%; animation-delay: 450ms; }
.dot.red { background: #fde8eb; color: var(--red); }
.dot.green { background: #e3f4ec; color: var(--green); }

@keyframes phone-rise { from { opacity: 0; transform: translateY(40px) rotate(6deg); } to { opacity: 1; transform: translateY(0) rotate(3deg); } }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; }
  .float-card.one { left: 0; }
  .float-card.two { right: 0; }
}

/* ---------- Proof strip ---------- */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 1.6rem 1.2rem; display: flex; gap: 0.8rem; align-items: flex-start; }
.strip-item + .strip-item { border-left: 1px solid var(--line); }
.strip-item svg { width: 26px; height: 26px; color: var(--red); flex: none; margin-top: 2px; }
.strip-item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; }
.strip-item span { color: var(--muted); font-size: var(--text-sm); line-height: 1.45; }
@media (max-width: 900px) {
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .strip .wrap { grid-template-columns: 1fr; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head h2 { margin-top: 0.9rem; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.dark { background: var(--navy); color: var(--white); }
.dark .lede { color: var(--muted-on-dark); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.step { padding: 2rem 2rem 0 0; position: relative; }
.step + .step { padding-left: 2rem; border-left: 1px solid var(--line); }
.step-num { font-family: var(--font-display); font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); font-weight: 900; line-height: 0.9; color: transparent; -webkit-text-stroke: 2px var(--red); letter-spacing: -0.04em; }
.step h3 { margin: 1.2rem 0 0.6rem; }
.step p { color: var(--muted); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 1.8rem 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
}

/* Feature bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-l);
  background: var(--navy-2); border: 1px solid var(--line-dark);
  padding: clamp(1.4rem, 1rem + 1.2vw, 2.1rem);
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform var(--duration-normal) var(--ease-out-expo), border-color var(--duration-normal);
}
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 90, 110, 0.45); }
.tile p { color: var(--muted-on-dark); font-size: 0.97rem; }
.tile .icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 90, 110, 0.14); color: var(--red-bright); }
.tile .icon svg { width: 24px; height: 24px; }
.tile.wide { grid-column: span 4; }
.tile.half { grid-column: span 3; }
.tile.third { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile.feature { background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%); border-color: transparent; }
.tile.feature p { color: rgba(255, 255, 255, 0.86); }
.tile.feature .icon { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.tile .shot { margin-top: auto; margin-bottom: calc(-1 * clamp(1.4rem, 1rem + 1.2vw, 2.1rem)); align-self: center; width: min(250px, 80%); border-radius: 26px 26px 0 0; border: 8px solid #0b141d; border-bottom: 0; box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.5); }
.tile .shot img { border-radius: 18px 18px 0 0; aspect-ratio: 9 / 11; object-fit: cover; object-position: top; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.4rem; }
.chip { font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--white); border: 1px solid var(--line-dark); }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.wide, .tile.half, .tile.third { grid-column: span 2; }
  .tile.third.pair { grid-column: span 1; }
  .tile.tall { grid-row: auto; }
}
@media (max-width: 560px) { .tile.third.pair { grid-column: span 2; } }

/* Screens rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem var(--gutter) 2rem; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; }
.rail figure { margin: 0; scroll-snap-align: start; }
.rail .phone { width: 100%; padding: 9px; border-radius: 34px; }
.rail .phone img { border-radius: 26px; }
.rail figcaption { margin-top: 1rem; }
.rail figcaption strong { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.rail figcaption span { color: var(--muted); font-size: var(--text-sm); }

/* Regions */
.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.region { background: var(--white); border-radius: var(--radius-m); padding: 1.6rem; box-shadow: var(--shadow-card); border-top: 4px solid var(--red); }
.region .code { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; letter-spacing: -0.04em; line-height: 1; }
.region h3 { font-size: 1.1rem; margin: 0.6rem 0 0.5rem; }
.region ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.region li { padding: 0.25rem 0; border-top: 1px dashed var(--line); }
.region li:first-child { border-top: 0; }
@media (max-width: 960px) { .regions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .regions { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.4rem; align-items: stretch; }
.plan { border-radius: var(--radius-l); padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem); background: var(--white); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.plan.pro { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.plan.pro::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 201, 76, 0.35), transparent 70%); }
.plan-name { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; letter-spacing: -0.03em; display: flex; align-items: center; gap: 0.6rem; }
.plan .price { margin: 0.8rem 0 0.3rem; font-family: var(--font-display); font-size: 3rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan.pro .price small, .plan.pro .note { color: var(--muted-on-dark); }
.plan .note { color: var(--muted); font-size: var(--text-sm); }
.plan ul { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 0.85rem; }
.plan li { display: grid; grid-template-columns: 24px 1fr; gap: 0.7rem; align-items: start; }
.plan li svg { width: 22px; height: 22px; color: var(--green); margin-top: 1px; }
.plan.pro li svg { color: var(--hazard); }
.plan li strong { display: block; }
.plan li span { color: var(--muted); font-size: 0.92rem; }
.plan.pro li span { color: var(--muted-on-dark); }
.plan .btn { margin-top: auto; }
.badge { font-family: var(--font-body); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px; background: var(--hazard); color: var(--navy); }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* Privacy promise */
.promise { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.promise-list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.promise-list > div { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line-dark); align-items: start; }
.promise-list > div > div { display: block; }
.promise-list svg { width: 28px; height: 28px; color: var(--red-bright); margin-top: 2px; }
.promise-list strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.promise-list span { color: var(--muted-on-dark); font-size: 0.95rem; }
/* Official Google Play badge (brand guidelines: artwork unmodified, min 40px high) */
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 60px; width: auto; }
.play-badge:hover { opacity: 0.9; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.4rem 3rem 1.4rem 0; position: relative;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(45deg);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 0 1.5rem; color: var(--muted); max-width: 70ch; }
.faq details p + p { margin-top: -0.8rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--red); color: var(--white); padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0; }
.cta-band::before { content: ""; position: absolute; inset: auto -5% -60% auto; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, 0.08); }
.cta-band .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { max-width: 16ch; }
.cta-band .btn-light { background: var(--white); color: var(--red-dark); }
.cta-band .btn-light:hover { transform: translateY(-2px); background: var(--paper); }

/* Footer */
.site-footer { background: var(--navy-3); color: var(--muted-on-dark); padding: 4rem 0 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: var(--white); font-family: var(--font-display); font-size: 1rem; margin: 0 0 1rem; letter-spacing: 0.02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { text-decoration: none; transition: color var(--duration-fast); }
.site-footer a:hover { color: var(--white); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: var(--text-sm); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Document pages (privacy, terms, support, deletion) ---------- */
.doc-hero { background: var(--navy); color: var(--white); padding: clamp(3rem, 2rem + 3vw, 5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); position: relative; }
.doc-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--hazard) 0 12px, var(--navy-3) 12px 24px); opacity: 0.85; }
.doc-hero h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); font-weight: 900; margin-top: 0.9rem; }
.doc-hero p { color: var(--muted-on-dark); margin-top: 0.9rem; max-width: 46rem; overflow-wrap: anywhere; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); padding: clamp(3rem, 2rem + 3vw, 5rem) 0 var(--space-section); }
.toc { position: sticky; top: 92px; align-self: start; font-size: 0.92rem; }
.toc strong { display: block; font-family: var(--font-display); margin-bottom: 0.8rem; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 0.35rem 0 0.35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); border-left-color: var(--red); }
.prose { max-width: 72ch; overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin: 2.8rem 0 0.9rem; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.prose p, .prose li { color: #33424f; }
.prose p + p { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0.8rem 0 1rem; display: grid; gap: 0.5rem; }
.prose a { color: var(--red-dark); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.callout { background: var(--white); border-left: 4px solid var(--red); border-radius: 0 var(--radius-m) var(--radius-m) 0; padding: 1.2rem 1.4rem; margin: 1.4rem 0; box-shadow: var(--shadow-card); }
.callout p { color: var(--ink); }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding: 0.2rem 0 0.2rem 3rem; min-height: 2.2rem; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; }
table.data { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.93rem; background: var(--white); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-card); }
table.data th, table.data td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--paper-2); font-family: var(--font-display); font-weight: 800; }
table.data tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.contact-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.2rem; align-items: center; background: var(--navy); color: var(--white); border-radius: var(--radius-l); padding: 1.6rem 1.8rem; margin: 1.6rem 0; }
.contact-card svg { width: 40px; height: 40px; color: var(--red-bright); }
.contact-card a { color: var(--white); font-weight: 700; font-size: 1.15rem; word-break: break-all; }
.contact-card p { color: var(--muted-on-dark); font-size: 0.92rem; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.lost .big { font-family: var(--font-display); font-size: clamp(6rem, 4rem + 10vw, 12rem); font-weight: 900; line-height: 0.9; color: transparent; -webkit-text-stroke: 3px var(--red); letter-spacing: -0.05em; }

/* Reveal on scroll (progressive: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero .phone { transform: rotate(3deg); }
}
