/* Layout: one centred 1180px column; bands span the width, alternating paper and mist,
   with a near-black band for privacy and the closing call to action. */
:root {
  --red: #ea0714;
  --red-deep: #c4000e;
  --red-wash: #fdecee;
  --ink: #111113;
  --paper: #ffffff;
  --mist: #f7f5f5;
  --line: #ebe5e6;
  --muted: #5d5759;
  --fg: #16141a;
  --card: #ffffff;
  --code-bg: #f4f1f1;
  --ok: #138a4b;
  --ok-wash: #e6f6ed;
  --warn: #b26a00;
  --warn-wash: #fff4dc;
  --on-dark: #f5f2f2;
  --on-dark-muted: #b4adaf;
  --dark-band: #111113;
  --dark-card: #1c1a1d;
  --dark-line: #2c282b;
  --shadow: 0 1px 2px rgba(17, 17, 19, .06), 0 12px 32px -12px rgba(17, 17, 19, .18);

  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #ff3442; --red-deep: #ff5c66; --red-wash: #3a1316;
    --paper: #0f0e10; --mist: #161417; --line: #2a2629; --muted: #aaa3a5; --fg: #f3f0f0;
    --card: #1a181b; --code-bg: #211e22; --ok: #4cd08a; --ok-wash: #11301f; --warn: #f0b04a; --warn-wash: #33260d;
    --dark-band: #070607; --dark-card: #161417; --dark-line: #262225;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red: #ff3442; --red-deep: #ff5c66; --red-wash: #3a1316;
  --paper: #0f0e10; --mist: #161417; --line: #2a2629; --muted: #aaa3a5; --fg: #f3f0f0;
  --card: #1a181b; --code-bg: #211e22; --ok: #4cd08a; --ok-wash: #11301f; --warn: #f0b04a; --warn-wash: #33260d;
  --dark-band: #070607; --dark-card: #161417; --dark-line: #262225;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--fg); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; font-weight: 800; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
.accent { color: var(--red); }
code, kbd, pre { font-family: var(--font-mono); font-size: .86em; }
code { background: var(--code-bg); padding: .12em .4em; border-radius: 5px; overflow-wrap: anywhere; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }
.band { padding-block: clamp(64px, 9vw, 112px); }
.band--mist { background: var(--mist); }
.band--dark { background: var(--dark-band); color: var(--on-dark); }
.band--dark h2, .band--dark h3 { color: var(--on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.band--dark .section-head p { color: var(--on-dark-muted); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(234, 7, 20, .65); }
.btn--primary:hover { background: var(--red-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--fg); color: var(--fg); }
.btn--light { background: #fff; color: #111113; }
.btn--light:hover { background: #f1eded; color: #111113; }
.btn--outline-light { color: var(--on-dark); border-color: rgba(255, 255, 255, .25); background: transparent; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font: 800 1.12rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand:hover { color: var(--fg); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--mist); }
.header-cta { display: flex; gap: 10px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav, .header-cta { display: none; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); margin: 0;
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  }
  .site-header.open .nav a { padding: 12px; font-size: 1rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 88px) 0; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: min(780px, 90vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--red) 16%, transparent), transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: center; text-align: center; }
.pill-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: .9rem; font-weight: 500;
  box-shadow: 0 1px 2px rgba(17, 17, 19, .04);
}
.pill-link:hover { color: var(--fg); border-color: var(--muted); }
.pill-link b { background: var(--red); color: #fff; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--muted); max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; color: var(--muted); font-size: .92rem; list-style: none; padding: 0; margin: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

.hero-shot { position: relative; width: 100%; max-width: 1080px; margin-top: 24px; }
.browser {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0;
  background: var(--card); box-shadow: 0 40px 80px -40px rgba(17, 17, 19, .45);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--mist); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 12px; flex: 1; max-width: 360px; font: 500 .78rem/1 var(--font-mono); color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: .95rem; }
.float-chip small { color: var(--muted); font-size: .8rem; }
.float-chip .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.float-chip .ico--red { background: var(--red); }
.float-chip .ico svg { width: 18px; height: 18px; }
.float-chip--a { left: -28px; top: 18%; }
.float-chip--b { right: -28px; top: 46%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1160px) { .float-chip--a { left: 12px; } .float-chip--b { right: 12px; } }
@media (max-width: 720px) { .float-chip { display: none; } }

.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); position: relative; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat:first-child { padding-left: 0; }
.stat { padding: 28px 24px; display: grid; gap: 4px; align-content: start; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font: 800 clamp(2rem, 3.4vw, 2.6rem)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat b em { font-style: normal; color: var(--red); }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  display: grid; gap: 12px; align-content: start; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); transform: translateY(-2px); }
.card p { color: var(--muted); }
.card .icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--red-wash); color: var(--red); margin-bottom: 6px; }
.card .icon svg { width: 24px; height: 24px; }
.card .more { font-weight: 600; font-size: .92rem; text-decoration: none; margin-top: 4px; }
.card .more::after { content: " →"; }

