/* E-Bike Trails — site styles
   Inspired by the bold, high-speed graphic language of performance cycling apparel:
   black + white base, neon yellow-green and red accents, heavy italic condensed type,
   hard diagonal cuts and chevron stripes. */

/* Self-hosted fonts (Barlow, SIL OFL) so visitors' IP addresses are not sent to Google. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/Barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/Barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 700; font-display: swap; src: url('fonts/BarlowCondensed-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('fonts/BarlowCondensed-800-italic.woff2') format('woff2'); }

:root {
  --black: #0b0b0c;
  --ink: #17171a;
  --graphite: #26262b;
  --white: #ffffff;
  --paper: #f4f4f1;
  --line: #dcdcd6;
  --neon: #d8ff1f;
  --red: #e5202e;
  --muted: #6b6b72;
  --cut: 42px;
  --max: 1160px;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--neon); color: var(--black); padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1rem;
  color: var(--neon);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 38px; height: 8px;
  background: repeating-linear-gradient(115deg, currentColor 0 6px, transparent 6px 11px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black); color: var(--white);
  border-bottom: 4px solid var(--neon);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: 1.7rem; letter-spacing: 0.02em;
}
.brand .mark { width: 38px; height: 38px; }
.brand b { color: var(--neon); font-weight: 800; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; font-family: var(--display); font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.05rem;
  padding: 8px 14px; position: relative;
}
.nav a:hover { color: var(--neon); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; background: var(--neon);
}
.nav .btn-mini {
  background: var(--neon); color: var(--black); margin-left: 8px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  padding: 8px 22px;
}
.nav .btn-mini:hover { background: var(--white); color: var(--black); }

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav { gap: 8px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    background: transparent; color: var(--white); border: 2px solid var(--white);
    font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase;
    letter-spacing: .06em; font-size: .95rem; line-height: 1; padding: 8px 12px;
  }
  .nav-toggle:hover, .nav-toggle[aria-expanded="true"] { border-color: var(--neon); color: var(--neon); }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s;
  }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle .bars::before { top: -6px; }
  .nav-toggle .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 4px solid var(--neon);
    padding: 8px 0 12px; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 24px; font-size: 1.25rem; border-bottom: 1px solid #26262a; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a[aria-current="page"] { color: var(--neon); }
  .nav-links a[aria-current="page"]::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { transition: none; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--neon); --fg: var(--black);
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.25rem; line-height: 1;
  padding: 18px 38px 18px 30px;
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateX(4px); background: var(--white); }
.btn.dark { --bg: var(--black); --fg: var(--white); }
.btn.dark:hover { background: var(--red); }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn small { display: block; font-size: .72rem; letter-spacing: .14em; opacity: .75; margin-bottom: 3px; font-style: italic; }
.btn span { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--black); color: var(--white); overflow: hidden;
  padding: 84px 0 150px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.hero::before { /* chevron speed stripes */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 0 58%, var(--red) 58% 61%, transparent 61% 63%, var(--neon) 63% 64.5%, transparent 64.5%),
    linear-gradient(115deg, transparent 0 66%, var(--graphite) 66% 100%);
  opacity: .95;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 7.2rem); margin: 18px 0 22px; }
