:root {
  --bg: #f7f6f2;
  --card: #ffffff;
  --ink: #141413;
  --muted: #5f5e59;
  --line: #e4e2db;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --button: #141413;
  --button-ink: #ffffff;
  --bubble: #e9e9eb;
  --bubble-ink: #111111;
  --me: #2f6bff;
  --me-ink: #ffffff;
  --phone: #111111;
  --screen: #ffffff;
  --ok: #128a4a;
  --bad: #c2341b;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --card: #1b1b19;
    --ink: #f3f2ee;
    --muted: #a7a59e;
    --line: #2e2d2a;
    --button: #f3f2ee;
    --button-ink: #111110;
    --bubble: #2c2c2e;
    --bubble-ink: #f3f2ee;
    --phone: #000000;
    --screen: #000000;
    --ok: #4ccf86;
    --bad: #ff7a5c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 17px; }
.pill { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; padding: 28px 0 56px; }
h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.02; letter-spacing: -0.022em; margin: 8px 0 18px; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 10px; max-width: 34em; }
.byline { font-size: 15px; color: var(--muted); margin: 0 0 28px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 18px 40px -24px rgba(0,0,0,.18); }
.step { display: flex; gap: 14px; margin-bottom: 22px; }
.step:last-of-type { margin-bottom: 8px; }
.num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; display: grid; place-items: center; margin-top: 2px; }
.step.done .num { background: var(--ok); color: #fff; }
.step-body { flex: 1; min-width: 0; }
.step h2 { font-size: 18px; margin: 2px 0 6px; letter-spacing: -0.01em; }
.hint { font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.ghost { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; text-decoration: none; margin-bottom: 12px; background: transparent; }
.ghost:hover { border-color: var(--ink); }

label.field { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
input[type=text], input[type=tel], input[type=url], select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; outline: none;
}
input:focus, select:focus { border-color: var(--ink); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; margin-bottom: 14px; }
.status { font-size: 15px; margin: 10px 0 0; min-height: 1.5em; }
.status.ok { color: var(--ok); font-weight: 600; }
.status.bad { color: var(--bad); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); margin: 6px 0 18px; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
button.go {
  width: 100%; font: inherit; font-weight: 700; font-size: 17px; border: 0; border-radius: 14px; padding: 16px;
  background: var(--button); color: var(--button-ink); cursor: pointer;
}
button.go:hover { opacity: .9; }
.fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.error { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); border-radius: 12px; padding: 10px 14px; font-size: 15px; margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; }

/* the phone */
.phone-col { position: sticky; top: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone { width: min(340px, 100%); background: var(--phone); border-radius: 46px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.screen { background: var(--screen); border-radius: 36px; overflow: hidden; min-height: 560px; display: flex; flex-direction: column; }
.screen-top { text-align: center; padding: 18px 0 10px; border-bottom: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; margin: 6px auto 4px; }
.contact { font-size: 13px; font-weight: 600; }
.thread { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.stamp { text-align: center; font-size: 11px; color: var(--muted); margin: 2px 0 4px; }
.bubble { max-width: 94%; background: var(--bubble); color: var(--bubble-ink); border-radius: 18px; padding: 9px 12px; font-size: 13.5px; line-height: 1.38; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--me); color: var(--me-ink); }
.bubble.fade { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.inline-preview { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--bg); }
.inline-preview .stamp { text-align: left; margin: 0 0 6px; }
@media (min-width: 861px) { .inline-preview { display: none; } }
.phone-caption { font-size: 14px; color: var(--muted); text-align: center; }
.phone-caption strong { color: var(--ink); }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 24px 0 40px; }
.how .card h3 { margin: 0 0 6px; font-size: 18px; }
.how .card p { margin: 0; color: var(--muted); font-size: 15px; }
.faq { max-width: 720px; padding: 8px 0 40px; }
.faq h2 { font-size: 26px; letter-spacing: -0.02em; }
.faq h3 { font-size: 17px; margin: 22px 0 4px; }
.faq p { margin: 0; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 14px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }

.center { max-width: 560px; margin: 40px auto 80px; text-align: center; }
.big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 38px; display: grid; place-items: center; margin: 0 auto 18px; }
.center h1 { font-size: clamp(34px, 6vw, 48px); }
.share { display: flex; gap: 8px; margin-top: 18px; }
.share input { flex: 1; }
.share button { font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 0 18px; background: var(--button); color: var(--button-ink); cursor: pointer; }
.prose { max-width: 720px; padding: 10px 0 60px; }
.prose h1 { font-size: 40px; }
.prose h2 { font-size: 20px; margin-top: 30px; }
.prose p, .prose li { color: var(--muted); }

table.admin { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin th, table.admin td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.stats .card { padding: 16px; }
.stats b { display: block; font-size: 30px; letter-spacing: -0.02em; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 8px; }
  .phone-col { position: static; }
  .how { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 20px; }
  .lede { font-size: 18px; }
}
