:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --accent: #2563eb;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-soft: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px -20px rgba(15, 23, 42, 0.25);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.25);
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.3; }
p { color: var(--ink-muted); }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 17px; }
.kicker {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary); margin-bottom: 12px;
}

.bg-soft { background: var(--bg-soft); }
.bg-dark { background: var(--bg-dark); color: #fff; }
.bg-dark p { color: #94a3b8; }
.bg-dark h2, .bg-dark h3 { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -6px rgba(13,148,136,0.5); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark svg { width: 19px; height: 19px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-switch {
  font-size: 14px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-switch:hover { color: var(--primary-dark); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav-switch { display: none; }
  .nav-actions .btn-primary { display: none; }
}

/* Hero */
.hero { padding: 76px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 18px; max-width: 540px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-visual {
  background: linear-gradient(160deg, #0f172a, #134e4a);
  border-radius: 20px; padding: 28px; color: #fff; box-shadow: var(--shadow-lg);
}
.flow-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 16px; margin-bottom: 10px; }
.flow-card:last-child { margin-bottom: 0; }
.flow-card .flow-num { font-size: 11px; font-weight: 700; color: #5eead4; letter-spacing: .06em; text-transform: uppercase; }
.flow-card .flow-title { font-size: 15px; font-weight: 600; margin-top: 4px; color: #fff; }
.flow-arrow { display: flex; justify-content: center; padding: 2px 0; }
.flow-arrow svg { width: 14px; height: 14px; color: #5eead4; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 36px; border-top: 1px solid var(--border); }
.stat b { font-size: 30px; font-weight: 800; color: var(--ink); display: block; }
.stat span { font-size: 13.5px; color: var(--ink-soft); }
.stat .note { display: block; font-size: 11.5px; color: #94a3b8; margin-top: 2px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { white-space: normal; text-align: center; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { white-space: normal; text-align: center; }
}

/* Cards grid */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; color: var(--primary-dark); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; }

.pain-card { border-left: 3px solid #fb7185; }
.pain-card .card-icon { background: #ffe4e6; }
.pain-card .card-icon svg { color: #e11d48; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Flow steps (horizontal) */
.flow-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.flow-step { text-align: center; }
.flow-step .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.flow-step h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.flow-step p { font-size: 12.5px; color: var(--ink-soft); }
.flow-connector { display: flex; align-items: center; justify-content: center; padding-top: 19px; }
.flow-connector svg { width: 16px; height: 16px; color: var(--border); }

@media (max-width: 980px) {
  .flow-steps { grid-template-columns: 1fr; gap: 0; }
  .flow-step { display: flex; align-items: flex-start; gap: 16px; text-align: left; padding: 14px 0; border-bottom: 1px dashed var(--border); }
  .flow-step .num { margin: 0; flex-shrink: 0; }
  .flow-connector { display: none; }
}

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
table.compare th, table.compare td { padding: 16px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
table.compare th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
table.compare td.feature { color: var(--ink-muted); font-weight: 500; }
table.compare th.us { color: var(--primary-dark); background: var(--primary-light); }
table.compare td.us { background: #f0fdfa; font-weight: 700; }
.tick { color: var(--primary); font-weight: 800; }
.cross { color: #cbd5e1; font-weight: 800; }
.tick-x { color: #94a3b8; }

/* Roles */
.role-card { text-align: left; }
.role-tag { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; display:block; }

/* Economics */
.econ-box {
  background: linear-gradient(160deg, #0f172a, #134e4a); color: #fff; border-radius: 22px;
  padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.econ-steps { display: flex; flex-direction: column; gap: 14px; }
.econ-row { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 15px; }
.econ-row span:first-child { color: #cbd5e1; }
.econ-row b { font-size: 18px; color: #fff; }
.econ-row.total b { color: #5eead4; font-size: 24px; }
.econ-note { font-size: 12.5px; color: #94a3b8; margin-top: 18px; }
@media (max-width: 900px) { .econ-box { grid-template-columns: 1fr; padding: 32px; } }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg); position: relative; }
.price-badge {
  position: absolute; top: -13px; left: 24px; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.price-card .price { font-size: 28px; font-weight: 800; margin: 14px 0 4px; color: var(--ink); }
.price-card .price small { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.price-card .desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.price-card ul { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 24px; flex-grow: 1; }
.price-card li { font-size: 14px; color: var(--ink-muted); display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* Timeline */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.tl-item:last-child { border-bottom: none; }
.tl-period { font-weight: 700; color: var(--primary-dark); font-size: 14px; }
.tl-item h4 { font-size: 16px; margin-bottom: 4px; }
.tl-item p { font-size: 14px; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; gap: 6px; } }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.faq-q svg { width: 18px; height: 18px; color: var(--ink-soft); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding-bottom: 20px; font-size: 15px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--accent));
  border-radius: 24px; padding: 56px; color: #fff; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 28px; font-size: 16.5px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Form */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 9px;
  font-family: inherit; font-size: 14.5px; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,148,136,0.12); }
.field { margin-bottom: 14px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }
.success-msg { display: none; text-align: center; padding: 24px 0; }
.success-msg.show { display: block; }
.success-msg .check { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.success-msg .check svg { width: 26px; height: 26px; color: var(--primary-dark); }

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Footer */
footer.site { background: var(--bg-dark); color: #94a3b8; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { max-width: 320px; font-size: 14px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-col a, .footer-col li { display: block; font-size: 14px; color: #94a3b8; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
  .econ-box, .cta-banner { padding: 32px; }
}

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge {
  font-size: 12.5px; font-weight: 600; color: var(--ink-muted); background: var(--bg-soft);
  border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px;
}

.mobile-menu {
  display: none; position: fixed; inset: 0; background: #fff; z-index: 60;
  padding: 24px; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-menu a { font-size: 20px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
