/* ==========================================================================
   SERPHeroes — inner page styles
   Loaded after style.css; relies on the same design tokens.
   ========================================================================== */

/* ---------- Active nav state ---------- */
.nav a[aria-current="page"] { color: var(--brand-600); background: color-mix(in srgb, var(--brand-500) 10%, transparent); font-weight: 600; }
[data-theme="dark"] .nav a[aria-current="page"] { color: var(--brand-300); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding-block: clamp(36px, 6vw, 68px) clamp(28px, 4vw, 48px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -60% -10% auto -10%; height: 460px; z-index: -2;
  background:
    radial-gradient(44% 60% at 20% 30%, color-mix(in srgb, var(--brand-400) 20%, transparent), transparent 70%),
    radial-gradient(40% 55% at 80% 10%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 68%);
  filter: blur(8px);
}
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-top: 16px; }
.page-hero__sub { margin-top: 18px; font-size: clamp(16px, 1.7vw, 18.5px); color: var(--text-2); max-width: 62ch; }
.page-hero__sub a { color: var(--brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.page-hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero--tight { padding-bottom: clamp(16px, 2vw, 24px); }

/* ---------- Breadcrumbs ---------- */
/* list-style:none is required: flexing an <ol> blockifies its items but they
   stay `display: list-item`, so the 1. 2. markers would still render. */
.crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-3);
  list-style: none; margin: 0; padding: 0;
}
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--brand-600); }
.crumbs [aria-current="page"] { color: var(--text-2); font-weight: 600; }

/* ---------- "Learn more" section link ---------- */
.section-more { margin-top: clamp(28px, 4vw, 40px); text-align: center; }
.section-more a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brand-600);
  padding: 10px 18px; border-radius: var(--r-full); border: 1px solid transparent;
  transition: border-color .18s, background-color .18s, gap .18s;
}
.section-more a:hover { border-color: color-mix(in srgb, var(--brand-500) 40%, transparent); background: color-mix(in srgb, var(--brand-500) 8%, transparent); gap: 12px; }
[data-theme="dark"] .section-more a { color: var(--brand-300); }

/* ---------- Metric cards ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.metric-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--brand-600); }
[data-theme="dark"] .metric-card h3 { color: var(--brand-300); }
.metric-card p { font-size: 14.5px; color: var(--text-3); }

/* ---------- Comparison table ---------- */
table.compare { min-width: 620px; }
.compare th { background: var(--bg-soft); }
.compare th small { display: block; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--text-3); margin-top: 3px; }
.compare td { font-size: 14px; }
.compare td:first-child { font-weight: 600; }
.compare td.yes { color: var(--pos); font-weight: 600; }
.compare td.no { color: var(--text-3); }

/* ---------- Numbered steps ---------- */
/* Same blockification caveat as .crumbs — this is an <ol>, so kill the markers. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.step__n { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--brand-500); letter-spacing: .1em; }
.step h3 { font-size: 17px; margin: 10px 0 8px; }
.step p { font-size: 14.5px; color: var(--text-3); }

/* ==========================================================================
   Team — editorial roster
   Rows rather than equal-height cards: bios differ a lot in length, and rows
   absorb that difference instead of leaving dead space under the short ones.
   ========================================================================== */

.roster-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.roster-head h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 16px; }
.roster-head p { margin-top: 16px; color: var(--text-3); font-size: clamp(16px, 1.6vw, 17.5px); max-width: 56ch; }

.roster { list-style: none; margin: 0; padding: 0; }

.roster__row {
  display: grid;
  grid-template-columns: 52px 168px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding-block: clamp(34px, 4.5vw, 52px);
}
.roster__row + .roster__row { border-top: 1px solid var(--border); }
.roster__row:first-child { padding-top: clamp(8px, 1.5vw, 16px); }
.roster__row:last-child { padding-bottom: clamp(8px, 1.5vw, 16px); }

/* Editorial index numeral */
.roster__index {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; color: var(--text-3); padding-top: 6px;
  display: block; position: relative;
}
.roster__index::after {
  content: ""; display: block; width: 22px; height: 1px; margin-top: 12px;
  background: var(--border-strong);
}
.roster__row--lead .roster__index { color: var(--brand-500); }
.roster__row--lead .roster__index::after { background: color-mix(in srgb, var(--brand-500) 50%, transparent); }

