/* Dirt Bike Buddy — marketing site
   Palette: Michigan north woods at dusk. Orange is the only hot color. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #0C1310;        /* page */
  --pine-900: #121D17;   /* raised panel */
  --pine-800: #17251D;   /* card */
  --line: #26392E;       /* hairline */
  --bone: #F1EDE3;       /* headline */
  --sage: #9DB2A4;       /* body */
  --sage-dim: #6F8377;
  --brand: #FF6B1A;
  --brand-hi: #FF8B47;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shell: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--sage);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3, .nav-brand span, .btn, .stat b, .step-n {
  font-family: var(--display);
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: .01em;
}
h1 { font-size: clamp(3.4rem, 8.5vw, 6.8rem); font-weight: 700; line-height: .92; }
h2 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: .95; margin-bottom: 20px; }
h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: .03em; margin-bottom: 8px; }
.fire { color: var(--brand); }
.center { text-align: center; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .95rem;
  color: var(--sage);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.eyebrow.center { justify-content: center; }
/* DNR trail-marker diamond */
.marker {
  width: 11px; height: 11px; flex: none;
  background: var(--brand);
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .18);
}

.lede { font-size: 1.17rem; max-width: 46ch; margin: 26px 0 34px; }
.lede-sm { font-size: 1.1rem; max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-solid {
  background: linear-gradient(180deg, var(--brand-hi), var(--brand));
  color: #16100B;
  box-shadow: 0 6px 24px rgba(255, 107, 26, .28);
}
.btn-solid:hover { box-shadow: 0 8px 30px rgba(255, 107, 26, .42); }
.btn-ghost { border-color: var(--line); color: var(--bone); }
.btn-ghost:hover { border-color: var(--sage-dim); background: rgba(255,255,255,.03); }
.btn-big { font-size: 1.2rem; padding: 15px 30px; border-radius: 12px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-note { margin-top: 14px; font-size: .92rem; color: var(--sage-dim); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38, 57, 46, .6);
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand img { border-radius: 8px; }
.nav-brand span { font-size: 1.5rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.nav-brand span em { font-style: normal; color: var(--brand); }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; font-size: 1rem; color: var(--sage);
}
.nav-links a:hover { color: var(--bone); text-decoration: none; }
.nav-cta { flex: none; }
.nav-burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 40px; overflow: hidden; }
.hero-topo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; opacity: .8;
}
#heroTrail { stroke-dashoffset: 0; }
.hero-pin { opacity: 0; animation: pin-in .5s ease 1.9s forwards; }
@keyframes pin-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}
.hero-phone { display: flex; justify-content: center; }

/* ---------- phone frames ---------- */
.phone {
  position: relative;
  width: min(330px, 78vw);
  border-radius: 48px;
  padding: 11px;
  background: #05080699;
  border: 1px solid #2E4437;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 4px 18px rgba(0,0,0,.4);
}
.phone::after {  /* speaker/notch pill */
  content: "";
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 26px; border-radius: 14px; background: #000;
}
.phone img { border-radius: 38px; }
.phone-sm { width: min(250px, 62vw); border-radius: 40px; }
.phone-sm img { border-radius: 31px; }
.phone-sm::after { width: 68px; height: 20px; top: 20px; }
.phone-md { width: min(290px, 70vw); }
.tilt-l { transform: rotate(-3.5deg) translateY(10px); }
.tilt-r { transform: rotate(3deg) translateY(-10px); }

/* ---------- stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
  padding: 26px 28px;
  background: var(--pine-900);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.stat b { display: block; font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--brand); }
.stat span { font-size: .9rem; color: var(--sage); display: block; margin-top: 6px; line-height: 1.35; }

/* ---------- feature sections ---------- */
.feature { padding: 110px 0 30px; }
.feature-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.feature-grid.flip { grid-template-columns: .95fr 1.05fr; }
.feature-grid.flip .feature-copy { order: 2; }
.feature-grid.flip .feature-art { order: 1; }
.feature-art { display: flex; justify-content: center; gap: 0; }
.feature-art .phone + .phone { margin-left: -34px; }
.hero-grid > *, .feature-grid > * { min-width: 0; }

