/* ==========================================================================
   ride2.biz — core stylesheet
   Static HTML / CSS / vanilla JS. Works when opened directly via file://.
   Components: .wrap, .brand, .nav, .hero, .steps, .paths, .pillars, footer.
   ========================================================================== */

/* ---------- Self-hosted fonts (no external requests) ----------
   Inter variable font with weight + optical-size axes (OFL licensed).
   font-optical-sizing:auto switches to the "Display" cut at large sizes,
   which matches the Ride2Biz headline lettering. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Design tokens ---------- */
:root {
  /* Ocean / sky palette */
  --navy-950: #021428;
  --navy-900: #04203f;
  --navy-800: #062c55;
  --navy-700: #0a3c70;
  --ocean-600: #0d5596;
  --ocean-500: #1769b0;
  --sky-100: #e6f1fb;

  /* Brand yellow (sampled from the Ride2Biz design) */
  --yellow: #fef126;
  --yellow-hover: #f4e300;
  --yellow-ink: #032660;

  /* Neutrals */
  --white: #ffffff;
  --ink: #0a1c36;
  --ink-2: #1f3350;
  --muted: #52657e;
  --muted-2: #7d8da3;
  --line: #dce4ed;
  --line-2: #c5d1de;
  --line-dark: rgba(255, 255, 255, .12);
  --surface: #f3f6fa;
  --surface-2: #e9eef5;

  /* Feedback */
  --danger: #d92d20;
  --danger-ink: #b42318;
  --danger-soft: #fef3f2;
  --info-soft: #eef5fc;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(4, 32, 63, .06), 0 18px 44px -20px rgba(4, 32, 63, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Focus ring colour (overridden on dark surfaces) */
  --focus: #0d5596;

  /* Typography */
  --fdisp: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ftext: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* One "design pixel" of the 1447 × 1087 Ride2Biz artboard. The hero scales
     with whichever viewport dimension is tighter, so at 1447 × 1087 every
     measurement is a 1:1 match with the supplied design. */
  --u: min(0.069109vw, 0.091996vh, 1.32px);
}
@supports (height: 1svh) {
  :root { --u: min(0.069109vw, 0.091996svh, 1.32px); }
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--ftext);
  background: var(--navy-900);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: var(--radius-xs);
  background: var(--yellow); color: var(--yellow-ink);
  font-weight: 700; font-size: 14px;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Inline SVG icons (symbols are defined inline in each page so they work under file://) */
.i {
  width: 20px; height: 20px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.nocase { text-transform: none; letter-spacing: .04em; }
.accent { color: var(--yellow); }
.rule { display: block; width: 54px; height: 3px; background: var(--yellow); border: 0; }
.rule.center { margin: 14px auto; }

/* Dark surfaces get a yellow focus ring */
.site-header, .hero, .paths, .membership, .waitlist, .page-hero, .nav { --focus: var(--yellow); }

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
.header-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: max(68px, calc(113 * var(--u)));
  padding-left: max(20px, calc(60 * var(--u)));
  padding-right: max(20px, calc(50 * var(--u)));
}
.brand {
  font-family: var(--ftext);
  font-weight: 800;
  font-size: max(25px, calc(45.8 * var(--u)));
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--white);
  white-space: nowrap;
  border-radius: 4px;
  position: relative;
  top: calc(-4 * var(--u));
}
.brand span { color: var(--yellow); }

.nav { display: flex; align-items: center; gap: max(18px, calc(32 * var(--u))); }
.nav > a {
  font-size: max(13px, calc(16.6 * var(--u)));
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  transition: color .18s;
}
.nav > a:not(.btn-waitlist):hover,
.nav > a[aria-current="page"] { color: var(--yellow); }
.nav .nav-mobile-only { display: none; }

.btn-waitlist {
  display: inline-flex; align-items: center; justify-content: center;
  height: max(44px, calc(62 * var(--u)));
  padding-inline: max(18px, calc(29 * var(--u)));
  border-radius: max(4px, calc(5 * var(--u)));
  background: var(--yellow);
  color: var(--yellow-ink) !important;
  font-size: max(13px, calc(16.6 * var(--u)));
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
  transition: background-color .18s, transform .18s;
}
.btn-waitlist:hover { background: var(--yellow-hover); }

