/* Shredhead site. Concept: a trail-map poster. Mono "trail marker" labels, race-bib condensed headlines,
   and a ridge scene that changes with the sport (ski / bike / surf), which also re-themes the whole page. */

:root {
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 6px;
  --maxw: 1180px;
  /* default sport = ski */
  --bg: #070f24;
  --bg2: #0e1b3f;
  --panel: #0c1838;
  --ink: #eaf1ff;
  --muted: #9fb3d6;
  --accent: #5aa9f0;
  --accent-ink: #04122b;
  --accent2: #b9dbff;
  --line: rgba(185, 219, 255, 0.2);
  color-scheme: dark;
}
:root[data-sport="bike"] {
  --bg: #06160a; --bg2: #0c2a12; --panel: #0a2010; --ink: #ecf8ee; --muted: #9bc4a3;
  --accent: #3ddc73; --accent-ink: #03150a; --accent2: #d4f58a; --line: rgba(190, 240, 170, 0.2);
}
:root[data-sport="surf"] {
  --bg: #071427; --bg2: #123152; --panel: #0b2038; --ink: #eef6fb; --muted: #a2bdd1;
  --accent: #f2a23b; --accent-ink: #1d1203; --accent2: #ffd79a; --line: rgba(255, 215, 154, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 78%; font-weight: 800; line-height: 1; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h1 { font-size: clamp(46px, 9.5vw, 128px); text-transform: uppercase; font-weight: 900; }
h2 { font-size: clamp(34px, 5.4vw, 64px); text-transform: uppercase; }
h3 { font-size: 24px; text-transform: uppercase; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding: 0 max(16px, env(safe-area-inset-left, 0px));
}
.header-row { display: flex; align-items: center; gap: 22px; padding-block: 12px; flex-wrap: wrap; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: var(--radius); color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.sport-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; background: var(--panel); }
.sport-switch button {
  font: inherit; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  color: var(--muted); background: transparent; border: 0; padding: 8px 12px; border-radius: 4px;
}
.sport-switch button svg { width: 17px; height: 17px; }
.sport-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: var(--radius); border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.soon { background: transparent; color: var(--muted); border: 2px dashed var(--line); cursor: default; }
.btn.small { padding: 9px 15px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(36px, 7vw, 84px); padding-bottom: 0; isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(20px, 4vw, 60px); align-items: end; }
.hero h1 { margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 24px; font-size: clamp(18px, 2.2vw, 22px); max-width: 34em; color: var(--ink); }
.hero .cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.stamp { display: inline-flex; align-items: center; gap: 10px; color: var(--accent2); }
.stamp::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.scene { position: relative; margin: clamp(30px, 5vw, 60px) calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 0; height: clamp(150px, 26vw, 300px); }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .s { display: none; }
html[data-sport="ski"] .scene .s-ski, html[data-sport="bike"] .scene .s-bike, html[data-sport="surf"] .scene .s-surf { display: block; }

/* phone mock */
.phone {
  position: relative; z-index: 2; width: min(300px, 100%); justify-self: end; align-self: end;
  margin-bottom: calc(-1 * clamp(40px, 6vw, 80px));
  background: #050a16; border: 1px solid var(--line); border-radius: 38px; padding: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.phone-screen { background: linear-gradient(160deg, var(--bg2), var(--bg)); border-radius: 28px; padding: 18px 14px 16px; display: grid; gap: 12px; min-height: 420px; }
.ph-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.ph-greet { font-family: var(--font-display); font-stretch: 78%; font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.ph-card { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ph-card .lab { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.ph-card .big { font-family: var(--font-display); font-stretch: 78%; font-weight: 800; font-size: 30px; line-height: 1.05; }
.ph-row { display: flex; gap: 14px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ph-row b { color: var(--ink); }
.badge { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 7px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); }
.ph-crew { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avs { display: flex; }
.avs i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg2); margin-left: -8px; background: var(--accent); }
.avs i:nth-child(1) { margin-left: 0; background: #e5704a; }
.avs i:nth-child(2) { background: var(--accent2); }
.avs i:nth-child(3) { background: #8d7bd6; }
.ph-note { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- sections ---------- */
section { position: relative; }
.band { padding-block: clamp(70px, 9vw, 130px); }
.band.alt { background: var(--panel); margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); border-block: 1px solid var(--line); }
.hero + .band { padding-top: clamp(110px, 12vw, 170px); }
.label { display: flex; align-items: center; gap: 12px; color: var(--accent); margin-bottom: 18px; }

.two { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.two p + p { margin-top: 18px; }
.big-p { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.4; font-weight: 500; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 52px; border-top: 1px solid var(--line); }
.pillar { padding: 26px 26px 6px 0; }
.pillar + .pillar { padding-left: 26px; border-left: 1px solid var(--line); }
.pillar .mono { color: var(--accent); }
.pillar h3 { margin: 10px 0; }
.pillar p { color: var(--muted); }

.signs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.sign { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent); }
.sign h3 { margin: 8px 0 10px; }
.sign ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sign li { font-size: 14px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); }
.sign.home { border-color: var(--accent); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feat { padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feat svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin: 16px 0 8px; font-size: 22px; }
.feat p { color: var(--muted); font-size: 16px; }
.sport-block { display: none; }
html[data-sport="ski"] .sport-block.for-ski, html[data-sport="bike"] .sport-block.for-bike, html[data-sport="surf"] .sport-block.for-surf { display: block; }
.for-ski, .for-bike, .for-surf { display: none; }
html[data-sport="ski"] .for-ski, html[data-sport="bike"] .for-bike, html[data-sport="surf"] .for-surf { display: inline; }

.spot { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(26px, 6vw, 80px); align-items: center; }
.logo-tile { background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--bg); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 14%; }
.logo-tile img { max-height: 100%; width: auto; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.split a.card { text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 10px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.split a.card:hover { border-color: var(--accent); }
.split a.card .go { color: var(--accent); font-weight: 700; }

.download { text-align: left; }
.download .cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.app-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.app-row img { width: 96px; height: 96px; border-radius: 22px; }

/* ---------- inner pages ---------- */
.page-hero { padding-top: clamp(40px, 7vw, 90px); padding-bottom: clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(42px, 8vw, 104px); margin-top: 16px; }
.page-hero .lead { margin-top: 22px; max-width: 36em; font-size: clamp(18px, 2.2vw, 22px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.step { padding: 24px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step .mono { color: var(--accent); }
.step h3 { margin: 10px 0; }
.step p { color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tier .tag { align-self: flex-start; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; border: 1px solid var(--accent); color: var(--accent); }
.tag.live { background: var(--accent); color: var(--accent-ink); }
.tier ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.tier li + li { margin-top: 6px; }

.club-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.club { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.club .art { aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--bg); display: grid; place-items: center; padding: 14%; }
.club .art img { max-height: 100%; width: auto; }
.club .body { padding: 16px 18px 20px; display: grid; gap: 8px; align-content: start; }
.club h3 { font-size: 21px; }
.club.partner { border-color: var(--accent); grid-column: span 2; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: none; }
.club.partner .art { aspect-ratio: auto; min-height: 240px; }

form.ask { margin-top: 36px; display: grid; gap: 14px; max-width: 640px; }
form.ask label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
form.ask input, form.ask select, form.ask textarea {
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
}
form.ask textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.out { margin-top: 22px; border: 1px dashed var(--accent); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; max-width: 640px; }
.out[hidden] { display: none; }
.out pre { margin: 0; white-space: pre-wrap; font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); }
.out .addr { font-family: var(--font-mono); font-size: 15px; color: var(--accent2); user-select: all; }
.out .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* legal */
.legal { max-width: 760px; padding-block: 56px 90px; }
.legal h1 { font-size: clamp(36px, 6vw, 64px); }
.legal h2 { font-size: 26px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal mark { background: var(--accent2); color: #111; padding: 0 4px; border-radius: 3px; }
.draft-note { border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin-top: 22px; color: var(--accent2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 44px max(16px, env(safe-area-inset-left, 0px)) 60px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)); gap: 30px; }
.foot img { height: 40px; width: auto; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--ink); }
.fine { margin-top: 36px; color: var(--muted); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .two, .spot, .split, .row2 { grid-template-columns: minmax(0, 1fr); }
  .phone { justify-self: center; margin-bottom: 0; margin-top: 10px; }
  .pillars, .signs, .features, .steps, .tiers, .club-grid { grid-template-columns: minmax(0, 1fr); }
  .features { border-left: 0; }
  .feat { border-right: 0; padding-inline: 0; }
  .pillar, .pillar + .pillar, .step, .step + .step { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .club.partner { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .hero + .band { padding-top: 70px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .header-right { margin-left: auto; }
  .brand img { height: 32px; }
}
@media (max-width: 520px) {
  .sport-switch button { padding: 8px 9px; }
  .sport-switch button span { display: none; }
  .header-right .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
}

/* ---------- additions ---------- */
.pv { display: none; gap: 12px; }
html[data-sport="ski"] .pv.for-ski, html[data-sport="bike"] .pv.for-bike, html[data-sport="surf"] .pv.for-surf { display: grid; }
.tier svg, .card svg, .sport-switch svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tier svg, .card svg { width: 30px; height: 30px; stroke: var(--accent); stroke-width: 1.6; }
.sport-switch svg { stroke: currentColor; stroke-width: 1.8; }
.tier h3, .card h3 { margin-top: 4px; }
.addr-link { font-family: var(--font-mono); font-size: 14px; }

/* club tiles: logos come with their own backgrounds, so they sit on a light sticker tile */
.club { min-width: 0; }
.club .art { background: #f3f2ec; }
.club .art img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.club .body { min-width: 0; }
.club-grid > * { min-width: 0; }

/* club tiles, sizing pass: fixed tile height so big logo files can't stretch the card */
.club .art { aspect-ratio: auto; height: 220px; padding: 20px; overflow: hidden; border-bottom: 1px solid var(--line); }
.club .art img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.club.partner .art { height: auto; min-height: 260px; border-bottom: 0; border-right: 1px solid var(--line); }
@media (max-width: 900px) { .club.partner .art { border-right: 0; border-bottom: 1px solid var(--line); min-height: 220px; height: 220px; } }
.club .art { display: flex; align-items: center; justify-content: center; }
.club .art img { flex: 1 1 auto; min-width: 0; min-height: 0; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.fine + .fine { margin-top: 8px; }

/* in the news */
.press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.press { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color .15s, transform .15s; }
.press:hover, .press:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.press h3 { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.press-src { color: var(--accent2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.press-go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; }
.press-go::after { content: " \2197"; }
.press.featured { grid-column: 1 / -1; border-color: var(--accent); padding: 30px; }
.press.featured h3 { font-size: clamp(22px, 3vw, 32px); max-width: 28ch; }
@media (max-width: 900px) { .press-grid { grid-template-columns: minmax(0, 1fr); } }
.press, .press:hover { text-decoration: none; color: inherit; }
.press h3 { text-transform: none; letter-spacing: 0; font-weight: 700; text-decoration: none; }
.press.featured h3 { max-width: 34ch; }
.press-go { text-decoration: none; }

/* real app screenshots */
.phone.real { padding: 0; background: none; border: 0; box-shadow: none; width: min(100%, 300px); justify-self: center; }
.phone.real img, .frame { display: block; border: 9px solid #05070d; border-radius: 42px; background: #05070d; box-shadow: 0 0 0 1.5px var(--line), 0 30px 70px -20px color-mix(in srgb, var(--accent) 45%, transparent); overflow: hidden; }
.phone.real img { width: 100%; height: auto; }
.frame img { display: block; width: 100%; height: auto; border-radius: 32px; }
.frame { border-radius: 36px; }
.shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin-top: 44px; align-items: start; }
.shot { min-width: 0; display: grid; gap: 14px; }
.shot figcaption { display: grid; gap: 4px; }
.shot figcaption b { font-size: 15px; line-height: 1.25; }
.shot figcaption span { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
@media (max-width: 900px) {
  .shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .shot { flex: 0 0 62%; max-width: 260px; scroll-snap-align: start; }
}
.shots { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin-inline: -4px; }
.shot { flex: 0 0 236px; max-width: none; scroll-snap-align: start; }
.frame { border-width: 7px; border-radius: 34px; }
.frame img { border-radius: 27px; }
.phone.real img { border-width: 8px; border-radius: 40px; }
@media (max-width: 900px) { .shot { flex-basis: 66%; max-width: 250px; } }

/* per-sport screenshots */
.phone.real img.for-ski, .phone.real img.for-bike, .phone.real img.for-surf, .sg { display: none; }
html[data-sport="ski"] .phone.real img.for-ski, html[data-sport="bike"] .phone.real img.for-bike, html[data-sport="surf"] .phone.real img.for-surf { display: block; }


/* sport-conditional blocks */
.blk-nosurf { display: block; } .blk-surf { display: none; }
html[data-sport="surf"] .blk-nosurf { display: none; }
html[data-sport="surf"] .blk-surf { display: block; }

/* Shredhead x SaltBorne */
.salt-lockup { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; font-family: var(--font-display); font-stretch: 78%; font-weight: 800; text-transform: uppercase; line-height: .95; font-size: clamp(44px, 9vw, 112px); letter-spacing: .01em; }
.salt-lockup .sl-x { color: var(--accent); font-weight: 500; }
.salt-lockup .sl-b { color: var(--accent); }
.salt-merch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.merch { min-width: 0; display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.merch:hover, .merch:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.merch svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .salt-merch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .salt-merch { grid-template-columns: minmax(0, 1fr); } }

/* clubs are siloed per sport */
html[data-sport="ski"] .club:not(.s-ski), html[data-sport="bike"] .club:not(.s-bike), html[data-sport="surf"] .club:not(.s-surf) { display: none; }
p.for-surf { display: none; }
html[data-sport="surf"] p.for-surf { display: block; }

/* "What riders see": its own sport toggle, independent of the page theme once tapped */
#app .sg { display: none; }
#app[data-view="ski"] .sg.for-ski, #app[data-view="bike"] .sg.for-bike, #app[data-view="surf"] .sg.for-surf, #app:not([data-view]) .sg.for-ski { display: flex; }
.local-switch { display: inline-flex; gap: 4px; padding: 4px; margin-top: 26px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.local-switch button { appearance: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 14px var(--font-body); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.local-switch button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.local-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.local-switch button:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }


/* store badges: App Store live, Google Play shown as coming soon until it is published */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.store { position: relative; display: inline-block; line-height: 0; border-radius: 12px; }
.store img { height: 54px; width: auto; display: block; }
.store:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }
.store.ios:hover { filter: brightness(1.1); }
.store.soon { cursor: default; }
.store.soon img { opacity: .5; filter: saturate(.6); }
.store em { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); font: 700 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal; line-height: 1; padding: 5px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
#download-cta .stores { margin-top: 34px; }

/* sticky "get the app" bar, phones only; shown after the hero buttons scroll away */
.cta-bar { display: none; }
@media (max-width: 760px) {
  .cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
  .cta-bar[hidden] { display: none !important; }
  .cta-bar.show { transform: none; }
  .cta-bar .cb-label { font: 700 13px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .cta-bar .stores { margin: 0; gap: 8px; flex-wrap: nowrap; }
  .cta-bar .store img { height: 40px; }
  .cta-bar .store em { display: none; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) { .cta-bar .cb-label { display: none; } .cta-bar { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .cta-bar { transition: none; } }

/* phone layout: header scrolls away (the bottom bar keeps the download one tap away), hero shows the buttons straight away */
@media (max-width: 900px) {
  .site-header { position: static; backdrop-filter: none; }
  .header-row { gap: 10px 12px; padding-block: 10px; }
  .brand img { height: 30px; }
  .nav { order: 3; width: 100%; gap: 2px; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .nav a { padding: 9px 14px; font-size: 15px; }
  .hero { padding-top: 12px; }
  .stores { margin-top: 22px; }
  .store img { height: 52px; }
  .store.soon { margin-bottom: 8px; }
}
@media (min-width: 390px) and (max-width: 900px) { .sport-switch button span { display: inline; } .sport-switch button { padding: 8px 10px; } }

.club .more { color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; justify-self: start; }
.club .more::after { content: " \2192"; }
.club .more:hover { text-decoration: underline; }

/* SaltBorne photos */
.salt-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.salt-photos figure { margin: 0; min-width: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.salt-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.salt-photos figcaption { grid-column: 1 / -1; font: 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 520px) { .salt-photos { grid-template-columns: minmax(0, 1fr); } }

/* image safety: never let a width/height attribute or a flex/grid parent stretch a picture (Safari on iPhone is stricter than Chrome) */
img { height: auto; max-width: 100%; }
.phone.real img, .frame img { height: auto; aspect-ratio: 620 / 1341; object-fit: cover; align-self: start; }
.shot, .frame { align-self: start; }
.salt-photos figure { align-self: start; }
.salt-photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.club .art { display: grid; place-items: center; }
.club .art img { flex: none; width: auto; height: auto; max-width: 100%; max-height: 176px; object-fit: contain; align-self: center; }
.club.partner .art img { max-height: 210px; }
.brand img, .app-row img, .site-footer img { object-fit: contain; }
.store img { width: auto; height: 54px; object-fit: contain; }
@media (max-width: 900px) { .store img { height: 52px; } .cta-bar .store img { height: 40px; } }

/* phones: keep each screenshot card fully visible above the sticky download bar and Safari's own toolbar */
.local-switch button, .sport-switch button, .btn, .store { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (max-width: 900px) {
  .shot { flex: 0 0 min(52vw, 215px); max-width: none; }
  .shots { scroll-padding-inline: 16px; }
}

/* legal pages */
.legal .updated { color: var(--muted); font-size: 13px; letter-spacing: .04em; margin-top: 10px; }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal ol, .legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .summary { margin: 28px 0 8px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.legal .summary h2 { margin-top: 0; font-size: 22px; }
.legal a:not(.btn) { color: var(--accent); }
.legal .btn { margin-top: 6px; }
