/* ==========================================================================
   RidgeRelay styles — mobile-first, calm + confident, Fi-ish vibe
   - No topo background; neutral surfaces
   - One accent color via CSS variables (default electric yellow)
   - Accessible contrast + focus states
   - Respects prefers-reduced-motion
   ========================================================================== */

:root{
  /* Palette (configurable) */
  --bg: #0b0c0f;
  --surface: #101217;
  --surface-2: #0f1116;
  --text: #f2f4f7;
  --muted: #a7afbf;
  --stroke: rgba(255,255,255,.10);
  --shadow: 0 12px 40px rgba(0,0,0,.45);
    --banner-h: 40px; /* default before JS runs */

  --accent: #F7FF00; /* default electric yellow */
  --accent-ink: #0b0c0f;

  /* Layout */
  --container: 1160px;
  --radius: 16px;
  --radius-sm: 12px;
  --gap: 16px;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
}

@media (prefers-color-scheme: light){
  :root{
    --bg:#ffffff;
    --surface:#ffffff;
    --surface-2:#f6f7fb;
    --text:#0b0c0f;
    --muted:#4a5363;
    --stroke: rgba(0,0,0,.10);
    --shadow: 0 10px 24px rgba(0,0,0,.12);
    --accent-ink: #0b0c0f;
  }
}

/* ====== Base ====== */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:3px; }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace; }

.container{
  width:min(var(--container), calc(100% - 2*clamp(16px, 4vw, 28px)));
  margin-inline:auto;
}

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.hide-sm{ display:none; }
@media (min-width: 900px){
  .hide-sm{ display:inline; }
}

/* Strong, visible focus ring */
:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--accent), white 10%);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ====== Buttons / Inputs ====== */
.btn{
  border:1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  transition: transform 140ms var(--ease), background 140ms var(--ease), border-color 140ms var(--ease);
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight: 600;
}
.btn:hover{
  background: color-mix(in oklab, var(--surface), white 6%);
  text-decoration:none;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  background: var(--accent);
  border-color: color-mix(in oklab, var(--accent), black 15%);
  color: var(--accent-ink);
}
.btn--primary:hover{
  background: color-mix(in oklab, var(--accent), white 8%);
}
.btn--ghost{
  background: transparent;
}
.icon-btn{
  padding: 10px 12px;
}
.btn__icon{ display:inline-flex; }
.icon{
  width:20px; height:20px;
  display:block;
}
.icon--chev{ width:18px; height:18px; }

/* Inputs */
.input{
  width:100%;
  padding: 12px 14px;
  border-radius: 12px;
  border:1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface), black 6%);
  color: var(--text);
}
.input::placeholder{ color: color-mix(in oklab, var(--muted), white 10%); }

/* ====== Banner ====== */
.proto-banner{
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--stroke);
}

.proto-banner__inner{
  height: 40px;              /* fixed height */
  display:flex;
  align-items:center;
  gap: 14px;
  overflow:hidden;
}

.proto-banner__marquee{
  margin:0;
  flex: 1;
  min-width: 0;
  overflow:hidden;
}

.proto-banner__rail{
  display:flex;
  width:max-content;
  min-width:100%;
  white-space:nowrap;
  will-change:transform;
  animation: marquee 18s linear infinite;
}

.proto-banner__track{
  flex:0 0 auto;
  padding-right: 24px;
  color: color-mix(in oklab, var(--text), var(--muted) 40%);
  font-weight: 600;
  letter-spacing: .2px;
}

@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .proto-banner__track{ animation: none; }
}

.linklike{
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: 10px;
  cursor:pointer;
  color: var(--accent);
  font-weight: 700;
}
.linklike:hover{ text-decoration: underline; text-underline-offset: 3px; }

/* ====== Header ====== */
/* Header sticks directly under banner */
.site-header{
  position: sticky;
  top: var(--banner-h);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--stroke);
  /* backdrop-filter: blur(10px); */
}

/* keep header items on one line */
.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  transition: box-shadow 160ms var(--ease);
  flex-wrap: nowrap;
}

