/* AppBuilder24 funnel stylesheet - mirrors the new SSG brand exactly.
   Class names preserved (.nav, .hero, .btn-primary, .verify-box, .spinner, .page-loader, etc.)
   so the existing HTML structure of index.php, verify/, app-account/, dashboard/ swaps
   design without changing markup. Color palette is the new orange + warm cream + ink. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

:root {
  --ab-orange: #ff5a1f;
  --ab-orange-dark: #e54a14;
  --ab-orange-soft: #fff1e8;
  --ab-ink: #0b1320;
  --ab-text: #1a1f2e;
  --ab-text-muted: #5b6577;
  --ab-text-subtle: #8b94a5;
  --ab-bg: #fffbf5;
  --ab-bg-white: #ffffff;
  --ab-border: #ece4d7;
  --ab-border-strong: #d6cbb8;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--ab-bg);
  color: var(--ab-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ab-orange); text-decoration: none; }
a:hover { text-decoration: none; opacity: 0.85; }

img { max-width: 100%; height: auto; display: block; }

/* Nav (preserved class names from the funnel markup) */
.nav {
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(8px);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ab-border);
  position: sticky;
  top: 0;
  z-index: 9999;
  max-width: 1180px;
  margin: 0 auto;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-logo span { display: none; } /* wordmark image already has the brand */
.nav-logo:hover { text-decoration: none; opacity: 0.85; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ab-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--ab-orange); text-decoration: none; }
/* Use the direct-child combinator (>) so this CTA styling only hits the top-level
   last item in .nav-links (the "Build an App" button) and does NOT cascade into
   dropdown columns where it was turning every column's last link into a dark
   button-looking block. */
.nav-links a.cta,
.nav-links > a:last-child {
  padding: 9px 18px;
  background: var(--ab-ink);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.15s;
}
.nav-links a.cta:hover,
.nav-links > a:last-child:hover { background: var(--ab-orange); opacity: 1; }

/* Hero */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  text-align: left;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--ab-ink);
  max-width: 820px;
}
.hero h1 em {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--ab-orange);
}
.hero p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ab-text-muted);
  max-width: 680px;
  margin: 0 0 32px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary { background: var(--ab-orange); color: white; }
.btn-primary:hover {
  background: var(--ab-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 90, 31, 0.3);
  opacity: 1;
}
.btn-outline {
  background: transparent;
  color: var(--ab-ink);
  border: 1.5px solid var(--ab-border-strong);
}
.btn-outline:hover { border-color: var(--ab-ink); opacity: 1; }
.btn-dark { background: var(--ab-ink); color: white; }
.btn-dark:hover { background: var(--ab-orange); opacity: 1; }

/* Ad block - centered AdSense slot used on all funnel pages. */
.ad-block {
  max-width: 1180px;
  margin: 16px auto;
  padding: 0 24px;
  min-height: 1px;
  text-align: center;
}
/* Hard-center the AdSense ins + iframe so smaller-than-slot creatives
   do not drift left inside the block. */
.ad-block ins.adsbygoogle {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100%;
}
.ad-block iframe {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Content sections */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--ab-ink);
  max-width: 820px;
}
.section h2 em {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--ab-orange);
}
.section p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ab-text-muted);
  max-width: 720px;
  margin-bottom: 16px;
}
.section-gray { background: var(--ab-bg-white); border-top: 1px solid var(--ab-border); border-bottom: 1px solid var(--ab-border); }
.section-green { background: var(--ab-orange-soft); }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.feature-card {
  background: var(--ab-bg-white);
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.15s, transform 0.15s;
}
.feature-card:hover {
  border-color: var(--ab-border-strong);
  transform: translateY(-2px);
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ab-ink);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.feature-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ab-text-muted);
  margin: 0;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--ab-orange-soft);
}
.feature-icon svg { color: var(--ab-orange); stroke: var(--ab-orange); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
  counter-reset: step;
}
.step { padding: 8px 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ab-orange);
  color: white;
  font-size: 18px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ab-ink);
  letter-spacing: -0.015em;
}
.step p { font-size: 15px; color: var(--ab-text-muted); line-height: 1.55; margin: 0; }

/* Verify box (used on verify/, dashboard/, app-account/) */
.verify-box {
  max-width: 520px;
  margin: 24px auto;
  background: var(--ab-bg-white);
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(11, 19, 32, 0.06);
}
.verify-box .box-loader { padding: 32px 0; }
.verify-box .box-loader .spinner { margin-bottom: 12px; }
.verify-box .box-content { display: none; }
.verify-box h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ab-ink);
}
.verify-box p {
  color: var(--ab-text-muted);
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.55;
}

/* Spinner */
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--ab-border);
  border-top-color: var(--ab-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--ab-border);
  border-radius: 3px;
  overflow: hidden;
  margin: 16px 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ab-orange), #ff8a4f);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s;
}

