/* RidingBike site. Colours follow the app (SpeedTheme.swift RideStyle + AccentColor). */
:root {
  --bg: #000;
  --panel: #1a1a1a;        /* RideStyle.panel  white 0.10 */
  --stroke: #383838;       /* RideStyle.panelStroke white 0.22 */
  --muted: #b8b8b8;        /* RideStyle.secondaryText white 0.72 */
  --text: #fff;
  --lime: #b3e640;         /* AccentColor 0.70 / 0.90 / 0.25 */
  --green: #38db5c;        /* RideStyle.start */
  --amber: #ffbd0a;        /* RideStyle.pause / warning */
  --red: #ff4036;          /* RideStyle.finish (overspeed) */
  --radius: 16px;          /* RideStyle.cornerRadius */
  --wrap: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR",
    "Malgun Gothic", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-underline-offset: 0.18em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--lime); color: #000; font-weight: 800; padding: 10px 16px; border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 12px; color: #000; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(0, 0, 0, 0.86); border-bottom: 1px solid #1f1f1f; }
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .top { background: rgba(0, 0, 0, 0.68); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.top .wrap { display: flex; align-items: center; gap: 8px; min-height: 60px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 10px 10px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; }
.nav a.lang { color: var(--lime); border: 1px solid var(--stroke); padding: 6px 12px; margin-left: 6px; }
.nav a.lang:hover { border-color: var(--lime); }
/* phones: the icon + name already link home, so the first nav link gives its room to the name */
@media (max-width: 520px) {
  .nav a:first-child { display: none; }
  .nav a { padding: 10px 8px; font-size: 14px; }
  .nav a.lang { padding: 6px 10px; margin-left: 4px; }
}
@media (max-width: 379px) {
  .brand span { display: none; } /* the name is in the hero eyebrow / page kicker instead */
}

/* ---------- hero ---------- */
.hero { padding: 44px 0 28px; }
.hero .wrap { display: grid; gap: 36px; }
.eyebrow {
  display: inline-block; color: var(--lime); font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
  border: 1px solid var(--stroke); background: var(--panel); border-radius: 999px; padding: 6px 14px;
}
.hero h1 { font-size: clamp(2.6rem, 11vw, 4.8rem); font-weight: 900; margin: 18px 0 18px; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.lead { font-size: clamp(1.06rem, 2.4vw, 1.25rem); color: #e6e6e6; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px;
  border-radius: var(--radius); font-weight: 800; font-size: 17px; text-decoration: none; text-align: center;
}
.btn-live { background: var(--lime); color: #000; }
.btn-live:hover { background: #fff; color: #000; }
.btn-soon { border: 2px dashed #6b8a26; color: var(--lime); background: transparent; cursor: default; }
.btn-ghost { border: 1px solid var(--stroke); color: #fff; background: var(--panel); }
.btn-ghost:hover { border-color: var(--lime); color: #fff; }
.facts { color: var(--muted); font-size: 15px; font-weight: 600; }
.motto { margin-top: 26px; color: var(--muted); font-size: 15px; }
.motto strong { color: #fff; }

/* the big number: mirrors DigitalSpeedView (white digits, grey decimal, lime unit; all red over the limit) */
.speedo {
  background: #0b0b0b; border: 1px solid var(--stroke); border-radius: 28px;
  padding: 22px 22px 24px; text-align: center; position: relative; overflow: hidden;
}
.speedo-chips { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 800; }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid #262626; border-radius: 999px; padding: 6px 12px; color: #fff; }
.chip .ok { color: var(--green); }
.chip .lim { color: var(--red); }
.speed {
  font-family: var(--round); font-weight: 900; line-height: 0.9; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; font-size: clamp(7.5rem, 40vw, 13rem); color: #fff;
  margin: 26px 0 0; transition: color 0.25s ease;
}
.speed .dec { font-size: 0.46em; font-weight: 800; color: var(--muted); letter-spacing: -0.02em; transition: color 0.25s ease; }
.speed-unit { font-family: var(--round); font-weight: 800; font-size: clamp(1.5rem, 6vw, 2.2rem); color: var(--lime); margin-top: 10px; transition: color 0.25s ease; }
.speedo.over .speed, .speedo.over .speed-unit { color: var(--red); }
.speedo.over .speed .dec { color: rgba(255, 64, 54, 0.75); }
.limitbar { margin: 22px auto 0; max-width: 420px; }
.limitbar-track {
  position: relative; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--lime) 0 66.6%, var(--red) 66.6% 100%);
  opacity: 0.9;
}
.limitbar-dot {
  position: absolute; top: 50%; left: calc(var(--v, 61.3) * 1%); width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 4px solid #000; transform: translate(-50%, -50%); transition: left 0.5s linear;
}
.limitbar-scale { position: relative; height: 22px; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.limitbar-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.limitbar-scale .s0 { left: 0; transform: none; }
.limitbar-scale .s20 { left: 66.6%; color: #fff; }
.limitbar-scale .s30 { left: auto; right: 0; transform: none; }
.speedo-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.kicker { color: var(--lime); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 6.4vw, 3rem); font-weight: 900; margin-top: 10px; letter-spacing: -0.035em; }
.section-lead { color: var(--muted); margin-top: 14px; max-width: 40em; text-wrap: pretty; }

.letter { border-left: 4px solid var(--lime); padding: 4px 0 4px 22px; max-width: 44em; margin-top: 26px; }
.letter p { font-size: clamp(1.1rem, 2.6vw, 1.32rem); line-height: 1.7; color: #f2f2f2; }
.letter p + p { margin-top: 1em; }
.letter .sign { color: var(--muted); font-size: 15px; margin-top: 1.4em; }

/* screenshots */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(68vw, 270px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 18px; margin: 30px -20px 0;
  scrollbar-color: var(--stroke) transparent;
}
.shot { margin: 0; scroll-snap-align: center; }
.phone { background: #0d0d0d; border: 2px solid var(--stroke); border-radius: 34px; padding: 8px; }
.phone img { border-radius: 26px; width: 100%; }
.shot figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.shot figcaption b { color: #fff; display: block; font-size: 16px; }
.shot-wide { margin: 14px 0 0; max-width: 760px; }
.shot-wide .phone { border-radius: 30px; }
.shot-wide .phone img { border-radius: 22px; }
.shot-note { margin-top: 22px; font-size: 13.5px; color: #9a9a9a; max-width: 52em; }

/* feature cards (StatCard look) */
.cards { display: grid; gap: 12px; margin-top: 30px; grid-template-columns: 1fr; }
.card { background: var(--panel); border: 1px solid #262626; border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 1.22rem; font-weight: 800; }
.card p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.card .tag { font-family: var(--round); font-weight: 900; font-size: 2.4rem; line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.card .tag small { font-size: 0.42em; font-weight: 800; margin-left: 4px; letter-spacing: 0; }
.tag.red { color: var(--red); } .tag.lime { color: var(--lime); } .tag.amber { color: var(--amber); } .tag.white { color: #fff; }
.card.hl { border-color: #4a1d1a; background: linear-gradient(180deg, #1f1110, var(--panel)); }

/* the zeros */
.zeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px; }
.zero { background: #0b0b0b; border: 1px solid var(--stroke); border-radius: var(--radius); padding: 18px 20px 20px; }
.zero .n { font-family: var(--round); font-weight: 900; font-size: clamp(3.6rem, 16vw, 5.6rem); line-height: 1; color: var(--lime); }
.zero .t { font-weight: 800; font-size: 1.1rem; margin-top: 4px; }
.zero .d { color: var(--muted); font-size: 14.5px; margin-top: 4px; line-height: 1.5; text-wrap: balance; }

.callout { background: var(--panel); border: 1px solid #262626; border-radius: var(--radius); padding: 22px; margin-top: 26px; }
.callout.warn { border-color: #4d3a08; }
.callout h3 { font-size: 1.1rem; font-weight: 800; }
.callout p, .callout li { color: #dcdcdc; font-size: 16px; }
.callout p { margin-top: 8px; }

.get { text-align: center; }
.get .cta { justify-content: center; }
.get .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- prose pages ---------- */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(2.3rem, 9vw, 3.8rem); font-weight: 900; margin-top: 12px; letter-spacing: -0.04em; }
.page-head .section-lead { font-size: 1.1rem; color: #e0e0e0; }
.meta { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.prose { max-width: 760px; padding-bottom: 40px; }
.prose section { padding: 34px 0 0; }
.prose h2 { font-size: clamp(1.4rem, 4.6vw, 1.8rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.prose h2 .no { color: var(--lime); font-family: var(--round); margin-right: 8px; font-variant-numeric: tabular-nums; }
.prose h3 { font-size: 1.08rem; font-weight: 800; margin: 0 0 6px; }
.prose p { color: #dedede; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 12px; }
.prose ul { margin: 0; padding-left: 1.2em; color: #dedede; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--lime); }
.prose strong { color: #fff; }
.summary { background: #0b0b0b; border: 1px solid var(--stroke); border-radius: 22px; padding: 24px; margin-top: 28px; }
.summary ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.summary li { position: relative; padding-left: 34px; color: #f0f0f0; font-weight: 600; margin: 0; }
.summary li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%; background: var(--lime);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11'/%3E%3C/svg%3E");
}
.summary li::after {
  content: ""; position: absolute; left: 7px; top: calc(0.2em + 5px); width: 6px; height: 10px;
  border: solid #000; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.out { display: grid; gap: 12px; margin-top: 14px; }
.out .card p { font-size: 15.5px; color: #d6d6d6; }
.out .to { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; color: #000; background: var(--lime); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.out .to.you { background: var(--amber); }

/* faq */
.faq { margin-top: 8px; border-top: 1px solid #262626; }
.faq details { border-bottom: 1px solid #262626; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 800; font-size: 1.08rem; position: relative; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--lime); font-size: 1.6rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 20px; color: #d6d6d6; }
.faq .a p + p { margin-top: 10px; }
.contact { background: #0b0b0b; border: 1px solid var(--stroke); border-radius: 22px; padding: 26px 24px; margin-top: 16px; }
.contact .mail { font-size: clamp(1.15rem, 4.4vw, 1.5rem); font-weight: 800; display: inline-block; margin: 6px 0 4px; overflow-wrap: anywhere; }
.pending { color: var(--amber); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid #1f1f1f; margin-top: 40px; padding: 32px 0 48px; color: var(--muted); font-size: 14.5px; }
.foot .wrap { display: grid; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: #e6e6e6; font-weight: 700; text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--lime); text-decoration: underline; }
.foot .fine { font-size: 13px; color: #8f8f8f; line-height: 1.6; }

/* ---------- wider screens ---------- */
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .zeros { grid-template-columns: repeat(4, 1fr); }
  .out { grid-template-columns: repeat(2, 1fr); }
  .out .card.full { grid-column: 1 / -1; }
  section { padding: 76px 0; }
}
@media (min-width: 960px) {
  body { font-size: 18px; }
  .hero { padding: 72px 0 40px; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
  .speed { font-size: clamp(9rem, 16vw, 13.5rem); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card.span2 { grid-column: span 2; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; gap: 28px; overflow: visible; margin: 36px 0 0; padding: 0; max-width: 900px; }
  .shot-wide { margin-top: 36px; }
}

/* ---------- very narrow phones ---------- */
@media (max-width: 379px) {
  .eyebrow { font-size: 13px; padding: 6px 12px; }
}
@media (max-width: 345px) {
  .eyebrow { font-size: 12px; padding: 6px 10px; letter-spacing: 0; }
  .btn { font-size: 15px; padding: 0 16px; }
  .speedo { padding: 18px 14px 20px; }
  .speedo-chips { font-size: 12.5px; }
  .chip { padding: 6px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .top, .skip { display: none; }
  body { background: #fff; color: #000; }
  .prose p, .prose li, .prose ul, .summary li, .out .card p, .faq .a, .meta, .foot { color: #000; }
  .prose strong, .faq summary, h1, h2, h3 { color: #000; }
  .card, .summary, .contact { background: #fff; border-color: #999; }
}
