/* ==========================================================================
   HousingValuation AI — premium product design system
   Clean SaaS aesthetic: generous spacing, refined typography,
   subtle gradients, glass cards, one signature accent.
   ========================================================================== */

:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-ink: #1e3a8a;
  --accent-soft: #eff6ff;
  --accent-glow: rgba(37, 99, 235, 0.16);
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --warn: #d97706;
  --warn-soft: #fdfbee;
  --bad: #dc2626;
  --bad-soft: #fef2f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-2: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-3: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 600% 400% at 50% -10%, rgba(37, 99, 235, 0.05), transparent 50%),
    linear-gradient(to right, rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 80%);
  z-index: 0;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ---------- shell ---------- */
.page { max-width: 1160px; margin: 0 auto; padding: 0 28px 120px; position: relative; z-index: 1; }

.site-head { display: flex; align-items: center; justify-content: space-between; padding: 32px 0 0; }

.site-head .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.site-head .brand-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #2563eb, #1d4ed8); display: grid; place-items: center; color: #fff; font-family: var(--mono); font-size: 16px; font-weight: 700; letter-spacing: 0.02em; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28); flex: none; }

.site-head .brand-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

.site-head .brand-sub { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 3px; font-weight: 500; }

.head-links { display: flex; gap: 26px; align-items: center; font-size: 13.5px; }
.head-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.head-links a:hover { color: var(--accent); }

/* ---------- pricing hero ---------- */
.pricing-hero { padding: 96px 0 60px; max-width: 860px; }

.pricing-hero .eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 18px; display: inline-block; }

.pricing-hero h1 { font-size: 56px; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 24px; font-weight: 800; color: var(--ink); }

.pricing-hero h1 b { color: var(--accent-dark); }

.pricing-hero p { font-size: 20px; color: var(--ink-2); line-height: 1.7; max-width: 700px; margin-bottom: 32px; font-weight: 450; }

.pricing-hero .meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

.pill {
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; display: inline-flex; align-items: center; gap: 8px;
}
.pill.accent { background: var(--accent-soft); color: var(--accent-dark); border-color: rgba(37, 99, 235, 0.2); }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 14px; }

.tier {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 32px 36px; display: flex; flex-direction: column; box-shadow: var(--shadow-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.tier::before {
  content: ""; position: absolute; inset: 0 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  opacity: 0; transition: opacity 0.25s ease;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--line-strong); }
.tier:hover::before { opacity: 1; }

.tier.featured {
  border-color: var(--accent-dark); background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  box-shadow: var(--shadow-2); z-index: 2;
}
.tier.featured::before { opacity: 1; }

.tier.featured::after {
  content: "Most popular"; position: absolute; top: -12px; left: 24px;
  background: var(--accent-dark); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}

.tier h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }

.tier .for { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }

.tier .price { margin-bottom: 8px; font-size: 46px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tier .price span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.tier .calls { font-size: 13px; color: var(--ink-2); margin-bottom: 30px; font-weight: 500; }

.tier ul { list-style: none; margin: 0 0 30px; padding: 0; font-size: 13.5px; color: var(--ink-2); flex: 1; }
.tier li { padding: 9px 0 9px 28px; position: relative; line-height: 1.55; color: var(--ink-2); }
.tier li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 11px; display: grid; place-items: center; }
.tier li.off { color: var(--faint); }
.tier li.off::before { content: ""; background: var(--panel-2); border: 1px solid var(--line); color: var(--faint); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
  padding: 14px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); color: var(--ink); background: var(--panel);
  transition: all 0.2s ease; width: 100%;
}
.btn:hover { background: var(--panel-2); border-color: var(--ink-2); transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(180deg, #2563eb, #1d4ed8); border-color: #164dca; color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}
.btn.primary:hover { background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: #164dca; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3); }

/* ---------- skill strip ---------- */
.skill-strip { margin-top: 60px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 26px; box-shadow: var(--shadow-1); }

.skill-strip-left { flex: 1; }
.skill-strip p { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; margin: 0; }
.skill-strip strong { font-weight: 700; color: var(--ink); }
.skill-strip code { font-family: var(--mono); font-size: 12.5px; color: var(--accent-dark); background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; font-weight: 600; }

.skill-strip-right { flex: none; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.skill-strip .skill-price { font-family: var(--mono); font-size: 22px; font-weight: 800; color: var(--ink); }
.skill-strip .skill-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.skill-strip a { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--accent-dark); text-decoration: none; border-bottom: 2px solid var(--accent-soft); padding-bottom: 2px; transition: all 0.2s ease; }
.skill-strip a:hover { border-bottom-color: var(--accent-dark); color: var(--accent-dark); }

/* ---------- blocks ---------- */
section.block { margin-top: 100px; }
.block h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.block .lede { color: var(--muted); font-size: 17px; margin-top: 4px; max-width: 720px; font-weight: 450; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }

.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; box-shadow: var(--shadow-1); transition: border-color 0.2s ease; }
.feature:hover { border-color: var(--line-strong); }
.feature h4 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--ink); }
.feature p { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }

