/* THR0TTLE — throttle-group.com
   "The Night Ride Dashboard": void-black ground, machined graphite,
   one gold needle. Condensed motorsport display type, hairline rules,
   speedo tick marks and a real route line — no icon-card grid, no
   eyebrow labels, no emoji, no gradient text. */

@font-face { font-family: "Barlow"; src: url("../assets/fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../assets/fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../assets/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../assets/fonts/BarlowCondensed-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../assets/fonts/BarlowCondensed-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --ink: #09090b;
  --graphite: #17181d;
  --gunmetal: #23242b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --white: #f8f8fa;
  --silver: #b8bbc7;
  --dim: #7e8698;
  --gold: #d4af37;
  --gold-2: #f5d773;
  --gold-deep: #a5851f;
  --purple: #2a0a4a;
  --purple-light: #6b21a8;
  --purple-glow: #8b5cf6;
  --error: #ef4444;
  --success: #22c55e;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, sans-serif;
  --measure: 62ch;
  --rule: 1px solid var(--border);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px; line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Film grain — the one texture. Fixed, cheap, subtle. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--gold); color: var(--ink); }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-deep); }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 32px 24px 80px; position: relative; z-index: 2; }

h1, h2, h3, .display {
  font-family: var(--display); text-transform: uppercase; line-height: .95;
  letter-spacing: -0.01em; font-weight: 800; text-wrap: balance;
}
h1 { font-size: clamp(56px, 11vw, 148px); letter-spacing: -0.02em; }
h2 { font-size: clamp(36px, 5.5vw, 64px); }
h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.zero { color: var(--gold-2); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--silver); max-width: var(--measure); }
.muted { color: var(--silver); }
.num { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- header ---------- */
header {
  display: flex; align-items: center; gap: 14px; padding: 14px 24px;
  background: rgba(9, 9, 11, .82); backdrop-filter: blur(12px);
  border-bottom: var(--rule); position: sticky; top: 0; z-index: 50;
}
.burger { background: none; border: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger:hover { background: var(--gunmetal); }
.burger span { display: block; width: 22px; height: 2px; background: var(--white); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--white); text-transform: uppercase; }
.nav-links { display: flex; gap: 2px; margin-left: 10px; }
.nav-links a { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--silver); padding: 10px 14px; border-radius: 8px; }
.nav-links a:hover { color: var(--white); background: var(--gunmetal); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--silver); }
.pill-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  border: none; cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.pill-cta { background: var(--gold); color: var(--ink) !important; font-size: 14px; padding: 10px 18px; border-radius: 6px; }
.pill-cta:hover { background: var(--gold-2); }
@media (max-width: 760px) { .nav-links { display: none; } .header-right #who { display: none; } }

/* ---------- drawer ---------- */
.drawer { position: fixed; top: 0; left: -320px; width: 300px; height: 100vh; background: var(--graphite); border-right: var(--rule); transition: left .25s ease; z-index: 100; padding: 24px 0; display: flex; flex-direction: column; }
.drawer.open { left: 0; }
.drawer a { color: var(--white); padding: 14px 26px; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 18px; display: flex; align-items: center; gap: 12px; }
.drawer a:hover { background: var(--gunmetal); color: var(--gold-2); }
.drawer .drawer-title { padding: 0 26px 18px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .04em; }
.drawer .spacer { flex: 1; }
.drawer .muted { color: var(--silver); font-size: 12px; padding: 12px 26px; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }

/* ---------- buttons, forms, cards ---------- */
.btn { background: var(--gold); color: var(--ink); font-size: 16px; padding: 15px 26px; border-radius: 6px; width: 100%; }
.btn:hover { background: var(--gold-2); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(212,175,55,.18); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: transparent; color: var(--white); border: 1px solid var(--border-strong); }
.btn.secondary:hover { background: var(--gunmetal); box-shadow: none; }
.btn.small { width: auto; padding: 10px 16px; font-size: 14px; }
.btn.danger { background: var(--error); color: #fff; }
.btn.success { background: var(--success); color: #0b2413; }
.btn.wide { width: auto; min-width: 260px; }
label { display: block; font-size: 13px; color: var(--silver); margin: 16px 0 6px; font-weight: 500; letter-spacing: .02em; }
input, select, textarea { width: 100%; background: var(--graphite); border: 1px solid var(--border); border-radius: 8px; color: var(--white); padding: 13px 14px; font-size: 16px; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--purple-glow); border-color: transparent; }
input::placeholder, textarea::placeholder { color: var(--dim); }
.msg { margin-top: 14px; font-size: 14px; padding: 10px 14px; border-radius: 8px; display: none; }
.msg.err { display: block; background: rgba(239,68,68,.12); color: var(--error); }
.msg.ok { display: block; background: rgba(34,197,94,.12); color: var(--success); }
.card { background: var(--graphite); border: var(--rule); border-radius: 12px; padding: 28px; margin-bottom: 20px; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.card h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--silver); font-size: 15px; line-height: 1.6; }
.card p + p { margin-top: 10px; }
.kicker { display: none; } /* retired: headings carry their own weight */

/* ---------- page header (secondary pages) ---------- */
.page-head { padding: 24px 0 28px; border-bottom: var(--rule); margin-bottom: 28px; }
.page-head h1 { font-size: clamp(40px, 7vw, 84px); }
.page-head p { margin-top: 10px; color: var(--silver); max-width: var(--measure); font-size: 17px; }

/* ---------- hero ---------- */
.hero {
  position: relative; margin: -32px -24px 0; padding: clamp(56px, 9vw, 120px) 24px clamp(48px, 7vw, 96px);
  overflow: hidden; border-bottom: var(--rule);
}
.hero::before { /* purple depth, off-centre like a headlight sweep */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 78% 20%, rgba(107,33,168,.45) 0%, rgba(42,10,74,.35) 35%, transparent 70%);
}
.hero-grid { position: relative; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin: 6px 0 22px; }
.hero h1 span { display: block; }
.hero h1 .line-2 { color: var(--silver); }
.hero h1 .line-3 { color: var(--gold-2); }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-cta .btn { width: auto; }
.hero-note { font-size: 13px; color: var(--dim); margin-top: 16px; }
.hero-note strong { color: var(--silver); font-weight: 500; }
.hero-logo { height: 92px; width: 168px; object-fit: cover; object-position: 50% 0; opacity: .95; filter: drop-shadow(0 8px 24px rgba(139,92,246,.35)); }

