:root {
  --bg: #070a12;
  --bg-gradient:
    radial-gradient(1200px 600px at 15% 10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(255, 42, 70, 0.12), transparent 55%),
    #070a12;
  --bg2: #0f111a;
  --panel: #0c1124;
  --text: #f9e9ed;
  --muted: #d4b7c0;
  --brand: #ff2a46;
  --brand2: #e11d48;
  --border: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
  --urgent: #fbbf24;
  --urgent-dark: #f59e0b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg-gradient);
  line-height: 1.5;
}

a { color: inherit; }

/* Container - Centered content */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 24px;
}

/* Button - Lobster red #ff2a46 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(255, 42, 70, 0.28);
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--brand2);
  border-color: var(--brand2);
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Card styling */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.muted { color: var(--muted); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 8, 15, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navinner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  height: 76px;
}

.navlinks {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.navlinks a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.navlinks a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

/* Hero Section - Centered */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.eyebrow {
  font-size: 0.82rem;
  color: #ffd9e1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px auto 20px;
  max-width: 16ch;
  text-align: center;
}

.p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 60ch;
  margin: 0 auto 32px;
  text-align: center;
}

.h2 {
  margin: 0 0 20px;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.section {
  padding: 32px 0;
}

/* Newsletter - Fixed sizing and styling */
.newsletter-card {
  margin: 32px auto;
  padding: 48px 40px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 42, 70, 0.08), rgba(255, 42, 70, 0.03));
  border: 1px solid rgba(255, 42, 70, 0.25);
  text-align: center;
  max-width: 700px;
}

.newsletter-card h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.newsletter-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: var(--muted);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--brand);
}

/* Choice buttons */
.choice {
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 18px 16px;
  color: var(--text);
  text-align: left;
  line-height: 1.4;
  transition: all 0.15s ease;
  position: relative;
  z-index: 1;
}

.choice .choice-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  pointer-events: none;
}

.choice .choice-desc {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.choice:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.choice[aria-pressed="true"] {
  border-color: var(--brand);
  background: rgba(255, 42, 70, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 42, 70, 0.15);
}

.choice[aria-pressed="true"] .choice-title {
  color: #fff;
}

/* Flow cards */
.flow-card {
  margin: 16px auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  max-width: 900px;
}

.flow-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Summary card */
.summary-card {
  margin: 16px auto;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
  max-width: 700px;
}

.summary-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.summary-card .p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 8px;
}

.plan-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

/* Urgency box */
.urgency-box {
  margin: 20px auto;
  padding: 18px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.4);
  text-align: center;
  max-width: 600px;
}

.urgency-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  color: var(--urgent);
  font-size: 1.05rem;
  flex-wrap: wrap;
}

.urgency-count {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  background: var(--urgent-dark);
  padding: 4px 14px;
  border-radius: 8px;
}

/* Footer */
.footer {
  padding: 36px 0 42px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }

  .navinner {
    grid-template-columns: 1fr auto auto;
    height: auto;
    padding: 12px 0;
    row-gap: 8px;
  }

  .navlinks {
    display: none;
    order: 4;
    grid-column: 1/-1;
    justify-content: flex-start;
    overflow: auto;
    padding: 6px 4px 10px;
  }

  .navinner.open .navlinks {
    display: flex;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .h1 {
    font-size: 2rem;
  }

  .p {
    font-size: 1rem;
  }

  .choices {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row .btn {
    width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 100%;
    min-width: auto;
  }

  .newsletter-card {
    padding: 32px 20px;
  }

  .section {
    padding: 20px 0;
  }
}

/* Top navigation bar (alternative) */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.top nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.top nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

/* ===========================================
   GLOBAL MOBILE FIXES — Critical Overflow Prevention
   =========================================== */

/* Safety net: prevent horizontal scroll site-wide */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Global header overflow fix — applies to all pages with .header-inner */
.header-inner,
.navinner {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Ensure all images and SVGs respect container bounds */
img, svg, video, iframe, table {
  max-width: 100%;
}

/* Minimum font size enforcement — no text below 12px on mobile */
@media (max-width: 768px) {
  .subtitle, .price-note, .step-content p, .perfect-card p,
  .site-footer-col a, .site-footer-bottom-links a,
  .site-footer-copy, .site-footer-trust span {
    font-size: max(0.8rem, 12px) !important;
  }
}

/* Header mobile overflow: shrink "Start Free Trial" button text */
@media (max-width: 900px) {
  .header-inner {
    max-width: 100vw;
    overflow: visible; /* allow dropdown */
    box-sizing: border-box;
  }
  .mobile-deploy-btn {
    padding: 8px 10px !important;
    font-size: 0.72rem !important;
    min-width: 0 !important;
    white-space: nowrap;
    flex-shrink: 1 !important;
    max-width: 110px;
  }
  .hamburger-btn {
    flex-shrink: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 8px 12px !important;
  }
  .brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
  }
  .header-actions {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }
}

@media (max-width: 380px) {
  .mobile-deploy-btn {
    font-size: 0.68rem !important;
    padding: 6px 8px !important;
    max-width: 90px;
  }
  .brand-text {
    max-width: 80px;
    font-size: 0.7rem !important;
  }
}

/* Footer touch target fixes — 44px minimum tap area */
.site-footer-social a {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
}
.site-footer-social a svg {
  width: 18px !important;
  height: 18px !important;
}
.site-footer-social {
  gap: 10px !important;
  max-width: 240px !important;
}
.site-footer-col li {
  margin: 0 0 4px !important;
}
.site-footer-col a {
  display: inline-block;
  padding: 6px 0;
  min-height: 44px;
  line-height: 32px;
}
.site-footer-bottom-links a {
  display: inline-block;
  padding: 8px 4px;
  min-height: 44px;
  line-height: 28px;
}
.site-footer-trust span {
  padding: 6px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
