/* BikeSelect landing — design system
   Palette from the brand kit: teal #406168, ink #00161C, cream #FAF3DC,
   logo orange #D67447, hot orange #E3602C, yellow #F0C41B, lavender #B49BC9 */

@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url(/site/fonts/HankenGrotesk-400.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: italic; font-display: swap; src: url(/site/fonts/HankenGrotesk-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url(/site/fonts/HankenGrotesk-500.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url(/site/fonts/HankenGrotesk-600.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url(/site/fonts/HankenGrotesk-700.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 800; font-style: normal; font-display: swap; src: url(/site/fonts/HankenGrotesk-800.woff2) format("woff2"); }
@font-face { font-family: "Anton"; font-weight: 400; font-style: normal; font-display: swap; src: url(/site/fonts/Anton-400.woff2) format("woff2"); }

:root {
  --teal: #406168;
  --teal-deep: #324d54;
  --teal-dark: #243b41;
  --ink: #00161c;
  --cream: #faf3dc;
  --cream-deep: #f3e9c8;
  --paper: #ffffff;
  --orange: #d67447;
  --flame: #e3602c;
  --yellow: #f0c41b;
  --yellow-deep: #d9b011;
  --lavender: #b49bc9;
  --mist: #cfd7d9;
  --body: #1d3238;
  --muted: #587077;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Anton", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --measure: 44rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --band-y: clamp(3.5rem, 8vw, 6.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--flame); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--orange); }
strong { font-weight: 700; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.04;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin-bottom: .5rem; letter-spacing: -.01em; }
p + p, p + ul, ul + p { margin-top: 1rem; }
.eyebrow {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--flame);
  margin-bottom: 1.1rem;
}
.lede { font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.55; }
.accent-o { color: var(--flame); }
.accent-y { color: var(--yellow); }
.measure { max-width: var(--measure); }

/* ---------- bands ---------- */
.band { padding: var(--band-y) 0; }
.band > .wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.band--cream { background: var(--cream); }
.band--paper { background: var(--paper); }
.band--teal { background: var(--teal); color: var(--cream); }
.band--deep { background: var(--teal-deep); color: var(--cream); }
.band--ink { background: var(--ink); color: var(--cream); }
.band--teal h1, .band--teal h2, .band--teal h3,
.band--deep h1, .band--deep h2, .band--deep h3,
.band--ink h1, .band--ink h2, .band--ink h3 { color: var(--cream); }
.band--teal .eyebrow, .band--deep .eyebrow, .band--ink .eyebrow { color: var(--yellow); }
.band--teal a, .band--deep a, .band--ink a { color: var(--yellow); }
.band--teal a:hover, .band--deep a:hover, .band--ink a:hover { color: var(--cream); }
.band--teal .muted, .band--deep .muted, .band--ink .muted { color: var(--mist); }
.band--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: .01em;
  text-decoration: none;
  padding: .95rem 1.9rem;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-deep); color: var(--ink); }
/* On dark bands the generic `.band--teal a { color: yellow }` rule outweighs
   .btn--primary (class+element beats class), turning button text yellow-on-yellow.
   These higher-specificity rules keep button text ink in every state. */
.band--teal .btn--primary, .band--deep .btn--primary, .band--ink .btn--primary,
.band--teal .btn--primary:hover, .band--deep .btn--primary:hover, .band--ink .btn--primary:hover { color: var(--ink); }
.btn--ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--ghost:hover { background: var(--teal); color: var(--cream); }
.band--teal .btn--ghost, .band--deep .btn--ghost, .band--ink .btn--ghost { border-color: var(--cream); color: var(--cream); }
.band--teal .btn--ghost:hover, .band--deep .btn--ghost:hover, .band--ink .btn--ghost:hover { background: var(--cream); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-top: 2rem; }
.btn-note { font-size: .875rem; color: var(--muted); margin-top: .75rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 243, 220, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-deep);
}
.site-header .wrap {
  max-width: 72rem; margin: 0 auto; padding: .8rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.site-logo { flex: 0 0 auto; }
.site-logo img { width: clamp(150px, 16vw, 190px); height: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.site-nav a:hover { color: var(--flame); }
.site-nav a[aria-current="page"] { color: var(--flame); }
.site-nav .btn { padding: .65rem 1.2rem; font-size: .9375rem; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: block; margin-left: auto; background: none; border: 2px solid var(--teal);
    border-radius: 6px; padding: .45rem .7rem; font: inherit; font-weight: 700; color: var(--teal); cursor: pointer;
  }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 2px solid var(--teal);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem var(--gutter); font-size: 1.0625rem; }
  .site-nav .btn { margin: .6rem var(--gutter) 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero { overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero--single .wrap { display: block; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lede { max-width: 34rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- trust bar ---------- */
.trust-bar { background: var(--ink); color: var(--cream); }
.trust-bar .wrap {
  max-width: 72rem; margin: 0 auto; padding: .9rem var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 0;
  font-weight: 600; font-size: .9375rem; text-align: center;
}
.trust-bar span { white-space: nowrap; }
.trust-bar span + span::before { content: "·"; margin: 0 .9rem; color: var(--yellow); }

/* ---------- cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.step-card { border-top: 4px solid var(--orange); padding-top: 1.1rem; }
.step-card .step-no { font-family: var(--font-display); font-size: 2rem; color: var(--orange); display: block; margin-bottom: .35rem; }
.band--teal .step-card { border-top-color: var(--yellow); }
.band--teal .step-card .step-no { color: var(--yellow); }

/* checklist */
.checklist { list-style: none; }
.checklist li { position: relative; padding-left: 2.1rem; margin-bottom: .85rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.25rem; height: 1.25rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M 77 26 L 38 85 L 4 33 L 28 33 L 38 47 L 52 26 C 52 26 61 9 82 9 L 100 9 C 87 9 76 27 76 27 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M 77 26 L 38 85 L 4 33 L 28 33 L 38 47 L 52 26 C 52 26 61 9 82 9 L 100 9 C 87 9 76 27 76 27 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--orange);
}
.band--teal .checklist li::before, .band--deep .checklist li::before { color: var(--yellow); }

/* prerequisite gate */
.gate {
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--yellow);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.gate h2 { color: var(--ink); }

/* honesty block */
.flat-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 720px) { .flat-list { grid-template-columns: 1fr; } }
.flat-list h3 { border-bottom: 2px solid var(--flame); display: inline-block; padding-bottom: .2rem; margin-bottom: .6rem; }

/* price */
.price-big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  color: var(--yellow);
  display: block;
  margin-bottom: 1rem;
}
.compare { list-style: none; border-top: 1px solid rgba(250,243,220,.25); }
.compare li { border-bottom: 1px solid rgba(250,243,220,.25); padding: 1rem 0; display: flex; gap: 1.5rem; justify-content: space-between; flex-wrap: wrap; }
.compare .n { font-weight: 800; white-space: nowrap; color: var(--yellow); }
.band--cream .compare, .band--paper .compare { border-color: rgba(0,22,28,.15); }
.band--cream .compare li, .band--paper .compare li { border-color: rgba(0,22,28,.15); }
.band--cream .compare .n, .band--paper .compare .n { color: var(--flame); }

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(0,22,28,.14); padding: 1.1rem 0; }
.faq-item h3 { margin-bottom: .4rem; }
details.faq-item summary {
  cursor: pointer; font-weight: 800; font-size: 1.125rem; color: var(--ink);
  list-style: none; position: relative; padding-right: 2rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-family: var(--font-display); font-size: 1.4rem; color: var(--flame);
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item[open] summary { margin-bottom: .6rem; }

/* two-column compare (bike-fit page) */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 720px) { .vs { grid-template-columns: 1fr; } }
.vs .col { border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); }
.vs .col--can { background: var(--cream); }
.vs .col--cant { background: var(--ink); color: var(--cream); }
.vs .col--cant h3 { color: var(--yellow); }
.vs ul { list-style: none; margin-top: .8rem; }
.vs li { padding: .45rem 0; border-bottom: 1px solid rgba(0,22,28,.1); }
.vs .col--cant li { border-color: rgba(250,243,220,.18); }
.vs li:last-child { border-bottom: none; }

/* quote pull */
.pull {
  border-left: 6px solid var(--yellow);
  padding: .4rem 0 .4rem 1.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  max-width: 46rem;
}
.band--teal .pull, .band--deep .pull { color: var(--cream); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 56rem; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band p { max-width: 36rem; margin-left: auto; margin-right: auto; }

/* footer */
.site-footer { background: var(--teal-dark); color: var(--mist); font-size: .9375rem; }
.site-footer .wrap { max-width: 72rem; margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--cream); font-size: .8125rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand img { width: 170px; margin-bottom: 1rem; }
.footer-brand p { max-width: 22rem; }
.footer-legal { border-top: 1px solid rgba(207,215,217,.2); padding-top: 1.5rem; font-size: .8125rem; color: rgba(207,215,217,.75); }
.footer-legal a { text-decoration: underline; }

/* ---------- page furniture ---------- */
.page-hero { padding-top: clamp(3rem, 6vw, 5rem); }
.anchor-offset { scroll-margin-top: 90px; }

/* legal pages */
.legal-body h2 { font-family: var(--font-body); font-weight: 800; font-size: 1.375rem; text-transform: none; letter-spacing: 0; margin: 2.2rem 0 .8rem; }
.legal-body table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .9375rem; }
.legal-body th, .legal-body td { border: 1px solid rgba(0,22,28,.2); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.legal-body th { background: var(--cream); }
.legal-note {
  background: var(--cream); border-left: 5px solid var(--orange);
  padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; font-size: .9375rem;
}

/* hood chart hero graphic */
.hero-graphic { position: relative; }
.hero-graphic svg { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 22, 28, .35); }
.hero-graphic figcaption { font-size: .8125rem; color: var(--mist); margin-top: .75rem; text-align: center; }

/* report placeholder (sample-report) */
.report-slot {
  border: 3px dashed var(--teal);
  border-radius: 12px;
  background: var(--paper);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--muted);
}

