/* Venturer — site-specific styles on top of kit.css */

/* ---------- Dot accent — vertical alignment ---------- */
/* TypnicHeadline is all-caps so its CSS x-height is only ~0.29em, making
   vertical-align:middle sit too close to the baseline. 0.20em is the explicit
   lift that places dot centre at cap-height centre for both headings (.26em dot)
   and the brand logo (9px dot). One value, consistent across all sizes. */
h1 .dot, h2 .dot, h3 .dot, .modal-title .dot, .modal-success h3 .dot {
  vertical-align: 0.20em;
  margin-left: .1em;
}

/* Logo dot: inline-block keeps the brand sized to its content (no full-width overflow),
   white-space:nowrap glues the dot to VENTURER on all widths. */
.brand { display: inline-block; white-space: nowrap; }
.brand .w { line-height: 1; }
/* brand dot inherits nav ambient font-size (~16px), not the title's 28px,
   so needs a larger em value to achieve the same absolute lift as heading dots */
.brand .dot { vertical-align: 0.30em; }

/* ---------- Feature card hover shadow ---------- */
.fcard { transition: transform .2s ease, box-shadow .2s ease; }
.fcard:hover { box-shadow: var(--shadow-large); }

/* ---------- Ghost button hover shadow (matches btn-dark) ---------- */
.btn-ghost:hover { box-shadow: var(--shadow-large); }

/* ---------- Audio play button idle pulse ---------- */
@keyframes acplay-pulse {
  0%, 12%, 100% { transform: scale(1); }
  5% { transform: scale(1.13); }
  9% { transform: scale(1.05); }
}
.acplay--idle { animation: acplay-pulse 3s ease-in-out infinite; }
.acplay--idle:hover { animation: none; }

/* ---------- Global section headline size ---------- */
.sec-head h2 { font-size: 48px; }
.locals-h2 { font-size: 48px; }
.audio-h2 { font-size: 48px; }

/* ---------- Unified section spacing ---------- */
section { padding: 84px 0; }
footer { padding: 40px 0; }

.ticker { margin-top: 28px; }
.ticker-track { gap: 0; animation-duration: 104s; }

/* ---------- Feature cards with screenshots ---------- */
.fcard-visual {
  min-height: 480px;
  padding: 0 !important;
  overflow: hidden;
  justify-content: flex-start;
  gap: 0;
}

.fcard-text {
  padding: 32px 28px 22px;
}

.fcard-visual .fcard-text h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 25px;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 12px;
}

.fcard-visual .fcard-text p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.fcard-screen {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px 20px;
  overflow: hidden;
  min-height: 0;
}

.fcard-sq-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-large);
  flex-shrink: 0;
}

.fcard-sq-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

/* ---------- Hero: phone cluster ---------- */
.hero-note {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  letter-spacing: .02em;
}

.hero-screens {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.phone-card {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-large);
  background: #0d0d0d;
  flex-shrink: 0;
  width: 162px;
  height: 350px;
}

.phone-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.phone-fan-l {
  transform: rotate(-7deg) translateY(44px);
  z-index: 1;
  position: relative;
  margin-right: -18px;
}

.phone-fan-c {
  transform: translateY(0px);
  z-index: 3;
  position: relative;
}

.phone-fan-r {
  transform: rotate(7deg) translateY(44px);
  z-index: 1;
  position: relative;
  margin-left: -18px;
}

/* ---------- Phone frame (slim) ---------- */
.pf-body {
  width: 270px;
  height: 584px;
  background: linear-gradient(160deg, #2c2c2c 0%, #1a1a1a 60%);
  border-radius: 36px;
  padding: 8px 5px 10px;
  position: relative;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px #333,
    0 0 0 2px #111,
    0 24px 64px rgba(0,0,0,.55),
    0 8px 20px rgba(0,0,0,.35);
}

.pf-vol-up, .pf-vol-dn, .pf-power {
  position: absolute;
  background: #2d2d2d;
  border-radius: 2px;
}

.pf-vol-up  { left: -3px; top: 100px; width: 3px; height: 28px; }
.pf-vol-dn  { left: -3px; top: 136px; width: 3px; height: 28px; }
.pf-power   { right: -3px; top: 130px; width: 3px; height: 50px; }

.pf-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.pf-punch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #050505;
  z-index: 10;
  box-shadow: 0 0 0 1px #0a0a0a;
}

