/* Calvin Digital — site styles
   Palette taken from Canadian road signage and asphalt:
   sign green, asphalt, lane-line yellow, reflective white, kerb grey. */
:root {
  --sign-green: #00684A;
  --sign-green-deep: #004D37;
  --asphalt: #23272B;
  --lane-yellow: #F2C230;
  --reflective: #F4F7F5;
  --kerb: #C9D1CD;
  --ink: #1C2024;
  --ink-soft: #4A5257;
  --white: #FFFFFF;

  --measure: 66ch;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.6rem, 6vw, 4.25rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--reflective);
}

a { color: var(--sign-green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lane-yellow); outline-offset: 3px; border-radius: 2px; }

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

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  background: var(--sign-green);
  color: var(--white);
  border-bottom: 4px solid var(--white);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.9rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--white); text-decoration: none;
  font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; white-space: nowrap;
}
.brand-mark {
  width: 1.9rem; height: 1.9rem; border: 2px solid var(--white); border-radius: 0.35rem;
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lane-yellow); text-decoration-thickness: 2px; }

/* ---------- hero (home) ---------- */
.hero {
  background: var(--sign-green);
  color: var(--white);
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3.5rem, 9vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero .wrap { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.15fr 1fr; } }
.hero h1 {
  font-size: var(--step-4); line-height: 1.02; font-weight: 800; letter-spacing: -0.015em;
  margin: 0 0 1.1rem; max-width: 14ch;
}
.hero p { font-size: var(--step-1); line-height: 1.45; margin: 0; max-width: 34ch; color: #E3EFEA; }

/* The odometer: the one memorable element on the page */
.odometer-panel { justify-self: start; }
@media (min-width: 52rem) { .odometer-panel { justify-self: end; } }
.odometer {
  display: inline-flex; gap: 0.3rem; padding: 0.7rem;
  background: var(--asphalt); border-radius: 0.6rem;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.06), 0 0 0 3px var(--white);
}
.odometer .digit {
  width: clamp(2.3rem, 6vw, 3.4rem); height: clamp(3.2rem, 8.5vw, 4.6rem);
  background: #15181B; color: var(--white); border-radius: 0.3rem;
  overflow: hidden; position: relative;
  font-weight: 800; font-size: clamp(2rem, 5.6vw, 3.1rem); font-variant-numeric: tabular-nums;
}
.odometer .digit.tenth { background: var(--lane-yellow); color: var(--asphalt); }
.odometer .reel { display: flex; flex-direction: column; }
.odometer .reel span { height: clamp(3.2rem, 8.5vw, 4.6rem); display: grid; place-items: center; }
.odometer .digit::after { /* drum shading */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,0.35), transparent 28%, transparent 72%, rgba(0,0,0,0.35));
}
.odometer .sep { align-self: center; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--white); }
@media (min-width: 52rem) {
  .odometer .digit { width: 4.1rem; height: 5.6rem; font-size: 3.8rem; }
  .odometer .reel span { height: 5.6rem; }
}
.odometer-caption { margin: 1.5rem 0 0; font-size: var(--step--1); color: #CFE3DA; max-width: 30ch; }

@media (prefers-reduced-motion: no-preference) {
  .odometer .reel { transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
}

/* ---------- sections ---------- */
main { display: block; }
.section { padding-block: clamp(3rem, 7vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--kerb); }
.section h2 { font-size: var(--step-3); line-height: 1.1; font-weight: 800; margin: 0 0 1rem; letter-spacing: -0.01em; max-width: 22ch; }
.section .lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 40ch; margin: 0 0 2.25rem; }

.facts { display: grid; gap: 2rem 3rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 46rem) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { border-left: 4px solid var(--sign-green); padding-left: 1rem; }
.facts h3 { font-size: var(--step-1); line-height: 1.25; margin: 0 0 0.4rem; font-weight: 800; }
.facts p { margin: 0; color: var(--ink-soft); }

.status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--white); border: 2px solid var(--asphalt); border-radius: 0.4rem;
  padding: 0.55rem 0.9rem; font-weight: 700; margin-top: 2.25rem;
}
.status .dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--lane-yellow); box-shadow: 0 0 0 2px var(--asphalt); }

.split { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split p { margin: 0 0 1rem; max-width: var(--measure); }

.button {
  display: inline-block; background: var(--sign-green); color: var(--white);
  font-weight: 700; text-decoration: none; padding: 0.75rem 1.2rem; border-radius: 0.4rem;
}
.button:hover { background: var(--sign-green-deep); }

/* ---------- document pages (privacy, terms, support) ---------- */
.doc-head { background: var(--sign-green); color: var(--white); padding-block: 2.75rem 2.25rem; }
.doc-head h1 { font-size: var(--step-3); line-height: 1.1; margin: 0 0 0.5rem; font-weight: 800; max-width: 24ch; }
.doc-head p { margin: 0; color: #DCEBE4; }
.doc { padding-block: 2.5rem 4rem; }
.doc > * { max-width: var(--measure); }
.doc h2 { font-size: var(--step-2); line-height: 1.2; margin: 2.5rem 0 0.6rem; font-weight: 800; }
.doc h3 { font-size: var(--step-1); margin: 1.6rem 0 0.4rem; font-weight: 700; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }
.doc table { border-collapse: collapse; width: 100%; max-width: var(--measure); margin: 1rem 0 1.5rem; font-size: var(--step--1); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--kerb); }
.doc th { background: var(--white); font-weight: 700; }
.doc .note { background: var(--white); border-left: 4px solid var(--lane-yellow); padding: 0.9rem 1rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--asphalt); color: #D5DBD8; padding-block: 2.5rem; font-size: var(--step--1); }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 46rem) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: var(--white); }
.site-footer h2 { font-size: var(--step-0); color: var(--white); margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer p { margin: 0 0 0.4rem; }