/* callout rows on sample-report */
.callout { display: grid; grid-template-columns: 1fr; gap: .35rem; border-left: 4px solid var(--orange); padding-left: 1.25rem; margin-bottom: 1.75rem; }
.callout h3 { margin-bottom: 0; }

/* book page */
.widget-frame { border: 0; width: 100%; min-height: 900px; border-radius: 12px; background: var(--paper); box-shadow: 0 10px 40px rgba(0,22,28,.12); }
.book-steps { counter-reset: bs; list-style: none; }
.book-steps li { counter-increment: bs; position: relative; padding-left: 3rem; margin-bottom: 1.2rem; }
.book-steps li::before {
  content: counter(bs);
  position: absolute; left: 0; top: .05rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; display: grid; place-items: center;
}

/* needs-input flag (visible only in source + a subtle marker for Andy) */
.needs-input { outline: 2px dashed var(--lavender); outline-offset: 4px; position: relative; }

/* same-height proportion diagram (home) */
.proportion-figure { margin-top: clamp(2rem, 4.5vw, 3.25rem); }
.proportion-figure svg { width: 100%; height: auto; }
.proportion-figure figcaption {
  font-size: .8125rem;
  color: var(--muted);
  margin-top: .85rem;
  max-width: var(--measure);
}
@media (max-width: 760px) {
  .proportion-figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .proportion-figure svg { width: 900px; max-width: none; }
  .proportion-figure figcaption { position: sticky; left: 0; }
}