.checks { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before {
  content: "";
  position: absolute; left: 4px; top: .5em;
  width: 9px; height: 9px;
  background: var(--brand);
  transform: rotate(45deg);
  border-radius: 1.5px;
}
.checks b { color: var(--bone); font-weight: 600; }

/* ---------- safety ---------- */
.safety {
  margin-top: 110px;
  padding: 100px 0;
  background: linear-gradient(180deg, var(--pine-900), #101A14 70%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.safety-head { max-width: 640px; margin-bottom: 52px; }
.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  background: var(--pine-800);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 14px;
  padding: 26px 28px;
}
.card p { font-size: .98rem; }

/* ---------- club box ---------- */
.club-box {
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px dashed var(--sage-dim);
  border-radius: 14px;
  background: rgba(255, 107, 26, .05);
}
.club-box p { font-size: .98rem; }

/* ---------- how it works ---------- */
.how { padding: 120px 0 40px; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
  counter-reset: step;
}
.steps li {
  background: var(--pine-900);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px 26px;
  position: relative;
}
/* trail-marker diamond with an un-rotated number inside */
.step-n {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  color: var(--ink);
  background: var(--brand);
  border-radius: 10px;
  transform: rotate(45deg);
  margin: 6px 0 24px 6px;
  font-size: 0;
}
.step-n::before {
  content: counter(step);
  counter-increment: step;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-45deg);
}
.steps h3 { margin-top: 2px; }
.steps p { font-size: .97rem; }

/* ---------- trust ---------- */
.trust { padding: 70px 0 20px; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 44px;
}
.trust-item b { display: block; color: var(--bone); font-size: .98rem; margin-bottom: 4px; }
.trust-item span { font-size: .88rem; color: var(--sage-dim); }

/* ---------- outro ---------- */
.outro { position: relative; padding: 130px 0 140px; text-align: center; overflow: hidden; }
.outro-topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.outro-inner p { margin: 14px 0 30px; font-size: 1.1rem; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--pine-900);
  padding: 54px 0 30px;
}
.foot-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}
.foot-brand { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; }
.foot-brand img { border-radius: 6px; }
.foot-brand span {
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  text-transform: uppercase; color: var(--bone);
}
.foot-brand span em { font-style: normal; color: var(--brand); }
.foot-brand p { grid-column: 1 / -1; font-size: .9rem; color: var(--sage-dim); }
.foot-links { display: grid; gap: 10px; align-content: start; }
.foot-links a { color: var(--sage); font-size: .95rem; }
.foot-links a:hover { color: var(--bone); }
.foot-note {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(38, 57, 46, .5);
  font-size: .84rem; color: var(--sage-dim);
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- support page ---------- */
.page { padding: 70px 0 90px; max-width: 760px; }
.page h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 24px; }
.page h2 { font-size: 1.6rem; margin: 40px 0 10px; }
.page p + p { margin-top: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .feature-grid, .feature-grid.flip { grid-template-columns: 1fr; }
  .feature-grid.flip .feature-copy { order: 1; }
  .feature-grid.flip .feature-art { order: 2; }
  .hero { padding-top: 56px; }
  .hero-phone { margin-top: 20px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .safety-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .foot-row { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0;
    padding: 10px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(38,57,46,.4); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { margin-left: auto; }
  .nav-burger {
    display: grid; gap: 5px; place-content: center;
    width: 42px; height: 42px;
    background: none; border: 1px solid var(--line); border-radius: 9px;
    cursor: pointer;
  }
  .nav-burger span { width: 18px; height: 2px; background: var(--bone); border-radius: 2px; }
}
@media (max-width: 520px) {
  .nav-row { gap: 12px; }
  .nav-brand span { font-size: 1.15rem; }
  .nav-cta { padding: 9px 13px; font-size: .92rem; }
  .trust-row { grid-template-columns: 1fr; }
  .stat-strip { padding: 20px; }
  .phone-sm { width: min(45vw, 250px); padding: 7px; border-radius: 32px; }
  .phone-sm img { border-radius: 26px; }
  .phone-sm::after { width: 52px; height: 15px; top: 15px; }
  .feature-art .phone + .phone { margin-left: -26px; }
  h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-pin { animation: none; opacity: 1; }
  #heroTrail { animation: none !important; }
  .btn { transition: none; }
}
