/* ==========================================================================
   TrueSend Cost Check — v2 styles
   Animated modern UI. Motion principles:
   - Only transform / opacity for animations (60fps, no layout jank).
   - All motion gated behind prefers-reduced-motion.
   - JS-driven numbers (count-ups) use requestAnimationFrame and are
     disabled when reduced motion is requested.
   ========================================================================== */

:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3f9;
  --surface: #ffffff;
  --ink: #0f1e33;
  --ink-soft: #3d4f68;
  --ink-faint: #6b7d97;
  --line: #dde6f2;
  --brand: #0b7d6e;
  --brand-deep: #095f54;
  --brand-soft: #dff3ef;
  --accent: #f2a93b;
  --accent-soft: #fdf1da;
  --ok: #12805c;
  --ok-soft: #ddf3e8;
  --warn: #b26a00;
  --warn-soft: #fdf0d7;
  --bad: #c2402f;
  --bad-soft: #fbe3de;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 30, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 30, 51, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); margin: 0 0 0.9rem; }

.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 44rem; }

a { color: var(--brand-deep); }
a:hover { color: var(--brand); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-size: 1.08rem; color: var(--ink); text-decoration: none;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; font-size: 1.15rem;
  box-shadow: 0 6px 14px rgba(11, 125, 110, 0.35);
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.nav { display: flex; gap: 0.25rem; align-items: center; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 0.8rem; border-radius: 9px; position: relative;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--brand-deep); background: var(--brand-soft); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0d2036 0%, #12314e 60%, #14405f 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  pointer-events: none;
}
.hero::before {
  width: 480px; height: 480px; left: -140px; top: -160px;
  background: radial-gradient(circle, #0e9f8a, transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero::after {
  width: 420px; height: 420px; right: -120px; bottom: -180px;
  background: radial-gradient(circle, #f2a93b, transparent 70%); opacity: 0.32;
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(46px, 30px) scale(1.08); }
}
.hero-inner { position: relative; z-index: 1; max-width: 46rem; }
.hero-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #ffd98a;
  background: rgba(242, 169, 59, 0.14); border: 1px solid rgba(242, 169, 59, 0.4);
  padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5.6vw, 3.4rem); margin: 0 0 1rem; color: #fff;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, #ffd98a, #f2a93b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { color: #c6d6e8; font-size: clamp(1.02rem, 2.4vw, 1.22rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-meta { margin-top: 1.4rem; font-size: 0.86rem; color: #9db4cc; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 0.8rem 1.5rem; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), color 0.18s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff;
  box-shadow: 0 10px 24px rgba(11, 125, 110, 0.38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11, 125, 110, 0.45); color: #fff; }
