:root {
  --bg: #FAF7F1;
  --bg-alt: #F1EBDE;
  --surface: #FFFFFF;
  --text: #2B2A27;
  --text-strong: #211F1C;
  --text-muted: #5B574F;
  --text-faint: #8A8478;
  --primary: #1F6F73;
  --primary-dark: #17565A;
  --primary-tint: #E3EFEE;
  --accent: #D97B29;
  --accent-dark: #B8631A;
  --accent-tint: #FBEADA;
  --border: #E6DFD0;
  --rail-inactive: #B9B2A0;
  --footer-bg: #211F1C;
  --footer-muted: #B7B2A6;
  --font-head: 'Onest', 'Segoe UI', Arial, sans-serif;
  --font-body: 'PT Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--text-strong);
  margin: 0;
}

p { margin: 0; }
a { color: var(--primary-dark); }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
}

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }

.btn-lg { font-size: 19px; padding: 18px 32px; min-height: 56px; }

.link-arrow {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Header + progress */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: nowrap;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.logo-word { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--text-strong); }

.progress-track { height: 4px; background: var(--border); }

.progress-fill { height: 4px; width: 0%; background: var(--accent); transition: width 0.1s linear; }

/* Rail layout */

.rail-layout {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  padding-top: 48px;
}

.rail {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.rail-list { display: flex; flex-direction: column; }

.rail-item {
  display: flex;
  gap: 14px;
  padding-bottom: 32px;
  position: relative;
}

.rail-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: -16px;
  width: 2px;
  background: var(--border);
}

.rail-item:last-child::before { display: none; }

.rail-item .rail-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 3px solid var(--rail-inactive);
  background: var(--bg);
  flex-shrink: 0;
  margin-top: 2px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rail-item .rail-label {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.rail-item.active .rail-dot {
  border-color: var(--primary);
  background: var(--primary);
  transform: scale(1.1);
}

.rail-item.active .rail-label { color: var(--text-strong); font-size: 17px; }

.rail-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 76px;
  padding-bottom: 70px;
}

/* Hero */

.hero { display: flex; flex-direction: column; gap: 22px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  width: fit-content;
}

.hero h1 { font-weight: 800; font-size: 42px; line-height: 1.2; max-width: 680px; }

.lead { font-size: 19px; line-height: 1.6; color: var(--text-muted); max-width: 640px; }

.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.reassurance { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 16px; }

.reassurance svg { color: var(--primary); flex-shrink: 0; }

/* Section heads */

.section-head {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.section-head h2 { font-weight: 700; font-size: 32px; }

.section-head p { font-size: 18px; color: var(--text-muted); }

.section-head-center { max-width: none; text-align: center; align-items: center; margin-left: auto; margin-right: auto; }

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head-row h2 { font-weight: 700; font-size: 32px; }

.step-counter { font-size: 15px; color: var(--text-faint); font-weight: 700; }

/* Grid + cards (shared visual language with Variant A) */

.grid { display: grid; gap: 24px; }

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border);
}

.card h3 { font-weight: 700; font-size: 20px; }

.card p { font-size: 16px; line-height: 1.55; color: var(--text-muted); }

.card-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--primary-tint); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}

.card-icon-accent { background: var(--accent-tint); color: var(--accent-dark); }

.feature-teaser {
  margin-top: 24px;
  border: 1.5px dashed var(--border);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.teaser-badge {
  display: inline-flex;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.feature-teaser h3 { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--text-strong); }

.feature-teaser p { font-size: 15px; line-height: 1.55; color: var(--text-muted); max-width: 600px; }

/* Stepper */

.stepper-track { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; margin-bottom: 24px; }

.stepper-fill { height: 6px; border-radius: 999px; background: var(--accent); width: 25%; transition: width 0.25s ease; }

.stepper { align-items: start; }

.step-card {
  background: var(--bg-alt);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.2s ease;
}

.step-card:hover { opacity: 1; }

.step-card .step-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--primary-tint); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}

.step-card .step-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--text-strong); }

.step-card .step-desc { display: none; font-size: 15px; line-height: 1.55; color: var(--text-muted); }

.step-card[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--primary);
  opacity: 1;
  box-shadow: 0 16px 32px -20px rgba(31, 111, 115, 0.35);
  padding: 24px;
}

.step-card[aria-selected="true"] .step-icon { width: 44px; height: 44px; }

.step-card[aria-selected="true"] .step-title { font-size: 18px; }

.step-card[aria-selected="true"] .step-desc { display: block; }

/* Security */

.security-inner { display: flex; align-items: center; gap: 48px; }

.security-text { flex: 1 1 0; display: flex; flex-direction: column; gap: 24px; }

.check-list { display: flex; flex-direction: column; gap: 18px; }

.check-list li { display: flex; align-items: flex-start; gap: 14px; }

