/* Stockist page (/join/). Builds on css/style.css: same tokens (both themes), type, buttons, nav,
   search combobox, map and footer. Only page-specific layout lives here. */

.join h2 {
  font: 400 clamp(32px, 4vw, 52px)/1.03 var(--serif);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.join h2 em, .join h1 em { color: var(--accent); }
.j-sec { padding-top: clamp(72px, 10vw, 128px); }
.j-head .kicker { margin-bottom: 14px; }
.j-head .muted { margin-top: 14px; max-width: 58ch; font-size: 15.5px; }
.j-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.j-cta-row { margin-top: 36px; }

/* ---------- hero ---------- */
.j-hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 5vw, 76px); align-items: center;
  padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(40px, 6vw, 80px);
}
.j-hero h1 {
  margin-top: 16px;
  font: 400 clamp(42px, 5.6vw, 80px)/0.98 var(--serif);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.j-lead { margin-top: 22px; max-width: 52ch; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; color: var(--fg-2); }
.j-ask { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.j-ask a { color: var(--fg); text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.j-hero-fig { margin: 0; justify-self: end; width: 100%; max-width: 520px; }
.j-hero-fig img {
  display: block; width: 100%; height: auto; max-height: 76vh;
  aspect-ratio: 955 / 1223; object-fit: cover;
  border: 1px solid var(--line-2); border-radius: calc(var(--r) + 8px);
}
.j-hero-fig figcaption { margin-top: 12px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ---------- numbers ---------- */
.j-stats dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.j-stats dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 24px 20px 26px 0; }
.j-stats dl > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.j-stats dd { margin: 0; font: 400 clamp(30px, 3.6vw, 48px)/1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.j-stats dt { margin-top: 12px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ---------- benefits: hairline grid drawn by a 1px gap over the line colour ---------- */
.b-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin-top: 40px; background: var(--line); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line);
}
.benefits { display: contents; list-style: none; }
.benefits li, .b-cta { background: var(--bg); padding: 26px 22px 30px; }
.benefits li:nth-child(4n + 1) { padding-left: 0; }
.b-n { display: block; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--accent); }
.benefits h3 { margin-top: 14px; font: 600 17px/1.3 var(--sans); letter-spacing: -0.005em; }
.benefits p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.benefits a { color: var(--fg); text-underline-offset: 3px; text-decoration-color: var(--line-3); white-space: nowrap; }
.b-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; background: var(--surface); }
.b-cta p { font: 400 26px/1.1 var(--serif); }
.b-cta .btn { align-self: flex-start; }

/* ---------- city check ---------- */
.j-city { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.j-city .search { margin-top: 28px; }
.j-city-result:empty { display: none; }
.j-city-result {
  margin-top: 20px; padding: 18px 18px 20px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  animation: card-in .35s cubic-bezier(.2, .7, .2, 1);
}
.cr-kicker { font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cr-title { margin-top: 6px; font: 400 30px/1.05 var(--serif); }
.cr-st { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.cr-st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cr-st.has { color: var(--accent); }
.cr-st.open { color: var(--wa); }
.cr-body { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cr-body b { color: var(--fg); font-weight: 600; }
.j-city-result .btn { margin-top: 16px; }

.j-map {
  border: 1px solid var(--line-2); border-radius: calc(var(--r) + 4px); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 45%, var(--tint), transparent 60%), var(--bg-2);
}
.j-map .map { aspect-ratio: 16 / 11; max-height: none; min-height: 0; }
.j-map-note {
  display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; border-top: 1px solid var(--line);
  font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}

/* ---------- story ---------- */
.j-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 64px; align-items: end; }
.j-story .j-head { grid-column: 1 / -1; }
.big { font: 400 clamp(84px, 12vw, 168px)/0.86 var(--serif); letter-spacing: -0.02em; color: var(--accent); }
.big-sub { margin-top: 14px; font-size: 17px; color: var(--fg-2); }
.big-sub b { color: var(--fg); }
.j-story-body p { font-size: 16.5px; line-height: 1.65; color: var(--fg-2); }
.j-story-body p + p { margin-top: 14px; }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; font-weight: 600; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.quote {
  margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 26px 26px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.quote blockquote { margin: 0; font: 400 clamp(19px, 1.7vw, 23px)/1.35 var(--serif); color: var(--fg); }
.quote blockquote::before { content: '“'; display: block; height: 34px; font-size: 68px; line-height: 1; color: var(--accent); }
.quote figcaption { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13.5px; }
.quote figcaption img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 56px; }
#media .strip-head { margin-top: 0; }
.strip-head h3 { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.strip-nav { display: flex; gap: 8px; flex: none; }
.strip-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: none;
  cursor: pointer; color: var(--fg-2); font: 400 16px/1 var(--sans);
}
.strip-nav button:hover { color: var(--strong); border-color: var(--line-3); }
.strip {
  list-style: none; margin: 18px 0 0; padding: 0 0 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(168px, 19vw, 228px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-3) transparent;
}
.strip li { scroll-snap-align: start; }
.strip-press { grid-auto-columns: clamp(150px, 16vw, 200px); }
.shot {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; background: var(--surface); cursor: zoom-in;
}
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 400 / 680; object-fit: cover; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.03); }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- videos ---------- */
.materi-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.fv { margin: 0; }
.fv figcaption { margin-top: 12px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.feature-video {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--line-2); border-radius: calc(var(--r) + 6px); overflow: hidden;
  background: var(--surface); cursor: pointer; text-align: left;
}
.feature-video img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-video:focus-visible, .vcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: var(--accent); transition: transform .2s ease;
}
.play::after {
  content: ''; position: absolute; left: 31px; top: 25px;
  border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--accent-ink);
}
.feature-video:hover .play { transform: scale(1.06); }
.videos { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.vcard { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 12px; }
.vcard-img { position: relative; display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.vcard-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.vcard:hover .vcard-img img { transform: scale(1.04); }
.vcard-img::after { /* small play badge */
  content: ''; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent) no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 1.5v9l7.5-4.5z' fill='%231c0c05'/%3E%3C/svg%3E");
}
.vcard-name { display: block; margin-top: 10px; font-weight: 600; font-size: 14px; }
.vcard-meta { display: block; margin-top: 3px; font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* ---------- founder + final CTA ---------- */
.j-final {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid var(--line-2); border-radius: calc(var(--r) + 8px);
  background: radial-gradient(80% 140% at 100% 0%, var(--tint-2), transparent 60%), var(--surface);
}
.j-founder { display: block; width: 100%; max-width: 420px; height: auto; justify-self: center; }
.j-final h2 { font-size: clamp(40px, 5.2vw, 70px); line-height: 1; }
.j-sign { display: block; width: auto; height: 36px; margin-top: 24px; }
:root[data-theme="light"] .j-sign { filter: invert(1) brightness(0.25); }
.j-final-copy .muted { margin-top: 8px; font-size: 13.5px; }
.j-disclaimer { margin-top: 26px; max-width: 80ch; font-size: 12.5px; color: var(--dim); }
.join .foot { margin-top: clamp(56px, 8vw, 96px); }

/* ---------- sticky phone CTA ---------- */
.j-sticky { display: none; }

/* ---------- lightbox (always dark, whatever the theme) ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0;
  border: 0; background: transparent; color: #f2eadf; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8, 6, 5, 0.92); }
.lb-stage { display: grid; place-items: center; max-width: min(92vw, 1100px); }
.lb-stage img { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 12px; }
.lb-stage iframe { display: block; border: 0; border-radius: 12px; background: #000; }
.lb-stage .yt-wide { width: min(92vw, 1100px); aspect-ratio: 16 / 9; height: auto; }
.lb-stage .yt-tall { height: min(82vh, 780px); aspect-ratio: 9 / 16; width: auto; }
.lb-cap {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: 80vw; text-align: center;
  font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(242, 234, 223, 0.75);
}
.lb-btn, .lb-close {
  position: fixed; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(242, 234, 223, 0.22); background: rgba(20, 16, 13, 0.72); color: #f2eadf;
  font: 400 18px/1 var(--sans);
}
.lb-btn:hover, .lb-close:hover { border-color: rgba(242, 234, 223, 0.5); }
.lb-btn { top: 50%; margin-top: -23px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close { top: 16px; right: 16px; font-size: 22px; }
.lightbox.single .lb-btn { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits li:nth-child(4n + 1) { padding-left: 22px; }
  .benefits li:nth-child(2n + 1) { padding-left: 0; }
  .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .j-hero { grid-template-columns: 1fr; }
  .j-hero-fig { justify-self: start; max-width: 460px; }
  .j-city, .j-story, .materi-top { grid-template-columns: 1fr; }
  .materi-top .j-head { order: -1; }
  .j-final { grid-template-columns: 1fr; }
  .j-founder { max-width: 300px; justify-self: start; }
}
@media (max-width: 760px) {
  .j-stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-stats dl > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .j-stats dl > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .b-grid { grid-template-columns: 1fr; }
  .benefits li, .benefits li:nth-child(n), .b-cta { padding-left: 0; padding-right: 0; }
  .b-cta { background: var(--bg); }
  .quotes { grid-template-columns: 1fr; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-nav { display: none; }
  .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .play::after { left: 24px; top: 19px; border-width: 11px 0 11px 17px; }

  .j-sticky:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--nav-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-2);
  }
  .j-sticky span { font: 500 10.5px/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
  body.has-sticky { padding-bottom: 72px; }
  body.has-sticky .proof { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
