/* ===========================
   Drowning in Noise — landing
   Bold / editorial. Black canvas, hot accent, oversized type.
   =========================== */

:root {
  --bg:        #0a0a0a;
  --bg-alt:    #131313;
  --fg:        #f5f1eb;
  --fg-muted:  #8c8780;
  --accent:    #ff3d2e;   /* hot red — primary attention */
  --accent-2:  #ffd600;   /* signal yellow — secondary */
  --line:      #2a2825;
  --card:      #15140f;

  --font-display: 'Archivo Black', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* a11y: visible focus indicator for keyboard navigation across all interactive
   elements. Mouse clicks don't trigger :focus-visible so it doesn't interfere
   with hover/click visuals. */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 1px;
}
/* Inputs already use a bottom-border focus indicator; keep that as the primary
   cue and bump the bottom border to the bright accent on focus-visible too. */
.field input:focus-visible,
.stop-breach__form input:focus-visible {
  outline: none;
  border-bottom-color: var(--accent-2);
}

/* a11y: skip-to-content link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.6rem 1rem;
  font-family: var(--font-display);
  text-decoration: none;
  border: none;
  z-index: 999;
  transition: top 120ms ease;
}
.skip-link:focus { top: 1rem; }

a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 120ms ease;
}
a:hover { color: var(--accent); }

strong { color: var(--fg); font-weight: 700; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: var(--accent-2);
  border: none;
}

/* =============== HERO =============== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 6vw 5rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.hero__noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 7rem);
  color: var(--fg);
  opacity: 0.05;
  user-select: none;
  pointer-events: none;
  align-content: start;
  letter-spacing: -0.02em;
  transform: rotate(-4deg) scale(1.2);
  transform-origin: center;
}
.hero__noise span { white-space: nowrap; }
.hero__noise span:nth-child(3n) { color: var(--accent); }
.hero__noise span:nth-child(5n) { color: var(--accent-2); }

.hero__inner {
  max-width: 980px;
  position: relative;
  z-index: 1;
}

.kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  margin: 0 0 2rem;
  padding-left: 3rem;
  position: relative;
}
.kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.2rem;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 2.5rem;
  font-weight: 900;
}
h1 .accent {
  color: var(--accent);
  font-style: italic;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  max-width: 60ch;
  color: var(--fg);
  margin: 0 0 1.5rem;
}
.lede strong {
  color: var(--accent-2);
  font-weight: 700;
  border-bottom: 1px dashed var(--line);
}

.hero__cta {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--fg);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 4px;
}
.hero__cta:hover { color: var(--accent); }
.hero__cta-sep { color: var(--fg-muted); margin: 0 0.6rem; font-family: var(--font-mono); }
.hero__cta--alt { color: var(--fg); border-bottom-color: var(--fg-muted); }
.hero__cta--alt:hover { color: var(--accent-2); }

/* =============== SECTION SHELL =============== */
.section {
  padding: 6rem 6vw;
  border-bottom: 1px solid var(--line);
  max-width: 1400px;
  margin: 0 auto;
}
.section--alt { background: var(--bg-alt); max-width: none; padding-left: 6vw; padding-right: 6vw; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}
.section__lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 0 0 3.5rem;
}
.section__head { max-width: 1100px; }

/* =============== STATS GRID =============== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
}

.stat {
  padding: 2.2rem 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  background: var(--bg);
  transition: background 200ms ease, transform 200ms ease;
}
.stat:hover { background: var(--bg-alt); }
.stat:nth-child(3n) { border-right: none; }
@media (max-width: 900px) {
  .stat:nth-child(3n) { border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
  .stat { border-right: none; }
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.stat__unit {
  font-size: 0.55em;
  color: var(--fg-muted);
  margin-left: 0.05em;
}
.stat[data-accent="red"] .stat__number   { color: var(--accent); }
.stat[data-accent="yellow"] .stat__number { color: var(--accent-2); }
.stat[data-accent="white"] .stat__number  { color: var(--fg); }

.stat__label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1rem;
  max-width: 32ch;
  line-height: 1.35;
}
.stat__cite {
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  line-height: 1.5;
}
.stat__cite a {
  color: var(--fg-muted);
  border-bottom-color: var(--line);
}
.stat__cite a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

/* =============== CHARTS =============== */
.chart-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 2.5rem;
  border-radius: 2px;
}
/* canvas inside a chart-card: explicit responsive height so Chart.js
   with maintainAspectRatio:false has a parent box to fill. */
