/* AIDE 7 brand tokens (see src/app/globals.css in the main site). */
:root {
  color-scheme: light;
  --bg: #fffaf3;
  --bg-subtle: #fff3e6;
  --surface: #ffffff;
  --text: #2b2833;
  --muted: #625e6e;
  --line: #f0e3d3;
  --line-strong: #e2d2be;
  --accent: #6c4ae0;
  --accent-text: #5b3ad0;
  --accent-soft: #ece6fd;
  --mint: #cff1df;
  --peach: #ffdcc8;
  --sh: 0 10px 28px rgb(120 80 40 / 0.1);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1d1a24;
    --bg-subtle: #16141c;
    --surface: #28242f;
    --text: #f5f0ea;
    --muted: #b5aec0;
    --line: #3a3545;
    --line-strong: #50495e;
    --accent: #b8a4ff;
    --accent-text: #c4b3ff;
    --accent-soft: #3a3258;
    --mint: #26413a;
    --peach: #4b3530;
    --sh: 0 10px 28px rgb(0 0 0 / 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-text); word-break: break-word; }
a:hover { color: var(--accent); }
h1, h2, .brand { font-family: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif; }

/* Top bar */
.topbar {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #6c4ae0;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: -0.02em;
}
.links { display: flex; gap: 16px; font-weight: 600; font-size: 0.95rem; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--accent-text); }

.sitefoot {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 40px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Document pages (privacy, support, wallet guide). Markup comes from the repo unchanged. */
.doc main {
  max-width: 760px;
  margin: 16px auto 32px;
  padding: 32px 28px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--sh);
}
.doc header { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 8px; }
.doc h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 6px; font-weight: 800; }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin: 0; }
.doc h2 { font-size: 1.2rem; line-height: 1.3; margin: 32px 0 8px; font-weight: 700; }
.doc p, .doc li { margin: 8px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc ol li { margin: 6px 0; }
.doc ol li::marker { color: var(--accent-text); font-weight: 700; }
.doc .lead {
  background: var(--accent-soft);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 20px 0;
}
.doc .lead p { margin: 0; }
.doc .path {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 10px 0;
}
.doc .contact { font-size: 1.02rem; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.95rem; }
.doc caption { text-align: left; color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }
.doc th, .doc td { text-align: left; border: 1px solid var(--line-strong); padding: 8px 10px; vertical-align: top; }
.doc th { background: var(--bg-subtle); }
.doc figure { margin: 12px 0 18px; }
.doc figure img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.doc figure.wide img { max-width: 560px; }
.doc main > footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
@media (max-width: 520px) {
  .doc main { margin: 12px 8px 24px; padding: 24px 16px 32px; border-radius: 20px; }
  .doc h1 { font-size: 1.55rem; }
  .doc table { display: block; overflow-x: auto; }
}

/* Landing page */
.hero { max-width: 760px; margin: 0 auto; padding: 48px 16px 24px; text-align: center; }
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mint);
  font-weight: 700;
  font-size: 0.85rem;
}
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.05; margin: 18px 0 12px; font-weight: 800; }
.hero .sub { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 0 auto; }
.soon {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px dashed var(--line-strong);
  font-weight: 700;
  color: var(--muted);
}
.cards { max-width: 760px; margin: 0 auto; padding: 16px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--sh); }
.card h2 { font-size: 1.05rem; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.note { max-width: 728px; margin: 8px auto; padding: 0 16px; color: var(--muted); font-size: 0.9rem; text-align: center; }
.help { max-width: 760px; margin: 24px auto 40px; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.help a {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  text-decoration: none;
}
.help a:hover { border-color: var(--accent); }
