/* Visa Assist Pro - Stylesheet */

/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'DM Sans', sans-serif;
  background: #0F1320;
  color: #EEF1FF;
  line-height: 1.6;
}

a {
  color: #7C8CF8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

/* Header */
.site-header {
  background: #151A2E;
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #EEF1FF;
}
.brand-mark {
  background: #7C8CF8;
  color: #0F1320;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  margin-right: 0.4rem;
}
.nav {
  display: flex;
  gap: 1rem;
}
.nav a {
  color: #EEF1FF;
}
.nav a.btn-small {
  background: #7C8CF8;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

/* Hero */
.hero {
  padding: 3rem 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.hero-copy .lead {
  font-size: 1.2rem;
  color: #B8C0FF;
}
.cta-row {
  margin-top: 1rem;
}
.btn {
  background: #7C8CF8;
  color: #0F1320;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
}
.btn-ghost {
  background: transparent;
  border: 1px solid #7C8CF8;
  color: #7C8CF8;
}
.btn:hover {
  opacity: 0.9;
}
.trust-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.trust-pill {
  background: #151A2E;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: #151A2E;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}
.card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
}
.steps li {
  margin-bottom: 1rem;
}
.step-num {
  background: #7C8CF8;
  color: #0F1320;
  border-radius: 50%;
  padding: 0.4rem 0.8rem;
  margin-right: 0.6rem;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.price-card {
  background: #151A2E;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}
.price-card.featured {
  border: 2px solid #7C8CF8;
}
.badge {
  background: #7C8CF8;
  color: #0F1320;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.price {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}
.price-list {
  list-style: none;
  margin-top: 1rem;
}

/* FAQ */
.faq {
  margin-bottom: 1rem;
  background: #151A2E;
  padding: 1rem;
  border-radius: 8px;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: #151A2E;
  padding: 1rem 0;
  margin-top: 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 1rem;
}
.fineprint {
  font-size: 0.8rem;
  color: #B8C0FF;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
    flex-direction: column;
  }
  .nav.open {
    display: flex;
  }
/* ===== Day 1 responsive fixes (append-only) ===== */
:root{
  --container: 1120px;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --brand: #7C8CF8;
  --ink: #0F1320;
  --muted: #5E6B77;
  --panel: #f6f7fb;
}

/* Container & general layout */
.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-2);
}

/* Header / nav */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #e9edf3;
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.brand-mark{ display:inline-grid; place-items:center; width:32px; height:32px; border-radius:8px; background:#0F1320; color:#7C8CF8; font-weight:700; }
.nav{ display:flex; gap: var(--space-3); align-items:center; }
.nav a{ text-decoration:none; color: var(--ink); }
.nav-toggle{ display:none; background:transparent; border:1px solid #d7ddea; border-radius:8px; padding:.4rem .6rem; font-size:1rem; }

/* Hero */
.hero{ padding: clamp(2.5rem, 4vw + 1rem, 6rem) 0; }
.grid-2{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6); align-items:center; }
.lead{ color: var(--muted); font-size: clamp(1rem, 0.4vw + 1rem, 1.125rem); }
.cta-row{ display:flex; flex-wrap:wrap; gap: var(--space-2); margin-top: var(--space-3); }

.mockup-card{ background:#fff; border:1px solid #e9edf3; border-radius:16px; box-shadow: 0 10px 30px rgba(15,19,32,.08); overflow:hidden; }
.mockup-header{ display:flex; align-items:center; gap:.4rem; padding:.8rem 1rem; border-bottom:1px solid #eef2f7; color:#324055; font-weight:600; }
.mockup-header .dot{ width:10px; height:10px; border-radius:999px; background:#d6dbe6; display:inline-block; }
.mockup-list{ margin:0; padding: .75rem 1rem 1rem 1rem; display:grid; gap:.5rem; }
.mockup-list li{ list-style:none; display:flex; align-items:center; gap:.5rem; }
.tag{ background:#eef2ff; color:#3642d4; border-radius:999px; padding:.1rem .5rem; font-size:.75rem; }
.tag-ok{ background:#e9fbef; color:#18864c; }

/* Strips, sections, cards */
.strip{ background: var(--panel); padding: .8rem 0; color:#2b3440; }
.strip-inner{ display:flex; justify-content:center; gap: .8rem; flex-wrap:wrap; }
.section{ padding: var(--space-6) 0; }
.section.alt{ background: var(--panel); }
.cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.card{ background:#fff; border:1px solid #e9edf3; border-radius:12px; padding: var(--space-3); display:grid; gap:.5rem; }
.card .icon{ font-size:1.5rem; }

/* Steps */
.steps{ display:grid; gap:.75rem; counter-reset: step; }
.step-num{ background: var(--brand); color:#fff; display:inline-grid; place-items:center; width:28px; height:28px; border-radius:8px; font-size:.9rem; margin-right:.5rem; }

/* Pricing */
.pricing{ display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); align-items:stretch; }
.price-card{ background:#fff; border:1px solid #e9edf3; border-radius:16px; padding: var(--space-3); display:grid; gap:.8rem; }
.price-card.featured{ border-color: var(--brand); box-shadow: 0 10px 24px rgba(124,140,248,.18); position:relative; }
.price-card .badge{ position:absolute; top:10px; right:10px; background:var(--brand); color:#fff; padding:.25rem .5rem; font-size:.75rem; border-radius:6px; }

/* Footer */
.site-footer{ background:#0F1320; color:#cdd3df; padding: var(--space-6) 0; }
.footer-inner{ display:grid; align-items:center; grid-template-columns: 1fr auto; gap: var(--space-3); }
.footer-links{ display:flex; gap: var(--space-3); }
.footer-links a{ color:#cdd3df; text-decoration:none; }

/* Buttons */
.btn{ background: var(--brand); color:#fff; border:0; border-radius:10px; padding:.75rem 1rem; text-decoration:none; display:inline-block; font-weight:600; }
.btn-ghost{ background: #eef1ff; color:#2a3290; }
.btn-small{ padding:.5rem .8rem; }

/* MailerLite embed Responsiveness (safe overrides) */
#mlb2-29397265.ml-form-embedContainer .ml-form-embedWrapper.embedForm{ max-width:480px; width:100%; }
#mlb2-29397265 .ml-form-embedBody .ml-form-fieldRow input{ font-size:16px !important; }
#mlb2-29397265 .ml-form-embedBody .ml-form-horizontalRow button,
#mlb2-29397265 .ml-form-embedSubmit button{ font-size:16px !important; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* ========== Breakpoints ========== */

/* Large tablets / small laptops */
@media (max-width: 1024px){
  .grid-2{ grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-art{ order: -1; } /* put illustration first on narrow screens if nicer */
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .pricing{ grid-template-columns: repeat(2, 1fr); }
}

/* Phones */
@media (max-width: 640px){
  /* Header: collapse nav into toggle */
  .nav-toggle{ display:inline-block; }
  .nav{ position: absolute; right: var(--space-2); top: 64px; background:#fff; border:1px solid #e9edf3; border-radius:12px; padding: .75rem; display:none; flex-direction:column; gap:.75rem; width:min(90vw, 320px); box-shadow:0 10px 30px rgba(15,19,32,.08); }
  .nav.open{ display:flex; }

  /* Typography & spacing */
  h1{ font-size: clamp(1.6rem, 6vw, 2rem); line-height:1.2; }
  h2{ font-size: clamp(1.25rem, 4.8vw, 1.5rem); }
  .hero{ padding: 2.5rem 0; }
  .strip-inner{ gap:.5rem; }
  .cta-row{ gap:.6rem; }

  /* Grids -> single column */
  .grid-2{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .pricing{ grid-template-columns: 1fr; }

  /* Mockup card breathing room */
  .mockup-list{ padding: .75rem; }
  .mockup-footer{ display:flex; flex-wrap:wrap; gap:.5rem; padding: .75rem; }

  /* Footer stacks */
  .footer-inner{ grid-template-columns: 1fr; text-align:center; }
  .footer-links{ justify-content:center; flex-wrap:wrap; }
}

/* Ultra-small screens (old phones) */
@media (max-width: 360px){
  .brand-text{ display:none; } /* keep just the mark if space is tiny */
  .btn, .btn-ghost{ width:100%; text-align:center; }

/* Pricing grid */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.pricing-card {
  background: #0f1624;
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  text-align: center;
}
.pricing-card.highlight {
  border: 2px solid #5a7dff;
}
.pricing-card .badge {
  display: inline-block;
  background: #5a7dff;
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.pricing-card .price {
  font-size: 1.5rem;
  margin: 10px 0;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
}
.pricing-card ul li {
  margin: 6px 0;
}
.pricing-card .primary {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: #5a7dff;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

/* Waitlist panel */
.waitlist-panel {
  background: #fff;
  padding: 22px;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 12px;
}
.waitlist-panel input[type="email"] {
  font-size: 18px;
  padding: 14px;
  border-radius: 12px;
  width: calc(100% - 110px);
  border: 1px solid #ccc;
}
.waitlist-panel .primary {
  font-size: 18px;
  padding: 14px;
  border-radius: 12px;
  background: #5a7dff;
  color: #fff;
  border: none;
}
@media (max-width: 480px) {
  .waitlist-panel input[type="email"],
  .waitlist-panel .primary {
    width: 100% !important;
    margin-bottom: 8px;
  }
}

/* === Waitlist panel sizing tweaks === */
.waitlist-panel{ max-width:560px; padding:22px 22px 18px; }
.waitlist-panel h4{ font-size:1.25rem !important; margin:0 0 .35rem; }
.waitlist-panel p{ margin:0 0 .75rem; opacity:.9; }
.waitlist-panel input[type="email"]{
  font-size:18px !important; line-height:1.2 !important; padding:14px 14px !important;
  border-radius:12px !important;
}
.waitlist-panel .primary{
  font-size:18px !important; padding:14px !important; border-radius:12px !important;
}

/* Stack nicely on narrow screens */
@media (max-width:480px){
  .waitlist-panel .ml-form-embedSubmit button,
  .waitlist-panel input[type="email"]{ width:100% !important; }

/* ===== Hero layout & mobile tweaks ===== */
.hero { padding: 4rem 0 3rem; background: #0a0f18; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.hero-copy { order: 1; }
.hero-checklist { order: 2; }

.hero-title { font-size: clamp(1.9rem, 3.8vw, 2.6rem); line-height: 1.2; margin: 0 0 1rem; color: #e9efff; }
.hero-sub { color: #c9d3ff; margin: 0 0 1.25rem; max-width: 42ch; }

.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.btn { padding: .8rem 1.1rem; border-radius: .8rem; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #e9efff; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary { background: #6e7dff; border-color: transparent; color: #0a0f18; font-weight: 600; }
.btn-secondary { background: #111827; }

.hero-pills { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
.pill { background: rgba(255,255,255,.06); color: #e3e9ff; padding: .5rem .7rem; border-radius: .6rem; font-size: .9rem; }

.card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.card-header { display: flex; align-items: center; gap: .8rem; padding-bottom: .7rem; margin-bottom: .8rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.card-header h3 { margin: 0; font-size: 1.05rem; color: #e9efff; }
.dots span { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: rgba(255,255,255,.35); margin-right: .25rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .5rem; }
.checklist li { display: flex; align-items: center; gap: .6rem; color: #e9efff; }
.checklist .muted { color: rgba(233,239,255,.55); }
.badge { font-size: .8rem; padding: .2rem .5rem; border-radius: .6rem; background: rgba(255,255,255,.08); }
.badge-good { background: rgba(46,204,113,.18); color: #bff2cf; }
.badge-warn { background: rgba(155,89,182,.20); color: #d9c6ef; }
.badge-info { background: rgba(52,152,219,.20); color: #c9e7fb; }
.card-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-title { margin-top: .25rem; }
  .hero-sub { max-width: 50ch; }
  .btn-primary { width: 100%; }
  .hero-ctas .btn-secondary { flex: 1; min-width: 46%; }
  .hero-checklist { margin-top: .4rem; }
}

@media (max-width: 480px) {
  .card { padding: .9rem; }
  .hero-ctas { gap: .6rem; }
  .pill { font-size: .85rem; }

/* === Hero spacing polish === */
.hero-pills {
  margin-bottom: 1.5rem; /* space before next section */
}

@media (max-width: 1024px) {
  .btn-primary {
    width: 100%; /* big tap target */
  }
  .hero-ctas .btn-secondary {
    flex: 1;
    min-width: 46%;
  }
/* Stack hero CTAs on narrow screens so primary is obvious */
@media (max-width: 600px) {
  .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
  }
  .hero-ctas .btn-primary {
    display: block;
    width: 100% !important;
  }
  .hero-ctas .btn-secondary {
    display: block;
    width: 100%;
  }
/***** === Final mobile override START === *****/
@media (max-width: 768px) {
  /* Put features on a light panel so white cards pop */
  #features.section {
    background: var(--panel, #f7f9fc) !important;
  }

  /* Section heading: dark, readable */
  #features.section > .container > h2 {
    color: #2b3440 !important;
  }

  /* Cards: white with dark text */
  #features.section .cards .card {
    background: #ffffff !important;
    border: 1px solid #e9edf3 !important;
  }
  #features.section .cards .card h3 {
    color: #2b3440 !important;
  }
  #features.section .cards .card p,
  #features.section .cards .card li {
    color: #324055 !important;
    opacity: 1 !important;
  }

  /* Icons: no dimming */
  #features.section .icon { filter: none !important; }
}
/***** === Final mobile override END === *****/
}

/* ---- Hero legal note & spacing ---- */
.fine-print{
  display:block;
  font-size:.85rem;
  line-height:1.35;
  color:#9aa7bd;          /* muted on dark background */
  margin:.35rem 0 .25rem; /* tidy spacing around it */
}

/* Optional: give the hero paragraph(s) a small bottom gap for readability */
.hero .lead { margin-bottom:.5rem; }

/* ===== Hero layout (clean three-block) ===== */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1rem 2.25rem;
  text-align: left; /* mobile default */
}

.hero h1 {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.25rem);
  line-height: 1.2;
  margin: 0 0 .6rem 0;
}

.hero .subheading {
  font-size: 1.05rem;
  margin: 0 0 .5rem 0;
}

.hero .fine-print {
  display: block;
  font-size: .85rem;
  line-height: 1.45;
  color: #9aa7bd;         /* subtle */
  margin: .6rem 0 1rem;   /* separates it from both sides */
  font-style: italic;
}

.hero .description {
  font-size: 1rem;
  margin: 0 0 1rem 0;
}

.hero .hero-buttons {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin: 0 0 1rem 0;
}

.hero .hero-buttons .btn {
  display: inline-block;
}

.hero .features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero .features-list li {
  margin: 0 0 .25rem 0;
}

/* ===== Responsive alignment: center on desktop, left on mobile ===== */
@media (min-width: 960px) {
  .hero { text-align: center; }
  .hero .features-list { 
    display: inline-block; 
    text-align: left;       /* keep bullets readable while hero is centered */
  }
  .hero .hero-buttons { 
    justify-content: center; 
  }
}

/* Comfortable mobile buttons */
@media (max-width: 480px) {
  .hero .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* ==== Day 4: Feature Card Spacing Polish ============================= */
#features.section {
  /* Tunables you can tweak later */
  --feat-card-min: clamp(260px, 38vw, 340px);
  --feat-card-pad: clamp(1rem, 2.2vw, 1.25rem);
  --feat-card-gap: clamp(0.9rem, 2vw, 1.25rem);
}

/* Make the grid stretch cards to equal height and unify gaps */
#features.section .cards {
  align-items: stretch;                 /* equal heights via stretch */
  gap: var(--feat-card-gap);
}

/* Card: equal height + clean inner rhythm */
#features.section .cards .card {
  display: flex;
  flex-direction: column;
  min-height: var(--feat-card-min);
  padding: var(--feat-card-pad);
  border-radius: 12px;                   /* keep your look */
  overflow-wrap: anywhere;
}

/* Tighten inner spacing without double margins */
#features.section .cards .card > * + * {
  margin-top: .5rem;
}

/* Titles & copy rhythm (works with your existing color rules) */
#features.section .cards .card h3 {
  margin: 0 0 .4rem 0;
  line-height: 1.15;
}
#features.section .cards .card p {
  margin: 0;
  line-height: 1.55;
}

/* If you ever add a CTA row inside cards, pin it to the bottom */
#features.section .cards .card .card-actions,
#features.section .cards .card .cta-row {
  margin-top: auto;
  padding-top: .6rem;
}

/* Make sure emoji/icon doesn't distort flow */
#features.section .cards .card .icon {
  display: inline-block;
  line-height: 1;
}

/* Optional: feature grid column tuning */
@media (min-width: 640px) {
  #features.section .cards {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}
@media (min-width: 1024px) {
  #features.section .cards {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}

/* ==== Day 4: Phase 2 — Header & CTA Micro-Tweaks ===================== */

/* Keep topbar elements optically centered and evenly spaced */
.header-inner,
.header,
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px; /* slight bump for breathing room */
}

/* Brand area: crisp alignment */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  line-height: 1;
}

/* Nav links: larger tap targets and consistent rhythm */
.nav a {
  display: inline-flex;
  align-items: center;
  padding: .55rem .9rem;        /* bigger click area */
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;             /* scan-friendly */
  line-height: 1.1;
  transition: all .2s ease;
}

/* Hover/Focus states: subtle, accessible */
.nav a:hover,
.nav a:focus {
  background: rgba(15,19,32,.06); /* matches your palette’s subtle grey */
  outline: none;
}

/* Keyboard focus visibility */
.nav a:focus-visible,
.hero-ctas a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Hero alignment: keep content centered with sensible spacing */
.hero-grid {
  align-items: center;
}
.hero-ctas {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

/* CTAs in hero: padding, weight, consistent transition */
.hero-ctas a,
.cta-row a,
.btn,
.button,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;             /* accessibility target */
  padding: .7rem 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .02s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

/* Primary emphasis */
.hero-ctas .primary,
.btn.primary,
a.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124,140,248,.25);
}
.hero-ctas .primary:hover,
.btn.primary:hover,
a.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(124,140,248,.32);
}

/* Secondary (outlined or subtle) */
.hero-ctas .secondary,
.btn.secondary,
a.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid #e9edf3;
}
.hero-ctas .secondary:hover,
.btn.secondary:hover,
a.secondary:hover {
  background: #f7f9fc;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-ctas a,
  .btn,
  .button {
    transition: none;
  }
}

/* ==== Day 4: Hero content vertical centering fix ===================== */
@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;       /* center vertically */
  }
  .hero-grid > *:first-child {
    align-self: center;        /* ensure text column is centered */
  }
}
/* Day 4: Center the Waitlist section (title + form) on laptop/desktop */
@media (min-width: 992px) {
  /* Select the section that contains the waitlist title */
  section:has(#join-waitlist-title) .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* title | form */
    align-items: center;                 /* vertical center both columns */
    gap: clamp(1rem, 3vw, 2rem);
  }
  /* Keep the title block from sticking to the top if it has margins */
  #join-waitlist-title { margin-top: 0; }
  section:has(#join-waitlist-title) p { margin-top: .4rem; }
  /* Ensure the form card doesn’t force weird alignment */
  section:has(#join-waitlist-title) .ml-form-embedWrapper,
  section:has(#join-waitlist-title) .ml-form-embedContainer {
    align-self: center;
    margin: 0; /* remove odd auto-margins ML can inject */
  }
}

/* ==== Day 4: Waitlist section alignment fix ========================= */
@media (min-width: 992px) {
  /* Two-column layout + vertical centering */
  #join.section .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;   /* text | form */
    align-items: center;                   /* vertical center both columns */
    gap: clamp(1rem, 3vw, 2rem);
  }

  /* Ensure text block doesn't sit high due to default margins */
  #join.section .container > h2,
  #join.section .container > p {
    margin-top: 0;
    margin-bottom: 0;
  }
  #join.section .container > h2 + p {
    margin-top: .45rem;                    /* small, consistent gap */
  }

  /* Keep the form panel centered (MailerLite wrapper) */
  #join.section .waitlist-panel,
  #join.section .ml-form-embedWrapper,
  #join.section .ml-form-embedContainer {
    align-self: center;
    justify-self: start;                   /* prevents weird right-shift */
  }
}

/* ==== Day 4: Waitlist two-column + vertical centering (final) ======= */
@media (min-width: 992px) {
  #join.section .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;   /* left copy | right form */
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;                   /* vertical center items */
  }
  #join.section .join-copy {
    align-self: center;                    /* center the whole block */
    max-width: 44ch;                       /* comfortable line length */
  }
  #join.section .join-copy > h2 { margin: 0 0 .5rem 0; }
  #join.section .join-copy > p  { margin: 0; }
  #join.section .waitlist-panel { align-self: center; }
}

/* ==== Day 4: Waitlist section — robust centering + placement ======== */
@media (min-width: 992px) {
  /* Use a 2-col grid and force both items onto the same row */
  #join.section {
    padding-top: clamp(3rem, 5vw, 4rem);
    padding-bottom: clamp(3rem, 5vw, 4rem);
  }
  #join.section .container {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;  /* 50/50 base */
    column-gap: clamp(1rem, 3vw, 2rem) !important;
    align-items: center !important;   /* vertical centering */
  }

  /* Explicit placement so nothing spills into extra rows */
  #join.section .join-copy { 
    grid-column: 1 / 2 !important; 
    grid-row: 1 / 2 !important;
    align-self: center !important;
    justify-self: center;             /* horizontal centering within col */
    text-align: center;               /* center text for better optics */
    max-width: 48ch;
  }
  #join.section .join-copy > h2 { margin: 0 0 .5rem 0; }
  #join.section .join-copy > p  { margin: 0; }

  /* Right column (MailerLite panel) */
  #join.section .waitlist-panel,
  #join.section .ml-form-embedContainer,
  #join.section .ml-form-embedWrapper {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    align-self: center !important; 
    justify-self: center;             /* keeps the card optically centered */
    margin: 0 !important;
  }

  /* Safety: prevent odd margins from children pushing things off-center */
  #join.section .container > *:not(.join-copy):not(.waitlist-panel):not(.ml-form-embedContainer):not(.ml-form-embedWrapper) {
    margin: 0 !important;
  }
}

/* Optional: on very wide screens, nudge to 55/45 split for nicer proportions */
@media (min-width: 1280px) {
  #join.section .container {
    grid-template-columns: 1.1fr 0.9fr !important;
  }
}
/* ==== Day 4: Waitlist centering via Flex (final) ==================== */
@media (min-width: 992px) {
  /* Use flex so both sides center vertically, every time */
  #join.section .container {
    display: flex !important;
    align-items: center !important;          /* vertical center */
    justify-content: space-between;
    gap: clamp(1rem, 3vw, 2rem);
  }

  /* Make sure only the two intended items participate in flex layout */
  #join.section .join-copy,
  #join.section .waitlist-panel { display: block !important; }

  /* Prevent scripts or stray nodes from affecting layout */
  #join.section .container > script { display: none !important; }

  /* Sizing / optics */
  #join.section .join-copy {
    max-width: 48ch;
    margin: 0;
  }
  #join.section .join-copy > h2 { margin: 0 0 .5rem 0; }
  #join.section .join-copy > p  { margin: 0; }

  /* Let the panel size naturally but keep it from overshrinking */
  #join.section .waitlist-panel {
    flex: 0 1 560px;                          /* adjusts with viewport */
    align-self: center !important;
    margin: 0 !important;
  }
}
/* Day 4: tiny optical nudge for join-copy on desktop */
@media (min-width: 992px) {
  #join.section .join-copy {
    transform: translateY(10px) !important;  /* adjust 6–14px to taste */
  }
}
/* Day 4: final nudge for waitlist copy on laptop widths */
@media (min-width: 900px) {
  #join.section .join-copy {
    margin-top: 14px !important;   /* tweak to taste: 10–18px */
    position: relative;            /* ensure offset is honored */
  }
}
/* Day 4: FORCE vertical centering in #join by stretching columns */
@media (min-width: 900px) {
  /* Make the two columns equal height */
  #join.section .container {
    display: flex !important;
    align-items: stretch !important;   /* same height for both sides */
    gap: clamp(1rem, 3vw, 2rem);
  }

  /* Columns */
  #join.section .join-copy { 
    flex: 1 1 0; 
    display: flex;                     /* center content inside */
    flex-direction: column;
    justify-content: center;           /* <-- THIS centers the text vertically */
    min-height: 100%;                  /* fill parent height */
    margin: 0;
    max-width: 48ch;
  }
  #join.section .waitlist-panel {
    flex: 1 1 0;
    align-self: stretch !important;    /* match height explicitly */
    margin: 0 !important;
    max-width: 640px;                  /* keep panel from getting too wide */
  }

  /* Hide stray scripts so they don’t become flex items */
  #join.section .container > script { display: none !important; }
}
/* Day 4: absolute alignment lock for waitlist */
@media (min-width: 900px) {
  #join.section .join-force {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;      /* vertical center */
    justify-content: space-between !important;
    gap: clamp(1rem, 3vw, 2rem) !important;
  }
  #join.section .join-force > script { display: none !important; }
  #join.section .join-copy {
    margin: 0 !important;
    transform: none !important;
    max-width: 48ch;
    align-self: center !important;
  }
  #join.section .waitlist-panel {
    margin: 0 !important;
    align-self: center !important;
    flex: 0 1 600px;                      /* adjust 560–640 to taste */
  }
}
/* Day 4: Center the entire waitlist row on laptop/desktop */
@media (min-width: 900px) {
  /* Treat the inner container as a centered row with a fixed max-width */
  #join.section .join-force {
    display: flex !important;
    align-items: center !important;         /* vertical align */
    justify-content: center !important;     /* <-- center the whole group */
    gap: clamp(1rem, 3vw, 2rem) !important;
    max-width: min(1100px, 92vw) !important;/* keep a nice readable width */
    margin: 0 auto !important;              /* <-- center within page */
  }

  /* Give the two columns sensible widths so centering is stable */
  #join.section .join-copy {
    flex: 0 1 520px;                        /* text column width */
    max-width: 48ch;
    margin: 0 !important;
    align-self: center !important;
    text-align: left;
  }
  #join.section .waitlist-panel {
    flex: 0 1 600px;                        /* form panel width */
    margin: 0 !important;
    align-self: center !important;
  }

  /* Make sure stray scripts don't affect layout */
  #join.section .join-force > script { display: none !important; }
}
/* Day 4: center MailerLite content inside the waitlist panel */
@media (min-width: 900px) {
  /* Make the panel a flex container so its inner content is vertically centered */
  #join.section .waitlist-panel {
    display: flex !important;
    align-items: center !important;      /* center content vertically */
    justify-content: center;             /* keep it nicely balanced */
    padding: 1.25rem !important;         /* keep the outer padding tidy */
  }

  /* Ensure ML wrapper/content participate in the centering */
  #join.section .waitlist-panel .ml-form-embedWrapper,
  #join.section .waitlist-panel .ml-form-embedBody,
  #join.section .waitlist-panel .ml-form-embedContent {
    margin: 0 !important;
    align-self: center !important;
  }

  /* If MailerLite injects fixed margins, override them */
  #join.section .waitlist-panel [class*="ml-form-"] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}
