/* ============================================================
   THE RIDER APP — site styles
   Three colours only. Contrast. No noise.
   ============================================================ */

:root {
  --black: #000000;
  --white: #FFFFFF;
  --red: #BC1D26;

  /* tones derived from the three, kept near-neutral */
  --ink-90: rgba(255, 255, 255, 0.90);
  --ink-60: rgba(255, 255, 255, 0.58);
  --ink-40: rgba(255, 255, 255, 0.40);
  --ink-25: rgba(255, 255, 255, 0.25);
  --hair:   rgba(255, 255, 255, 0.12);
  --hair-2: rgba(255, 255, 255, 0.07);
  --panel:  #0a0a0a;
  --panel-2:#111111;

  --font-head: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  /* tweakable accent intensity (multiplier 0..1.4) */
  --accent: 1;

  /* motion locked to "subtle" (the design's tweaks panel is dropped in prod) */
  --rv-dur: 0.75s;
  --rv-y: 30px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (not hidden): hidden forces overflow-y to `auto`, making body its own
     scroll container → a phantom 2nd scrollbar inset from the viewport edge on
     macOS. clip crops horizontally without creating a scroll container. */
  overflow-x: clip;
}

::selection { background: var(--red); color: var(--white); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ---- layout primitives ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--ink-60);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
  opacity: var(--accent);
}

/* italic display helper */
.it { font-style: italic; }
.red { color: var(--red); }

/* italic-headlines toggle (logo wordmark always stays italic — brand mark) */
[data-italic-heads="off"] .hero h1,
[data-italic-heads="off"] .feat-top h2,
[data-italic-heads="off"] .num .k,
[data-italic-heads="off"] .num-head h2,
[data-italic-heads="off"] .about-inner h2,
[data-italic-heads="off"] .cta h2,
[data-italic-heads="off"] .success h3,
[data-italic-heads="off"] .foot-contact a.mail {
  font-style: normal;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}
/* full-width red line under the nav — visible from the top */
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--red);
  opacity: var(--accent);
}
.nav[data-scrolled="true"] {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  padding-block: 12px;
}
.nav-cta { justify-self: center; }
.nav-spacer { display: none; }
.logo {
  display: inline-flex;
  align-items: center;
}
.logo img { height: 16px; width: auto; display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --bg: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 24px;
  background: var(--bg);
  color: var(--white);
  border: 1px solid var(--bg);
  cursor: pointer;
  border-radius: 5px;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 11px 18px; font-size: 12.5px; }
.btn--ghost {
  --bg: transparent;
  background: transparent;
  border-color: var(--hair);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--white); background: transparent; }

