/* Tenths — tenths.clayj.app
   Road-sign green, odometer black, one yellow tenths drum. Overpass is drawn from Highway Gothic. */

:root {
  --sign: #006B45;
  --sign-deep: #0B5236;
  --night: #14191A;
  --night-raised: #1F2728;
  --signal: #F6C32E;
  --ground: #EEF1EF;
  --mint: #E3F1EA;
  --ink: #14191A;
  --ink-soft: #4A5654;
  --on-sign: #FFFFFF;
  --on-sign-soft: #D7EDE2;
  --line: #CBD4D0;
  --radius-sign: 28px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Overpass", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}

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

a { color: var(--sign); text-underline-offset: 3px; }
a:hover { color: var(--sign-deep); }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Brand mark ---------- */

.mark { display: inline-flex; gap: 3px; padding: 4px; background: var(--night); border-radius: 7px; }
.mark i { display: block; width: 9px; height: 16px; border-radius: 2px; background: #3A4445; }
.mark i:last-child { background: var(--signal); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px;
         letter-spacing: -0.3px; color: inherit; text-decoration: none; }

/* ---------- Hero: a green guide sign ---------- */

.hero { background: var(--sign); color: var(--on-sign); padding: 14px; }

.sign {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  border: 2.5px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-sign);
  padding: 22px var(--gutter) 0;
  overflow: hidden;
}

.hero-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-nav a { color: var(--on-sign); }
.hero-nav nav { display: flex; gap: 22px; font-weight: 700; font-size: 16px; }
.hero-nav nav a { text-decoration: none; }
.hero-nav nav a:hover { text-decoration: underline; color: var(--on-sign); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding-top: clamp(40px, 7vw, 84px);
}

.hero h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}

.hero .lede {
  margin: 22px 0 0;
  max-width: 32ch;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.45;
  color: var(--on-sign-soft);
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border-radius: 16px;
  background: var(--signal); color: var(--night);
  font-weight: 900; font-size: 18px; text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}
