/* ============ FLS design tokens ============ */
:root {
  --ink: #0c1f2b;
  --ink-soft: #4a5b66;
  --bg: #f6f8f4;
  --card: #ffffff;
  --line: #e2e8e3;
  --brand: #0f7a6a;
  --brand-deep: #0a5c50;
  --mint: #d7f5e6;
  --lime: #d4f26b;
  --coral: #ff7a59;
  --error: #c0392b;
  --radius-lg: 24px;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(12, 31, 43, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,122,89,0.2); }

/* ============ NAV ============ */
.nav-wrap { position: sticky; top: 0; z-index: 20; background: rgba(246,248,244,0.8); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #22a88c); color: #fff; font-weight: 800;
}
.logo-sub { font-size: 0.7rem; font-weight: 600; color: var(--ink-soft); margin-left: 4px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; letter-spacing: 0; }
.logo.small { font-size: 1.1rem; }
.logo.small .logo-mark { width: 28px; height: 28px; font-size: 0.9rem; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: var(--ink); }
.pill-link { padding: 10px 18px; border-radius: 99px; background: var(--ink); color: #fff !important; }
.pill-link:hover { background: var(--brand-deep); text-decoration: none; }
@media (max-width: 760px) { .nav-links a:not(.pill-link) { display: none; } .logo-sub { display: none; } }

/* ============ HERO ============ */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
  padding-top: 40px; padding-bottom: 60px;
}
@media (min-width: 960px) { .hero { grid-template-columns: 1.02fr 1fr; padding-top: 64px; } }

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -0.035em;
  margin: 18px 0 18px; font-weight: 800;
}
.hl { background: linear-gradient(transparent 60%, var(--lime) 60%); padding: 0 4px; }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 36ch; margin: 0 0 28px; }

/* Quick form */
.quick-form {
  background: var(--card); border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 560px;
}
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qf-wide { grid-column: 1 / -1; }
.qf-field { display: flex; flex-direction: column; gap: 6px; }
.qf-field label { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); }
.qf-field input {
  font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fbfcfb; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.qf-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,122,106,0.15); background: #fff; }
.qf-field.invalid input { border-color: var(--error); }
.qf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-soft); margin: 14px 0 0; cursor: pointer; }
.qf-consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex-shrink: 0; }
.qf-consent.invalid span { color: var(--error); }

.cta {
  margin-top: 16px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 22px; font: inherit; font-size: 1.05rem; font-weight: 800; color: #fff; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--ink); box-shadow: 0 10px 24px -10px rgba(12,31,43,0.6);
  transition: transform .15s ease, background .2s;
}
.cta:hover { background: var(--brand-deep); transform: translateY(-1px); text-decoration: none; }
.cta:disabled { opacity: .6; cursor: wait; transform: none; }
.cta.light { background: #fff; color: var(--ink); width: auto; display: inline-flex; padding: 16px 28px; }
.cta.light:hover { background: var(--lime); }
.cta:focus-visible, .pill-link:focus-visible, button:focus-visible { outline: 3px solid rgba(15,122,106,0.4); outline-offset: 3px; }

.qf-error { color: var(--error); font-weight: 600; font-size: 0.9rem; margin: 10px 0 0; min-height: 0; }
.qf-error:empty { display: none; }
.qf-hint { font-size: 0.88rem; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }

.quick-success {
  max-width: 560px; background: var(--card); border-radius: var(--radius-lg); padding: 32px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.check { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--mint); color: var(--brand); display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; }
.quick-success h2 { margin: 0 0 6px; }
.quick-success p { color: var(--ink-soft); margin: 0; }

.proof { display: flex; align-items: center; gap: 14px; margin-top: 26px; color: var(--ink-soft); }
.proof p { margin: 0; font-size: 0.95rem; }
.avatars { display: flex; }
.avatars span {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--bg); margin-left: -10px;
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; color: var(--ink);
  background: var(--lime);
}
.avatars span:nth-child(2) { background: var(--mint); }
.avatars span:nth-child(3) { background: #ffd6c9; }
.avatars span:nth-child(4) { background: var(--ink); color: #fff; }
.avatars span:first-child { margin-left: 0; }

/* Hero art (floating UI) */
.hero-art { position: relative; min-height: 460px; }
@media (max-width: 959px) { .hero-art { min-height: 380px; } }
.blob {
  position: absolute; inset: 6% 4% 4% 6%; border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
  background: linear-gradient(160deg, var(--mint), var(--lime) 120%); opacity: .9;
  animation: morph 14s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; }
  50% { border-radius: 58% 42% 56% 44% / 40% 58% 42% 60%; }
}
.ring { position: absolute; left: 14%; top: 18%; width: 72%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(12,31,43,0.2); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb { position: absolute; right: 12%; bottom: 14%; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 10px rgba(255,122,89,0.2); }

.face {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 150px; height: 150px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-size: 4.4rem; box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,-50%) translateY(0); } 50% { transform: translate(-50%,-50%) translateY(-10px); } }

