/* ============================================================
   RepsEdge v2 — Minimal mobile-first landing page
   Reuses landing.js hooks: .nav, .pricing-card[data-tier],
   .price/.price-period, .faq-question/.faq-answer, startCheckout.
   ============================================================ */

@import url('./v2-tokens.css');

.lp {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 640px;
  margin: 0 auto;
  height: 56px;
  padding: 0 var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: var(--fw-bold);
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.nav-button {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
}

/* ---------- Hero ---------- */
.lp-hero {
  text-align: center;
  padding: var(--s-10) 0 var(--s-8);
}

.lp-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
}

.lp-hero h1 {
  font-size: 38px;
  line-height: 1.08;
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  margin-bottom: var(--s-4);
}

.lp-hero h1 .accent {
  color: var(--accent);
}

.lp-hero p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 auto var(--s-6);
  max-width: 30em;
}

.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  padding: 16px 24px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: var(--fw-semibold);
  transition: transform 0.06s ease, background 0.15s ease;
}

.lp-cta:active {
  transform: scale(0.98);
  background: var(--accent-press);
}

.lp-cta.secondary {
  background: var(--surface-2);
  color: var(--text);
}

.lp-trust {
  margin-top: var(--s-4);
  font-size: 13px;
  color: var(--text-faint);
}

/* connected (authed) hero status */
.status-badge {
  display: inline-block;
  margin-top: var(--s-4);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--success-soft);
  color: var(--success);
  font-size: 14px;
  font-weight: var(--fw-semibold);
}

/* ---------- Section ---------- */
.lp-section {
  padding: var(--s-10) 0;
}

.lp-section-title {
  font-size: 26px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: var(--s-6);
}

/* ---------- Feature rows ---------- */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--s-3);
}

.feature-row .f-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-row .f-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.feature-row h3 {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  margin-bottom: 4px;
}

.feature-row p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s-5);
  box-shadow: var(--shadow-card);
}

.pricing-card.pricing-card-popular {
  border-color: var(--accent);
  border-width: 1.5px;
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: var(--s-5);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.pricing-card h3 {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-2);
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--s-4);
}

.price {
  font-size: 36px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 14px;
  color: var(--text-faint);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.pricing-features li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--text);
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--success-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334c759' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.pricing-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 18px;
  border: none;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-weight: var(--fw-semibold);
}

.pricing-card-popular .pricing-button {
  background: var(--accent);
  color: var(--on-accent);
}

.pricing-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: var(--s-5);
}

.promo-section summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: var(--s-2);
}

.promo-input {
  width: 100%;
  margin-bottom: var(--s-3);
  font-size: 16px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 10px 12px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  text-align: left;
  background: transparent;
  border: none;
  padding: var(--s-4) 0;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.faq-icon {
  flex-shrink: 0;
  stroke: var(--text-muted);
  fill: none;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded='true'] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: var(--s-4);
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- Final CTA ---------- */
.lp-final {
  text-align: center;
  padding: var(--s-10) var(--s-5);
  margin: var(--s-8) 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.lp-final h2 {
  font-size: 24px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
}

.lp-final p {
  color: var(--text-muted);
  margin-bottom: var(--s-5);
}

/* ---------- Footer ---------- */
.lp-footer {
  text-align: center;
  padding: var(--s-8) var(--s-5) var(--s-10);
  border-top: 1px solid var(--border);
}

.lp-footer p {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: var(--s-2);
  line-height: 1.5;
}

.lp-footer a {
  color: var(--text-muted);
}

.footer-separator {
  margin: 0 8px;
  color: var(--text-faint);
}

@media (min-width: 600px) {
  .lp-hero h1 {
    font-size: 46px;
  }
}

/* Variant C — hero explainer video slot */
.lp-hero-video {
  margin: 28px auto 0;
  max-width: 520px;
  width: 100%;
}
.lp-hero-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  background: #000;
}