.chart-card canvas {
  width: 100% !important;
  height: 360px !important;
}
@media (max-width: 768px) {
  .chart-card canvas { height: 300px !important; }
}
@media (max-width: 480px) {
  .chart-card canvas { height: 280px !important; }
}
/* funnel chart on mobile flips to horizontal — give it more vertical room */
@media (max-width: 768px) {
  #chart-funnel { height: 380px !important; }
}
.chart-source {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin: 1.5rem 0 0;
  line-height: 1.6;
}
.chart-source a { color: var(--fg-muted); border-bottom-color: var(--line); }
.chart-source a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

/* =============== CALCULATORS =============== */
.section--calc { padding-bottom: 8rem; }

.calc {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}
.calc:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; gap: 2rem; }
}

.calc__head { position: sticky; top: 2rem; align-self: start; }
.calc__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.5rem;
}
.calc__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.calc__sub {
  color: var(--fg-muted);
  font-size: 1rem;
  margin: 0;
  max-width: 28ch;
}

.calc__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 700px) {
  .calc__body { grid-template-columns: 1fr; }
}

.calc__inputs {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field input[type="number"],
.field select {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--fg-muted);
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0.6rem 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  outline: none;
  transition: border-color 120ms ease;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  background-image: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%),
                    linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) center, calc(100% - 9px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}
.field input[type="number"]:focus,
.field select:focus { border-bottom-color: var(--accent); }

.field--check {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
}
.field--check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }

.btn {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.4rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 120ms ease, color 120ms ease, transform 80ms ease;
  align-self: flex-start;
  margin-top: 0.5rem;
}
.btn:hover { background: var(--accent); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn--big { font-size: 1.2rem; padding: 1.1rem 1.8rem; }

.calc__output {
  background: var(--card);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.75rem;
  min-height: 8rem;
}
.calc__big {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-2);
  margin: 0;
}
.calc__big-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin: 0.5rem 0 1.25rem;
}
.calc__breakdown {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}
.calc__breakdown li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--fg);
  border-bottom: 1px dotted var(--line);
}
.calc__breakdown li:last-child { border-bottom: none; }
.calc__breakdown li span:last-child {
  color: var(--accent-2);
  font-weight: 700;
}
.calc__note {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  margin: 1rem 0 0;
  line-height: 1.5;
}

/* =============== BUILT BY CARGO CTA =============== */
.section--cta {
  text-align: center;
  padding: 7rem 6vw;
  background: var(--accent);
  color: var(--bg);
  border-bottom: none;
  max-width: none;
}
.cta__inner {
  max-width: 980px;
  margin: 0 auto;
}

.cta__kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.85rem;
  color: var(--accent-2);
  margin: 0 0 1.5rem;
  font-weight: 700;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 2.5rem;
  color: var(--bg);
  text-transform: uppercase;
}

.cta__lede {
  max-width: 62ch;
  margin: 0 auto 1.5rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--bg);
  opacity: 0.92;
  line-height: 1.55;
}
.cta__lede a {
  color: var(--bg);
  font-weight: 700;
  border-bottom: 2px solid rgba(0,0,0,0.35);
  transition: border-color 120ms ease;
}
.cta__lede a:hover {
  border-bottom-color: var(--bg);
}

.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 3rem 0 2.5rem;
}

.btn--cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-2);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.05rem 1.8rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.btn--cta-primary:hover {
  background: var(--fg);
  color: var(--accent);
}