.float-card {
  position: absolute; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.fc-label { display: block; font-size: 0.75rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.fc-big { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); line-height: 1.1; }
.fc-big small { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.fc-tag { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }

.card-offer { top: 4%; right: 2%; width: 220px; animation-delay: 0s; }
.card-chip { display: flex; align-items: center; gap: 10px; width: max-content; }
.card-chip strong { display: block; font-size: .92rem; }
.card-chip small { color: var(--ink-soft); font-size: .76rem; }
.chip-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lime); font-size: 1rem; }
.chip-icon.ok { background: var(--mint); color: var(--brand); font-weight: 800; }
.chip-a { left: -2%; top: 46%; animation-delay: -2s; }
.chip-b { right: -2%; bottom: 14%; animation-delay: -4s; }
.card-bars { left: 6%; bottom: 2%; width: 210px; animation-delay: -1s; }
.bar { height: 8px; background: #eef2ef; border-radius: 99px; margin: 8px 0 0; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #3fc1a4); border-radius: 99px; }
.bar i.b2 { background: linear-gradient(90deg, var(--coral), #ffb199); }

/* ============ STRIP ============ */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.strip-label { font-weight: 700; color: var(--ink-soft); font-size: .92rem; }
.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.logos span { padding: 8px 16px; border-radius: 99px; background: var(--bg); font-weight: 700; font-size: .88rem; color: var(--ink-soft); border: 1px solid var(--line); }

/* ============ SECTIONS ============ */
.section { padding-block: 84px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 0; }

.steps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.num { font-size: 2.6rem; font-weight: 800; color: var(--lime); -webkit-text-stroke: 1.5px var(--brand); letter-spacing: -0.02em; }
.step-card h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.step-card p { color: var(--ink-soft); margin: 0; }

.offers { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .offers { grid-template-columns: 1fr; } }
.offer {
  position: relative; display: block; color: var(--ink); padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fff, #f0faf5); border: 1px solid var(--line); transition: transform .2s, border-color .2s;
}
.offer:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--brand); }
.offer-icon { font-size: 2rem; display: inline-block; }
.offer h3 { margin: 12px 0 4px; font-size: 1.3rem; }
.offer p { margin: 0; color: var(--ink-soft); }
.arrow { position: absolute; right: 26px; top: 26px; font-size: 1.4rem; color: var(--brand); transition: transform .2s; }
.offer:hover .arrow { transform: translateX(4px); }

/* ============ TRUST BAND ============ */
.band { background: var(--ink); color: #fff; padding-block: 56px; margin-top: 30px; }
.band-inner { display: grid; gap: 28px; grid-template-columns: 1fr; text-align: left; }
@media (min-width: 760px) { .band-inner { grid-template-columns: repeat(3, 1fr); } }
.big { display: block; font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--lime); line-height: 1; }
.big span { font-size: 1.2rem; color: #9fb6b1; }
.band p { margin: 8px 0 0; color: #b8c9c5; }

/* ============ FINAL ============ */
.final { text-align: center; padding-block: 90px; }
.final h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.03em; margin: 0; }
.final p { color: var(--ink-soft); font-size: 1.1rem; margin: 10px 0 26px; }
.final .cta.light { background: var(--ink); color: #fff; }
.final .cta.light:hover { background: var(--brand-deep); }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); background: #fff; padding-block: 36px; color: var(--ink-soft); font-size: .88rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot-inner p { margin: 10px 0 0; max-width: 60ch; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer nav a { color: var(--ink); font-weight: 600; }

/* ============ APPLY PAGE (full form) ============ */
.back-link { margin-left: auto; margin-right: 16px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; height: 64px; }
.topbar .brand { font-weight: 800; color: var(--brand); font-size: 1.2rem; }
.badge { font-size: .85rem; color: var(--ink-soft); }
body:not(.landing) { min-height: 100vh; display: flex; flex-direction: column; }
.layout { display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: 32px 48px; flex: 1; }
@media (min-width: 880px) { .layout { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.intro h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 12px; }
.lead { color: var(--ink-soft); font-size: 1.05rem; }
.benefits { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-weight: 600; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow);
}
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 25%; background: linear-gradient(90deg, var(--brand), #3fc1a4); transition: width .3s ease; }
.step-label { color: var(--ink-soft); font-size: .9rem; margin: 10px 0 4px; font-weight: 700; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; padding: 0; }
.step { display: none; }
.step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.options { display: grid; gap: 10px; }
.options.compact { grid-template-columns: 1fr 1fr; }
.sub-q { font-weight: 700; margin: 20px 0 10px; }
.option {
  position: relative; display: flex; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s;
}
.option:hover { border-color: var(--brand); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) { border-color: var(--brand); background: var(--mint); font-weight: 700; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; }
.field input {
  width: 100%; font: inherit; padding: 13px 14px; font-size: 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfb;
}
.field input:focus { outline: none; border-color: var(--brand); background: #fff; }
.field.invalid input { border-color: var(--error); }
.error { color: var(--error); font-size: .88rem; margin: 6px 0 0; }
.error:empty { display: none; }
.form-error { color: var(--error); font-weight: 700; margin: 8px 0 0; }
.summary { color: var(--ink-soft); background: var(--bg); padding: 12px 14px; border-radius: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); cursor: pointer; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--brand); }
.actions { display: flex; gap: 12px; margin-top: 20px; }
.btn { flex: 1; padding: 15px 18px; font: inherit; font-size: 1.02rem; font-weight: 800; border-radius: 14px; border: 1.5px solid transparent; cursor: pointer; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); }
.btn.primary:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); flex: 0 0 110px; }
.thanks { text-align: center; padding: 30px 10px; }
.thanks h2 { margin-top: 0; color: var(--brand); }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 480px) { .trust, .options.compact { grid-template-columns: 1fr; } .badge { display: none; } .card { padding: 18px; } }

