/* Page explanations; local sample states only. Existing form assets are untouched. */
.accent { color: var(--accent); }
.data-hero { overflow: clip; padding-block: clamp(3.4rem, 6vw, 6rem); }
.data-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr); gap: 3.2rem; align-items: center; }
.data-hero h1 { font-size: clamp(2.5rem, 4.2vw, 3.6rem); line-height: 1.06; letter-spacing: -0.04em; }
.home-hero h1 { font-size: clamp(2.8rem, 4.6vw, 3.9rem); }
.data-hero .lede { margin-top: 1.5rem; font-size: 1.08rem; }
.data-hero .hero-meta { gap: .6rem 1rem; font-size: .875rem; }
.data-hero .pill { line-height: 1.5; }
.data-scene { margin: 0; position: relative; min-width: 0; background: #091211; border: 1px solid #345047; border-radius: 20px; overflow: hidden; box-shadow: 0 28px 90px #0005; }
.scene-label { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .65rem; padding: 1.2rem 1.5rem; border-bottom: 1px solid #294238; }
.scene-label span:first-child { color: #7bf0bb; font-size: .92rem; font-weight: 550; }
.scene-label span:last-child { color: #c1cfc9; font: .65rem var(--mono); letter-spacing: .08em; }
.story-stage-area { padding: 1.5rem; min-height: 405px; display: grid; }
.story-stage { grid-area: 1 / 1; min-width: 0; }
.story-stage[hidden] { display: block; visibility: hidden; pointer-events: none; }
.story-controls[hidden] { display: none; }
.story-stage-heading { display: flex; align-items: flex-start; gap: .9rem; }
.story-number { display: grid; place-items: center; flex: 0 0 2rem; height: 2rem; border: 1px solid #347356; border-radius: 50%; color: #86f4c1; font: .8rem var(--mono); }
.story-stage h2 { margin: 0; font-size: 1.36rem; font-weight: 550; line-height: 1.25; letter-spacing: -.025em; }
.story-explanation { color: #c1cfc9; font-size: .93rem; line-height: 1.55; margin: .85rem 0 1.1rem; min-height: 4.3em; }
.story-visual { display: grid; gap: .9rem; }
.record-sheet { border: 1px solid #31493e; border-radius: 10px; background: #101b17; overflow: hidden; }
.record-sheet-title { display: flex; align-items: center; gap: .65rem; padding: .8rem .9rem; font-size: .85rem; }
.record-sheet-title > span:last-child { margin-left: auto; font: .72rem var(--mono); color: #b7c7bd; }
/* One vector geometry at every size: no independently stretched cylinder parts. */
.database-icon { display: inline-block; flex: 0 0 auto; width: 32px; height: 32px; aspect-ratio: 1; vertical-align: middle; background: url('./database.20260906.svg') center / contain no-repeat; }
.sample-records { width: 100%; min-width: 0; border-collapse: collapse; margin: 0; table-layout: fixed; }
.sample-records th, .sample-records td { padding: .7rem .75rem; text-align: left; border-bottom: 1px solid #2a4035; font-size: .77rem; color: #c9d7cf; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
.sample-records th { color: #b5c5bb; background: #0a140f; font-size: .68rem; font-weight: 500; }
.sample-records td:first-child { font-family: var(--mono); }
.sample-records th:last-child { width: 39%; }
.sample-records tr:last-child td { border-bottom: 0; }
.sample-records .record-focus td { background: #59491d42; color: #f7d590; }
.sample-records .record-corrected td { background: #2a765735; color: #8af1be; }
.story-tag { display: block; width: fit-content; max-width: 100%; border: 1px solid #315342; border-radius: 6px; padding: .5rem .65rem; font-size: .77rem; line-height: 1.45; color: #93f2c6; background: #11271c; }
.story-tag.amber { border-color: #715529; color: #f9d894; background: #2a2314; }
.change-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: .8rem; align-items: center; }
.change-pair > div { padding: .9rem 1rem; border: 1px solid #465139; border-radius: 10px; background: #172015; min-width: 0; }
.change-pair > div:last-child { border-color: #37674d; background: #10271b; }
.change-pair span { display: block; color: #c2ccbf; font-size: .75rem; }
.change-pair code { display: block; font-size: 1.35rem; color: #f4d699; margin-top: .4rem; }
.change-pair > div:last-child code { color: #89edb9; }
.change-pair > b { color: #82e7b0; font-size: 1.3rem; font-weight: 400; }
.story-checks { list-style: none; padding: 0; margin: .1rem 0; display: grid; gap: .5rem; font-size: .84rem; color: #d1ded6; }
.story-checks li { display: flex; gap: .55rem; }
.story-checks li > span { color: #87edb9; }
.story-receipt { border: 1px solid #426f56; border-radius: 10px; padding: .95rem 1rem; background: #11221a; position: relative; }
.receipt-heading { display: flex; align-items: center; gap: .65rem; font-size: .95rem; color: #93f6c3; margin-bottom: .8rem; padding-bottom: .75rem; border-bottom: 1px dashed #3d5d4a; }
.receipt-heading > span { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border: 1px solid #5d9676; border-radius: 50%; }
.story-receipt dl { display: grid; gap: .7rem; margin: 0; }
.story-receipt dl > div { display: flex; gap: 1rem; justify-content: space-between; font-size: .77rem; line-height: 1.45; }
.story-receipt dt { color: #b9ccbf; }
.story-receipt dd { margin: 0; color: #e2eee7; text-align: right; }
.story-tiles { display: grid; gap: .6rem; }
.story-tiles > div { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .9rem 1rem; border: 1px solid #334a3b; border-radius: 8px; background: #111f18; }
.story-tiles strong { font-size: .88rem; font-weight: 500; color: #e4eee7; }
.story-tiles span { color: #b8cfc0; font-size: .8rem; max-width: 55%; text-align: right; }
.story-controls { border-top: 1px solid #294238; padding: 0 1.3rem; }
.story-step-buttons { display: flex; gap: .25rem; }
.story-step-buttons button { flex: 1 1 0; min-width: 0; position: relative; border: 0; background: transparent; color: #bacbc0; padding: .85rem .15rem .65rem; font-family: inherit; font-size: .77rem; line-height: 1.3; cursor: pointer; min-height: 56px; border-top: 2px solid transparent; }
.story-step-buttons button span { display: block; font: .62rem var(--mono); margin-bottom: .35rem; }
.story-step-buttons button[aria-pressed="true"] { color: #94f7c9; border-top-color: #75edb1; }
.story-step-buttons button:hover { color: #f0fff5; background: #21463255; }
.motion-toggle { display: block; margin: .25rem 0 .65rem auto; padding: .35rem; background: none; color: #bfcec4; border: 0; font: inherit; font-size: .76rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; min-height: 40px; }
.motion-toggle:disabled { text-decoration: none; cursor: default; color: #b5c8bd; }
.data-scene figcaption { padding: .95rem 1.5rem; border-top: 1px solid #294238; background: #080f0b; }
.data-scene figcaption strong { display: block; font-size: .8rem; line-height: 1.45; font-weight: 400; color: #d5e3da; }
.data-scene figcaption > span { display: block; margin-top: .4rem; color: #aebfb3; font-size: .7rem; }
.has-story-motion .story-stage:not([hidden]) .story-visual { animation: story-arrive .45s ease-out both; }
.story-scene.is-paused .story-visual { animation-play-state: paused; }
@keyframes story-arrive { from { opacity: .65; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
/* Coverage illustrations use a common icon, spacing and metric hierarchy. */
.scope-visual { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: .45rem .9rem; padding: 1.1rem; border: 1px solid #386348; border-radius: 12px; background: #11291b; }
.scope-visual .database-icon { grid-row: span 2; width: 48px; height: 48px; }
.scope-visual > strong { font-size: 2.4rem; line-height: 1; font-weight: 550; font-variant-numeric: tabular-nums; color: #93f2bd; }
.scope-visual > span { color: #c3dacc; font-size: .8rem; line-height: 1.4; }
.table-dots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; grid-column: 1 / -1; width: min(100%, 19rem); margin-top: 1rem; }
.table-dots i { display: block; width: 100%; aspect-ratio: 6 / 5; background: url('./table.20260906.svg') center / contain no-repeat; }
.scope-visual b { grid-column: 1 / -1; color: #bce0c9; font-weight: 400; font-size: .8rem; margin-top: .25rem; }
.scope-total { display: flex; gap: .8rem; align-items: center; color: #95f5c2; padding: .25rem 0; }
.scope-total > strong { font-size: 2.6rem; line-height: 1.1; font-weight: 550; font-variant-numeric: tabular-nums; }
.scope-total > span { max-width: 12rem; font-size: .83rem; line-height: 1.4; color: #bfd6c8; }
.scope-sources { display: grid; gap: .55rem; }
.scope-source { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: .8rem; padding: .8rem .9rem; border: 1px solid #386348; border-radius: 10px; background: #11291b; }
.scope-source .database-icon { width: 36px; height: 36px; }
.scope-source strong { display: block; font-size: .85rem; line-height: 1.35; font-weight: 550; color: #e1eee6; }
.scope-source div > span { display: block; margin-top: .25rem; font-size: .76rem; line-height: 1.4; color: #c3dacc; }
.scope-source.reference { background: #101e19; border-color: #456856; }
.database-group { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; padding-bottom: .85rem; border-bottom: 1px solid #32563e; }
.database-node { display: grid; place-items: center; min-width: 0; padding: .75rem .2rem; border: 1px solid #386348; border-radius: 10px; background: #11291b; }
.database-node .database-icon { width: min(100%, 40px); height: auto; aspect-ratio: 1; }
.route-card { display: grid; gap: .5rem; text-align: center; border: 1px solid #6b5430; border-radius: 12px; padding: 1.6rem; background: #251f14; color: #f1d393; }
.route-card code { font-size: .9rem; }
.route-card strong { font-size: 4rem; line-height: 1.1; font-weight: 500; }
.route-card span { font-size: .85rem; }
.story-destinations { display: grid; gap: .7rem; }
.story-destinations a { padding: 1rem; border: 1px solid #3b6f51; border-radius: 8px; font-size: .9rem; color: #98f2c3; }
@media (max-width: 980px) {
  .data-hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .data-hero .hero-copy, .data-scene { width: 100%; max-width: 46rem; }
  .data-hero .lede { max-width: 43rem; }
  .data-hero h1, .home-hero h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
}
@media (max-width: 680px) {
  .data-hero { padding-block: 2.8rem; }
  .data-hero h1, .home-hero h1 { font-size: clamp(2.3rem, 9.1vw, 3.2rem); }
  .data-hero .hero-actions .btn { width: 100%; }
  .scene-label { padding: 1rem; }
  .story-stage-area { padding: 1.05rem; min-height: 430px; }
  .story-stage h2 { font-size: 1.18rem; }
  .story-explanation { font-size: .88rem; min-height: 5.4em; }
  .sample-records th, .sample-records td { padding: .7rem .4rem; font-size: .68rem; }
  .sample-records th { font-size: .65rem; }
  .record-sheet-title { font-size: .74rem; padding: .7rem; gap: .5rem; }
  .record-sheet-title > span:last-child { font-size: .64rem; }
  .story-controls { padding-inline: .75rem; }
  .story-step-buttons button { font-size: .73rem; }
  .change-pair { gap: .45rem; }
  .change-pair > div { padding: .8rem .65rem; }
  .change-pair code { font-size: 1.12rem; }
  .story-checks { font-size: .79rem; }
  .story-receipt { padding: .85rem .75rem; }
  .story-receipt dl > div { gap: .75rem; font-size: .72rem; }
  .story-tiles > div { gap: .7rem; padding: .8rem .75rem; }
  .story-tiles strong { font-size: .8rem; }
  .story-tiles span { font-size: .75rem; }
  .data-scene figcaption { padding: .9rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .has-story-motion .story-stage:not([hidden]) .story-visual { animation: none; } }
@media print { .story-controls { display: none; } .data-hero .hero-grid { display: block; } }

.comparison-block { margin-top: 3rem; }
.comparison-block > p { margin-top: 1rem; color: var(--muted-2); }
.comparison-block .table-scroll { margin-top: 1.6rem; }
.comparison-table { min-width: 0; table-layout: fixed; }
.comparison-table tbody th { text-align: left; color: var(--text); font-size: 1rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.comparison-table tbody td { color: var(--muted-2); }
.comparison-table th, .comparison-table td { overflow-wrap: anywhere; width: 50%; }
.why-refinery .section-head { max-width: 49rem; }
.connection-path { padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.connection-path + .connection-path { margin-top: 1.2rem; }
.connection-path > p { color: var(--muted-2); margin-top: 1.2rem; }
.connection-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1rem; align-items: center; margin-top: 1.2rem; }
.connection-flow > div { padding: 1rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-weight: 550; }
.connection-flow > div span { display: block; font-size: 0.875rem; font-weight: 400; color: var(--muted-2); margin-top: 0.4rem; }
.connection-flow > .source-node { border-color: var(--line-accent); color: var(--accent); }
.connection-flow > b { color: var(--accent); font-size: 1.4rem; font-weight: 400; }
.launch-card .plan-specs > div { min-height: 0; }
.launch-card .plan-specs > div:nth-child(1) { min-height: 8rem; }
.launch-card .plan-specs > div:nth-child(2) { min-height: 6rem; }
.launch-card .plan-specs > div:nth-child(3) { min-height: 8rem; }
.launch-card .plan-specs > div:nth-child(4) { min-height: 7rem; }
.launch-card .plan-specs > div:nth-child(5) { min-height: 10rem; }

@media (max-width: 960px) { .launch-card .plan-specs > div:nth-child(n) { min-height: 0; } }
@media (max-width: 680px) {
 .connection-path { padding: 1.2rem; }
 .connection-flow { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
 .connection-flow > b { text-align: center; transform: rotate(90deg); }
 .comparison-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .comparison-table tbody, .comparison-table tr, .comparison-table tbody th, .comparison-table tbody td { display: block; width: 100%; }
 .comparison-table tbody th { padding-bottom: .3rem; }
 .comparison-table tbody td { padding-top: .3rem; }
}

/* Source cleanup leads; the optional read path remains secondary. */
.secondary-gateway .gateway-aside { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #0b1110; }
.secondary-gateway h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: .7rem 0 1rem; }
.secondary-gateway p { max-width: 58rem; color: var(--muted-2); margin: 1rem 0; }
.secondary-gateway .connection-flow { margin: 1.5rem 0; }
.gateway-details { margin-top: 1.3rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.gateway-details summary { color: var(--accent); cursor: pointer; padding: .5rem 0; }
.gateway-details section { padding-block: 2rem; }
.gateway-details section .wrap { width: 100%; }
@media (max-width: 420px) { [data-core-story] .story-step-buttons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); } }