/* App-store badges (realistic, pre-launch) */
.store { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.store-soon {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-40); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.store-soon::before { content: ""; width: 6px; height: 6px; background: var(--red); opacity: var(--accent); }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
/* centered variant for the bottom waitlist CTA */
.store--center { align-items: center; margin-top: 44px; }
.store--center .store-badges { justify-content: center; }
.cta-store { display: inline-flex; }
.store-badge-img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity .2s ease, transform .2s ease;
}
.store-badge-img:hover { opacity: 0.86; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  padding-bottom: clamp(48px, 9vh, 110px);
  overflow: hidden;
}
/* red grid motif */
.grid-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hair-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair-2) 1px, transparent 1px);
  background-size: clamp(70px, 9vw, 130px) clamp(70px, 9vw, 130px);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 72%);
  opacity: calc(0.9 * var(--accent));
}
/* a single bold red rule that runs through the hero */
.hero-rule {
  position: absolute;
  top: 0; bottom: 0;
  left: clamp(20px, 5vw, 64px);
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--red) 22%, var(--red) 78%, transparent);
  opacity: calc(0.85 * var(--accent));
}
/* continuous red thread running down the whole one-pager */
.spine { display: none; }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 {
  font-size: clamp(34px, 6.2vw, 88px);
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 0.32em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .ln { display: inline-block; }
.slogan {
  font-size: clamp(18px, 2.6vw, 30px);
  font-weight: 400;
  color: var(--ink-90);
  max-width: 22ch;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 2.4em;
}
.slogan b { font-weight: 600; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.badges { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   SECTION RHYTHM
   ============================================================ */
.sec { padding-block: clamp(96px, 15vh, 200px); }
/* hairline divider between every section — faded at the edges so it bleeds */
.sec::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--hair);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.sec-head { display: flex; flex-direction: column; gap: 22px; }

/* ---- manifesto ---- */
.manifesto { text-align: center; }
.manifesto .eyebrow { justify-content: center; margin-bottom: 26px; }
/* section eyebrow spacing for Features + CTA */
#features > .wrap > .eyebrow { margin-bottom: 26px; }
.manifesto p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(32px, 5.6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-transform: none;
  font-style: italic;
  max-width: 16ch;
  margin: 0 auto;
  text-wrap: balance;
}
.manifesto p em { font-style: italic; color: var(--red); }
.manifesto-sub {
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-size: clamp(16px, 1.5vw, 18px) !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  color: var(--ink-60);
  max-width: 46ch !important;
  margin: clamp(28px, 4vh, 44px) auto 0 !important;
}

/* ============================================================
   FEATURES
   ============================================================ */
.feat-top { display:grid; grid-template-columns: 1.15fr 0.85fr; gap:24px 48px; align-items:end; margin-bottom: clamp(48px, 7vh, 84px); }
.feat-top h2 { font-size: clamp(40px, 6.2vw, 88px); text-transform: uppercase; font-style: italic; line-height: 0.95; }
.feat-top p { color: var(--ink-60); max-width: 34ch; padding-bottom: 0.4em; font-size: clamp(16px, 1.5vw, 18px); }

/* featured differentiator card */
.feat-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  background: var(--black);
  overflow: hidden;
}
.feat-hero-copy {
  padding: clamp(32px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.feat-hero-top { display: flex; align-items: center; gap: 16px; }
.feat-badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); opacity: var(--accent);
  display: inline-flex; align-items: center; gap: 9px;
}
.feat-badge::before { content: ""; width: 22px; height: 2px; background: var(--red); }
.feat-hero-copy h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.feat-hero-copy .desc { color: var(--ink-60); font-size: 16px; max-width: 32ch; }
.feat-hero-visual {
  position: relative;
  border-left: 1px solid var(--hair);
  background:
    linear-gradient(to right, var(--hair-2) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(to bottom, var(--hair-2) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--black);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.feat-hero-visual svg { width: 100%; height: 100%; padding: 24px; }
.route-track { fill: none; stroke: var(--hair); stroke-width: 8; }
.route-line {
  fill: none; stroke: var(--red); stroke-width: 3; opacity: var(--accent);
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
}
.feat-hero.in .route-line { animation: drawRoute 1.8s cubic-bezier(.4,0,.2,1) 0.2s forwards; }
@keyframes drawRoute { to { stroke-dashoffset: 0; } }
.route-dot { fill: var(--black); stroke: var(--white); stroke-width: 2.5; }
.route-mid { stroke: var(--ink-60); }
.route-pin { fill: var(--red); opacity: var(--accent); }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.feat-card {
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--black);
  transition: background .3s ease;
}
.feat-card:hover { background: var(--panel); }
.feat-num { font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--ink-40); letter-spacing: 0.04em; }
.feat-ico {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hair);
}
.feat-ico svg { width: 24px; height: 24px; stroke: var(--red); }
.feat-card h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.01em; }
.feat-card .desc { color: var(--ink-60); font-size: 16px; max-width: 30ch; }
.feat-card .spacer { flex: 1; }

/* phone screenshot — fits one full screen exactly, no frame */
.shot {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-top: 4px;
  aspect-ratio: 1266 / 2628;
  overflow: hidden;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ============================================================
   NUMBERS
   ============================================================ */
.numbers { border: 0; }
.num-head { margin-bottom: clamp(48px, 7vh, 88px); }
.num-head .eyebrow { margin-bottom: 26px; }
.num-head h2 {
  font-size: clamp(38px, 5.6vw, 80px);
  text-transform: uppercase; font-style: italic; line-height: 0.92;
}
.num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(36px, 3.5vw, 56px);
}
.num .k {
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(46px, 6.2vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}
.num .k .plus { color: var(--red); opacity: var(--accent); }
.num .label { margin-top: 16px; color: var(--ink-60); font-size: 14.5px; line-height: 1.5; max-width: 22ch; }
.num .label strong { color: var(--white); font-weight: 600; }
.num-foot {
  margin-top: clamp(48px, 7vh, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--hair);
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-40); font-size: 13.5px; letter-spacing: 0.02em;
}
.num-foot .dot { width: 6px; height: 6px; background: var(--red); flex: none; }

/* ============================================================
   ABOUT / ORIGIN STORY
   ============================================================ */
.about-inner { max-width: 720px; margin: 0 auto; }
.about-inner .eyebrow { margin-bottom: 26px; }
.about-inner h2 {
  font-size: clamp(40px, 6.2vw, 88px);
  text-transform: uppercase; font-style: italic; line-height: 0.92;
  margin-bottom: clamp(26px, 3.5vh, 40px);
}
.about-inner h2 .red { color: var(--red); }
.about-rule { display: block; width: 56px; height: 2px; background: var(--red); opacity: var(--accent); margin-bottom: clamp(32px, 4.5vh, 52px); }
.about-body { display: flex; flex-direction: column; gap: clamp(16px, 2vh, 22px); max-width: 62ch; }
.about-body p { color: var(--ink-60); font-size: clamp(16px, 1.45vw, 18px); line-height: 1.7; margin: 0; }
.about-body .about-lead-in {
  color: var(--white);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  letter-spacing: 0;
}
.about-body .about-close { color: var(--white); }
.about-cred {
  margin-top: clamp(44px, 6vh, 68px);
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  display: flex; align-items: baseline; gap: 12px;
  color: var(--ink-40); font-size: 13px; line-height: 1.5; letter-spacing: 0.02em;
}
.about-cred .dot { width: 6px; height: 6px; background: var(--red); flex: none; opacity: var(--accent); transform: translateY(-2px); }