.btn--cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: calc(1.05rem - 2px) calc(1.8rem - 2px);
  border: 2px solid rgba(0,0,0,0.55);
  border-radius: 0;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn--cta-ghost:hover {
  background: var(--bg);
  color: var(--accent-2);
  border-color: var(--bg);
}

.cta__byline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--bg);
  opacity: 0.72;
  margin: 0 auto;
  max-width: 72ch;
  line-height: 1.65;
}
.cta__byline a {
  color: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,0.4);
}
.cta__byline a:hover {
  border-bottom-color: var(--bg);
}

/* =============== FOOTER =============== */
.footer {
  padding: 3rem 6vw 5rem;
  background: var(--bg);
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  line-height: 1.7;
}
.footer p { margin: 0 0 1rem; max-width: 80ch; }
.footer code { font-family: inherit; color: inherit; background: none; }
.footer__sources a { color: var(--fg-muted); border-bottom-color: var(--line); }
.footer__sources a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

/* =============== FAQ =============== */
.section--faq { max-width: 1100px; }
.faq {
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.6rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: var(--fg);
  position: relative;
  padding-right: 3rem;
  transition: color 120ms ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  transition: transform 200ms ease, color 120ms ease;
  line-height: 1;
}
.faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq__item summary:hover { color: var(--accent-2); }
.faq__item summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}
.faq__a {
  padding: 0 0 1.6rem;
  max-width: 70ch;
}
.faq__a p {
  margin: 0;
  color: var(--fg);
  font-size: 1.02rem;
  line-height: 1.6;
  opacity: 0.92;
}
.faq__a a { color: var(--accent-2); border-bottom: 1px solid var(--line); }
.faq__a a:hover { border-bottom-color: var(--accent-2); }


/* =============== FLOATING PLAN CTA =============== */
/* Appears after the hero, hides as the user reaches the Cargo CTA so it
   never overlaps that block. Toggled via .floating-cta--shown by JS. */
.floating-cta {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 100;
  background: var(--accent);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.95rem 1.4rem;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--bg);
  cursor: pointer;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms cubic-bezier(0.2, 0.6, 0.2, 1), opacity 220ms ease, background 120ms ease, color 120ms ease;
}
.floating-cta:hover { background: var(--fg); color: var(--bg); }
.floating-cta--shown {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.floating-cta__arrow { font-size: 1.1rem; }
@media (max-width: 600px) {
  .floating-cta {
    right: 1rem;
    bottom: 1rem;
    font-size: 0.9rem;
    padding: 0.85rem 1.1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-cta { transition: opacity 120ms linear; transform: none; }
}
/* Hide the body-level floating CTA on the plan page, since it's where the
   user just landed. The plan page omits the element entirely; this is belt-
   and-suspenders for any future shared injection. */
.page-plan .floating-cta { display: none !important; }

/* =============== STOP THE NOISE =============== */
.section--stop { padding-bottom: 7rem; }
.section__kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

.stop-block {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 3rem;
}
.stop-block:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .stop-block { grid-template-columns: 1fr; gap: 1.6rem; }
}
.stop-block__head { position: sticky; top: 2rem; align-self: start; }
@media (max-width: 900px) { .stop-block__head { position: static; } }
.stop-block__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 0.6rem;
}
.stop-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.stop-block__sub {
  color: var(--fg-muted);
  font-size: 1rem;
  margin: 0;
  max-width: 32ch;
}

.stop-block__body--full { display: block; }
.stop-block__body:not(.stop-block__body--full) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .stop-block__body:not(.stop-block__body--full) { grid-template-columns: 1fr; }
}

/* --- A. Action Plan --- */
.stop-plan__form { display: flex; flex-direction: column; gap: 1.2rem; }
.stop-plan__fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.stop-plan__fieldset legend { padding: 0; margin-bottom: 0.4rem; }