.btn-hero {
  background: linear-gradient(135deg, #f2a93b, #e08f1a); color: #221503;
  box-shadow: 0 10px 26px rgba(242, 169, 59, 0.4);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(242, 169, 59, 0.5); color: #221503; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; transform: translateY(-2px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-deep); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------------- Calculator shell ---------------- */
.calc-shell {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  margin-top: -2.2rem; position: relative; z-index: 2;
}

/* Step progress */
.stepper {
  display: flex; gap: 0; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: 0; margin: 0; list-style: none;
}
.stepper li {
  flex: 1; display: flex; align-items: center; gap: 0.65rem;
  padding: 1rem 1.25rem; font-weight: 700; font-size: 0.92rem; color: var(--ink-faint);
  position: relative; transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.stepper li .step-num {
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: #cfdcea; color: var(--ink-soft); font-size: 0.85rem; font-weight: 800;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.stepper li.is-current { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.stepper li.is-current .step-num {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff;
  transform: scale(1.12); box-shadow: 0 6px 14px rgba(11, 125, 110, 0.35);
}
.stepper li.is-done { color: var(--brand-deep); }
.stepper li.is-done .step-num { background: var(--ok-soft); color: var(--ok); }
.stepper .step-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.6s var(--ease);
}
.stepper li.is-current .step-bar, .stepper li.is-done .step-bar { width: 100%; }

.calc-body { padding: clamp(1.4rem, 4vw, 2.6rem); }

/* Step panels: animated transitions between steps */
.step-panel { display: none; }
.step-panel.is-active { display: block; }
.step-panel.enter-forward { animation: panelInForward 0.45s var(--ease); }
.step-panel.enter-back { animation: panelInBack 0.45s var(--ease); }
@keyframes panelInForward {
  from { opacity: 0; transform: translateX(46px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes panelInBack {
  from { opacity: 0; transform: translateX(-46px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Staggered entrances inside a panel */
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.stagger.in > * { opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(1) { transition-delay: 0.03s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.17s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.31s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.38s; }
.stagger.in > *:nth-child(7) { transition-delay: 0.45s; }
.stagger.in > *:nth-child(8) { transition-delay: 0.52s; }
.stagger.in > *:nth-child(9) { transition-delay: 0.59s; }
.stagger.in > *:nth-child(10) { transition-delay: 0.66s; }

/* ---------------- Forms ---------------- */
.field { margin-bottom: 1.1rem; }
.field label, .label-like {
  display: block; font-weight: 700; font-size: 0.93rem; margin-bottom: 0.4rem; color: var(--ink);
}
.field input[type="text"], .field input[type="number"], .field select {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink);
  padding: 0.75rem 0.95rem; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfdff; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(11, 125, 110, 0.15);
  transform: translateY(-1px); background: #fff;
}
.field input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(194, 64, 47, 0.12); }
.hint { font-size: 0.85rem; color: var(--ink-faint); margin: 0.35rem 0 0; }
.field-error { font-size: 0.86rem; color: var(--bad); font-weight: 600; margin: 0.35rem 0 0; display: none; }
.field-error.is-visible { display: block; animation: shake 0.4s var(--ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.currency-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft);
  padding: 0.12rem 0.45rem; border-radius: 6px; vertical-align: middle; margin-left: 0.3rem;
}
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .input-row { grid-template-columns: 1fr; } }

/* ---------------- Corridor grid ---------------- */
.corridor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.9rem; }
.corridor-card {
  position: relative; text-align: left; font: inherit; cursor: pointer;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.corridor-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.corridor-card:active { transform: translateY(-1px) scale(0.99); }
.corridor-card.is-selected {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 10px 24px rgba(11, 125, 110, 0.18);
}
.corridor-card .pair { font-weight: 800; font-size: 1.12rem; }
.corridor-card .arrow { color: var(--brand); margin: 0 0.25rem; display: inline-block; transition: transform 0.25s var(--ease); }
.corridor-card:hover .arrow, .corridor-card.is-selected .arrow { transform: translateX(4px); }
.corridor-card .route { display: block; font-size: 0.84rem; color: var(--ink-faint); margin-top: 0.25rem; }
.corridor-card .check {
  position: absolute; top: 0.7rem; right: 0.7rem; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 0.85rem;
  transform: scale(0); transition: transform 0.3s var(--ease);
}
.corridor-card.is-selected .check { transform: scale(1); }
.custom-toggle { margin-top: 1.2rem; }

/* ---------------- Provider cards ---------------- */
.provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 720px) { .provider-grid { grid-template-columns: 1fr; } }
.provider-card {
  background: #fbfdff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; position: relative; overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.provider-card:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 125, 110, 0.12); }
.provider-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.provider-card:focus-within::before { transform: scaleX(1); }
.provider-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.provider-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--ink), #2a3f5e); color: #fff; font-weight: 800;
}
.provider-card[data-provider="1"] .provider-badge { background: linear-gradient(135deg, var(--accent), #d18a16); color: #221503; }
.provider-name-input {
  font: inherit; font-weight: 800; font-size: 1.05rem; width: 100%;
  border: none; border-bottom: 2px dashed var(--line); background: transparent;
  padding: 0.25rem 0.1rem; color: var(--ink); border-radius: 0;
}
.provider-name-input:focus { outline: none; border-bottom-color: var(--brand); border-bottom-style: solid; }
.provider-name-input::placeholder { color: var(--ink-faint); font-weight: 600; }

.mode-toggle {
  display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; margin-bottom: 1rem;
}
.mode-toggle button {
  font: inherit; font-size: 0.86rem; font-weight: 700; border: none; background: transparent;
  color: var(--ink-faint); padding: 0.45rem 0.95rem; border-radius: 999px; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.mode-toggle button[aria-pressed="true"] {
  background: var(--surface); color: var(--brand-deep); box-shadow: 0 2px 8px rgba(15, 30, 51, 0.14);
}
.mode-toggle button:hover:not([aria-pressed="true"]) { color: var(--ink); }

.quote-fields { position: relative; }
.quote-fields .mode-pane { transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.quote-fields .mode-pane[hidden] { display: none; }

.calc-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.calc-nav { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* ---------------- Verdict ---------------- */
.verdict-hero {
  text-align: center; border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 1.6rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-soft), #f4fbf9 60%, var(--accent-soft));
  border: 2px solid var(--brand);
}
.verdict-hero.is-tie { border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), #fff8ea); }
.verdict-hero .verdict-label {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-deep);
}
.verdict-hero.is-tie .verdict-label { color: var(--warn); }
.verdict-hero h2 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); margin: 0.5rem 0 0.3rem; }
.verdict-hero h2 .winner-name { color: var(--brand-deep); }
.verdict-hero .verdict-sub { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }
.verdict-hero.is-revealed { animation: verdictPulse 0.9s var(--ease); }
@keyframes verdictPulse {
  0% { box-shadow: 0 0 0 0 rgba(11, 125, 110, 0.45); }
  70% { box-shadow: 0 0 0 26px rgba(11, 125, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 125, 110, 0); }
}

.savings-ticker {
  display: inline-flex; align-items: baseline; gap: 0.5rem; margin-top: 0.9rem;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line);
  padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 800; font-size: 1.25rem;
}
.savings-ticker .tick-label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }

/* Animated comparison bars */
.markup-bars { margin: 0 0 1.6rem; display: grid; gap: 1.1rem; }
.markup-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.markup-row .row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; margin-bottom: 0.55rem; }
.markup-row .row-name { font-weight: 800; font-size: 1.05rem; }
.markup-row .row-winner { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); margin-left: 0.5rem; }
.markup-row .row-value { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.markup-track {
  height: 14px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; position: relative;
}
.markup-fill {
  height: 100%; width: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--ok), #37b57f);
  transform: scaleX(0); transform-origin: left center;
  will-change: transform;
}
.markup-row.is-warn .markup-fill { background: linear-gradient(90deg, var(--accent), #e08f1a); }
.markup-row.is-bad .markup-fill { background: linear-gradient(90deg, #e0654f, var(--bad)); }
.markup-row .row-sub { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.45rem; }
.markup-row .row-sub strong { color: var(--ink-soft); }

.result-table { width: 100%; border-collapse: collapse; margin: 0 0 1.6rem; font-size: 0.96rem; }
.result-table th, .result-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.result-table thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.result-table tbody tr { transition: background 0.2s var(--ease); }
.result-table tbody tr:hover { background: var(--bg-soft); }
.result-table td.num { font-variant-numeric: tabular-nums; font-weight: 600; }

.verdict-meta { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1.2rem; }

.share-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-bottom: 1.4rem; }
.share-url {
  flex: 1 1 260px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem; padding: 0.7rem 0.9rem; border: 1px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.copy-feedback { font-size: 0.86rem; font-weight: 700; color: var(--ok); opacity: 0; transition: opacity 0.3s var(--ease); }
.copy-feedback.is-visible { opacity: 1; }

/* Affiliate slot: renders ONLY when a URL is configured (see js/config.js) */
.affiliate-slot { margin: 0 0 1.4rem; }
.affiliate-slot .aff-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 0.5rem; }
.affiliate-card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem; text-decoration: none; background: var(--surface);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.affiliate-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------------- Disclaimer / footer ---------------- */
.disclaimer {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; font-size: 0.88rem; color: var(--ink-soft);
  margin: 1.4rem 0 0;
}
.disclaimer strong { color: var(--ink); }

.site-footer { background: #0d2036; color: #9db4cc; padding: 2.6rem 0 2rem; margin-top: 0; font-size: 0.9rem; }
.site-footer .disclaimer { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: #b9cbdf; }
.site-footer .disclaimer strong { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1.4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #c6d6e8; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.site-footer .fine { font-size: 0.82rem; color: #7d93ad; }

/* ---------------- Content blocks ---------------- */
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.block h2 { margin-top: 2.2rem; }
.block h2:first-of-type { margin-top: 1.6rem; }
.formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; margin: 1rem 0; font-size: 1.02rem; overflow-x: auto; white-space: nowrap;
}
.example-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.example-table th, .example-table td { text-align: left; padding: 0.7rem 0.9rem; border: 1px solid var(--line); }
.example-table thead th { background: var(--bg-soft); }
.faq-list { display: grid; gap: 0.8rem; margin-top: 1rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 0.9rem 1.1rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background 0.2s var(--ease);
}
.faq-item summary:hover { background: var(--bg-soft); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon { transition: transform 0.3s var(--ease); color: var(--brand-deep); font-weight: 400; }
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 1.1rem 1rem; color: var(--ink-soft); }
.faq-item .faq-answer p { margin: 0.3rem 0 0; }

/* Feature strip */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .feature-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.feature h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.feature p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

.corridor-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem; margin-top: 1.2rem; }
.corridor-links a {
  display: block; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem; text-decoration: none; background: var(--surface);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.corridor-links a:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.corridor-links a strong { color: var(--ink); display: block; }
.corridor-links a span { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------------- Ad-slot placeholder (DISABLED) ---------------- */
.ad-slot { display: none; }

/* Utility classes (kept in CSS so the Content-Security-Policy can stay
   strict — no inline style attributes anywhere on the site). */
.scroll-target { scroll-margin-top: 80px; }
.table-scroll { overflow-x: auto; }
.section-tight { padding-top: 0; }
.page-h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 0 0 0.75rem; }
.noscript-box { margin-top: 1.5rem; }
.brand-footer { color: #fff; }
.row-quote-sub { font-size: 0.84rem; color: var(--ink-faint); }
.aff-note { display: block; font-size: 0.85rem; color: var(--ink-faint); }
.affiliate-slot .aff-label.spaced { margin-top: 0.4rem; }
.mt { margin-top: 1.2rem; }

/* ---------------- Reduced motion ---------------- */
@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;
  }
  .step-panel.enter-forward, .step-panel.enter-back { animation: none; }
  .stagger > * { opacity: 1; transform: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 720px) {  .stepper li { padding: 0.8rem 0.6rem; font-size: 0.8rem; gap: 0.45rem; }
  .stepper li .step-label { display: none; }
  .stepper li.is-current .step-label { display: inline; }
  .calc-shell { margin-top: -1.4rem; border-radius: 18px; }
  .nav a { padding: 0.5rem 0.55rem; font-size: 0.86rem; }
}
@media (max-width: 430px) {
  .brand { font-size: 0.95rem; gap: 0.45rem; }
  .brand-mark { width: 30px; height: 30px; font-size: 1rem; }
  .nav a { padding: 0.5rem 0.45rem; font-size: 0.82rem; }
}

/* ---------------- Print: verdict only ---------------- */
@media print {
  .site-header, .hero, .stepper, .calc-nav, .share-row, .site-footer,
  .calc-actions, .ad-slot, .skip-link, .no-print { display: none !important; }
  body { background: #fff; }
  .calc-shell { box-shadow: none; border: none; margin-top: 0; }
  .step-panel { display: none; }
  .step-panel.is-active { display: block; }
  .markup-fill { transition: none; }
}
