/* ==========================================================================
   Base: reset, typography, layout primitives, buttons, shared controls
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
sup { font-size: 0.45em; vertical-align: super; line-height: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

/* Layout ------------------------------------------------------------------ */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.band { padding-block: var(--section-y); }
.band--alt { background: var(--bg-band); }
.band--navy { background: var(--navy); color: var(--on-dark); }
.band--deep { background: var(--navy-deep); color: var(--on-dark); }

/* Type -------------------------------------------------------------------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
/* No italics anywhere in the brand: emphasis is color only. */
em, i, cite { font-style: normal; }
.accent { color: var(--accent); }
.section-title--center { text-align: center; }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 28px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--fs-sm);
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #26304a; }
.btn--primary:active { transform: translateY(1px); }
.btn--outline { border: 1px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { height: 40px; padding: 0 22px; }
.btn--lg { height: 56px; padding: 0 34px; }
.link-underline { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Range slider (shared by hero + calculator) ------------------------------ */
.range {
  --pct: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 20px; margin: 0;
  background: transparent; cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background:
    linear-gradient(90deg, var(--slider-from), var(--slider-to)) 0 / var(--pct) 100% no-repeat,
    var(--slider-track);
}
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--slider-track); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--slider-from), var(--slider-to)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -6px; border-radius: 50%;
  background: var(--slider-to); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(20, 27, 45, 0.3);
  transition: transform 150ms var(--ease);
}
.range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--slider-to); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(20, 27, 45, 0.3);
}
.range:hover::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(201, 121, 47, 0.25); }

/* Tooltip (ⓘ) — proposed behavior ----------------------------------------- */
.info {
  position: relative; display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #efece6; color: var(--ink-2);
  font: 700 11px/1 var(--font-sans);
}
.info__tip {
  position: absolute; z-index: 20; right: -6px; bottom: calc(100% + 8px);
  width: 240px; padding: 10px 12px; border-radius: 8px;
  background: var(--ink); color: #fff;
  font: 400 var(--fs-xs)/1.45 var(--font-sans); font-style: normal; text-align: left;
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.info:hover .info__tip, .info:focus-visible .info__tip { opacity: 1; transform: none; }

/* Marquee (shared by hero tiles + quote ticker) --------------------------- */
.marquee { overflow: hidden; }
.marquee__track {
  display: flex; width: max-content;
  animation: marquee var(--marquee-duration, 60s) linear infinite;
}
.marquee__group { display: flex; flex-shrink: 0; gap: var(--marquee-gap, 16px); padding-right: var(--marquee-gap, 16px); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Amount slider + CTA (replaces the reference dropdown) */
.amount { display: flex; align-items: center; gap: 10px; margin-top: 36px; }
.amount__field {
  display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 6px;
  width: 360px; padding: 12px 20px 10px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.amount__field:hover { border-color: #bdb6a9; }
.amount__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 121, 47, 0.18); }
.amount__label { font-size: var(--fs-sm); color: var(--ink-2); }
.amount__value { font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.amount__range { grid-column: 1 / -1; }
.amount__cta { height: 64px; padding-inline: 34px; }
@media (max-width: 640px) {
  .amount { flex-direction: column; align-items: stretch; width: 100%; max-width: 420px; }
  .amount__field { width: 100%; }
  .amount__cta { height: 56px; }
}
sup.fn { font-size: 0.6em; vertical-align: 0.55em; letter-spacing: 0; }