.button:hover { color: var(--night); background: #FFD24D; }
.button svg { width: 20px; height: 20px; }

.cta-note { font-size: 16px; font-weight: 600; color: var(--on-sign-soft); }

/* ---------- Odometer ---------- */

.odometer {
  display: inline-flex; align-items: flex-end; gap: 6px;
  margin-top: clamp(36px, 6vw, 64px);
  padding: 12px 14px;
  background: var(--night);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.odometer .drum {
  position: relative; width: 44px; height: 62px; overflow: hidden;
  border-radius: 9px; background: #2A3334;
}
.odometer .drum::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0) 26%, rgba(0,0,0,0) 74%, rgba(0,0,0,0.5));
}
.odometer .drum.tenths { background: var(--signal); }
.odometer .strip {
  display: flex; flex-direction: column;
  font-family: "Overpass Mono", ui-monospace, Menlo, monospace;
  font-weight: 700; font-size: 40px; line-height: 62px; text-align: center;
  color: #FFFFFF;
  transition: transform 2.2s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.odometer .drum.tenths .strip { color: var(--night); transition-duration: 0.6s; }
.odometer .point { width: 7px; height: 7px; margin: 0 1px 9px; border-radius: 50%; background: #FFFFFF; }
.odometer-label { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--on-sign-soft); }

/* ---------- Phones ---------- */

.phone {
  position: relative;
  width: 100%;
  max-width: 330px;
  padding: 10px;
  background: #0E1112;
  border-radius: 54px;
  box-shadow: 0 0 0 1.5px #3A4445 inset, 0 30px 60px rgba(0, 0, 0, 0.3);
}
.phone img { border-radius: 44px; width: 100%; }

.hero-copy { padding-bottom: clamp(28px, 4vw, 48px); }

/* The phone rises out of the bottom edge of the sign. */
.hero-phone { justify-self: center; margin-bottom: -200px; }
.hero-phone .phone { max-width: 360px; }

/* ---------- Sections ---------- */

section { padding: clamp(72px, 10vw, 128px) 0; }

h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.section-lede { margin: 18px 0 0; max-width: 46ch; font-size: 20px; color: var(--ink-soft); }

/* How it works: a real sequence */
.steps { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0;
         display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.steps li { display: flex; flex-direction: column; gap: 22px; }
.step-head { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--night); color: var(--signal);
  font-family: "Overpass Mono", ui-monospace, monospace; font-weight: 700; font-size: 18px;
}
.steps h3 { margin: 2px 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.steps .phone { max-width: 300px; }

/* Rates */
.rates { background: var(--mint); }
.rate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.rate-sign {
  justify-self: center;
  width: min(100%, 380px);
  background: #FFFFFF; color: var(--night);
  border: 4px solid var(--night); border-radius: 22px;
  padding: 26px 26px 22px; text-align: center;
  box-shadow: 0 0 0 8px #FFFFFF, 0 20px 40px rgba(20, 25, 26, 0.16);
}
.rate-sign .what { font-weight: 800; font-size: 20px; line-height: 1.2; }
.rate-sign .big { font-weight: 900; font-size: 116px; line-height: 1; letter-spacing: -0.04em; margin: 8px 0 2px; }
.rate-sign .big span { font-size: 52px; letter-spacing: 0; vertical-align: 0.95em; }
.rate-sign .when { font-weight: 700; font-size: 18px; }
.rate-sign .before { margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--line);
                     font-weight: 600; font-size: 16px; color: var(--ink-soft); }

/* Privacy */
.private { background: var(--night); color: #FFFFFF; }
.private .section-lede { color: #C9D3D0; }
.facts { margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.facts div { padding: 4px 28px 4px 0; }
.facts div + div { padding-left: 28px; border-left: 1px solid #2E3839; }
.facts dt { font-weight: 800; font-size: 20px; }
.facts dd { margin: 6px 0 0; color: #A9B4B1; font-size: 17px; }

/* Switching */
.switch-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.switch-grid .phone { justify-self: center; }

/* Pricing */
.pricing { padding-top: 0; }
.price-panel {
  background: #FFFFFF; border-radius: 26px; padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
}
.price-panel h2 { font-size: clamp(30px, 3.6vw, 44px); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list strong { font-weight: 800; }
.price-list span { color: var(--ink-soft); text-align: right; }

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

footer { background: var(--sign-deep); color: var(--on-sign-soft); padding: 40px 0 48px; font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
footer a { color: #FFFFFF; }
footer a:hover { color: var(--on-sign-soft); }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 700; }
footer .brand { color: #FFFFFF; font-size: 19px; }

/* ---------- Document pages (privacy, support) ---------- */

.doc-top { background: var(--sign); color: #FFFFFF; padding: 14px; }
.doc-top .sign { padding-bottom: 40px; }
.doc-top h1 { margin: 44px 0 0; font-weight: 900; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.doc-top .updated { margin: 14px 0 0; color: var(--on-sign-soft); font-weight: 600; }

.doc { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 96px; }
.doc h2 { font-size: 26px; max-width: none; letter-spacing: -0.015em; margin-top: 44px; }
.doc h2:first-child { margin-top: 0; }
.doc p { margin: 10px 0 0; color: var(--ink-soft); }
.doc .contact { margin-top: 48px; padding: 28px; border-radius: 22px; background: var(--night); color: #FFFFFF; }
.doc .contact h2 { margin: 0; color: #FFFFFF; }
.doc .contact p { color: #C9D3D0; }
.doc .contact a { color: var(--signal); font-weight: 800; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .hero-grid, .rate-grid, .switch-grid, .price-panel { grid-template-columns: minmax(0, 1fr); }
  .hero-phone { margin-bottom: -150px; }
  .hero-phone .phone { max-width: 300px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps .phone { max-width: 280px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .facts div, .facts div + div { padding: 0; border-left: 0; }
  .hero-nav nav { gap: 16px; }
}

@media (max-width: 420px) {
  .odometer { gap: 4px; padding: 10px; }
  .odometer .drum { width: 34px; height: 50px; }
  .odometer .strip { font-size: 32px; line-height: 50px; }
  .hero-nav nav a.hide-small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .odometer .strip { transition: none; }
}