/* Ride card mock — a real fragment of the app, not a device frame */
.ride-stack { position: relative; }
.ride-card {
  background: linear-gradient(180deg, #1b1c22, #141519); border: var(--rule); border-radius: 20px; padding: 18px 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02) inset;
  transform: rotate(-2deg); max-width: 380px; margin-left: auto;
}
.ride-card + .ride-card { transform: rotate(2.5deg) translate(-24px, -18px); max-width: 340px; background: var(--graphite); }
.ride-card .tag { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--gold-2); }
.ride-card h3 { font-size: 26px; margin: 4px 0 8px; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 600; }
.ride-card .meta { color: var(--silver); font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.ride-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.ride-card .meta svg { width: 14px; height: 14px; stroke: var(--gold); }
.ride-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: var(--rule); }
.avatars { display: flex; }
.avatars span { width: 28px; height: 28px; border-radius: 50%; background: var(--gunmetal); border: 2px solid #141519; margin-left: -8px; font: 600 11px/24px var(--body); text-align: center; color: var(--silver); }
.avatars span:first-child { margin-left: 0; }
.ride-card .go { font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px; font-size: 13px; }
.sos-card { border-color: rgba(239,68,68,.35); }
.sos-card .tag { color: var(--error); }
.sos-card .count { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--error); line-height: 1; font-variant-numeric: tabular-nums; }
.sos-card .ok { background: var(--success); color: #0b2413; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: var(--rule); }
section:last-of-type { border-bottom: none; }
.section-title { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; margin-bottom: clamp(28px, 4vw, 48px); }
.section-title .idx { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .2em; color: var(--gold); padding-top: 12px; border-top: 2px solid var(--gold); }
.section-title h2 { max-width: 14ch; }
.section-title p { grid-column: 2; color: var(--silver); max-width: var(--measure); font-size: 17px; }

/* Speedo ticks — a ruler of gold marks used as section decoration */
.ticks { height: 14px; background-image: repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 60px); background-size: 100% 6px, 100% 14px; background-repeat: repeat-x; background-position: 0 100%, 0 100%; opacity: .7; margin-bottom: 24px; }

