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

:root {
  --green: #1B5235;
  --green-mid: #2A6B44;
  --green-light: #EBF2ED;
  --green-pale: #F4F8F5;
  --green-accent: #3A8A58;
  --white: #FAFAF8;
  --ink: #141C14;
  --ink-muted: #5A6B5C;
  --ink-faint: #9AAD9C;
  --border: #DDE8DF;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 2px 16px rgba(27,82,53,0.10), 0 1px 4px rgba(27,82,53,0.06);
  --shadow-float: 0 8px 40px rgba(27,82,53,0.14), 0 2px 8px rgba(27,82,53,0.08);
  
  --card-confirmed-bg: #E8F5E9;
  --card-paid-bg: #EEF6FF;
  --card-paid-icon: #1A56C4;
  --badge-emerald-bg: #D1F5E3;
  --badge-emerald-text: #0D7040;
  --check-yes-featured: #A5D6A7;
  --check-yes-color: #2E7D32;
  --check-no-color: #E53935;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--green); color: #fff;
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  text-decoration: none; z-index: 200;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ─── NAV ─── */
.main-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 18px;
  color: var(--ink); text-decoration: none;
}
.nav-logo img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }

.nav-cta {
  background: var(--green); color: #fff;
  border: none; border-radius: 100px;
  padding: 10px 22px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: background .2s, transform .15s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta:hover { background: var(--green-mid); transform: translateY(-1px); }

/* Mobile nav */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 64px 0 0 0;
  background: var(--white); z-index: 99; padding: 32px 24px;
  flex-direction: column; gap: 4px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 17px; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .mobile-cta {
  margin-top: 20px; background: var(--green); color: #fff;
  border-radius: 100px; text-align: center; border: none;
  padding: 15px; display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ─── HERO ─── */
.hero-wrapper { max-width: 1400px; margin: 0 auto; overflow-x: hidden; }

.hero {
  min-height: calc(100vh - 64px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; align-items: center;
  padding: 80px 48px 80px 80px;
  position: relative;
}
.hero-left { max-width: 580px; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-light); color: var(--green);
  border-radius: 100px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-accent); flex-shrink: 0;
}

h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1.12; color: var(--ink);
  font-weight: 400; margin-bottom: 28px;
  text-wrap: pretty;
}
h1 em { font-style: italic; color: var(--green); }

.hero-subtitle {
  font-size: 17px; line-height: 1.65;
  color: var(--ink-muted); max-width: 460px;
  margin-bottom: 40px; font-weight: 400;
}

.benefits-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 24px; margin-bottom: 44px; list-style: none;
}
.benefits-list li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 14px; color: var(--ink-muted); line-height: 1.45;
}
.check-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.btn-primary {
  background: var(--green); color: #fff;
  border: none; border-radius: 100px;
  padding: 14px 28px; font-size: 15px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all .2s;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(27,82,53,0.25); }

.btn-ghost {
  background: none; border: 1.5px solid var(--border);
  border-radius: 100px; padding: 13px 24px;
  font-size: 15px; font-weight: 500; color: var(--ink-muted);
  cursor: pointer; font-family: inherit; transition: all .2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* Chat Cards */
.hero-right {
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start; padding-left: 48px;
}
.chat-card {
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); border: 1px solid var(--border);
  padding: 16px 20px; width: 300px;
  transition: transform .3s ease, box-shadow .3s ease;
  animation: floatUp .6s ease both;
  will-change: transform, opacity;
}
.chat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.chat-card:nth-child(1) { animation-delay: .1s; }
.chat-card:nth-child(2) { animation-delay: .25s; margin-left: 40px; }
.chat-card:nth-child(3) { animation-delay: .4s; }

@keyframes floatUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.card-icon.green     { background: var(--green-light); }
.card-icon.confirmed { background: var(--card-confirmed-bg); }
.card-icon.paid      { background: var(--card-paid-bg); }

.card-label { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.card-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 1px; }
.card-body  { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }

.card-badge {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px; padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
}
.card-badge.green   { background: var(--green-light); color: var(--green); }
.card-badge.blue    { background: var(--card-paid-bg); color: var(--card-paid-icon); }
.card-badge.emerald { background: var(--badge-emerald-bg); color: var(--badge-emerald-text); }
.card-amount { font-size: 22px; font-weight: 700; color: var(--green); margin-top: 4px; }
.card-sub    { font-size: 12px; color: var(--ink-faint); }

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--green); color: #fff;
  padding: 28px 80px;
  display: flex; justify-content: center; gap: 80px;
}
.stat { text-align: center; }
.stat-num   { font-family: 'Instrument Serif', serif; font-size: 36px; font-weight: 400; line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 4px; }

/* ─── SECTIONS ─── */
section { padding: 96px 80px; }

.section-label {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--green); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px;
}
h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400; line-height: 1.1;
  color: var(--ink); margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--ink-muted); line-height: 1.65; max-width: 520px; }

.segments-sub {
  max-width: 360px;
  text-align: right;
}
@media (max-width: 900px) {
  .segments-sub { text-align: left; max-width: 100%; }
}

/* ─── SEGMENTS ─── */
.segments { background: var(--green-pale); }
.segments-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.segments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.segment-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px 28px; border: 1px solid var(--border);
  transition: all .25s ease; cursor: default;
  position: relative; overflow: hidden;
}
.segment-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green-pale), transparent);
  opacity: 0; transition: opacity .3s;
}
.segment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--green-light); }
.segment-card:hover::before { opacity: 1; }

