:root {
  --ink: #1b2430;
  --muted: #5c6775;
  --line: #e4e9f0;
  --paper: #ffffff;
  --canvas: #eef2f6;
  --blue: #004090;
  --blue-deep: #06284f;
  --blue-soft: #e7f0fa;
  --header-h: 84px;
  --wrap: 1080px;
  --shadow: 0 16px 40px rgba(16, 36, 64, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #7eb0e8;
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 55%, #3d7ed6);
}

.header-row {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo-link img {
  height: 64px;
  width: auto;
}

.btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.btn-quote:hover {
  background: var(--blue-deep);
  text-decoration: none;
}

.page {
  padding: 28px 0 48px;
}

.sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 42px 48px 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px 40px;
  align-items: start;
}

h1,
h2,
.band-age,
.age-readout,
.step-no {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-weight: 500;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #152033;
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.byline img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.byline strong {
  color: var(--ink);
  font-weight: 650;
}

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.prose {
  max-width: 74ch;
  padding-top: 26px;
}

.lede {
  margin: 0 0 18px;
  padding-left: 16px;
  border-left: 3px solid var(--blue);
  font-size: 1.18rem;
  line-height: 1.55;
  color: #243044;
}

.prose p,
.legal p {
  margin: 0 0 1rem;
}

h2 {
  margin: 34px 0 12px;
  font-size: 1.7rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.bands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 8px;
}

.band {
  display: flex;
  flex-direction: column;
  min-height: 148px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
}

.band:hover {
  border-color: #b9cfea;
  background: var(--blue-soft);
  text-decoration: none;
}

.band-kicker,
.band-go {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.band-age {
  margin: 10px 0 auto;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  color: var(--blue-deep);
}

.band-go {
  color: var(--blue);
  letter-spacing: 0.04em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
  margin-top: 8px;
}

.split .prose {
  padding-top: 0;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 28px;
  padding: 0;
  list-style: none;
}

.steps li {
  margin: 0;
  padding: 18px 18px 16px;
  border-top: 3px solid var(--blue);
  background: #f7f9fb;
  border-radius: 0 0 12px 12px;
}

.step-no {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 1.35rem;
}

.steps a {
  font-weight: 650;
}

.age-tool {
  margin: 8px 0 22px;
  padding: 28px 28px 24px;
  border-radius: 16px;
  background:
    radial-gradient(1200px 220px at 10% -20%, rgba(126, 176, 232, 0.35), transparent 50%),
    var(--blue-deep);
  color: #fff;
}

.age-tool h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.85rem;
}

.age-tool p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
}

.age-readout {
  margin: 0;
  min-height: 1.15em;
  font-size: clamp(3.2rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.age-readout:not(.is-set) {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  opacity: 0.72;
}

.age-readout.is-set {
  color: #fff;
}

.age-unit {
  margin: 4px 0 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.age-range {
  --pct: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.age-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, #fff var(--pct), rgba(255, 255, 255, 0.28) var(--pct));
}

.age-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border-radius: 50%;
  border: 3px solid #9ec4ee;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.age-range::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.age-range::-moz-range-progress {
  height: 6px;
  border-radius: 99px;
  background: #fff;
}

.age-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #9ec4ee;
  border-radius: 50%;
  background: #fff;
}

.age-scale {
  display: flex;
  justify-content: space-between;
  margin: 2px 0 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.btn-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: min(100%, 320px);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-go.is-disabled {
  pointer-events: none;
  cursor: not-allowed;
}

.btn-go.is-ready {
  border-color: #fff;
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}

.btn-go.is-ready:hover {
  text-decoration: none;
  background: #f3f7fc;
}

.notes {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.notes p {
  margin: 0 0 0.8rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.legal h2 {
  margin-top: 28px;
  font-size: 1.35rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal li {
  margin: 0.2rem 0;
}

.site-footer {
  padding: 8px 0 40px;
}

.footer-card {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 36px 26px;
}

.footer-logo {
  height: 72px;
  width: auto;
  margin-bottom: 16px;
}

.footer-card p {
  margin: 0 0 0.85rem;
  color: #3d4856;
  font-size: 0.92rem;
}

.footer-card .fine,
.footer-card .copyline {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links a {
  font-weight: 700;
  text-decoration: none;
}

.footer-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 860px) {
  .hero,
  .split,
  .steps,
  .bands {
    grid-template-columns: 1fr;
  }

  .sheet {
    padding: 28px 20px 22px;
  }

  .footer-card {
    padding: 24px 20px 18px;
  }
}

@media (max-width: 700px) {
  .header-row {
    min-height: 0;
    padding: 12px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "kicker logo"
      "cta cta";
    gap: 12px 16px;
  }

  .kicker { grid-area: kicker; align-self: center; }
  .logo-link { grid-area: logo; }
  .header-end { display: contents; }
  .btn-quote { grid-area: cta; }

  .logo-link img {
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-go { transition: none; }
}