.status-msg { font-size: 13px; color: var(--ab-text-subtle); min-height: 20px; }

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--ab-orange-soft);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.success-icon svg { width: 32px; height: 32px; color: var(--ab-orange); }

.email-form { margin: 24px 0; }
.email-form .btn { margin-top: 20px; display: block; width: 100%; }
.verify-box .btn,
.verify-box form .btn,
.verify-box button.btn,
button.email-form-btn {
  margin-top: 20px !important;
  display: block !important;
  width: 100% !important;
  border-radius: 6px !important;
}
.verify-box form .email-input { margin-bottom: 0; }
.email-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--ab-border);
  border-radius: 6px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
  background: white;
  color: var(--ab-text);
}
.email-input:focus { border-color: var(--ab-orange); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.12); }
.email-input:disabled { background: #f5f3ee; color: var(--ab-text-subtle); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--ab-border);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ab-ink);
  letter-spacing: -0.015em;
}
.faq-item p { font-size: 16px; color: var(--ab-text-muted); line-height: 1.6; margin: 0; }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.testimonial {
  background: var(--ab-bg-white);
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  padding: 28px;
}
.testimonial p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ab-text);
  margin-bottom: 16px;
}
.testimonial .author {
  font-size: 13px;
  font-weight: 700;
  color: var(--ab-ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin: 48px 0;
  text-align: center;
}
.stat-number {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 900;
  color: var(--ab-orange);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--ab-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* Footer */
.footer {
  background: var(--ab-ink);
  color: #c8d0dc;
  padding: 56px 24px 32px;
  font-size: 14px;
  text-align: center;
}
.footer a { color: #c8d0dc; }
.footer a:hover { color: white; opacity: 1; }
.footer strong { color: white; }

.hidden { display: none; }

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--ab-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-out;
}
.page-loader.fade-out { opacity: 0; pointer-events: none; }
.page-loader-inner { text-align: center; }
.page-loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--ab-border);
  border-top-color: var(--ab-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

/* Nav dropdown (CSS-only - hover + focus reveal) */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-trigger {
  background: transparent;
  border: none;
  color: var(--ab-text);
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  padding: 0;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.nav-dropdown-trigger:hover { color: var(--ab-orange); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  min-width: 260px;
  background: white;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(11, 19, 32, 0.08);
  padding: 8px;
  /* Top-tier z-index so AdSense/iframes/anything else cannot punch through dropdown items. */
  z-index: 10000;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu-wide {
  min-width: 720px;
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 14px;
  /* Anchor right so the wider menu does not overflow the viewport on narrow desktops. */
  left: auto;
  right: 0;
}
.nav-dropdown:hover .nav-dropdown-menu-wide,
.nav-dropdown:focus-within .nav-dropdown-menu-wide { display: grid; }
.nav-dropdown-col {
  display: flex;
  flex-direction: column;
}
.nav-dropdown-col-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--ab-text-muted) !important;
  padding: 6px 14px 4px !important;
  margin-bottom: 4px !important;
}
.nav-dropdown-menu a {
  display: block !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  color: var(--ab-text) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  margin: 0 !important;
}
.nav-dropdown-menu a:hover {
  background: var(--ab-orange-soft) !important;
  color: var(--ab-orange) !important;
}
@media (max-width: 720px) {
  .nav-dropdown { display: none; }
}

/* Acquisition notice strip - appears above every footer site-wide.
   Frames AppBuilder24 as a Swiftspeed sub-brand so search engines associate
   the two domains and pass authority from the parent. */
.acq-notice {
  background: linear-gradient(135deg, #fff1e8 0%, #fffbf5 100%);
  border-top: 1px solid var(--ab-border);
  border-bottom: 1px solid var(--ab-border);
  padding: 20px 24px;
}
.acq-notice-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.acq-notice-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ab-text);
}
.acq-notice-text strong {
  color: var(--ab-ink);
  font-weight: 700;
  display: inline;
  margin-right: 6px;
}
.acq-notice-text span {
  color: var(--ab-text-muted);
}
.acq-notice-cta {
  display: inline-block;
  padding: 10px 20px;
  background: var(--ab-orange);
  color: white !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s;
}
.acq-notice-cta:hover {
  background: var(--ab-orange-dark);
  text-decoration: none !important;
  opacity: 1;
}
@media (max-width: 720px) {
  .acq-notice-inner { flex-direction: column; align-items: flex-start; }
  .acq-notice-cta { width: 100%; text-align: center; }
}

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ab-orange);
  background: var(--ab-orange-soft);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .nav-links a:not(:last-child) { display: none; }
  .nav-logo img { height: 26px; }
  .hero { padding: 56px 20px 40px; }
  .hero p { font-size: 17px; }
  .section { padding: 56px 20px; }
  .verify-box { margin: 24px 16px; padding: 36px 24px; }
  .testimonials { grid-template-columns: 1fr; }
}
