/* ─── BreadStack Shared Design System ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --gold:        #D4A017;
  --gold-light:  #F5C842;
  --gold-bright: #F9D96A;
  --gold-deep:   #C8860A;
  --gold-text:   #A86A00;
  --gold-tint:   #3D2900;

  /* Backgrounds */
  --base:     #0D0D0D;
  --surface:  #1A1A1A;
  --surface2: #252525;
  --border:   rgba(255,255,255,0.07);

  /* Text */
  --ink:      #F5F0E8;
  --ink-2:    #B0A090;
  --ink-3:    #9A8A7A;
  --ink-muted:#6B5A4A;

  /* Semantic */
  --green:    #22C55E;
  --green-bg: rgba(34,197,94,0.1);
  --amber:    #F59E0B;
  --red:      #EF4444;

  /* Gradients */
  --grad:      linear-gradient(135deg, #F5C842, #D4A017, #C8860A);
  --grad-hover:linear-gradient(135deg, #F9D96A, #F5C842);
  --grad-press:linear-gradient(135deg, #C8860A, #A86A00);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --gold-glow: 0 4px 16px rgba(212,160,23,0.35);
  --focus-ring:0 0 0 3px rgba(212,160,23,0.25);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base:16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-2xl:32px;
  --space-3xl:48px;

  /* Radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-full:99px;

  /* Motion */
  --ease:      ease;
  --ease-spring:cubic-bezier(0.34,1.56,0.64,1);
  --dur-fast:  0.1s;
  --dur-base:  0.15s;
  --dur-slow:  0.25s;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family:'Inter', sans-serif;
  background:var(--base);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  font-size:16px;
  line-height:1.6;
}
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }

/* ── Typography ── */
.display-1 {
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:clamp(40px,8vw,88px);
  font-weight:800;
  letter-spacing:-3px;
  line-height:1;
}
.display-2 {
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:clamp(32px,5vw,56px);
  font-weight:800;
  letter-spacing:-2px;
  line-height:1.05;
}
.heading-1 {
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:clamp(24px,4vw,40px);
  font-weight:700;
  letter-spacing:-1px;
  line-height:1.15;
}
.heading-2 {
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:clamp(20px,3vw,28px);
  font-weight:700;
  letter-spacing:-0.5px;
}
.heading-3 {
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:18px;
  font-weight:700;
}
.body-lg { font-size:clamp(16px,2vw,20px); line-height:1.65; color:var(--ink-2); }
.body-md { font-size:15px; line-height:1.6; color:var(--ink-2); }
.body-sm { font-size:13px; line-height:1.55; color:var(--ink-3); }
.label   { font-size:11px; font-weight:600; letter-spacing:2.5px; text-transform:uppercase; }
.gold    { color:var(--gold); }
.grad-text {
  background:var(--grad);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

/* ── Nav ── */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:18px 24px;
  display:flex; justify-content:space-between; align-items:center;
  background:rgba(13,13,13,0.85);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
}
@media (min-width:768px) { .nav { padding:18px 48px; } }
.nav-logo {
  display:flex; align-items:center; gap:10px;
  font-family:'Plus Jakarta Sans',sans-serif;
  font-weight:800; font-size:20px;
  letter-spacing:-0.5px;
  text-decoration:none;
}
.nav-logo span { color:var(--gold); }

/* ── Buttons ── */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  font-family:'Plus Jakarta Sans',sans-serif;
  font-weight:700; font-size:15px;
  padding:14px 28px;
  border-radius:var(--r-full);
  border:none; cursor:pointer;
  transition:all var(--dur-base) var(--ease);
  text-decoration:none;
  white-space:nowrap;
}
.btn-primary {
  background:var(--grad);
  color:#0D0D0D;
  box-shadow:var(--gold-glow);
}
.btn-primary:hover {
  background:var(--grad-hover);
  box-shadow:0 6px 24px rgba(212,160,23,0.5);
  transform:translateY(-1px);
}
.btn-primary:active {
  background:var(--grad-press);
  transform:scale(0.98);
  box-shadow:none;
}
.btn-ghost {
  background:transparent;
  color:var(--gold);
  border:1.5px solid var(--gold);
}
.btn-ghost:hover {
  background:rgba(212,160,23,0.1);
  border-color:var(--gold-light);
  color:var(--gold-light);
}
.btn-ghost:active { transform:scale(0.98); }
.btn-sm { padding:10px 20px; font-size:13px; border-radius:var(--r-md); }
.btn-lg { padding:18px 40px; font-size:17px; }

