:root {
  --bg: #0b0d10;
  --bg-2: #12151a;
  --card: #161a20;
  --line: #262b33;
  --text: #ecebe7;
  --muted: #9aa0a8;
  --gold: #c9a24b;
  --gold-2: #e3c77d;
  --good: #3fb950;
  --warn: #d29922;
  --bad: #f85149;
  --radius: 14px;
  --max: 1080px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--serif); font-size: 22px; color: var(--text); letter-spacing: .3px; }
.logo span { color: var(--gold); }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--gold-2); text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 12px; font-size: 15px; cursor: pointer; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
}

/* Hero */
.hero { padding: 110px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(201,162,75,.16), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 2.5px; font-size: 13px; font-weight: 600; margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 18px; }
h1 { font-size: clamp(40px, 6vw, 64px); }
h1 em { font-style: normal; color: var(--gold); }
h2 { font-size: clamp(28px, 3.6vw, 38px); }
h3 { font-size: 22px; }
.lead { font-size: 20px; color: var(--muted); max-width: 580px; margin: 0 0 32px; }

.portrait {
  aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #1b1f26, #0f1216);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(201,162,75,.12) inset;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.monogram { font-family: var(--serif); font-size: 110px; color: var(--gold); opacity: .9; }

@media (max-width: 860px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
}

/* Buttons */
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--gold); color: var(--bg); background: var(--gold);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; background: var(--gold-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--gold-2); }
.btn.ghost:hover { background: rgba(201,162,75,.1); }

/* Sections */
section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(201,162,75,.5); }
a.card { display: block; color: var(--text); }
a.card:hover { text-decoration: none; transform: translateY(-2px); }
.card .tag { color: var(--gold); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.card h3 { margin: 10px 0 10px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .more { display: inline-block; margin-top: 16px; color: var(--gold-2); font-size: 15px; font-weight: 600; }

/* Page header */
.page-head { padding: 90px 0 50px; }
.page-head p { color: var(--muted); font-size: 19px; max-width: 680px; margin: 0; }

/* Prose */
.prose { max-width: 720px; }
.prose p { margin: 0 0 22px; }
.prose h2 { font-size: 28px; margin-top: 44px; }
.prose ul { padding-left: 22px; margin: 0 0 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: #fff; }
.callout {
  border-left: 3px solid var(--gold); background: var(--card); padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 28px 0; color: var(--text);
}
.byline { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.signoff { color: var(--muted); font-style: italic; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 40px; }

/* Focus areas list */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 10px; }
@media (max-width: 700px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.pillar h3 { font-size: 19px; margin-bottom: 6px; color: var(--gold-2); }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }

/* Contact */
.contact-list { display: grid; gap: 14px; max-width: 560px; }
.contact-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; color: var(--text);
}
.contact-item:hover { border-color: var(--gold); text-decoration: none; }
.contact-item .label { color: var(--muted); font-size: 14px; }
.contact-item .value { font-weight: 600; }
.contact-item .arrow { color: var(--gold); font-size: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-2); }

/* Dashboard */
.risk-banner {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  margin-bottom: 28px;
}
@media (max-width: 700px) { .risk-banner { grid-template-columns: 1fr; } }
.risk-score { text-align: center; min-width: 170px; }
.risk-score .big { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--text); }
.risk-score .of { color: var(--muted); font-size: 14px; margin-top: 6px; }
.risk-level { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 999px; margin-bottom: 12px; }
.risk-banner h2 { font-size: 28px; margin-bottom: 8px; }
.risk-banner p { color: var(--muted); margin: 0; }
.meter { display: flex; gap: 4px; margin-top: 18px; }
.meter span { flex: 1; height: 10px; border-radius: 4px; background: var(--line); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.tile .name { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.tile .value { font-family: var(--serif); font-size: 40px; line-height: 1.1; color: var(--text); }
.tile .asof { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.tile .what { font-size: 15px; color: var(--text); margin: 0 0 12px; }
.tile .rule { font-size: 13px; color: var(--muted); margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; align-self: flex-start; margin-bottom: 14px; }
.status.good { color: var(--good); background: rgba(63,185,80,.12); }
.status.warn { color: var(--warn); background: rgba(210,153,34,.14); }
.status.bad  { color: var(--bad);  background: rgba(248,81,73,.13); }

.data-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.data-table th, .data-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.table-wrap { overflow-x: auto; }
details.table-toggle { margin-top: 30px; }
details.table-toggle summary { cursor: pointer; color: var(--gold-2); font-weight: 600; }
.disclaimer { color: var(--muted); font-size: 14px; margin-top: 36px; }

/* Home 2x2 cards */
.cards.four { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cards.four { grid-template-columns: 1fr; } }
.nav { gap: 22px; }

/* AI prompt templates */
.prompts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .prompts { grid-template-columns: 1fr; } }
.prompt { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--gold-2); }
.copy-btn { background: transparent; border: 1px solid var(--gold); color: var(--gold-2); border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { background: rgba(201,162,75,.12); }
.prompt pre { margin: 0; padding: 18px; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.6; color: var(--text); }
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: 720px; }

/* ---- Simplified dashboard ---- */
.page-head.small { padding: 70px 0 30px; }
.risk-banner { display: block; text-align: center; padding: 44px 28px; }
.risk-banner .question { color: var(--muted); font-size: 18px; margin: 0 0 10px; }
.risk-banner .answer { font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); line-height: 1.15; display: inline-flex; align-items: center; gap: 16px; }
.risk-banner .sub { color: var(--muted); font-size: 18px; margin: 14px 0 0; }
.risk-banner .sub strong { color: var(--text); }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.answer .dot { width: 22px; height: 22px; }
.dot.good { background: var(--good); box-shadow: 0 0 0 6px rgba(63,185,80,.15); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 6px rgba(210,153,34,.15); }
.dot.bad  { background: var(--bad);  box-shadow: 0 0 0 6px rgba(248,81,73,.15); }
.legend { display: flex; justify-content: center; gap: 26px; color: var(--muted); font-size: 15px; margin: 0 0 24px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .dot { width: 10px; height: 10px; box-shadow: none; }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tile .name { font-size: 18px; color: var(--text); font-weight: 600; }
.tile .status { margin-bottom: 0; flex: none; }
.tile .value { margin: 14px 0 8px; }
.tile .what { color: var(--muted); font-size: 16px; }
.more-info { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.more-info summary { cursor: pointer; color: var(--gold-2); font-weight: 600; font-size: 15px; list-style: none; padding: 4px 0; }
.more-info summary::-webkit-details-marker { display: none; }
.more-info summary::after { content: " +"; }
.more-info[open] summary::after { content: " \2212"; }
.more-info p { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.more-info strong { color: var(--text); }
.table-toggle .muted { color: var(--muted); max-width: 720px; }
.disclaimer #updated { color: var(--text); }

/* Easier reading on phones */
@media (max-width: 600px) {
  body { font-size: 18px; }
  .wrap { padding: 0 20px; }
  .btn { padding: 15px 26px; font-size: 16px; width: 100%; text-align: center; }
  .tiles { grid-template-columns: 1fr; }
  .page-head { padding: 56px 0 30px; }
  section { padding: 56px 0; }
}
.risk-banner .answer { flex-wrap: wrap; justify-content: center; }
html, body { overflow-x: hidden; }

/* FAQ */
.faq { margin-top: 44px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--muted); margin: 0 0 18px; }