.hero h1 em { font-style: italic; color: var(--neon); display: block; }
.hero p.lede { font-size: 1.25rem; max-width: 34ch; color: #d6d6d0; margin: 0 0 34px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; }

.phone {
  width: min(330px, 78%); margin-inline: auto; position: relative;
  transform: rotate(5deg);
  filter: drop-shadow(18px 22px 0 rgba(0,0,0,.45));
}
.phone .shell {
  background: var(--ink); border: 6px solid var(--white); border-radius: 38px; overflow: hidden; aspect-ratio: 9 / 18.5;
}
.phone svg { width: 100%; height: 100%; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.section .kicker { color: var(--red); font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; display: block; }
.section .intro { max-width: 56ch; color: var(--muted); font-size: 1.15rem; margin: 18px 0 0; }

.features { margin-top: -40px; padding-top: 120px; background: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.card {
  background: var(--white); padding: 34px 28px 32px; position: relative;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  border-top: 6px solid var(--black);
}
.card:nth-child(3n+1) { border-top-color: var(--neon); }
.card:nth-child(3n+2) { border-top-color: var(--black); }
.card:nth-child(3n) { border-top-color: var(--red); }
.card .num {
  font-family: var(--display); font-weight: 800; font-style: italic; font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--black); margin-bottom: 14px;
}
.card h3 { font-size: 1.9rem; margin-bottom: 10px; }
.card p { margin: 0; color: #46464d; }

/* Band */
.band {
  background: var(--neon); color: var(--black); padding: 70px 0;
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  margin: -20px 0;
}
.band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
.stat { border-left: 6px solid var(--black); padding-left: 18px; }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 2.6rem; line-height: 1; }
.stat span { font-weight: 600; }

/* How it works / coming soon */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 0; border-bottom: 2px solid var(--line); }
.steps li::before {
  content: counter(s); font-family: var(--display); font-weight: 800; font-style: italic; font-size: 2.6rem; line-height: 1;
  background: var(--black); color: var(--neon); width: 56px; height: 56px; display: grid; place-items: center;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.steps strong { display: block; font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 1.4rem; letter-spacing: .02em; }
.steps p { margin: 2px 0 0; color: #46464d; }

.soon { background: var(--black); color: var(--white); padding: 38px 34px; clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); }
.soon h3 { font-size: 2rem; color: var(--neon); margin-bottom: 16px; }
.soon ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.soon li { padding-left: 34px; position: relative; }
.soon li::before { content: ""; position: absolute; left: 0; top: .5em; width: 22px; height: 8px; background: repeating-linear-gradient(115deg, var(--red) 0 5px, transparent 5px 9px); }

/* Download */
.get {
  background: var(--black); color: var(--white); text-align: center; padding: 120px 0 130px;
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: -20px;
  position: relative; overflow: hidden;
}
.get::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 0 8%, var(--red) 8% 10%, transparent 10% 11%, var(--neon) 11% 12%, transparent 12%),
              linear-gradient(115deg, transparent 0 90%, var(--neon) 90% 91%, transparent 91% 92%, var(--red) 92% 94%, transparent 94%);
}
.get .wrap { position: relative; }
.get h2 { font-size: clamp(3rem, 8vw, 6rem); }
.get h2 em { color: var(--neon); }
.get p { color: #cfcfc8; max-width: 46ch; margin: 18px auto 38px; font-size: 1.15rem; }
.get .stores { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.get .note { font-size: .9rem; margin-top: 26px; color: #8d8d95; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #bdbdb6; padding: 38px 0 46px; border-top: 4px solid var(--neon); font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer a { text-decoration: none; font-weight: 600; margin-left: 20px; }
.site-footer a:hover { color: var(--neon); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 4px 0; }
.site-footer .links a:first-child { margin-left: 0; }

/* ---------- Policy page ---------- */
.page-hero {
  background: var(--black); color: var(--white); padding: 70px 0 110px; position: relative; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 0 74%, var(--red) 74% 76%, transparent 76% 77%, var(--neon) 77% 78%, transparent 78%),
              linear-gradient(115deg, transparent 0 80%, var(--graphite) 80%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); margin: 14px 0 12px; }
.page-hero p { margin: 0; color: #cfcfc8; }

.policy { max-width: 820px; margin: -34px auto 0; padding: 64px 20px 100px; }
.policy .summary {
  background: var(--paper); border-left: 8px solid var(--neon); padding: 26px 28px; margin: 0 0 54px;
}
.policy .summary h2 { font-size: 1.9rem; margin-bottom: 12px; }
.policy .summary ul { margin: 0; padding-left: 20px; }
.policy .summary li { margin: 6px 0; }
.policy h2 {
  font-size: 2.2rem; margin: 54px 0 14px; display: flex; gap: 14px; align-items: baseline;
}
.policy h2 .n { color: var(--red); }
.policy h3 { font-size: 1.35rem; margin: 26px 0 8px; }
.policy p, .policy li { color: #34343a; }
.policy ul { padding-left: 22px; }
.policy li { margin: 6px 0; }
.policy a { color: var(--black); text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 3px; font-weight: 600; }
.policy a:hover { background: var(--neon); }
.policy table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: .98rem; }
.policy th, .policy td { text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--line); vertical-align: top; }
.policy thead th { background: var(--black); color: var(--white); font-family: var(--display); font-style: italic; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; }
.policy .tablewrap { overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 120px; }
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(115deg, transparent 0 74%, var(--red) 74% 77%, transparent 77% 79%, var(--neon) 79% 80.5%, transparent 80.5%); }
  .phone { width: min(260px, 70%); margin-top: 24px; }
  .grid, .band .wrap { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- FAQ (support page) ---------- */
.faq { margin-top: 18px; border-top: 4px solid var(--black); }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative;
  font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  letter-spacing: .02em; font-size: 1.35rem; line-height: 1.15; color: var(--black);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--black); color: var(--neon); font-size: 1.4rem; line-height: 1;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.faq details[open] summary::after { content: "–"; background: var(--neon); color: var(--black); }
.faq summary:hover { color: var(--red); }
.faq details p { margin: 0 0 20px; padding-right: 44px; }
.policy h2 .n { white-space: nowrap; }

/* ---------- Terms page extras ---------- */
.policy h2 { scroll-margin-top: 92px; }
.policy h3 { scroll-margin-top: 92px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.jump a {
  text-decoration: none; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  letter-spacing: .06em; font-size: 1rem; line-height: 1; color: var(--black); background: var(--paper);
  padding: 11px 18px 11px 16px; border-left: 4px solid var(--neon);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.jump a:hover { background: var(--black); color: var(--neon); }
.policy .jump a, .policy .jump a:hover { text-decoration: none; font-weight: 800; }
.policy .notice {
  background: var(--black); border-left: 8px solid var(--red); padding: 26px 28px 20px; margin: 22px 0 8px;
}
.policy .notice h3 { color: var(--neon); margin: 0 0 12px; font-size: 1.7rem; }
.policy .notice p, .policy .notice li { color: #e6e6e0; }
.policy .notice strong { color: var(--white); }

/* ---------- Small-phone header ---------- */
.brand { white-space: nowrap; }
.nav .btn-mini { white-space: nowrap; }
@media (max-width: 600px) {
  .site-header .wrap { gap: 8px; }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand .mark { width: 32px; height: 32px; }
  .nav .btn-mini { margin-left: 0; padding: 8px 14px; font-size: .88rem; letter-spacing: .04em; }
}
.policy h2 { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .policy h2 { font-size: 1.75rem; gap: 10px; }
  .policy .notice h3 { font-size: 1.45rem; }
}