.site-header.is-condensed .header__inner{
  padding: 14px 0;
}
.site-header.is-condensed{
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

/* ====== Brand (header) ====== */
.brand--wordmark{
  min-width: auto;
}

.brand__wordmark{
  height: 110px;
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.brand__flag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface), white 4%);
  font-size: 13px;
  line-height: 1;
  opacity: .95;
}

.brand{
  display: flex;
  align-items: center;
  flex: 0 0 180px;   /* reserves space on the left */
  width: 180px;
  min-width: 180px;
  overflow: hidden;  /* prevents it from pushing header wider */
}

.nav--desktop{
  display:none;
  gap: 14px;
  align-items:center;
  margin-left: auto;   /* IMPORTANT */
}

@media (min-width: 900px){
  .nav--desktop{ display:flex; }
  .nav-toggle{ display:none; }
}

.header__actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 0 0 auto;
}

[hidden]{
  display: none !important;
}

/* Auth buttons in header */
.auth{
  display:flex;
  align-items:center;
  gap:10px;
}

.auth__welcome{
  color: var(--muted);
  font-weight: 750;
}

.nav__group{ position: relative; }
.nav__trigger{
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 750;
  padding: 10px 10px;
  border-radius: 12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap: 8px;
}
.nav__trigger:hover{
  background: color-mix(in oklab, var(--surface), white 6%);
}
.nav__link{
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--muted);
}
.nav__link:hover{
  background: color-mix(in oklab, var(--surface), white 6%);
  color: var(--text);
  text-decoration:none;
}

/* Mega menus */
.mega{
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(520px, 80vw);
  padding: 0;
  display:none;
}
.mega.is-open{ display:block; }
.mega__panel{
  background: color-mix(in oklab, var(--surface), black 8%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.mega__title{
  margin: 0 0 10px 0;
  font-weight: 800;
  letter-spacing: .2px;
}
.mega__cards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mega-card{
  display:flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface-2), white 2%);
}
.mega-card:hover{
  background: color-mix(in oklab, var(--surface-2), white 7%);
  text-decoration:none;
}
.mega-card__icon{
  width: 38px; height: 38px;
  display:grid; place-items:center;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface), white 5%);
}
.mega-card__label{ font-weight: 900; display:block; }
.mega-card__desc{ color: var(--muted); font-size: 13px; display:block; margin-top: 3px; }

/* ====== Mobile drawer ====== */

.mobile-drawer{
  position: fixed;
  inset: 0;
  z-index: 80;
}

.mobile-drawer[aria-hidden="true"]{
  display: none;
}

.mobile-drawer__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(4px);
}

/* panel */

.mobile-drawer__panel{
  position: absolute;
  top: calc(var(--banner-h) + 10px);
  right: 10px;
  left: 10px;
  max-width: 760px;
  margin-inline: auto;
  background: color-mix(in oklab, var(--surface), black 10%);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* header */

.mobile-drawer__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--stroke);
}

.mobile-drawer__brand{
  font-weight: 900;
  font-size: 22px;
}

/* layout */

.mobile-drawer__body{
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  align-items: start;
  max-height: calc(100vh - var(--banner-h) - 120px);
  overflow: auto;
}

.mobile-drawer__media{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  height: 300px;
  background: color-mix(in oklab, var(--surface-2), black 6%);
  align-self: start;
  position: sticky;
  top: 0;
}

.mobile-drawer__hero{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}


/* overlay text */

.mobile-nav__card--image{
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 0;
  min-height: 140px;
  height: 140px;
  background: color-mix(in oklab, var(--surface-2), black 4%);
}

.mobile-nav__card-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-nav__card-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  gap: 4px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.08));
}

.mobile-nav__card--image .mobile-nav__card-title{
  color: white;
}

.mobile-nav__card--image .mobile-nav__card-desc{
  color: rgba(255,255,255,.85);
}


.mobile-drawer__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,.76), rgba(0,0,0,.08));
}

.mobile-drawer__eyebrow{
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--text), var(--muted) 40%);
}

