:root {
  color-scheme: dark;
  --bg: #0b1220;
  --card: #131d2d;
  --line: #304057;
  --ink: #fbfaf7;
  --muted: #bbc8d9;
  --orange: #ff8b44;
  --orange-light: #ffad72;
  --dark: #16110f;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--orange-light); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.top { border-bottom: 1px solid #243246; background: #0d1523; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .045em; line-height: 1; }
.brand small { display: block; font: 700 10px var(--body); color: var(--orange-light); letter-spacing: .22em; margin-top: 4px; }
.mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 11px; background: var(--orange); color: var(--dark); letter-spacing: -.04em; font-size: 27px; }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 700; }
nav a:hover { color: var(--ink); }
.layout { margin-top: 20px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: stretch; }
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; isolation: isolate; background: #101a29; }
.bike { margin: 0; background: #e1e0df; }
.bike img { display: block; width: 100%; height: auto; }
.hero-copy { margin-top: auto; padding: 24px 34px 31px; }
.eyebrow { margin: 0 0 9px; color: var(--orange-light); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 11px; font: 800 clamp(54px, 6.3vw, 87px)/.89 var(--display); text-transform: uppercase; letter-spacing: -.015em; }
h1 span { color: var(--orange); }
.hero-subtitle { color: var(--ink); margin: 0; max-width: 42ch; font-size: clamp(17px, 2vw, 22px); font-weight: 700; line-height: 1.35; }
.order { scroll-margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; justify-content: center; }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
h2 { font: 700 36px/1 var(--display); margin-bottom: 7px; }
.order-head p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.unit { text-align: right; display: flex; flex-direction: column; white-space: nowrap; color: var(--orange-light); font-size: 17px; padding-top: 5px; }
.unit small { color: var(--muted); font-size: 11px; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 20px; }
.pack { background: #0e1726; color: var(--ink); border: 1px solid #35475f; border-radius: 11px; min-height: 75px; padding: 9px 5px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; }
.pack:hover { border-color: var(--orange); }
.pack strong { font: 700 30px/1 var(--display); }
.pack small { font-size: 13px; color: var(--muted); }
.pack[aria-pressed=true] { background: #37281f; border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.pack[aria-pressed=true] small { color: var(--orange-light); }
.quantity-label { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; background: #0e1726; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.stepper button, .stepper input { border: 0; color: var(--ink); background: transparent; min-height: 46px; }
.stepper button { font-size: 25px; line-height: 1; touch-action: manipulation; user-select: none; }
.stepper button:hover:not(:disabled) { background: #26354b; }
.stepper input { width: 100%; text-align: center; border-inline: 1px solid var(--line); font-size: 19px; font-weight: 700; }
.stepper :focus-visible { outline-offset: -4px; }
.total { display: flex; align-items: center; justify-content: space-between; margin-block: 16px 13px; color: var(--muted); }
.total output { color: var(--ink); font-size: 24px; font-weight: 700; }
.primary { border: 0; border-radius: 11px; background: var(--orange); color: var(--dark); font-weight: 800; min-height: 51px; width: 100%; padding: 12px 15px; }
.primary:hover { background: var(--orange-light); }
#open-checkout { display: flex; align-items: center; justify-content: space-between; font-size: 17px; }
#open-checkout span { width: 10px; height: 10px; margin-right: 4px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.details { margin: 18px 0 26px; }
details { border-radius: 14px; border: 1px solid var(--line); background: #101a29; }
summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; min-height: 50px; font-weight: 700; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 23px; line-height: 1; color: var(--orange-light); }
details[open] summary span { transform: rotate(45deg); }
.details-copy { color: var(--muted); line-height: 1.6; padding: 0 20px 16px; max-width: 78ch; }
.footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); color: var(--muted); padding-block: 17px 24px; font-size: 13px; }
dialog { border: 1px solid var(--line); border-radius: 20px; width: min(465px, calc(100% - 24px)); max-height: calc(100dvh - 30px); padding: 0; color: var(--ink); background: var(--card); }
dialog::backdrop { background: #050911c9; }
.modal { padding: 22px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; }
.close { border: 1px solid var(--line); border-radius: 8px; background: #0e1726; color: var(--ink); width: 44px; height: 44px; font-size: 24px; }
.receipt { background: #0e1726; border: 1px solid var(--line); padding: 14px; border-radius: 11px; margin: 0 0 15px; }
.receipt p { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.receipt p:last-child { margin-bottom: 0; }
.receipt span, .modal p:not(.receipt p) { color: var(--muted); }
.modal-actions { display: grid; gap: 9px; }
.secondary { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #0e1726; color: var(--ink); font-weight: 700; }
.timer { color: var(--orange-light); font-variant-numeric: tabular-nums; }
.demo-code { display: block; width: 100%; color: var(--ink); padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #0b1220; margin: 0 0 9px; }
.status { min-height: 1.3em; margin: 7px 0 0; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 850px) {
  .wrap { width: min(680px, calc(100% - 36px)); }
  .layout { margin-top: 12px; grid-template-columns: 1fr; gap: 10px; }
  .bike img { height: clamp(164px, 48vw, 246px); object-fit: contain; }
  .hero-copy { padding: 12px 16px 14px; }
  .hero-copy h1 { font-size: clamp(34px, 8vw, 54px); margin-bottom: 6px; line-height: .98; }
  .hero-subtitle { font-size: 15px; }
  .hero .hero-actions { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 10px; }
  .hero-actions .quick-participate { min-height: 44px; padding: 8px 6px; }
  .hero-actions .bike-link { margin-top: 0; font-size: 13px; gap: 4px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 26px); }
  .header-inner { min-height: 65px; }
  .brand { font-size: 20px; gap: 8px; }
  .mark { width: 36px; height: 36px; font-size: 23px; }
  nav { font-size: 12px; gap: 12px; }
  nav a:first-child { display: none; }
  .hero { border-radius: 15px; }
  h1 { font-size: clamp(45px, 12vw, 63px); }
  .order { border-radius: 15px; padding: 16px; }
  .order-head { margin-bottom: 14px; }
  .order-head h2 { font-size: 30px; }
  .order-head p { font-size: 13px; }
  .packs { margin-bottom: 14px; }
  .pack { min-height: 64px; }
  .modal { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

[hidden] { display: none !important; }
body { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom, 0); }
.top { padding-top: env(safe-area-inset-top, 0); }
.mark { display: block; flex: none; object-fit: contain; }
.desktop-nav { margin-left: auto; }
.menu-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 12px; background: #131d2d; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; border-radius: 9px; }
.hamburger { display: block; width: 16px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.hamburger::after { content: ''; position: absolute; inset: 3px 0 auto; border-top: 2px solid currentColor; }
.unit { padding-top: 1px; gap: 3px; }
.unit strong { font-size: 20px; }
.rules { margin: 0; }
.rules > div { margin-bottom: 11px; }
.rules > div:last-child { margin-bottom: 0; }
.rules dt { font-weight: 700; color: var(--ink); }
.rules dd { margin: 0; }
.inner-page { min-height: min(620px, 70vh); padding-block: 36px 45px; }
.page-title { font-size: clamp(49px, 7vw, 78px); margin: 0 0 24px; }
.panel, .campaign-card { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; max-width: 740px; }
.panel p, .campaign-card p { color: var(--muted); line-height: 1.55; }
.panel .eyebrow, .campaign-card .eyebrow { color: var(--orange-light); }
.story p:last-child { margin-bottom: 0; }
.story h3 { margin: 24px 0 7px; font-size: 18px; }
.athlete-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; max-width: 900px; }
.athlete-photo { display: block; width: 100%; height: auto; max-width: 400px; border-radius: 12px; }
@media (max-width: 600px) {
  .athlete-story { grid-template-columns: minmax(0, 1fr); }
  .athlete-photo { justify-self: center; }
}
.section-icon { margin-bottom: 12px; }
.campaign-card { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: 21px; }
.campaign-card img { display: block; width: 100%; height: auto; border-radius: 10px; }
.page-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--orange-light); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.section-heading { margin-top: 28px; }
.muted { color: var(--muted); }
.footer { align-items: center; }
.text-button { padding: 5px 0; min-height: 44px; background: transparent; border: 0; color: var(--orange-light); font-weight: 700; }
.site-menu { width: min(365px, calc(100% - 24px)); }
.menu-links { display: grid; gap: 3px; margin: 0 0 16px; color: var(--ink); font-size: 16px; }
.menu-links a { display: flex; align-items: center; min-height: 47px; padding: 0 12px; border-radius: 8px; }
.menu-links a:hover, .menu-links [aria-current="page"] { background: #37281f; color: var(--orange-light); }
.install-steps { color: var(--muted); line-height: 1.55; padding-left: 24px; }
.install-steps li + li { margin-top: 10px; }
.install-steps strong { color: var(--ink); }
.email-form { display: grid; gap: 8px; max-width: 450px; }
.email-form label { font-size: 14px; font-weight: 700; }
.email-form input { min-height: 48px; width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #0e1726; color: var(--ink); padding: 9px 11px; font-size: 16px; }
.email-form .primary { margin-top: 5px; }
.email-note { font-size: 13px; color: var(--muted); margin: 4px 0; }
#lookup-result:not(:empty) { margin-top: 20px; }
.purchase { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.purchase h3 { font-size: 16px; margin: 0 0 8px; }
.purchase details { margin-bottom: 9px; }
.purchase details summary { font-size: 14px; }
.number-list { padding: 0 14px 14px; display: flex; flex-wrap: wrap; gap: 6px; max-height: 210px; overflow: auto; }
.number-list span { border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px; font-size: 13px; font-variant-numeric: tabular-nums; }
.demo-qr { width: 140px; height: 140px; display: block; margin: 10px auto 14px; }
@media (max-width: 520px) {
  .desktop-nav { display: none; }
  .menu-toggle { padding-inline: 10px; }
  .inner-page { padding-block: 25px 30px; }
  .panel, .campaign-card { padding: 16px; }
  .campaign-card { grid-template-columns: 1fr; gap: 14px; }
}
#checkout-content details { margin-bottom: 12px; }

.bike-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--orange-light); font-weight: 700; text-align: left; }
.bike-link span { font-family: system-ui, sans-serif; }
.bike-detail-image { display: block; width: 100%; height: auto; border-radius: 10px; }
.bike-detail-photo { margin: 0 0 16px; }
.bike-specs > div { border-top: 1px solid var(--line); padding-top: 8px; }
.bike-specs dd { color: var(--muted); }
.campaign-purpose { margin: 0 0 14px; padding: 18px 20px; background: #101a29; border: 1px solid var(--line); border-radius: 14px; }
.campaign-purpose h2 { font-size: 26px; }
.campaign-purpose p { margin: 0; max-width: 78ch; color: var(--muted); line-height: 1.55; }
.email-form select { min-height: 48px; width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #0e1726; color: var(--ink); padding: 9px 11px; font-size: 16px; }
.email-form .consent { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.email-form .consent input { width: 19px; height: 19px; min-height: 0; flex: none; accent-color: var(--orange); }
.terms-copy { padding: 0 14px 14px; line-height: 1.5; }

.quick-participate { display: none; }
@media (max-width: 850px) { .hero-actions .quick-participate { display: block; } }
.campaign-progress { margin: 16px 0 0; }
.progress-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.progress-head output { color: var(--orange-light); font-variant-numeric: tabular-nums; }
.campaign-progress progress { display: block; width: 100%; height: 8px; margin: 0; appearance: none; border: 0; border-radius: 20px; background: #314158; accent-color: var(--orange); }
.campaign-progress progress::-webkit-progress-bar { background: #314158; border-radius: 20px; }
.campaign-progress progress::-webkit-progress-value { background: var(--orange); border-radius: 20px; }
.campaign-progress progress::-moz-progress-bar { background: var(--orange); border-radius: 20px; }
.pack.pack-featured { position: relative; border: 2px solid var(--orange); background: #4b2e20; }
.pack.pack-featured[aria-pressed=true] { background: #5b3826; }
.pack-featured strong { color: #fff5ed; }
.pack-featured small { color: var(--orange-light); }
.pack-badge { position: absolute; inset: -9px auto auto; padding: 2px 7px; border-radius: 10px; background: var(--orange); color: var(--dark); font-size: 10px; font-weight: 800; white-space: nowrap; }
.packs { row-gap: 14px; }
.social-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--orange-light); font-weight: 700; }
.purchase-summary { font-weight: 700; }
@media (max-width: 520px) { .footer { flex-wrap: wrap; } }