/* ============ MOBILE ============ */
@media (max-width: 520px) {
  .quick-grid { grid-template-columns: 1fr; }
  .quick-form { padding: 18px; }
  .section { padding-block: 60px; }
  .card-offer { right: 0; width: 190px; }
  .chip-a { left: 0; }
  .card-bars { width: 180px; left: 0; }
  .float-card { transform: scale(.92); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ EXPANDED LANDING SECTIONS ============ */
.section-sub { color: var(--ink-soft); font-size: 1.05rem; margin: 14px 0 0; max-width: 60ch; }

.why-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.why-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--mint); font-size: 1.5rem; }
.why-card h3 { font-size: 1.2rem; margin: 16px 0 8px; }
.why-card p { margin: 0; color: var(--ink-soft); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .97rem; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); background: #fbfcfb; }
.compare-table tbody th { font-weight: 700; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .hl-col { background: var(--mint); color: var(--brand-deep); font-weight: 700; }
.compare-table thead .hl-col { color: var(--brand-deep); background: var(--lime); }

.quotes { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.quote p { margin: 0; font-size: 1.05rem; font-weight: 500; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote footer div { display: flex; flex-direction: column; }
.quote small { color: var(--ink-soft); }
.q-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--lime); }
.q-avatar.b { background: var(--mint); }
.q-avatar.c { background: #ffd6c9; }

.faq { max-width: 820px; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--ink-soft); }
.faq-item a { font-weight: 700; }

/* ============ LEGAL PAGES ============ */
.legal { max-width: 820px; padding-block: 48px 72px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 8px; }
.legal .updated { color: var(--ink-soft); font-size: .92rem; margin: 0 0 32px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .notice { background: #fff7e6; border: 1px solid #f3d9a4; color: #6b4a00; padding: 14px 18px; border-radius: 14px; font-size: .93rem; margin-bottom: 28px; }
.legal .toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 28px; }
.legal .toc strong { display: block; margin-bottom: 6px; }
.legal .toc ol { margin: 0; padding-left: 20px; }
.legal .toc a { font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: #fbfcfb; font-weight: 700; }
.legal-nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.legal-nav a { font-weight: 700; }

/* ============ FAQ LAYOUT (heading beside questions on wide screens) ============ */
.faq-section { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 960px) {
  .faq-section { grid-template-columns: 0.9fr 1.3fr; gap: 64px; align-items: start; }
  .faq-section .section-head { position: sticky; top: 110px; margin-bottom: 0; }
}
.faq-section .faq { max-width: none; width: 100%; }
.faq-item summary { font-size: 1.02rem; }
.faq-item[open] { border-color: var(--brand); }

/* ============ NAV CTA BUTTON ============ */
.pill-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px;
  background: linear-gradient(135deg, var(--brand), #22a88c); color: #fff !important;
  border-radius: 99px; box-shadow: 0 8px 20px -10px rgba(15,122,106,0.8);
  transition: transform .15s, box-shadow .2s;
}
.pill-link span { transition: transform .2s; }
.pill-link:hover { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); transform: translateY(-1px); text-decoration: none; }
.pill-link:hover span { transform: translateX(3px); }

/* ============ FAQ: help card + spacing fixes ============ */
.faq-section .section-head .section-sub { margin-bottom: 0; }
.help-card {
  margin-top: 28px; padding: 26px; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--ink), #173a48); color: #fff;
  position: relative; overflow: hidden;
}
.help-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px;
  border-radius: 50%; background: var(--lime); opacity: .25;
}
.help-avatars { display: flex; margin-bottom: 14px; }
.help-avatars span {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem;
  border: 3px solid #173a48; margin-left: -10px; background: var(--lime);
}
.help-avatars span:first-child { margin-left: 0; }
.help-avatars span:nth-child(2) { background: var(--mint); }
.help-avatars span:nth-child(3) { background: #ffd6c9; }
.help-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.help-card p { margin: 0 0 18px; color: #b8c9c5; font-size: .95rem; }
.help-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 99px;
  background: var(--lime); color: var(--ink); font-weight: 800; text-decoration: none; position: relative; z-index: 1;
}
.help-btn:hover { text-decoration: none; background: #fff; }

/* Accordion item polish: tidy spacing between question and answer */
.faq-item summary { padding: 20px 0; }
.faq-item[open] summary { padding-bottom: 6px; }
.faq-item p { margin-top: 0; padding-bottom: 20px; }
.faq-item summary::after { font-weight: 400; line-height: 1; }
.faq-item[open] { box-shadow: 0 14px 30px -20px rgba(15,122,106,.5); }

/* ============ RESPONSIVE: comparison table becomes cards on phones ============ */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; background: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table tbody tr {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 14px 18px; margin-bottom: 12px;
  }
  .compare-table tbody th { padding: 0 0 6px; border: 0; font-size: 1.02rem; }
  .compare-table tbody td { border: 0; padding: 8px 0 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .compare-table tbody td::before { content: attr(data-label); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
  .compare-table tbody td.hl-col { background: none; color: var(--brand-deep); }
  .compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border: 0; }
}

/* Tap targets and button sizing on phones */
@media (max-width: 640px) {
  .cta, .btn, .help-btn { min-height: 52px; }
  .quick-form .cta { font-size: 1rem; }
  .btn.ghost { flex-basis: 96px; }
  .nav { height: 64px; }
  .pill-link { padding: 9px 14px; font-size: .88rem; }
  .hero { padding-top: 24px; padding-bottom: 36px; }
  .hero h1 { margin-top: 12px; }
  .proof { margin-top: 20px; }
  .strip-inner { flex-direction: column; align-items: flex-start; }
  .foot-inner { flex-direction: column; }
  .legal { padding-block: 32px 56px; }
  .legal table { display: block; overflow-x: auto; white-space: normal; }
  .section-head h2 { font-size: 1.85rem; }
}

/* ============ MICRO-INTERACTIONS ============ */
/* Reveal on scroll (only applied when JS is running) */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s cubic-bezier(.2,.7,.2,1), transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease, background-color .35s ease; transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* Nav gains depth once the page scrolls */
.nav-wrap { transition: box-shadow .25s ease, border-color .25s ease; }
.nav-wrap.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(12,31,43,.35); background: rgba(246,248,244,0.95); }

/* Press feedback on every button */
.cta, .btn, .pill-link, .help-btn { transition: transform .12s ease, background .2s ease, box-shadow .2s ease; }
.cta:active, .btn:active, .pill-link:active, .help-btn:active { transform: scale(.97); }

/* Form fields: label responds to focus */
.qf-field label, .field label { transition: color .15s ease; }
.qf-field:focus-within label, .field:focus-within label { color: var(--brand); }

/* Options: visible check mark on selection */
.option { padding-right: 52px; }
.option::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; border: 2px solid var(--line); background: #fff; transition: all .2s ease;
}
.option:has(input:checked)::after {
  border-color: var(--brand); background: var(--brand);
  box-shadow: inset 0 0 0 4px var(--brand), inset 0 0 0 9px #fff;
}

