/* AVB RaceLabs — the Redline Motorsport system, rebuilt as plain CSS.
   Tokens and patterns follow design/redline-design.md: flat colour blocks,
   heavy 2px rules, Bebas Neue display, mono labels, square corners. */

@font-face { font-family: "Bebas Neue"; src: url("/fonts/bebas-neue-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --dark: #0B0B0B;
  --paper: #F5F2EC;
  --light: #E8E3D8;
  --text: #15171B;
  --red: #E10600;
  --red-hover: #C30A0A;
  /* Text-safe reds: #E10600 is fine for big type and fills, but small red
     text needs #C30A0A on paper (5.6:1) and a lighter red on black (6:1). */
  --accent-text: #C30A0A;
  --on-red: #FFFFFF;
  --yellow: #FFD000;
  --card: #1E1E1E;
  --display: "Bebas Neue", Impact, "Arial Narrow", Arial, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 80rem;
  --gutter: clamp(1.5rem, 4vw, 3rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.7 var(--body); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .95; margin: 0; letter-spacing: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.bg-dark :focus-visible, .bg-red :focus-visible, .site-footer :focus-visible, .plan.rec :focus-visible, .hero :focus-visible, .page-hero :focus-visible { outline-color: var(--yellow); }
.bg-dark, .hero, .page-hero, .site-footer, .plan.rec, .plan.on-dark, .session-panel, .fleet, .cta { --accent-text: #FF5A52; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: var(--paper); padding: .75rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
.red { color: var(--red); }
.mono.red, .mono-sm.red { color: var(--accent-text); }
.yellow { color: var(--yellow); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 64rem; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(6rem, 10vw, 8rem); }
.section-tight { padding-block: clamp(4rem, 7vw, 5rem); }
.bg-dark { background: var(--dark); color: var(--paper); }
.bg-light { background: var(--light); }
.bg-red { background: var(--red); color: var(--on-red); }

/* --- type pieces --------------------------------------------------------- */
.eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; font: 400 .75rem/1.4 var(--mono); letter-spacing: .4em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 3rem; height: 1px; background: var(--red); flex: none; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 3rem; height: 1px; background: var(--red); flex: none; }
.eyebrow.bare::before { display: none; }
.h-hero { font-size: clamp(3.75rem, 11vw, 10rem); }
.h-page { font-size: clamp(3.75rem, 9vw, 8rem); }
.h-section { font-size: clamp(3rem, 6vw, 4.5rem); }
.h-small { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.h-card { font-size: clamp(1.875rem, 3vw, 2.25rem); line-height: 1; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.625; opacity: .85; max-width: 42rem; }
.muted { opacity: .8; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .3em; font-size: .75rem; }
.mono-sm { font-family: var(--mono); text-transform: uppercase; letter-spacing: .3em; font-size: .625rem; }
.num { font-family: var(--body); font-weight: 900; line-height: 1; }

/* --- buttons ------------------------------------------------------------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: .75rem; padding: 1.25rem 2rem; font: 700 .875rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; cursor: pointer; }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-sm { padding: 1rem 1.5rem; font-size: .75rem; }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost { border-color: var(--paper); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--dark); }
.btn-dark { background: var(--dark); color: var(--paper); }
.btn-dark:hover { background: var(--red); }
.bg-red .btn-dark:hover { background: var(--paper); color: var(--dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.link-mono { display: inline-flex; align-items: center; gap: .5rem; font: 400 .75rem/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; text-decoration: none; transition: gap .2s, color .15s; }
.link-mono:hover { gap: .75rem; color: var(--accent-text); }
.link-mono svg { width: 1rem; height: 1rem; }

/* --- header ------------------------------------------------------------- */
.site-header { background: var(--paper); border-bottom: 2px solid var(--text); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 5.875rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 900 1.75rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.brand .mark { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; background: var(--red); color: var(--paper); font-size: 1.1rem; letter-spacing: 0; }
.brand .labs { color: var(--red); }
.nav { display: flex; gap: 2.25rem; font-weight: 500; }
.nav a { text-decoration: none; transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-text); }
.header-cta { display: flex; align-items: center; gap: 1.25rem; }
.header-cta .signin { font-weight: 500; text-decoration: none; }
.header-cta .signin:hover { color: var(--red); }
.header-cta .btn { padding: .65rem .9rem; font-size: .8125rem; letter-spacing: .12em; color: #fff; }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--text); background: none; padding: .7rem .6rem; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--text); margin: 4px 0; }
.menu-btn span:nth-child(2) { width: 75%; }
.menu-btn span:nth-child(3) { width: 50%; }
.drawer { position: fixed; inset: 0; z-index: 40; visibility: hidden; transition: visibility 0s .3s; }
.drawer.open { visibility: visible; transition-delay: 0s; }
@media (min-width: 961px) { .drawer { display: none; } }
.drawer .scrim { position: absolute; inset: 0; background: rgba(11, 11, 11, .55); opacity: 0; transition: opacity .3s; }
.drawer.open .scrim { opacity: 1; }
.drawer .panel { position: absolute; inset: 0 auto 0 0; width: min(22.5rem, 88vw); background: var(--paper); padding: 1.25rem 1.75rem 2rem; transform: translateX(-100%); transition: transform .3s cubic-bezier(.79, .14, .15, .86); display: flex; flex-direction: column; gap: 2rem; }
.drawer.open .panel { transform: none; }
.drawer .close { align-self: flex-end; width: 2.75rem; height: 2.75rem; border: 1px solid var(--text); background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.drawer nav { display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.125rem; font-weight: 500; }
.drawer nav a { text-decoration: none; }
.drawer nav a[aria-current="page"] { color: var(--accent-text); }
@media (max-width: 960px) {
  .site-header .bar { height: 4.5rem; }
  .nav, .header-cta .signin { display: none; }
  .menu-btn { display: block; }
  .header-cta .btn { display: none; }
}

/* --- hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .photo { opacity: .55; mix-blend-mode: luminosity; filter: grayscale(1); }
.shade { position: absolute; inset: 0; }
.shade-br { background: linear-gradient(to bottom right, var(--dark), rgba(11, 11, 11, .7), transparent); }
.shade-b { background: linear-gradient(to bottom, var(--dark), rgba(11, 11, 11, .6), var(--dark)); }
.shade-tr { background: linear-gradient(to top right, var(--dark), rgba(11, 11, 11, .75), transparent); }
.shade-t { background: linear-gradient(to top, var(--dark), rgba(11, 11, 11, .4), transparent); }
.hero .inner { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 100rem; margin: 0 auto; padding: 8rem var(--gutter) 3rem; padding-inline: clamp(1.5rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.hero .top { display: flex; align-items: center; gap: 1.5rem; }
.badge-live { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--red); color: var(--accent-text); background: rgba(11, 11, 11, .6); padding: .3rem .75rem; font: 400 .75rem/1.4 var(--mono); letter-spacing: .3em; text-transform: uppercase; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.hero .tagline { font: 400 clamp(.875rem, 1.2vw, 1rem)/1.5 var(--mono); letter-spacing: .4em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1.5rem; }
.hero .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.hero .coords { text-align: right; font: 400 .75rem/1.8 var(--mono); letter-spacing: .3em; text-transform: uppercase; }
.hero .coords span:first-child { opacity: .7; display: block; }
.hero .coords span:last-child { color: var(--accent-text); }
.hero .coords { background: rgba(11, 11, 11, .65); padding: .5rem .75rem; }
.rail { position: absolute; right: 2rem; top: 33%; z-index: 1; display: none; flex-direction: column; align-items: flex-end; gap: 1.5rem; text-align: right; }
.rail .v { font: 900 3rem/1 var(--body); color: var(--yellow); }
.rail .v.small { font-size: 1.875rem; }
.rail .l { font: 400 .625rem/1.4 var(--mono); letter-spacing: .3em; text-transform: uppercase; opacity: .8; margin-top: .35rem; }
.rail .rule { width: 3rem; height: 1px; background: var(--red); }
@media (min-width: 1024px) { .rail { display: flex; } }
.ticker { position: relative; z-index: 1; background: var(--red); color: var(--on-red); padding: .75rem var(--gutter); display: flex; justify-content: space-around; gap: 2rem; font: 400 clamp(.75rem, 1vw, .875rem)/1.4 var(--mono); letter-spacing: .3em; text-transform: uppercase; }
.ticker span { white-space: nowrap; }
.ticker span:nth-child(n+2) { display: none; }
@media (min-width: 700px) { .ticker span:nth-child(2) { display: inline; } }
@media (min-width: 1280px) { .ticker span:nth-child(n+3) { display: inline; } }

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; }
.page-hero .photo { opacity: .4; }
.page-hero .inner { position: relative; z-index: 1; padding-block: clamp(8rem, 14vw, 12rem); display: flex; flex-direction: column; gap: 2rem; }
.page-hero .lead { font-size: clamp(1.125rem, 1.8vw, 1.5rem); }

/* --- section headers ------------------------------------------------------ */
.split { display: grid; gap: 2rem; margin-bottom: 4rem; align-items: end; }
@media (min-width: 768px) { .split { grid-template-columns: 7fr 5fr; } .split .side { justify-self: end; } }
.split .side.text { opacity: .8; font-size: 1.125rem; line-height: 1.625; }
.center-head { text-align: center; margin-bottom: 3rem; }

/* --- strip of ruled cells (series / principles) ------------------------- */
.strip { display: grid; border-block: 2px solid var(--text); }
.strip > * { position: relative; padding: clamp(2rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; transition: background-color .3s, color .3s; text-decoration: none; }
.strip > * + * { border-top: 2px solid var(--text); }
@media (min-width: 640px) { .strip.c4 { grid-template-columns: 1fr 1fr; } .strip.c4 > *:nth-child(2) { border-top: 0; border-left: 2px solid var(--text); } .strip.c4 > *:nth-child(4) { border-left: 2px solid var(--text); } }
@media (min-width: 1024px) { .strip.c4 { grid-template-columns: repeat(4, 1fr); } .strip.c4 > * + * { border-top: 0; border-left: 2px solid var(--text); } }
@media (min-width: 768px) { .strip.c3 { grid-template-columns: repeat(3, 1fr); } .strip.c3 > * + * { border-top: 0; border-left: 2px solid var(--text); } }
.strip .idx { position: absolute; top: 1.5rem; right: 1.5rem; font: 400 .75rem/1 var(--mono); color: var(--accent-text); letter-spacing: .2em; }
.strip .icon { width: 2.5rem; height: 2.5rem; color: var(--red); }
.strip p { font-size: .875rem; line-height: 1.625; opacity: .8; }
a.cell:hover { background: var(--dark); color: var(--paper); }

/* --- dark cards (the fleet) --------------------------------------------- */
.cards { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c2 { grid-template-columns: repeat(2, 1fr); } }
.fleet { background: var(--card); border: 1px solid var(--card); transition: border-color .3s; display: flex; flex-direction: column; }
.fleet:hover { border-color: var(--red); }
.fleet .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.fleet .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fleet:hover .media img { transform: scale(1.05); }
.tag { position: absolute; top: 1rem; left: 1rem; background: var(--red); color: var(--on-red); padding: .25rem .5rem; font: 400 .625rem/1.4 var(--mono); letter-spacing: .3em; text-transform: uppercase; }
.tag.dark { background: var(--dark); }
.fleet .body { padding: clamp(1.5rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 1.5rem; flex: 1; }
.fleet .body p { font-size: .9375rem; line-height: 1.6; opacity: .8; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(245, 242, 236, .1); }
.specs .v { font: 900 1.5rem/1.1 var(--body); color: var(--red); }
.specs .l { font: 400 .5625rem/1.4 var(--mono); letter-spacing: .25em; text-transform: uppercase; opacity: .7; margin-top: .35rem; }

/* --- red stat band ------------------------------------------------------- */
.band { border-block: 4px solid var(--dark); padding-block: clamp(5rem, 8vw, 7rem); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .icon { width: 1.75rem; height: 1.75rem; }
.stat .v { font: 900 clamp(4.5rem, 7vw, 6rem)/1 var(--body); margin-top: 1rem; }
.stat .bar { width: 3rem; height: 4px; background: var(--dark); margin: 1rem 0 .75rem; }
.stat .l { font: 400 .75rem/1.5 var(--mono); letter-spacing: .3em; text-transform: uppercase; }

/* --- panel + list (next round) ------------------------------------------- */
.duo { display: grid; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .duo { grid-template-columns: 7fr 5fr; } }
.session-panel { position: relative; overflow: hidden; background: var(--dark); color: var(--paper); padding: clamp(2.5rem, 5vw, 4rem); min-height: 25rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.session-panel .photo { opacity: .3; }
.session-panel > :not(.photo):not(.shade) { position: relative; z-index: 1; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font: 400 .875rem/1.4 var(--mono); }
.meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--red); display: inline-block; }
.readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .375rem; }
.readout div { border: 2px solid rgba(245, 242, 236, .9); padding: .9rem .5rem; text-align: center; }
.readout b { display: block; font: 900 1.5rem/1 var(--body); }
.readout span { font: 400 .625rem/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.rows .head { font: 400 .75rem/1.4 var(--mono); letter-spacing: .4em; text-transform: uppercase; margin-bottom: 1rem; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(21, 23, 27, .2); transition: padding .3s, background-color .3s; }
.rows li:first-child { border-top: 1px solid rgba(21, 23, 27, .2); }
.rows li:hover { background: var(--light); padding-inline: .5rem; }
.rows .n { font: 400 .75rem/1 var(--mono); color: var(--accent-text); margin-right: 1rem; letter-spacing: .1em; }
.rows .t { font: 900 1.25rem/1.1 var(--body); text-transform: uppercase; }
.rows .s { display: block; font: 400 .75rem/1.4 var(--mono); opacity: .6; text-transform: uppercase; letter-spacing: .15em; margin-top: .2rem; }
.rows .r { font: 400 .875rem/1.4 var(--mono); text-align: right; }

/* --- people cards (drivers) ---------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 1024px) { .people.c3 { grid-template-columns: repeat(3, 1fr); } .people.c4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .people.c3 { grid-template-columns: 1fr; } }
.person { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--dark); color: var(--paper); text-decoration: none; }
.person img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s, transform .5s; }
.person:hover img { filter: none; transform: scale(1.05); }
.person .shade-t { z-index: 0; }
.person .no { position: absolute; top: 1rem; right: 1.25rem; font: 900 1.875rem/1 var(--body); color: var(--red); }
.person .cap { position: absolute; inset: auto 0 0 0; padding: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.person .cap .mono-sm { color: var(--yellow); }
.person .cap h3 { font: 900 clamp(1.25rem, 2vw, 1.5rem)/1.15 var(--body); text-transform: uppercase; }
.person .cap p { font-size: .875rem; line-height: 1.5; opacity: .85; }

/* --- image + text ("in the garage") -------------------------------------- */
.feature-split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .feature-split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 5rem); } }
.framed { position: relative; }
.framed img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.callout { position: absolute; right: -1.5rem; bottom: -1.5rem; background: var(--red); color: var(--on-red); padding: 1.5rem 2rem; display: none; }
.callout b { display: block; font: 900 3rem/1 var(--body); }
.corner { position: absolute; left: -1.5rem; top: 1.5rem; width: 5rem; height: 5rem; background: var(--dark); color: var(--red); display: none; place-items: center; }
.corner svg { width: 2rem; height: 2rem; }
@media (min-width: 768px) { .callout { display: block; } .corner { display: grid; } }
.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.stack > p:not(.eyebrow) { font-size: 1.125rem; line-height: 1.625; opacity: .85; }
.ticks { display: grid; gap: .75rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.5; }
.ticks li::before { content: ""; width: .5rem; height: .5rem; margin-top: .5rem; background: var(--red); flex: none; }
.ticks.off li { opacity: .55; }
.ticks.off li::before { background: none; border: 1px solid currentColor; }

/* --- pricing -------------------------------------------------------------- */
.plans { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; border: 2px solid var(--text); background: var(--paper); padding: clamp(2rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1.5rem; }
.plan.rec { background: var(--dark); color: var(--paper); border-color: var(--red); }
.plan .badge { position: absolute; top: -.85rem; left: 2rem; background: var(--red); color: var(--on-red); padding: .25rem .75rem; font: 400 .625rem/1.4 var(--mono); letter-spacing: .3em; text-transform: uppercase; }
.plan .price { display: flex; align-items: baseline; gap: .5rem; }
.plan .price b { font: 900 clamp(3.5rem, 5vw, 4.5rem)/1 var(--body); }
.plan .price span { font: 400 .75rem/1 var(--mono); letter-spacing: .25em; text-transform: uppercase; opacity: .7; }
.plan .tagline { opacity: .8; min-height: 3.4em; }
.plan .ticks { flex: 1; align-content: start; }
.plan .btn { justify-content: center; }
.note { font: 400 .8125rem/1.6 var(--mono); opacity: .75; text-align: center; margin-top: 2rem; }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--text); }
table.matrix { width: 100%; min-width: 40rem; border-collapse: collapse; }
table.matrix th, table.matrix td { padding: 1rem .75rem; border-bottom: 1px solid rgba(21, 23, 27, .15); text-align: center; font-variant-numeric: tabular-nums; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; }
table.matrix thead th { font: 400 .6875rem/1.4 var(--mono); letter-spacing: .25em; text-transform: uppercase; border-bottom: 2px solid var(--red); }
table.matrix td.on { color: var(--accent-text); font-weight: 700; }
table.matrix .rec { background: rgba(225, 6, 0, .06); }
.bg-dark table.matrix th, .bg-dark table.matrix td { border-bottom-color: rgba(245, 242, 236, .15); }

/* --- accordion ------------------------------------------------------------ */
.qa { display: grid; gap: .75rem; }
.qa details { border: 1px solid var(--text); background: var(--paper); }
.qa summary { list-style: none; cursor: pointer; padding: 1.1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 500; transition: background-color .15s, color .15s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-25%); transition: transform .2s; flex: none; }
.qa details[open] summary { background: var(--red); color: var(--paper); }
.qa details[open] summary::after { transform: rotate(-135deg); }
.qa .a { padding: 1.1rem 1.5rem; line-height: 1.7; }
.bg-dark .qa details { border-color: var(--red); background: var(--dark); }
.bg-dark .qa summary { background: var(--red); color: var(--paper); }

/* --- CTA band -------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta .photo { opacity: .3; }
.cta .inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.cta .shield { width: 3.5rem; height: 3.5rem; color: var(--red); }
.cta .btn-row { justify-content: center; }
.cta-red { display: flex; flex-direction: column; gap: 2rem; justify-content: space-between; align-items: flex-start; }
@media (min-width: 768px) { .cta-red { flex-direction: row; align-items: center; } }

/* --- hairline grid ------------------------------------------------------- */
.hairline { display: grid; gap: 1px; background: rgba(245, 242, 236, .15); border: 1px solid rgba(245, 242, 236, .15); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hairline .v { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 400px) { .hairline { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .hairline.c4 { grid-template-columns: repeat(4, 1fr); } .hairline.c3 { grid-template-columns: repeat(3, 1fr); } }
.hairline > div { background: var(--dark); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.hairline .v { font: 900 clamp(1.5rem, 2.5vw, 2.25rem)/1.1 var(--body); }
.hairline .rule { width: 2rem; height: 1px; background: var(--red); }
.hairline .l { font: 400 .625rem/1.5 var(--mono); letter-spacing: .25em; text-transform: uppercase; opacity: .75; }

/* --- list table (journals) ------------------------------------------------ */
.list-table { border-top: 2px solid var(--text); }
.list-table li { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid rgba(21, 23, 27, .15); }
.list-table .n { font: 900 1.125rem/1 var(--body); color: var(--red); }
.list-table .t { font-weight: 700; }
.list-table .d { display: block; font-size: .875rem; opacity: .7; font-weight: 400; }
.list-table .cap { font: 400 .75rem/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; text-align: right; }

/* --- store badges (coming soon) ------------------------------------------ */
.stores { display: flex; flex-wrap: wrap; gap: 1rem; }
.store { display: inline-flex; align-items: center; gap: .9rem; min-width: 13.5rem; padding: .85rem 1.25rem; border: 2px solid currentColor; text-decoration: none; }
.store svg { width: 1.75rem; height: 1.75rem; flex: none; }
.store small { display: block; font: 400 .625rem/1.3 var(--mono); letter-spacing: .25em; text-transform: uppercase; opacity: .75; }
.store b { display: block; font-size: 1.125rem; line-height: 1.2; }
.store.soon { opacity: .75; cursor: default; }
a.store:hover { background: var(--red); border-color: var(--red); color: var(--paper); }

/* --- prose (news) ---------------------------------------------------------- */
.prose { max-width: 44rem; font-size: 1.0625rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: 2.5rem; margin-top: 3rem; }
.prose h3 { font-size: 1.75rem; margin-top: 2rem; }
.prose a { color: var(--red); }
.prose ul { list-style: square; padding-left: 1.25rem; }
.posts li { border-bottom: 1px solid rgba(21, 23, 27, .15); }
.posts a { display: grid; gap: .5rem; padding: 2rem 0; text-decoration: none; }
.posts a:hover h2 { color: var(--red); }
.posts h2 { font-size: clamp(2rem, 4vw, 3rem); transition: color .15s; }

/* --- footer --------------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--paper); border-top: 2px solid var(--red); }
.site-footer .cols { display: grid; gap: 2.5rem; padding-block: 4rem 3rem; }
@media (min-width: 768px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h2 { font: 400 .75rem/1.4 var(--mono); letter-spacing: .3em; color: var(--accent-text); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .6rem; }
.site-footer a { text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--red); }
.site-footer .about p { opacity: .7; max-width: 26rem; margin-top: 1rem; font-size: .9375rem; }
.site-footer .legal { border-top: 1px solid rgba(245, 242, 236, .12); padding-block: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font: 400 .75rem/1.6 var(--mono); letter-spacing: .1em; opacity: .7; }

/* --- utilities ------------------------------------------------------------- */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-col { display: flex; flex-direction: column; gap: 1.5rem; }
.two { display: grid; gap: 3rem; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- helpers that replace inline styles (the CSP forbids style attributes) --- */
.sub { font-size: 1.125rem; }
.plan.on-dark { background: var(--card); color: var(--paper); border-color: var(--card); }
.mb-1 { margin-bottom: 1rem; }
.ticks.cols { display: block; columns: 2 18rem; column-gap: 3rem; }
.ticks.cols li { break-inside: avoid; margin-bottom: .75rem; }
.note.left { text-align: left; }
table.matrix tbody th { font-weight: 500; }
.small, .stack p.small { font-size: 1rem; }
.page-hero .inner.short { padding-block: clamp(6rem, 10vw, 8rem); }
.measure { max-width: 44rem; }
.posts { border-top: 2px solid var(--text); }
.mono-note { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; line-height: 1.7; max-width: 24rem; opacity: .7; }
.dim { opacity: .7; }
.hairline .v.tool { font-size: 1.35rem; }
svg:not([class]) { width: 1.25em; height: 1.25em; flex: none; }
.meta svg { width: 1rem; height: 1rem; color: var(--red); }

.site-footer .brand { opacity: 1; }
/* Narrow phones: long button labels and ticker items may wrap rather than
   push the page sideways. */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: left; padding: 1rem 1.25rem; }
  .ticker span { white-space: normal; text-align: center; }
  .plan, .fleet .body, .hairline > div { min-width: 0; }
}
/* Screen-reader labels inside the scrolling matrix stay inside it. */
.table-wrap { position: relative; }
.two > *, .feature-split > * { min-width: 0; }
@media (max-width: 480px) {
  .list-table li { grid-template-columns: 2.5rem 1fr; }
  .list-table .cap { grid-column: 2; text-align: left; }
}

/* --- logo: the portal's lockup ------------------------------------------- */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; text-decoration: none; color: var(--text); }
.logo-lockup { display: inline-flex; align-items: center; gap: 14px; }
.logo-avb { font: italic 900 1.75rem/1 var(--body); letter-spacing: -0.04em; }
.logo-bar { width: 3px; height: 24px; background: var(--red); border-radius: 1px; }
.logo-tag { font: 700 .82rem/1 var(--body); letter-spacing: .4em; text-transform: uppercase; }
.logo-tagline { font: 600 .66rem/1 var(--body); letter-spacing: .32em; text-transform: uppercase; color: rgba(21, 23, 27, .6); }
.site-footer .logo { color: var(--paper); }
.site-footer .logo .logo-tagline { color: rgba(245, 242, 236, .65); }
.site-footer .logo:hover { color: var(--paper); opacity: 1; }
@media (max-width: 380px) { .logo-lockup { gap: 10px; } .logo-tag { letter-spacing: .3em; } }
.site-footer a.logo { opacity: 1; }
.hairline > a.more { background: var(--dark); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; text-decoration: none; transition: background-color .15s; }
.hairline > a.more:hover { background: var(--card); }

/* --- team plans at a glance (home) ---------------------------------------- */
.team-row { display: grid; gap: 2rem; margin-top: 4rem; align-items: start; }
@media (min-width: 1024px) { .team-row { grid-template-columns: 4fr 8fr; gap: 3rem; } }
.team-row-head { display: flex; flex-direction: column; gap: 1rem; }
.team-bands h4 { font-family: var(--display); font-weight: 900; text-transform: uppercase; }
.team-bands .price-line { font-size: 1rem; opacity: 1; }
.team-bands .price-line b { font: 900 2.25rem/1 var(--body); margin-right: .25rem; }
.team-bands .idx { letter-spacing: .25em; text-transform: uppercase; font-size: .625rem; }
.team-bands h4 { margin: 0; } .team-bands .cell { gap: .6rem; }

/* Logo, scaled up for presence (same lockup as the portal). */
.logo-avb { font-size: 2.6rem; letter-spacing: -0.05em; }
.logo-bar { width: 5px; height: 2.4rem; }
.logo-lockup { gap: 18px; }
.logo-tag { font-size: 1.15rem; font-weight: 800; letter-spacing: .42em; }
.logo-tagline { font-size: .8rem; font-weight: 700; letter-spacing: .36em; color: rgba(21, 23, 27, .65); }
.logo { gap: 6px; }
.site-header .bar { height: 6.5rem; }
@media (max-width: 960px) {
  .site-header .bar { height: 5rem; }
  .logo-avb { font-size: 2.1rem; }
  .logo-bar { width: 4px; height: 2rem; }
  .logo-lockup { gap: 14px; }
  .logo-tag { font-size: .95rem; letter-spacing: .38em; }
  .logo-tagline { font-size: .7rem; }
}
@media (max-width: 380px) {
  .logo-avb { font-size: 1.8rem; }
  .logo-tag { font-size: .82rem; letter-spacing: .3em; }
  .logo-lockup { gap: 10px; }
}
@media (min-width: 1200px) {
  .site-header .bar { height: 7.25rem; }
  .logo-avb { font-size: 3.2rem; }
  .logo-bar { width: 6px; height: 2.9rem; }
  .logo-lockup { gap: 20px; }
  .logo-tag { font-size: 1.4rem; letter-spacing: .44em; }
  .logo-tagline { font-size: .9rem; letter-spacing: .4em; }
}
.header-cta .signin { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1199px) {
  .site-header .bar { gap: 1.25rem; }
  .nav { gap: 1.25rem; font-size: .95rem; }
  .header-cta { gap: .9rem; }
  .header-cta .btn { padding: .6rem .7rem; font-size: .75rem; letter-spacing: .08em; }
}

/* --- header, final: a middle-sized logo and a menu in the headline face --- */
.site-header .bar { height: 5.75rem; gap: 2rem; }
.logo { gap: 5px; }
.logo-lockup { gap: 15px; }
.logo-avb { font-size: 2.1rem; letter-spacing: -0.05em; }
.logo-bar { width: 4px; height: 1.85rem; }
.logo-tag { font-size: .95rem; font-weight: 800; letter-spacing: .42em; }
.logo-tagline { font-size: .72rem; font-weight: 700; letter-spacing: .36em; }
.nav { gap: 2rem; font: 400 1.4rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.nav a { padding-block: .35rem; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: var(--accent-text); }
.nav a[aria-current="page"] { color: var(--accent-text); border-bottom-color: var(--red); }
.header-cta { gap: 1.5rem; }
.header-cta .signin { font: 400 1.4rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.header-cta .btn { padding: .7rem 1rem; font-size: .8rem; letter-spacing: .12em; }
.drawer nav { font: 400 1.75rem/1.1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
@media (min-width: 1200px) {
  .site-header .bar { height: 6rem; }
  .logo-avb { font-size: 2.3rem; }
  .logo-bar { height: 2rem; }
  .logo-tag { font-size: 1.05rem; }
  .logo-tagline { font-size: .76rem; }
  .logo-lockup { gap: 16px; }
}
@media (min-width: 961px) and (max-width: 1199px) {
  .site-header .bar { gap: 1.25rem; }
  .nav { gap: 1.25rem; font-size: 1.25rem; }
  .header-cta { gap: 1rem; }
  .header-cta .signin { font-size: 1.25rem; }
  .header-cta .btn { padding: .6rem .75rem; font-size: .72rem; letter-spacing: .08em; }
}
@media (max-width: 960px) {
  .site-header .bar { height: 4.75rem; }
  .logo-avb { font-size: 1.85rem; }
  .logo-bar { width: 4px; height: 1.6rem; }
  .logo-lockup { gap: 12px; }
  .logo-tag { font-size: .85rem; letter-spacing: .38em; }
  .logo-tagline { font-size: .66rem; }
}
@media (max-width: 380px) {
  .logo-avb { font-size: 1.6rem; }
  .logo-tag { font-size: .75rem; letter-spacing: .3em; }
  .logo-lockup { gap: 9px; }
}

/* Card titles: Bebas Neue at its real weight. It has only one weight, so
   900 made the browser fake a bold that smeared the letters together at
   card size. The big headlines keep the template's heavier setting. */
.h-card, .team-bands h4 { line-height: 1.02; }

/* One headline weight everywhere, matched to the hero. Bebas Neue has a
   single weight, and the browser's faked bold is proportionally heavier at
   small sizes, so section and card headings smeared while the hero looked
   right. Real weight plus a stroke sized in em gives every headline the
   same heaviness relative to its size. */
h1, h2, h3, .h-card, .team-bands h4 { font-weight: 400; -webkit-text-stroke: .028em currentColor; paint-order: stroke fill; letter-spacing: .012em; }
.prose h2, .prose h3 { -webkit-text-stroke: .028em currentColor; }
.site-footer h2, .rows .head, .person .cap h3, .sr-only { -webkit-text-stroke: 0; }

/* Hero in colour (the owner's AVB kart photo): no monochrome, the kart
   kept bright on the right, a dark fade on the left behind the headline. */
.hero.hero-colour .photo { opacity: 1; mix-blend-mode: normal; filter: none; object-position: 70% 50%; }
.hero.hero-colour .shade-br { background: linear-gradient(to right, rgba(11,11,11,.92) 0%, rgba(11,11,11,.78) 30%, rgba(11,11,11,.25) 58%, rgba(11,11,11,0) 75%), linear-gradient(to top, rgba(11,11,11,.85) 0%, rgba(11,11,11,0) 35%); }
@media (max-width: 960px) {
  .hero.hero-colour .photo { object-position: 78% 50%; }
  .hero.hero-colour .shade-br { background: linear-gradient(to bottom, rgba(11,11,11,.55) 0%, rgba(11,11,11,.8) 45%, rgba(11,11,11,.92) 100%); }
}
.hero.hero-colour .rail { display: none; }

/* Hero, dark: the template's treatment applied to the AVB kart photo —
   monochrome and pushed well back, so it reads as atmosphere behind the
   headline rather than a picture. */
.hero.hero-dark .photo { opacity: .5; mix-blend-mode: luminosity; filter: grayscale(1) contrast(1.05); object-position: 70% 50%; }
.hero.hero-dark .shade-br { background: linear-gradient(to bottom right, var(--dark), rgba(11, 11, 11, .72), rgba(11, 11, 11, .2)); }
@media (max-width: 960px) { .hero.hero-dark .photo { object-position: 78% 50%; opacity: .4; } }
@media (max-width: 480px) { .badge-live { letter-spacing: .14em; font-size: .68rem; padding-inline: .6rem; gap: .45rem; } }

/* Hero: two UK kart-track outlines (from the portal's track library),
   overlaid where the coordinates line used to be. The PNGs are used as
   masks so each can take a brand colour. */
.tracks { position: relative; width: 17rem; height: 11rem; flex: none; }
.track { position: absolute; margin: 0; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.track .outline { display: block; width: 100%; aspect-ratio: 1; -webkit-mask: var(--track) center / contain no-repeat; mask: var(--track) center / contain no-repeat; }
.track figcaption { font: 400 .625rem/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; opacity: .75; white-space: nowrap; }
.track.t1 { --track: url("/img/tracks/WhiltonMill.png"); width: 9.5rem; right: 6.5rem; bottom: 0; }
.track.t1 .outline { background: var(--paper); opacity: .85; }
.track.t2 { --track: url("/img/tracks/Adria.png"); width: 8rem; right: 0; bottom: .4rem; }
.track.t2 .outline { background: var(--red); }
.track.t2 figcaption { color: var(--accent-text); opacity: 1; }
@media (max-width: 700px) {
  .tracks { width: 100%; height: 8.5rem; }
  .track.t1 { width: 7rem; right: auto; left: 0; }
  .track.t2 { width: 6rem; right: auto; left: 6rem; }
}
@media (max-width: 700px) { .track.t2 { left: 8.5rem; } }
/* Ticker: five features, revealed as width allows (AI is second, so it
   is always among those shown from tablet up). */
.ticker span:nth-child(n+3) { display: none; }
@media (min-width: 1100px) { .ticker span:nth-child(3) { display: inline; } }
@media (min-width: 1400px) { .ticker { letter-spacing: .22em; } .ticker span:nth-child(4) { display: inline; } }
@media (min-width: 1760px) { .ticker span:nth-child(5) { display: inline; } }
/* "What it does": a plain-English explanation beside the heading. */
.split .side.explain { justify-self: stretch; display: grid; gap: 1rem; font-size: 1.0625rem; line-height: 1.65; opacity: .85; }
.split:has(.explain) { align-items: start; }
.split .side.explain b { font-weight: 700; color: var(--text); }
/* The variables behind every calculation, as telemetry-style chips. */
.vars { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; max-width: 36rem; }
.vars li { font: 400 .6875rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; border: 1px solid rgba(21, 23, 27, .35); padding: .55rem .7rem; }
.vars li.you { background: var(--red); border-color: var(--red); color: var(--on-red); }
/* Tracks, final: two compact circuits of similar size side by side, each
   labelled with its name and country. */
.tracks { width: 19rem; height: auto; display: flex; gap: 1.25rem; justify-content: flex-end; align-items: flex-end; }
.track, .track.t1, .track.t2 { position: static; width: 8.75rem; }
.track.t2 { --track: url("/img/tracks/Adria.png"); }
.track figcaption { text-align: center; line-height: 1.3; }
.track figcaption small { display: block; font-size: .5625rem; letter-spacing: .25em; opacity: .7; margin-top: .2rem; }
@media (max-width: 700px) {
  .tracks { width: 100%; justify-content: flex-start; }
  .track, .track.t1, .track.t2 { width: 7rem; left: auto; }
}
/* Three tracks: Whilton Mill and Adria in cream, Le Mans in red between. */
.tracks { width: auto; }
.track.t3 { --track: url("/img/tracks/LeMans.png"); width: 8.75rem; }
.track.t3 .outline { background: var(--red); }
.track.t3 figcaption { color: var(--accent-text); opacity: 1; }
.track.t2 .outline { background: var(--paper); opacity: .85; }
.track.t2 figcaption { color: inherit; opacity: .75; }
@media (max-width: 700px) {
  .tracks { gap: .75rem; }
  .track, .track.t1, .track.t2, .track.t3 { width: calc((100% - 1.5rem) / 3); max-width: 7rem; }
  .track figcaption { letter-spacing: .15em; font-size: .5625rem; }
  .track figcaption small { letter-spacing: .12em; }
}
@media (max-width: 700px) {
  .tracks { width: 100%; }
  .track, .track.t1, .track.t2, .track.t3 { flex: 1 1 0; min-width: 0; width: auto; max-width: 7rem; }
  .track figcaption { white-space: normal; letter-spacing: .1em; }
}
.fleet .body .specs { margin-top: auto; }
/* Card tags carry a sample reading now; keep them on one line. */
.fleet .tag { white-space: nowrap; }
@media (max-width: 480px) { .fleet .tag { letter-spacing: .12em; font-size: .5625rem; } }
@media (min-width: 768px) and (max-width: 1100px) { .fleet .tag { letter-spacing: .1em; font-size: .5625rem; left: .6rem; top: .6rem; } }

/* --- Pit Kit hub and tool pages --------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font: 400 .6875rem/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
.kit-group + .kit-group { margin-top: 4rem; }
.kit-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid var(--text); padding-bottom: .75rem; }
.kit-head .eyebrow { margin: 0; }
.kit-item { border-bottom: 1px solid rgba(21, 23, 27, .15); }
.kit-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr auto; gap: 1.5rem; align-items: center; padding: 1.25rem .5rem 1.25rem 0; transition: background-color .2s, padding .2s; }
.kit-item summary::-webkit-details-marker { display: none; }
.kit-item summary:hover { background: var(--light); padding-left: .5rem; }
.kit-name { font: 400 1.6rem/1 var(--display); text-transform: uppercase; -webkit-text-stroke: .028em currentColor; letter-spacing: .012em; }
.kit-line { opacity: .8; }
.kit-free { font: 400 .625rem/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); text-align: right; }
.kit-item[open] summary { background: var(--dark); color: var(--paper); padding-left: .75rem; }
.kit-item[open] .kit-free { color: #FF5A52; }
.kit-body { padding: 1.25rem .75rem 2rem; display: grid; gap: 1rem; max-width: 52rem; }
@media (max-width: 760px) {
  .kit-item summary { grid-template-columns: 1fr; gap: .4rem; }
  .kit-free { text-align: left; }
}
.prose-col p { font-size: 1.0625rem; line-height: 1.75; opacity: .9; }
.tool-facts { border: 2px solid var(--text); padding: clamp(1.5rem, 3vw, 2.25rem); align-self: start; display: grid; gap: 1rem; }
.tool-facts h3 { margin: 0; }
/* Pit Kit list on the dark Features section. */
.bg-dark .kit-head { border-bottom-color: var(--paper); }
.bg-dark .kit-item { border-bottom-color: rgba(245, 242, 236, .15); }
.bg-dark .kit-item summary:hover { background: var(--card); }
.bg-dark .kit-item[open] summary { background: var(--red); color: var(--on-red); }
.bg-dark .kit-item[open] .kit-free { color: var(--on-red); }
.bg-dark .kit-line { opacity: .75; }
.kit-upsell { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; border-top: 2px solid var(--paper); padding-top: 2rem; }
.kit-upsell p { max-width: 46rem; font-size: 1.0625rem; opacity: .9; }

/* --- Teams: manager / member feature blocks -------------------------------- */
.feature-list { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.tf { border: 2px solid var(--text); background: var(--paper); padding: clamp(1.5rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.tf header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tf-where { font: 400 .625rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; border: 1px solid rgba(21, 23, 27, .35); padding: .35rem .5rem; }
.tf > p { line-height: 1.6; opacity: .85; }
.tf .ticks { flex: 1; align-content: start; }
.tf-example { margin: 0; border-left: 3px solid var(--red); background: var(--light); padding: .9rem 1rem; font-size: .9375rem; line-height: 1.6; }
.tf-example .mono-sm { display: block; margin-bottom: .35rem; color: var(--accent-text); }
.bg-light .tf-example { background: var(--paper); }
/* Six menu items: never wrap, and tighten where the header is tight. */
.nav a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1060px) { .nav { gap: .9rem; font-size: 1.15rem; } .header-cta .btn { display: none; } }
@media (min-width: 1200px) and (max-width: 1320px) { .nav { gap: 1.4rem; } }
/* Six research stats: 2 per row on phones, 3 on tablets, all 6 in a row on wide screens. */
.stats.stats-6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .stats.stats-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .stats.stats-6 { grid-template-columns: repeat(6, 1fr); gap: 2rem 1.5rem; } .stats-6 .stat .v { font-size: clamp(3.25rem, 4.6vw, 4.5rem); } }
.stats.stats-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-6 .stat .v { font-size: clamp(2.6rem, 11vw, 4.5rem); white-space: nowrap; }
@media (min-width: 768px) { .stats.stats-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats-6 .stat .v { font-size: 4.25rem; } }
@media (min-width: 1280px) {
  .stats.stats-6 { grid-template-columns: 1.45fr repeat(5, minmax(0, 1fr)); gap: 2rem 1.75rem; }
  .stats-6 .stat .v { font-size: clamp(3.2rem, 4.2vw, 4.25rem); }
}
.stats-6 .stat .v { font-size: clamp(2rem, 9.5vw, 4.5rem); }
@media (min-width: 768px) { .stats-6 .stat .v { font-size: 3.1rem; } }
@media (min-width: 1024px) { .stats-6 .stat .v { font-size: 4rem; } }
@media (min-width: 1280px) { .stats-6 .stat .v { font-size: clamp(3.2rem, 4.2vw, 4.25rem); } }
/* Card grids may shrink below their content's natural width. */
.cards > *, .plans > *, .people > *, .strip > * { min-width: 0; }
@media (min-width: 768px) and (max-width: 1100px) { .plans .btn { padding-inline: 1rem; letter-spacing: .06em; } }
.stack .btn, .feature-split .btn { max-width: 100%; white-space: normal; }
/* Four stats, one-word labels. "1,900+" is the widest number, so its
   column gets a little more room on wide screens. */
.stats.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-4 .stat .v { white-space: nowrap; font-size: clamp(2.2rem, 10vw, 6rem); }
@media (min-width: 768px) {
  .stats.stats-4 { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
  .stats-4 .stat .v { font-size: clamp(3.4rem, 7vw, 6rem); }
}
.stats-4 .stat .v { font-size: clamp(2rem, 9.5vw, 6rem); }
@media (min-width: 768px) { .stats.stats-4 { grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr)); column-gap: 2.5rem; } .stats-4 .stat .v { font-size: clamp(3.2rem, 6.4vw, 5.5rem); } }
.rows .r { white-space: nowrap; }
@media (max-width: 480px) { .rows li { flex-wrap: wrap; gap: .4rem; } .rows .r { width: 100%; text-align: left; padding-left: 2.1rem; color: var(--accent-text); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; } }
.readout b { white-space: nowrap; } @media (max-width: 480px) { .readout b { font-size: 1.15rem; } .readout span { letter-spacing: .1em; font-size: .5625rem; } }
@media (max-width: 480px) { .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; } .readout b { font-size: 1.5rem; } .readout span { font-size: .625rem; letter-spacing: .15em; } }
/* App screenshots in the calls cards: show the panel from the top. */
.fleet .media img[src*="/img/app-"] { object-position: 50% 0; }
/* App screenshots sit below a dark strip that carries the red tag, so the
   tag never covers what the screenshot shows. */
.fleet .media:has(img[src*="/img/app-"]) { background: #14151A; }
.fleet .media img[src*="/img/app-"] { position: absolute; left: 0; right: 0; bottom: 0; top: 2.9rem; width: 100%; height: calc(100% - 2.9rem); object-fit: cover; object-position: 50% 0; }
/* The calls: a taller image area so the app screenshots show in full
   (strip for the tag, then the whole screenshot); the weather photo fills
   the same box so the three cards stay level. */
.cards.c3 .fleet .media { aspect-ratio: 8 / 7; }
.fleet .media img[src*="/img/app-"] { object-fit: contain; object-position: 50% 0; }
/* The calls: each app screen shown whole, starting at its first panel. */
.cards.c3 .fleet .media:has(.screen) { aspect-ratio: auto; padding-top: 2.9rem; background: #14151A; }
.fleet .media .screen { display: block; }
.fleet .media .screen img, .fleet .media .screen img[src*="/img/app-"] { position: static; display: block; width: 100%; height: auto; object-fit: initial; }
.fleet:hover .media .screen img { transform: none; }
.session-shot { margin: 0 auto; width: 100%; max-width: 17rem; }
.session-shot img { display: block; width: 100%; height: auto; border: 1px solid rgba(245, 242, 236, .2); }
.session-panel { text-align: center; align-items: center; }
.session-panel > * { width: 100%; }
.session-panel .meta { justify-content: center; }
.session-panel .session-shot { max-width: 17rem; }
/* Race morning: app screens that rotate (site.js). */
.slides .frames { display: grid; background: #14151A; border: 1px solid rgba(245, 242, 236, .2); }
.slides .frames img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; object-position: 50% 0; border: 0; opacity: 0; transition: opacity .6s ease; }
.slides .frames img.on { opacity: 1; }
.slides .dots { display: flex; justify-content: center; gap: .5rem; margin-top: .9rem; }
.slides .dots button { font: 400 .625rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--paper); opacity: .55; background: none; border: 0; border-bottom: 2px solid rgba(245, 242, 236, .3); padding: .45rem .2rem; cursor: pointer; transition: opacity .3s, border-color .3s; }
.slides .dots button.on, .slides .dots button:hover { opacity: 1; border-color: var(--red); }
.slides .dots button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .slides .frames img { transition: none; } }
.slides .dots { flex-wrap: wrap; gap: .25rem .75rem; }
.slides .dots button { white-space: nowrap; letter-spacing: .14em; }
.rows-cta { margin-top: 2rem; }
.person img.focus-r { object-position: 92% 30%; }
.person img.focus-t { object-position: 50% 15%; }
.page-hero .photo.teams-hero { object-position: 50% 40%; opacity: .6; }
.session-panel .photo.helmet { opacity: .38; object-position: 70% 60%; filter: grayscale(.2); }
.session-panel:has(.photo.helmet) .shade-tr { background: linear-gradient(to bottom, rgba(11, 11, 11, .55), rgba(11, 11, 11, .2) 45%, rgba(11, 11, 11, .6)); }
.team-row-head .team-kicker { font-size: .875rem; letter-spacing: .25em; }
.team-row { margin-top: 4.5rem; padding-top: 4rem; border-top: 2px solid var(--dark); }
.page-hero .photo.features-hero { object-position: 50% 62%; opacity: .6; }
.framed img.track-shot { object-position: 62% 50%; }
.btn-row.align-c { align-items: center; gap: 1.5rem 2rem; }
.callout { padding: 1rem 1.4rem; right: -1rem; bottom: -1rem; } .callout b { font-size: 1.875rem; }
.framed.ai-chat { max-width: 22rem; justify-self: center; width: 100%; } .framed.ai-chat img { aspect-ratio: auto; height: auto; border: 1px solid rgba(21, 23, 27, .2); }
.page-hero .photo.pricing-hero { object-position: 50% 44%; opacity: .55; }
.site-footer .footer-disclaimer { border-top: 1px solid rgba(245, 242, 236, .12); padding-block: 1.25rem; }
.site-footer .footer-disclaimer p { font-size: .8125rem; line-height: 1.6; opacity: .65; max-width: 62rem; }
.site-footer .footer-disclaimer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* --- legal pages and contact ------------------------------------------- */
.legal-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .legal-grid { grid-template-columns: 14rem minmax(0, 1fr); gap: 4rem; align-items: start; } .legal-nav { position: sticky; top: 6rem; } }
.legal-nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
@media (min-width: 960px) { .legal-nav ul { flex-direction: column; } }
.legal-nav a { font: 400 .75rem/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: .2rem; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--accent-text); border-bottom-color: var(--red); }
.legal-doc { min-width: 0; max-width: 48rem; font-size: 1rem; line-height: 1.75; }
.legal-doc h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: 2.75rem; }
.legal-doc > p:first-child { font: 400 .75rem/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; opacity: .7; }
.legal-doc li + li { margin-top: .4rem; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: .75rem .75rem .75rem 0; border-bottom: 1px solid rgba(21, 23, 27, .15); min-width: 9rem; }
.legal-doc th { font: 400 .6875rem/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; border-bottom: 2px solid var(--red); }
.legal-entity { margin-top: 3rem !important; padding-top: 1.25rem; border-top: 1px solid rgba(21, 23, 27, .15); font-size: .875rem; opacity: .75; }

.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 5rem; align-items: start; } }
.contact-form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .5rem; min-width: 0; }
.field-row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font: 400 .6875rem/1.4 var(--mono); letter-spacing: .25em; text-transform: uppercase; }
.field .opt { opacity: .6; letter-spacing: .1em; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 2px solid var(--text); border-radius: 0; padding: .8rem .9rem; }
.field textarea { resize: vertical; min-height: 10rem; line-height: 1.6; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.field-error { color: var(--accent-text); font-size: .875rem; }
.field-error:empty { display: none; }
.form-error { border-left: 3px solid var(--red); padding: .75rem 1rem; background: rgba(225, 6, 0, .06); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-done { display: grid; gap: 1rem; justify-items: start; padding: 2rem; border: 2px solid var(--text); }
.form-done .done-icon { width: 2.5rem; height: 2.5rem; color: var(--red); }
.contact-side { display: grid; gap: 2rem; }
.contact-side .mono-sm { display: block; margin-bottom: .75rem; }
.contact-links li + li { margin-top: .5rem; }
.contact-links a { text-decoration: underline; text-underline-offset: 3px; }
.contact-links a:hover { color: var(--accent-text); }
.page-hero.compact .inner.short { padding-block: clamp(3rem, 6vw, 4.5rem); gap: 1.25rem; } .page-hero.compact .h-page { font-size: clamp(2.75rem, 7vw, 5rem); }
.page-hero .photo.download-hero { object-position: 50% 58%; opacity: .55; }
.cta .photo.cta-flag { object-position: 60% 42%; opacity: .4; }
.framed img.parent-shot { object-position: 50% 72%; }
.notify-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .notify-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; align-items: center; } }
.notify-platforms { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.notify-platforms legend { font: 400 .6875rem/1.4 var(--mono); letter-spacing: .25em; text-transform: uppercase; margin-bottom: .6rem; width: 100%; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-size: 1rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--red); }
.check svg { width: 1rem; height: 1rem; }
a.store.soon { opacity: .85; cursor: pointer; }
.beta-opt { align-items: flex-start; border: 2px solid var(--text); padding: .9rem 1rem; line-height: 1.5; }
.beta-opt input { margin-top: .2rem; flex: none; }
.file-input { padding: .65rem .75rem !important; background: #fff; cursor: pointer; }
.file-input::file-selector-button { font: 400 .6875rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; background: var(--text); color: var(--paper); border: 0; padding: .7rem 1rem; margin-right: 1rem; cursor: pointer; }
.field-hint { font-size: .8125rem; opacity: .7; }

/* --- cookie consent -------------------------------------------------- */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--dark); color: var(--paper); border-top: 2px solid var(--red); padding-bottom: env(safe-area-inset-bottom, 0); }
.cookie-inner { display: grid; gap: 1rem; padding-block: 1.1rem; align-items: center; }
@media (min-width: 960px) { .cookie-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; } }
.cookie-bar p { font-size: .9rem; line-height: 1.55; margin: 0; }
.cookie-bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-bar .btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.cookie-bar .btn-ghost:hover { background: var(--paper); color: var(--dark); }
button.btn { font-family: inherit; cursor: pointer; }
.cookie-modal { position: fixed; inset: 0; z-index: 70; background: rgba(11, 11, 11, .7); display: grid; place-items: center; padding: 1rem; }
.cookie-modal[hidden] { display: none; }
.cookie-panel { background: var(--paper); color: var(--text); width: min(36rem, 100%); max-height: 90vh; overflow: auto; padding: 1.75rem; display: grid; gap: 1.1rem; border-top: 4px solid var(--red); }
.cookie-panel h2:focus { outline: none; }
.cookie-row { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding-block: .9rem; border-top: 1px solid rgba(21, 23, 27, .15); }
.cookie-row p { margin: .25rem 0 0; opacity: .8; }
.switch { appearance: none; width: 2.75rem; height: 1.5rem; flex: none; border-radius: 1rem; background: rgba(21, 23, 27, .25); position: relative; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch:checked { background: var(--red); }
.switch:checked::after { transform: translateX(1.25rem); }
.switch:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; letter-spacing: inherit; }
.optout-list { display: grid; gap: 1.25rem; min-width: 0; max-width: 48rem; }
.optout-card { position: relative; border: 2px solid var(--text); padding: 1.75rem; display: grid; gap: .9rem; }
.optout-card::before { content: ""; position: absolute; top: -2px; left: -2px; width: 3rem; height: 4px; background: var(--red); }
.optout-card .idx { font: 400 .75rem/1 var(--mono); color: var(--accent-text); letter-spacing: .2em; }
.optout-card p { line-height: 1.65; }
.optout-state:empty { display: none; }
.btn-ghost-dark { background: transparent; color: var(--text); border: 2px solid var(--text); }
.btn-ghost-dark:hover { border-color: var(--red); color: var(--accent-text); }

