/* ==========================================================================
   CaptainSelect.com — Main Stylesheet
   Premium B2B Lead Generation Directory
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --primary: #0B1F3A;
  --gold: #CFAE5B;
  --gold-hover: #B8972E;
  --bg: #F8F7F3;
  --teal: #1F6F6A;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-light: #6B7280;
  --border: #E5E5E0;
  --card-shadow: 0 2px 16px rgba(11, 31, 58, 0.08);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold-hover);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

ul, ol {
  list-style: none;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: 80px 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

.headline {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--primary);
}

.subline {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 640px;
  margin-inline: auto;
}

.trust-line {
  font-size: 0.875rem;
  color: var(--text-light);
  opacity: 0.8;
  margin-top: 12px;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary,
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--primary);
  padding: 14px 36px;
  border-radius: var(--radius);
}

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

.btn-secondary {
  background: transparent;
  color: var(--gold);
  padding: 14px 36px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--primary);
}

.btn-text {
  background: none;
  color: var(--gold-hover);
  padding: 0;
  font-weight: 600;
}

.btn-text::after {
  content: '\2192';
  transition: transform var(--transition);
}

.btn-text:hover {
  color: var(--gold);
}

.btn-text:hover::after {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(11, 31, 58, 0.05);
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 0;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}

.header-logo:hover .header-logo-text {
  color: var(--primary);
}

.header-logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.015em;
  line-height: 1;
}

/* Navigation — centered */
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
  padding: 0 40px;
}

.header-nav a {
  color: var(--text-light);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: color var(--transition);
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 1px;
}

.header-nav a:hover {
  color: var(--primary);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  transform: scaleX(1);
}

.header-nav a.active {
  color: var(--primary);
}

/* Actions — right side */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Custom language dropdown */
.lang-dropdown {
  position: relative;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  height: 34px;
}

.lang-trigger:hover {
  border-color: var(--gold);
  background: rgba(207, 174, 91, 0.04);
}

.lang-trigger-chevron {
  color: var(--text-light);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.lang-dropdown.open .lang-trigger-chevron {
  transform: rotate(180deg);
}

.lang-panel {
  display: none !important;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(11, 31, 58, 0.12);
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px;
  z-index: 200;
}

.lang-dropdown.open .lang-panel {
  display: block !important;
}

.lang-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
  line-height: 1.3;
}

.lang-item:hover {
  background: rgba(207, 174, 91, 0.08);
}

.lang-item--active {
  color: var(--gold-hover);
  background: rgba(207, 174, 91, 0.06);
}

.lang-item-full {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.75rem;
}

/* Header CTA */
.header-cta {
  font-size: 0.8125rem;
  padding: 8px 20px;
  white-space: nowrap;
  height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--primary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 16px 0 20px;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.nav-mobile a:hover {
  color: var(--gold-hover);
}

.nav-mobile a:last-of-type {
  border-bottom: none;
}

.btn-block {
  display: block;
  text-align: center;
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--primary);
  color: var(--white);
  padding: 96px 0 80px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 720px;
  margin-inline: auto;
}

.hero .subline {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 600px;
}

