/* Bridge Hound — one stylesheet for the public site and the app. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --brand: #12324a;
  --brand-2: #1c4a6b;
  --accent: #f0a63a;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #15202b;
  --muted: #5b6776;
  --line: #e2e6ee;
  --ok: #157347;
  --ok-soft: #e3f4ea;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --warn: #9a5b00;
  --warn-soft: #fff3dc;
  --info: #1c4a6b;
  --info-soft: #e5eef6;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1620;
    --card: #142231;
    --text: #e7edf3;
    --muted: #9aa8b6;
    --line: #22364a;
    --ok: #5fd39a;
    --ok-soft: #12321f;
    --bad: #ff8a80;
    --bad-soft: #3a1714;
    --warn: #ffc56b;
    --warn-soft: #3a2a0c;
    --info: #9cc7ea;
    --info-soft: #17324a;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--brand-2); }
@media (prefers-color-scheme: dark) { a { color: var(--info); } }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.4em; }
p { margin: 0 0 0.8em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.bad { color: var(--bad); }
.warn { color: var(--warn); background: var(--warn-soft); padding: 0.5rem 0.75rem; border-radius: 8px; }
.mark { width: 28px; height: 28px; flex: none; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 16px; background: var(--brand); color: #fff; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.55rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.top nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top nav a, .top .link { color: #dbe7f1; text-decoration: none; font: inherit; font-size: 0.92rem; background: none; border: 0; cursor: pointer; padding: 0; }
.top nav a:hover, .top .link:hover { color: #fff; }
.top nav form { margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 8px; padding: 0.55rem 1rem; font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #1b1300; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--line); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.sm { padding: 0.3rem 0.65rem; font-size: 0.82rem; font-weight: 500; }

/* app */
.wrap { max-width: 860px; margin: 0 auto; padding: 1.25rem 16px 3rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.card.subtle { background: transparent; }
.card h1 { font-size: 1.25rem; }
.card h2 { font-size: 1rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.row form, .card form { margin: 0 0 0.6rem; }
.stack { display: grid; gap: 0.7rem; max-width: 520px; }
.inline { display: flex; gap: 0.5rem; align-items: end; flex-wrap: wrap; }
label { display: grid; gap: 0.25rem; font-size: 0.88rem; font-weight: 500; }
input { font: inherit; padding: 0.5rem 0.65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); min-width: 0; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.muted { background: var(--line); color: var(--muted); }
.badge.info { background: var(--info-soft); color: var(--info); }
.flash { padding: 0.6rem 0.9rem; border-radius: 8px; margin-bottom: 1rem; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--bad-soft); color: var(--bad); }
.log { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.log li { display: flex; gap: 0.75rem; align-items: flex-start; justify-content: space-between; padding: 0.6rem 0.8rem; border-top: 1px solid var(--line); font-size: 0.88rem; }
.log li:first-child { border-top: 0; }
.log p { margin: 0; }
.log .grow { min-width: 0; flex: 1; }
.subj { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir { display: inline-block; width: 1.2em; color: var(--muted); }
.links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th { text-align: left; font-weight: 500; color: var(--muted); padding: 0.4rem 0.6rem 0.4rem 0; }
td { padding: 0.6rem 0.6rem 0.6rem 0; border-top: 1px solid var(--line); vertical-align: top; }
td.actions form { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; margin: 0; }

/* public site */
.hero { background: var(--brand); color: #fff; padding: 4rem 16px 4.5rem; }
.hero .inner, .section .inner, .foot .inner { max-width: 1040px; margin: 0 auto; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); max-width: 18ch; margin-bottom: 0.5em; }
.hero p.lead { font-size: 1.15rem; color: #d3e1ec; max-width: 56ch; }
.hero .cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .btn.ghost { color: #fff; border-color: #52718b; }
.hero .btn.ghost:hover { background: var(--brand-2); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-bottom: 0.8rem; }
.section { padding: 3.5rem 16px; }
.section h2 { font-size: 1.6rem; margin-bottom: 1.2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.grid .card h3 { font-size: 1.02rem; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.steps li::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent); color: #1b1300; font-weight: 700; margin-bottom: 0.6rem; }
.sample { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.9rem; max-width: 560px; }
.sample .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.sample pre { white-space: pre-wrap; font: inherit; margin: 0.4rem 0 0; color: var(--muted); }
.foot { padding: 2rem 16px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.foot .inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot a { color: var(--muted); margin-right: 1rem; }
.prose { max-width: 760px; margin: 0 auto; padding: 2.5rem 16px 4rem; }
.prose h1 { font-size: 1.8rem; }
.prose h2 { font-size: 1.15rem; margin-top: 1.6rem; }