/* ---------- rates table ---------- */
table.rates { width: 100%; border-collapse: collapse; margin-top: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: 13.5px; box-shadow: var(--shadow-1); }
table.rates th, table.rates td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
table.rates th { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--panel-2); }
table.rates td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.rates tr:last-child td { border-bottom: 0; }
table.rates tr:hover { background: var(--panel-2); }

/* ---------- FAQ ---------- */
.faq { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 30px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; color: var(--ink); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-dark); font-weight: 800; font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq p { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin-top: 12px; max-width: 800px; }

.note-box { margin-top: 34px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-sm); padding: 26px 30px; box-shadow: var(--shadow-1); }
.note-box strong { font-weight: 700; color: var(--ink); }
.note-box p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

/* ---------- CTA ---------- */
.cta { margin-top: 110px; background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%); color: #fff; border-radius: var(--radius); padding: 48px 40px; display: flex; align-items: center; justify-content: space-between; gap: 36px; box-shadow: var(--shadow-3); }
.cta h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin-bottom: 8px; }
.cta p { color: #cbd5e1; font-size: 15px; margin-top: 4px; max-width: 520px; font-weight: 450; }
.cta .btn { background: #fff; border-color: #fff; color: var(--ink); white-space: nowrap; box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
.cta .btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,0.16); }

/* ---------- footer ---------- */
.site-foot { margin-top: 100px; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); flex-wrap: wrap; padding-top: 40px; border-top: 1px solid var(--line); }
.site-foot .foot-brand { font-weight: 700; color: var(--ink); font-size: 13px; letter-spacing: -0.01em; }
.site-foot a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-foot a:hover { color: var(--accent-dark); }
.site-foot .sep { color: var(--faint); margin: 0 6px; }

@media (max-width: 1080px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
  .cta { flex-direction: column; align-items: flex-start; gap: 24px; }
  .skill-strip { flex-direction: column; align-items: flex-start; gap: 20px; }
  .skill-strip-right { align-items: flex-start; width: 100%; }
}
@media (max-width: 640px) {
  .tiers { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .page { padding: 0 20px 80px; }
}

/* ==========================================================================
   Console app (index.html) — premium additions
   ========================================================================== */

.app { position: relative; z-index: 1; display: flex; min-height: 100vh; }

.rail {
  width: 260px; flex: 0 0 260px;
  background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 24px 20px 20px; border-bottom: 1px solid var(--line); }

.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #2563eb, #1d4ed8); display: grid; place-items: center; color: #fff; font-family: var(--mono); font-size: 16px; font-weight: 700; letter-spacing: 0.02em; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28); flex: none; }

.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }

.brand-sub { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 3px; font-weight: 600; }

.nav { padding: 20px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }

.nav-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 700; padding: 0 10px 8px; }