/* ── Sections ── */
.section { padding:80px 24px; max-width:1100px; margin:0 auto; }
@media (min-width:768px) { .section { padding:120px 48px; } }
.section-eyebrow {
  font-size:11px; font-weight:600; letter-spacing:3px; text-transform:uppercase;
  color:var(--gold); margin-bottom:16px;
}
.section-title { margin-bottom:16px; }
.section-sub { max-width:540px; margin-bottom:64px; }

/* ── Audience Badge ── */
.audience-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(212,160,23,0.12);
  border:1px solid rgba(212,160,23,0.3);
  color:var(--gold-light);
  padding:6px 16px; border-radius:var(--r-full);
  font-size:13px; font-weight:500;
  margin-bottom:28px;
}
.audience-badge-dot {
  width:6px; height:6px; border-radius:50%;
  background:var(--green);
  animation:pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ── Cards ── */
.card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-xl);
  padding:32px;
}
.card-gold {
  border-color:rgba(212,160,23,0.25);
  background:linear-gradient(135deg,rgba(61,41,0,0.6),var(--surface));
}
.card-grid { display:grid; gap:2px; background:var(--border); border-radius:var(--r-xl); overflow:hidden; }
@media (min-width:768px) { .card-grid-2 { grid-template-columns:1fr 1fr; } }
@media (min-width:768px) { .card-grid-3 { grid-template-columns:repeat(3,1fr); } }
.card-grid > * { background:var(--surface); padding:36px; }

/* ── Waitlist Form ── */
.waitlist-form {
  display:flex; gap:8px;
  flex-direction:column;
  max-width:480px;
}
@media (min-width:480px) { .waitlist-form { flex-direction:row; } }

.waitlist-form input[type="email"] {
  flex:1;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:var(--r-full);
  padding:14px 20px;
  font-size:15px; font-family:'Inter',sans-serif;
  color:var(--ink);
  outline:none;
  transition:border-color var(--dur-base);
}
.waitlist-form input[type="email"]::placeholder { color:var(--ink-muted); }
.waitlist-form input[type="email"]:focus {
  border-color:var(--gold);
  box-shadow:var(--focus-ring);
}
.waitlist-form button { flex-shrink:0; }

/* Form states */
form[data-waitlist][data-state="loading"] button { opacity:0.7; cursor:not-allowed; }
form[data-waitlist][data-state="success"] .form-row { display:none; }
form[data-waitlist] [data-msg] {
  font-size:13px; margin-top:10px; min-height:18px;
  transition:color var(--dur-base);
}
form[data-waitlist][data-state="success"] [data-msg] { color:var(--green); }
form[data-waitlist][data-state="error"]   [data-msg] { color:var(--red); }

/* ── Steps ── */
.steps { display:flex; flex-direction:column; gap:2px; }
@media (min-width:768px) { .steps { display:grid; grid-template-columns:repeat(3,1fr); } }
.step { background:var(--surface); padding:36px; }
.step:first-child { border-radius:var(--r-xl) var(--r-xl) 0 0; }
.step:last-child  { border-radius:0 0 var(--r-xl) var(--r-xl); }
@media (min-width:768px) {
  .step:first-child { border-radius:var(--r-xl) 0 0 var(--r-xl); }
  .step:last-child  { border-radius:0 var(--r-xl) var(--r-xl) 0; }
}
.step-num { font-size:11px; font-weight:700; letter-spacing:2px; color:var(--gold); margin-bottom:16px; }
.step-icon { font-size:32px; margin-bottom:16px; }