.extras { margin-top: 48px; padding: 32px; border-radius: var(--radius-lg); border: 1px dashed var(--line); display: grid; gap: 20px; }
.extras h3 { font-size: 1.05rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
@media (max-width: 900px) { .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .checklist { grid-template-columns: minmax(0, 1fr); } }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; min-width: 0; }
.checklist li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}

/* Showcases */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.showcase + .showcase { margin-top: clamp(72px, 9vw, 120px); }
.showcase--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.showcase--flip .showcase-text { order: 2; }
@media (max-width: 900px) { .showcase, .showcase--flip { grid-template-columns: minmax(0, 1fr); } .showcase--flip .showcase-text { order: 0; } }
.showcase-text { display: grid; gap: 18px; }
.showcase-text > p { color: var(--muted); font-size: 1.06rem; }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bullets li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.bullets li::before { content: ""; width: 8px; height: 8px; margin: 9px 0 0 7px; border-radius: 50%; background: var(--red); }
.bullets b { font-weight: 600; }
.visual { position: relative; border-radius: var(--radius-lg); background: var(--mist); border: 1px solid var(--line); padding: clamp(16px, 3vw, 32px); overflow: hidden; }
.band--mist .visual { background: var(--paper); }
.visual .tag { position: absolute; right: 14px; bottom: 12px; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.visual img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Illustrated UI mocks (no product data, sample content only) */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mock-head h4 { font-size: .98rem; }
.mock-head small { color: var(--muted); }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 0 18px 14px; }
.progress i { display: block; height: 100%; width: 100%; background: var(--red); border-radius: inherit; }
.finding { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); font-size: .9rem; }
.finding p { color: var(--fg); font-weight: 600; }
.finding code { font-size: .78rem; background: none; padding: 0; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sev { font: 700 .66rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; }
.sev--crit { background: var(--red); color: #fff; }
.sev--high { background: var(--red-wash); color: var(--red-deep); }
.sev--med { background: var(--warn-wash); color: var(--warn); }
.mini-btn { font: 600 .78rem/1 var(--font-body); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--fg); white-space: nowrap; }
.mini-btn--red { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 480px) { .finding { grid-template-columns: minmax(0, 1fr) auto; } .finding .sev { grid-column: 1 / -1; justify-self: start; } }

.twofa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .twofa { grid-template-columns: minmax(0, 1fr); } }
.twofa .mock { padding: 22px; display: grid; gap: 14px; align-content: start; }
.twofa .mock h4 { display: flex; align-items: center; gap: 10px; }
.twofa .mock h4 img { width: 26px; height: 26px; }
.twofa .mock p { color: var(--muted); font-size: .88rem; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.otp span { aspect-ratio: 3/4; max-width: 100%; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 9px; font: 700 1.25rem/1 var(--font-mono); background: var(--paper); }
.otp span.on { border-color: var(--red); }
.fake-btn { background: var(--red); color: #fff; border-radius: 9px; text-align: center; padding: 11px; font-weight: 600; font-size: .9rem; }
.rows { display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; padding: 10px 12px; border-radius: 10px; background: var(--mist); }
.row b { font-weight: 600; }
.chip { font: 600 .72rem/1 var(--font-body); padding: 6px 9px; border-radius: 99px; white-space: nowrap; }
.chip--ok { background: var(--ok-wash); color: var(--ok); }
.chip--warn { background: var(--warn-wash); color: var(--warn); }
.chip--red { background: var(--red-wash); color: var(--red-deep); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 10px; align-content: start; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font: 800 1.1rem/1 var(--font-display); margin-bottom: 8px;
}
.band--mist .steps li::before { background: var(--red); }
.steps p { color: var(--muted); }
.steps a { font-weight: 600; font-size: .92rem; }

/* Privacy (dark band) */
.dark-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 900px) { .dark-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .dark-grid { grid-template-columns: minmax(0, 1fr); } }
.dark-grid > div { background: var(--dark-card); padding: 28px; display: grid; gap: 10px; align-content: start; }
.dark-grid h3 { font-size: 1.08rem; }
.dark-grid p { color: var(--on-dark-muted); font-size: .96rem; }
.dark-grid .icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(234, 7, 20, .16); color: #ff4d58; }
.dark-grid .icon svg { width: 21px; height: 21px; }

/* Guide teaser */
.guide-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 760px) { .guide-teaser { grid-template-columns: minmax(0, 1fr); } }
.guide-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--fg); text-decoration: none;
  transition: border-color .2s ease;
}
.guide-link:hover { border-color: var(--red); color: var(--fg); }
.guide-link .icon { width: 42px; height: 42px; border-radius: 11px; background: var(--red-wash); color: var(--red); display: grid; place-items: center; }
.guide-link .icon svg { width: 21px; height: 21px; }
.guide-link b { display: block; font-size: 1rem; }
.guide-link small { color: var(--muted); font-size: .9rem; }
.guide-link .arr { color: var(--muted); font-size: 1.2rem; }

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font: 600 1.04rem/1.4 var(--font-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' stroke='%23ea0714' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 22px; color: var(--muted); display: grid; gap: 10px; }

/* About + contact */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: minmax(0, 1fr); } }
.about-text { display: grid; gap: 18px; }
.about-text > p { color: var(--muted); font-size: 1.06rem; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .values { grid-template-columns: minmax(0, 1fr); } }
.values .card { padding: 24px; }
.contact-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); }
.contact-box b { font-family: var(--font-mono); font-size: .98rem; user-select: all; overflow-wrap: anywhere; }
.copy-btn { font: 600 .84rem/1 var(--font-body); padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; }
.copy-btn:hover { border-color: var(--fg); }