/* Portrait: the source images already carry a soft cream disc, so the halo
   below extends that instead of boxing it in. */
.roster__portrait {
  margin: 0; position: relative; width: 132px; justify-self: start;
}
.roster__row--lead .roster__portrait { width: 168px; }

.roster__portrait::before {
  content: ""; position: absolute; inset: -14%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--brand-400) 20%, transparent), transparent 66%);
  opacity: .9; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.roster__portrait::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; z-index: 2;
  border: 1px solid color-mix(in srgb, var(--brand-500) 20%, transparent);
  pointer-events: none; transition: inset .4s var(--ease), border-color .4s var(--ease);
}
.roster__portrait img {
  position: relative; z-index: 1; width: 100%; height: auto;
  border-radius: 50%; transition: transform .5s var(--ease);
}
.roster__row:hover .roster__portrait img { transform: scale(1.035); }
.roster__row:hover .roster__portrait::before { opacity: 1; transform: scale(1.06); }
.roster__row:hover .roster__portrait::after { inset: -13px; border-color: color-mix(in srgb, var(--brand-500) 34%, transparent); }

[data-theme="dark"] .roster__portrait::before { opacity: .45; }
[data-theme="dark"] .roster__portrait::after { border-color: color-mix(in srgb, var(--brand-400) 26%, transparent); }

/* Body */
.roster__body { padding-top: 2px; }
.roster__body h3 { font-size: clamp(20px, 2.3vw, 25px); letter-spacing: -.03em; }
.roster__row--lead .roster__body h3 { font-size: clamp(24px, 3vw, 32px); }
.roster__role {
  margin-top: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--brand-600);
}
[data-theme="dark"] .roster__role { color: var(--brand-300); }
.roster__bio {
  margin-top: 16px; font-size: 15.5px; line-height: 1.78; color: var(--text-2); max-width: 62ch;
}
.roster__row--lead .roster__bio { font-size: 16.5px; max-width: 64ch; }

/* Founder credentials strip */
.roster__facts { display: flex; flex-wrap: wrap; margin: 26px 0 0; }
.roster__facts > div { padding-right: clamp(24px, 3vw, 40px); }
.roster__facts > div + div {
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--border);
}
.roster__facts dt {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px;
}
.roster__facts dd {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 2.8vw, 30px); letter-spacing: -.035em; line-height: 1;
}
.roster__facts dd span { color: var(--brand-500); }

/* Tablet: index and portrait stack in the left column */
@media (max-width: 900px) {
  .roster__row { grid-template-columns: 132px minmax(0, 1fr); gap: 24px 28px; }
  .roster__index  { grid-column: 1; grid-row: 1; padding-top: 0; }
  .roster__portrait { grid-column: 1; grid-row: 2; }
  .roster__body   { grid-column: 2; grid-row: 1 / span 2; }
  .roster__row--lead .roster__portrait { width: 132px; }
  .roster__facts > div:first-child { padding-left: 0; }
}

/* Mobile: single column, portrait leads */
@media (max-width: 560px) {
  .roster__row { grid-template-columns: 1fr; gap: 14px; }
  .roster__index    { grid-column: 1; grid-row: 1; }
  .roster__portrait { grid-column: 1; grid-row: 2; width: 116px; }
  .roster__row--lead .roster__portrait { width: 132px; }
  .roster__body     { grid-column: 1; grid-row: 3; }
  .roster__facts { gap: 18px 0; }
  .roster__facts > div { padding-right: 20px; }
  .roster__facts > div + div { padding-left: 20px; }
  .roster__facts dd { font-size: 22px; }
}