/* Invalid form: one gentle shake */
.shake { animation: shake .42s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* Success check pops in */
.check, .quick-success .check { animation: pop .5s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.quick-success, .thanks { animation: fade .4s ease both; }

/* Mobile sticky CTA: appears when the hero form has scrolled away */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none;
  align-items: center; justify-content: center; gap: 8px; padding: 15px; border-radius: 16px;
  background: var(--ink); color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 16px 36px -12px rgba(12,31,43,.6);
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.sticky-cta:hover { text-decoration: none; }
.sticky-cta.show { transform: translateY(0); }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: 0 0; transition: none; }
  .sticky-cta { transition: none; }
  .shake, .check, .quick-success, .thanks { animation: none; }
}

/* Card hover: lift + border + shadow, consistent across all cards */
.why-card, .quote, .step-card, .offer, .faq-item {
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.why-card:hover, .quote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}
.step-card:hover, .offer:hover {
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}
.faq-item:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }

/* ============ AUTH PAGES (sign in / sign up) ============ */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-wrap { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.auth-page .logo { align-self: center; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); animation: fade .4s ease both; }
.auth-card h1 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth-sub { color: var(--ink-soft); margin: 0 0 22px; font-size: .95rem; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; color: var(--ink-soft); transition: color .15s; }
.auth-field:focus-within label { color: var(--brand); }
.auth-field input {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fbfcfb; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-field input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(15,122,106,.15); }
.auth-field.invalid input { border-color: var(--error); }
.auth-hint { margin: 6px 0 0; font-size: .8rem; color: var(--ink-soft); }
.auth-error { margin: 6px 0 0; font-size: .85rem; color: var(--error); font-weight: 600; }
.auth-error:empty { display: none; }
.auth-form-error { color: var(--error); font-weight: 700; font-size: .92rem; margin: 0 0 12px; }
.auth-form-error:empty { display: none; }
.auth-btn {
  width: 100%; min-height: 52px; font: inherit; font-weight: 800; font-size: 1rem; color: #fff; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--ink); transition: background .2s, transform .12s;
}
.auth-btn:hover { background: var(--brand-deep); }
.auth-btn:active { transform: scale(.98); }
.auth-btn:disabled { opacity: .6; cursor: wait; }
.auth-switch { text-align: center; margin: 20px 0 0; color: var(--ink-soft); font-size: .92rem; }
.auth-switch a { font-weight: 700; }
.auth-foot { text-align: center; font-size: .9rem; margin: 0; }
.auth-foot a { color: var(--ink-soft); font-weight: 600; }
form.shake { animation: shake .42s ease; }