.nav-toggle {
  display: none; position: relative; z-index: 40;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--white); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--ftext); font-size: 14px; font-weight: 700; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius-xs);
  cursor: pointer; text-decoration: none;
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn .arrow { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--yellow); color: var(--yellow-ink); }
.btn-primary:hover { background: var(--yellow-hover); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .42); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ==========================================================================
   Hero — reproduces Ride2Biz-Design.png at the 1447 × 1087 artboard
   ========================================================================== */
.hero {
  position: relative;
  /* Never shorter than the viewport; on wide screens keep the photo's 4:3
     proportion so neither the riders nor the contour lines are cropped. */
  min-height: max(100vh, 75.173vw);
  background: var(--navy-800);
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
@supports (height: 1svh) { .hero { min-height: max(100svh, 75.173vw); } }

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* Subtle navy veil on the left (measured against the design) — keeps the
   supplied scene intact while matching the screenshot's contrast. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(3, 30, 62, .17) 0%,
    rgba(3, 30, 62, .14) 28%,
    rgba(3, 30, 62, .07) 46%,
    rgba(3, 30, 62, .02) 66%,
    rgba(3, 30, 62, 0) 85%);
}

.hero-inner {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(40 * var(--u));
  padding-left: max(20px, calc(69 * var(--u)));
  padding-right: max(20px, calc(40 * var(--u)));
}
@supports (height: 1svh) { .hero-inner { min-height: 100svh; } }

.hero-copy { width: min(100%, max(320px, calc(600 * var(--u)))); }

.eyebrow {
  font-family: var(--ftext);
  font-size: max(11px, calc(21.5 * var(--u)));
  line-height: max(17px, calc(31 * var(--u)));
  font-weight: 700;
  letter-spacing: .185em;
  text-transform: uppercase;
  color: var(--yellow);
}
.display {
  font-family: var(--fdisp);
  font-weight: 760;
  font-size: max(40px, calc(124 * var(--u)));
  line-height: .903;
  letter-spacing: -.03em;
  color: var(--white);
  margin-top: max(16px, calc(36.5 * var(--u)));
}
.display .line { display: block; }
.hero .rule {
  width: max(54px, calc(82 * var(--u)));
  height: max(3px, calc(4 * var(--u)));
  margin-top: max(18px, calc(37.2 * var(--u)));
}
.lead {
  font-size: max(15px, calc(23 * var(--u)));
  font-optical-sizing: none; /* text cut of Inter, as in the design */
  line-height: max(22px, calc(33 * var(--u)));
  color: var(--white);
  max-width: max(300px, calc(565 * var(--u)));
  margin-top: max(16px, calc(31 * var(--u)));
}
.btn-hero {
  margin-top: max(22px, calc(37 * var(--u)));
  min-height: 0;
  height: max(52px, calc(71 * var(--u)));
  padding: 0 max(20px, calc(39 * var(--u))) 0 max(24px, calc(41 * var(--u)));
  gap: max(12px, calc(19 * var(--u)));
  font-size: max(14px, calc(19 * var(--u)));
  font-weight: 800;
  letter-spacing: .12em;
  border-radius: max(4px, calc(5 * var(--u)));
}
.btn-hero .arrow { width: max(20px, calc(26 * var(--u))); height: max(20px, calc(26 * var(--u))); stroke-width: 2; }

/* ==========================================================================
   Shared section patterns (kicker / rule / section-title)
   ========================================================================== */
.section { padding-block: clamp(72px, 9vw, 112px); }
.kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ocean-600);
}
.section-title {
  font-family: var(--fdisp); font-weight: 800; color: var(--ink);
  letter-spacing: -.025em; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.06;
}
.section-lead {
  font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); line-height: 1.65;
  max-width: 60ch; margin: 16px auto 0;
}
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }

/* Large line icons (inline SVG symbols) */
.ico { display: grid; place-items: center; width: var(--ico, 56px); height: var(--ico, 56px); flex: 0 0 auto; }
.ico .i { width: 100%; height: 100%; stroke-width: 1.05; }