.mobile-drawer__headline{
  margin: 0;
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.02;
  font-weight: 950;
  max-width: 9ch;
  letter-spacing: -0.02em;
}
.mobile-nav{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav__card{
  display: grid;
  gap: 6px;
  padding: 15px 17px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface-2), white 4%);
  text-decoration: none;
  transition:
    transform 140ms var(--ease),
    background 140ms var(--ease),
    border-color 140ms var(--ease),
    box-shadow 140ms var(--ease);
}

.mobile-nav__card:hover{
  text-decoration: none;
  background: color-mix(in oklab, var(--surface-2), white 8%);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.16);
}

.mobile-nav__card-title{
  font-size: 17px;
  font-weight: 900;
  line-height: 1.08;
  color: var(--text);
}

.mobile-nav__card-desc{
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  font-weight: 650;
}

/* CTA button */

.mobile-nav__actions{
  padding-top: 6px;
}

.mobile-nav__cta{
  width: 100%;
  justify-content: center;
  min-height: 50px;
}

@media (max-width: 899px){
  .mobile-drawer__body{
    grid-template-columns: 1fr;
    max-height: calc(100vh - var(--banner-h) - 100px);
  }

  .mobile-drawer__media{
    height: 220px;
    position: relative;
    top: auto;
  }

  .mobile-drawer__headline{
    max-width: 13ch;
  }
}

@media (min-width: 900px){
  .mobile-drawer__body{
    grid-template-columns: 320px minmax(0, 1fr);
  }
}
 
/* ====== Hero / Carousel ====== */
.hero{
  position: relative;
  padding: 0;
}
.carousel{
  position: relative;
  min-height: 560px;
  background: radial-gradient(1200px 600px at 30% 0%, rgba(247,255,0,.10), transparent 60%),
              radial-gradient(900px 500px at 70% 20%, rgba(255,255,255,.06), transparent 55%),
              color-mix(in oklab, var(--surface), black 12%);
  border-bottom: 1px solid var(--stroke);
}
@media (min-width: 900px){
  .carousel{ min-height: 640px; }
}
.carousel__viewport{
  position:absolute; inset:0;
  overflow:hidden;
}
.carousel__slide{
  position:absolute; inset:0;
  opacity:0;
  transition: opacity 700ms var(--ease);
}
.carousel__slide.is-active{ opacity:1; }
@media (prefers-reduced-motion: reduce){
  .carousel__slide{ transition:none; }
}
.carousel__img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.carousel__overlay{
  position:absolute; inset:0;
  display:flex;
  align-items:flex-end;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.18) 55%, rgba(0,0,0,.10));
}
@media (prefers-color-scheme: light){
  .carousel__overlay{
    background: linear-gradient(to top, rgba(255,255,255,.78), rgba(255,255,255,.25) 55%, rgba(255,255,255,.10));
  }
}

.hero__content{
  padding: 64px 0 96px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.kicker{
  margin:0;
  color: color-mix(in oklab, var(--text), var(--muted) 38%);
  font-weight: 800;
  letter-spacing: .2px;
  text-transform: uppercase;
  font-size: 12px;
}
.hero__title{
  margin:0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.accent{
  color: var(--accent);
  text-shadow: 0 0 20px rgba(247,255,0,.14);
}
.hero-search{ max-width: 720px; }
.hero-search__bar{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface), black 10%);
  box-shadow: 0 10px 30px rgba(0,0,0,.24);
}
.hero-search__icon{
  width: 40px; height: 40px;
  border-radius: 14px;
  display:grid; place-items:center;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface-2), white 3%);
}
.hero-search input{
  border: none;
  background: transparent;
  padding: 10px 10px;
  outline: none;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.hero__subtext{
  margin: 8px 0 0;
  color: color-mix(in oklab, var(--text), var(--muted) 40%);
  font-weight: 600;
}
.hero__ctas{ display:flex; gap: 10px; flex-wrap:wrap; }

.carousel__controls{
  position:absolute;
  left:0; right:0;
  bottom: 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  pointer-events:none;
}
.carousel__controls > *{ pointer-events:auto; }
.carousel__dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
}
.dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.20);
  cursor:pointer;
}
.dot[aria-selected="true"]{
  background: var(--accent);
  border-color: color-mix(in oklab, var(--accent), black 20%);
}