.pf-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  pointer-events: none;
  user-select: none;
}

.phone-slider-wrap::before,
.phone-slider-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.phone-slider-wrap::before { left: 0; background: linear-gradient(to right, var(--background) 20%, transparent); }
.phone-slider-wrap::after  { right: 0; background: linear-gradient(to left, var(--background) 20%, transparent); }

/* ---------- Phone slider ---------- */
.phone-slider-wrap {
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
  height: 640px;
  cursor: grab;
  user-select: none;
}

.phone-slider-wrap:active { cursor: grabbing; }

.phone-slider-track {
  display: flex;
  gap: 24px;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 0;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phone-slide-item {
  flex-shrink: 0;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.45s ease;
  transform: scale(0.85);
  opacity: 0.38;
  cursor: pointer;
}

.phone-slide-item.active {
  transform: scale(1);
  opacity: 1;
  cursor: default;
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.slider-arr {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--background);
  box-shadow: inset 0 0 0 1.5px var(--border);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .15s, box-shadow .15s;
  flex-shrink: 0;
}

.slider-arr:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--text); }
.slider-arr .mdi { font-size: 22px; line-height: 1; }

.slider-dots { display: flex; gap: 8px; align-items: center; }

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s, width .2s;
  flex-shrink: 0;
}

.slider-dot.active {
  background: var(--text);
  width: 20px;
  border-radius: 4px;
}

/* ---------- App screenshots grid (old — kept for fallback) ---------- */
#app { overflow: hidden; }

.screens-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: start;
}

.screens-grid .phone-card {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.screens-grid .phone-card img {
  height: auto;
  object-fit: initial;
}

.screens-grid .phone-card:nth-child(even) {
  margin-top: 48px;
}

/* ---------- Locals section ---------- */
.locals-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
  align-items: stretch;
}

.locals-text {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.locals-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: var(--text);
  border-radius: var(--radius-round);
  padding: 6px 14px 6px 11px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  align-self: flex-start;
}

.locals-h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0;
}

.locals-body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--surface-text-muted);
  margin: 0;
}

.locals-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.locals-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 820px) {
  .locals-card { grid-template-columns: 1fr !important; }
  .locals-img-wrap { min-height: 240px; position: relative; aspect-ratio: 16/9; }
}

/* ---------- Cities section ---------- */
.cities-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 18px;
}

/* ---------- Modal ---------- */
.modal-bg {
  position: fixed;
  inset: 0;
  background: var(--overlay-dark);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: vFadeIn .2s ease;
}

@keyframes vFadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal {
  background: var(--warm-bg);
  border-radius: 28px;
  padding: 44px 40px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: vSlideUp .3s cubic-bezier(.2,.8,.2,1);
}

@keyframes vSlideUp {
  from { transform: translateY(28px); opacity: 0 }
  to   { transform: translateY(0); opacity: 1 }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .15s;
}

.modal-close:hover { background: var(--border); }
.modal-close .mdi { font-size: 20px; line-height: 1; }

.modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: var(--text);
  border-radius: var(--radius-round);
  padding: 6px 14px 6px 11px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .02em;
  margin-bottom: 22px;
}

.modal-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 44px;
  line-height: .96;
  letter-spacing: -.025em;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-input {
  width: 100%;
  padding: 16px 22px;
  border-radius: var(--radius-round);
  border: 1.5px solid var(--border);
  background: var(--background);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.modal-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(65,200,88,.15);
}

.modal-input::placeholder { color: var(--text-secondary); }

.modal-success {
  text-align: center;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.modal-success h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 34px;
  letter-spacing: -.02em;
}

.modal-success p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------- Immersive audio card ---------- */
.audiocard-immersive {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.ac-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  animation: acFadeIn .4s ease;
}

@keyframes acFadeIn { from { opacity: 0 } to { opacity: 1 } }

