/* The app's own tokens (apps/web/app/globals.css), so the site and the app
   read as one thing. */
:root {
  --bg: #f2f1f8;
  --surface: #fcfcff;
  --border: #d9d7ec;
  --text: #15131f;
  --dim: #5c5775;
  --accent: #5b46e0;
  --accent-soft: #e5e1fc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f16;
    --surface: #181826;
    --border: #2f2e45;
    --text: #eceaf7;
    --dim: #9c97b8;
    --accent: #9b8cff;
    --accent-soft: #231e42;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Instrument Sans", system-ui, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.bar { padding: 22px 0; }
header.bar .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a { color: var(--dim); text-decoration: none; margin-left: 18px; font-size: 15px; }

h1, h2, .figure { font-family: "Bricolage Grotesque", "Instrument Sans", sans-serif; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 9vw, 64px); line-height: 1.02; margin: 0 0 18px; font-weight: 800; }
h2 { font-size: 26px; margin: 44px 0 10px; }
.lede { font-size: 20px; color: var(--dim); margin: 0 0 28px; }

.hero { padding: 36px 0 12px; text-align: center; }
.hero .icon { width: 112px; height: 112px; border-radius: 26px; margin-bottom: 26px; }
.badge {
  display: inline-block; padding: 12px 22px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}

.phones { display: flex; gap: 16px; justify-content: center; margin: 48px 0 8px; }
.phones img {
  width: 31%; max-width: 220px; border-radius: 22px;
  border: 1px solid var(--border); background: var(--surface);
}

.points { display: grid; gap: 14px; margin: 40px 0; }
.points div { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
.points strong { display: block; font-size: 18px; margin-bottom: 2px; }
.points span { color: var(--dim); }

.doc { padding-top: 20px; padding-bottom: 40px; }
.doc h1 { font-size: 40px; }
.doc .updated { color: var(--dim); margin-top: -8px; }
.doc li { margin-bottom: 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--border); }

footer { padding: 40px 0 56px; color: var(--dim); font-size: 14px; }
footer a { color: var(--dim); margin-right: 16px; }

/* The invite page (invite.html), served at /i/CODE. */
.invite { padding-top: 28px; padding-bottom: 24px; text-align: center; }
.invite .icon { width: 88px; height: 88px; border-radius: 21px; margin-bottom: 22px; }
.invite h1 { font-size: clamp(36px, 9vw, 52px); }
.invite .lede { max-width: 30em; margin-left: auto; margin-right: auto; }
.code {
  margin: 0 auto 22px; max-width: 360px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
}
.code small { display: block; color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.code .figure { display: block; font-size: 34px; font-weight: 800; letter-spacing: 0.14em; margin-top: 2px; }
.open {
  display: block; max-width: 360px; margin: 0 auto; padding: 15px 22px; border-radius: 14px;
  background: var(--accent); color: var(--bg); font-weight: 600; text-decoration: none;
}
.steps { max-width: 30em; margin: 36px auto 0; text-align: left; }
.steps h2 { font-size: 20px; margin: 0 0 8px; }
.steps p { color: var(--dim); margin: 0 0 12px; }