/* ====== Sections ====== */
.section{ padding: 52px 0; }
.section--alt{
  background: radial-gradient(900px 420px at 20% 0%, rgba(247,255,0,.08), transparent 55%),
              color-mix(in oklab, var(--surface-2), black 10%);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}
.section__head{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-bottom: 18px;
}
.section__title{
  margin:0;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.01em;
}
.section__desc{
  margin:0;
  color: var(--muted);
  font-weight: 600;
}
.muted{ color: var(--muted); }

/* ====== Toolbar / Chips ====== */
.toolbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.chips{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.chip{
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface), white 4%);
  padding: 8px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 750;
}
.chip[aria-pressed="true"]{
  background: var(--accent);
  color: var(--accent-ink);
  border-color: color-mix(in oklab, var(--accent), black 20%);
}

/* ====== Cards / Grid ====== */
.grid{ margin-top: 0; }
.trail-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px){
  .trail-grid{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px){
  .trail-grid{ grid-template-columns: 1fr 1fr 1fr; }
}

.card{
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface), black 10%);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}
.card__title{
  margin:0 0 8px;
  font-weight: 900;
  letter-spacing: .1px;
}

.trail-card__hit{
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1;
}

.trail-card__hit:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--accent), white 10%);
  outline-offset: -3px;
  border-radius: var(--radius);
}

.trail-card .heart{
  position: relative;
  z-index: 2;
}

.trail-card button { z-index: 2; }

.trail-card__img{
  height: 170px;
  background: radial-gradient(700px 240px at 30% 10%, rgba(247,255,0,.12), transparent 55%),
              color-mix(in oklab, var(--surface-2), black 10%);
  border-bottom: 1px solid var(--stroke);
}
.trail-card__img img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.trail-card__body{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.trail-card__top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
}
.trail-card__name{
  margin:0;
  font-weight: 950;
  letter-spacing: -.01em;
}
.trail-card__loc{
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}

  /* ================================
   Featured Trails strip ONLY
   (does NOT affect other .trail-grid grids)
   ================================ */

.trail-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
}

/* ONLY the featured row becomes a horizontal scroller */
.trail-strip{
  display:flex;
  gap:14px;
  overflow-x:auto;
  flex-wrap: nowrap;              /* critical */
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling: touch;
}

/* featured cards behave like slides */

.trail-card{
  position: relative;
}

.trail-strip .trail-card{
  flex: 0 0 calc((100% - (14px * 2)) / 3);  /* 3 visible on wide screens */
  min-width: 280px;                          /* keeps it usable on smaller screens */
  scroll-snap-align:start;
}

/* Hide scrollbar but keep scroll */
.trail-strip::-webkit-scrollbar{ height: 0; }

.chiprow{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
}
.pill{
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface-2), white 2%);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  color: color-mix(in oklab, var(--text), var(--muted) 30%);
}
.pill--private{
  border-color: color-mix(in oklab, var(--accent), black 30%);
  color: var(--accent);
}
.heart{
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface), white 4%);
  display:grid;
  place-items:center;
  cursor:pointer;
}
.heart[aria-pressed="true"]{
  background: var(--accent);
  border-color: color-mix(in oklab, var(--accent), black 20%);
  color: var(--accent-ink);
}

/* ====== Saved panel ====== */
.saved{
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--surface-2), black 8%);
}
.saved__head{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 12px;
}
.saved__title{ margin:0; font-weight: 950; }
.saved__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 700px){
  .saved__grid{ grid-template-columns: 1fr 1fr; }
}

/* ====== Steps ====== */
.steps{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px){
  .steps{ grid-template-columns: repeat(4, 1fr); }
}
.step{
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  background: color-mix(in oklab, var(--surface), black 10%);
}
.step__title{ margin:0 0 8px; font-weight: 950; }
.step__text{ margin:0; color: var(--muted); font-weight: 650; }

.how{
  display:grid;
  gap:40px;
  align-items:center;
}

@media (min-width:900px){
  .how{
    grid-template-columns: 1fr 1fr;
  }
}

.how__phone{
  display:flex;
  justify-content:center;
}