.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; border: none; background: none; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; width: 100%; text-decoration: none; transition: all 0.18s ease; }
.nav-item svg { width: 16px; height: 16px; flex: none; stroke-width: 1.8; color: currentColor; }
.nav-item:hover { background: var(--panel-2); color: var(--ink-2); }
.nav-item.is-active { background: var(--accent-soft); color: var(--accent-dark); }
.nav-item.is-active svg { stroke: var(--accent-dark); }

.nav-item .nav-count { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--faint); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

.rail-foot { border-top: 1px solid var(--line); padding: 16px 20px 18px; font-size: 11px; color: var(--muted); line-height: 1.6; }

.rail-foot strong { color: var(--ink-2); font-weight: 700; }

.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar { height: 64px; flex: none; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 20; }

.topbar h1 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }

.topbar .sub { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 500; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }

.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14); flex: none; }

.chip .dot.is-busy { background: var(--warn); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14); }

main { padding: 28px 32px 60px; max-width: 1600px; width: 100%; }

.view { display: none; }

.view.is-active { display: block; animation: fade 0.24s ease; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- grid + cards ---------- */

.grid { display: grid; gap: 22px; }

.val-layout { grid-template-columns: 380px minmax(0, 1fr); align-items: start; }

.val-right { display: grid; gap: 22px; }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: 22px; align-items: start; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; }

.card-hd { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--panel-2); }

.card-hd h2 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }

.card-hd .hint { font-size: 12px; color: var(--faint); font-weight: 500; }

.card-bd { padding: 22px; }

.card-bd.tight { padding: 16px 22px; }

/* ---------- form ---------- */

.fieldset { margin-bottom: 20px; }

.fieldset:last-of-type { margin-bottom: 8px; }

.fieldset-title { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }

.fieldset-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.row { display: grid; gap: 12px; margin-bottom: 10px; }

.row.c2 { grid-template-columns: 1fr 1fr; }

.row.c3 { grid-template-columns: 1fr 1fr 1fr; }

.field label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 5px; letter-spacing: 0.01em; }

.field select,
.field input { width: 100%; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; font-family: var(--font); font-size: 13px; color: var(--ink); transition: border-color 0.16s, box-shadow 0.16s; appearance: none; }

.field select { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; padding-right: 30px; }

.field select:focus,
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.btn { border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2); font-family: inherit; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 8px; cursor: pointer; transition: all 0.16s; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.btn:hover { border-color: var(--ink-2); background: var(--panel-2); }

.btn-primary { width: 100%; justify-content: center; background: linear-gradient(180deg, #2563eb, #1d4ed8); border: 1px solid #164dca; color: #fff; font-size: 13px; font-weight: 700; padding: 12px 16px; letter-spacing: 0.02em; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24); }

.btn-primary:hover { background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: #164dca; }

.btn-primary:disabled { opacity: 0.65; cursor: progress; }

.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 7px; }

.samples { display: flex; gap: 8px; flex-wrap: wrap; }

.sample-chip { font-size: 10.5px; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font-family: inherit; cursor: pointer; transition: all 0.16s; }

.sample-chip:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }

/* ---------- hero result ---------- */

.hero { padding: 24px 26px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center; }

.eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }

.hero-value { font-family: var(--mono); font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.06; color: var(--ink); font-variant-numeric: tabular-nums; }

.hero-value .cur { font-size: 24px; font-weight: 600; color: var(--faint); margin-right: 4px; }

.hero-sub { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-sub b { color: var(--ink-2); font-weight: 700; font-family: var(--mono); }

/* ---------- metrics strip ---------- */

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }

.metric { padding: 14px 18px; border-right: 1px solid var(--line); }

.metric:last-child { border-right: none; }

.metric .k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }

.metric .v { font-family: var(--mono); font-size: 18px; font-weight: 700; margin-top: 4px; letter-spacing: -0.01em; }

.metric .d { font-size: 11px; color: var(--faint); margin-top: 2px; }

.metric .v.ok { color: var(--ok); }