/* ---------- Two column + values ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.value { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; }
.value h3 { font-size: 15px; margin-bottom: 6px; }
.value p { font-size: 13.5px; color: var(--text-3); }

/* ---------- Legal / prose ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (max-width: 880px) { .legal { grid-template-columns: 1fr; } }
.toc {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm);
}
@media (max-width: 880px) { .toc { position: static; } }
.toc h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 7px; }
.toc li { counter-increment: toc; font-size: 13.5px; }
.toc li::before { content: counter(toc) ". "; color: var(--text-3); font-family: var(--font-mono); font-size: 11.5px; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--brand-600); }

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(20px, 2.4vw, 24px); margin-top: 38px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
.prose p { margin-top: 14px; }
/* Keep these as block lists — `display: grid` would blockify the items and
   drop the bullets/numbers entirely. */
.prose ul, .prose ol { margin-top: 14px; padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { display: list-item; }
.prose li + li { margin-top: 9px; }
.prose li::marker { color: var(--brand-500); }
.prose a { color: var(--brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .prose a { color: var(--brand-300); }
.prose strong { color: var(--text); }
.prose__related { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-3); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__form-wrap h2 { font-size: clamp(22px, 3vw, 28px); }
.contact__lead { color: var(--text-3); margin-top: 8px; font-size: 15px; }

.form { margin-top: 26px; display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.field label span[aria-hidden] { color: var(--brand-500); }
.field .opt { font-weight: 500; color: var(--text-3); font-size: 12.5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); font-size: 15px;
  font-family: var(--font-body); transition: border-color .16s, background-color .16s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-500); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--neg); background: var(--neg-soft); }
.field__err { font-size: 13px; color: var(--neg); font-weight: 600; }
.form__status { font-size: 14px; min-height: 20px; }
.form__status.is-err { color: var(--neg); font-weight: 600; }
.form__status.is-ok { color: var(--pos); font-weight: 600; }

.contact__side { display: grid; gap: 14px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.side-card p { font-size: 14px; color: var(--text-3); }
.side-card__link { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--brand-600); word-break: break-all; }
.side-card__link:hover { text-decoration: underline; }
[data-theme="dark"] .side-card__link { color: var(--brand-300); }
.side-links { display: grid; gap: 9px; margin-top: 6px; }
.side-links a { font-size: 14.5px; color: var(--text-2); }
.side-links a:hover { color: var(--brand-600); }

/* ---------- Roadmap ---------- */
.roadmap-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 15px; border-radius: var(--r-full); border: 1px solid var(--border-strong);
  background: var(--surface); cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--brand-500); color: var(--brand-600); }
.chip[aria-pressed="true"] { background: var(--brand-500); border-color: var(--brand-500); color: #fff; box-shadow: var(--shadow-brand); }
.roadmap-count { font-size: 14px; color: var(--text-3); }
.roadmap-count b { color: var(--text); font-family: var(--font-display); }

.roadmap { display: grid; gap: 14px; }
.rm-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px 24px; box-shadow: var(--shadow-sm); border-left: 3px solid var(--border-strong);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.rm-item:hover { transform: translateX(3px); box-shadow: var(--shadow-md); }
.rm-item[data-priority="high"] { border-left-color: var(--brand-500); }
.rm-item[data-priority="medium"] { border-left-color: var(--gold); }
.rm-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.rm-item__head h2 { font-size: 18px; margin-right: auto; }
.rm-item p { font-size: 14.5px; color: var(--text-3); max-width: 76ch; }

/* ---------- Sitemap page ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 56px); }
.sitemap-col h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.sitemap-col ul { display: grid; gap: 14px; }
.sitemap-col li { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sitemap-col li a { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; }
.sitemap-col li a:hover { color: var(--brand-600); }
.sitemap-col li span { display: block; font-size: 13.5px; color: var(--text-3); margin-top: 3px; }

/* The CTA band used to lean on the footer's margin for its lower spacing.
   The footer no longer has one, so the section owns that space itself. */
.cta-section { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 8vw, 92px); }

/* ---------- Misc inner-page bits ---------- */
.chart-note { margin-top: 16px; font-size: 12.5px; color: var(--text-3); }
.f-card h3 a:hover { color: var(--brand-600); }
.f-card p a { color: var(--brand-600); font-weight: 600; }
.f-card p a:hover { text-decoration: underline; }
.footer__meta a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.footer__meta a:hover { color: var(--brand-600); }