/* ---------- About ("paths" band) ---------- */
.paths { background: var(--navy-900); color: var(--white); padding-block: clamp(64px, 8vw, 104px); --ico: clamp(42px, 4.6vw, 54px); }
.paths-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: clamp(36px, 6vw, 84px); align-items: center; }
.paths-copy { border-left: 3px solid var(--yellow); padding-left: clamp(18px, 2vw, 28px); }
.paths .kicker, .membership .kicker, .waitlist .kicker { color: var(--yellow); }
.paths-title {
  font-family: var(--fdisp); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(28px, 3.8vw, 42px); line-height: 1.04; color: var(--white);
  margin-top: 12px;
}
.paths-copy p { margin-top: 18px; font-size: clamp(15px, 1.4vw, 16.5px); color: #b9c8da; line-height: 1.7; max-width: 46ch; }
.pillars { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.pillars li { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 6px clamp(6px, 1vw, 14px); color: var(--white); }
.pillars li + li { border-left: 1px solid var(--line-dark); }
.plabel { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); line-height: 1.5; }

/* ---------- Events ---------- */
.events { background: var(--white); }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.event-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 32px);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.event-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-card); }
.event-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.event-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--navy-900); color: var(--yellow);
}
.event-icon .i { width: 26px; height: 26px; stroke-width: 1.6; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ocean-600); background: var(--sky-100);
  padding: 6px 10px; border-radius: 999px;
}
.tag-muted { color: var(--muted); background: var(--surface-2); }
.event-card h3 { font-family: var(--fdisp); font-weight: 800; font-size: 22px; letter-spacing: -.01em; color: var(--ink); }
.event-card > p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.event-meta { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }
.event-meta div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; }
.event-meta dt { display: flex; align-items: center; gap: 8px; min-width: 92px; color: var(--muted); }
.event-meta dt .i { width: 17px; height: 17px; color: var(--ocean-600); }
.event-meta dd { font-weight: 600; }
.event-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean-600); }
.event-link .i { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .18s var(--ease); }
.event-link:hover { color: var(--navy-900); }
.event-link:hover .i { transform: translateX(3px); }