.how__img{
  width: min(320px, 100%);
  height: auto;
  display: block;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.how__steps{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.how__step{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:color-mix(in oklab, var(--surface), white 4%);
  cursor:pointer;
  font-weight:700;
}

.how__step:hover{
  background:color-mix(in oklab, var(--surface), white 8%);
}

.how__step.is-active{
  border-color:var(--accent);
}

.how__num{
  width:28px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:var(--accent-ink);
  font-weight:900;
}

.how__desc{
  margin-top:12px;
}

.how__desc h3{
  margin:0 0 6px;
  font-weight:900;
}

.how__desc p{
  margin:0;
  color:var(--muted);
}

/* ====== Browse by activity: arrows + strip layout ====== */
.activity-wrap{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;

  /* keep the fade clean but don't clip arrows */
  position: relative;
  overflow: visible;
}

/* IMPORTANT in grid/flex nesting: allows the middle column to shrink & scroll */
.activity-grid{
  min-width: 0;
}

.activity-grid{
  width: 100%;                   /* ✅ critical: make it a full-width strip */
  max-width: 100%;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;

  /* lets the last item scroll fully into view past the fade */
  padding-right: 64px;
  scroll-padding-right: 64px;

  /* optional: makes trackpads feel more reliable */
  touch-action: pan-x;
}

.activity-grid::-webkit-scrollbar{ height:0; }
.activity-grid{ scrollbar-width: none; } /* Firefox */

.activity{
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 10px;
  flex: 0 0 120px;
  scroll-snap-align: start;
}

.activity__thumb{
  width: 92px;
  height: 92px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
}

.activity__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity__label{
  font-weight: 850;
}

/* fade hint (won't cover the right arrow) */
.activity-wrap::after{
  position:absolute;
  top:0;
  right: 52px;         /* <-- leaves room for the right arrow */
  width:32px;
  height:100%;
  pointer-events:none;
  background: linear-gradient(to left, rgba(11,12,15,1), rgba(11,12,15,0));
}

/* ====== Plan / Community ====== */
.plan{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px){
  .plan{ grid-template-columns: 1.2fr .8fr; }
}
.form{ padding: 16px; }
.form__group{ margin: 0 0 14px; padding:0; border:0; }
.form__legend{ font-weight: 950; margin-bottom: 8px; }
.form__label{ display:block; font-weight: 850; margin-bottom: 8px; }
.form__hint{ margin: 8px 0 0; color: var(--muted); font-weight: 650; font-size: 13px; }
.form__actions{ display:flex; gap: 10px; flex-wrap:wrap; }
.form__status{ margin: 12px 0 0; color: var(--muted); font-weight: 650; min-height: 1.2em; }
.radio{ display:flex; gap: 10px; align-items:center; margin: 8px 0; font-weight: 750; }

.plan__copy{ padding: 16px; }

.community{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px){
  .community{ grid-template-columns: .8fr 1.2fr; }
}
.upload{ padding: 16px; }
.file-btn{ cursor:pointer; }
.upload__status{ margin: 10px 0 0; color: var(--muted); font-weight: 650; min-height: 1.2em; }
.gallery{ padding: 16px; }
.gallery__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 900px){
  .gallery__grid{ grid-template-columns: 1fr 1fr 1fr; }
}
.thumb{
  border-radius: 14px;
  border: 1px solid var(--stroke);
  overflow:hidden;
  aspect-ratio: 4 / 3;
  background: color-mix(in oklab, var(--surface-2), black 12%);
}
.thumb img{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
}

/* ====== Form Plan ====== */
.form--plan{
  padding: 18px;
}

.form__split{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 700px){
  .form__split{
    grid-template-columns: 1fr 1fr;
  }
}

.input--textarea{
  min-height: 110px;
  resize: vertical;
}

.plan-choice{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 700px){
  .plan-choice{
    grid-template-columns: repeat(3, 1fr);
  }
}

.radio--card{
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px 14px;
  background: color-mix(in oklab, var(--surface), white 4%);
  justify-content: flex-start;
}

.radio--card:hover{
  background: color-mix(in oklab, var(--surface), white 8%);
}

.plan__copy{
  padding: 18px;
}

.plan__mini{
  display:grid;
  gap: 12px;
}

.plan__mini p{
  margin:0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}


/* ====== Quick safety guides ====== */
.gear-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 900px){
  .gear-grid{ grid-template-columns: repeat(4, 1fr); }
}