.metric .v.warn { color: var(--warn); }

.metric .v.bad { color: var(--bad); }

/* ---------- band ---------- */

.band { margin-top: 16px; }

.band-track { position: relative; height: 7px; border-radius: 99px; background: linear-gradient(90deg, #e2e8f0, #cbd5e1 50%, #e2e8f0); overflow: visible; }

.band-fill { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.5)); transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }

.band-pin { position: absolute; top: 50%; width: 3px; height: 18px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 0 0 4px #fff; }

.band-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--faint); font-family: var(--mono); }

/* ---------- conf ---------- */

.conf { display: grid; place-items: center; gap: 7px; }

.conf-ring { position: relative; width: 100px; height: 100px; }

.conf-ring svg { transform: rotate(-90deg); width: 100px; height: 100px; }

.conf-ring .bg { fill: none; stroke: var(--line); stroke-width: 7; }

.conf-ring .fg { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), stroke 0.3s; }

.conf-inner { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }

.conf-num { font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }

.conf-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-top: 4px; font-weight: 700; }

.conf-cap { font-size: 10.5px; color: var(--muted); text-align: center; }

/* ---------- drivers ---------- */

.driver { padding: 10px 0; border-bottom: 1px dashed var(--line); }

.driver:last-child { border-bottom: none; padding-bottom: 0; }

.driver-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }

.driver-name { font-size: 12px; font-weight: 600; color: var(--ink-2); }

.driver-amt { font-family: var(--mono); font-size: 12px; font-weight: 700; }

.driver-amt.pos { color: var(--ok); }

.driver-amt.neg { color: var(--bad); }

.driver-bar { position: relative; height: 5px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); }

.driver-bar span { position: absolute; top: 0; bottom: 0; border-radius: 99px; transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }

.driver-bar span.pos { left: 50%; background: linear-gradient(90deg, rgba(5, 150, 105, 0.3), rgba(5, 150, 105, 0.7)); }

.driver-bar span.neg { right: 50%; background: linear-gradient(90deg, rgba(220, 38, 38, 0.7), rgba(220, 38, 38, 0.3)); }

.driver-bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }

/* ---------- decision ---------- */

.decision { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid; margin-bottom: 16px; }

.decision.ok { background: var(--ok-soft); border-color: rgba(5, 150, 105, 0.24); }

.decision.warn { background: var(--warn-soft); border-color: rgba(217, 119, 6, 0.24); }

.decision.bad { background: var(--bad-soft); border-color: rgba(220, 38, 38, 0.22); }

.decision-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #fff; border: 1px solid rgba(15, 23, 42, 0.06); }

.decision-title { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }

.decision.ok .decision-title { color: var(--ok); }

.decision.warn .decision-title { color: var(--warn); }

.decision.bad .decision-title { color: var(--bad); }

.decision-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

.grade { margin-left: auto; font-family: var(--mono); font-size: 18px; font-weight: 700; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid rgba(15, 23, 42, 0.08); flex: none; }

/* ---------- lending ---------- */

.ltv-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 7px; }

.ltv-row b { font-family: var(--mono); font-weight: 700; }

.ltv-track { position: relative; height: 8px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 5px; }

.ltv-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--accent); opacity: 0.55; transition: width 0.5s ease; }

.ltv-cap { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; }

.ltv-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); font-family: var(--mono); margin-bottom: 14px; }

.checks { display: flex; flex-direction: column; gap: 8px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; }

.check .ic { width: 16px; height: 16px; border-radius: 50%; flex: none; display: grid; place-items: center; margin-top: 3px; }

.check .ic.pass { background: var(--ok-soft); color: var(--ok); }

.check .ic.warn { background: var(--warn-soft); color: var(--warn); }

.check .ic.fail { background: var(--bad-soft); color: var(--bad); }

.check .ic svg { width: 10px; height: 10px; stroke-width: 3; }

.check .txt b { font-weight: 700; color: var(--ink-2); }

