@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Fira+Sans:wght@300;400;500;600;700&display=swap');
/* AIDEN Product Research — interface tokens and components */
:root {
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6B7280;
  --line: #E5E7EB;
  --paper: #F8FAFC;
  --card: #FFFFFF;
  --navy: #0F1E33;
  --navy-2: #1B2F4B;
  --teal: #1E40AF;
  --teal-soft: #E8EEFC;
  --amber: #B45309;
  --amber-soft: #FEF3C7;
  --red: #B91C1C;
  --red-soft: #FEE2E2;
  --green: #047857;
  --green-soft: #D1FAE5;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 30, 51, .06), 0 8px 24px rgba(15, 30, 51, .06);
  --font: "Fira Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fira Code", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0B1220; --card: #111A2B; --ink: #E5E7EB; --ink-soft: #CBD5E1; --muted: #94A3B8; --line: #223049; --teal-soft: #0D2B2A; --amber-soft: #3A2A0B; --red-soft: #3B1111; --green-soft: #0C2E22; }
}
:root[data-theme="dark"] { --paper: #0B1220; --card: #111A2B; --ink: #E5E7EB; --ink-soft: #CBD5E1; --muted: #94A3B8; --line: #223049; --teal-soft: #0D2B2A; --amber-soft: #3A2A0B; --red-soft: #3B1111; --green-soft: #0C2E22; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
h2 { font-size: 20px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 .75em; color: var(--ink-soft); }
code, pre { font-family: var(--mono); font-size: 13px; }
pre { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; overflow: auto; white-space: pre-wrap; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 14px clamp(16px, 4vw, 40px); background: var(--navy); color: #E2E8F0; }
.brand { color: #fff; font-weight: 700; letter-spacing: .02em; font-size: 16px; }
.brand span { font-weight: 400; opacity: .7; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { color: #CBD5E1; padding: 7px 12px; border-radius: 999px; font-size: 14px; }
.nav a:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.nav a.active { background: var(--navy-2); color: #fff; }
.who { color: #94A3B8; font-size: 14px; white-space: nowrap; }

/* layout */
.shell { max-width: 1120px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 40px) 64px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stack > * + * { margin-top: 20px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } .who { display: none; } }

/* hero and page heads */
.hero, .page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.hero p, .page-head p { max-width: 62ch; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 0 0 8px; }
.muted { color: var(--muted); }
.note { color: var(--amber); background: var(--amber-soft); border-radius: var(--radius-sm); padding: 10px 12px; }

/* cards */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 2.6vw, 28px); margin-bottom: 20px; }
.panel > h2:first-child { margin-top: 0; }
.card-kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card-kpi .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-kpi .value { font-size: 26px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }

/* buttons and links */
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font: 600 14px var(--font); cursor: pointer; transition: background .15s, transform .05s; }
.button:hover, button:hover { background: #0B5F59; text-decoration: none; }
.button:active, button:active { transform: translateY(1px); }
.button.ghost { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.button.ghost:hover { background: var(--teal-soft); }
.button.warn { background: var(--amber); }
:focus-visible { outline: 3px solid #5EEAD4; outline-offset: 2px; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.form-grid input, .form-grid select, .form-grid textarea { font: 400 15px var(--font); color: var(--ink); background: var(--card); border: 1px solid #CBD5E1; border-radius: 10px; padding: 11px 13px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); outline: none; }
.form-grid textarea { resize: vertical; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid button { justify-self: start; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; }
fieldset legend { font-weight: 650; padding: 0 6px; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; font-weight: 500; }
.chips input { width: auto; }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* alerts and states */
.alert { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.alert.danger { background: var(--red-soft); color: var(--red); }
.status { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }
.status.ok, .status.pass { background: var(--green-soft); color: var(--green); border-color: transparent; }
.status.warn { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.status.bad { background: var(--red-soft); color: var(--red); border-color: transparent; }

/* tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* run list */
.run-list { display: grid; gap: 10px; }
.run-list a { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); }
.run-list a:hover { border-color: var(--teal); text-decoration: none; }
.run-list strong { font-weight: 650; }
.run-list span { color: var(--muted); font-size: 13px; }

/* checks */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.check-list .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--muted); }
.check-list .dot.ok { background: var(--green); }
.check-list .dot.bad { background: var(--red); }

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
/* auth */
.auth-wrap { min-height: 64vh; display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 36px); }
.auth-card h1 { font-size: 26px; }
.auth-form { display: grid; gap: 16px; margin-top: 18px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.auth-form input { font: 400 15px var(--font); color: var(--ink); background: var(--card); border: 1px solid #CBD5E1; border-radius: 10px; padding: 11px 13px; }
.auth-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); outline: none; }
.auth-form button { margin-top: 4px; }

/* price card on the estimate page */
.price-card { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #E2E8F0; border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); margin-bottom: 20px; box-shadow: var(--shadow); }
.price-card span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #5EEAD4; }
.price-card strong { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 750; margin: 8px 0; color: #fff; }
.price-card p { color: #94A3B8; margin: 0; }
.panel ul { color: var(--ink-soft); padding-left: 20px; }
.panel ul li { margin: 6px 0; }