/* Day 4: slam-center the waitlist row horizontally + vertically */
@media (min-width: 900px) {
  /* Make the inner container a grid row that is centered as a block */
  #join.section .join-force {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-template-columns: 520px 600px;     /* left | right */
    column-gap: 40px;
    justify-content: center !important;     /* <-- centers the row in page */
    align-items: center !important;         /* vertical center */
    width: 100%;
    margin-inline: auto !important;         /* center the block itself */
    max-width: none !important;             /* ignore earlier max-widths */
  }

  /* Ensure columns behave like plain blocks inside the grid cells */
  #join.section .join-copy,
  #join.section .waitlist-panel {
    justify-self: start;                    /* align to each cell's left */
    align-self: center !important;
    margin: 0 !important;
  }

  /* Keep text line length comfortable */
  #join.section .join-copy { max-width: 48ch; }
}

/* On very wide screens, give the row a nicer overall width but keep it centered */
@media (min-width: 1280px) {
  #join.section .join-force {
    max-width: 1220px !important;           /* full row width cap */
  }
}
/* Day 4: Center waitlist row for 900px+ viewports (your laptop width) */
@media (min-width: 900px) {
  #join.section .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;     /* <-- centers whole row */
    gap: 40px !important;
    margin: 0 auto !important;
  }

  /* Columns */
  #join.section .join-copy {
    flex: 0 1 460px;
    max-width: 48ch;
    margin: 0 !important;
  }
  #join.section .waitlist-panel {
    flex: 0 1 500px;
    margin: 0 !important;
  }
}
/* Day 4: Always center waitlist section (all viewports) */
#join.section .container {
  display: flex !important;
  flex-direction: column;                  /* default stack */
  align-items: center !important;          /* center horizontally */
  justify-content: center !important;      /* center vertically if possible */
  gap: 40px;
  margin: 0 auto !important;
}

