/* PowerLogPro — consumer marketing site styles.
 * Standalone. Shares nothing with the backend/webapp CSS. Plain CSS, no framework. */

/* ----------------------------------------------------------------- *
 * Tokens
 * ----------------------------------------------------------------- */
:root {
  --ink:        #0f172a;   /* slate-900 */
  --ink-soft:   #334155;   /* slate-700 */
  --muted:      #64748b;   /* slate-500 */
  --line:       #e2e8f0;   /* slate-200 */
  --bg:         #ffffff;
  --bg-soft:    #f8fafc;   /* slate-50  */
  --bg-softer:  #f1f5f9;   /* slate-100 */

  /* Powersports orange/black brand. (Was blue — retargeting these tokens recolors
     the whole site to orange while every layout/spacing rule stays the same.) */
  --brand:      #ea580c;   /* orange-600 */
  --brand-700:  #c2410c;   /* orange-700 — deeper accents, hovers, gradients */
  --brand-600:  #ea580c;   /* orange-600 — primary accent (eyebrows, links, icons) */
  --brand-50:   #fff7ed;   /* orange-50 tint */
  --accent:     #f97316;   /* orange-500 — brightest, primary buttons */
  --accent-600: #ea580c;

  --navy:       #0b1220;   /* dark band  */
  --navy-2:     #111c34;

  --radius:     14px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow:     0 10px 30px rgba(2, 6, 23, .10);
  --shadow-lg:  0 30px 60px rgba(2, 6, 23, .18);

  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ----------------------------------------------------------------- *
 * Base
 * ----------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: .75rem;
}
.section { padding: 88px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head .lead { font-size: 1.12rem; color: var(--ink-soft); margin: 0; }
.lead { color: var(--ink-soft); }
.bg-soft { background: var(--bg-soft); }

/* ----------------------------------------------------------------- *
 * Buttons
 * ----------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 13px 22px;
  border-radius: 12px;          /* rounded rectangle (was full-pill 999px) */
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.btn-primary { --btn-bg: var(--accent); }
.btn-primary:hover { background: var(--accent-600); }
.btn-brand { --btn-bg: var(--brand-600); }
.btn-brand:hover { background: var(--brand-700); }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light {
  --btn-bg: rgba(255,255,255,.10);
  --btn-fg: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ----------------------------------------------------------------- *
 * Header / nav
 * ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; color: var(--ink); }
.brand .logo-mark { width: 32px; height: 32px; flex: 0 0 auto; }
.brand b { color: var(--brand-600); }
.brand-logo { height: 40px; width: auto; display: block; }
@media (max-width: 760px) { .brand-logo { height: 34px; } }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.nav-link { color: var(--ink-soft); font-weight: 500; font-size: .98rem; }
.nav-links a.nav-link:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ----------------------------------------------------------------- *
 * Hero (light gray/orange powersports look)
 * ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 88% -10%, var(--brand-50), transparent 60%),
    var(--bg-soft);
  padding: 56px 0 52px;
}
/* Dirt/motocross texture — strongest on the right, behind everything. */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("/main/assets/images/dirt-background.png") center right / cover no-repeat;
  opacity: .55;
}
/* White fade: opaque over the left copy, clearing toward the right so the dirt
   texture reads strongly behind the rider/dashboard. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
    #fff 20%, rgba(255,255,255,.82) 38%, rgba(255,255,255,.25) 60%, rgba(255,255,255,0) 78%);
}
/* Motocross rider, upper-right, sitting behind the floating dashboard. */
.hero-rider {
  position: absolute; top: -8px; right: 0; z-index: 2;
  width: clamp(300px, 34vw, 520px); height: auto;
  pointer-events: none; user-select: none;
}
.hero .container { position: relative; z-index: 3; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.hero h1 .hl { color: var(--brand-600); }
.hero .sub { font-size: 1.18rem; color: var(--ink-soft); max-width: 40ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-cta .btn svg { width: 18px; height: 18px; }
.hero-note { font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; color: var(--brand-600); flex: 0 0 auto; }

/* Hero visual — floating dashboard screenshot + notification card. */
.hero-visual { position: relative; }
.hero-dash {
  width: 100%; height: auto; display: block;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.hero-note-card {
  position: absolute; right: -10px; bottom: -22px; z-index: 2;
  width: clamp(176px, 24vw, 256px); height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
/* Decorative orange "///" slash accent near the hero center/top (above-left of
   the dashboard). Purely decorative; hidden on small screens. */
.hero-slashes {
  position: absolute; z-index: 2; top: -34px; left: -84px;
  width: 98px; height: 30px; pointer-events: none;
  transform: skewX(-24deg);
  background: repeating-linear-gradient(90deg, var(--accent) 0 13px, transparent 13px 25px);
  opacity: .42;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill {
  font-size: .82rem; font-weight: 600; color: var(--brand); background: var(--brand-50);
  border: 1px solid var(--brand-50); padding: 5px 12px; border-radius: 999px;
}

/* Feature strip — floating white bar under the hero. */
.feature-strip {
  display: flex; align-items: stretch;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
  padding: 6px; margin-top: 44px;
}
.fs-item {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  font-weight: 600; font-size: .96rem; color: var(--ink);
}
.fs-item:last-child { border-right: 0; }
.fs-ico { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
/* Subtle orange "speed slash" accent at the far-right of the strip (mirrors the
   hero slashes, smaller). Decorative only — never a button or a fifth feature.
   The preceding .fs-item keeps its divider since the flag is now the last child. */
.fs-flag {
  flex: 0 0 auto; align-self: center;
  width: 40px; height: 26px;
  margin: 0 10px 0 18px;
  transform: skewX(-22deg);
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  opacity: .5;
}

/* ----------------------------------------------------------------- *
 * Problem
 * ----------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card .ico { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.ico.warn { background: #fef2f2; color: #dc2626; }
.ico.brand { background: var(--brand-50); color: var(--brand-600); }
.ico svg { width: 22px; height: 22px; }

/* ----------------------------------------------------------------- *
 * Solution (split)
 * ----------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.checklist .tick svg { width: 16px; height: 16px; }
.checklist b { display: block; }
.checklist span { color: var(--ink-soft); font-size: .96rem; }
.panel {
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow);
}
.panel .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* A checklist used as a panel's content sits flush with the panel padding. */
.panel .checklist { margin-top: 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat .n { font-size: 1.6rem; font-weight: 800; color: var(--brand-700); letter-spacing: -.02em; }
.stat .l { font-size: .86rem; color: var(--muted); }

/* ----------------------------------------------------------------- *
 * Features
 * ----------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #fed7aa; }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.feature p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ----------------------------------------------------------------- *
 * Calendar themes (screenshot showcase) — matches the card/panel style
 * ----------------------------------------------------------------- */
/* Top-align the two columns so the stacked screenshot cards line up with the
   intro text (scoped to #themes — the shared .split elsewhere is unchanged). */
#themes .split { align-items: start; }
/* Two stacked screenshot cards: default calendar view, then optional themes. */
.theme-shots { display: grid; gap: 22px; }
.theme-shot {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
}
/* Small label above each screenshot ("Default calendar view" / "Optional themes"). */
.theme-shot-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin: 2px 4px 10px;
}
.theme-shot img {
  width: 100%;
  height: auto;            /* preserve the image's natural aspect ratio — no stretch */
  border-radius: var(--radius-sm);
  display: block;
}
.theme-shot figcaption {
  margin: 12px 4px 2px;
  font-size: .86rem;
  color: var(--muted);
  text-align: center;
}

/* Clickable screenshot trigger (button reset + enlarge cues). */
.theme-shot-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
}
.theme-shot-trigger:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 3px; }
/* Subtle darkening veil on hover/focus. */
.theme-shot-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0);
  transition: background .18s ease;
  pointer-events: none;
}
.theme-shot-trigger:hover::after,
.theme-shot-trigger:focus-visible::after { background: rgba(15, 23, 42, .12); }
/* Magnifier badge — always visible (discoverable on touch), grows on hover/focus. */
.theme-shot-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .92);
  color: var(--brand-600);
  box-shadow: var(--shadow);
  transition: transform .18s ease, background .18s ease;
}
.theme-shot-zoom svg { width: 22px; height: 22px; }
.theme-shot-trigger:hover .theme-shot-zoom,
.theme-shot-trigger:focus-visible .theme-shot-zoom { transform: scale(1.08); background: #fff; }

/* ----------------------------------------------------------------- *
 * Image lightbox (full-screen overlay) — used by the screenshot trigger
 * ----------------------------------------------------------------- */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, 4vh) max(16px, 3vw);
  background: rgba(2, 6, 23, .86);
  opacity: 0;
  transition: opacity .18s ease;
}
.image-lightbox[hidden] { display: none; }
.image-lightbox.is-open { opacity: 1; }
.image-lightbox-img {
  max-width: 96vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.image-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .32);
  cursor: pointer;
  transition: background .15s ease, transform .08s ease;
}
.image-lightbox-close:hover { background: rgba(255, 255, 255, .26); }
.image-lightbox-close:active { transform: translateY(1px); }
.image-lightbox-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.image-lightbox-close svg { width: 24px; height: 24px; }
/* Lock background scroll while the lightbox is open. */
body.lightbox-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .image-lightbox,
  .theme-shot-zoom,
  .theme-shot-trigger::after { transition: none; }
}

