:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #5b5f69;
  --line: #e4ded3;
  --discord: #5865f2;
  --sms: #e8553d;
  --accent-soft: #fbe3dc;
  --code-bg: #f0ebe2;
  --radius: 18px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1a1d23;
    --ink: #f1eee8;
    --muted: #a3a7b0;
    --line: #2b2f37;
    --discord: #8891ff;
    --sms: #ff7a60;
    --accent-soft: #3a211c;
    --code-bg: #23262d;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

a { color: inherit; text-decoration-color: var(--sms); text-underline-offset: 3px; }
a:hover { color: var(--sms); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; text-decoration: none; letter-spacing: -0.01em; }
.logo img { width: 30px; height: 30px; }
nav.site a { margin-left: 22px; text-decoration: none; color: var(--muted); font-size: 15px; }
nav.site a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 56px 0 88px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sms); margin: 0 0 16px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 76px); }
h1 em { font-style: italic; color: var(--sms); }
.lede { font-size: 20px; color: var(--muted); margin: 24px 0 32px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--sms); border-color: var(--sms); color: #fff; }
.btn.ghost:hover { border-color: var(--sms); }

/* Demo: channel and phone crossing */
.demo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 14px; line-height: 1.45; box-shadow: 0 18px 40px -28px rgba(0,0,0,.35); }
.panel .label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.panel.channel .dot { background: var(--discord); }
.panel.phone .dot { background: var(--sms); }
.panel.phone { margin-top: 48px; }
.msg { margin-bottom: 12px; }
.msg b { display: block; font-size: 13px; }
.msg.from-sms b { color: var(--sms); }
.bubble { background: var(--code-bg); border-radius: 16px 16px 16px 4px; padding: 8px 12px; margin-bottom: 8px; }
.bubble.out { background: var(--sms); color: #fff; border-radius: 16px 16px 4px 16px; margin-left: 18%; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 16px; }
.section-lede { color: var(--muted); max-width: 40em; margin: 0 0 40px; font-size: 18px; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 0 0 14px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.card ol { margin: 0; padding-left: 22px; }
.card li { margin-bottom: 10px; }
.card li::marker { color: var(--sms); font-weight: 600; }

code, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; background: var(--code-bg); padding: 2px 7px; border-radius: 6px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.fact strong { display: block; font-size: 16px; margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: 15px; line-height: 1.5; display: block; }

table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 16px; }
th, td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; width: 1%; }

.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sample { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-size: 15px; }
.sample .when { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.faq h3 { font-size: 18px; margin: 0 0 6px; }
.faq p { margin: 0 0 20px; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site nav a { margin-right: 20px; }

/* Legal pages */
.legal { max-width: 720px; padding: 32px 0 72px; }
.legal h1 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin: 0 0 40px; }
.legal h2 { font-family: var(--sans); font-weight: 600; font-size: 21px; margin: 40px 0 10px; line-height: 1.3; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.callout { background: var(--accent-soft); border-radius: 14px; padding: 18px 22px; margin: 20px 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 32px 0 64px; }
  .steps, .faq { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .samples { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  nav.site a { margin-left: 14px; }
  nav.site a.hide-sm { display: none; }
  .demo { grid-template-columns: 1fr; }
  .panel.phone { margin-top: 0; }
  .facts { grid-template-columns: 1fr; }
  th, td { padding: 10px 12px; }
  td:first-child { white-space: normal; }
  section { padding: 56px 0; }
}

.hero > *, .steps > *, .faq > *, .demo > * { min-width: 0; }