.stop-plan__output {
  background: var(--card);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.75rem;
  min-height: 8rem;
  font-family: var(--font-body);
}
.ap-empty {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin: 0;
}
.ap-headline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--accent-2);
  margin: 0 0 1rem;
}
.ap-list { list-style: none; margin: 0; padding: 0; }
.ap-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.8rem 0;
  border-bottom: 1px dotted var(--line);
}
.ap-list li:last-child { border-bottom: none; }
.ap-rank {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.ap-task strong { display: block; margin-bottom: 0.15rem; color: var(--fg); }
.ap-task p { margin: 0; font-size: 0.92rem; color: var(--fg-muted); line-height: 1.5; }
.ap-task a { color: var(--accent-2); border-bottom: 1px solid var(--line); }
.ap-task a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.ap-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.ap-actions button {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.ap-actions button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--fg);
}

/* --- B. Channel guides --- */
.guide {
  border-top: 1px solid var(--line);
  padding: 0;
}
.guide:last-child { border-bottom: 1px solid var(--line); }
.guide summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 3rem 1.4rem 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  transition: color 120ms ease;
}
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  transition: transform 200ms ease;
  line-height: 1;
}
.guide[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.guide__title {
  /* Rendered as <h3>; reset browser default margins so it sits cleanly inside <summary>. */
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.005em;
  color: var(--fg);
  display: inline;
}
.guide summary:hover .guide__title { color: var(--accent-2); }
.guide__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.guide__body { padding: 0 0 1.6rem; max-width: 75ch; }
.guide__body p { margin: 0 0 1rem; line-height: 1.65; }
.guide__steps {
  list-style: decimal;
  margin: 0;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.guide__steps li { line-height: 1.6; padding-left: 0.4rem; }
.guide__steps li::marker { color: var(--accent); font-family: var(--font-display); }
.guide__steps strong { color: var(--fg); }
.guide__steps a {
  color: var(--accent-2);
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}
.guide__steps a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --- C. Breach + aliases --- */
.stop-breach__h {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0;
  margin: 0 0 0.8rem;
  color: var(--accent-2);
}
.stop-breach__check p,
.stop-breach__aliases p { margin: 0 0 1.1rem; line-height: 1.6; }
.stop-breach__form {
  display: flex;
  gap: 0.8rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.stop-breach__form .field { flex: 1 1 220px; }
.stop-breach__form input[type="email"] {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--fg-muted);
  border-top: none; border-left: none; border-right: none;
  padding: 0.6rem 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  outline: none;
  transition: border-color 120ms ease;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.stop-breach__form input[type="email"]:focus { border-bottom-color: var(--accent); }
.stop-breach__note {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin: 1rem 0 0;
}
.alias-list { list-style: none; margin: 0; padding: 0; }
.alias-list li {
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--line);
  font-size: 0.95rem;
  line-height: 1.5;
}
.alias-list li:last-child { border-bottom: none; }
.alias-list a {
  color: var(--accent-2);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.alias-list a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --- D. Brokers table --- */
.brokers__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.brokers__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.brokers {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  min-width: 720px;
}
.brokers th, .brokers td {
  text-align: left;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.brokers thead th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 2px solid var(--line);
  font-weight: normal;
}
.brokers tbody tr:hover { background: var(--bg-alt); }
.brokers td:first-child { color: var(--fg); font-weight: 700; }
.brokers .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--line);
  margin-right: 0.3rem;
  white-space: nowrap;
}
.brokers .tag--quick  { color: var(--accent-2); border-color: var(--accent-2); }
.brokers .tag--medium { color: var(--fg);       border-color: var(--line); }
.brokers .tag--id     { color: var(--accent);   border-color: var(--accent); }
.brokers .tag--free   { color: var(--fg-muted); }
.brokers .tag--paid   { color: var(--accent);   border-color: var(--accent); }
.brokers a {
  color: var(--accent-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
}
.brokers a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.brokers__note {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin: 1rem 0 0;
  max-width: 80ch;
}

/* On phones, stack the broker table as cards instead of forcing a 720px
   horizontal scroll. Each <td> renders as a labeled row using its
   data-label attribute (set by renderBrokers). */
@media (max-width: 700px) {
  .brokers__wrap { overflow-x: visible; }
  .brokers {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    display: block;
  }
  .brokers thead { position: absolute; left: -9999px; }
  .brokers tbody, .brokers tr { display: block; width: 100%; }
  .brokers tr {
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    padding: 0.9rem 1rem;
    margin-bottom: 0.7rem;
    background: var(--card);
  }
  .brokers tbody tr:hover { background: var(--card); }
  .brokers td {
    display: grid;
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.35rem 0;
    border-bottom: none;
    word-break: break-word;
  }
  .brokers td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-muted);
    align-self: start;
    padding-top: 0.15rem;
  }
  .brokers td:first-child { font-size: 1rem; padding-bottom: 0.6rem; }
  .brokers td:first-child::before { padding-top: 0.3rem; }
}