/* ----------------------------------------------------------------- *
 * Powersports band (light, warm orange tint — keeps the page light)
 * ----------------------------------------------------------------- */
.band {
  background:
    radial-gradient(800px 360px at 92% -20%, var(--brand-50), transparent 60%),
    radial-gradient(700px 320px at -10% 120%, #fff7ed, transparent 60%),
    var(--bg-softer);
  color: var(--ink-soft);
}
.band .section-head h2 { color: var(--ink); }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.band h2 { color: var(--ink); font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.band p { color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.band-list { display: grid; gap: 14px; }
.band-list .row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.band-list .row svg { width: 22px; height: 22px; color: var(--brand-600); flex: 0 0 auto; margin-top: 1px; }
.band-list .row b { color: var(--ink); display: block; }
.band-list .row span { font-size: .92rem; color: var(--ink-soft); }

/* ----------------------------------------------------------------- *
 * How it works
 * ----------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-600); color: #fff;
  font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ----------------------------------------------------------------- *
 * FAQ (native <details> accordion — no JS)
 * ----------------------------------------------------------------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: ""; flex: 0 0 auto; width: 11px; height: 11px; margin-right: 4px;
  border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-item > summary:hover { color: var(--brand-700); }
.faq-answer { padding: 0 20px 18px; color: var(--ink-soft); }
.faq-answer p { margin: 0; }

/* ----------------------------------------------------------------- *
 * Final CTA
 * ----------------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--brand-700), var(--brand)); color: #fff;
  border-radius: 24px; padding: 56px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta p { color: #fff7ed; max-width: 52ch; margin: 0 auto 26px; font-size: 1.1rem; }
.cta .hero-cta { justify-content: center; }
/* On the orange CTA card, the primary button flips to white-on-orange so it pops. */
.cta .btn-primary { background: #fff; color: var(--brand-700); }
.cta .btn-primary:hover { background: #fff7ed; color: var(--brand-700); }

/* ----------------------------------------------------------------- *
 * Footer
 * ----------------------------------------------------------------- */
.site-footer { background: var(--navy-2); color: #94a3b8; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand b { color: #fdba74; }
/* Real logo on the dark footer: seat it on a light chip so the dark wordmark stays legible. */
.footer-logo { display: inline-block; background: #fff; padding: 9px 14px; border-radius: 12px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.footer-logo img { height: 34px; width: auto; display: block; }
.site-footer p { font-size: .92rem; max-width: 36ch; }
.fcol h4 { color: #e2e8f0; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.fcol a { display: block; color: #94a3b8; font-size: .94rem; padding: 5px 0; }
.fcol a:hover { color: #fff; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }

/* ----------------------------------------------------------------- *
 * Reveal-on-scroll (progressive — content visible without JS)
 * ----------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------------------------------- *
 * Responsive
 * ----------------------------------------------------------------- */
/* Tighten the inline nav on smaller desktops so 5 links + CTA stay comfortable. */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .nav-link { font-size: .94rem; }
}
@media (max-width: 980px) {
  .hero-grid, .split, .band-grid { grid-template-columns: 1fr; }
  /* Mobile/tablet: the rider becomes a subtle, cropped action backdrop in the
     upper-right — behind the copy and the white fade — so the top of the page
     gets powersports energy without hurting readability or causing side-scroll.
     (.hero keeps overflow:hidden, so right:-80px never adds horizontal scroll.) */
  .hero-rider {
    display: block; left: auto; top: 40px; right: -80px;
    width: clamp(260px, 72vw, 360px); height: auto;
    opacity: .32; z-index: 0; pointer-events: none;
  }
  .hero-slashes { display: none; }          /* desktop-tuned; replaced by the .hero-copy slash below on mobile */
  /* Small orange "///" speed accent above the eyebrow for a touch of motion. */
  .hero-copy { position: relative; }
  .hero-copy::before {
    content: ""; position: absolute; top: -26px; left: 2px; z-index: 2;
    width: 58px; height: 16px; pointer-events: none;
    transform: skewX(-22deg);
    background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px);
    opacity: .5;
  }
  .hero-visual { margin-top: 6px; }
  .hero .sub { max-width: none; }
  .feature-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; }
  .fs-item { border-right: 0; justify-content: flex-start; padding: 12px; }
  .fs-flag { display: none; }               /* checkered accent is desktop-only */
  .cards, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Five nav items + CTA don't fit inline on tablet, so collapse to the hamburger
     here (was 760px). The mobile-menu markup and JS toggle are unchanged. */
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open .nav-links {
    display: flex; position: absolute; left: 0; right: 0; top: 70px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 16px;
  }
  .site-header.nav-open .nav-links a.nav-link { padding: 12px 4px; border-bottom: 1px solid var(--bg-softer); }
  .site-header.nav-open .nav-links .nav-cta { margin-top: 12px; flex-direction: column; align-items: stretch; }
  .site-header.nav-open .nav-links .nav-cta .btn { width: 100%; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .cta { padding: 40px 24px; }
}
@media (max-width: 520px) {
  .cards, .feature-grid, .steps, .footer-grid, .panel .stat-grid, .feature-strip { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ----------------------------------------------------------------- *
 * User Guide page (/main/user-guide) — reuses tokens + the .faq-item
 * accordion; adds a light hero, sticky contents sidebar, and sections.
 * ----------------------------------------------------------------- */
.ug-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 420px at 88% -20%, var(--brand-50), transparent 60%),
    var(--bg-soft);
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--line);
}
.ug-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.ug-hero .lead { max-width: 52ch; font-size: 1.1rem; margin-bottom: 0; }
.ug-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.ug-hero-copy { position: relative; z-index: 2; }
/* Subtle, small orange "///" accent — lighter than the homepage hero. */
.ug-hero-slash {
  position: absolute; z-index: 1; top: 20px; left: 50%;
  width: 60px; height: 16px; pointer-events: none;
  transform: skewX(-22deg);
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px);
  opacity: .2;
}

/* Quick-start card (right of the hero copy). */
.ug-start {
  position: relative; z-index: 2;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.ug-start-title { font-size: 1.02rem; margin: 0 0 14px; }
.ug-start-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 10px;
  border: 1px solid var(--line); border-left: 3px solid var(--brand-600);
  border-radius: 10px; color: var(--ink);
  transition: background .15s ease, transform .08s ease;
}
.ug-start-item:last-child { margin-bottom: 0; }
.ug-start-item:hover { background: var(--brand-50); text-decoration: none; transform: translateX(2px); }
.ug-start-item:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; }
.ug-start-text { min-width: 0; }
.ug-start-h { display: block; font-weight: 700; font-size: .98rem; }
.ug-start-p { display: block; font-size: .86rem; color: var(--ink-soft); margin-top: 2px; }
.ug-start-arrow { width: 18px; height: 18px; flex: 0 0 auto; color: var(--brand-600); margin-left: auto; }

.ug-body { padding-top: 40px; }
.ug-grid { display: grid; grid-template-columns: 264px 1fr; gap: 44px; align-items: start; }

/* Sticky contents sidebar (desktop): scrolls internally so it never runs off screen. */
.ug-toc {
  position: sticky; top: 88px; align-self: start;
  max-height: calc(100vh - 110px); overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 16px 16px 18px;
}
.ug-toc-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 10px; }
.ug-toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ug-toc-section { margin-bottom: 6px; }
.ug-toc-main {
  display: block; padding: 6px 8px; border-radius: 8px;
  color: var(--ink); font-size: .92rem; font-weight: 700;
}
.ug-toc-main:hover { background: var(--bg-soft); color: var(--brand-700); text-decoration: none; }
.ug-toc-sublist {
  list-style: none; margin: 2px 0 0; padding: 0 0 0 12px;
  border-left: 1px solid var(--line); display: grid; gap: 1px;
}
.ug-toc-subitem {
  display: block; padding: 4px 8px; border-radius: 6px;
  color: var(--muted); font-size: .82rem; font-weight: 500; line-height: 1.35;
}
.ug-toc-subitem:hover { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.ug-toc a:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 1px; }

/* Sections + subsections: scroll-margin keeps anchored targets clear of the sticky header. */
.ug-section { scroll-margin-top: 88px; margin-bottom: 46px; }
.ug-section:last-of-type { margin-bottom: 28px; }
.ug-section-head { margin-bottom: 16px; }
.ug-section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 4px 0 8px; }
.ug-for { font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
.ug-for strong { color: var(--ink-soft); }
.ug-section .ug-item { margin-bottom: 10px; }
.ug-item { scroll-margin-top: 88px; }
.ug-list { margin: 10px 0 0; padding-left: 20px; color: var(--ink-soft); }
.ug-list li { margin: 5px 0; }
.ug-faq-title { font-size: 1.15rem; margin: 22px 0 12px; scroll-margin-top: 88px; }
.ug-cta-line { margin-top: 8px; color: var(--ink-soft); }
.ug-cta-line a { color: var(--brand-700); font-weight: 700; }

@media (max-width: 900px) {
  .ug-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .ug-hero-slash { left: auto; right: 16px; top: 14px; }
  .ug-grid { grid-template-columns: 1fr; gap: 22px; }
  /* Contents becomes a compact, scrollable card at the top (not full-height). */
  .ug-toc { position: static; top: auto; max-height: 56vh; }
}