/* How a Sunday works — route line with waypoints */
.route { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 8px; }
.route::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; border-top: 2px dashed var(--gold-deep); opacity: .8; }
.wp { position: relative; padding-top: 40px; }
.wp::before { content: ""; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); box-shadow: 0 0 0 6px var(--ink); }
.wp:last-child::before { background: var(--gold); box-shadow: 0 0 0 6px var(--ink), 0 0 24px rgba(212,175,55,.5); }
.wp .t { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.wp .t small { color: var(--gold); font-size: 13px; letter-spacing: .16em; margin-right: 8px; }
.wp p { color: var(--silver); font-size: 15px; line-height: 1.5; }

/* Feature ledger — editorial rows, not icon cards */
.ledger { border-top: var(--rule); }
.row { display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: 24px; padding: 30px 0; border-bottom: var(--rule); align-items: start; }
.row .n { font-family: var(--display); font-weight: 800; font-size: 48px; color: var(--gold); line-height: .9; font-variant-numeric: tabular-nums; }
.row h3 { font-size: clamp(26px, 3vw, 36px); }
.row p { color: var(--silver); font-size: 16px; max-width: 56ch; }
.row .free { display: inline-block; margin-top: 10px; font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--success); border: 1px solid rgba(34,197,94,.35); padding: 4px 10px; border-radius: 4px; }
.row .prem { color: var(--gold-2); border-color: rgba(212,175,55,.4); }

/* Ride Guard — the one panel that gets colour */
.guard { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px; border-radius: 16px; background: linear-gradient(135deg, rgba(239,68,68,.12), rgba(239,68,68,.03)); border: 1px solid rgba(239,68,68,.35); }
.guard h2 { color: var(--white); }
.guard h2 em { font-style: italic; color: var(--error); }
.guard p { color: var(--silver); font-size: 16px; }
.guard .steps { display: grid; gap: 14px; }
.guard .step { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.guard .step b { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--error); line-height: 1; }
.guard .step p { font-size: 15px; }
.guard .disclaimer { font-size: 13px; color: var(--dim); margin-top: 14px; }

/* Pricing — a menu, with dotted leaders */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { border: var(--rule); border-radius: 16px; padding: 30px; background: var(--graphite); position: relative; }
.plan.featured { border-color: rgba(212,175,55,.5); box-shadow: 0 0 0 1px rgba(212,175,55,.15), 0 30px 60px rgba(0,0,0,.45); }
.plan .name { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .16em; text-transform: uppercase; color: var(--silver); }
.plan .price { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 7vw, 80px); line-height: 1; margin: 10px 0 2px; letter-spacing: -0.02em; }
.plan.featured .price { color: var(--gold-2); }
.plan .per { color: var(--dim); font-size: 14px; margin-bottom: 20px; }
.plan .per strong { color: var(--silver); font-weight: 500; }
.plan ul { list-style: none; margin: 0 0 22px; }
.plan li { display: flex; align-items: baseline; gap: 8px; font-size: 15px; color: var(--silver); padding: 7px 0; }
.plan li .dots { flex: 1; border-bottom: 1px dotted var(--border-strong); transform: translateY(-4px); }
.plan li .v { color: var(--white); font-weight: 500; white-space: nowrap; }
.plan .stamp { position: absolute; top: -12px; right: 22px; background: var(--gold); color: var(--ink); font-family: var(--display); font-weight: 800; letter-spacing: .12em; font-size: 12px; padding: 5px 10px; border-radius: 4px; transform: rotate(2deg); }
.plan .btn { width: 100%; }

