/* The deeper pages (/mechanic, /dashboards, /driving, /dashcam, /garage). Built in step 3 of the
   2026-10-02 website plan by MOVING the homepage's own content, so most rules here are copies of
   the homepage's (site/index.html), kept in step so the pages look like one site. The shared
   header has its own sheet (site-header.css). Page-specific bits (the live dials, the Prism
   carousel) sit in this file too, behind their own class names, so every page loads one sheet. */
:root {
  --bg: #0a0e12; --bg2: #141a21; --bg3: #1b232c; --border: #232c36;
  --text: #e6edf3; --muted: #8b98a5; --soft: #cdd6df;
  --accent: #2dd4bf; --accent-dim: rgba(45, 212, 191, 0.14);
  --warn: #f0883e; --good: #3fb950; --radius: 14px; --maxw: 1080px;
  font-size: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }

/* ---- Page top: kicker, headline, a line or two, one strong picture ---- */
.ph { padding: 30px 0 46px; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.kicker { color: var(--accent); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ph h1 { font-size: 2.8rem; line-height: 1.08; letter-spacing: -0.02em; margin: 12px 0 16px; }
.ph .lead { font-size: 1.12rem; color: var(--soft); max-width: 40ch; }
.ph .lead + .lead { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.ph .cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ---- Sections: text + picture, alternating (the homepage's tour rows) ---- */
section.block { padding: 56px 0; border-top: 1px solid var(--border); }
.sec-head { text-align: center; max-width: 62ch; margin: 0 auto 34px; }
.sec-head h2 { font-size: 1.9rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: 1.02rem; }
.tour-row { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.tour-row + .tour-row { margin-top: 56px; }
.tour-row.flip .tour-media { order: -1; }
.tour-row h2 { font-size: 1.7rem; letter-spacing: -0.015em; line-height: 1.15; margin: 8px 0 12px; }
.tour-row h3 { font-size: 1.15rem; margin: 22px 0 10px; }
.tour-row p.intro { color: var(--muted); font-size: 1rem; margin-bottom: 14px; }
.tour-row p.intro + p.intro { margin-top: -4px; }
.tour-row ul, ul.ticks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tour-row li, ul.ticks li { font-size: 0.94rem; color: var(--soft); padding-left: 22px; position: relative; }
.tour-row li::before, ul.ticks li::before { content: "\203A"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.tour-row li strong, ul.ticks li strong { color: var(--text); }
.tour-media { display: flex; justify-content: center; }
.tour-media > div { width: 100%; }
.phone-frame { width: min(290px, 80vw); margin: 0 auto; border-radius: 26px; border: 1px solid var(--border);
  background: #05070a; padding: 10px; box-shadow: 0 22px 60px -30px rgba(0,0,0,0.9); }
.phone-frame img { width: 100%; display: block; border-radius: 18px; }
.wide-frame { width: 100%; border-radius: 16px; border: 1px solid var(--border); background: #05070a; padding: 8px; }
.wide-frame img { width: 100%; display: block; border-radius: 10px; }
.wide-frame.glow { box-shadow: 0 30px 70px -36px var(--accent); }
.media-cap { color: var(--muted); font-size: 0.78rem; text-align: center; margin-top: 8px; }
.note-box { margin-top: 18px; padding: 14px 16px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--muted); font-size: 0.86rem; }
.note-box strong { color: var(--text); }
.note-box .sp { color: var(--accent); font-weight: 700; white-space: nowrap; }
.inline-link { color: var(--accent); font-weight: 600; }
.inline-link:hover { text-decoration: underline; }

/* Small tiles, for a run of short points */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tiles.two { grid-template-columns: 1fr 1fr; max-width: 760px; margin: 0 auto; }
.tile { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.tile h3 { font-size: 1rem; margin-bottom: 4px; }
.tile p { color: var(--muted); font-size: 0.88rem; }
.tile .sp { color: var(--accent); font-weight: 700; }

/* ---- The mechanic's example answers (moved from the homepage) ---- */
.mech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mech { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mech-top { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--bg3); }
.mech-top .who { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.92rem; }
.mech-top .who .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--border); padding: 3px 8px; border-radius: 20px; }
.mech-body { padding: 18px; }
.codes-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { font-size: 0.74rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--bg3); border: 1px solid var(--border); }
.chip.warn { color: var(--warn); border-color: rgba(240,136,62,0.4); }
.mech-body p.summary { font-size: 0.95rem; margin-bottom: 12px; }
.mech-body .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; margin: 14px 0 6px; }
.mech-body ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.mech-body li { font-size: 0.88rem; color: var(--muted); padding-left: 16px; position: relative; }
.mech-body li::before { content: "\203A"; position: absolute; left: 2px; color: var(--accent); }
.photo-ask { display: flex; gap: 12px; align-items: center; background: var(--accent-dim); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 10px; padding: 14px; margin-top: 4px; }
.photo-ask .cam { font-size: 1.5rem; }
.photo-ask .t { font-size: 0.88rem; }

/* ---- Live drawn dials (moved from the homepage hero and #dials) ---- */
.dash-card { background: radial-gradient(120% 120% at 50% 0%, #18222b 0%, #0d131a 70%);
  border: 1px solid var(--border); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.dash-dials { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-dials canvas { width: 100%; aspect-ratio: 1/1; display: block; }
.dash-strip { width: 100%; height: 56px; display: block; }
.dash-cap { color: var(--muted); font-size: 0.78rem; text-align: center; }
.styles-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.style-cell { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.style-cell canvas.square { width: 100%; aspect-ratio: 1/1; display: block; }
.style-cell canvas.bar { width: 100%; height: 74px; display: block; margin: auto 0; }
.style-cell.seg { display: flex; flex-direction: column; justify-content: center; }
.styles-cap { color: var(--muted); font-size: 0.82rem; text-align: center; margin-top: 12px; }
.live-card { width: 100%; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; gap: 14px; }
.live-card canvas { width: 100%; height: 74px; display: block; }

/* ---- Skins: Prism carousel + skin pairs (moved from the homepage #skins) ---- */
.vcarousel { position: relative; max-width: 900px; margin: 0 auto; }
.vtrack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; border-radius: 16px; }
.vtrack::-webkit-scrollbar { display: none; }
.vslide { flex: 0 0 100%; scroll-snap-align: center; }
.vslide video { width: 100%; display: block; border: 1px solid var(--border); border-radius: 16px; background: #000; }
.varrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(10,14,18,.65); color: var(--text); font-size: 1.15rem; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(6px); }
.varrow:hover { background: rgba(10,14,18,.85); }
.varrow.prev { left: 12px; }
.varrow.next { right: 12px; }
.vdots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.vdot { width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer; padding: 0; opacity: 0.45; transition: transform .12s, opacity .12s; }
.vdot.on { opacity: 1; transform: scale(1.25); box-shadow: 0 0 8px currentColor; }
.skin-pairs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 30px; }
.skin-pairs figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.skin-pairs img { width: 100%; display: block; border: 1px solid var(--border); border-radius: 10px; }
.skin-pairs figcaption { color: var(--muted); font-size: 0.76rem; text-align: center; }
.skin-pairs figcaption b { color: var(--accent); font-weight: 600; }
.vid-solo video { width: min(260px, 70vw); display: block; margin: 0 auto; border: 1px solid var(--border); border-radius: 12px; background: #000; }

/* ---- More pages + the join card + footer ---- */
.pages { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pages a { font-size: 0.9rem; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--soft); }
.pages a:hover { border-color: var(--accent); color: var(--text); }
.pages-lbl { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; }

.join-card { background: var(--bg2); border: 1px solid var(--accent); border-radius: var(--radius); padding: 24px 26px;
  box-shadow: 0 0 0 1px var(--accent-dim), 0 14px 40px -24px var(--accent); }
.join-card h2 { font-size: 1.3rem; margin-bottom: 16px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; font-size: 0.93rem; color: var(--soft); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: var(--accent); background: var(--accent-dim);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.steps a { color: var(--accent); font-weight: 600; }
.steps a:hover { text-decoration: underline; }
.join-card .foot { margin-top: 16px; font-size: 0.87rem; color: var(--muted); }

footer { border-top: 1px solid var(--border); padding: 40px 0 56px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.foot-logo .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 0.88rem; }
.foot-links a:hover { color: var(--text); }
.disclaimer { margin-top: 26px; padding: 14px 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-size: 0.78rem; }
.copy { margin-top: 18px; color: var(--muted); font-size: 0.8rem; }

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .ph { padding: 20px 0 36px; }
  .ph-grid { grid-template-columns: 1fr; gap: 28px; }
  .ph h1 { font-size: 2.1rem; }
  .ph .lead { font-size: 1.04rem; }
  section.block { padding: 40px 0; }
  .sec-head h2 { font-size: 1.6rem; }
  .tour-row { grid-template-columns: 1fr; gap: 24px; }
  .tour-row + .tour-row { margin-top: 44px; }
  .tour-row.flip .tour-media { order: 0; }
  .tour-row h2 { font-size: 1.5rem; }
  .mech-grid, .skin-pairs, .tiles, .tiles.two { grid-template-columns: 1fr; }
  .styles-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .style-cell { padding: 10px; }
  .style-cell.seg { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .join-card { padding: 20px 18px; }
  .foot-links { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .vdot { transition: none; }
}