/* --- CTA card linking to /plan from inside the toolkit --- */
.stop-block--cta .stop-block__num { color: var(--accent-2); }
.stop-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 1.85rem;
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-bottom: none;
  text-decoration: none;
  color: var(--fg);
  transition: background 120ms ease;
}
.stop-cta-card:hover { background: var(--bg-alt); color: var(--fg); }
.stop-cta-card__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: -0.01em;
  color: var(--accent-2);
  margin-bottom: 0.35rem;
}
.stop-cta-card__text span {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.stop-cta-card__arrow {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}
.stop-cta-card:hover .stop-cta-card__arrow { color: var(--accent-2); }

/* =============== PLAN PAGE =============== */
.hero--plan {
  min-height: auto;
  padding-top: 5rem;
  padding-bottom: 4rem;
}
.hero__back {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0;
}
.hero__back::before { content: none; }
.hero__back:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.hero--plan .kicker {
  padding-left: 0;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.hero--plan .kicker::before { content: none; }

/* Channel guides on /plan render as flat articles with no toggle UI —
   every step is visible the moment the user lands. */
.guide--open {
  padding: 0;
  border-top: 1px solid var(--line);
}
.guide--open:last-child { border-bottom: 1px solid var(--line); }
.guide--open .guide__head {
  padding: 1.4rem 0 0.8rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}
.guide--open .guide__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  letter-spacing: -0.005em;
  color: var(--fg);
}
.guide--open .guide__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.guide--open .guide__body { padding: 0 0 1.8rem; max-width: 75ch; }

/* =============== misc =============== */
::selection { background: var(--accent); color: var(--bg); }

/* =====================================================
   RESPONSIVE — mobile and tablet refinements
   Breakpoints: 1024 (tablet), 768 (large phone), 480 (phone)
   ===================================================== */

@media (max-width: 1024px) {
  body { font-size: 16px; }
  .section { padding: 5rem 6vw; }
  .hero { padding: 6rem 6vw 4rem; }
}

@media (max-width: 900px) {
  /* drop sticky calc heads when columns stack */
  .calc__head { position: static; }
  .calc { padding: 2.5rem 0; }
}

@media (max-width: 768px) {
  body { font-size: 15.5px; }

  .section { padding: 4rem 5vw; }
  .hero {
    padding: 5rem 5vw 3.5rem;
    min-height: auto;
  }

  /* hero noise: fewer cols, smaller, less visually loud */
  .hero__noise {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    transform: rotate(-3deg) scale(1.05);
    opacity: 0.04;
  }

  .kicker { padding-left: 2.4rem; font-size: 0.7rem; }
  .kicker::before { width: 1.6rem; }

  h1 { margin-bottom: 1.8rem; }

  .lede { font-size: 1.05rem; }

  .section__title { margin-bottom: 0.75rem; }
  .section__lede { font-size: 1.02rem; margin-bottom: 2.5rem; }

  /* charts — pad less, give the canvas room */
  .chart-card { padding: 1.25rem; }
  .chart-source { font-size: 0.72rem; margin-top: 1rem; }

  /* stats grid — give every card a clean separator */
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none !important; padding: 1.8rem 1.4rem; }
  .stat:last-child { border-bottom: none; }

  /* calculator output adjustments */
  .calc__output { padding: 1.25rem 1.25rem; }
  .calc__big { font-size: 2.4rem; }
  .calc__big-label { font-size: 0.68rem; }
  .calc__breakdown li { font-size: 0.82rem; flex-wrap: wrap; gap: 0.25rem; }

  .field input[type="number"], .field select { font-size: 16px; } /* prevent iOS zoom on focus */

  .btn { width: 100%; text-align: center; padding: 0.95rem 1.2rem; }

  /* CTA: smaller, full-width buttons stack vertically */
  .section--cta { padding: 5rem 6vw; }
  .cta__actions { flex-direction: column; align-items: stretch; gap: 0.75rem; margin: 2.25rem 0 2rem; }
  .btn--cta-primary, .btn--cta-ghost {
    width: 100%;
    justify-content: center;
    padding: 1.1rem 1.4rem;
    font-size: 0.92rem;
  }
  .cta__title { margin-bottom: 1.75rem; }
  .cta__lede { font-size: 1.02rem; }

  /* FAQ — larger touch targets */
  .faq__item summary { padding: 1.3rem 2.5rem 1.3rem 0; }
}