/* Story — pull quote block */
.story { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.story blockquote { font-family: var(--display); font-weight: 700; font-style: italic; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; text-transform: none; letter-spacing: 0; color: var(--white); border-left: 4px solid var(--gold); padding-left: 22px; }
.story cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--body); font-size: 14px; color: var(--silver); }
.story p { color: var(--silver); font-size: 16px; }
.story p + p { margin-top: 12px; }

/* Partners strip */
.partners { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 30px; border: var(--rule); border-radius: 16px; background: var(--graphite); }
.partners h3 { text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 600; font-size: 22px; }
.partners p { color: var(--silver); margin-top: 6px; }
.partners .types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.partners .types span { font-size: 13px; color: var(--silver); border: 1px solid var(--border-strong); padding: 5px 10px; border-radius: 4px; }

/* Final band */
.cta-band { margin: 0 -24px -80px; padding: clamp(64px, 9vw, 120px) 24px; text-align: center; position: relative; overflow: hidden; background: radial-gradient(70% 90% at 50% 100%, rgba(107,33,168,.5), rgba(42,10,74,.3) 45%, var(--ink) 80%); }
.cta-band h2 { font-size: clamp(40px, 8vw, 104px); }
.cta-band p { color: var(--silver); margin: 14px 0 28px; font-size: 17px; }
.cta-band .btn { width: auto; }

/* Tables (admin) */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: var(--rule); }
th { color: var(--silver); font-weight: 600; }
.pill { padding: 3px 10px; border-radius: 4px; font-family: var(--display); letter-spacing: .1em; font-size: 12px; font-weight: 700; }
.pill.pending { background: rgba(212,175,53,.15); color: var(--gold-2); }
.pill.approved { background: rgba(34,197,94,.15); color: var(--success); }
.pill.rejected { background: rgba(239,68,68,.15); color: var(--error); }
.pill.up { background: rgba(34,197,94,.15); color: #4ade80; }
.pill.past { background: rgba(255,255,255,.08); color: var(--silver); }

footer { border-top: var(--rule); padding: 28px 24px; text-align: center; color: var(--dim); font-size: 13px; position: relative; z-index: 2; }
footer a { margin: 0 8px; color: var(--silver); }
footer a:hover { color: var(--gold-2); }

/* ---------- motion: reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .guard, .story, .plans { grid-template-columns: 1fr; }
  .ride-card, .ride-card + .ride-card { margin: 0 auto; transform: none; max-width: 420px; }
  .ride-card + .ride-card { margin-top: 14px; }
  .route { grid-template-columns: 1fr; gap: 14px; }
  .route::before { left: 13px; right: auto; top: 14px; bottom: 30px; border-top: none; border-left: 2px dashed var(--gold-deep); }
  .wp { padding: 0 0 0 44px; }
  .row { grid-template-columns: 1fr; row-gap: 6px; padding: 24px 0; }
  .row .n { font-size: 22px; line-height: 1; }
  .row > div { grid-column: 1; }
  .partners { grid-template-columns: 1fr; }
  .section-title { grid-template-columns: 1fr; }
  .section-title p { grid-column: 1; }
}
@media (max-width: 480px) {
  main { padding: 24px 18px 64px; }
  .hero { margin: -24px -18px 0; padding-left: 18px; padding-right: 18px; }
  .cta-band { margin: 0 -18px -64px; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- accessibility ---------- */
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold-2); color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 700; z-index: 200; }
.skip-link:focus { left: 16px; outline: 3px solid #fff; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, .kpi:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-contrast: more) { :root { --silver: #d9dbe3; --dim: #b8bbc7; --border: rgba(255,255,255,.35); } }

/* Skeleton shimmer — placeholder while a line of content loads. */
.skel{display:inline-block;height:.9em;width:14ch;vertical-align:middle;border-radius:6px;
  background:linear-gradient(90deg,var(--gunmetal) 25%,var(--border-strong) 50%,var(--gunmetal) 75%);
  background-size:200% 100%;animation:skel 1.2s linear infinite}
@keyframes skel{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.skel{animation:none;opacity:.7}}