.product{
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

/* media container */
.product__media{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--stroke);
}

/* thumbnail */
.product__thumb{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:opacity .35s ease;
}

/* preview video */
.product__preview{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .35s ease;
}

/* hover video preview */
.product__media:hover .product__preview{
  opacity:1;
}

.product__media:hover .product__thumb{
  opacity:0;
}

/* play button */
.product__play{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:52px;
  height:52px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:20px;
  background:rgba(0,0,0,.65);
  color:white;
  pointer-events:none;
}

.product__img{
  height: 120px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(to bottom, rgba(0,0,0,.10), rgba(0,0,0,.35)),
    radial-gradient(700px 180px at 30% 10%, rgba(247,255,0,.10), transparent 55%),
    color-mix(in oklab, var(--surface-2), black 10%);
}

.modal__panel--video{
  width: min(900px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal__content--video{
  padding: 0;
  overflow: auto;
}

.modal__content--video video{
  width: 100%;
  max-height: calc(100vh - 140px);
  display: block;
  background: #000;
  object-fit: contain;
}

/* ====== Footer ====== */
.footer{
  border-top: 1px solid var(--stroke);
  padding: 44px 0;
  background: color-mix(in oklab, var(--surface-2), black 8%);
}

.footer__brandmark{
  margin-bottom: 10px;
}

.footer__wordmark{
  height: 24px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

.footer__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 900px){
  .footer__grid{ grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}

.footer__title{ margin:0 0 10px; font-weight: 950; }
.footer__links{ list-style:none; padding:0; margin:0; display:grid; gap: 8px; }
.footer__copy{ margin: 10px 0 0; font-weight: 850; }

/* bottom legal bar */
.footer__bottom{
  border-top:1px solid var(--stroke);
  margin-top:40px;
  padding:18px 0;
}

.footer__bottom-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.footer__legal{
  font-weight:700;
  color:var(--muted);
}

.footer__policies{
  display:flex;
  gap:10px;
  font-weight:600;
}

.footer__policies a{
  color:var(--muted);
}

@media (max-width:700px){

.footer__bottom-inner{
  flex-direction:column;
  text-align:center;
}

}

.subscribe{ display:flex; gap: 10px; align-items:center; }
.store-badges{ display:flex; gap: 10px; margin-top: 12px; flex-wrap:wrap; }

.badge{
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface), white 4%);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 850;
  cursor:pointer;
}

.social{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.social__btn{
  width:44px;
  height:44px;
  border-radius:16px;
  border:1px solid var(--stroke);
  display:grid;
  place-items:center;
  background:color-mix(in oklab, var(--surface), white 4%);
}

.social__btn:hover{
  background:color-mix(in oklab, var(--surface), white 8%);
}

/* ====== Modal / Drawer ====== */
.modal, .drawer{ position: fixed; inset: 0; z-index: 70; }
.modal[hidden], .drawer[hidden]{ display:none; }
.modal__backdrop, .drawer__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.56);
}
.modal__panel{
  position: relative;
  width: min(720px, calc(100% - 24px));
  margin: calc(var(--banner-h) + 16px) auto 16px;
  background: color-mix(in oklab, var(--surface), black 12%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.modal__top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--stroke);
}
.modal__title{ margin:0; font-weight: 950; }
.modal__content{ padding: 14px; color: color-mix(in oklab, var(--text), var(--muted) 20%); font-weight: 650; }
.modal__actions{ padding: 0 14px 14px; display:flex; justify-content:flex-end; }

/* Drawer animation */
.drawer{
  position: fixed;
  inset: 0;
  z-index: 70;
}

.drawer[hidden]{
  display: none;
}

.drawer__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.56);
  opacity: 0;
  transition: opacity .3s ease;
}

.drawer__panel{
  position: absolute;
  top: var(--banner-h);
  right: 0;
  height: calc(100dvh - var(--banner-h));
  width: min(520px, 100%);
  background: color-mix(in oklab, var(--surface), black 12%);
  border-left: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow: hidden;
}

