/* ---------- hero ---------- */

.hero { padding: 84px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }

.hero-copy h1 { margin: 18px 0 20px; font-size: clamp(32px, 4.3vw, 54px); }  /* two lines at desktop so the CTAs stay above the fold */
.hero-copy .lede { font-size: 16.5px; max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

.platform-note {
  max-width: 52ch;
  margin: 0 0 28px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-size: 13px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--panel-line);
}
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats b { font-family: var(--display); font-size: 20px; color: var(--accent-amber); }
.hero-stats span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-faint); }

/* ---------- interactive coverflow ---------- */

.deck-mock {
  position: relative;
  border-radius: 32px;
  background: radial-gradient(120% 140% at 50% 0%, #1c1a16 0%, #0a0908 72%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.9), inset 0 4px 18px rgba(0,0,0,.7), 0 30px 60px rgba(0,0,0,.5);
  padding: 26px 0 22px;
  overflow: hidden;
  touch-action: pan-y;
}

.deck-mock-label {
  text-align: center;
  font: 700 11px/1.3 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 18px;
  padding: 0 16px;
}

.flow-stage {
  position: relative;
  height: 212px;
  perspective: 900px;
  /* pan-y: vertical swipes keep scrolling the page; horizontal drags are handled in coverflow.js */
  touch-action: pan-y;
  cursor: grab;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.flow-stage:active { cursor: grabbing; }
.flow-stage:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: -6px;
  border-radius: 16px;
}

.flow-card {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 250px;
  height: 148px;
  margin-left: -125px;
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.04) 35%, rgba(255,255,255,.02) 100%);
  box-shadow: 0 18px 34px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.35);
  padding: 5px;
  transition: transform 0.34s cubic-bezier(.2,.8,.25,1), opacity 0.34s;
  will-change: transform, opacity;
}

.flow-card-shell {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #221e19 0%, #0c0a08 75%);
  box-shadow: 0 4px 10px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.2);
}
.flow-card-shell .art-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(20,17,14,.1) 0%, rgba(8,7,6,.72) 75%);
}

.flow-reels {
  position: absolute;
  left: 0; right: 0; bottom: 8px; top: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 18px;
}
.flow-reels svg { width: 52px; height: 52px; }

.flow-label {
  position: absolute;
  left: 8px; right: 8px; top: 8px;
  height: 42px;
  border-radius: 2px;
  background: rgba(253,251,244,.95);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.3);
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.flow-label b {
  font: 700 12px/1.15 var(--mono);
  color: #221e18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flow-label span {
  font: 700 9.5px/1.3 var(--mono);
  letter-spacing: 0.04em;
  color: rgba(34,30,24,.78);   /* 7:1 on the label paper (was 4.2:1 at .6) */
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-country {
  position: absolute;
  left: 9px; bottom: 8px;
  font: 700 8.5px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--accent-amber);
}

.flow-dots {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  min-height: 44px;
  margin-top: 0;
}
.flow-dots button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  padding: 0;
  width: 24px;              /* 24px-wide hit area around a 5px dot; 44px tall for thumbs (10 dots must fit 320px) */
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.flow-dots button::before {
  content: '';
  width: 5px; height: 5px; border-radius: 3px;
  background: rgba(240,235,221,.55);   /* >= 3:1 against the deck panel */
  transition: width .25s, background .25s;
}
.flow-dots button[aria-current="true"]::before { width: 16px; background: var(--accent); }
.flow-dots button:focus-visible { outline-offset: -2px; border-radius: 6px; }

.deck-mock-hint {
  text-align: center;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.06em;
  color: var(--cream-faint);
  margin: 8px 0 0;
  padding: 0 16px;
}

/* Without JavaScript there is no coverflow: hide the demo and let the copy use the full width. */
.no-js .deck-mock { display: none; }
.no-js .hero-grid { grid-template-columns: 1fr; }

/* ---------- feature grid ---------- */

.section { padding: 74px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 10px; display: block; }
.section-head p { margin-top: 12px; font-size: 15.5px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 30px 26px;
  transition: background 0.25s ease;
}
.feature-card:hover { background: var(--bg-soft); }

/* A lone last card in a three-column row fills the row instead of leaving a grey hole in the grid. */
@media (min-width: 881px) {
  .feature-card:last-child:nth-child(3n + 2) { grid-column: span 2; }
}

.feature-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(192, 98, 48, 0.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-amber);
}
.feature-icon svg { width: 19px; height: 19px; }

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; margin: 0; }
.feature-card .tag {
  display: inline-block;
  margin-top: 12px;
  font: 700 10.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-amber);
}

/* ---------- screenshots showcase ---------- */

.shots-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.shots-row figure { margin: 0; min-width: 0; }

.phone-frame {
  position: relative;
  border-radius: 34px;
  background: #060605;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: transform 0.35s cubic-bezier(.2,.8,.25,1);
}
.phone-frame:hover { transform: translateY(-8px); }

.phone-frame img { border-radius: 24px; width: 100%; height: auto; }

.phone-caption {
  text-align: center;
  margin-top: 16px;
  font: 700 12px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

/* ---------- download cta ---------- */

.cta-panel {
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, #1c1913 0%, #100f0d 70%);
  border: 1px solid var(--panel-line);
  padding: 60px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(192,98,48,.16), transparent 70%);
  pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { margin: 12px auto 14px; max-width: 22ch; }
.cta-panel p { max-width: 50ch; margin: 0 auto 30px; }

.platform-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 660px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}
.platform-card {
  padding: 18px 20px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(240,235,221,.22);
  background: rgba(240,235,221,.04);
}
.platform-card b {
  display: block;
  font: 700 13px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}
.platform-card span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cream-dim);
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero { padding-top: 54px; }
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .shots-row { gap: 16px; }
  .hero-stats { flex-wrap: wrap; row-gap: 16px; }
}

@media (max-width: 600px) {
  .section { padding: 54px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 44px 20px; }
  .platform-cards { grid-template-columns: 1fr; }
  .deck-mock { border-radius: 26px; }

  /* Screenshots become a swipeable strip instead of three very tall stacked phones. */
  .shots-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 28px 22px;
    margin: 0 -28px;
  }
  .shots-row figure { flex: 0 0 min(68%, 260px); scroll-snap-align: center; }
  .shots-row:focus-visible { outline-offset: -4px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-stats b { font-size: 15px; }
  .hero-stats span { font-size: 10px; letter-spacing: 0.06em; }
  .shots-row { padding-left: 20px; padding-right: 20px; margin-left: -20px; margin-right: -20px; }
  .hero { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-frame:hover { transform: none; }
  .shots-row { scroll-snap-type: none; }
}
