/* ============================================================
   Emphasis — design system
   Display: Bricolage Grotesque · Body: Figtree
   ============================================================ */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-var.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #eef3f0;
  --ink: #13221d;
  --ink-2: #33443e;
  --muted: #5a6d66;
  --line: #dce5e0;
  --accent: #0e8c6d;
  --accent-strong: #0a6b54;
  --accent-ink: #ffffff;
  --accent-soft: rgba(14, 140, 109, 0.1);
  --accent-soft-2: rgba(14, 140, 109, 0.16);
  --panel: #0d1f1a;
  --panel-ink: #eaf4f0;
  --panel-muted: #9db4ac;
  --panel-line: rgba(234, 244, 240, 0.14);
  --shadow: 0 1px 2px rgba(19, 34, 29, 0.05), 0 12px 32px -12px rgba(19, 34, 29, 0.14);
  --shadow-lg: 0 2px 6px rgba(19, 34, 29, 0.08), 0 32px 64px -24px rgba(19, 34, 29, 0.28);
  --radius: 18px;
  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.container {
  width: min(1120px, 100% - clamp(2.5rem, 8vw, 5rem));
  margin-inline: auto;
}

section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.section-head .lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 34rem;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.nav-pill {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-links a.nav-pill:hover {
  background: var(--accent-soft-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-solid {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-solid:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 1.05rem;
}

/* buttons on dark panels */
.on-panel .btn-solid {
  background: #2fbf97;
  color: #06231b;
}

.on-panel .btn-solid:hover {
  background: #46d3ab;
}

.on-panel .btn-ghost {
  border-color: var(--panel-line);
  color: var(--panel-ink);
}

.on-panel .btn-ghost:hover {
  border-color: #2fbf97;
  color: #2fbf97;
}

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(4.5rem, 10vw, 8rem) clamp(4rem, 8vw, 6rem);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

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

.hero .sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 36rem;
}

.hero-ctas {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.trust-row {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-row svg {
  color: var(--accent);
  flex: none;
}

/* ---------- cards ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
}

/* ---------- process steps ---------- */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem 1.75rem 1.75rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.step h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0 0.5rem;
}

.step p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- dark feature panel ---------- */
.panel {
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60rem 30rem at 85% -20%, rgba(47, 191, 151, 0.18), transparent 60%);
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel .eyebrow {
  color: #2fbf97;
}

.panel h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.panel p {
  color: var(--panel-muted);
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.stat .label {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.stats-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- phone / chat ---------- */
.phone {
  width: min(370px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-inline: auto;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  background: var(--panel);
  color: var(--panel-ink);
}

.phone-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2fbf97, #0e8c6d);
  color: #06231b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  flex: none;
}

.phone-header .who {
  line-height: 1.25;
}

.phone-header .who strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.phone-header .who small {
  color: #2fbf97;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.phone-header .who small::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2fbf97;
}

.chat {
  height: 430px;
  overflow: hidden;
  padding: 1.1rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, var(--line) 1px, transparent 1.5px),
    radial-gradient(1.5px 1.5px at 70% 65%, var(--line) 1px, transparent 1.5px),
    var(--surface-2);
  background-size: 90px 90px, 110px 110px, auto;
}

.chat-day {
  align-self: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.msg {
  max-width: 82%;
  padding: 0.6rem 0.85rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(19, 34, 29, 0.06);
}

.msg .time {
  display: block;
  font-size: 0.66rem;
  color: var(--muted);
  text-align: right;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.msg-in {
  align-self: flex-start;
  background: var(--surface);
  border-bottom-left-radius: 5px;
}

.msg-out {
  align-self: flex-end;
  background: var(--accent-soft-2);
  border-bottom-right-radius: 5px;
}

.msg-appear {
  animation: msg-pop 0.3s ease both;
}

@keyframes msg-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 0.75rem 0.9rem;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--muted);
  animation: typing-bounce 1s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-bounce {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .msg-appear,
  .typing i {
    animation: none;
  }
}

/* ---------- heartbeat divider ---------- */
.pulse-divider {
  padding-block: 0;
  overflow: hidden;
}

.pulse-divider svg {
  width: 100%;
  height: 56px;
  color: var(--accent);
  opacity: 0.55;
}

.pulse-divider path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}

.pulse-divider.in path {
  animation: pulse-draw 2.4s ease-out forwards;
}

@keyframes pulse-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-divider path {
    stroke-dashoffset: 0;
    animation: none;
  }
}

/* ---------- faq ---------- */
.faq {
  max-width: 46rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.35rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s ease;
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 1.35rem 1.2rem;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- quote ---------- */
.quote {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.quote blockquote::before {
  content: '“';
  color: var(--accent);
}

.quote blockquote::after {
  content: '”';
  color: var(--accent);
}

.quote figcaption {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.quote figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
}

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

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-d1 {
  transition-delay: 0.08s;
}

.reveal-d2 {
  transition-delay: 0.16s;
}

.reveal-d3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
