/* ============================================
   FormRight — Marketing Site Styles
   Working name — brand TBD
   ============================================ */

:root {
  --primary: #1e3a5f;
  --primary-light: #2d5a8e;
  --primary-dark: #0f2440;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-light: #d1fae5;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --bg: #ffffff;
  --bg-off: #f9fafb;
  --bg-dark: #f3f4f6;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

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

/* ---- Layout ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.navbar-brand span { color: var(--accent); }

.navbar-links { display: flex; gap: 2rem; align-items: center; }
.navbar-links a { color: var(--text); font-size: 0.95rem; font-weight: 500; }
.navbar-links a:hover { color: var(--primary-light); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg-off);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(16,185,129,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(16,185,129,0.1) 0%, transparent 40%);
}

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-badge {
  display: inline-block;
  background: rgba(16,185,129,0.2);
  color: #6ee7b7;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(16,185,129,0.3);
}

/* ---- State Cards ---- */
.state-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 4rem 1.5rem 3rem;
}

.state-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.state-hero p { font-size: 1.1rem; opacity: 0.85; max-width: 600px; }

/* ---- Sections ---- */
.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: var(--bg-off);
}

.section-dark {
  background: var(--primary-dark);
  color: white;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Feature Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- How It Works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--text-light); font-size: 0.9rem; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 0.3rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.pricing-card .price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text);
  margin: 1rem 0 0.25rem;
}

.pricing-card .price-note {
  color: var(--text-lighter);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.pricing-card .price sup {
  font-size: 1.5rem;
  font-weight: 700;
  vertical-align: super;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
  padding: 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-features li.extra::before {
  content: '+';
  color: var(--primary-light);
}

.pricing-state-fee {
  display: block;
  background: var(--bg-off);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---- State Comparison Table ---- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th {
  background: var(--primary);
  color: white;
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.comparison-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.comparison-table tr:nth-child(even) { background: var(--bg-off); }
.comparison-table tr:hover { background: #eef7ff; }

.check { color: var(--accent); font-weight: 700; }
.cross { color: #ef4444; }

/* ---- Trust Bar ---- */
.trust-bar {
  padding: 3rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.trust-bar p {
  color: var(--text-lighter);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

.trust-item .icon { font-size: 1.25rem; }

/* ---- State Info Cards ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.info-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.info-card p, .info-card li {
  color: var(--text-light);
  font-size: 0.95rem;
}

.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card ul li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.info-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---- Stats Row ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.stat-item .stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.section-dark .stat-value { color: #6ee7b7; }
.section-dark .stat-label { color: rgba(255,255,255,0.7); }

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FAQ ---- */
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item summary {
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  margin-bottom: 3rem;
}

.footer h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer p, .footer a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer a:hover { color: white; }

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li { margin-bottom: 0.5rem; }

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---- Formation Wizard ---- */
.wizard-section {
  padding: 3rem 1.5rem;
  background: var(--bg-off);
  min-height: 600px;
}

.wizard-container {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border);
}

.wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.wizard-step-indicator .circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-lighter);
  transition: all 0.3s;
}

.wizard-step-indicator.active .circle {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.wizard-step-indicator.completed .circle {
  background: var(--primary);
  color: white;
}

.wizard-step-indicator .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wizard-step-indicator.active .label { color: var(--text); }

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-top: 0.3rem;
}

.name-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.name-available { background: var(--accent-light); color: var(--accent-hover); }
.name-taken { background: #fee2e2; color: #dc2626; }

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.radio-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.radio-card:hover { border-color: var(--accent); }
.radio-card.selected { border-color: var(--accent); background: var(--accent-light); }
.radio-card input { display: none; }
.radio-card .radio-title { font-weight: 700; font-size: 0.95rem; }
.radio-card .radio-desc { font-size: 0.8rem; color: var(--text-light); margin-top: 0.25rem; }

/* ---- Addon Cards ---- */
.addon-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.addon-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.addon-card:hover { border-color: var(--accent); }
.addon-card.selected { border-color: var(--accent); background: var(--accent-light); }

.addon-info h4 { font-size: 0.95rem; font-weight: 700; }
.addon-info p { font-size: 0.8rem; color: var(--text-light); }
.addon-price { font-weight: 700; color: var(--primary); font-size: 0.95rem; white-space: nowrap; }

/* ---- Order Summary ---- */
.order-summary {
  background: var(--bg-off);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
}

.order-summary h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }

.order-line {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.order-line.total {
  border-top: 2px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .info-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.25rem; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .navbar-links { display: none; }
  .hero { padding: 3rem 1.5rem; }
  .hero h1 { font-size: 1.85rem; }
  .section { padding: 3rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .wizard-container { padding: 1.5rem; }
  .radio-group { grid-template-columns: 1fr; }
}