.ac-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.20) 0%, rgba(0,0,0,.48) 45%, rgba(0,0,0,.85) 100%);
  z-index: 1;
}

.ac-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 360px;
}

.audiocard-immersive .t {
  color: #fff !important;
  font-size: 21px !important;
}

.audiocard-immersive .s {
  color: rgba(255,255,255,.62) !important;
}

.audiocard-immersive .waveform i {
  background: rgba(255,255,255,.55);
}

.audiocard-immersive .waveform i.on {
  background: var(--primary);
  opacity: 1;
}

.audiocard-immersive .time {
  color: rgba(255,255,255,.5) !important;
}

.ac-nav-light {
  border-color: rgba(255,255,255,.55) !important;
  background: rgba(255,255,255,.22) !important;
  color: #fff !important;
}

.ac-nav-light:hover {
  background: rgba(255,255,255,.38) !important;
  border-color: rgba(255,255,255,.8) !important;
}

.ac-nav-count-light {
  color: rgba(255,255,255,.8) !important;
}

/* ---------- Audio card nav arrows ---------- */
.ac-nav-group {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.ac-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--background);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}

.ac-nav:hover { background: var(--card); border-color: var(--text); }

.ac-nav .mdi { font-size: 20px; line-height: 1; }

.ac-nav-count {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 32px;
  text-align: center;
  letter-spacing: .02em;
}

/* ---------- Beta CTA badge ---------- */
.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(26,26,26,.1);
  color: var(--text);
  border-radius: var(--radius-round);
  padding: 6px 14px 6px 11px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .02em;
  margin-bottom: 18px;
}

.cta-note {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  opacity: .6;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .screens-grid { grid-template-columns: repeat(3, 1fr); }
  .screens-grid .phone-card:nth-child(4),
  .screens-grid .phone-card:nth-child(5) { display: none; }
}

@media (max-width: 820px) {
  /* Section spacing */
  section { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .features { grid-template-columns: 1fr !important; }
  .audio { grid-template-columns: 1fr !important; gap: 40px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cities-row { grid-template-columns: 1fr !important; }

  /* Hero — bigger than kit.css default 46px */
  .hero h1 { font-size: 56px; }

  /* Hero phone: show below text, scaled down */
  .hero-screens { display: flex; justify-content: center; margin-top: 32px; }
  .hero-screens .pf-body { width: 230px; height: 497px; }

  /* Gallery screens grid */
  .screens-grid { grid-template-columns: repeat(2, 1fr); }
  .screens-grid .phone-card:nth-child(4),
  .screens-grid .phone-card:nth-child(5) { display: block; }

  /* Locals */
  .locals-card { grid-template-columns: 1fr !important; }
  .locals-img-wrap { min-height: 0; aspect-ratio: 16 / 9; position: relative; }
  .locals-text { padding: 40px 32px; }

  /* Section headings — consistent */
  .sec-head h2 { font-size: 42px; }
  .locals-h2 { font-size: 42px !important; }
  .audio-h2 { font-size: 42px; }
  .cta h2 { font-size: 44px !important; }
}

/* iOS nav label: short version hidden by default, shown at ≤560px on iOS */
.ios-label-short { display: none; }

@media (max-width: 560px) {
  /* Section spacing */
  section { padding: 48px 0; }

  /* Spacing */
  .wrap { padding: 0 20px; }

  /* Nav: enforce single row, no wrapping */
  .nav-in { flex-wrap: nowrap !important; gap: 20px !important; }
  /* Brand: scale down on mobile */
  .brand-title { font-size: 28px !important; }
  .brand-subtitle { font-size: 12px !important; }
  /* Unknown: hide iOS button from nav (no room for both) */
  .nav-platform-unknown .nav-ios-btn { display: none !important; }
  /* iOS: hide Android button from nav, show only iOS button */
  .nav-platform-ios .nav-android-btn { display: none !important; }
  /* iOS: shorten iOS button label */
  .ios-label-long { display: none; }
  .ios-label-short { display: inline; }
  /* CTA: reduce side padding on mobile */
  .cta { padding-left: 30px !important; padding-right: 30px !important; }

  /* Hero */
  .hero h1 { font-size: 50px; }
  .hero-screens .pf-body { width: 200px; height: 432px; }

  /* Section headings — consistent */
  .sec-head h2 { font-size: 36px; }
  .locals-h2 { font-size: 36px !important; }
  .audio-h2 { font-size: 36px; }
  .cta h2 { font-size: 34px !important; }
  .locals-text { padding: 28px 24px; }
  .locals-body { font-size: 15px; }

  /* Gallery slider */
  .phone-slider-wrap { height: 530px; touch-action: pan-y; }
  .phone-slider-wrap .phone-slide-item { transform: scale(0.72); opacity: 0.35; }
  .phone-slider-wrap .phone-slide-item.active { transform: scale(0.88); opacity: 1; }
  .phone-slider-wrap::before,
  .phone-slider-wrap::after { width: 50px; }

  /* Modals */
  .modal { padding: 32px 24px 28px; }
  .modal-title { font-size: 34px; }

  /* Footer */
  .foot-bottom { flex-direction: column; gap: 8px; align-items: center; text-align: center; padding: 20px 0; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 42px; }
  .sec-head h2 { font-size: 30px; }
  .locals-h2 { font-size: 30px !important; }
  .audio-h2 { font-size: 30px; }
  .hero-screens .pf-body { width: 180px; height: 389px; }
  .cta h2 { font-size: 28px !important; }
  .phone-slider-wrap { height: 480px; }
  .phone-slider-wrap .phone-slide-item { transform: scale(0.62); opacity: 0.32; }
  .phone-slider-wrap .phone-slide-item.active { transform: scale(0.78); opacity: 1; }
}

/* Nav: no wrapping + 20px min-gap globally */
.nav-in { flex-wrap: nowrap !important; gap: 20px !important; }
.nav-cta-short { display: none; }

@media (max-width: 430px) {
  .nav-cta-full { display: none; }
  .nav-cta-short { display: inline; }
}

/* ---------- Prose / policy pages ---------- */
.prose-page { padding: 64px 0 120px; }
.prose { max-width: 720px; }

.prose h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display-xl);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
  margin: 0 0 10px;
}

