/* Shared refinement of the existing Billions identity. */
:root { --radius-card: 16px; }
html { scroll-padding-top: calc(var(--header-height) + 24px); }
h2 { max-width: 20ch; font-size: clamp(2.25rem, 4.2vw, 4rem); line-height: 1.04; }
h3 { line-height: 1.15; }
.section-space { padding-block: clamp(56px, 7vw, 96px); }
.reveal, .reveal.is-visible { opacity: 1; transform: none; }
.image-frame, .plugin-hero-art img, .editorial-photo img, .module-art img { box-shadow: none; }
.site-nav a, .theme-button { min-height: 44px; }
.site-footer nav { flex-wrap: wrap; }
.site-footer nav a, .site-footer nav button { min-height: 44px; display: inline-flex; align-items: center; }
.button.primary { box-shadow: inset 0 1px rgba(255,255,255,0.25); }
.hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); }
.hero h1 { max-width: 15ch; font-size: clamp(2.8rem, 4.3vw, 4.5rem); line-height: 1.02; }
.hero-copy { gap: 20px; }
.format-line { font-size: 0.875rem; font-weight: 650; }
.format-line span { display: inline-block; color: var(--muted); margin-left: 16px; }
.hero-offer { width: 100%; padding: 20px 24px; border: 0; border-radius: 12px; background: var(--amber); color: var(--button-text); }
.hero-offer strong { font-size: clamp(3.7rem, 6vw, 5.4rem); letter-spacing: -0.04em; }
.hero-offer .offer-label, .hero-offer p { color: var(--button-text); }
.hero-offer p { font-family: inherit; font-size: 0.9rem; }
.product-frame { display: block; transition: border-color 180ms var(--ease); }
.product-frame:hover { border-color: var(--amber); }
.hero-caption { text-align: left; line-height: 1.6; letter-spacing: 0.02em; text-transform: none; font-family: inherit; font-size: 0.875rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading p { max-width: 30ch; color: var(--muted); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.benefit-grid article { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.benefit-label { color: var(--amber); font-size: 0.875rem; }
.benefit-grid h3 { margin-block: 16px 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.benefit-grid p { color: var(--muted); max-width: 40ch; }
.founder-preview-grid { gap: 64px; }
.credit-cloud { gap: 12px 24px; }
.credit-cloud span { font-size: clamp(1.2rem, 2vw, 2rem); letter-spacing: -0.03em; }
.plugin-hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; }
.plugin-hero h1 { font-size: clamp(3rem, 5.6vw, 5.8rem); }
.product-facts strong { font-size: 1.75rem; }
.product-facts dd span { margin-left: 10px; color: var(--muted); }
.tour-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.tour-image { position: relative; }
.tour-image img { width: 100%; border-radius: 12px; }
.tour-highlight { position: absolute; border: 3px solid var(--amber); border-radius: 8px; pointer-events: none; box-shadow: 0 0 0 999px rgba(0,0,0,0.3); }
.tour-image { overflow: hidden; border-radius: 12px; }
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tour-tabs button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); background: var(--surface); cursor: pointer; }
.tour-tabs button:hover { border-color: var(--amber); }
.tour-tabs button[aria-selected="true"] { background: var(--amber); color: var(--button-text); border-color: var(--amber); }
.tour-copy h3 { font-size: 1.8rem; margin-bottom: 16px; }
.tour-copy p { color: var(--muted); }
.tour-use { margin-top: 20px; color: var(--text) !important; }
.tour-note { font-size: 0.875rem; margin-top: 24px; }
.enlarge-link { display: inline-block; margin-top: 12px; }
.interface-viewer { width: min(1400px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--text); }
.interface-viewer::backdrop { background: rgba(0,0,0,0.8); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.interface-viewer img { width: 100%; height: auto; }
.interface-viewer .button { flex-shrink: 0; }
.sampler-system-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.sampler-system-copy { position: static; gap: 20px; }
.sampler-system-copy h2 { max-width: 18ch; font-size: clamp(2.25rem, 4vw, 3.75rem); }
.disclosures { border-top: 1px solid var(--line-strong); }
.disclosures details, .source-disclosure { border-bottom: 1px solid var(--line-strong); }
summary { cursor: pointer; padding: 20px 0; font-size: 1.05rem; font-weight: 650; }
summary::marker { color: var(--amber); }
details p { color: var(--muted); max-width: 65ch; padding-bottom: 24px; }
.module-explorer { padding-block: 64px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.module-art { min-height: 0; padding: 24px; background: var(--bg-deep); }
.module-panel { padding: 32px; }
.module-panel h2 { margin-bottom: 12px; font-size: clamp(2rem, 3.6vw, 3rem); }
.module-intro { color: var(--muted); margin-bottom: 24px; }
.module-tabs { gap: 8px; margin-bottom: 24px; }
.module-tabs button { min-height: 44px; font-size: 0.875rem; }
.module-detail > p:not(.module-name) { min-height: 0; }
.module-detail dl { margin-top: 24px; }
.module-detail dt, .module-detail dd { font-size: 0.875rem; }
.faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; }
.next-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 32px; }
.next-step h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.founder-header { position: sticky; }
.founder-hero { min-height: min(640px, 76dvh); }
.founder-hero-content { padding-block: 64px; }
.founder-hero h1 { max-width: none; font-size: clamp(3.5rem, 8vw, 6rem); }
.founder-intro { gap: 64px; }
.founder-statement p { margin-top: 24px; font-size: 1.1rem; }
.founder-stats { gap: 20px; }
.founder-stats dt { letter-spacing: -0.04em; }
.founder-stats dd { font-size: 1rem; }
.founder-stats div { grid-template-columns: 100px minmax(0, 1fr); gap: 24px; padding-bottom: 20px; }
.founder-editorial { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
.editorial-photo img { max-height: 340px; aspect-ratio: 4 / 3; }
.editorial-copy h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.editorial-copy blockquote { color: var(--text); }
.career-arc { padding-block: 56px; }
.career-arc h2 { max-width: 23ch; font-size: clamp(2.25rem, 4vw, 3.5rem); }
.career-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.career-card { min-height: 0; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: transparent; }
.career-card:last-child { grid-column: auto; }
.career-marker { font-size: 0.875rem; letter-spacing: 0.04em; }
.career-card h3 { margin-top: 24px; font-size: 1.5rem; }
.career-card > p:last-child { font-size: 1rem; margin-top: 12px; }
.selected-work-lead { margin-bottom: 32px; gap: 16px; }
.record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 0 32px; }
.record { min-height: 0; padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; gap: 10px; }
.record-featured { grid-row: auto; }
.record h3 { max-width: none; font-size: 1.8rem; }
.record > p, .record span { font-size: 0.9rem; color: var(--muted); }
.record-dark, .record-screen { color: var(--text); }
.record:hover { transform: none; }
.recognition { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; }
.recognition > h2 { margin: 0; }
.belief-grid { gap: 64px; }
.belief-grid blockquote { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.04em; max-width: 25ch; }
.sources { padding-block: 32px 56px; }
.sources p { margin-top: 12px; font-size: 1rem; }
.source-links a { font-size: 1rem; min-width: 0; overflow-wrap: anywhere; }
.account-hero { min-height: calc(80dvh - var(--header-height)); gap: 64px; }
.account-copy h1 { font-size: clamp(3rem, 6vw, 5rem); }
.account-console { padding: 32px; }
.account-console h2 { margin-block: 24px; font-size: 2.5rem; }
.account-console p { color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 1080px) {
  .hero, .plugin-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .tour-layout { grid-template-columns: 1fr; gap: 24px; }
  .tour-copy { max-width: 65ch; }
  .module-explorer { grid-template-columns: 1fr; }
  .module-panel { display: block; }
  .module-detail { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .hero, .plugin-hero, .benefit-grid, .founder-preview-grid, .sampler-system-grid,
  .faq, .next-step, .founder-intro, .founder-editorial, .career-grid,
  .recognition, .belief-grid, .account-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero, .plugin-hero { padding-block: 40px; min-height: auto; }
  .hero h1 { max-width: 16ch; font-size: clamp(2.7rem, 10.5vw, 3.75rem); }
  .hero-offer { gap: 16px; padding: 20px; display: flex; align-items: center; }
  .hero-offer strong { font-size: 4rem; }
  .hero-offer p { font-size: 0.875rem; }
  .format-line span { margin-left: 0; display: block; margin-top: 4px; }
  .section-heading { display: block; }
  .section-heading p, .section-heading a { margin-top: 16px; display: inline-block; }
  .credit-cloud { justify-content: flex-start; }
  .career-arc .shell { gap: 24px; }
  .record-grid { grid-template-columns: 1fr; }
  .source-links { grid-template-columns: 1fr; }
  .founder-hero { min-height: 480px; }
  .founder-hero-content { gap: 20px; padding-block: 40px; }
  .founder-hero h1 { font-size: 3.5rem; }
  .module-art, .module-panel { padding: 20px; }
  .module-tabs button { font-size: 0.875rem; }
  .account-hero { padding-block: 48px; }
  .site-footer nav { gap: 8px 20px; }
  .coming-link span { font-size: 0.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-highlight { transition: none; }
}