/* ============ DASHBOARD ============ */
.dash-page { background: #f3f6f4; min-height: 100vh; }
.dash-top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.dash-top-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dash-top .logo-sub { font-size: .72rem; margin-left: 2px; }
.dash-user { display: flex; align-items: center; gap: 12px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); font-weight: 800; font-size: .85rem; }
.role-badge { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--mint); color: var(--brand-deep); }
.dash-logout { font: inherit; font-weight: 700; font-size: .88rem; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.dash-logout:hover { border-color: var(--ink); }

.dash-main { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; display: grid; gap: 22px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dash-head h1 { margin: 0; font-size: 1.9rem; letter-spacing: -0.02em; }
.dash-sub { margin: 4px 0 0; color: var(--ink-soft); }
.export-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 99px; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), #22a88c); color: #fff; text-decoration: none; box-shadow: 0 10px 22px -12px rgba(15,122,106,.9);
  transition: transform .12s, box-shadow .2s;
}
.export-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(15,122,106,.9); }
.export-btn:active { transform: scale(.97); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.stat-label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }

.dash-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search input {
  width: 100%; font: inherit; font-size: .95rem; padding: 11px 14px 11px 40px; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfcfb; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,122,106,.14); background: #fff; }
.seg { display: inline-flex; padding: 4px; background: var(--bg); border-radius: 99px; border: 1px solid var(--line); }
.seg-btn { font: inherit; font-size: .88rem; font-weight: 700; padding: 8px 16px; border: 0; background: transparent; border-radius: 99px; color: var(--ink-soft); cursor: pointer; transition: background .2s, color .2s; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.active { background: var(--ink); color: #fff; }

.table-scroll { overflow-x: auto; }
.leads-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 880px; }
.leads-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); padding: 12px 16px; background: #fbfcfb; border-bottom: 1px solid var(--line); }
.leads-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.leads-table tbody tr { transition: background .15s; }
.leads-table tbody tr:hover { background: #f5faf7; }
.leads-table tbody tr:last-child td { border-bottom: 0; }
.leads-table .strong { font-weight: 700; }
.leads-table .muted { color: var(--ink-soft); }
.form-pill { font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.form-pill.quick { background: var(--lime); color: var(--ink); }
.form-pill.full { background: var(--mint); color: var(--brand-deep); }
.dash-empty { text-align: center; color: var(--ink-soft); padding: 40px 16px; margin: 0; }
.dash-empty[hidden] { display: none; }
#loadError { color: var(--error); }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.pager-btns { display: flex; gap: 8px; }
.pager-btn { font: inherit; font-weight: 700; font-size: .88rem; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s, transform .12s; }
.pager-btn:hover:not(:disabled) { border-color: var(--ink); }
.pager-btn:active:not(:disabled) { transform: scale(.96); }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 640px) {
  .dash-user .user-chip span:not(.user-avatar):not(.role-badge) { display: none; }
  .dash-logout { padding: 8px 12px; }
  .dash-head { align-items: stretch; }
  .export-btn { justify-content: center; }
  .seg-btn { padding: 7px 12px; }
}

/* ============ TEAM (superadmin) ============ */
.team-card[hidden] { display: none; }
.card-title { font-size: 1.2rem; margin: 0; letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.team-form {
  display: grid; grid-template-columns: 1fr; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); align-items: end;
}
@media (min-width: 860px) { .team-form { grid-template-columns: 1fr 1fr 1fr auto; } }
.tf-field { display: flex; flex-direction: column; gap: 6px; }
.tf-field label { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.tf-field input {
  font: inherit; font-size: .95rem; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfcfb; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.tf-field input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(15,122,106,.14); }
.tf-field small { font-size: .75rem; color: var(--ink-soft); }
.tf-btn {
  font: inherit; font-weight: 800; font-size: .95rem; min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--ink); color: #fff; transition: background .2s, transform .12s;
}
.tf-btn:hover { background: var(--brand-deep); }
.tf-btn:active { transform: scale(.97); }
.tf-btn:disabled { opacity: .6; cursor: wait; }
.tf-error { grid-column: 1 / -1; margin: 0; color: var(--error); font-weight: 600; font-size: .9rem; }
.tf-error:empty { display: none; }
.role-badge.super { background: var(--ink); color: #fff; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .88rem; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status-dot.on::before { background: var(--brand); box-shadow: 0 0 0 3px rgba(15,122,106,.15); }
.status-dot.off::before { background: #b8c2c8; }
.status-dot.off { color: var(--ink-soft); }
.row-btn {
  font: inherit; font-size: .82rem; font-weight: 700; padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s, transform .12s;
}
.row-btn:hover { border-color: var(--ink); }
.row-btn:active { transform: scale(.96); }
