/* ============================================================
   MyRadPass — marketing site styles
   Apple-style layout (space, big type, scroll reveals) wearing the
   MyRadPass skin (dark slate, Poppins, cyan accent). Built on the
   design-system tokens from ../styles.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rad-bg);
  color: var(--rad-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.material-symbols-rounded { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; line-height: 1; vertical-align: middle; user-select: none; }

/* —— Layout —— */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap--wide { max-width: 1360px; }
.wrap--narrow { max-width: 820px; }
section { position: relative; }
.pad { padding: clamp(72px, 11vw, 148px) 0; }
.pad-sm { padding: clamp(48px, 7vw, 88px) 0; }

/* —— Type —— */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--rad-cyan); margin: 0 0 18px;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.display {
  font-size: clamp(40px, 6.6vw, 84px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.02;
}
.h-section { font-size: clamp(30px, 4.4vw, 56px); letter-spacing: -0.025em; line-height: 1.07; }
.h-feature { font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.02em; }
.lead {
  font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5;
  color: var(--rad-text-secondary); font-weight: 400;
}
.muted { color: var(--rad-text-secondary); }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .material-symbols-rounded { font-size: 20px; }
.btn--cyan { background: var(--rad-cyan); color: #051518; box-shadow: 0 8px 24px rgba(20,165,199,.32); }
.btn--cyan:hover { background: var(--rad-cyan-bright); }
.btn--glass { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--glass:hover { background: rgba(255,255,255,.13); }
.btn--ghost { background: transparent; color: #fff; border-color: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 32px; font-size: 17px; }
/* light-section variants */
.section--light .btn--glass { background: rgba(10,12,18,.04); color: #0a0c12; border-color: rgba(10,12,18,.16); }
.section--light .btn--glass:hover { background: rgba(10,12,18,.08); }
.section--light .btn--cyan { color: #fff; }

.btnrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.textlink { color: var(--rad-cyan); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.textlink:hover { color: var(--rad-cyan-bright); }
.textlink .material-symbols-rounded { font-size: 18px; transition: transform .18s ease; }
.textlink:hover .material-symbols-rounded { transform: translateX(3px); }

/* —— Top nav (thin, translucent, Apple-style) —— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px; display: flex; align-items: center;
  background: rgba(18,20,24,.6);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { background: rgba(16,18,22,.86); }
.nav__inner { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.nav__logo img { height: 36px; }
.nav__links { display: flex; align-items: center; gap: 28px; margin-left: 8px; }
.nav__links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.74); transition: color .15s ease; }
.nav__links a:hover, .nav__links a.active { color: #fff; }
.nav__spacer { flex: 1; }
.nav__menu-btn { display: none; }

/* —— Hero —— */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding-top: 68px; overflow: hidden;
  background: radial-gradient(130% 90% at 50% 0%, rgba(20,165,199,.10), transparent 58%), var(--rad-bg);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; will-change: transform; animation: kenburns 32s ease-in-out infinite alternate; }

/* —— Animated hero backdrop: cyan aurora —— */
.hero__anim { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__glow { position: absolute; width: 62vw; height: 62vw; border-radius: 50%; filter: blur(70px); will-change: transform; }
.hero__glow--1 { top: -22%; left: -12%; background: radial-gradient(circle, rgba(20,165,199,.16), transparent 65%); animation: hero-drift1 28s ease-in-out infinite alternate; }
.hero__glow--2 { bottom: -28%; right: -14%; background: radial-gradient(circle, rgba(20,165,199,.10), transparent 65%); animation: hero-drift2 34s ease-in-out infinite alternate; }
@keyframes hero-drift1 { to { transform: translate3d(9%, 13%, 0) scale(1.16); } }
@keyframes hero-drift2 { to { transform: translate3d(-11%, -9%, 0) scale(1.12); } }

/* —— Hero map scene: orbit route + traveling dot + app notifications —— */
.hero__map {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* fade the route out before the hero's bottom edge so it never hard-cuts
     into the section below */
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 93%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 93%);
}
.route-base { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 2.5; stroke-linecap: round; }
.topo path { fill: none; stroke: rgba(255,255,255,.05); stroke-width: 1.4; }
.topo path.topo--cyan { stroke: rgba(20,165,199,.07); }
.route-line {
  fill: none; stroke: var(--rad-cyan); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 8 12; opacity: .8; animation: route-flow 1.1s linear infinite;
}
@keyframes route-flow { to { stroke-dashoffset: -20; } }
.pin { fill: rgba(255,255,255,.45); }
.rider { animation: rider-fade 22s linear infinite; }
@keyframes rider-fade { 0%,3% { opacity: 0; } 7%,93% { opacity: 1; } 97%,100% { opacity: 0; } }
.dot-halo { fill: rgba(20,165,199,.28); animation: dot-pulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.dot { fill: var(--rad-cyan); stroke: #fff; stroke-width: 2.5; }
@keyframes dot-pulse { 0%,100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.15); opacity: .9; } }

/* notification toasts (foreignObject) — compact */
.mapnote { overflow: visible; transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; }
.maptoast {
  display: flex; align-items: center; gap: 7px; padding: 6px 9px;
  background: rgba(33,36,43,.97); border: 1px solid var(--rad-border);
  border-radius: 10px; box-shadow: 0 10px 26px rgba(0,0,0,.5);
  font-family: var(--font-sans); width: max-content; max-width: 168px;
}
.maptoast__ic { width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex: none; }
.maptoast__ic .material-symbols-rounded { font-size: 13px; }
.maptoast__ic[data-k="event"]   { background: var(--rad-cyan-soft); color: var(--rad-cyan); }
.maptoast__ic[data-k="comment"] { background: var(--rad-green-soft); color: var(--rad-green); }
.maptoast__ic[data-k="track"]   { background: var(--rad-gold-soft); color: var(--rad-gold); }
.maptoast__tx { display: flex; flex-direction: column; line-height: 1.2; }
.maptoast__tx b { font-size: 9px; font-weight: 700; color: #fff; white-space: nowrap; }
.maptoast__tx span { font-size: 8px; color: var(--rad-text-secondary); white-space: nowrap; }

/* staggered pop windows across the 22s trail, as the dot climbs past each pin */
.mapnote--a { animation: note-a 22s ease-in-out infinite; }
.mapnote--b { animation: note-b 22s ease-in-out infinite; }
.mapnote--c { animation: note-c 22s ease-in-out infinite; }
@keyframes note-a {
  0%, 57%   { opacity: 0; transform: translateY(8px) scale(.92); }
  60%, 70%  { opacity: 1; transform: translateY(0) scale(1); }
  74%, 100% { opacity: 0; transform: translateY(-6px) scale(.96); }
}
@keyframes note-b {
  0%, 85%   { opacity: 0; transform: translateY(8px) scale(.92); }
  88%, 95%  { opacity: 1; transform: translateY(0) scale(1); }
  98%, 100% { opacity: 0; transform: translateY(-6px) scale(.96); }
}
@keyframes note-c {
  0%, 28%   { opacity: 0; transform: translateY(8px) scale(.92); }
  31%, 41%  { opacity: 1; transform: translateY(0) scale(1); }
  45%, 100% { opacity: 0; transform: translateY(-6px) scale(.96); }
}

@media (max-width: 760px) { .hero__map { display: none; } }

/* —— Ken Burns: slow drift on hero photography —— */
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(-1.2%, 1%, 0); }
  to   { transform: scale(1.16) translate3d(1.6%, -1.4%, 0); }
}

/* —— Connection graphic: two sides of the sport —— */
.ecomap { width: 100%; max-width: 980px; margin: 30px auto 18px; }
.ecomapsvg { width: 100%; height: auto; display: block; overflow: visible; }
.ecomap__line { fill: none; stroke: var(--rad-cyan); stroke-width: 2; stroke-linecap: round; }
.ecomap__spine { stroke-width: 2; }

.ecomap__head { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ecomap__hname { font-family: var(--font-sans); font-weight: 700; font-size: 35px; line-height: 1; color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.ecomap__hsub { font-family: var(--font-sans); font-weight: 600; font-size: 13px; line-height: 1; color: var(--rad-cyan); text-transform: uppercase; letter-spacing: .1em; margin-top: 8px; }

.ecomap__feat { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.ecomap__feat--l { align-items: flex-end; text-align: right; }
.ecomap__feat--r { align-items: flex-start; text-align: left; }
.ecomap__fname { font-family: var(--font-sans); font-weight: 700; font-size: 22px; line-height: 1.1; color: #fff; }
.ecomap__fdesc { font-family: var(--font-sans); font-weight: 400; font-size: 14px; line-height: 1.25; color: var(--rad-text-secondary); margin-top: 5px; }

/* entrance (transition-based so the end-state holds even if frames throttle) */
.js .ecomap .ecomap__line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .55s ease; }
.js .ecomap .ecomap__logo { opacity: 0; transition: opacity .6s ease; }
.js .ecomap .ecomap__fade { opacity: 0; transition: opacity .5s ease; }
.js .ecomap.in .ecomap__logo { opacity: 1; }
.js .ecomap.in .ecomap__line { stroke-dashoffset: 0; transition-delay: var(--d, 0s); }
.js .ecomap.in .ecomap__fade { opacity: 1; transition-delay: var(--d, 0s); }

@media (max-width: 600px) {
  .ecomap__hname { font-size: 34px; }
  .ecomap__fname { font-size: 22px; }
  .ecomap__fdesc { font-size: 14px; }
  .ecomap__hsub { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg img, .subhero__bg img { animation: none; }
  .hero__glow { animation: none; }
  .hero__map { display: none; }
  .js .ecomap .ecomap__line { stroke-dashoffset: 0; transition: none; }
  .js .ecomap .ecomap__logo, .js .ecomap .ecomap__fade { opacity: 1; transition: none; }
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,18,22,.55) 0%, rgba(16,18,22,.35) 40%, rgba(16,18,22,.92) 100%),
    radial-gradient(120% 90% at 50% 0%, rgba(20,165,199,.10), transparent 55%);
}
.hero__content { position: relative; z-index: 1; }

/* —— Browser frame for the live app embed —— */
.browser {
  border-radius: 16px; overflow: hidden; background: var(--rad-nav);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 8px 24px rgba(0,0,0,.4);
}
.browser__bar {
  height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  background: #1b1e24; border-bottom: 1px solid rgba(255,255,255,.08);
}
.browser__dot { width: 11px; height: 11px; border-radius: 999px; }
.browser__url {
  flex: 1; max-width: 360px; margin: 0 auto; height: 24px; border-radius: 999px;
  background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 12px; color: var(--rad-text-secondary);
}
.app-embed { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rad-bg); }
.app-embed iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; }
.app-embed__launch {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
}

/* —— Feature rows (alternating) —— */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.frow + .frow { margin-top: clamp(64px, 10vw, 140px); }
.frow--flip .frow__media { order: -1; }
.frow__icon {
  width: 56px; height: 56px; border-radius: 16px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 22px;
  background: var(--rad-cyan-soft); color: var(--rad-cyan); border: 1px solid rgba(20,165,199,.3);
}
.frow__icon .material-symbols-rounded { font-size: 28px; }
.frow p { color: var(--rad-text-secondary); margin: 16px 0 0; font-size: 18px; }

/* media tiles */
.tile {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--rad-border);
  box-shadow: 0 24px 60px rgba(0,0,0,.45); background: var(--rad-surface);
  aspect-ratio: 4 / 3;
}
.tile img, .tile image-slot { width: 100%; height: 100%; object-fit: cover; display: block; }

/* —— Card grid —— */
.cardgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--rad-surface); border: 1px solid var(--rad-border);
  border-radius: 20px; padding: 30px; box-shadow: 0 4px 16px rgba(0,0,0,.28);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--rad-border-soft); }
.card__icon {
  width: 50px; height: 50px; border-radius: 14px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 18px;
  background: var(--rad-cyan-soft); color: var(--rad-cyan);
}
.card__icon .material-symbols-rounded { font-size: 26px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--rad-text-secondary); margin: 0; font-size: 16px; }