/* ── Features grid ── */
.features { display:grid; gap:2px; background:var(--border); border-radius:var(--r-xl); overflow:hidden; margin-top:80px; }
@media (min-width:768px) { .features { grid-template-columns:repeat(2,1fr); } }
.feature { background:var(--surface); padding:36px; }
.feature-icon {
  width:48px; height:48px; border-radius:12px;
  background:rgba(212,160,23,0.1);
  border:1px solid rgba(212,160,23,0.2);
  display:flex; align-items:center; justify-content:center;
  font-size:22px; margin-bottom:20px;
}

/* ── Hero glow ── */
.hero-glow {
  position:absolute;
  width:700px; height:700px; border-radius:50%;
  background:radial-gradient(circle,rgba(212,160,23,0.1) 0%,transparent 70%);
  top:50%; left:50%; transform:translate(-50%,-50%);
  pointer-events:none;
}

/* ── Stat block ── */
.stats { display:flex; gap:32px; flex-wrap:wrap; }
.stat-num {
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:28px; font-weight:800; letter-spacing:-1px;
  color:var(--gold);
}
.stat-label { font-size:12px; color:var(--ink-3); margin-top:3px; }

/* ── Trust badges ── */
.trust-badges { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:48px; justify-content:center; }
.trust-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--border);
  border-radius:var(--r-full);
  padding:7px 16px;
  font-size:13px; font-weight:500; color:var(--ink-2);
}

/* ── Audience links (index "who it's for") ── */
.audience-cards { display:grid; gap:16px; }
@media (min-width:768px) { .audience-cards { grid-template-columns:repeat(3,1fr); } }
.audience-card {
  display:block;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-xl);
  padding:28px;
  transition:border-color var(--dur-base), transform var(--dur-base);
}
.audience-card:hover {
  border-color:rgba(212,160,23,0.35);
  transform:translateY(-2px);
}
.audience-card-icon { font-size:28px; margin-bottom:14px; }
.audience-card-title {
  font-family:'Plus Jakarta Sans',sans-serif;
  font-weight:700; font-size:17px; margin-bottom:8px;
}
.audience-card-desc { font-size:13px; color:var(--ink-3); line-height:1.55; }
.audience-card-link { font-size:13px; color:var(--gold); margin-top:12px; font-weight:600; }

/* ── FAQ ── */
.faq { display:flex; flex-direction:column; gap:2px; background:var(--border); border-radius:var(--r-xl); overflow:hidden; }
.faq-item { background:var(--surface); padding:24px 28px; }
.faq-q { font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:16px; margin-bottom:10px; }
.faq-a { font-size:14px; color:var(--ink-2); line-height:1.6; }

/* ── Pricing cards ── */
.pricing-cards { display:grid; gap:24px; margin-top:16px; }
@media (min-width:768px) { .pricing-cards { grid-template-columns:repeat(2,1fr); } }
.pricing-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); padding:36px; position:relative; }
.pricing-card.featured { border-color:rgba(212,160,23,0.3); background:linear-gradient(135deg,rgba(61,41,0,0.4),var(--surface)); }
.featured-badge {
  position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  background:var(--grad); color:#0D0D0D;
  font-size:11px; font-weight:700; letter-spacing:1px;
  padding:4px 16px; border-radius:var(--r-full); white-space:nowrap;
  font-family:'Plus Jakarta Sans',sans-serif;
}
.price { font-family:'Plus Jakarta Sans',sans-serif; font-size:48px; font-weight:800; letter-spacing:-2px; margin:14px 0 4px; }
.price span { font-size:18px; font-weight:400; color:var(--ink-2); letter-spacing:0; }
.price-period { font-size:14px; color:var(--ink-2); margin-bottom:24px; }
.price-features { list-style:none; display:flex; flex-direction:column; gap:10px; margin-bottom:28px; }
.price-features li { font-size:14px; color:var(--ink-2); display:flex; align-items:center; gap:10px; }
.price-features li::before { content:'✓'; color:var(--green); font-weight:700; font-size:13px; }