/* --- user guides ----------------------------------------------------- */
.guides-roles { padding-block: 2.5rem 0; }
.role-grid { display: grid; gap: .75rem; margin-top: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .role-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.role-card { display: grid; gap: .4rem; padding: 1.25rem; border: 2px solid var(--text); text-decoration: none; position: relative; transition: border-color .2s; }
.role-card::before { content: ""; position: absolute; top: -2px; left: -2px; width: 2.5rem; height: 4px; background: var(--red); }
.role-card:hover { border-color: var(--red); }
.guide-cat { padding-block: 3rem; }
.guide-blurb { margin: 1rem 0 1.5rem; max-width: 44rem; opacity: .8; }
.guide-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-card { display: grid; gap: .6rem; align-content: start; padding: 1.4rem; border: 1px solid rgba(21, 23, 27, .2); text-decoration: none; transition: border-color .2s, transform .2s; min-width: 0; }
.guide-card:hover { border-color: var(--red); transform: translateY(-2px); }
.guide-card-title { font: 900 1.15rem/1.25 var(--body); text-transform: none; -webkit-text-stroke: 0; }
.guide-card p { font-size: .9375rem; line-height: 1.55; opacity: .8; }
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; margin-top: .25rem; }
.chip { font: 400 .625rem/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; border: 1px solid currentColor; padding: .35rem .5rem; opacity: .85; }
.guide-meta.on-dark { color: var(--paper); }
.role-lists { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .role-lists { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.role-lists .h-card { margin-bottom: .75rem; }
.guide-h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.page-hero .eyebrow a:hover { text-decoration: underline; }
.guide-doc h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.guide-doc ol { list-style: none; counter-reset: step; padding-left: 0; }
.guide-doc ol > li { counter-increment: step; position: relative; padding-left: 2.75rem; margin-top: .9rem; }
.guide-doc ol > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .1rem; font: 400 .75rem/1.6 var(--mono); color: var(--accent-text); letter-spacing: .1em; border: 1px solid var(--red); padding: 0 .35rem; }
.guide-doc blockquote { border-left: 4px solid var(--red); background: rgba(225, 6, 0, .05); padding: .9rem 1.1rem; margin: 1.5rem 0; }
.guide-doc blockquote p { margin: 0; }
.guide-doc code { font-family: var(--mono); font-size: .875em; background: rgba(21, 23, 27, .07); padding: .1rem .35rem; }
.guide-foot { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(21, 23, 27, .15); font-size: .9375rem; }
.tf.tf-compact { gap: .8rem; }
.tf.tf-compact .tf-example { margin-top: auto; }
.split.split-top { align-items: start; margin-bottom: 2.5rem; }
.guide-doc > p:first-child { font: inherit; letter-spacing: 0; text-transform: none; opacity: 1; font-size: 1.125rem; line-height: 1.7; }
.role-card .h-card { font-family: var(--display); font-weight: 400; -webkit-text-stroke: .028em currentColor; paint-order: stroke fill; text-transform: uppercase; line-height: .95; letter-spacing: .012em; }
.page-hero .photo.news-hero { object-position: 60% 55%; opacity: .5; }
