/* ============================================================
   FERS Report — Design System
   Professional, trustworthy, fast. No frameworks, no build step.
   Works on all evergreen browsers + graceful on older ones.
   ============================================================ */

:root {
  --navy-900: #0b2447;
  --navy-800: #123262;
  --navy-700: #19376d;
  --navy-100: #e8eef7;
  --navy-50: #f4f7fb;
  --gold-600: #8a6500;
  --gold-500: #c9a227;
  --gold-100: #faf3dd;
  --ink: #1a2333;
  --ink-soft: #46546b;
  --ink-faint: #5f6b80;
  --line: #d9e1ec;
  --white: #ffffff;
  --green-600: #1e7d4e;
  --green-50: #e9f7ef;
  --red-600: #b3402a;
  --red-50: #fdeeea;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(11, 36, 71, 0.08);
  --shadow-md: 0 6px 24px rgba(11, 36, 71, 0.10);
  --shadow-lg: 0 16px 48px rgba(11, 36, 71, 0.16);
  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  overflow-x: clip; /* modern: prevents stray horizontal scroll without a scroll container */
}
/* Grid blowout guard: allow grid/flex children to shrink below content width */
.grid-2 > *, .grid-3 > *, .hero-grid > *, .calc-layout > *,
.pricing-grid > *, .unlock-grid > * { min-width: 0; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-700); }
a:hover { color: var(--navy-900); }
:focus-visible { outline: 3px solid #8a6500; outline-offset: 3px; }
.skip-link {
  position: fixed; left: 12px; top: 8px; z-index: 1000;
  transform: translateY(-150%); padding: 10px 14px;
  background: var(--navy-900); color: var(--white); border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); color: var(--white); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy-900); margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.center { text-align: center; }
.muted { color: var(--ink-faint); }
.small { font-size: 0.875rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--navy-900);
  text-decoration: none; letter-spacing: -0.01em;
}
.brand .mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-500); font-size: 1rem; flex: 0 0 auto;
}
.brand .tld { color: var(--gold-600); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--navy-900); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--navy-900);
  min-width: 44px; min-height: 44px;
}
.nav-toggle .menu-icon {
  display: block; position: relative; width: 20px; height: 14px;
  border-top: 2px solid currentColor; border-bottom: 2px solid currentColor;
}
.nav-toggle .menu-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 4px;
  border-top: 2px solid currentColor;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; font-family: var(--font);
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy-900); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); color: var(--white); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: #d9b23a; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-50); }
.btn-lg { padding: 16px 30px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.text-button {
  border: 0; padding: 4px; background: transparent; color: var(--navy-700);
  text-decoration: underline; cursor: pointer; font: inherit;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy-50) 0%, var(--white) 100%);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
/* Subtle drifting dot-grid + soft gold glow. Professional, barely-there motion. */
.hero::before {
  content: "";
  position: absolute; inset: -120px;
  background-image: radial-gradient(rgba(25, 55, 109, 0.13) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  animation: heroDrift 60s linear infinite;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.16), transparent 65%);
  animation: heroGlow 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero .hero-grid { position: relative; z-index: 1; }
@keyframes heroDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(26px, 26px, 0); }
}
@keyframes heroGlow {
  from { opacity: 0.55; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.hero h1 .accent { color: var(--gold-600); }
.hero .sub { font-size: 1.2rem; color: var(--ink-soft); margin: 18px 0 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.trust-row {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px;
  color: var(--ink-faint); font-size: 0.875rem; font-weight: 600;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.checkmark { color: var(--green-600); font-weight: 800; }

/* Hero preview card */
.preview-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px;
}
.preview-card .ph-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 700; }
.preview-card .ph-big { font-size: 2.2rem; font-weight: 800; color: var(--navy-900); margin: 2px 0 14px; }
.preview-bar { height: 10px; border-radius: 6px; background: var(--navy-100); overflow: hidden; margin: 8px 0 4px; }
.preview-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-700), var(--gold-500)); }
.preview-row { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
}
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--navy-100);
  color: var(--navy-800); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.band { background: var(--navy-50); }
