:root {
  --bg: #f6f3ee;
  --bg-2: #efe9df;
  --surface: #ffffff;
  --text: #1d2422;
  --muted: #5f6a66;
  --line: #e2ddd4;
  --brand: #2f7d6d;
  --brand-ink: #ffffff;
  --brand-soft: #e1efeb;
  --accent: #f2b84b;
  --danger: #c2412d;
  --ok: #2e9a5b;
  --shadow: 0 1px 2px rgb(20 30 25 / 6%), 0 12px 32px rgb(20 30 25 / 10%);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111514;
    --bg-2: #161c1a;
    --surface: #1a201e;
    --text: #e9eeec;
    --muted: #9aa5a1;
    --line: #2b3431;
    --brand: #5cbfa8;
    --brand-ink: #0d1412;
    --brand-soft: #1d3430;
    --danger: #ef7a66;
    --ok: #4cc27f;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111514; --bg-2: #161c1a; --surface: #1a201e; --text: #e9eeec; --muted: #9aa5a1; --line: #2b3431;
  --brand: #5cbfa8; --brand-ink: #0d1412; --brand-soft: #1d3430; --danger: #ef7a66; --ok: #4cc27f; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.02em; }
h1 em { color: var(--brand); }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.01em; margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px max(16px, calc((100% - 1120px) / 2)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 18px; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; }
.nav nav a:hover { color: var(--text); }
.nav nav a.pill { background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 999px; }

main > section, .hero { padding-left: max(16px, calc((100% - 1120px) / 2)); padding-right: max(16px, calc((100% - 1120px) / 2)); }
.section { padding-top: 88px; padding-bottom: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 16px var(--sans); text-decoration: none; cursor: pointer; transition: transform .06s, filter .15s, background .15s; }
.btn:hover { filter: brightness(0.97); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.input { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 14px; font: 16px var(--sans); outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 24px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 650; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.lede { font-size: 19px; color: var(--muted); max-width: 40em; margin-top: 18px; }
.lede.small { font-size: 17px; }
.lede strong { color: var(--text); }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 6px; }

.hero-art { display: flex; justify-content: center; }
.phone { width: min(320px, 100%); aspect-ratio: 9 / 17; border-radius: 40px; background: var(--surface); border: 10px solid #1d2422; box-shadow: var(--shadow), 0 30px 60px rgb(20 30 25 / 18%); overflow: hidden; display: flex; flex-direction: column; transform: rotate(2deg); }
.phone-map { position: relative; flex: 1.2; background: #e9e4da; overflow: hidden; }
.streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.streets path { stroke: #fff; stroke-width: 9; fill: none; }
.streets .river { stroke: #b9d6e3; stroke-width: 22; }
.pin { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--c); color: #fff; font: 700 15px var(--sans); display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 3px 10px rgb(0 0 0 / 25%); }
.pin.pulse::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--c); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.place { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; border: 2px dashed #2f7d6d; background: rgb(47 125 109 / 10%); }
.place span { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); background: #fff; color: #1d2422; font: 600 11px var(--sans); padding: 1px 7px; border-radius: 6px; border: 1px solid #e2ddd4; }
.phone-sheet { flex: 1; background: var(--surface); margin-top: -16px; border-radius: 18px 18px 0 0; position: relative; padding: 14px 12px; display: grid; align-content: start; gap: 6px; }
.phone-sheet .row { display: flex; align-items: center; gap: 10px; padding: 4px; }
.phone-sheet b { width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.phone-sheet span { display: grid; flex: 1; min-width: 0; }
.phone-sheet strong { font-size: 14px; }
.phone-sheet small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-sheet i { font-style: normal; font-size: 12px; font-weight: 650; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }

/* steps & features */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.steps .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #1d2422; font-weight: 800; margin-bottom: 14px; }
.steps p, .grid p { color: var(--muted); font-size: 16px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.grid article { padding: 22px; border-radius: 18px; background: var(--bg-2); }

/* privacy */
.privacy { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.facts li { padding-left: 28px; position: relative; color: var(--muted); }
.facts li::before { content: "🔒"; position: absolute; left: 0; top: 0; font-size: 15px; }
.facts strong { color: var(--text); }
.flow { display: grid; gap: 10px; justify-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 20px; box-shadow: var(--shadow); }
.flow .node { display: grid; justify-items: center; gap: 2px; width: 100%; max-width: 240px; padding: 14px; border-radius: 16px; background: var(--bg-2); text-align: center; }
.flow .node span { font-size: 26px; }
.flow .node small { color: var(--muted); }
.flow .server { background: var(--brand-soft); }
.flow .arrow { font-size: 13px; font-weight: 650; color: var(--brand); }
.flow .arrow::before { content: "↓ "; }

/* hosts */
.hosts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 28px; }
.host { text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 14px; cursor: pointer; font: inherit; color: inherit; display: grid; gap: 4px; transition: border-color .15s, transform .1s; }
.host:hover { transform: translateY(-2px); }
.host[aria-selected="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.host .logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; margin-bottom: 6px; }
.host strong { font-size: 16px; }
.host small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.host .badge { justify-self: start; font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 1px 6px; margin-top: 4px; }
.host-detail { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.host-detail h3 { font-size: 24px; font-family: var(--serif); font-weight: 600; }
.host-detail .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.host-detail .meta span { font-size: 13px; background: var(--bg-2); border-radius: 8px; padding: 3px 9px; color: var(--muted); }
.host-detail ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--muted); }
.host-detail ol strong { color: var(--text); }
.host-detail .tradeoff { font-size: 14px; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 12px; margin-top: 16px; }
.code { position: relative; background: #151a19; color: #e3ece9; border-radius: 14px; padding: 16px; font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; margin: 0 0 12px; max-height: 340px; overflow: auto; }
.code-wrap { position: relative; }
.code-wrap .code { padding-right: 84px; }
.code-wrap .copy { position: absolute; top: 8px; right: 8px; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.subtabs button { border: 1px solid var(--line); background: var(--bg-2); color: var(--text); border-radius: 999px; padding: 5px 12px; font: 600 13px var(--sans); cursor: pointer; }
.subtabs button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.notice { background: #fff4dc; color: #6b4a00; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice { background: #3a2f12; color: #f2d48a; } }

.check { margin-top: 22px; }
.check-row { display: flex; gap: 10px; }
.check-result { margin: 12px 0 0; min-height: 1.5em; font-weight: 600; }
.check-result.ok { color: var(--ok); }
.check-result.err { color: var(--danger); }

.get-app .btn { min-width: 180px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 18px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 48px max(16px, calc((100% - 1120px) / 2)) 40px; margin-top: 64px; border-top: 1px solid var(--line); font-size: 15px; }
.footer span { display: flex; align-items: center; gap: 8px; }

@media (max-width: 980px) {
  .hosts { grid-template-columns: repeat(3, 1fr); }
  .host-detail { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero, .privacy { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .phone { transform: none; width: min(280px, 100%); }
  .steps, .grid { grid-template-columns: 1fr; }
  .nav nav a:not(.pill) { display: none; }
  .section { padding-top: 64px; }
}
@media (max-width: 520px) {
  .hosts { grid-template-columns: repeat(2, 1fr); }
  .host-detail { padding: 20px; }
  .check-row { flex-direction: column; }
}