/* Closing CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; background: var(--ink); color: var(--on-dark); padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(234, 7, 20, .55), transparent 70%); pointer-events: none;
}
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: #c9c2c4; margin-top: 12px; max-width: 52ch; }
.cta-band .cta-row { position: relative; z-index: 1; justify-content: flex-start; }
@media (max-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; color: var(--muted); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); margin-bottom: 14px; font-family: var(--font-body); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--red); }
.footer-grid .tagline { margin-top: 14px; max-width: 38ch; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }

/* ===== User guide page ===== */
.guide-hero { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); background: var(--mist); }
.guide-hero .wrap { display: grid; gap: 16px; }
.guide-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.guide-hero p { color: var(--muted); font-size: 1.1rem; max-width: 64ch; }
.guide-search { position: relative; max-width: 520px; margin-top: 8px; }
.guide-search input {
  width: 100%; min-height: 50px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg);
  padding: 0 20px 0 48px; font: 400 1rem/1 var(--font-body);
}
.guide-search input:focus { outline: 3px solid color-mix(in srgb, var(--red) 40%, transparent); border-color: var(--red); }
.guide-search svg { position: absolute; left: 18px; top: 16px; width: 18px; height: 18px; color: var(--muted); }
.guide-search small { display: block; margin: 8px 0 0 20px; color: var(--muted); min-height: 1.4em; }

