:root {
  --bg: #fbfbfd; --surface: #ffffff; --surface-2: #f2f4f8; --text: #111318; --muted: #5d6474;
  --accent: #0f9d74; --accent-2: #0b7d5c; --accent-ink: #ffffff; --accent-soft: #e3f5ee;
  --border: #e2e5ec; --warn: #c2410c; --warn-soft: #fdeee4; --danger: #c0262d; --danger-soft: #fde7e8;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1013; --surface: #151a1f; --surface-2: #1b2128; --text: #e9edf2; --muted: #9aa4b2;
    --accent: #34d39e; --accent-2: #5fe0b4; --accent-ink: #06231a; --accent-soft: #10302a;
    --border: #262e37; --warn: #fb923c; --warn-soft: #3a2414; --danger: #f87171; --danger-soft: #3b1a1c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1013; --surface: #151a1f; --surface-2: #1b2128; --text: #e9edf2; --muted: #9aa4b2;
  --accent: #34d39e; --accent-2: #5fe0b4; --accent-ink: #06231a; --accent-soft: #10302a;
  --border: #262e37; --warn: #fb923c; --warn-soft: #3a2414; --danger: #f87171; --danger-soft: #3b1a1c;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 1100px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap > * { min-width: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 16px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--accent-ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .08s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:focus-visible, .tab:focus-visible, .link-btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--border); }

/* generic */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  padding: 4px 12px; border-radius: 999px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.15; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; max-width: 42em; }
section { padding: 64px 0; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill-trial { background: var(--warn-soft); color: var(--warn); }
.pill-soon { background: var(--danger-soft); color: var(--danger); }
.pill-ok { background: var(--accent-soft); color: var(--accent); }
.pill-muted { background: var(--surface-2); color: var(--muted); }

/* forms */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
input, select, textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
::placeholder { color: var(--muted); opacity: .6; }
textarea { resize: vertical; min-height: 140px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; }

footer.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: all .2s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
  .hide-sm, .country label, .nav label[for="country"] { display: none; }
  .nav { gap: 10px; }
  .logo { font-size: 17px; }
}
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  section { padding: 44px 0; }
}
