/* ============================================================================
   HIDDEN ACE — Marketing page styles (home, pricing)
   Builds on tokens/components defined in main.css.
   ========================================================================= */

/* ---- Reveal-on-scroll ---------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================================
   HERO
   ========================================================================= */

.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  width: 900px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--green);
}
.hero-copy .lede {
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-meta-item { font-size: 13.5px; color: var(--text-faint); display: flex; align-items: center; gap: 7px; }
.hero-meta-item svg { flex-shrink: 0; color: var(--green); }

/* ---- Hero visual: live shoe/count demo --------------------------------- */
.hero-visual {
  background: linear-gradient(160deg, var(--surface) 0%, #0d0d0d 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.6);
}
.hv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.hv-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.hv-live { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; color: var(--green); }

.hv-shoe {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  margin-bottom: 22px;
}
.hv-rank {
  aspect-ratio: 3/4;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  position: relative;
  transition: background var(--speed), color var(--speed), border-color var(--speed);
}
.hv-rank.is-depleted { background: var(--surface); color: #333; border-color: #1a1a1a; }
.hv-rank.is-hot { background: var(--green-glow); color: var(--green-bright); border-color: var(--green-dim); }

.hv-readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.hv-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.hv-stat-label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 4px; }
.hv-stat-value { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: #fff; }
.hv-stat-value.accent { color: var(--green-bright); }

.hv-rec {
  background: var(--green);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hv-rec-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #06210f; opacity: 0.7; }
.hv-rec-action { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #06210f; }
.hv-rec-ev { font-family: var(--font-mono); font-size: 13px; color: #06210f; opacity: 0.85; }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-cta-row { justify-content: center; }
  .hero-meta { justify-content: center; }
}

/* ============================================================================
   LOGO STRIP / TRUST
   ========================================================================= */
.trust-strip {
  padding: 28px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.trust-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* ============================================================================
   HOW IT WORKS
   ========================================================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  margin-bottom: 16px;
}
.step-card h3 { font-size: 18px; margin-bottom: 10px; }
.step-card p { font-size: 14.5px; }
.step-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--green-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============================================================================
   GESTURE DEMO STRIP
   ========================================================================= */

.gesture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gesture-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.gesture-glyph {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.gesture-card h4 { font-family: var(--font-body); font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.gesture-card p { font-size: 13px; }

@media (max-width: 780px) { .gesture-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================================
   FEATURES (alternating)
   ========================================================================= */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border-soft);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
.feature-copy p { font-size: 15.5px; margin-bottom: 18px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.feature-list li svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }

.feature-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 260px;
}

/* Mini composition bars used in the "shoe composition analysis" feature */
.comp-bars { display: flex; align-items: flex-end; gap: 7px; height: 160px; padding: 0 4px; }
.comp-bar { flex: 1; background: var(--surface-2); border-radius: 5px 5px 0 0; position: relative; display: flex; align-items: flex-end; }
.comp-bar-fill { width: 100%; border-radius: 5px 5px 0 0; background: var(--green-dim); }
.comp-bar.is-rich .comp-bar-fill { background: var(--green); }
.comp-labels { display: flex; gap: 7px; margin-top: 8px; padding: 0 4px; }
.comp-labels span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }

/* Mini decision matrix used in the "recommendations" feature */
.decision-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dm-cell {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}
.dm-cell-action { font-family: var(--font-mono); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.dm-cell.act-hit .dm-cell-action { color: var(--amber); }
.dm-cell.act-stand .dm-cell-action { color: var(--chip-blue); }
.dm-cell.act-double .dm-cell-action { color: var(--green-bright); }
.dm-cell-ev { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

/* Bet-spread ramp used in the "Kelly-based bet sizing" feature */
.bet-ramp { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bet-chip { flex: 1; border-radius: 6px 6px 0 0; background: var(--green-dim); position: relative; }
.bet-chip.is-max { background: var(--green); }
.bet-chip-label { position: absolute; top: -22px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-copy { order: 0; }
}

/* ============================================================================
   PRICING
   ========================================================================= */

.pricing-card {
  max-width: 440px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--surface) 0%, #0e0e0e 100%);
  border: 1px solid var(--green-dim);
  box-shadow: 0 0 0 1px var(--green-glow) inset, 0 30px 70px -30px rgba(0,0,0,0.7);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
}
.pricing-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--green-glow);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.pricing-amount { font-family: var(--font-display); font-size: 56px; font-weight: 700; color: #fff; line-height: 1; }
.pricing-amount sup { font-size: 24px; top: -1.6em; }
.pricing-period { font-size: 15px; color: var(--text-dim); margin-top: 6px; margin-bottom: 28px; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text); }
.pricing-features li svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.pricing-region-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 18px;
}
.pricing-region-row a { font-size: 13px; }
.pricing-fineprint { font-size: 12.5px; color: var(--text-faint); margin-top: 18px; }

/* ============================================================================
   TESTIMONIALS
   ========================================================================= */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial-stars { color: var(--green); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-quote { font-size: 14.5px; color: var(--text); line-height: 1.65; margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--green);
}
.testimonial-name { font-size: 13.5px; font-weight: 600; color: #fff; }
.testimonial-role { font-size: 12.5px; color: var(--text-faint); }

@media (max-width: 860px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   FAQ
   ========================================================================= */

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.faq-q-icon { flex-shrink: 0; transition: transform var(--speed) var(--ease); color: var(--text-faint); }
.faq-item.is-open .faq-q-icon { transform: rotate(45deg); color: var(--green); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--speed) var(--ease);
}
.faq-item.is-open .faq-a { max-height: 320px; }
.faq-a-inner { padding-bottom: 22px; font-size: 14.5px; color: var(--text-dim); line-height: 1.7; max-width: 640px; }

/* ============================================================================
   FINAL CTA
   ========================================================================= */

.cta-banner {
  background: linear-gradient(135deg, #0d2818 0%, #0a0a0a 70%);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
.cta-banner p { font-size: 16px; margin-bottom: 30px; max-width: 480px; margin-left: auto; margin-right: auto; }

@media (max-width: 600px) {
  .cta-banner { padding: 44px 24px; }
}

/* ============================================================================
   CHECKOUT / PRICING REGION PICKER
   ========================================================================= */

.region-picker {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.region-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.region-btn.is-active { background: var(--green-glow); border-color: var(--green-dim); color: var(--green-bright); }