.prose .prose-meta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-m);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
  margin: 0 0 20px;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: var(--fs-display-xs);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  margin: 36px 0 14px;
}

.prose p {
  font-family: var(--font-sans);
  font-size: var(--fs-body-m);
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 18px;
}

.prose ul {
  font-family: var(--font-sans);
  font-size: var(--fs-body-m);
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 18px;
  padding-left: 22px;
}
.prose ul ul { margin: 10px 0 0; padding-left: 20px; }
.prose li { margin-bottom: 9px; }
.prose li > p { margin-bottom: 10px; }
.prose li > p:first-child { margin-top: 0; }

.prose strong { font-weight: 700; color: var(--text); }
.prose em { font-style: italic; }

.prose a {
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(46,163,64,.28);
  transition: border-color .15s;
}
.prose a:hover { border-color: var(--primary-dark); }

.prose hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 52px 0;
}

/* Table */
.prose-table-wrap {
  overflow-x: auto;
  margin: 4px 0 24px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  min-width: 440px;
}
.prose th {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 18px;
  background: var(--card);
  color: var(--text);
  font-weight: 400;
}
.prose td {
  font-family: var(--font-sans);
  font-size: var(--fs-body-s);
  line-height: 1.6;
  color: var(--text);
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

/* Footer link override (no underline border on footer links) */
.foot-bottom a { border-bottom: none; }

/* ---------- Platform detection (data-platform set by inline <head> script) ---------- */
/* On Android: always hide iOS CTA buttons (Android users have no use for iOS waitlist) */
html[data-platform="android"] .nav-ios-btn,
html[data-platform="android"] .hero-ios-cta,
html[data-platform="android"] .beta-ios-cta { display: none !important; }

/* On mobile widths, mirror the existing nav-platform-* behaviour for the static nav */
@media (max-width: 560px) {
  html[data-platform="unknown"] .nav-ios-btn { display: none !important; }
  html[data-platform="ios"] .nav-android-btn { display: none !important; }
}
