/* Beside — lo-fi wireframes (separate from Buddy Bond). Greyscale boxes & labels. */
:root {
  --bg: #fafafa;
  --surface: #fff;
  --ink: #333;
  --muted: #666;
  --line: #777;
  --line-soft: #bbb;
  --fill: #e8e8e8;
  --fill-btn: #bbb;
  --fill-nav: #eee;
  --page-bg: #cfcfcf;
  --idea-bg: #fff8e0;
  --idea-ink: #665500;
  --idea-line: #c9a000;
  --warn-bg: #f0f0f0;
  --warn-ink: #444;
  --urgent-bg: #f4f4f4;
  --urgent-ink: #222;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 390px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; background: #d8d8d8; color: var(--ink);
  font-family: var(--font); -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
a { color: #444; text-decoration: underline; }
a:hover { color: #111; }

.disc {
  width: 100%; max-width: var(--max); text-align: center;
  background: #fff; border: 2px dashed #888; padding: 7px 10px;
  font-size: 12px; font-weight: 600; color: #555;
}

.phone {
  width: 100%; max-width: var(--max);
  margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  background: var(--bg);
  padding: 16px 18px 88px;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  position: relative;
}
@media (min-width: 420px) {
  body { padding: 16px 0 24px; background: var(--page-bg); }
  .disc { border-radius: 10px 10px 0 0; max-width: var(--max); }
  .phone {
    min-height: 780px; border: 3px solid #444; border-radius: 0 0 28px 28px;
    overflow: hidden;
  }
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.logo {
  font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem;
  color: var(--ink); text-decoration: none;
}
.logo span { color: var(--muted); font-weight: 500; }
.pill {
  font-size: .7rem; color: var(--muted); background: var(--surface);
  border: 2px solid var(--line); border-radius: 999px; padding: 4px 10px;
  font-weight: 600;
}
.pill.idea {
  background: var(--idea-bg); color: var(--idea-ink);
  border: 2px dashed var(--idea-line);
}

h1 {
  font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 8px; color: var(--ink);
}
h2 { font-size: 1.02rem; margin: 0 0 8px; letter-spacing: -0.01em; font-weight: 700; }
p, li { font-size: .92rem; line-height: 1.5; color: var(--ink); }
.lede { color: var(--muted); margin: 0 0 18px; }

.card {
  background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
  box-shadow: none;
}
.card.quiet {
  background: transparent; border-style: dashed; border-color: #999;
}
.card-kicker {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 6px; font-weight: 700;
}
.row { display: flex; gap: 10px; align-items: flex-start; }
.icon {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: var(--fill); color: #444; border: 2px solid var(--line);
  display: grid; place-items: center; font-size: .95rem;
}

.btn {
  display: inline-block; background: var(--fill-btn); color: #222;
  border: 2px solid #555; border-radius: 12px; padding: 11px 16px;
  font-size: .92rem; font-weight: 700; text-decoration: none;
  font-family: inherit; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.btn:hover { background: #999; text-decoration: none; color: #111; }
.btn.secondary {
  background: #fff; color: #333; border: 2px solid #555; font-weight: 500;
}
.btn.block { display: block; text-align: center; width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.topic {
  display: block; background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 12px; color: var(--ink);
  text-decoration: none; min-height: 84px;
}
.topic:hover { background: #f0f0f0; text-decoration: none; }
.topic strong { display: block; font-size: .92rem; margin-bottom: 4px; }
.topic span { font-size: .78rem; color: var(--muted); }

.search {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--surface);
  font-size: .92rem; margin-bottom: 14px; color: var(--ink); font-family: inherit;
}
.search:focus { outline: 2px solid #999; border-color: #555; }
.search:disabled { background: #eee; color: #888; }

.section-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 20px 0 10px; font-weight: 700;
}
.steps { margin: 0; padding-left: 1.15rem; }
.steps li { margin-bottom: 10px; }

.help {
  background: var(--warn-bg); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-top: 16px;
  color: var(--warn-ink);
}
.help strong { display: block; margin-bottom: 4px; }

.cite {
  margin-top: 24px; padding-top: 12px; border-top: 2px solid var(--line-soft);
  font-size: .75rem; color: var(--muted); line-height: 1.45;
}
.cite a { color: var(--muted); text-decoration: underline; }

.nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: var(--max);
  background: var(--fill-nav);
  border-top: 2px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}
@media (min-width: 420px) {
  .nav {
    position: absolute; /* sit inside the phone frame on desktop */
    left: 0; right: 0; transform: none; max-width: none; width: 100%;
  }
}
.nav a {
  text-align: center; font-size: .62rem; color: #666;
  padding: 6px 2px; text-decoration: none; font-weight: 500;
}
.nav a.active { color: #222; font-weight: 700; }
.nav .nicon {
  display: block; width: 22px; height: 22px; margin: 0 auto 3px;
  border: 2px solid #777; border-radius: 6px; background: #ddd;
  line-height: 18px; font-size: .85rem;
}
.nav a.active .nicon { background: #777; color: #fff; border-color: #555; }

.tag {
  display: inline-block; font-size: .68rem; background: var(--fill);
  color: #444; border: 2px solid var(--line); border-radius: 999px;
  padding: 3px 8px; margin-right: 6px; font-weight: 600;
}
.placeholder {
  font-size: .72rem; color: var(--idea-ink); background: var(--idea-bg);
  border: 2px dashed var(--idea-line); border-radius: 8px; padding: 6px 8px;
  margin: 8px 0 0; font-weight: 600;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip {
  display: inline-block; font-size: .78rem; font-weight: 600;
  padding: 8px 12px; border-radius: 20px;
  background: #fff; border: 2px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.chip:hover { background: #eee; text-decoration: none; }
.chip.urgent {
  background: var(--urgent-bg); border: 2px solid #555; color: var(--urgent-ink);
  font-weight: 700;
}
.card.urgent {
  background: var(--urgent-bg); border-color: #555; border-width: 2px;
}
.card.urgent .card-kicker { color: #444; font-weight: 700; }

.banner-note {
  background: var(--idea-bg); border: 2px dashed var(--idea-line);
  border-radius: var(--radius); padding: 12px 14px;
  font-size: .85rem; color: var(--idea-ink); margin-bottom: 14px; font-weight: 500;
}
.triage {
  background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
}
.triage ol { margin: 8px 0 0; padding-left: 1.15rem; }
.triage li { margin-bottom: 8px; font-size: .9rem; }

.contact {
  background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
}
.contact.er { border-color: #555; border-width: 2px; background: #f2f2f2; }
.contact h3 { margin: 0 0 4px; font-size: .95rem; letter-spacing: -0.01em; }
.contact .meta { font-size: .8rem; color: var(--muted); margin: 0 0 8px; }
.contact .phone-line { font-size: .92rem; font-weight: 700; margin: 4px 0; }
.contact .phone-line a { color: #222; text-decoration: none; }
.contact .src {
  font-size: .68rem; color: var(--muted); margin-top: 8px; line-height: 1.4;
}
.badge-24 {
  display: inline-block; font-size: .62rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: #555; color: #fff; border-radius: 4px;
  padding: 2px 6px; margin-left: 6px; vertical-align: middle;
}
.slot {
  border: 2px dashed #999; border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px; color: var(--muted);
  font-size: .85rem; background: transparent;
}
.coming { font-size: .82rem; color: var(--muted); padding: 8px 0 4px; }

/* onboarding */
.ob-q { margin-bottom: 16px; }
.ob-q h2 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; margin: 0 0 8px;
}
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chip {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: .78rem; font-weight: 600;
  padding: 8px 12px; border-radius: 20px; cursor: pointer;
  background: #fff; border: 2px solid var(--line); color: var(--ink);
}
.ob-chip:hover { background: #eee; }
.ob-chip[aria-pressed="true"] {
  background: #888; border-color: #555; color: #fff;
}
.ob-preview { margin-top: 8px; }
.ob-preview .example-tag {
  display: inline-block; font-size: .62rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--idea-bg); color: var(--idea-ink);
  border: 1px dashed var(--idea-line);
  border-radius: 4px; padding: 2px 6px; margin-bottom: 6px;
}
.ob-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.skip-link {
  display: block; text-align: center; font-size: .85rem;
  color: var(--muted); padding: 10px; text-decoration: underline;
  background: none; border: none;
}
.skip-link:hover { color: #222; }
.ob-soft {
  font-size: .78rem; color: var(--muted); line-height: 1.45; margin: 10px 0 0;
}
