:root {
  --ink: #11130f;
  --paper: #f4f2e9;
  --acid: #dfff45;
  --orange: #ff5c35;
  --mint: #62d8b1;
  --line: rgba(17, 19, 15, .22);
  --muted: #67695f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, sans-serif; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.topbar { height: 76px; padding: 0 max(24px, calc((100% - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); }
.brand { color: inherit; display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: var(--acid); border-radius: 50%; font: 500 13px DM Mono, monospace; }
.live-status { display: flex; align-items: center; gap: 8px; font: 500 11px DM Mono, monospace; letter-spacing: .08em; }
.live-status span { width: 8px; height: 8px; border-radius: 50%; background: #daa900; box-shadow: 0 0 0 4px rgba(218,169,0,.14); }
.live-status.is-live span { background: #169566; box-shadow: 0 0 0 4px rgba(22,149,102,.14); }

.hero { padding-top: 72px; padding-bottom: 68px; }
.eyebrow, .section-heading > span { font: 500 11px DM Mono, monospace; letter-spacing: .1em; }
h1 { max-width: 1000px; margin: 18px 0 42px; font-size: clamp(3rem, 7.6vw, 6.8rem); line-height: .91; letter-spacing: -.075em; }
h1 em { color: var(--orange); font-style: normal; }
.control-row { display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); gap: 16px; margin-bottom: 34px; }
.control-row label { display: grid; gap: 8px; }
.control-row label > span { font: 500 10px DM Mono, monospace; letter-spacing: .08em; }
select { width: 100%; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; padding: 14px 42px 14px 14px; cursor: pointer; }
select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.hero-result { display: grid; grid-template-columns: 1.15fr .85fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.formula { min-height: 230px; display: flex; align-items: center; gap: clamp(18px, 3vw, 48px); padding-right: 48px; border-right: 1px solid var(--ink); }
.formula div { display: grid; gap: 8px; }
.formula span, .ratio-block > span { font: 500 10px DM Mono, monospace; letter-spacing: .08em; color: var(--muted); }
.formula strong { font-size: clamp(2rem, 4.5vw, 4.4rem); letter-spacing: -.06em; }
.formula i { font-size: 2.2rem; font-style: normal; color: var(--muted); }
.ratio-block { min-height: 230px; padding: 34px 0 30px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ratio-block strong { margin: 4px 0 14px; font-size: clamp(3.1rem, 6.8vw, 6.4rem); line-height: 1; letter-spacing: -.075em; }
.verdict { padding: 8px 10px; color: var(--ink); background: var(--orange); font: 500 11px DM Mono, monospace; }
.verdict.is-below { background: var(--acid); }

.parity-wrap { padding-top: 42px; }
.scale-labels { margin-bottom: 9px; display: flex; justify-content: space-between; font: 500 9px DM Mono, monospace; color: var(--muted); }
.parity-scale { position: relative; height: 12px; background: rgba(17,19,15,.12); }
.parity-fill { position: absolute; inset: 0 auto 0 0; width: 70%; background: var(--orange); transition: width .4s ease, background .2s ease; }
.parity-reference { position: absolute; z-index: 2; left: 50%; top: -8px; bottom: -8px; width: 2px; background: var(--ink); }
.parity-marker { position: absolute; z-index: 3; left: 70%; top: 50%; width: 18px; height: 18px; border: 4px solid var(--paper); border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%); transition: left .4s ease; }
.parity-marker b { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font: 500 10px DM Mono, monospace; white-space: nowrap; }
.parity-wrap p { margin: 30px 0 0; font-size: 14px; color: var(--muted); }
.actions { margin-top: 38px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.primary-action, .secondary-action { min-height: 50px; padding: 0 18px; border: 1px solid var(--ink); cursor: pointer; font: 700 12px DM Mono, monospace; letter-spacing: .04em; }
.primary-action { background: var(--ink); color: var(--paper); }
.primary-action span { color: var(--acid); margin-left: 16px; }
.secondary-action { background: transparent; color: var(--ink); }
.text-action { padding: 12px; border: 0; background: transparent; text-decoration: underline; cursor: pointer; font-size: 12px; }

.ticker { overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--acid); }
.ticker > div { min-width: max-content; padding: 15px 0; display: flex; justify-content: center; align-items: center; gap: 20px; font: 500 11px DM Mono, monospace; }
.ticker strong { margin-right: 28px; }

.section { padding-top: 110px; padding-bottom: 110px; }
.section-heading { max-width: 720px; }
.section-heading h2 { margin: 14px 0 18px; font-size: clamp(2.5rem, 5.4vw, 5.4rem); line-height: .95; letter-spacing: -.065em; }
.section-heading p { max-width: 560px; color: var(--muted); line-height: 1.65; }
.comparison { margin-top: 62px; border-top: 1px solid var(--ink); }
.comparison-row { display: grid; grid-template-columns: 165px minmax(180px, 1fr) 110px 150px; align-items: center; gap: 24px; min-height: 94px; border-bottom: 1px solid var(--line); }
.comparison-name { font-weight: 800; }
.comparison-bar { height: 18px; background: rgba(17,19,15,.1); }
.comparison-bar i { display: block; height: 100%; max-width: 100%; background: var(--mint); }
.comparison-row.is-selected .comparison-bar i { background: var(--orange); }
.comparison-value { font: 500 22px DM Mono, monospace; }
.comparison-state { font: 500 10px DM Mono, monospace; text-align: right; }

.history-section { background: #dedbd0; }
.history-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; }
.history-legend { padding-bottom: 22px; display: flex; align-items: center; gap: 8px; white-space: nowrap; font: 500 9px DM Mono, monospace; }
.history-legend i { width: 22px; height: 4px; background: var(--orange); }
.history-legend span { width: 22px; margin-left: 12px; border-top: 1px dashed var(--ink); }
.chart-summary { margin-top: 62px; display: flex; align-items: baseline; gap: 18px; }
.chart-summary span { font: 500 11px DM Mono, monospace; }
.chart-summary strong { font-size: 32px; letter-spacing: -.05em; }
.chart-summary small { color: var(--muted); }
.history-chart { width: 100%; min-height: 400px; margin-top: 18px; }
.history-chart svg { width: 100%; height: auto; overflow: visible; }
.history-chart .grid { stroke: rgba(17,19,15,.18); stroke-width: 1; }
.history-chart .reference { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 7; }
.history-chart .area { fill: rgba(255,92,53,.11); }
.history-chart .series { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.history-chart .point { fill: var(--orange); stroke: #dedbd0; stroke-width: 4; cursor: pointer; }
.history-chart .point:focus { outline: none; stroke: var(--ink); }
.history-chart text { fill: var(--muted); font: 500 11px DM Mono, monospace; }
.history-chart .ref-label { fill: var(--ink); }
.chart-note { max-width: 760px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.correction-section { color: #fff4ed; background: #a8170b; border-top: 10px solid var(--ink); }
.danger-kicker { margin-bottom: 70px; padding: 13px 16px; display: flex; justify-content: space-between; gap: 20px; color: var(--ink); background: var(--acid); font: 700 11px DM Mono, monospace; letter-spacing: .08em; }
.danger-kicker span { animation: alert-blink 1.25s steps(2, end) infinite; }
.correction-head { display: grid; grid-template-columns: 1fr 260px; align-items: end; gap: 60px; }
.correction-section .section-heading > span { color: var(--acid); }
.correction-section .section-heading h2 { max-width: 900px; }
.correction-section .section-heading h2 em { color: var(--acid); font-style: normal; }
.correction-section .section-heading p { color: #ffd4c8; }
.pressure-number { padding: 24px 0 9px; display: grid; gap: 7px; border-top: 1px solid rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.6); }
.pressure-number span, .pressure-number small { font: 500 10px DM Mono, monospace; letter-spacing: .08em; }
.pressure-number strong { color: var(--acid); font-size: clamp(2.6rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -.07em; }
.pressure-number small { margin-bottom: 12px; color: #ffd4c8; }
.correction-board { margin-top: 68px; border-top: 2px solid #fff4ed; }
.correction-row { min-height: 132px; display: grid; grid-template-columns: 250px 190px minmax(160px, 1fr) 120px; align-items: center; gap: 28px; border-bottom: 1px solid rgba(255,255,255,.42); }
.correction-event { display: grid; gap: 5px; }
.correction-event span, .correction-event small { font: 500 10px DM Mono, monospace; }
.correction-event span { color: var(--acid); }
.correction-event small { color: #ffd4c8; }
.correction-values { display: flex; align-items: center; gap: 10px; font: 500 20px DM Mono, monospace; }
.correction-values span { opacity: .7; }
.correction-values i { color: var(--acid); font-style: normal; }
.correction-bar { height: 28px; background: rgba(17,19,15,.3); }
.correction-bar i { display: block; height: 100%; background: var(--acid); box-shadow: 8px 0 0 var(--ink); transition: width .4s ease; }
.correction-jump { color: var(--acid); font: 700 23px DM Mono, monospace; text-align: right; }
.correction-row.is-now { background: var(--ink); margin-inline: -18px; padding-inline: 18px; border-bottom: 0; }
.correction-row.is-now .correction-event span { color: var(--orange); }
.correction-punchline { margin-top: 76px; display: grid; gap: 5px; font-size: clamp(2rem, 5vw, 5rem); line-height: .92; letter-spacing: -.06em; }
.correction-punchline span { color: #ffd4c8; }
.correction-punchline strong { color: var(--acid); }
.correction-caveat { max-width: 940px; margin: 38px 0 0; color: #ffd4c8; font: 400 11px/1.75 DM Mono, monospace; }
.correction-caveat a { color: #fff4ed; }

.explainer { color: var(--paper); background: var(--ink); }
.explainer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.pressure-visual { margin: 52px 0 0; }
.cooker-motion { position: relative; isolation: isolate; }
.cooker-motion img { width: 100%; height: auto; display: block; filter: saturate(.9) contrast(1.03); transform-origin: 50% 78%; animation: cooker-rattle 3.8s ease-in-out infinite; }
.pressure-pulse { position: absolute; z-index: -1; left: 50%; top: 48%; width: 52%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,92,53,.2); transform: translate(-50%, -50%); animation: pressure-pulse 2.2s ease-out infinite; }
.pressure-visual figcaption { max-width: 440px; margin-top: 14px; color: #a9aaa4; font: 400 11px/1.6 DM Mono, monospace; }
.explain-copy { padding-top: 32px; font-size: 18px; line-height: 1.7; }
.explain-copy p { margin: 0 0 26px; color: #c8c9c1; }
.warning { margin-top: 48px; padding-top: 18px; display: grid; grid-template-columns: 140px 1fr; gap: 18px; border-top: 1px solid #55564f; font: 400 12px/1.8 DM Mono, monospace; }
.warning strong { color: var(--acid); }
.methodology { padding-bottom: 150px; }
.source-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.source-grid article { min-height: 290px; padding: 26px 28px 28px 0; }
.source-grid article + article { padding-left: 28px; border-left: 1px solid var(--ink); }
.source-grid article > span { font: 500 11px DM Mono, monospace; color: var(--orange); }
.source-grid h3 { margin: 42px 0 14px; font-size: 22px; }
.source-grid p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.source-grid a { color: var(--ink); font: 500 11px DM Mono, monospace; }
.source-grid code { font: 500 12px DM Mono, monospace; }
.updated { margin-top: 18px; color: var(--muted); font: 400 10px DM Mono, monospace; }

footer { padding: 44px 0; color: var(--paper); background: var(--ink); }
footer .shell { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 30px; }
footer p { color: #a9aaa4; font-size: 13px; }
footer a { color: var(--acid); font: 500 11px DM Mono, monospace; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 10; padding: 13px 16px; color: var(--paper); background: var(--ink); font: 500 11px DM Mono, monospace; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.share-dialog { width: min(680px, calc(100% - 28px)); padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); }
.share-dialog::backdrop { background: rgba(17,19,15,.7); }
.share-dialog-head { padding: 28px; display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--ink); }
.share-dialog-head span { font: 500 10px DM Mono, monospace; letter-spacing: .08em; }
.share-dialog-head h2 { margin: 8px 0 0; font-size: 28px; letter-spacing: -.045em; }
.share-dialog-head button { width: 40px; height: 40px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 24px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.share-grid button { min-height: 134px; padding: 18px; display: flex; align-items: flex-start; flex-direction: column; gap: 4px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.share-grid button:hover { background: var(--acid); }
.share-grid button:nth-child(3n) { border-right: 0; }
.share-grid b { margin-bottom: auto; font: 700 20px DM Mono, monospace; }
.share-grid span { font-weight: 800; }
.share-grid small { color: var(--muted); }
.share-dialog > p { margin: 0; padding: 18px 28px; color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1160px); }
  .topbar { height: 64px; padding-inline: 14px; }
  .hero { padding-top: 50px; }
  h1 { margin-bottom: 32px; }
  .control-row { grid-template-columns: 1fr; }
  .hero-result { grid-template-columns: 1fr; }
  .formula { min-height: 150px; padding: 20px 0; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--ink); }
  .ratio-block { min-height: 180px; padding: 28px 0; }
  .comparison-row { grid-template-columns: 95px 1fr 82px; gap: 12px; min-height: 82px; }
  .comparison-state { display: none; }
  .explainer-grid { grid-template-columns: 1fr; gap: 30px; }
  .history-head { align-items: flex-start; flex-direction: column; }
  .history-legend { padding-bottom: 0; }
  .history-chart { min-height: 280px; overflow-x: auto; }
  .history-chart svg { min-width: 680px; }
  .chart-summary { margin-top: 38px; align-items: flex-start; flex-direction: column; gap: 4px; }
  .danger-kicker { margin-bottom: 48px; align-items: flex-start; flex-direction: column; }
  .correction-head { grid-template-columns: 1fr; gap: 34px; }
  .correction-row { padding: 26px 0; grid-template-columns: 1fr auto; gap: 18px; }
  .correction-values { justify-content: flex-end; font-size: 17px; }
  .correction-bar { grid-column: 1 / -1; order: 3; }
  .correction-jump { grid-column: 2; grid-row: 1; align-self: end; font-size: 18px; }
  .correction-row.is-now { margin-inline: -10px; padding-inline: 10px; }
  .correction-punchline { margin-top: 56px; }
  .explain-copy { padding-top: 0; }
  .source-grid { grid-template-columns: 1fr; }
  .source-grid article { min-height: 0; padding: 24px 0 30px; }
  .source-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink); }
  .source-grid h3 { margin-top: 22px; }
  footer .shell { grid-template-columns: 1fr; gap: 6px; }
  .share-grid { grid-template-columns: repeat(2, 1fr); }
  .share-grid button:nth-child(3n) { border-right: 1px solid var(--line); }
  .share-grid button:nth-child(2n) { border-right: 0; }
}

@keyframes cooker-rattle {
  0%, 72%, 100% { transform: rotate(0deg) translateX(0); }
  75% { transform: rotate(-.6deg) translateX(-2px); }
  78% { transform: rotate(.7deg) translateX(2px); }
  81% { transform: rotate(-.4deg) translateX(-1px); }
  84% { transform: rotate(.3deg) translateX(1px); }
  87% { transform: rotate(0deg) translateX(0); }
}
@keyframes pressure-pulse {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.72); }
  75%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}
@keyframes alert-blink { 50% { opacity: .42; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
