/* ==========================================================================
   Skilled Trade Gauge design system
   A warm, editorial cost guide: cream paper, navy, and a warm gold accent.
   ========================================================================== */

:root {
  --ink: #111a2e;
  --ink-2: #34425a;
  --muted: #5b6b80;
  --paper: #f6f4ee;
  --paper-2: #efece3;
  --surface: #ffffff;
  --line: #ddd9cf;
  --line-strong: #c9c4b8;
  --blue: #163e72;
  --blue-dark: #0b2444;
  --blue-soft: #e8eff8;
  --accent: #f2b84b;
  --accent-soft: #fdf4df;
  --coral: #d95f43;
  --coral-soft: #fff0ea;
  --amber: #b7791f;
  --amber-soft: #fff8e6;
  --success-soft: #eaf2ff;
  --shadow-sm: 0 1px 2px rgba(17, 26, 46, 0.04);
  --shadow: 0 12px 32px rgba(17, 26, 46, 0.08);
  --shadow-lg: 0 24px 64px rgba(17, 26, 46, 0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

strong {
  font-weight: 700;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(22, 62, 114, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.is-hidden {
  display: none !important;
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08) !important;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
  color: white;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 40px 0;
}

.section--dark {
  background: var(--blue-dark);
  color: #f3f7fc;
}

.section--dark h2,
.section--dark h3 {
  color: white;
}

.section--dark p {
  color: #d3e0f0;
}

.lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.86rem;
}

.tiny {
  font-size: 0.76rem;
}

.center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* --------------------------------------------------------------------------
   Top bar + header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: #dfe8f3;
  font-size: 0.76rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}

.topbar p {
  margin: 0;
  color: #b9c8da;
}

.topbar__mobile {
  display: none;
}

.topbar a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.topbar a:hover {
  color: #ffe6a8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(17, 26, 46, 0.06);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand__text {
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.brand__text span {
  color: var(--blue);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav > a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}

.site-nav > a:not(.btn):hover,
.site-nav > a:not(.btn).is-active {
  color: var(--blue);
}

.site-nav > a:not(.btn).is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle__bars {
  display: grid;
  gap: 5px;
  width: 20px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(17, 26, 46, 0.42);
  backdrop-filter: blur(2px);
}

.nav-backdrop[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   Buttons, pills, badges
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 6px 16px rgba(22, 62, 114, 0.18);
}

.btn--primary:hover {
  background: var(--blue-dark);
  color: white;
}

.btn--secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn--accent {
  background: var(--accent);
  color: var(--ink);
}

.btn--accent:hover {
  background: #f7c766;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  padding-inline: 0;
}

.btn--ghost:hover {
  color: var(--blue-dark);
}

.btn--sm {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 0.84rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tool__header .pill {
  flex-shrink: 0;
}

.pill--accent {
  background: var(--accent);
  color: var(--ink);
}

.pill--coral {
  background: var(--coral-soft);
  color: #a33a22;
}

.pill--amber {
  background: var(--amber-soft);
  color: #8a5a13;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 44px;
  background:
    radial-gradient(circle at 88% 6%, rgba(242, 184, 75, 0.38), transparent 30%),
    radial-gradient(circle at 6% 88%, rgba(22, 62, 114, 0.09), transparent 34%),
    linear-gradient(180deg, #f8f6f0 0%, var(--paper) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(17, 26, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 26, 46, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}

.hero__copy h1 {
  margin-bottom: 18px;
  text-wrap: balance;
}

.hero__copy .lede {
  font-size: 1.13rem;
  max-width: 54ch;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__trust span::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
}

.hero__tool {
  position: relative;
  z-index: 1;
}

.hero__tool::after {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  z-index: -1;
  border: 1px solid rgba(22, 62, 114, 0.16);
  border-radius: 26px;
  transform: rotate(2deg);
}

/* Cinematic homepage hero */
.hero--cinematic {
  padding: 78px 0 18px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 18%, rgba(55, 112, 172, 0.55), transparent 36%),
    radial-gradient(circle at 12% 78%, rgba(242, 184, 75, 0.16), transparent 34%),
    #050c16;
}

.hero--cinematic::before {
  content: "";
  position: absolute;
  top: auto;
  right: -120px;
  bottom: -260px;
  left: auto;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: none;
  box-shadow:
    0 0 0 55px rgba(255, 255, 255, 0.035),
    0 0 0 110px rgba(255, 255, 255, 0.025),
    0 0 0 165px rgba(255, 255, 255, 0.018);
  opacity: 1;
  mask-image: none;
  pointer-events: none;
}

.hero--cinematic .hero__grid {
  z-index: 1;
  gap: 64px;
}

.hero--cinematic .hero__copy h1 {
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.875rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero--cinematic .hero__badges {
  margin-bottom: 26px;
}

.hero__highlight {
  color: var(--accent);
}

.hero--cinematic .lede {
  color: #b8c7db;
  line-height: 1.7;
}

.hero--cinematic .pill {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #dce7f6;
}

.hero--cinematic .pill--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.hero--cinematic .hero__trust {
  gap: 12px 20px;
  margin-top: 34px;
  color: #d3dfed;
  font-size: 0.74rem;
}

.hero--cinematic .hero__trust span::before {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
}

.hero--cinematic .hero__tool {
  width: 85%;
  margin-left: auto;
}

.hero--cinematic .hero__tool::after {
  display: none;
}

.hero--cinematic .quick-tool {
  padding: 19px;
  border-color: rgba(255, 255, 255, 0.6);
  background: #f4f1e8;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.quick-tool__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.quick-tool__head h2 {
  margin: 0 0 4px;
}

.quick-tool__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.quick-tool__chip {
  flex-shrink: 0;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8a5a13;
  font-size: 0.62rem;
  font-weight: 850;
}

.hero--cinematic .quick-tool .field select {
  border-color: #d8d4ca;
  background: #fff;
}

.hero--cinematic .quick-secondary {
  color: var(--muted);
}

.hero__trade-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__trade-strip a {
  padding: 14px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #9fb2ca;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero__trade-strip a:last-child {
  border-right: 0;
}

.hero__trade-strip a:hover {
  color: var(--accent);
}

.home .topbar {
  background: #050c16;
}

.home .site-header:not(.is-scrolled) {
  border-bottom-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home .hero--cinematic {
  margin-top: -74px;
  padding-top: 152px;
}

.home .site-header:not(.is-scrolled) .brand,
.home .site-header:not(.is-scrolled) .brand:hover,
.home .site-header:not(.is-scrolled) .brand__text {
  color: #fff;
}

.home .site-header:not(.is-scrolled) .brand__text span {
  color: var(--accent);
}

.home .site-header:not(.is-scrolled) .site-nav > a:not(.btn) {
  color: #dce7f6;
}

.home .site-header:not(.is-scrolled) .site-nav > a:not(.btn):hover,
.home .site-header:not(.is-scrolled) .site-nav > a:not(.btn).is-active {
  color: var(--accent);
}

.home .site-header:not(.is-scrolled) .site-nav > a:not(.btn).is-active::after {
  background: var(--accent);
}

.home .site-header:not(.is-scrolled) .nav-toggle {
  border-color: rgba(255, 255, 255, 0.25);
}

.home .site-header:not(.is-scrolled) .nav-toggle__bars span {
  background: #fff;
}

.home .site-header:not(.is-scrolled) .site-nav--open > a:not(.btn) {
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Cards + grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #c5d5e8;
  box-shadow: var(--shadow);
}

.card--link {
  color: inherit;
  text-decoration: none;
}

.card--link:hover {
  color: inherit;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 900;
}

.card__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.25;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

.card__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.card__meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.card__price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--blue);
  line-height: 1.1;
}

.card__price small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section__head h2 {
  margin-bottom: 0;
}

.section__head p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 60ch;
}

.section__link {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.trust-item::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Tool / calculator
   -------------------------------------------------------------------------- */

.tool {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.tool__header h2,
.tool__header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.tool__header p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.tool__body {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
}

.tool__form {
  padding: 22px 24px 24px;
}

.tool__result {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 184, 75, 0.16), transparent 40%),
    var(--blue-dark);
  color: white;
}

.tool__footer {
  padding: 13px 24px;
  border-top: 1px solid var(--line);
  background: #fbfaf6;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
}

.field {
  margin-bottom: 15px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.field select,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="url"],
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.92rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(22, 62, 114, 0.12);
}

.field-hint {
  margin: 5px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--blue);
}

.range-row output {
  min-width: 104px;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--blue);
}