/* ============================================================
   WAITLIST / FOOTER
   ============================================================ */
.cta { text-align: left; padding-block: clamp(110px, 18vh, 230px); position: relative; overflow: hidden; }
.cta .grid-motif { -webkit-mask-image: radial-gradient(120% 90% at 22% 40%, #000 0%, transparent 72%); mask-image: radial-gradient(120% 90% at 22% 40%, #000 0%, transparent 72%); }
.cta .inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta .eyebrow { margin-bottom: 26px; }
.cta h2 { font-size: clamp(40px, 6.2vw, 88px); text-transform: uppercase; font-style: italic; letter-spacing: -0.03em; line-height: 0.92; margin-bottom: clamp(20px, 3vh, 32px); }
.cta .sub { color: var(--ink-60); font-size: clamp(16px, 1.5vw, 18px); max-width: 38ch; margin: 0 0 40px; line-height: 1.6; }

.form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0;
  border: 1px solid var(--hair);
  border-radius: 5px;
  overflow: hidden;
  background: var(--black);
  transition: border-color .25s ease;
}
.form:focus-within { border-color: var(--white); }
.form.err { border-color: var(--red); }
.form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 17px 20px;
  outline: none;
}
.form input::placeholder { color: var(--ink-40); }
.form .btn { border: 0; flex: none; border-radius: 0; }
.form .btn:hover { transform: none; background: #d11f29; }
.form-msg { min-height: 22px; margin-top: 14px; font-size: 13.5px; letter-spacing: 0.02em; }
.form-msg.error { color: var(--red); }
.form-msg.ok { color: var(--ink-40); }
.form-msg.ok b { color: var(--ink-60); font-weight: 600; }

.success {
  max-width: 520px; margin: 0 auto;
  border: 1px solid var(--red);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.success .chk { width: 40px; height: 40px; border: 2px solid var(--red); display:flex; align-items:center; justify-content:center; margin-bottom: 6px; }
.success .chk svg { width: 22px; height: 22px; stroke: var(--red); }
.success h3 { font-family: var(--font-head); font-size: 24px; font-style: italic; text-transform: uppercase; }
.success p { color: var(--ink-60); font-size: 15px; }

footer { border-top: 1px solid var(--hair); padding-block: clamp(40px, 6vh, 64px); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.foot-contact { display: flex; flex-direction: column; gap: 8px; }
.foot-contact .lbl { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-40); }
.foot-contact a.mail { font-family: var(--font-body); font-weight: 500; font-size: clamp(15px, 1.4vw, 18px); font-style: normal; letter-spacing: 0; color: var(--ink-90); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--ink-40); transition: color .2s ease, text-decoration-color .2s ease; }
.foot-contact a.mail:hover { color: var(--red); text-decoration-color: var(--red); }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 44px; height: 44px; border: 1px solid var(--hair);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, background .2s ease;
}
.socials a:hover { border-color: var(--red); background: var(--red); }
.socials svg { width: 19px; height: 19px; fill: var(--white); }
.foot-bottom { margin-top: clamp(40px, 6vh, 60px); padding-top: 24px; border-top: 1px solid var(--hair-2); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; color: var(--ink-40); font-size: 12.5px; letter-spacing: 0.04em; }
.foot-bottom .logo img { height: 16px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; }
.reveal.in {
  animation: revealIn var(--rv-dur, 0.75s) cubic-bezier(.22,.61,.36,1) var(--rv-d, 0s) both;
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(var(--rv-y, 30px)); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .feat-top { grid-template-columns: 1fr; }
  .feat-hero { grid-template-columns: 1fr; }
  .feat-hero-visual { border-left: 0; border-top: 1px solid var(--hair); min-height: 220px; order: -1; }
  .feat-grid { grid-template-columns: 1fr; }
  .num-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
  .nav .logo { font-size: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .spine { display: none; }
  .hero { align-items: flex-end; }
  /* Was clamp(46px,16vw,96px) in the design — at 16vw a 13–14-char word
     (EN "motorcyclists", DE "Motorradfahrer" ≈ 8.74em) is wider than the
     viewport and gets clipped by overflow-x:hidden. 9.5vw is the largest scale
     that keeps the longest word inside the gutter on a 360px phone (~21px
     margin) across EN/NL/DE. */
  .hero h1 { font-size: clamp(28px, 9.5vw, 60px); }
  .form { flex-direction: column; }
  .form .btn { width: 100%; padding: 16px; }
  .badge { flex: 1; }
}

/* ============================================================
   FOOTER LANGUAGE SWITCHER
   (added — not in the design source; production site is NL/EN/DE)
   ============================================================ */
.foot-language {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 4vh, 40px);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.foot-language a { color: var(--ink-40); transition: color .2s ease; }
.foot-language a:hover { color: var(--white); }
.foot-language a.active { color: var(--red); opacity: var(--accent); }
.foot-language span { color: var(--hair); }