/* ── CTA Strip ── */
.cta-strip {
  text-align:center; padding:80px 24px;
  background:linear-gradient(180deg,var(--base) 0%,rgba(61,41,0,0.2) 50%,var(--base) 100%);
}
.cta-strip .waitlist-form { margin:32px auto 0; }

/* ── Footer ── */
.footer {
  padding:32px 24px;
  border-top:1px solid var(--border);
  display:flex; flex-direction:column; gap:16px;
  align-items:center; text-align:center;
}
@media (min-width:768px) {
  .footer { flex-direction:row; justify-content:space-between; padding:32px 48px; text-align:left; }
}
.footer-links { display:flex; gap:20px; flex-wrap:wrap; }
.footer-links a { font-size:13px; color:var(--ink-3); transition:color var(--dur-base); }
.footer-links a:hover { color:var(--gold); }
.footer-legal { font-size:11px; color:var(--ink-muted); max-width:600px; line-height:1.5; }

/* ── Scroll-triggered fade (JS adds .visible) ── */
.fade-in { opacity:0; transform:translateY(20px); transition:opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity:1; transform:none; }

/* ── Utility ── */
.text-center { text-align:center; }
.mt-2  { margin-top:8px; }
.mt-4  { margin-top:16px; }
.mt-6  { margin-top:24px; }
.mt-8  { margin-top:32px; }
.mt-12 { margin-top:48px; }
.mb-4  { margin-bottom:16px; }
.mb-8  { margin-bottom:32px; }
.gap-8 { gap:32px; }

/* ── Mobile overrides (390px iPhone base) ── */
@media (max-width: 767px) {

  /* Ensure fade-in works on mobile — lower threshold already set in JS,
     but add a CSS safety net so nothing stays invisible */
  .fade-in { opacity:1 !important; transform:none !important; }

  /* Touch targets — all buttons at least 44px tall */
  .btn { padding:14px 22px; font-size:14px; min-height:44px; }
  .btn-lg { padding:16px 28px; font-size:15px; }
  .btn-sm { padding:11px 18px; font-size:13px; min-height:44px; }

  /* Sections — tighter mobile padding */
  .section { padding:64px 20px; }

  /* Typography scale down on small screens */
  .display-1 { letter-spacing:-2px; }
  .display-2 { letter-spacing:-1.5px; }

  /* Waitlist form — always stacked on mobile */
  .waitlist-form { flex-direction:column !important; }
  .waitlist-form input[type="email"] { width:100%; font-size:16px; } /* 16px prevents iOS zoom */
  .waitlist-form button { width:100%; justify-content:center; min-height:50px; }

  /* Cards — full width, no side gaps */
  .card { border-radius:16px; padding:24px; }
  .card-grid { border-radius:16px; }
  .card-grid > * { padding:28px 20px; }

  /* Steps — single column, no side borders */
  .steps { border-radius:16px; }
  .step { padding:28px 20px; }
  .step:first-child { border-radius:16px 16px 0 0; }
  .step:last-child  { border-radius:0 0 16px 16px; }

  /* Features grid — single column on mobile */
  .features { grid-template-columns:1fr !important; border-radius:16px; }
  .feature { padding:28px 20px; }

  /* Trust strip — hide vertical dividers, stack items */
  .trust-sep { display:none !important; }

  /* Audience cards — full width */
  .audience-cards { grid-template-columns:1fr !important; }
  .audience-card { padding:22px; }

  /* Pricing cards — single column */
  .pricing-cards { grid-template-columns:1fr !important; }
  .pricing-card { padding:28px 20px; }
  .price { font-size:40px; }

  /* Nav — tighter on mobile */
  .nav { padding:16px 20px; }

  /* CTA strip — tighter */
  .cta-strip { padding:60px 20px; }

  /* FAQ items — tighter */
  .faq-item { padding:20px; }

  /* Stat block — wrap nicely */
  .stats { gap:20px; }

  /* Grid-2 — single column on mobile */
  .grid-2 { grid-template-columns:1fr !important; gap:16px; }
}