.result__label {
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #a9c2e0;
}

.result__amount {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.4vw, 3.15rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #f6faef;
}

.result__range {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #cfe0f2;
}

.result__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result__stat {
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
}

.result__stat strong {
  display: block;
  color: white;
  font-size: 1.05rem;
  line-height: 1.2;
}

.result__stat span {
  display: block;
  margin-top: 3px;
  color: #b8cde3;
  font-size: 0.68rem;
  line-height: 1.35;
}

.result__rebate {
  padding: 12px 14px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 12px;
}

.result__rebate span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3f3520;
}

.result__rebate strong {
  display: block;
  margin-top: 2px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.result__rebate small {
  display: block;
  margin-top: 3px;
  font-size: 0.7rem;
  color: #4a3d1f;
  line-height: 1.4;
}

.result__note {
  font-size: 0.72rem;
  line-height: 1.5;
  color: #b8cde3;
}

.result__cta {
  margin-top: auto;
}

.breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown__row {
  display: grid;
  grid-template-columns: 84px 1fr 64px;
  gap: 8px;
  align-items: center;
  font-size: 0.7rem;
  color: #cfe0f2;
}

.breakdown__bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.breakdown__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.breakdown__amount {
  text-align: right;
  color: #eef5ff;
  font-weight: 650;
}

/* Quick estimate card on the homepage */

.quick-tool {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.quick-tool h2 {
  margin: 0 0 4px;
  font-size: 1.28rem;
}

.quick-tool > p {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

#quick-link {
  margin-top: 16px;
}

.quick-result {
  margin-top: 14px;
  padding: 16px;
  background: var(--blue-soft);
  border: 1px solid #c9dcf0;
  border-radius: 14px;
}

.quick-summary {
  margin: 10px 0 0;
  min-height: 1.15em;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.quick-secondary {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.quick-result__label {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue);
}

.quick-result strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.1;
  color: var(--ink);
}

.quick-result p {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--ink-2);
}

.quick-result a {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 750;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th {
  padding: 12px 14px;
  background: #eef3f9;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid #efebe3;
  vertical-align: top;
  line-height: 1.5;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfaf6;
}

td strong {
  color: var(--ink);
}

.table-note {
  margin-top: -12px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Article layout
   -------------------------------------------------------------------------- */

.article {
  padding: 40px 0 72px;
}

.breadcrumb {
  margin-bottom: 18px;
  font-size: 0.8rem;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 7px;
  color: #b2b9b3;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.article__header {
  max-width: 850px;
}

.article__header h1 {
  margin-bottom: 14px;
  text-wrap: balance;
}

.article__header .lede {
  max-width: 70ch;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b7bdb8;
}

.article__layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 34px;
}

.article__layout > * {
  min-width: 0;
}

.article__body {
  max-width: 760px;
  font-size: 1.01rem;
  line-height: 1.75;
}

.article__body h2 {
  margin: 2.4em 0 0.55em;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  scroll-margin-top: 100px;
}

.article__body h3 {
  margin: 1.9em 0 0.5em;
  font-size: 1.2rem;
  scroll-margin-top: 100px;
}

.article__body h2:first-child,
.article__body h3:first-child {
  margin-top: 0;
}

.article__body p,
.article__body ul,
.article__body ol {
  margin-bottom: 1.1em;
}

.article__body ul,
.article__body ol {
  padding-left: 1.25em;
}

.article__body li {
  margin-bottom: 0.45em;
}

.article__body a {
  font-weight: 600;
}

.article__body blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: white;
  border-radius: 0 12px 12px 0;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.article__body blockquote p:last-child {
  margin-bottom: 0;
}

.article__body pre {
  margin: 1.4em 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--ink);
  border-radius: 12px;
  color: #f3f7fc;
  font-size: 0.82rem;
  line-height: 1.55;
}

.article__body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.article__body hr {
  margin: 2.2em 0;
}

.toc {
  position: sticky;
  top: 100px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.toc__title {
  margin-bottom: 10px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc a {
  display: block;
  padding: 4px 0;
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  color: var(--blue);
}

.takeaways {
  margin: 24px 0 32px;
  padding: 20px 22px;
  background: var(--success-soft);
  border: 1px solid #c9dcf0;
  border-left: 5px solid var(--blue);
  border-radius: 14px;
}

.takeaways h2 {
  margin: 0 0 10px !important;
  font-family: var(--font-body) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  color: var(--blue) !important;
}

.takeaways ul {
  margin: 0 !important;
  padding-left: 1.1em;
}

.takeaways li {
  margin-bottom: 0.35em;
  font-size: 0.92rem;
  line-height: 1.55;
}

.callout {
  margin: 24px 0;
  padding: 17px 20px;
  border: 1px solid;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.callout strong {
  display: block;
  margin-bottom: 3px;
}

.callout--tip {
  background: var(--accent-soft);
  border-color: #ecd9a8;
}

.callout--warn {
  background: var(--coral-soft);
  border-color: #f3cbbd;
}

.callout--info {
  background: #eef4f6;
  border-color: #cfe0e2;
}

.faq {
  margin: 34px 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 16px 34px 16px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  line-height: 1.4;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 2px;
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq__answer {
  padding: 0 0 18px;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.65;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

.sources {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.sources h2 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sources ol {
  padding-left: 1.2em;
}

.sources li {
  margin-bottom: 0.35em;
}

.author-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 34px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.author-box__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 850;
  font-size: 0.85rem;
}

.author-box p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related__link {
  display: block;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
  transition: border-color 160ms ease, transform 160ms ease;
}

.related__link:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   Quote checker
   -------------------------------------------------------------------------- */

.qc-verdict {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid;
  border-radius: 16px;
}

.qc-verdict--neutral {
  background: #f7f6f1;
  border-color: var(--line);
}

.qc-verdict--fair {
  background: var(--success-soft);
  border-color: #c7d8f2;
}

.qc-verdict--high {
  background: var(--coral-soft);
  border-color: #f3c9b8;
}

.qc-verdict--low {
  background: var(--amber-soft);
  border-color: #f0dca6;
}

.qc-verdict h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.qc-verdict__range {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.qc-verdict p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.form-error {
  margin-top: 4px;
  color: #b42318;
  font-size: 0.76rem;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 0.86rem;
  color: var(--ink-2);
  cursor: pointer;
}

.checkline input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.update-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.update-list li {
  margin: 0;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.update-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-success {
  padding: 26px;
  background: var(--success-soft);
  border: 1px solid #c7d8f2;
  border-radius: 16px;
}

.form-success h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.form-success p:last-child {
  margin-bottom: 0;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
  background:
    radial-gradient(circle at 90% 10%, rgba(242, 184, 75, 0.18), transparent 35%),
    var(--blue);
  border-radius: 24px;
  color: white;
}

.cta-band h2 {
  margin-bottom: 8px;
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.cta-band p {
  margin: 0;
  color: #d5e2f0;
  max-width: 56ch;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 64px;
  padding: 54px 0 24px;
  background: var(--ink);
  color: #dfe8f3;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer__brand p {
  margin: 14px 0 0;
  max-width: 40ch;
  color: #aebdd0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer__brand .footer__small {
  color: #8fa3bd;
  font-size: 0.76rem;
}

.brand--footer {
  color: white;
}

.brand--footer:hover {
  color: white;
}

.brand--footer .brand__text {
  color: white;
}

.brand--footer .brand__text span {
  color: var(--accent);
}

.footer__heading {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #9fb3cc;
}

.footer__links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links--split {
  /* Row-major pairs keep both columns west to east, and each row reads west to east. */
  grid-auto-flow: row;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
}

.footer__links li {
  margin: 0;
}

.footer__links a {
  color: #dfe8f3;
  font-size: 0.86rem;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__disclaimer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aebdd0;
  font-size: 0.76rem;
  line-height: 1.6;
}

.footer__disclaimer p {
  margin: 0;
}

.footer__disclaimer a {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8fa3bd;
  font-size: 0.76rem;
}

.footer__bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Cookie banner + ads + misc
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 100;
  width: min(780px, calc(100% - 32px));
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
}

.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
  align-items: center;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.78rem;
  line-height: 1.55;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cookie-banner__link {
  text-align: center;
  font-size: 0.74rem;
}

.ad-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 90px;
  margin: 28px 0;
  padding-top: 18px;
  background: #fbfaf6;
  border: 1px dashed #d6d2c8;
  border-radius: 12px;
}

.ad-slot::before {
  content: "Advertisement";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: #a3a8a1;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-slot[hidden] {
  display: none !important;
}

.noscript {
  position: fixed;
  left: 16px;
  bottom: 80px;
  z-index: 90;
  max-width: 420px;
  padding: 12px 16px;
  background: var(--amber-soft);
  border: 1px solid #e8d39c;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Homepage-specific helpers
   -------------------------------------------------------------------------- */

.hero .quick-tool {
  border-radius: 20px;
}

.cost-glance {
  margin-top: 8px;
}

.cost-glance td:first-child {
  font-weight: 650;
}

.rebate-grid .card {
  min-height: 100%;
}

.rebate-grid .card__price {
  color: var(--ink);
}

.factor-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 26px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.factor-list li {
  position: relative;
  padding-left: 28px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.factor-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 800;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.stat {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--blue);
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Font options review page
   -------------------------------------------------------------------------- */

.font-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.font-switcher strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.font-switcher__label {
  font-size: 0.78rem;
  color: var(--muted);
}

.font-switcher__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.font-switcher__groups {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.font-switcher__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.font-switcher__group-label {
  min-width: 36px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.font-choice {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.font-choice:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.font-choice.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.font-live-sample {
  padding: 34px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.font-live-title {
  max-width: 900px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.font-live-sample .lede {
  max-width: 62ch;
}

.font-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.font-live-card {
  max-width: 430px;
  margin-top: 28px;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 184, 75, 0.16), transparent 40%),
    var(--blue-dark);
  border-radius: 16px;
  color: white;
}

.font-live-card .result__amount {
  color: white;
}

.font-live-card .result__range {
  color: #cfe0f2;
}

.font-options-grid {
  display: grid;
  gap: 22px;
}

.font-option {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.font-option__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 0;
}

.font-option__name {
  margin: 8px 0 3px;
  font-family: var(--font-body);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.font-option__meta {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}

.font-option__sample {
  padding: 26px 24px;
  background:
    linear-gradient(180deg, rgba(246, 244, 238, 0.5), transparent 60%),
    #fbfaf6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.font-option__kicker {
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.font-option__headline {
  max-width: 900px;
  margin: 10px 0 9px;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.font-option__price {
  font-weight: 600;
}

.font-instrument .font-option__headline,
.font-instrument .font-option__price {
  font-weight: 400;
}

body.preview-instrument h1,
body.preview-instrument h2,
body.preview-instrument h3,
body.preview-instrument .font-live-title {
  font-weight: 400;
}

.font-option__text {
  max-width: 65ch;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.font-option__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
}

.font-option__price {
  font-size: 2rem;
  line-height: 1;
  color: var(--blue);
}

.font-option__note {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--muted);
}

.font-option__body {
  display: grid;
  gap: 7px;
  padding: 18px 24px 22px;
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.font-option__body p {
  margin: 0;
}

.font-option__body strong {
  color: var(--ink);
}

.font-fraunces {
  font-family: "Fraunces", "Palatino Linotype", Georgia, serif;
}

.font-instrument {
  font-family: "Instrument Serif", Georgia, serif;
}

.font-bricolage {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
}

.font-cabinet {
  font-family: "Cabinet Grotesk", "Segoe UI", sans-serif;
}

.font-space {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.font-hanken {
  font-family: "Hanken Grotesk", "Segoe UI", sans-serif;
}

.font-general {
  font-family: "General Sans", "Segoe UI", sans-serif;
}

.font-clash {
  font-family: "Clash Display", "Segoe UI", sans-serif;
}

.font-gambetta {
  font-family: "Gambetta", Georgia, serif;
}

.font-newsreader {
  font-family: "Newsreader", Georgia, serif;
}

body.preview-fraunces {
  --font-display: "Fraunces", "Palatino Linotype", Georgia, serif;
}

body.preview-instrument {
  --font-display: "Instrument Serif", Georgia, serif;
}

body.preview-bricolage {
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
}

body.preview-cabinet {
  --font-display: "Cabinet Grotesk", "Segoe UI", sans-serif;
}

body.preview-space {
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
}

body.preview-hanken {
  --font-display: "Hanken Grotesk", "Segoe UI", sans-serif;
}

body.preview-general {
  --font-display: "General Sans", "Segoe UI", sans-serif;
}

body.preview-clash {
  --font-display: "Clash Display", "Segoe UI", sans-serif;
}

body.preview-gambetta {
  --font-display: "Gambetta", Georgia, serif;
}

body.preview-newsreader {
  --font-display: "Newsreader", Georgia, serif;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero__grid {
    gap: 32px;
  }

  .article__layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
  }

  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .footer__grid > div:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 900px) {
  .topbar__inner {
    justify-content: center;
  }

  .topbar p {
    display: block;
    font-size: 0.7rem;
    text-align: center;
  }

  .topbar__desktop {
    display: none;
  }

  .topbar__mobile {
    display: inline;
  }

  .topbar a {
    display: none;
  }

  .header__inner {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
  }

  .site-nav--open {
    display: flex;
  }

  .site-nav > a:not(.btn) {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .site-nav > a:not(.btn):hover,
  .site-nav > a:not(.btn).is-active {
    background: var(--blue-soft);
  }

  .site-nav > a:not(.btn).is-active::after {
    display: none;
  }

  .site-nav .btn {
    margin-top: 6px;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero--cinematic {
    padding: 40px 0 0;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero__tool::after {
    display: none;
  }

  .tool__body {
    grid-template-columns: 1fr;
  }

  .tool__result {
    order: 2;
  }

  .article__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .toc {
    position: static;
    padding: 16px 18px;
    background: white;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: 12px;
  }

  .toc a {
    display: inline-block;
    margin-right: 14px;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .cta-band__actions {
    justify-content: flex-start;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid > div:last-child {
    grid-column: auto;
  }

  .footer__disclaimer {
    grid-template-columns: 1fr;
  }

  .cookie-banner__inner {
    grid-template-columns: 1fr;
  }

  .font-switcher {
    flex-direction: column;
    align-items: flex-start;
  }

  .font-switcher__groups {
    justify-items: start;
  }

  .font-switcher__group {
    justify-content: flex-start;
  }

  .font-switcher__group-label {
    text-align: left;
  }

  .font-option__head {
    flex-direction: column;
    gap: 10px;
  }

  .cookie-banner__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }

  .cookie-banner__link {
    flex-basis: 100%;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero__trade-strip {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .hero__trade-strip a {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero__trade-strip a:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 48px 0;
  }

  .section--tight {
    padding: 32px 0;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr 1fr;
  }

  .grid--2 {
    grid-template-columns: 1fr;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero__copy .lede {
    font-size: 1.02rem;
  }

  .tool__header,
  .tool__form,
  .tool__result {
    padding: 18px;
  }

  .tool__header {
    gap: 10px;
  }

  .tool__header h2,
  .tool__header h3 {
    font-size: 1.2rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .result__grid {
    grid-template-columns: 1fr 1fr;
  }

  .breakdown__row {
    grid-template-columns: 74px 1fr 58px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 20px;
  }

  .article__body {
    font-size: 0.98rem;
  }

  .font-live-sample {
    padding: 22px;
  }

  .font-live-title {
    font-size: 1.9rem;
  }

  .font-option__head {
    padding: 18px 18px 0;
  }

  .font-option__sample,
  .font-option__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .font-option__headline {
    font-size: 1.7rem;
  }

  .related__grid {
    grid-template-columns: 1fr;
  }

  .factor-list {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
  }

  .table-wrap {
    border-radius: 10px;
  }

  th,
  td {
    padding: 10px 11px;
    font-size: 0.84rem;
  }

  .cookie-banner {
    bottom: 8px;
    width: calc(100% - 16px);
    padding: 16px;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.2rem;
  }

  .hero {
    padding-top: 30px;
  }

  .hero--cinematic {
    padding-top: 30px;
  }

  .hero__badges .pill {
    font-size: 0.66rem;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .result__grid {
    grid-template-columns: 1fr;
  }

  .tool__result {
    padding: 18px;
  }

  .btn {
    width: 100%;
  }

  .site-nav .btn {
    width: 100%;
  }

  .hero__trust {
    gap: 10px;
  }

  .footer__links--split {
    grid-template-columns: 1fr;
  }

  .footer__disclaimer {
    font-size: 0.72rem;
  }
}

@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;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  body {
    background: white;
    color: black;
  }

  .topbar,
  .site-header,
  .site-footer,
  .cookie-banner,
  .ad-slot,
  .cta-band,
  .toc,
  .related,
  .author-box,
  .btn,
  .noscript {
    display: none !important;
  }

  .article {
    padding: 0;
  }

  .article__layout {
    display: block;
  }

  .article__body {
    max-width: 100%;
    font-size: 11pt;
  }

  .tool__result {
    background: white;
    color: black;
    border: 1px solid #ccc;
  }

  .result__amount,
  .result__stat strong,
  .result__rebate strong {
    color: black;
  }

  .result__label,
  .result__range,
  .result__stat span,
  .result__note,
  .breakdown__row {
    color: #333;
  }
}

/* Cinematic hero spacing overrides */
@media (max-width: 1024px) {
  .hero--cinematic .hero__grid {
    gap: 44px;
  }
}

@media (max-width: 900px) {
  .hero--cinematic {
    padding: 54px 0 14px;
  }

  .home .hero--cinematic {
    margin-top: -66px;
    padding: 120px 0 14px;
  }

  .hero--cinematic .hero__grid {
    gap: 36px;
  }

  .hero--cinematic .hero__tool {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .hero__trade-strip {
    margin-top: 40px;
  }
}

@media (max-width: 520px) {
  .hero--cinematic {
    padding-top: 36px;
  }

  .home .hero--cinematic {
    margin-top: -66px;
    padding-top: 102px;
  }

  .hero--cinematic .hero__copy h1 {
    margin-bottom: 20px;
  }

  .hero--cinematic .hero__badges {
    margin-bottom: 22px;
  }

  .hero--cinematic .hero__trust {
    margin-top: 28px;
  }
}
