*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0d0d0d;
  --white: #fafafa;
  --accent: #e8a020;
  --accent-dark: #c4881a;
  --gray: #6b6b6b;
  --light-gray: #f0f0f0;
  --border: #e0e0e0;
  --radius: 12px;
  --max-w: 1080px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,250,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-cta {
  background: var(--black); color: var(--white);
  padding: 8px 20px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.8; }

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 48px;
  padding: 80px 24px; max-width: var(--max-w); margin: 0 auto;
}
.hero-badge {
  display: inline-block; background: #fff3dc; color: var(--accent-dark);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { color: var(--gray); font-size: 1.05rem; max-width: 440px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: var(--black);
  padding: 14px 32px; border-radius: 999px;
  font-size: 1rem; font-weight: 700; border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.hero-note { color: var(--gray); font-size: 0.85rem; }
.hero-img {
  background: url('/snapchords.png') center / cover no-repeat;
  border-radius: 24px;
  aspect-ratio: 1;
}

/* ── SECTION HEADERS ── */
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-sub { color: var(--gray); font-size: 1rem; max-width: 560px; }

/* ── HOW IT WORKS ── */
.how { background: var(--light-gray); padding: 80px 0; }
.how-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 48px;
}
.step {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border);
}
.step-num {
  width: 36px; height: 36px; background: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; margin-bottom: 16px;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--gray); font-size: 0.9rem; }

/* ── BENEFITS ── */
.benefits { padding: 80px 0; }
.benefits-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.benefit-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: border-color 0.15s;
}
.benefit-card:hover { border-color: var(--accent); }
.benefit-icon { font-size: 1.8rem; flex-shrink: 0; }
.benefit-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.benefit-card p { color: var(--gray); font-size: 0.875rem; }

/* ── REVIEWS ── */
.reviews { background: var(--light-gray); padding: 80px 0; }
.reviews-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.rating-summary {
  display: flex; align-items: center; gap: 12px; margin: 24px 0 40px;
}
.big-rating { font-size: 3rem; font-weight: 900; }
.stars { color: var(--accent); font-size: 1.2rem; }
.rating-sub { color: var(--gray); font-size: 0.875rem; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border);
}
.review-stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 10px; }
.review-text { font-size: 0.9rem; color: var(--black); margin-bottom: 12px; line-height: 1.5; }
.reviewer { font-size: 0.8rem; color: var(--gray); font-weight: 600; }

/* ── PRICING ── */
.pricing { padding: 80px 0; }
.pricing-inner { max-width: 500px; margin: 0 auto; padding: 0 24px; text-align: center; }
.price-card {
  border: 2px solid var(--black); border-radius: 20px;
  padding: 40px 32px; margin-top: 40px; position: relative;
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--black);
  font-size: 0.75rem; font-weight: 700; padding: 4px 16px; border-radius: 999px;
  white-space: nowrap;
}
.price-amount { font-size: 3rem; font-weight: 900; letter-spacing: -1px; }
.price-original {
  font-size: 1rem; color: var(--gray); text-decoration: line-through; margin-left: 8px;
}
.price-period { color: var(--gray); font-size: 0.875rem; margin-bottom: 24px; }
.price-features { list-style: none; text-align: left; margin-bottom: 28px; }
.price-features li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; display: flex; gap: 10px;
}
.price-features li:last-child { border-bottom: none; }
.check { color: var(--accent); font-weight: 700; }
.btn-primary.full { width: 100%; text-align: center; display: block; }
.secure-note { margin-top: 12px; font-size: 0.78rem; color: var(--gray); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border); padding: 32px 24px;
  text-align: center; color: var(--gray); font-size: 0.85rem;
}
footer a { color: var(--gray); margin: 0 8px; }
footer a:hover { color: var(--black); }

/* ── CHECKOUT PAGE ── */
.checkout-page {
  min-height: 100vh; background: var(--light-gray);
  display: flex; flex-direction: column;
}
.checkout-nav {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 24px; display: flex; align-items: center; justify-content: center;
}
.checkout-body {
  max-width: 860px; margin: 40px auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px;
  width: 100%;
}
.order-summary {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px;
  height: fit-content;
}
.order-summary h2 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--gray); letter-spacing: 0.5px; }
.order-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.item-info h3 { font-size: 0.95rem; font-weight: 700; }
.item-info p { font-size: 0.8rem; color: var(--gray); }
.item-price { font-size: 1rem; font-weight: 700; }
.order-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.order-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; }
.order-perks { margin-top: 20px; }
.perk { display: flex; gap: 8px; font-size: 0.82rem; color: var(--gray); margin-bottom: 6px; }
.checkout-form-wrap {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px;
}
.checkout-form-wrap h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: var(--gray); }
input[type="text"], input[type="email"] {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; outline: none;
  transition: border-color 0.15s;
}
input:focus { border-color: var(--accent); }
#payment-element { margin-bottom: 20px; }
#submit-btn {
  width: 100%; padding: 14px; border-radius: 999px;
  background: var(--accent); color: var(--black);
  font-size: 1rem; font-weight: 700; border: none; cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