.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: 48px 96px; align-items: start; }
@media (max-width: 960px) { .guide-layout { grid-template-columns: minmax(0, 1fr); } }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); max-height: calc(100vh - 110px); overflow: auto; font-size: .92rem; }
.toc h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px 12px; font-family: var(--font-body); }
.toc h4:first-child { margin-top: 0; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { color: var(--fg); background: var(--mist); }
.toc a.active { color: var(--red-deep); background: var(--red-wash); font-weight: 600; }
@media (max-width: 960px) {
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; }
  .toc details summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; }
  .toc details summary::-webkit-details-marker { display: none; }
  .toc details summary::after { content: "▾"; float: right; color: var(--muted); }
  .toc details > div { padding: 0 8px 12px; }
}
@media (min-width: 961px) { .toc details summary { display: none; } }

.doc { min-width: 0; display: grid; gap: 64px; }
.doc section { display: grid; gap: 18px; scroll-margin-top: 90px; }
.doc section[hidden] { display: none; }
.doc h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); display: flex; align-items: center; gap: 14px; }
.doc h2 .num { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--red-wash); color: var(--red); display: grid; place-items: center; }
.doc h2 .num svg { width: 19px; height: 19px; }
.doc h3 { margin-top: 12px; }
.doc p, .doc li { color: var(--muted); max-width: 72ch; }
.doc p strong, .doc li strong { color: var(--fg); font-weight: 600; }
.doc ul, .doc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.doc .where { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.doc .where span { background: var(--mist); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; color: var(--fg); font-weight: 500; }

.callout { border-radius: var(--radius); padding: 18px 20px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; background: var(--mist); border: 1px solid var(--line); }
.callout svg { width: 22px; height: 22px; margin-top: 1px; }
.callout p { color: var(--fg); }
.callout--tip svg { color: var(--ok); }
.callout--warn { background: var(--warn-wash); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.callout--warn svg { color: var(--warn); }
.callout--danger { background: var(--red-wash); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.callout--danger svg { color: var(--red); }

.task-list { list-style: none !important; padding: 0 !important; counter-reset: t; gap: 0 !important; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.task-list li { counter-increment: t; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 18px 20px; max-width: none; }
.task-list li + li { border-top: 1px solid var(--line); }
.task-list li::before { content: counter(t); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 .9rem/1 var(--font-display); }
.task-list li b { display: block; color: var(--fg); margin-bottom: 2px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--mist); font-weight: 600; color: var(--fg); white-space: nowrap; }
td { color: var(--muted); }
td:first-child { color: var(--fg); font-weight: 500; }
td code { white-space: nowrap; }

.score-scale { display: grid; grid-template-columns: 55fr 25fr 20fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .88rem; }
.score-scale div { padding: 14px 16px; display: grid; gap: 2px; }
.score-scale b { color: var(--fg); }
.score-scale span { color: var(--muted); font-variant-numeric: tabular-nums; }
.score-scale .s-bad { background: var(--red-wash); }
.score-scale .s-warn { background: var(--warn-wash); }
.score-scale .s-ok { background: var(--ok-wash); }
@media (max-width: 520px) { .score-scale { grid-template-columns: minmax(0, 1fr); } }

.code-block { position: relative; }
.code-block pre { margin: 0; background: var(--ink); color: #f1ecec; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; line-height: 1.6; font-size: .85rem; }
.code-block .copy-btn { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .08); color: #f1ecec; border-color: rgba(255, 255, 255, .18); }
.code-block .copy-btn:hover { border-color: #fff; }
.no-results { padding: 32px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* Keep wide tables and code inside their own scroll boxes on small screens. */
.doc, .doc section { grid-template-columns: minmax(0, 1fr); }
.doc section > *, .task-list li > span { min-width: 0; }
.hero .wrap > * { max-width: 100%; }
.hero .stats-band .wrap { display: block; text-align: left; }