.events-note {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--navy-900); color: var(--white);
  --focus: var(--yellow);
}
.events-note p { color: #c4d2e2; font-size: 15.5px; max-width: 56ch; }
.events-note strong { display: block; color: var(--white); font-family: var(--fdisp); font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.events-note .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- How it works (steps) ---------- */
.how { background: var(--surface); color: var(--muted); --ico: clamp(46px, 5.4vw, 58px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.step { padding: 8px clamp(20px, 3vw, 40px); text-align: center; }
.step + .step { border-left: 1px solid var(--line-2); }
.step-head { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 74px; margin-bottom: 18px; color: var(--navy-900); }
.num {
  font-family: var(--fdisp); font-weight: 800; font-size: 14px; color: var(--yellow-ink);
  background: var(--yellow); width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 4px; flex: 0 0 auto;
}
.step h3 { font-weight: 800; font-size: 15.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--muted); max-width: 32ch; margin-inline: auto; line-height: 1.65; }

/* ---------- Membership ---------- */
.membership { background: var(--navy-950); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.membership-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(36px, 6vw, 96px); align-items: center; }
.membership-copy p { margin-top: 18px; color: #b9c8da; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; max-width: 52ch; }
.member-points { list-style: none; margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.member-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--white); line-height: 1.5; }
.member-points .i { width: 20px; height: 20px; color: var(--yellow); stroke-width: 2.2; margin-top: 1px; }
.member-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 36px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  --focus: var(--ocean-600);
}
.member-card .kicker { color: var(--ocean-600); }
.member-price { font-family: var(--fdisp); font-weight: 800; font-size: clamp(26px, 2.8vw, 32px); letter-spacing: -.02em; line-height: 1.1; margin-top: 10px; }
.member-sub { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.member-card .btn { margin-top: 24px; }
.fine { font-size: 12.5px; color: var(--muted-2); line-height: 1.55; margin-top: 14px; }

/* ---------- Blog ---------- */
.blog { background: var(--white); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.post-card {
  display: flex; flex-direction: column; gap: 14px;
  border-radius: var(--radius-lg); background: var(--surface);
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
}
.post-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.post-card h3 { font-family: var(--fdisp); font-weight: 800; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.post-card p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.post-foot { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.post-foot .i { width: 16px; height: 16px; }

/* ---------- Waitlist ---------- */
.waitlist { background: var(--navy-900); color: var(--white); position: relative; isolation: isolate; overflow: hidden; }
.waitlist::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 120% at 100% 0%, rgba(23, 105, 176, .45), transparent 60%),
              radial-gradient(60% 90% at 0% 100%, rgba(13, 85, 150, .35), transparent 60%);
}
.waitlist-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(36px, 6vw, 96px); align-items: center; }
.waitlist-copy p { margin-top: 18px; color: #c4d2e2; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; max-width: 46ch; }
.waitlist-copy a:not(.btn) { color: var(--yellow); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.waitlist-copy a:not(.btn):hover { text-decoration-thickness: 2px; }

/* ==========================================================================
   Form system (shared by the waitlist form and contact.html)
   ========================================================================== */
.form-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3.2vw, 40px);
  --focus: var(--ocean-600);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label { display: flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.label .req { color: var(--danger); font-weight: 700; }
.label .opt { font-weight: 500; color: var(--muted-2); font-size: 13px; }

.control { position: relative; display: flex; align-items: center; }
.control > .i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: var(--muted-2); pointer-events: none;
  transition: color .18s;
}
.input, .select, .textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  font-size: 16px; /* 16px prevents iOS zoom on focus */
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(4, 32, 63, .04);
  transition: border-color .18s, box-shadow .18s, background-color .18s;
  -webkit-appearance: none; appearance: none;
}
.control > .i + .input, .control > .i + .select { padding-left: 46px; }
.input::placeholder, .textarea::placeholder { color: #93a1b4; opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: #9fb0c4; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; background: var(--white);
  border-color: var(--ocean-600);
  box-shadow: 0 0 0 4px rgba(23, 105, 176, .16);
}
.control:focus-within > .i { color: var(--ocean-600); }
.textarea { min-height: 140px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352657e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.select:invalid, .select.is-placeholder { color: #93a1b4; }
.select option { color: var(--ink); }

/* Error state */
.is-invalid .input, .is-invalid .select, .is-invalid .textarea,
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--danger); background: #fffbfa;
}
.is-invalid .input:focus, .input[aria-invalid="true"]:focus, .is-invalid .select:focus, .is-invalid .textarea:focus {
  box-shadow: 0 0 0 4px rgba(217, 45, 32, .14);
}
.is-invalid .control > .i { color: var(--danger); }
.field-error {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 13.5px; font-weight: 500; line-height: 1.4; color: var(--danger-ink);
  animation: r2b-error-in .22s var(--ease);
}
.field-error[hidden] { display: none; }
.field-error .i { width: 16px; height: 16px; margin-top: 1px; stroke-width: 2; }
@keyframes r2b-error-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* Template-mode notice (shown instead of a fake "success" message) */
.form-notice {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 20px; padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--info-soft); border: 1px solid #c7dcf1; color: var(--ink);
}
.form-notice[hidden] { display: none; }
.form-notice > .i { width: 22px; height: 22px; color: var(--ocean-600); margin-top: 1px; }
.form-notice h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.form-notice p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-top: 4px; }
.form-notice code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: rgba(13, 85, 150, .08); padding: 1px 5px; border-radius: 4px; }
.form-notice details { margin-top: 10px; }
.form-notice summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ocean-600); border-radius: 4px; }
.form-notice pre {
  margin-top: 10px; max-height: 260px; overflow: auto;
  font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--navy-950); color: #d7e4f3; padding: 14px 16px; border-radius: var(--radius-sm);
}

/* ==========================================================================
   Footer (brand-yellow accent footer)
   ========================================================================== */