@media (max-width: 480px) {
  body { font-size: 16px; } /* keep at 16px so 1rem-relative inputs stay above the iOS zoom threshold */

  .section { padding: 3.25rem 5vw; }
  .hero { padding: 4rem 5vw 3rem; }

  /* Nudge fine-print labels for legibility on small phones */
  .brokers .tag { font-size: 0.78rem; }
  .footer { font-size: 0.85rem; }
  .stop-block__sub, .calc__sub { font-size: 0.95rem; }
  .field__label { font-size: 0.82rem; }

  .hero__noise {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    transform: rotate(-2deg) scale(1.0);
  }

  /* hero h1 a touch tighter on the smallest screens */
  h1 { font-size: clamp(2.6rem, 13vw, 4rem); margin-bottom: 1.5rem; }
  .hero__cta { font-size: 1.15rem; }

  .section__title { font-size: clamp(1.7rem, 8vw, 2.4rem); }

  .stat__number { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .stat__label { font-size: 0.95rem; }

  .calc__title { font-size: 1.5rem; }
  .calc__inputs { gap: 1rem; }

  .chart-card { padding: 1rem 0.9rem; }

  .footer { padding: 2.5rem 5vw 3.5rem; font-size: 0.78rem; }
}

/* very narrow — preserve readability */
@media (max-width: 360px) {
  .stat { padding: 1.5rem 1.1rem; }
  .calc__output { padding: 1rem; }
  .field input[type="number"], .field select { padding: 0.5rem 0; }
}

/* user prefers reduced motion */
/* =============== SCROLL REVEAL =============== */
/* The .reveal class is applied by script.js on JS-capable browsers only,
   so without JS everything renders normally. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
  will-change: opacity, transform;
}
.reveal.reveal--in {
  opacity: 1;
  transform: none;
}
.stats .stat.reveal:nth-child(1) { transition-delay: 0ms; }
.stats .stat.reveal:nth-child(2) { transition-delay: 80ms; }
.stats .stat.reveal:nth-child(3) { transition-delay: 160ms; }
.stats .stat.reveal:nth-child(4) { transition-delay: 240ms; }
.stats .stat.reveal:nth-child(5) { transition-delay: 320ms; }
.stats .stat.reveal:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.reveal--in { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* hover-capable devices only — keep tap-driven phones from getting stuck in :hover */
@media (hover: none) {
  .stat:hover { background: var(--bg); }
}
