/* ==========================================================================
   SiteAutopilot — shared styles
   ========================================================================== */

:root {
  --orange: #F5911E;
  --orange-dark: #DD7C0C;
  --orange-light: #FFF1DF;
  --navy: #16213E;
  --navy-2: #1A1A2E;
  --text: #1F2430;
  --text-muted: #6B7280;
  --border: #E7E7EA;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFB;
  --blue-bg: #EAF1FB;
  --blue-text: #1B2559;
  --blue-accent: #2F5FE3;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(22, 33, 62, 0.07);
  --shadow-lg: 0 12px 40px rgba(22, 33, 62, 0.12);
  --max-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { color: var(--navy-2); margin: 0 0 12px; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-dark);
  background: var(--orange-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: 34px; }
.section-head p { font-size: 17px; margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 16px rgba(245, 145, 30, 0.32);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--navy-2);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-dark {
  background: var(--navy-2);
  color: #fff;
}
.btn-dark:hover { background: #0f1428; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Nav */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--navy-2);
}
.brand .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.nav-links a:hover { color: var(--orange-dark); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at 85% 10%, rgba(245,145,30,0.10), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(47,95,227,0.08), transparent 40%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: 48px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--orange); }
.hero-sub {
  font-size: 18px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }

.hero-visual {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.hero-visual .fake-topbar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.hero-visual .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.metric-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.metric-card .val { font-size: 22px; font-weight: 800; color: var(--navy-2); }
.metric-card .lbl { font-size: 12px; color: var(--text-muted); }
.metric-card .delta { font-size: 12px; font-weight: 700; color: #16A34A; }
.hero-visual .fake-list { display: flex; flex-direction: column; gap: 10px; }
.fake-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
}
.fake-row .tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #15803D;
}
.fake-row .tag.pending { background: var(--orange-light); color: var(--orange-dark); }

/* Logos strip */
.logos-strip {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.logos-strip p { margin: 0; font-size: 13px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.logo-pills { display: flex; gap: 14px; flex-wrap: wrap; }
.logo-pill {
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--orange-light);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 14.5px; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14px; margin: 0; }

/* Pricing */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: -24px 0 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.save-badge {
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--orange);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(-8px);
}
.price-card .badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card h3 { font-size: 20px; margin-bottom: 4px; }
.price-card .plan-desc { font-size: 13.5px; margin-bottom: 20px; }
.price-card .price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.price-card .price .amount { font-size: 40px; font-weight: 800; color: var(--navy-2); }
.price-card .price .period { font-size: 14px; color: var(--text-muted); }
.price-card .billed-note { font-size: 12.5px; color: var(--text-muted); margin-bottom: 24px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.price-card li:first-child { border-top: none; }
.price-card li .check {
  color: var(--orange-dark);
  font-weight: 800;
  flex-shrink: 0;
}

/* Testimonial / stat band */
.stat-band {
  background: var(--navy-2);
  color: #fff;
  padding: 56px 0;
}
.stat-band .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-band .num { font-size: 34px; font-weight: 800; color: var(--orange); }
.stat-band .lbl { font-size: 13.5px; color: #C7CBDA; margin-top: 4px; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy-2);
}
.faq-q .icon {
  font-size: 20px;
  color: var(--orange);
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  font-size: 14.5px;
  color: var(--text-muted);
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--orange), var(--orange-dark));
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
}
.cta-band h2 { color: #fff; font-size: 30px; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 16px; max-width: 520px; margin: 0 auto 24px; }
.cta-band .btn-dark { background: #16213E; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-band .btn-outline:hover { border-color: #fff; }

/* Footer */
footer.site-footer {
  background: var(--navy-2);
  color: #C7CBDA;
  padding: 64px 0 28px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid .brand { color: #fff; margin-bottom: 12px; }
.footer-grid p { color: #9AA0B4; font-size: 14px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: #9AA0B4; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: #7B8098;
  flex-wrap: wrap;
  gap: 12px;
}

/* Modal (login/register) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 20, 40, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-tabs {
  display: flex;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.modal-tab {
  flex: 1;
  text-align: center;
  padding: 9px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-tab.active { background: #fff; color: var(--navy-2); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.form-panel { display: none; }
.form-panel.active { display: block; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--navy-2); }
.field input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-size: 14.5px;
  font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,145,30,0.15); }
.form-row-between { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-bottom: 20px; }
.form-row-between a { color: var(--orange-dark); font-weight: 600; }
.form-note { font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: 16px; }
.form-note a { color: var(--orange-dark); font-weight: 600; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.checkbox-row input { margin-top: 3px; }
.checkbox-row a { color: var(--orange-dark); font-weight: 600; }

/* Legal pages */
.legal-page { padding: 64px 0 96px; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: 36px; margin-bottom: 8px; }
.legal-updated { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }
.legal-page h2 { font-size: 21px; margin-top: 36px; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 15px; }
.legal-page ul { padding-left: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--orange-dark); margin-bottom: 24px; font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .stat-band .wrap { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; margin: 0; border-radius: 0; }
  .section { padding: 64px 0; }
}