.site-footer { background: var(--yellow); color: var(--yellow-ink); --focus: var(--yellow-ink); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 24px; flex-wrap: wrap; }
.fbrand { font-family: var(--ftext); font-weight: 800; font-size: 21px; letter-spacing: -.035em; }
.fnav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.fnav a { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fnav a:hover, .fnav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.fmeta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.ftag { font-weight: 600; }
.fcopy { opacity: .8; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .paths-grid { grid-template-columns: 1fr; gap: clamp(36px, 5vw, 52px); }
  .membership-grid, .waitlist-grid { grid-template-columns: 1fr; }
  .member-card { max-width: 560px; }
}

/* Compact navigation → slide-in drawer */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0; z-index: 35;
    width: 100%; height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 96px clamp(24px, 7vw, 52px) 40px;
    background: rgba(4, 25, 50, .985);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .34s var(--ease), visibility 0s linear .34s;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); visibility: visible; transition: transform .34s var(--ease), visibility 0s; }
  .nav > a { padding: 18px 4px; font-size: 18px; letter-spacing: .08em; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav .nav-mobile-only { display: block; }
  .nav .btn-waitlist { margin-top: 28px; height: 56px; font-size: 15px; padding-inline: 28px; border-bottom: 0; align-self: stretch; border-radius: 6px; }
  body.nav-open { overflow: hidden; }
  .header-wrap { height: 76px; }
  .brand { font-size: 27px; position: relative; z-index: 40; }

  .event-grid, .post-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line-2); padding-top: 30px; margin-top: 22px; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .pillars li:nth-child(2n + 1) { border-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Portrait / narrow screens: stacked hero — copy over the open sky, riders
   below, so text never sits on top of the cyclists. */
@media (max-aspect-ratio: 11/10) {
  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #03305d 0%, #0a4f8c 46%, #1667a6 100%);
  }
  @supports (height: 1svh) { .hero { min-height: 100svh; } }
  .hero::before {
    background: linear-gradient(180deg, rgba(2, 22, 46, .35) 0%, rgba(2, 22, 46, 0) 30%);
    z-index: 0;
  }
  .hero-inner {
    position: relative; z-index: 2; order: 1;
    flex: 1 0 auto; min-height: 0;
    justify-content: flex-start;
    padding: clamp(108px, 15vw, 150px) var(--gutter) 0;
  }
  .hero-copy { width: 100%; max-width: 620px; }
  .eyebrow { font-size: clamp(12px, 2.6vw, 17px); line-height: 1.5; letter-spacing: .18em; }
  .display { font-size: clamp(54px, 15.5vw, 112px); line-height: .92; margin-top: clamp(14px, 3vw, 24px); }
  .hero .rule { width: clamp(56px, 11vw, 82px); height: 4px; margin-top: clamp(20px, 4vw, 30px); }
  .lead { font-size: clamp(16px, 3.1vw, 21px); line-height: 1.55; max-width: 34em; margin-top: clamp(16px, 3.4vw, 26px); }
  .btn-hero { height: clamp(54px, 9vw, 66px); font-size: clamp(14px, 2.4vw, 17px); padding: 0 clamp(24px, 5vw, 38px); margin-top: clamp(24px, 4.6vw, 34px); }

  .hero-media {
    position: relative; inset: auto; z-index: 1; order: 2;
    flex: 0 0 auto;
    width: 178vw; max-width: none;
    margin-left: -71vw;
    margin-top: -24vw;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  }
  .hero-media img { height: auto; aspect-ratio: 1446 / 1087; }
}

/* Short landscape screens (phones on their side) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-inner { padding-top: 64px; padding-bottom: 12px; }
  .display { font-size: clamp(36px, 10vh, 52px); margin-top: 10px; }
  .eyebrow { font-size: 11px; line-height: 1.5; }
  .hero .rule { margin-top: 14px; }
  .lead { font-size: 15px; line-height: 1.5; max-width: 36em; margin-top: 12px; }
  .btn-hero { height: 46px; margin-top: 16px; }
  .nav { padding-top: 72px; }
  .nav > a { padding-block: 12px; font-size: 16px; }
}

@media (max-width: 560px) {
  .pillars li { padding-inline: 6px; }
  .event-meta dt { min-width: 84px; }
  .member-points { grid-template-columns: 1fr; }
  .events-note .actions, .events-note .actions .btn { width: 100%; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.resize-anim-stopper *, .resize-anim-stopper *::before, .resize-anim-stopper *::after { transition: none !important; animation: none !important; }