.segment-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
}
.segment-name { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.segment-desc { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }
.segment-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag {
  background: var(--green-light); color: var(--green);
  border-radius: 100px; padding: 3px 10px;
  font-size: 11px; font-weight: 500;
}

/* ─── HOW IT WORKS ─── */
.how { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.steps--pricing { margin-top: 56px; }
.step {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--green-pale); border: 1px solid var(--border);
  position: relative;
}
.step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 52px; color: var(--border);
  position: absolute; top: 24px; right: 28px;
  line-height: 1; user-select: none;
}
.step-icon  { font-size: 28px; margin-bottom: 16px; }
.step-title { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.step-desc  { font-size: 14px; color: var(--ink-muted); line-height: 1.65; }

/* ─── FEATURES ─── */
.features { background: var(--ink); color: #fff; }
.features .section-label { color: var(--green-accent); }
.features h2 { color: #fff; }
.features .section-sub { color: rgba(255,255,255,.55); }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 56px;
  border: 2px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg); overflow: hidden;
}
.feature-item {
  padding: 36px 32px;
  border-right: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .2s;
}
.feature-item:hover { background: rgba(255,255,255,.04); }
.feature-item:nth-child(3n)     { border-right: none; }
.feature-item:nth-last-child(-n+3) { border-bottom: none; }
.feature-ico   { font-size: 26px; margin-bottom: 14px; }
.feature-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.feature-desc  { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; }

/* ─── PRICING ─── */
.pricing { background: var(--white); }

/* ─── QUALIFICATION FORM ─── */
.qual-form {
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 64px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.qual-form-title {
  font-family: 'Instrument Serif', serif;
  font-size: 28px; font-weight: 400;
  color: var(--ink); margin-bottom: 32px;
}
.qual-form-intro {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  margin-top: -16px;
}
.qual-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.qual-field { display: flex; flex-direction: column; gap: 6px; }
.qual-field--full { grid-column: 1 / -1; }
.qual-field label {
  font-size: 13px; font-weight: 500;
  color: var(--ink-muted);
}
.qual-field input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px; font-family: inherit;
  color: var(--ink); background: #fff;
  transition: border-color .2s;
  outline: none;
}
.qual-field input:focus { border-color: var(--green); }
.qual-field input.error { border-color: var(--check-no-color); }
.qual-field input::placeholder { color: var(--ink-faint); }
.qual-submit {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff;
  border: none; border-radius: 100px;
  padding: 15px 32px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.qual-submit:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(27,82,53,0.25);
}
.qual-submit:focus-visible {
  outline: 3px solid var(--green-accent);
  outline-offset: 2px;
}

/* ─── CTA ─── */
.cta-section {
  background: var(--green);
  text-align: center; padding: 100px 80px;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  top: -200px; right: -100px;
  pointer-events: none;
}
.cta-section::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  bottom: -150px; left: -60px;
  pointer-events: none;
}
.cta-section h2 { color: #fff; font-size: clamp(36px, 4vw, 56px); margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,.7); font-size: 17px; margin-bottom: 40px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn-white {
  background: #fff; color: var(--green);
  border: none; border-radius: 100px;
  padding: 15px 30px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .2s;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.2); }

.btn-outline-white {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.4); border-radius: 100px;
  padding: 14px 28px; font-size: 15px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ─── FOOTER ─── */
footer {
  background: var(--ink); color: rgba(255,255,255,.4);
  padding: 40px 80px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 13px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo img  { width: 24px; height: 24px; opacity: .8; }
.footer-logo span { color: rgba(255,255,255,.7); font-weight: 500; }

footer nav { display: flex; gap: 20px; align-items: center; }
footer nav a {
  color: rgba(255,255,255,.4);
  text-decoration: none; font-size: 13px;
  transition: color .2s;
  background: none;
  padding: 0;
  height: auto;
  border: none;
}
footer nav a:hover { color: rgba(255,255,255,.8); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── CTA label override ─── */
.cta-label {
  color: rgba(255,255,255,.5);
  justify-content: center;
}
.cta-dot {
  background: rgba(255,255,255,.4);
}

/* ══════════════════ MOBILE ══════════════════ */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    min-height: auto; gap: 40px;
  }
  .hero-left { max-width: 100%; }
  h1 { font-size: clamp(32px, 8vw, 44px); }
  h1 br { display: none; }
  .hero-subtitle { font-size: 15px; max-width: 100%; }
  .benefits-list { grid-template-columns: 1fr; gap: 8px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  .hero-right { padding-left: 0; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .chat-card { width: calc(50% - 6px); margin-left: 0 !important; }
  .chat-card:last-child { width: 100%; }

  .stats-bar {
    padding: 24px 20px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px 0;
  }
  .stat { padding: 8px 0; }
  .stat-num { font-size: 28px; }

  section { padding: 56px 24px; }
  h2 { font-size: clamp(28px, 7vw, 38px); }
  h2 br { display: none; }

  .segments-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .segments-header .section-sub { text-align: left; max-width: 100%; }
  .segments-grid { grid-template-columns: 1fr 1fr; }

  .steps { grid-template-columns: 1fr; gap: 16px; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-item:nth-child(3n)          { border-right: 1px solid rgba(255,255,255,.07); }
  .feature-item:nth-child(2n)          { border-right: none; }
  .feature-item:nth-last-child(-n+2) { border-bottom: none; }

  .qual-form { padding: 32px 24px; }
  .qual-form-grid { grid-template-columns: 1fr; }
  .qual-submit { width: 100%; justify-content: center; }

  .cta-section { padding: 72px 24px; }
  .cta-section h2 br { display: none; }
  .cta-actions { flex-direction: column; }
  .btn-white, .btn-outline-white { width: 100%; justify-content: center; }

  footer { flex-direction: column; gap: 12px; text-align: center; padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-right { flex-direction: column; }
  .chat-card  { width: 100%; }
  .segments-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-item  { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.07) !important; }
  .feature-item:last-child { border-bottom: none !important; }
}