.hero .trust-line {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: 0 4px 24px rgba(11, 31, 58, 0.12);
  transform: translateY(-2px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.compare-table thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: rgba(207, 174, 91, 0.04);
}

.compare-table .col-highlight {
  background: rgba(207, 174, 91, 0.08);
}

.compare-table thead .col-highlight {
  background: var(--gold);
  color: var(--primary);
}

.check {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.125rem;
}

.dash {
  color: var(--border);
  font-size: 1.125rem;
}

/* ---------- Proof Bar ---------- */
.proof-bar {
  background: var(--gold);
  padding: 40px 0;
}

.proof-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.proof-bar .proof-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.proof-bar .proof-label {
  font-size: 0.875rem;
  color: var(--primary);
  opacity: 0.8;
  margin-top: 4px;
}

/* ---------- Pricing Cards ---------- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  transition: box-shadow var(--transition), transform var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(11, 31, 58, 0.12);
}

.pricing-card.featured {
  border-color: var(--gold);
  transform: scale(1.04);
  box-shadow: 0 8px 40px rgba(207, 174, 91, 0.18);
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-card.featured::before {
  content: 'Most chosen';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pricing-card h3 {
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0 8px;
  line-height: 1;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-features {
  text-align: left;
  margin: 24px 0 32px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

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

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-light);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-inline-start: 16px;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq summary:hover {
  color: var(--gold-hover);
}

.faq details p {
  padding: 0 0 20px;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ---------- Steps / Timeline ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 40px;
}

.step:last-child {
  padding-bottom: 0;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step:last-child::before {
  display: none;
}

.step-content h3 {
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* ---------- Stats Grid ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---------- Split / Who-for Cards ---------- */
.split-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  display: block;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--gold);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer-bottom a {
  display: inline;
  padding: 0;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 32px;
}

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 640px;
  margin-inline: auto;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(207, 174, 91, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Dark-theme form (inside CTA/hero sections) */
.cta-section .form-group label,
.hero .form-group label {
  color: var(--white);
}

.cta-section .form-group input,
.cta-section .form-group select,
.cta-section .form-group textarea,
.hero .form-group input,
.hero .form-group select,
.hero .form-group textarea {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.cta-section .form-group input::placeholder,
.hero .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-section .form-group input:focus,
.cta-section .form-group select:focus,
.cta-section .form-group textarea:focus,
.hero .form-group input:focus,
.hero .form-group select:focus,
.hero .form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(207, 174, 91, 0.25);
}

.form-submit {
  margin-top: 8px;
}

/* ---------- Mobile CTA Bar ---------- */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gold);
  padding: 12px 24px;
  text-align: center;
  z-index: 90;
  box-shadow: 0 -2px 12px rgba(11, 31, 58, 0.12);
  display: none;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.mobile-cta-bar.visible {
  transform: translateY(0);
}

.mobile-cta-bar a {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RTL Support ---------- */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] .nav-cta {
  margin-inline-start: 16px;
  margin-inline-end: 0;
}

[dir="rtl"] .btn-text::after {
  content: '\2190';
}

[dir="rtl"] .btn-text:hover::after {
  transform: translateX(-4px);
}

[dir="rtl"] .step::before {
  left: auto;
  right: 23px;
}

[dir="rtl"] .form-group select {
  background-position: left 16px center;
  padding-right: 16px;
  padding-left: 40px;
}

/* ---------- Responsive — Tablet (768px) ---------- */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    grid-column: 1 / -1;
    max-width: 420px;
    justify-self: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.25rem; }
  .headline { font-size: 1.625rem; }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 64px 0 48px;
  }

  /* Header mobile */
  .header-nav,
  .header-cta,
  .lang-dropdown {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Grids to single column */
  .card-grid,
  .pricing-cards,
  .split-cards {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    max-width: none;
    transform: none;
    grid-column: auto;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .proof-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Comparison table scroll */
  .compare-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .compare-table {
    min-width: 600px;
  }

  /* Mobile CTA bar visibility */
  .mobile-cta-bar {
    display: block;
  }

  /* Steps timeline */
  .step {
    gap: 16px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step::before {
    left: 19px;
    top: 40px;
  }

  [dir="rtl"] .step::before {
    left: auto;
    right: 19px;
  }
}

/* ---------- Container Variants ---------- */
.container-sm { max-width: 720px; margin-inline: auto; padding-inline: 24px; }
.container-xs { max-width: 640px; margin-inline: auto; padding-inline: 24px; }

/* ---------- Layout Utilities ---------- */
.cta-stack { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; }
.hero-seal { margin-bottom: 32px; }

/* ---------- Typography Utilities ---------- */
.label-sm { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.caption { font-size: 0.8125rem; }
.meta { font-size: 0.875rem; color: var(--text-light); }

/* ---------- Proof Bar Labels ---------- */
.proof-label-strong {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

/* ---------- Listing Mockups ---------- */
.mockup-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 12px;
}

.mockup-label--gold {
  color: var(--gold);
  font-weight: 700;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mockup-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--gold);
  opacity: 0.2;
  flex-shrink: 0;
}

.mockup-logo--gold {
  opacity: 0.3;
}

.mockup-card--basic {
  opacity: 0.6;
  border: 2px dashed var(--border);
}

.mockup-card--select {
  border: 2px solid var(--gold);
}

.mockup-card--priority {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--white) 0%, rgba(207,174,91,0.06) 100%);
}

