/* ═══════════════════════════════════════════
   Automoto — Shared Stylesheet
   ═══════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --blue:       #185FA5;
  --blue-dark:  #0f4780;
  --blue-light: #ddeaf7;
  --green:      #3B6D11;
  --green-dark: #2a4f0c;
  --green-bg:   #e8f2dc;
  --bg:         #F5F4F1;
  --bg-white:   #ffffff;
  --text:       #1A1917;
  --text-mid:   #4a4845;
  --text-muted: #7a7875;
  --border:     #dddbd6;
  --amber-bg:   #FAEEDA;
  --amber-text: #854F0B;
  --red:        #b91c1c;
  --red-bg:     #fee2e2;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,.09);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.11);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography scale ── */
h1, h2, h3, h4, h5 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--text-mid); }
small { font-size: .85rem; color: var(--text-muted); }

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: system-ui, sans-serif;
  border: none;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(24,95,165,.25);
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(24,95,165,.3);
  text-decoration: none;
}
.btn-primary:active { transform: translateY(1px); }

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,109,17,.22);
}
.btn-green:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 16px rgba(59,109,17,.28);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue-light);
  text-decoration: none;
}

.btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.25);
  text-decoration: none;
}

.btn-sm {
  padding: 8px 16px;
  font-size: .875rem;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* ── Top bar ── */
.topbar {
  background: var(--amber-bg);
  color: var(--amber-text);
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  padding: 10px 24px;
  letter-spacing: .02em;
}
.topbar a { color: var(--amber-text); text-decoration: underline; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,244,241,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .15s;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(145deg, #0f3b6e 0%, #185FA5 60%, #1f75cc 100%);
  color: #fff;
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero h1 {
  color: #fff;
  max-width: 760px;
  margin: 0 auto 20px;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 16px;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}

/* ── Section shells ── */
.section {
  padding: 88px 0;
}
.section-alt { background: var(--bg-white); }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 14px; }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 32px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--blue); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: .95rem; }

/* ── How it works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px;
  height: 56px;
  background: var(--blue);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { margin-bottom: 8px; font-size: 1rem; }
.step p { font-size: .9rem; }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 740px;
  margin: 56px auto 0;
}
.price-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card.featured {
  border-color: var(--blue);
  border-width: 2px;
  position: relative;
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}
.price-plan {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.price-amount {
  font-family: Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.price-amount sup {
  font-size: 1.2rem;
  vertical-align: super;
  font-weight: 700;
}
.price-cycle {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.price-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}
.price-features li {
  padding: 7px 0;
  font-size: .93rem;
  color: var(--text-mid);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.price-features li:first-child { border-top: 1px solid var(--border); }
.check-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.check-icon svg { width: 11px; height: 11px; color: var(--green); }

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  transition: color .15s;
}
.faq-btn:hover { color: var(--blue); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform .25s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--blue); }
.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-body { max-height: 400px; }
.faq-body p {
  padding-bottom: 20px;
  font-size: .95rem;
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  background: #111110;
  color: rgba(255,255,255,.55);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: color .15s;
}
.footer-links a:hover { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-copy { font-size: .8rem; }

/* ── Activate page ── */
.activate-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.activate-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 52px 44px;
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.activate-card .logo {
  display: inline-block;
  margin-bottom: 32px;
}

/* spinner */
.spinner-wrap { margin: 32px auto 24px; }
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-label {
  margin-top: 18px;
  font-size: .95rem;
  color: var(--text-muted);
}

/* status icons */
.status-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.status-icon.success { background: var(--green-bg); }
.status-icon.error   { background: var(--red-bg); }
.status-icon svg { width: 36px; height: 36px; }
.status-icon.success svg { color: var(--green); }
.status-icon.error   svg { color: var(--red); }

/* license key box */
.license-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.license-key {
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .06em;
  word-break: break-all;
  text-align: left;
}
.copy-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: .8rem;
}
.copy-btn.copied {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green);
}

/* instructions */
.instructions {
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  text-align: left;
  margin-top: 28px;
}
.instructions h4 {
  color: var(--blue);
  margin-bottom: 12px;
  font-size: .9rem;
}
.instructions ol {
  margin: 0;
  padding-left: 20px;
}
.instructions li {
  font-size: .9rem;
  color: var(--text-mid);
  margin-bottom: 6px;
  line-height: 1.5;
}

/* error */
.error-reason {
  background: var(--red-bg);
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .9rem;
  color: #991b1b;
  margin: 16px 0 24px;
}

/* activate action buttons */
.activate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* hidden utility */
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
  .steps-grid::before { display: none; }
  .step { padding: 0 0 32px; }
  .step-num { box-shadow: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .activate-card { padding: 36px 24px; }
  .license-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, .spinner { animation: none !important; transition: none !important; }
}