/* At 900px+, use two-column layout centered on page */
@media (min-width: 900px) {
  #join.section .container {
    flex-direction: row !important;        /* side by side */
  }
  #join.section .join-copy {
    flex: 0 1 460px;
    max-width: 48ch;
    margin: 0 !important;
  }
  #join.section .waitlist-panel {
    flex: 0 1 500px;
    margin: 0 !important;
  }
}
/* Day 4: HARD-CENTER the entire #join block on all widths */
#join.section {
  display: grid !important;                 /* lets us center the child */
}
#join.section > .container {
  justify-self: center !important;          /* centers the whole group */
  margin-left: auto !important;
  margin-right: auto !important;
  width: min(1120px, 92vw) !important;      /* readable, centered row */
  padding-left: clamp(16px, 3vw, 24px) !important;
  padding-right: clamp(16px, 3vw, 24px) !important;
}

/* Inside layout: stack on small; two columns when space allows */
#join.section > .container {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
@media (min-width: 900px) {
  #join.section > .container {
    flex-direction: row !important;         /* side-by-side */
    justify-content: center !important;     /* keep centered */
    gap: 40px !important;
  }
  #join.section .join-copy { flex: 0 1 460px; max-width: 48ch; }
  #join.section .waitlist-panel { flex: 0 1 560px; }
}

/* Safety: make sure nothing forces left-align */
#join.section > .container > script { display: none !important; }
/* Day 4: hard-center the JOIN section + its form content (all widths) */
#join.section > .container {
  max-width: 920px !important;          /* readable width */
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  text-align: center !important;         /* center the headings */
  display: block !important;             /* neutralize weird flex/grid */
}

/* Center the heading/paragraph block */
#join.section .join-copy {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Center the MailerLite panel as a unit */
#join.section .waitlist-panel {
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Make the ML wrapper obey centering and not stretch oddly */
#join.section .ml-form-embedContainer,
#join.section .ml-form-embedWrapper {
  max-width: 640px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Ensure the input fills the panel width cleanly */
#join.section input.form-control {
  width: 100% !important;
}
/* === DEBUG: visualize JOIN layout === */
#join.section { outline: 3px solid red !important; }
#join.section > .container { outline: 3px solid lime !important; background: rgba(0,255,0,0.04); }
#join.section .join-copy { outline: 2px solid magenta !important; background: rgba(255,0,255,0.06); }
#join.section .waitlist-panel { outline: 2px solid cyan !important; background: rgba(0,255,255,0.06); }