.band-dark { background: var(--navy-900); color: #d7e1f0; }
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .lead { color: #b9c7dd; }

.steps { counter-reset: step; }
.step { display: flex; gap: 18px; margin-bottom: 26px; }
.step .num {
  counter-increment: step; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-500); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.step .num::before { content: counter(step); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .price { font-size: 2.6rem; font-weight: 800; color: var(--navy-900); }
.price-card .price small { font-size: 1rem; font-weight: 600; color: var(--ink-faint); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.price-card li { padding: 7px 0 7px 28px; position: relative; font-size: 0.95rem; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--green-600); font-weight: 800;
}
.price-card li.no::before { content: "—"; color: var(--ink-faint); }
.price-card li.no { color: var(--ink-faint); }
.popular { border: 2px solid var(--gold-500); box-shadow: var(--shadow-md); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500); color: var(--navy-900); font-weight: 800;
  font-size: 0.78rem; padding: 4px 14px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.report-thumb {
  display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--navy-50); padding: 10px; margin: 4px 0 14px;
}
.report-thumb img {
  width: 88px; aspect-ratio: 0.72; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.report-thumb b { display: block; color: var(--navy-900); margin-bottom: 2px; }
.report-thumb span { display: block; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.35; }

/* ---------- FAQ ---------- */
details.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; margin-bottom: 12px; background: var(--white);
}
details.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--navy-900);
  padding: 16px 20px; list-style: none; position: relative;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 14px;
  font-size: 1.3rem; color: var(--gold-600); font-weight: 700;
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item .faq-body { padding: 0 20px 16px; color: var(--ink-soft); }

/* ---------- Forms / Calculator ---------- */
.calc-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 28px; align-items: start; }
.calc-results-slot { grid-column: 2; min-width: 0; }
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.panel-head { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-body { padding: 24px; }

.form-row { margin-bottom: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
label.field-label, span.field-label {
  display: block; font-weight: 800; font-size: 0.95rem;
  color: var(--navy-900); margin-bottom: 6px;
}
.hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }
input[type="text"], input[type="number"], input[type="date"], input[type="email"], select {
  width: 100%; padding: 11px 12px; font-size: 1rem; font-family: var(--font);
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--white);
  color: var(--ink); -webkit-appearance: none; appearance: none; min-height: 44px;
}
select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2346546b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
input:focus, select:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-500); }
input.error { border-color: var(--red-600); }
.field-error { color: var(--red-600); font-size: 0.8rem; margin-top: 3px; display: none; }

/* GOV.UK-style memorable date fields */
.date-group { display: flex; gap: 12px; }
.date-group > div { width: 5.2em; }
.date-group > .dg-year { width: 7em; }
.date-group input { text-align: center; font-size: 1.05rem; }
.service-pair { display: flex; gap: 12px; }
.service-pair > div { width: 7em; }
.service-pair input { text-align: center; font-size: 1.05rem; }
.dg-label {
  display: block; font-size: 0.8rem; font-weight: 700;
  color: var(--ink-soft); margin-bottom: 3px;
}

fieldset.section-fold {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin: 0 0 18px; padding: 14px 16px;
}
fieldset.section-fold legend {
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em;
  color: var(--navy-900); padding: 0 10px 0 12px;
  border-left: 4px solid var(--gold-500);
}
.calc-optional {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--navy-50); margin: 6px 0 18px;
}
.calc-optional summary {
  cursor: pointer; padding: 13px 15px; font-weight: 800; color: var(--navy-900);
}
.calc-optional-body { padding: 4px 15px 1px; }

/* Progress steps */
.calc-steps { display: flex; gap: 8px; margin-bottom: 20px; }
.calc-steps .cstep {
  flex: 1; text-align: center; font-size: 0.78rem; font-weight: 700;
  color: var(--ink-faint); padding-bottom: 8px; border-bottom: 3px solid var(--line);
}
.calc-steps .cstep.active { color: var(--navy-900); border-color: var(--gold-500); }

/* ---------- Results ---------- */
#results { scroll-margin-top: 76px; }
.result-hero {
  background: var(--navy-900); color: var(--white);
  border-radius: var(--radius-lg); padding: 26px; margin-bottom: 20px;
}
@media (min-width: 921px) {
  #res-valid:not(.paid-open) .result-hero {
    position: sticky; top: 78px; z-index: 10; box-shadow: var(--shadow-md);
  }
}
.result-hero .rh-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9fb4d4; font-weight: 700; }
.result-hero .rh-big { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--gold-500); line-height: 1.1; }
.result-hero .rh-sub { color: #c4d2e8; font-size: 0.95rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px;
}
.stat .s-label { font-size: 0.78rem; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.stat .s-value { font-size: 1.45rem; font-weight: 800; color: var(--navy-900); }
.stat .s-note { font-size: 0.78rem; color: var(--ink-faint); }
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
}
.badge-green { background: var(--green-50); color: var(--green-600); }
.badge-red { background: var(--red-50); color: var(--red-600); }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-navy { background: var(--navy-100); color: var(--navy-800); }

.notice {
  border-left: 4px solid var(--gold-500); background: var(--gold-100);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 16px;
  font-size: 0.9rem; margin: 14px 0;
}
.notice-red { border-color: var(--red-600); background: var(--red-50); }
.notice-green { border-color: var(--green-600); background: var(--green-50); }