/* —— Light section —— */
.section--light { background: #f4f6f8; color: #0a0c12; }
.section--light .lead, .section--light .muted, .section--light .card p, .section--light .frow p { color: #565d6b; }
.section--light .card { background: #fff; border-color: #e6e9ee; box-shadow: 0 4px 18px rgba(20,30,50,.06); }
.section--light .eyebrow { color: #0c8aa6; }
.section--light .tile { border-color: #e6e9ee; box-shadow: 0 24px 60px rgba(20,30,50,.12); background: #eef1f5; }

/* —— CTA band —— */
.cta-band { text-align: center; }
.cta-band .display { margin-bottom: 8px; }

/* —— Store badges (Get the app) —— */
.getapp { text-align: center; max-width: 720px; margin: 0 auto; }
.storebadges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.storebadge {
  display: inline-flex; align-items: center; gap: 11px;
  height: 56px; padding: 0 20px; border-radius: 13px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.storebadge:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.storebadge__ic { width: 24px; height: 24px; flex: none; }
.storebadge__tx { display: flex; flex-direction: column; line-height: 1.06; text-align: left; }
.storebadge__tx small { font-size: 10.5px; font-weight: 500; letter-spacing: .02em; opacity: .92; }
.storebadge__tx b { font-size: 18px; font-weight: 600; letter-spacing: .01em; }
.section--light .storebadge { border-color: rgba(0,0,0,.14); }

/* —— "Coming soon" chip on pending app CTAs (injected by site.js) ——
   To hide every chip site-wide, change display below to none — or just
   delete the "Coming soon" injector block in site.js. Chips also vanish
   per-button once you remove that button's data-app-link="pending". */
.soon-note {
  display: inline-flex; align-items: center; align-self: center;
  height: 24px; padding: 0 11px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rad-cyan); background: var(--rad-cyan-soft);
  border: 1px solid rgba(20,165,199,.4);
}
.section--light .soon-note { color: #0c8aa6; background: rgba(20,165,199,.12); border-color: rgba(20,165,199,.35); }
.storebadge--sm { height: 46px; padding: 0 16px; gap: 9px; }
.storebadge--sm .storebadge__ic { width: 20px; height: 20px; }
.storebadge--sm .storebadge__tx small { font-size: 9.5px; }
.storebadge--sm .storebadge__tx b { font-size: 15px; }

/* —— Stat / pill rows —— */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px;
  border-radius: 999px; background: var(--rad-surface-2); border: 1px solid var(--rad-border);
  font-size: 14px; font-weight: 500; color: var(--rad-text);
}
.chip .material-symbols-rounded { font-size: 18px; color: var(--rad-cyan); }

/* —— FAQ accordion —— */
.faq { border-top: 1px solid var(--rad-border); }
.faq__item { border-bottom: 1px solid var(--rad-border); }
.faq__q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; color: var(--rad-text); font-family: var(--font-sans);
  font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: -0.01em;
}
.faq__q .material-symbols-rounded { font-size: 26px; color: var(--rad-cyan); transition: transform .25s ease; flex: none; }
.faq__item.open .faq__q .material-symbols-rounded { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a-inner { padding: 0 4px 26px; color: var(--rad-text-secondary); font-size: 17px; max-width: 760px; }

/* —— Footer —— */
.footer { background: #101216; border-top: 1px solid var(--rad-border); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 64px 0 40px; }
.footer__brand img { height: 30px; margin-bottom: 16px; }
.footer__brand p { color: var(--rad-text-secondary); font-size: 14px; max-width: 280px; margin: 0; }
.footer__col h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rad-text-muted); margin: 0 0 16px; }
.footer__col a { display: block; color: var(--rad-text-secondary); font-size: 15px; margin-bottom: 12px; transition: color .15s ease; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 40px; border-top: 1px solid var(--rad-border); flex-wrap: wrap; }
.footer__bottom small { color: var(--rad-text-muted); font-size: 13px; }
.footer__bottom img { height: 34px; opacity: .8; }

/* —— Scroll reveal (progressive enhancement: hidden only when html.js) —— */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* —— Direction switcher (dev affordance; safe to delete) —— */
.dirswitch {
  position: fixed; z-index: 200; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: rgba(16,18,22,.86); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); font-size: 13px;
}
.dirswitch span { color: var(--rad-text-muted); padding: 0 10px; }
.dirswitch a { padding: 7px 14px; border-radius: 999px; color: rgba(255,255,255,.7); font-weight: 600; }
.dirswitch a.active { background: var(--rad-cyan); color: #051518; }

/* —— Responsive —— */
@media (max-width: 900px) {
  .frow { grid-template-columns: 1fr; gap: 28px; }
  .frow--flip .frow__media { order: 0; }
  .cardgrid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
}