.drawer.is-open .drawer__panel{
  transform: translateX(0);
}

.drawer.is-open .drawer__backdrop{
  opacity: 1;
}

.drawer__top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--stroke);
}

.drawer__top .btn{
  flex: 0 0 auto;
}

.drawer__title{
  margin: 0;
  font-weight: 950;
}

.drawer__meta{
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.drawer__content{
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  align-items: stretch;
}

.drawer__hero-image{
  width: 100%;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface-2), black 10%);
}

.drawer__hero-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-strip{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  flex-shrink: 0;
}

.photo-strip::-webkit-scrollbar{
  display: none;
}

.photo{
  width: 104px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--stroke);
}

.drawer__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.weather{
  padding: 16px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface-2), white 2%);
}
.weather__grid{
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.weather-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface-2), white 2%);
  font-weight: 700;
}

.weather__hint{
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

/* ===== Route map preview ===== */

.route-preview{
  padding: 16px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface-2), white 2%);
}

.route-map{
  width: 100%;
  height: 170px;
  margin-top: 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface-2), black 6%);
}

.route-preview .card__title{
  margin-bottom: 6px;
}

/* ====== FAQ details ====== */
.faq{ display:grid; gap: 12px; }
.details{ padding: 14px; }
.details summary{
  cursor:pointer;
  font-weight: 900;
}
.details p{ margin: 10px 0 0; color: var(--muted); font-weight: 650; }

/* ====== Dev grid overlay ====== */
.dev-grid{
  position: fixed;
  inset: calc(var(--banner-h) + 1px) 0 0 0;
  z-index: 999;
  pointer-events: none; /* CRITICAL: never intercept clicks */
  opacity: .55;
  background:
    linear-gradient(to right, rgba(247,255,0,.25) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(to bottom, rgba(247,255,0,.18) 1px, transparent 1px) 0 0 / 60px 60px;
  mix-blend-mode: screen;
}
@media (prefers-color-scheme: light){
  .dev-grid{
    mix-blend-mode: multiply;
    opacity: .25;
  }
}

/* ====== Safety page ====== */
.safety-model{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 980px){
  .safety-model{
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }
}

.safety-model__steps{
  display:grid;
  gap: 12px;
}

.safety-step{
  display:flex;
  align-items:center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface), white 4%);
  color: var(--text);
  cursor:pointer;
  transition: transform 140ms var(--ease), background 140ms var(--ease), border-color 140ms var(--ease);
}

.safety-step:hover{
  background: color-mix(in oklab, var(--surface), white 8%);
  transform: translateY(-1px);
}

.safety-step.is-active{
  border-color: color-mix(in oklab, var(--accent), black 18%);
  background: color-mix(in oklab, var(--surface), white 10%);
}

.safety-step__num{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 900;
  flex: 0 0 auto;
}

.safety-step__text{
  display:grid;
  gap: 3px;
}

.safety-step__label{
  font-weight: 900;
  line-height: 1.1;
}

.safety-step__meta{
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.safety-panel{
  padding: 20px;
  position: sticky;
  top: calc(var(--banner-h) + 92px);
}

.safety-panel__tag{
  margin: 0 0 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface-2), white 3%);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.safety-panel__copy{
  margin: 0;
  line-height: 1.65;
}

.safety-panel__callout{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface-2), white 3%);
  color: var(--muted);
  font-weight: 650;
}

/* =====================================
   Scroll reveal animation (IntersectionObserver)
   Sections fade in when entering viewport
   ===================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
   Back to top button
===================================== */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;

  width: 46px;
  height: 46px;

  border-radius: 50%;
  border: none;

  background: #f5ff00;
  color: #000;

  font-size: 20px;
  font-weight: bold;

  cursor: pointer;

  opacity: 0;
  pointer-events: none;

  transition: opacity .3s ease, transform .3s ease;

  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Skeleton loader */

.skeleton {
  background: linear-gradient(
    90deg,
    #1e1f25 25%,
    #2a2b31 37%,
    #1e1f25 63%
  );
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 0 }
  100% { background-position: 0 0 }
}

.skeleton-card {
  height: 220px;
  border-radius: 12px;
}