/* Veritheia — site styles, from the Veritheia brand system */
:root {
  --surface: #FAF7F0;
  --surface-raised: #FFFFFF;
  --marble: #EFE9DD;
  --line: #E2DACA;
  --ink: #1D2230;
  --ink-muted: #5C584F;
  --gold: #AD8732;
  --gold-ink: #7A5B1A;
  --gold-soft: #F3E9D2;
  --on-gold: #1D2230;
  --aegean: #2F5566;
  --dark: #1D2230;
  --dark-text: #F2EDE3;
  --dark-muted: #CFC9BC;
  --dark-gold: #D1AE5E;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 2px;
  --radius-md: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
}
img { max-width: 100%; display: block; }
a { color: var(--aegean); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--aegean);
  outline-offset: 2px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.section { padding: 80px 0; }
.section.tight { padding: 64px 0; }
.band { background: var(--marble); }
.rule-top { border-top: 1px solid var(--line); }
.center { text-align: center; }

/* Type */
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-ink);
}
h1, h2, h3 { margin: 0; }
.display {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem); line-height: 1.07;
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 2vw + 1.25rem, 2.5rem); line-height: 1.15;
}
.h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 28px; line-height: 34px;
}
.h3-sans { font-size: 18px; line-height: 26px; font-weight: 600; }
.lead { font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: 640px; }
.muted { color: var(--ink-muted); }
p { margin: 0; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; line-height: 24px;
  padding: 13px 26px; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-sans);
}
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #9A7629; color: var(--on-gold); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--surface); }
.btn-dark-gold { background: var(--dark-gold); color: #14161D; }
.btn-dark-gold:hover { background: #E0C27E; color: #14161D; }
.link-strong { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }
.nav .btn, .nav .btn[aria-current="page"], .nav .btn:hover { padding: 9px 18px; color: var(--on-gold); text-decoration: none; }

/* Hero */
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 80px; }
.hero-text { flex: 999 1 540px; min-width: 0; }
.hero-art { flex: 1 1 260px; display: flex; justify-content: center; }
.hero-art .frame { width: 100%; max-width: 380px; aspect-ratio: 1 / 1; border-radius: var(--radius-md); background: var(--marble); display: flex; align-items: center; justify-content: center; }
.hero-art .frame img { width: 62%; }
.credential { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 620px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.credential img { width: 32px; height: 32px; flex: none; }
.page-hero .container { padding-top: 72px; padding-bottom: 56px; }

/* Grids and cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature svg { width: 32px; height: 32px; }
.feature > * + * { margin-top: 12px; }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card.featured { background: var(--gold-soft); border-color: var(--gold); }
.card .btn { margin-top: auto; align-self: flex-start; }
.grid-tiers .card .btn { align-self: stretch; text-align: center; font-size: 15px; padding: 13px 14px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.badge { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink); border: 1px solid var(--gold); border-radius: 999px; padding: 4px 12px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.price strong { font-family: var(--font-display); font-size: 44px; line-height: 48px; font-weight: 600; }
.price span { font-size: 14px; color: var(--ink-muted); }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; }
.checks li + li { margin-top: 10px; }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 3px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; background: var(--marble); }
tbody tr:last-child td { border-bottom: none; }
td.yes { color: var(--gold-ink); font-weight: 600; }
td.no { color: var(--ink-muted); }

/* About / founder */
.founder .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.headshot { flex: 1 1 260px; max-width: 360px; aspect-ratio: 4 / 5; border-radius: var(--radius-md); background: var(--marble); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-muted); font-size: 14px; }
.headshot { overflow: hidden; }
.headshot img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.founder-text { flex: 999 1 460px; min-width: 0; }
.founder-text > * + * { margin-top: 18px; }
.prose { max-width: 680px; }
.prose > * + * { margin-top: 18px; }
.creds { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.creds li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.creds svg { flex: none; width: 18px; height: 18px; margin-top: 4px; }

/* Story */
.emblems { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; text-align: left; margin-top: 40px; }
.emblem > * + * { margin-top: 14px; }
.emblem svg { width: 72px; height: 72px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { counter-increment: step; border-top: 2px solid var(--gold); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 600; color: var(--gold-ink); margin-bottom: 8px; }
.steps h3 { margin-bottom: 8px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-ink); font-size: 22px; line-height: 26px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-muted); }

/* Forms */
.form { max-width: 720px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; }
.form fieldset { border: none; margin: 0; padding: 0; }
.form legend { float: left; width: 100%; font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 600; margin-bottom: 14px; padding: 0; }
.form legend + * { clear: both; }
.form fieldset + fieldset { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field, .row + .field, .field + .row, .row + .row { margin-top: 18px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
label, .label { font-size: 14px; line-height: 20px; font-weight: 600; }
.hint { font-size: 13px; line-height: 20px; color: var(--ink-muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #B9B09D; border-radius: var(--radius-sm);
  padding: 11px 12px; width: 100%; min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 22px; }
.choice input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold-ink); flex: none; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 18px; }
.form-note { margin-top: 18px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--gold-soft); color: var(--ink); font-size: 15px; display: none; }
.form-status.show { display: block; }

/* Dark CTA */
.cta { background: var(--dark); color: var(--dark-text); }
.cta .container { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta p { color: var(--dark-muted); max-width: 640px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.site-footer img { height: 32px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero .container { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .card, .form { padding: 24px; }
}

.pronounce { margin: 18px auto 0; text-align: center; }
.pronounce .word { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 600; color: var(--ink); }
.pronounce .ipa { font-size: 15px; letter-spacing: 0.04em; color: var(--gold-ink); }
.pronounce .parts { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-muted); }

/* Sample report pages */
.sample-note { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--radius-md); padding: 14px 18px; font-size: 15px; line-height: 23px; max-width: 860px; }
.sample-note strong { color: var(--gold-ink); }
.sheet { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 48px; max-width: 860px; margin: 0 auto; box-shadow: 0 1px 2px rgba(29,34,48,.05), 0 12px 32px rgba(29,34,48,.06); }
.sheet > * + * { margin-top: 20px; }
.sheet h2 { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 36px; margin: 40px 0 0; text-wrap: balance; }
.sheet h3 { font-size: 17px; line-height: 24px; font-weight: 600; margin: 28px 0 0; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 24px; border-bottom: 2px solid var(--gold); }
.sheet-head .kicker { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 0; }
.sheet-head .client { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 600; margin: 6px 0 0; }
.sheet-head .meta { font-size: 14px; color: var(--ink-muted); margin: 0; text-align: right; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat { border-top: 1px solid var(--line); padding-top: 12px; }
.stat b { display: block; font-family: var(--font-display); font-size: 36px; line-height: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--ink-muted); }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(0, 15rem) 1fr 3rem; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.bars .track { display: block; height: 10px; background: var(--marble); border-radius: 999px; overflow: hidden; }
.bars .fill { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.bars.neg .fill { background: var(--aegean); }
.bars .pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.quote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); font-family: var(--font-display); font-size: 21px; line-height: 30px; font-style: italic; }
.quote cite { display: block; margin-top: 4px; font-family: var(--font-sans); font-style: normal; font-size: 13px; color: var(--ink-muted); }
.actions-list { list-style: none; margin: 0; padding: 0; counter-reset: act; }
.actions-list li { counter-increment: act; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.actions-list li::before { content: counter(act); grid-row: span 2; font-family: var(--font-display); font-size: 34px; line-height: 36px; font-weight: 600; color: var(--gold-ink); }
.actions-list b { font-size: 16px; }
.actions-list p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 23px; }
.rating { display: inline-block; font-size: 13px; line-height: 18px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.rating.strong { background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold); }
.rating.moderate { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.rating.weak { background: #E6EEF0; color: var(--aegean); border: 1px solid #B9CCD2; }
.locked { border: 1px dashed var(--line); border-radius: var(--radius-md); padding: 20px 24px; background: var(--surface); }
.locked p { margin: 0 0 10px; font-weight: 600; }
.locked ul { margin: 0; padding-left: 20px; color: var(--ink-muted); }
.sample-link { font-size: 15px; font-weight: 600; }
@media (max-width: 640px) {
  .sheet { padding: 24px 20px; }
  .sheet-head .meta { text-align: left; }
  .bars li { grid-template-columns: 1fr 3rem; }
  .bars .track { grid-column: 1 / -1; grid-row: 2; }
}

.research-note { border-left: 3px solid var(--gold); background: var(--gold-soft); padding: 16px 20px; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.research-note > p + p { margin-top: 6px; }
.research-note p:last-child { margin-bottom: 0; color: var(--ink); }

.research-note { display: flex; gap: 18px; align-items: center; }
.rc-card { flex: none; width: 150px; background: var(--dark); color: var(--dark-text); border-radius: var(--radius-md); padding: 12px 12px 14px; display: flex; flex-direction: column; align-items: flex-start; }
.rc-card .rc-dots { width: 100%; height: auto; display: block; margin-bottom: 6px; }
.rc-card b { font-family: var(--font-display); font-size: 44px; line-height: 44px; font-weight: 600; color: var(--dark-gold); font-variant-numeric: tabular-nums; }
.rc-card span { font-size: 12px; line-height: 16px; color: var(--dark-muted); margin-top: 2px; }
.rc-text { min-width: 0; }
.rc-text > p + p { margin-top: 6px; }
@media (max-width: 480px) { .research-note { flex-direction: column; align-items: flex-start; } }

.grid-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.grid-tiers .price strong { font-size: 40px; }

.card.tier-complete { background: #E7EFF1; border-color: #9FBBC4; }
.card.tier-complete .badge { color: var(--aegean); border-color: var(--aegean); }
.card.tier-complete .checks svg { stroke: var(--aegean); }

.checks .link-strong { font-weight: 600; }
.card-sub { margin-top: -8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--aegean); }

/* Founder photo caption */
.headshot-fig { flex: 1 1 260px; max-width: 360px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.headshot-fig .headshot { flex: none; max-width: none; width: 100%; }
.headshot-cap { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.headshot-cap strong { font-size: 16px; line-height: 22px; color: var(--ink); font-weight: 600; }

/* Insights */
.insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.insight-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.insight-card h2 a { color: var(--ink); text-decoration: none; text-wrap: balance; }
.insight-card h2 a:hover { color: var(--gold-ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.article .container { padding-top: 64px; padding-bottom: 80px; max-width: 760px; }
.art-title { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); text-wrap: balance; }
.art-dek { margin-top: 16px; }
.art-byline { margin-top: 18px; font-size: 14px; color: var(--ink-muted); }
.art-body { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 17px; line-height: 29px; }
.art-body > * + * { margin-top: 18px; }
.art-body h2 { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 36px; margin-top: 40px; text-wrap: balance; }
.art-body ul, .art-body ol { padding-left: 22px; }
.art-body li + li { margin-top: 8px; }
.art-body .quote { font-size: 21px; }
.art-cta { margin-top: 48px; background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--radius-md); padding: 24px 28px; }
.art-cta > p + p { margin-top: 8px; }
.art-sources { margin-top: 32px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.art-sources h2 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.art-sources ul { margin: 0; padding-left: 18px; }

.method-box { background: var(--surface-raised); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-md); padding: 20px 24px; }
.method-box > p + p { margin-top: 8px; font-size: 16px; line-height: 26px; }
.dist { margin: 8px 0 0; display: flex; flex-direction: column; gap: 14px; }
.dist-row { display: grid; grid-template-columns: 10rem 1fr; gap: 14px; align-items: center; }
.dist-label { display: flex; flex-direction: column; font-size: 14px; line-height: 20px; }
.dist-label span { color: var(--ink-muted); font-size: 13px; }
.dist-bar { display: flex; height: 34px; border-radius: var(--radius-sm); overflow: hidden; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dist-bar span { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; }
.b-low { background: #C9D7DC; color: var(--ink); }
.b-plain { background: #EFE9DD; color: var(--ink); }
.b-enth { background: #E9D9B0; color: var(--ink); }
.b-rave { background: #AD8732; color: #1D2230; }
.dist-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-muted); }
.dist-key i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); }
@media (max-width: 520px) { .dist-row { grid-template-columns: 1fr; gap: 6px; } }

.matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mx { border-radius: var(--radius-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 22px; border: 1px solid var(--line); }
.mx b { font-weight: 600; }
.mx span { color: var(--ink-muted); }
.mx-1 { background: #AD8732; border-color: #AD8732; } .mx-1 span { color: #1D2230; }
.mx-2 { background: #E9D9B0; } .mx-3 { background: #EFE9DD; } .mx-4 { background: var(--surface-raised); }

.short-version { background: var(--marble); border-radius: var(--radius-md); padding: 18px 22px; font-size: 16px; line-height: 25px; }
.short-version ul { margin: 8px 0 0; padding-left: 20px; }
.short-version li + li { margin-top: 6px; }