.check-list svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.check-list span { font-size: 17px; line-height: 1.55; color: #3A3730; }

.security-card {
  flex: 0 0 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.security-badge {
  width: 64px; height: 64px; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}

.security-card h3 { font-weight: 700; font-size: 18px; }

.security-card p { font-size: 15px; color: var(--text-muted); line-height: 1.5; }

/* FAQ */

.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 4px 28px;
}

.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--text-strong);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .chevron { flex-shrink: 0; color: var(--text-faint); transition: transform 0.2s ease; }

.faq-item[open] .chevron { transform: rotate(180deg); }

.faq-item p { font-size: 16px; line-height: 1.6; color: var(--text-muted); padding-bottom: 24px; }

/* CTA band */

.cta-band { background: var(--primary); padding: 90px 0; margin-top: 0; }

.cta-inner {
  max-width: 800px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}

.cta-inner h2 { font-weight: 800; font-size: 34px; color: #fff; }

.cta-inner p { font-size: 18px; color: #DCEEED; }

/* Lead form */

.lead-card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 30px 60px -20px rgba(33, 31, 28, 0.35);
  padding: 40px 44px 36px;
  width: 100%;
  max-width: 560px;
  text-align: left;
  box-sizing: border-box;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.lead-form[hidden] { display: none; }

.lead-form-head {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-strong);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.form-field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-strong);
}

.form-hint {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-faint);
}

.form-field input {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  min-height: 52px;
  box-sizing: border-box;
  width: 100%;
}

.form-field input::placeholder { color: var(--text-faint); }

.form-field input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-field input.field-invalid { border-color: var(--accent); }
.form-consent.field-invalid span { color: var(--accent-dark); }
.form-consent.field-invalid input { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-or {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-faint);
}

.form-error {
  margin: 0;
  font-size: 14px;
  color: var(--accent-dark);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.form-consent span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.form-consent a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.form-submit { width: 100%; }

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--text-faint);
}

.form-note svg { flex-shrink: 0; }

.lead-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  outline: none;
}

.lead-success[hidden] { display: none; }

.lead-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-success-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-strong);
}

.lead-success-text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
}

/* Footer */

.site-footer { background: var(--footer-bg); padding: 56px 0; }

.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }

.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }

.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 19px; }

.footer-brand p { font-size: 15px; line-height: 1.55; color: var(--footer-muted); }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }

.footer-heading { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: #fff; }

.footer-line { display: flex; align-items: center; gap: 10px; color: #DCEEED; font-size: 16px; }

.footer-line a { color: #fff; text-decoration: underline; }

.footer-copy { font-size: 14px; color: var(--text-faint); }

/* Responsive */

@media (max-width: 1080px) {
  .rail { display: none; }
  .rail-layout { padding-top: 32px; gap: 0; }
}

@media (max-width: 960px) {
  .container { padding: 0 28px; }
  .rail-layout .container { padding: 0; }
  .rail-layout { padding-left: 28px; padding-right: 28px; }

  .hero h1 { font-size: 34px; max-width: none; }
  .lead { max-width: none; }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .security-inner { flex-direction: column; }
  .security-card { width: 100%; flex-basis: auto; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .rail-layout { padding-left: 20px; padding-right: 20px; }

  body { font-size: 17px; }

  .header-inner { gap: 12px; }

  .logo-word { font-size: 19px; }

  .header-inner .btn-accent {
    font-size: 14px;
    padding: 10px 14px;
    min-height: 40px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .rail-content { gap: 56px; }

  .hero h1 { font-size: 28px; line-height: 1.25; }
  .lead { font-size: 17px; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn,
  .hero-actions .link-arrow { justify-content: center; text-align: center; }

  .section-head h2, .section-head-row h2 { font-size: 26px; }

  .section-head-row { flex-wrap: wrap; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .step-card[aria-selected="true"] .step-desc { display: block; }

  .faq-item { padding: 4px 20px; }
  .faq-item summary { font-size: 17px; padding: 18px 0; }

  .cta-inner h2 { font-size: 26px; }

  .lead-card { padding: 28px 22px 26px; border-radius: 20px; }

  .lead-form-head { font-size: 20px; }

  .form-field input { font-size: 16px; }

  .form-submit { font-size: 18px; padding: 16px 24px; }

  .footer-inner { flex-direction: column; gap: 32px; }

  .header-inner { flex-wrap: wrap; row-gap: 10px; }
  .header-actions { width: 100%; justify-content: space-between; }
}

/* Login link (header + footer) */

.header-actions { display: flex; align-items: center; gap: 20px; }

.link-login {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  color: var(--text); text-decoration: none;
}

.link-login:hover { color: var(--primary-dark); }

.footer-line-login a { color: #fff; text-decoration: underline; }