/* Upsell cards in results */
.unlock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.unlock-card {
  border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; background: var(--white);
}
.unlock-card.featured { border-color: var(--gold-500); background: linear-gradient(180deg, var(--gold-100), var(--white) 45%); }
.unlock-card .u-price { font-size: 1.8rem; font-weight: 800; color: var(--navy-900); }
.unlock-card ul { padding-left: 18px; margin: 10px 0 14px; font-size: 0.875rem; color: var(--ink-soft); }
.unlock-card li { margin-bottom: 4px; }
.unlock-preview {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--navy-50); padding: 14px;
}
.unlock-preview img {
  width: 100%; max-width: 190px; display: block; margin: 0 auto 12px;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm);
}
.trust-strip, .vera-callout {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); padding: 12px 14px; color: var(--ink-soft);
  font-size: 0.9rem;
}
.trust-strip { justify-content: center; margin: 12px 0 16px; }
.trust-strip b, .vera-callout b { color: var(--navy-900); }
.vera-callout {
  border-left: 4px solid var(--gold-500);
  margin: 18px 0 0; background: var(--gold-100);
}
.vera-callout a { font-weight: 700; }

/* ---------- Blog ---------- */
.article-list { display: grid; gap: 16px; margin-top: 28px; }
.article-card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.article-meta { color: var(--ink-faint); font-size: 0.88rem; font-weight: 700; margin-bottom: 10px; }
.article-body h2 { margin-top: 32px; }
.article-body h3 { margin-top: 24px; }
.article-body p, .article-body li { color: var(--ink-soft); }
.article-cta {
  border: 1px solid var(--line); border-left: 4px solid var(--gold-500);
  border-radius: var(--radius); padding: 16px 18px; background: var(--navy-50);
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
table.data th {
  text-align: right; background: var(--navy-900); color: var(--white);
  padding: 10px 12px; font-weight: 700; white-space: nowrap;
}
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.data tr:nth-child(even) td { background: var(--navy-50); }
table.data tr.highlight td { background: var(--gold-100); font-weight: 700; }

/* ---------- Report (screen + print) ---------- */
.report {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md);
}
.report-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 3px solid var(--navy-900); padding-bottom: 18px; margin-bottom: 24px;
}
.report h2 { margin-top: 28px; font-size: 1.3rem; border-bottom: 2px solid var(--gold-500); padding-bottom: 6px; }
.report h2:first-of-type { margin-top: 0; }
.report .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: 0.95rem; }
.report .kv div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); padding: 5px 0; }
.report .kv b { color: var(--navy-900); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900); color: #b9c7dd; padding: 48px 0 32px; margin-top: 56px;
  font-size: 0.9rem;
}
.site-footer a { color: #d7e1f0; }
.footer-link-button {
  border: 0; padding: 0; background: transparent; color: #d7e1f0;
  font: inherit; text-decoration: underline; cursor: pointer;
}
.footer-link-button:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-grid h2 { color: var(--white); font-size: 0.95rem; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.disclaimer-box {
  border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 20px;
  font-size: 0.8rem; color: #8da3c4; line-height: 1.55;
}

/* ---------- Homepage interactive bits ---------- */
.eyebrow {
  display: inline-block; font-weight: 800; font-size: 0.95rem;
  color: var(--gold-600); letter-spacing: 0.01em; margin-bottom: 10px;
  min-height: 1.5em; transition: opacity 0.35s ease;
}
.mini-calc .mc-row { margin-bottom: 14px; }
.mini-calc .mc-top {
  display: flex; justify-content: space-between; font-size: 0.875rem;
  font-weight: 700; color: var(--navy-900); margin-bottom: 4px;
}
.mini-calc .mc-top .mc-val { color: var(--gold-600); }
input[type="range"] {
  width: 100%; height: 28px; background: transparent;
  -webkit-appearance: none; appearance: none; margin: 0; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 4px; background: var(--navy-100);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--navy-900); border: 3px solid var(--gold-500);
  margin-top: -8px; box-shadow: var(--shadow-sm);
}
input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 4px; background: var(--navy-100);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy-900); border: 3px solid var(--gold-500);
}
input[type="range"]:focus { outline: none; }
input[type="range"]:focus-visible {
  outline: 3px solid var(--gold-600); outline-offset: 3px; border-radius: 6px;
}
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.mc-result-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bigstat-band { background: var(--navy-900); padding: 34px 0; }
.bigstat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.bigstat .n { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; color: var(--gold-500); font-variant-numeric: tabular-nums; }
.bigstat .l { color: #b9c7dd; font-size: 0.9rem; font-weight: 600; }
@media (max-width: 920px) { .bigstat-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Share row ---------- */
.share-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  background: var(--navy-50); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; margin: 16px 0;
  font-weight: 600; color: var(--ink-soft); font-size: 0.95rem;
}

/* ---------- Results placeholder (pre-calculation skeleton) ---------- */
.skel {
  background: linear-gradient(90deg, var(--navy-50) 25%, var(--navy-100) 50%, var(--navy-50) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 2s ease-in-out infinite;
  border-radius: 10px;
}
.ph-skel-hero { height: 92px; margin-bottom: 12px; }
.ph-skel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ph-skel-grid .skel { height: 58px; }
.ph-skel-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 130px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
}
.ph-skel-chart i { flex: 1; background: var(--navy-100); border-radius: 3px 3px 0 0; }
.ph-skel-chart i:nth-child(3n) { background: var(--gold-100); }
.ph-list {
  list-style: none; padding: 0; margin: 0 auto 16px; max-width: 380px; text-align: left;
}
.ph-list li { padding: 5px 0 5px 26px; position: relative; font-size: 0.95rem; color: var(--ink-soft); }
.ph-list li::before {
  content: "✓"; position: absolute; left: 0; top: 5px;
  color: var(--green-600); font-weight: 800;
}
@keyframes skelShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.ph-locked { position: relative; }
.ph-locked .ph-skels { filter: blur(2.5px); opacity: 0.75; }
.ph-lock-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.35) 75%);
  border-radius: 10px;
}
.ph-lock {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; box-shadow: var(--shadow-md);
  animation: lockFloat 3s ease-in-out infinite;
  margin-bottom: 8px;
}
.ph-lock-text { font-weight: 800; color: var(--navy-900); font-size: 1.05rem; }
.ph-lock-sub { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
@keyframes lockFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; }
  .ph-lock { animation: none; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ---------- Desktop form: bolder, larger, perfectly aligned ---------- */
@media (min-width: 921px) {
  .panel-body { padding: 30px 34px; }
  label.field-label, .field-label { font-size: 1.06rem; margin-bottom: 8px; }
  input[type="text"], input[type="number"], input[type="email"], select {
    font-size: 1.12rem; padding: 13px 15px; min-height: 52px;
  }
  .date-group { gap: 14px; }
  .date-group > div { width: 6em; }
  .date-group > .dg-year { width: 8em; }
  .date-group input { font-size: 1.15rem; font-weight: 600; }
  .service-pair { gap: 14px; }
  .service-pair > div { width: 7.5em; }
  .service-pair input { font-size: 1.15rem; font-weight: 600; }
  .dg-label { font-size: 0.85rem; }
  .hint { font-size: 0.9rem; margin-top: 5px; }
  .form-row { margin-bottom: 22px; }
  .form-grid-2 { gap: 0 22px; align-items: start; }
  /* Perfect side-by-side alignment: paired fields share the exact same
     row heights for label / input / hint via subgrid (evergreen browsers;
     older browsers fall back to the standard grid, still aligned because
     labels are kept to one line). */
  @supports (grid-template-rows: subgrid) {
    .form-grid-2 { margin-bottom: 22px; row-gap: 0; }
    .form-grid-2 > .form-row {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 4;
      align-content: start;
      margin-bottom: 0;
    }
  }
  fieldset.section-fold { padding: 22px 24px 10px; margin-bottom: 26px; }
  fieldset.section-fold legend { font-size: 1.35rem; }
  #calc-form .btn-lg { padding: 18px 30px; font-size: 1.18rem; }
  input { font-variant-numeric: tabular-nums; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .calc-layout { grid-template-columns: 1fr; }
  .calc-results-slot { grid-column: auto; }
  .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .grid-2, .unlock-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 16px 20px; gap: 14px; align-items: flex-start;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  section { padding: 40px 0; }
  .stat-grid, .form-grid-2 { grid-template-columns: 1fr; }
  .report { padding: 22px; }
  .report .kv { grid-template-columns: 1fr; }
  table.data { font-size: 0.78rem; }
  table.data th, table.data td { padding: 8px 8px; }
  .preview-card { padding: 18px; }
}

/* ---------- Print: only the report prints ---------- */
@media print {
  body * { visibility: hidden; }
  #report-print-area, #report-print-area * { visibility: visible; }
  #report-print-area {
    position: absolute; left: 0; top: 0; width: 100%;
    border: none; box-shadow: none; border-radius: 0; padding: 0;
  }
  .no-print { display: none !important; }
  table.data th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 1.4cm; }
}
