/* withGEO.site — palette echoes getassured.ai: near-white ground, ink text, an
   editorial serif for display over a clean sans for UI. */
:root {
  --bg: #fcfcfb;
  --panel: #ffffff;
  --ink: #17150f;
  --muted: #6b6b63;
  --line: rgba(20, 18, 12, 0.12);
  --line-soft: rgba(20, 18, 12, 0.07);
  --accent: #6ad4a9; /* getassured.ai mint */
  --accent-strong: #128a63; /* darker mint for text/links on the near-white ground */
  --accent-ink: #0c2c22; /* dark ink for text on mint fills */
  --good: #1a7f4b;
  --bad: #b3341f;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Carlito, Calibri, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand { font-family: inherit; letter-spacing: -0.01em; }
h1 { font-size: 2.4rem; font-weight: 600; margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 0.5rem; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); z-index: 10;
}
.brand { font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.brand strong { color: var(--accent-strong); }
.brand span { color: var(--muted); font-weight: 400; }
.tabs { display: flex; gap: 0.25rem; margin-left: 0.5rem; flex: 1; }
.tabs button {
  font: inherit; font-weight: 500; cursor: pointer; padding: 0.4rem 0.85rem;
  border: 0; background: transparent; color: var(--muted); border-radius: 8px;
}
.tabs button:hover { color: var(--ink); background: var(--line-soft); }
.tabs button.on { color: var(--ink); background: var(--line-soft); }
.account { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--muted); }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.8rem; }

.view { max-width: 1040px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.foot { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 2rem; border-top: 1px solid var(--line-soft); }

button.btn, a.btn {
  font: inherit; font-weight: 600; cursor: pointer; display: inline-block;
  padding: 0.55rem 1rem; border-radius: 9px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
}
button.btn.ghost, a.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
button.btn:disabled { opacity: 0.5; cursor: default; }
button.mini {
  font: inherit; font-size: 0.85rem; cursor: pointer; padding: 0.25rem 0.6rem;
  border-radius: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
}
button.mini:hover { border-color: var(--accent); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 42rem; }

/* forms */
form.stack { display: grid; gap: 0.6rem; max-width: 32rem; }
label { font-size: 0.8rem; font-weight: 500; color: var(--muted); display: grid; gap: 0.2rem; }
input, select, textarea {
  font: inherit; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--ink);
}
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: end; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.8rem; cursor: pointer; user-select: none; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* metrics */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.metric { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem; background: var(--panel); }
.metric .k { font-size: 0.75rem; color: var(--muted); }
.metric .v { font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; font-family: inherit; }
.metric .c { font-size: 0.78rem; }
.up { color: var(--good); } .down { color: var(--bad); }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }

/* pricing */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.tile { border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; background: var(--panel); display: flex; flex-direction: column; }
.tile.pop { border-color: var(--accent); box-shadow: 0 8px 30px rgba(106, 212, 169, 0.18); }
.tile .name { font-family: inherit; font-size: 1.2rem; font-weight: 600; }
.tile .price { font-size: 2rem; font-weight: 700; font-family: inherit; margin: 0.4rem 0 0.1rem; }
.tile .price small { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.tile .tag { color: var(--muted); font-size: 0.9rem; min-height: 2.4rem; }
.tile ul { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.45rem; }
.tile li { font-size: 0.88rem; padding-left: 1.3rem; position: relative; }
.tile li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-strong); font-weight: 700; }
.tile .group { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 0.6rem; }
.tile .btn { margin-top: auto; text-align: center; }
.badge { display: inline-block; background: var(--good); color: #fff; font-size: 0.72rem; padding: 0.1rem 0.5rem; border-radius: 999px; margin-left: 0.5rem; }
.banner { background: color-mix(in srgb, var(--good) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.9rem; }

/* Run-detail modal */
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--line-soft); }
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 18, 12, 0.45);
  display: none; align-items: flex-start; justify-content: center; padding: 4vh 1rem; z-index: 50;
}
.modal-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  max-width: 720px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(20, 18, 12, 0.25);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.modal-card h3 { margin: 0.75rem 0 0.25rem; }
.modal-card h4 { margin: 1.25rem 0 0.4rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.answer { line-height: 1.6; border-left: 3px solid var(--accent); padding: 0.25rem 0 0.25rem 1rem; }
.answer p { margin: 0 0 0.75rem; }
.answer p:last-child { margin-bottom: 0; }
.answer a { color: var(--accent-strong); }
.answer strong { font-weight: 600; }
.answer ul, .answer ol { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.cites { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.cites li { line-height: 1.4; }

/* API keys tab: the one-time key display and revoked rows. */
.keybox { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; flex-wrap: wrap; }
.keybox code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.4rem 0.6rem; word-break: break-all; user-select: all;
}
tr.revoked td { color: var(--muted); text-decoration: line-through; }
tr.revoked td:last-child, tr.revoked td:nth-last-child(2) { text-decoration: none; }

/* Run log: an in-flight (queued) run. */
.running { color: var(--accent-strong); font-style: italic; }

/* Grounding register: engines that cannot cite the web. */
sup.nocite { font-size: 0.6rem; margin-left: 0.25rem; color: var(--muted); font-style: italic; }
.chip.on sup.nocite { color: inherit; opacity: 0.75; }