#submit-btn:hover { background: var(--accent-dark); }
#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
#payment-message {
  margin-top: 12px; font-size: 0.875rem; color: #c0392b; text-align: center;
}
.form-divider { position: relative; text-align: center; margin: 20px 0; }
.form-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  border-top: 1px solid var(--border);
}
.form-divider span {
  background: var(--white); padding: 0 10px;
  font-size: 0.75rem; color: var(--gray); position: relative;
}
.stripe-badge { text-align: center; margin-top: 16px; font-size: 0.75rem; color: var(--gray); }

/* ── SUCCESS PAGE ── */
.success-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--light-gray);
}
.success-card {
  background: var(--white); border-radius: 24px; border: 1px solid var(--border);
  padding: 60px 48px; max-width: 480px; width: 100%; text-align: center; margin: 24px;
}
.success-icon { font-size: 4rem; margin-bottom: 20px; }
.success-card h1 { font-size: 1.8rem; font-weight: 900; margin-bottom: 10px; }
.success-card p { color: var(--gray); margin-bottom: 28px; }
.back-link {
  display: inline-block; color: var(--accent-dark);
  font-weight: 600; font-size: 0.9rem;
}
.back-link:hover { text-decoration: underline; }

/* ── CHECKOUT — EXTENDED ── */

/* Phase headings */
.phase-heading {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Field hint text */
.field-hint {
  display: block; font-size: 0.75rem; color: var(--gray); margin-top: 5px;
}

/* Shipping notice */
.shipping-notice {
  padding: 10px 14px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  margin: 4px 0 16px;
}
.shipping-notice.au   { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.shipping-notice.intl { background: #fff8e1; color: #b45309; border: 1px solid #fcd34d; }

/* Order summary shipping state */
.order-line-sm { font-size: 0.875rem; color: var(--gray); margin-bottom: 0; }
.discount-amount { color: #16a34a; font-weight: 600; }
.shipping-pending { color: var(--gray); font-style: italic; }

/* Primary CTA button (checkout) */
.btn-cta {
  width: 100%; padding: 15px; border-radius: 999px;
  background: var(--accent); color: var(--black);
  font-size: 1rem; font-weight: 700; border: none; cursor: pointer;
  margin-top: 20px;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
}
.btn-cta:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.btn-cta:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }

/* Back button */
.back-btn {
  background: none; border: none; cursor: pointer;
  color: var(--gray); font-size: 0.85rem; font-weight: 500;
  padding: 0; display: inline-flex; align-items: center; gap: 4px;
  margin-bottom: 20px;
}
.back-btn:hover { color: var(--black); }

/* Details summary (phase 2) */
.details-summary {
  background: var(--light-gray); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 14px 16px;
  margin-bottom: 4px;
}
.detail-row {
  display: flex; gap: 12px; font-size: 0.82rem;
  padding: 5px 0; border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--gray); font-weight: 600; min-width: 62px; flex-shrink: 0; }
.detail-value { color: var(--black); }

/* Payment element spacing */
#payment-element { margin-bottom: 16px; }

/* Payment error message */
.payment-message {
  font-size: 0.875rem; color: #dc2626;
  margin-bottom: 10px; min-height: 18px; text-align: center;
}

/* Phase 1 error */
.field-error {
  font-size: 0.875rem; color: #dc2626;
  margin: 8px 0 0; padding: 10px 14px;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;
}

/* Stripe badge */
.stripe-badge {
  text-align: center; margin-top: 14px;
  font-size: 0.75rem; color: var(--gray); line-height: 1.5;
}

/* Google Places dropdown */
.pac-container {
  z-index: 9999 !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
  margin-top: 2px;
}
.pac-item { padding: 8px 12px; font-size: 0.875rem; cursor: pointer; }
.pac-item:hover { background: var(--light-gray); }
.pac-item-query { font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 20px 48px;
    gap: 24px;
  }
  .hero-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    order: -1;
    border-radius: 16px;
  }
  .hero p { max-width: 100%; }

  /* Sections */
  .how, .benefits, .reviews, .pricing { padding: 52px 0; }
  .how-inner, .benefits-inner, .reviews-inner { padding: 0 20px; }
  .pricing-inner { padding: 0 20px; }

  /* Grids → single column */
  .steps         { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .benefit-grid  { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .review-grid   { grid-template-columns: 1fr; gap: 16px; }

  /* Pricing card */
  .price-card { padding: 36px 20px; }

  /* Checkout */
  .checkout-body {
    grid-template-columns: 1fr;
    margin: 20px auto;
    padding: 0 16px;
    gap: 16px;
  }
  .order-summary { order: -1; padding: 20px; }
  .checkout-form-wrap { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
}
