/* The app's own tokens (apps/web/app/globals.css), so the site and the app
   read as one thing: paper and green ink in light, banknote green in dark,
   one coin gold. Gold dark enough to read as text is too brown to fill a
   button with, so a fill uses its own brighter value, as in the app. */
:root {
  --bg: #f4f1e8;
  --surface: #fffdf7;
  --border: #ddd5c1;
  --text: #13221b;
  --dim: #55665c;
  --accent: #9a6c00;
  --accent-fill: #ffc21f;
  --accent-edge: #d69a00;
  --accent-soft: #f7e7b8;
  --on-accent: #1d1503;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1a15;
    --surface: #14251e;
    --border: #264136;
    --text: #eef5ef;
    --dim: #9db4a7;
    --accent: #ffc53a;
    --accent-fill: #ffc53a;
    --accent-edge: #b98300;
    --accent-soft: #383010;
    --on-accent: #1d1503;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 "Nunito", 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: 800; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a { color: var(--dim); text-decoration: none; margin-left: 18px; font-size: 15px; font-weight: 700; }

h1, h2, .figure { font-family: "Nunito", system-ui, sans-serif; font-weight: 900; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 9vw, 64px); line-height: 1.02; margin: 0 0 18px; }
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-fill); color: var(--on-accent); font-weight: 800;
  box-shadow: 0 4px 0 var(--accent-edge);
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
a.badge { text-decoration: none; }
.badge.quiet:not(:only-child) { background: transparent; color: var(--dim); box-shadow: inset 0 0 0 2px var(--border); }
.fine { margin: 10px 0 0; font-size: 14px; opacity: .7; }

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

.points { display: grid; gap: 14px; margin: 40px 0; }
/* Cards stand on a thicker bottom edge, as in the app. */
.points div {
  background: var(--surface); border: 2px solid var(--border); border-bottom-width: 4px;
  border-radius: 18px; padding: 18px 20px;
}
.points strong { display: block; font-size: 18px; font-weight: 800; 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: 2px solid var(--border); border-bottom-width: 4px; 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-fill); color: var(--on-accent); font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 0 var(--accent-edge);
}
.open:active { transform: translateY(4px); box-shadow: 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; }
