:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --ink: #12302b;
  --muted: #4f6863;
  --line: #d6e2df;
  --accent: #0f7a63;
  --accent-ink: #ffffff;
  --accent-soft: #dff1eb;
  --chat-bg: #e9efe9;
  --bubble-in: #ffffff;
  --bubble-out: #d7f4dc;
  --flag: #b4452f;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1716; --surface: #13211f; --ink: #e3efec; --muted: #9bb3ad; --line: #24413c;
    --accent: #4cc7a5; --accent-ink: #0d1716; --accent-soft: #173a32; --chat-bg: #0f1d1b;
    --bubble-in: #1b2c29; --bubble-out: #1d4a3b; --flag: #ef8a72;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1716; --surface: #13211f; --ink: #e3efec; --muted: #9bb3ad; --line: #24413c;
  --accent: #4cc7a5; --accent-ink: #0d1716; --accent-soft: #173a32; --chat-bg: #0f1d1b;
  --bubble-in: #1b2c29; --bubble-out: #1d4a3b; --flag: #ef8a72;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
}
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }

/* Header */
header.top { padding-block: 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 8px; background: #0f7a63; display: grid; place-items: center; flex: none; }
.mark svg { width: 16px; height: 16px; }
nav.links { display: flex; gap: 6px 20px; font-size: 14px; flex-wrap: wrap; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--accent); }

/* Hero */
.intro { padding-block: 56px 48px; }
.intro .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.intro .wrap > * { min-width: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; margin: 12px 0 16px; text-wrap: balance; letter-spacing: -0.01em; }
.lede { font-size: 18px; color: var(--muted); max-width: 54ch; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.facts li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); }

/* Phone mock */
.phone { background: var(--chat-bg); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-width: 380px; width: 100%; justify-self: end; }
.phone .who { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.phone .who b { color: var(--ink); font-weight: 600; }
.bubble { padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; max-width: 88%; }
.bubble.in { background: var(--bubble-in); border-top-left-radius: 4px; }
.bubble.out { background: var(--bubble-out); align-self: flex-end; border-top-right-radius: 4px; }
.bubble small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bubble-in); color: var(--accent); font-weight: 500; }
.alert { margin-top: 4px; border-left: 3px solid var(--flag); background: var(--surface); padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.alert b { color: var(--flag); }

/* Sections */
section.band { padding-block: 48px; border-top: 1px solid var(--line); }
section.band.alt { background: var(--surface); }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin: 0 0 8px; text-wrap: balance; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 62ch; }
h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; min-width: 0; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--accent); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); margin-bottom: 10px; }
.steps p, .grid p { margin: 0; color: var(--muted); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; }
section.band:not(.alt) .card { background: var(--surface); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.two > * { min-width: 0; }
.plain { padding-left: 20px; margin: 0; }
.plain li { margin-bottom: 6px; }

.about { max-width: 720px; }
.about p { margin: 0 0 12px; }

.contact-box { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.contact-box div { min-width: 0; }
.contact-box span { display: block; font-size: 13px; color: var(--muted); }
.contact-box b { font-weight: 600; overflow-wrap: anywhere; }

/* Policy pages */
.doc { padding-block: 48px 72px; }
.doc .wrap { max-width: 740px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 20px; margin: 36px 0 8px; scroll-margin-top: 24px; }
.doc ul { padding-left: 20px; margin: 8px 0; }
.doc li { margin-bottom: 4px; }
.note { padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); font-size: 15px; }

footer { padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .intro { padding-block: 36px 32px; }
  .intro .wrap, .two { grid-template-columns: 1fr; gap: 32px; }
  .phone { justify-self: start; }
  .steps, .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