/* full-width band copy, set in two columns so the measure stays readable */
/* full band width, so the head, the copy and the figure all share one edge.
   balance keeps the last word off a line of its own if it ever wraps */
.band-head { max-width: none; text-wrap: balance; }
.copy-columns {
  columns: 2;
  column-gap: clamp(2rem, 4vw, 3.5rem);
}
/* bottom margins only: a paragraph landing at the top of column two must not
   carry a leading margin, or the two columns start at different heights */
.copy-columns p { margin: 0 0 1rem; }
.copy-columns p + p { margin-top: 0; }
.copy-columns p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .copy-columns { columns: 1; } }

/* two-column flow for list-like blocks: items stay whole, unlike .copy-columns
   where paragraphs are allowed to break so the columns balance */
.block-columns {
  columns: 2;
  column-gap: clamp(2rem, 4vw, 3.5rem);
}
.block-columns > li, .block-columns > div { break-inside: avoid; }
.block-columns > li:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .block-columns { columns: 1; } }

/* people photos (about) */
.person-photo { margin: 0; max-width: 420px; }
.person-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 22, 28, .18);
}

/* photo plate: monochrome photograph with brand marks overhanging the edge */
.photo-plate { position: relative; margin: 0; }
.photo-plate img { width: 100%; height: auto; display: block; border-radius: 4px; }
.photo-plate .photo-plate__marks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;   /* lets a mark sit past the photo, on the band behind */
  pointer-events: none;
}
.photo-plate figcaption { font-size: .8125rem; color: var(--muted); margin-top: .85rem; max-width: var(--measure); }
.photo-plate .m-flame  { fill: var(--flame); }
.photo-plate .m-teal   { fill: var(--teal); }
.photo-plate .m-yellow { fill: var(--yellow); }
.photo-plate .m-cream  { fill: var(--cream); }
/* over a dark photograph, or on a teal band, the darkest marks flip to cream */
.photo-plate--dark .m-teal { fill: var(--cream); }
.photo-plate--dark .m-cream { fill: var(--teal); }
.band--teal .photo-plate figcaption { color: var(--mist); }
@media (max-width: 640px) {
  /* marks scale with the photo, so shrink them rather than let them crowd it */
  .photo-plate .photo-plate__marks { transform: scale(.82); transform-origin: center; }
}

/* photo plate beside a column of text */
.plate-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: 1.5rem;
}
.plate-row .photo-plate { max-width: 460px; }
@media (max-width: 760px) {
  .plate-row { grid-template-columns: 1fr; }
  .plate-row .photo-plate { max-width: none; }
}

/* brand shape fills, mapped from the kit's own hexes onto the site tokens */
.photo-plate .m-orange { fill: var(--orange); }
.photo-plate .m-paper  { fill: var(--paper); }

/* photo on the right instead of the left */
.plate-row--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.plate-row--reverse .photo-plate { order: 2; margin-left: auto; }
.band--ink .photo-plate figcaption { color: var(--mist); }