/* ---------- Region Toggle (global) ---------- */
.region-toggle {
  display: inline-flex;
  border: 2px solid var(--gold);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
}

.region-btn {
  padding: 10px 28px;
  font-size: 0.875rem;
  font-weight: 700;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}

.region-btn:hover {
  color: var(--white);
}

.region-btn--active {
  background: var(--gold);
  color: var(--primary);
}

/* ---------- Price Visibility ---------- */
.price-eu { display: none; }
.region-eu .price-eu { display: inline; }
.region-eu .price-us { display: none; }

/* ---------- Calculator ---------- */
.calc-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.calc-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.calc-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--white);
  margin-top: 6px;
}

.calc-result {
  text-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Upgrade Button ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--primary);
  padding: 14px 36px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}

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

/* ---------- Plan Cards ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan-card { padding: 32px 24px; text-align: center; }
.plan-card.card--featured { border: 2px solid var(--gold); position: relative; }
.plan-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.plan-name { font-size: 1.25rem; }
.plan-sublabel { font-size: 0.875rem; color: var(--text-light); margin-top: 4px; }
.plan-price { font-size: 1.75rem; font-weight: 700; margin-top: 16px; }
.plan-price .price-period { font-size: 0.875rem; font-weight: 400; color: var(--text-light); }
.plan-features { list-style: none; text-align: left; font-size: 0.9375rem; }
.plan-features li { padding: 4px 0; }
.plan-features li::before { content: "\2713 "; color: var(--gold); font-weight: 700; margin-right: 6px; }

/* ---------- Included Strip ---------- */
.included-strip { background: var(--primary); color: var(--white); padding: 16px 0; font-size: 0.875rem; text-align: center; }

/* ---------- Comparison Table ---------- */
.table-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.cmp-table th, .cmp-table td { padding: 10px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.cmp-table td:first-child { text-align: left; font-weight: 500; }
.cmp-th--featured { color: var(--gold); }
.cmp-yes { color: var(--gold); font-weight: 700; }
.cmp-no { color: var(--text-light); }
.cmp-label-row { background: var(--bg); font-weight: 600; }

/* ---------- Which Plan Table ---------- */
.which-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.which-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.which-table td:first-child { color: var(--text-light); }

/* ---------- Commitment Table ---------- */
.commit-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.commit-table th, .commit-table td { padding: 10px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.commit-best { background: rgba(207,174,91,0.1); font-weight: 700; }

/* ---------- Progress Bar ---------- */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ---------- Dark Text Helpers ---------- */
.text-white-muted { color: rgba(255, 255, 255, 0.6); }
.text-white-soft { color: rgba(255, 255, 255, 0.75); }
.text-white-bright { color: rgba(255, 255, 255, 0.85); }

/* ---------- Responsive: Plan Grid ---------- */
@media (max-width: 1024px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-card.card--featured { grid-column: 1 / -1; max-width: 420px; justify-self: center; }
}

@media (max-width: 768px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card.card--featured { max-width: none; }
  .calc-box { padding: 20px; }
}

/* ---------- Print ---------- */
@media print {
  .header,
  .mobile-cta-bar,
  .nav-toggle {
    display: none;
  }

  .hero {
    background: none;
    color: var(--text);
    padding: 24px 0;
  }

  .hero h1 {
    color: var(--primary);
  }

  .section {
    padding: 24px 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid var(--border);
  }
}