.check .txt span { color: var(--muted); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.pill { font-family: var(--mono); font-size: 10px; padding: 4px 8px; border-radius: 5px; background: var(--bad-soft); color: var(--bad); border: 1px solid rgba(220, 38, 38, 0.16); letter-spacing: 0.01em; }

.pill.neutral { background: var(--panel-2); color: var(--muted); border-color: var(--line); }

/* ---------- tables ---------- */

.tbl-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 12px; }

thead th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }

tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover { background: var(--panel-2); }

td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.tbl-name { font-weight: 600; color: var(--ink); }

/* ---------- geo ---------- */

.geo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.geo-cell { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); }

.geo-cell .k { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }

.geo-cell .v { font-family: var(--mono); font-size: 16px; font-weight: 700; margin-top: 3px; }

.geo-note { font-size: 11.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; }

.geo-unavailable { font-size: 12px; color: var(--muted); background: var(--panel-2); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 14px 16px; line-height: 1.65; }

/* ---------- misc ---------- */

.empty { text-align: center; padding: 52px 26px; color: var(--muted); font-size: 13px; line-height: 1.7; }

.empty .big { font-size: 16px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }

.skeleton { background: linear-gradient(90deg, #eef1f5 25%, #f6f8fa 37%, #eef1f5 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }

@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; font-size: 12.5px; border: 1px solid; margin-bottom: 16px; }

.banner.ok { background: var(--ok-soft); border-color: rgba(5, 150, 105, 0.22); color: var(--ok); }

.banner.bad { background: var(--bad-soft); border-color: rgba(220, 38, 38, 0.22); color: var(--bad); }

.section-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }

.section-sub { font-size: 12px; color: var(--muted); margin-bottom: 18px; font-weight: 500; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 20px; }

.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-1); }

.kpi .k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }

.kpi .v { font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 5px; }

.kpi .d { font-size: 11px; color: var(--faint); margin-top: 3px; line-height: 1.5; }

.bar-row { display: grid; grid-template-columns: 200px 1fr 66px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }

.bar-row:last-child { border-bottom: none; }

.bar-row .lbl { color: var(--ink-2); }

.bar-track { height: 6px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }

.bar-track span { display: block; height: 100%; border-radius: 99px; background: var(--accent); opacity: 0.75; transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }

.bar-row .val { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.step { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--panel-2); position: relative; }

.step .n { font-family: var(--mono); font-size: 10px; color: var(--accent-dark); font-weight: 700; letter-spacing: 0.04em; }

.step .t { font-size: 12.5px; font-weight: 700; margin: 6px 0 5px; color: var(--ink); }

.step .d { font-size: 11px; color: var(--muted); line-height: 1.6; }

.step .tag { margin-top: 10px; display: inline-block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; padding: 3px 7px; border-radius: 4px; }

.step .tag.live { background: var(--ok-soft); color: var(--ok); }

.step .tag.plan { background: var(--warn-soft); color: var(--warn); }

.ledger-row { font-family: var(--mono); font-size: 11px; }

.hash { color: var(--muted); }

.note { font-size: 11.5px; color: var(--muted); line-height: 1.7; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: 10px; padding: 14px 16px; }

.note b { color: var(--ink-2); font-weight: 700; }

.note.warn { border-left-color: var(--warn); background: var(--warn-soft); }

.stack { display: flex; flex-direction: column; gap: 16px; }

.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.spread { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

/* ---------- responsive ---------- */

@media (max-width: 1320px) {
  .val-layout { grid-template-columns: 350px minmax(0, 1fr); }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .rail { width: 72px; flex-basis: 72px; }
  .brand { padding: 20px 12px; justify-content: center; }
  .brand-name, .brand-sub, .nav-label, .nav-item span, .nav-item .nav-count, .rail-foot { display: none; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .val-layout { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  main { padding: 20px 18px 48px; }
  .topbar { padding: 0 18px; }
  .hero { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .geo-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr 1fr 56px; }
}