/* Humanity Odds website (spec §17): the look of the app, dark, numbers in mono. */
:root {
  --bg: #0b0d10; --panel: #12151a; --line: #22262d; --text: #e8e6e1; --muted: #9aa0a6;
  --up: #ffb020; --down: #4dd0e1;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--down); }
a:focus-visible { outline: 2px solid var(--down); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--panel); padding: 6px 10px; z-index: 1; }

/* header */
.top { max-width: 760px; margin: 0 auto; padding: 16px 16px 0; display: flex; flex-wrap: wrap;
       align-items: baseline; gap: 4px 20px; }
.brand { color: var(--text); font-weight: 600; letter-spacing: .02em; text-decoration: none;
         margin-right: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .92rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.top nav.langs a[aria-current] { text-decoration: underline; text-underline-offset: 3px; }

main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-weight: 600; letter-spacing: .01em; margin: 0; font-size: 1.6rem; line-height: 1.25; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 10px; }
.tagline { color: var(--muted); margin: 4px 0 32px; }
.lead { margin: 10px 0 28px; }
.muted, .note { color: var(--muted); }
.note { font-size: .85rem; }
section { margin-top: 40px; }

/* the big number */
.hero { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--panel); }
.label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.big { font-family: var(--mono); font-size: clamp(2.4rem, 10vw, 3.8rem); margin: 6px 0 2px;
       line-height: 1.1; }
.sub { font-family: var(--mono); color: var(--muted); font-size: .92rem; }
.deltas { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 10px; font-family: var(--mono);
          font-size: .92rem; }
.deltas span.k { color: var(--muted); margin-right: 6px; font-family: system-ui, sans-serif; }
.up { color: var(--up); } .down { color: var(--down); }

/* charts: the SVG stretches, the labels are HTML */
figure.chart { margin: 20px 0 0; }
.plot { position: relative; height: 150px; margin: 10px 0 4px; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot .line { fill: none; stroke: var(--down); stroke-width: 2; stroke-linejoin: round;
              vector-effect: non-scaling-stroke; }
.plot .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot .dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
             background: var(--down); }
.plot .y { position: absolute; left: 0; font: .72rem var(--mono); color: var(--muted);
           background: var(--panel); padding: 0 4px 0 0; }
.plot .y.top { top: 4px; }
.plot .y.bottom { bottom: 4px; }
figure.chart .x { display: flex; justify-content: space-between; font: .72rem var(--mono);
                  color: var(--muted); }

/* scenario table */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.num { font-family: var(--mono); }
td .change { font-size: .8rem; }
th .sub-head { font-size: .7rem; }
td a { color: var(--text); text-decoration: none; }
td a:hover { text-decoration: underline; }
.badge { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px dashed var(--muted);
         border-radius: 4px; font-size: .66rem; color: var(--muted); letter-spacing: .06em;
         vertical-align: middle; }
@media (max-width: 520px) { th.hide, td.hide { display: none; } }

/* why it moved */
.moves { list-style: none; padding: 0; margin: 0; }
.moves > li { border-top: 1px solid var(--line); padding: 14px 0; }
.moves .head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.moves .head a { color: var(--text); font-weight: 600; text-decoration: none; }
.moves .when { color: var(--muted); font-size: .85rem; }
.moves .delta { font-family: var(--mono); font-size: .9rem; }
.moves p { margin: 6px 0 0; }
.stories { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.stories li { margin: 4px 0; }

/* scenario page */
figure.still { margin: 0 0 24px; }
figure.still img { width: 100%; height: auto; border-radius: 12px; display: block; }
figure.still figcaption { color: var(--muted); font-size: .75rem; margin-top: 4px; }
.sources { padding-left: 18px; }
.sources li { margin: 6px 0; }
.sources .value { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.faq dt { font-weight: 600; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

/* leaderboard */
.leaders { list-style: none; padding: 0; margin: 0; counter-reset: rank; }
.leaders li { border-top: 1px solid var(--line); padding: 14px 0; display: grid;
              grid-template-columns: 2.2em 1fr auto; gap: 2px 12px; }
.leaders li::before { counter-increment: rank; content: counter(rank); color: var(--muted);
                      font-family: var(--mono); grid-row: span 3; }
.leaders .who { font-weight: 600; }
.leaders .value { font-family: var(--mono); text-align: right; grid-row: span 2; }
.leaders .meta, .leaders .context { color: var(--muted); font-size: .9rem; grid-column: 2 / 4; }
.leaders .meta { grid-column: 2; }

/* get the app */
.get { border: 1px solid var(--down); border-radius: 12px; padding: 20px 24px 22px; margin: 0 0 32px;
       background: linear-gradient(135deg, rgba(77, 208, 225, .14), rgba(77, 208, 225, .03)); }
.get h2 { margin: 0; font-size: 1.3rem; }
.get p { margin: 6px 0 16px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.stores a { display: inline-block; line-height: 0; border-radius: 10px; }
/* both badges show 56 px of badge: the English file brings 41 of 250 px clear space on every
   side, the German one 29 px above and below; the negative margins align the visible edges */
.stores img { width: auto; }
.stores img.play-en { height: 84px; margin: -14px; }
.stores img.play-de { height: 73px; margin: -8px 0; }
.soon { display: inline-block; padding: 8px 14px; border: 1px dashed var(--muted); border-radius: 10px;
        color: var(--muted); font-size: .92rem; }

/* Pro: the badge, the notes, the box on the home page and the page itself */
.badge.pro { border: 0; background: var(--down); color: var(--bg); font-weight: 600; margin-left: 0; }
.pro-line { margin: 14px 0 0; font-size: .92rem; }
.pro-hint { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.pro-hint .badge, .pro-line .badge { margin-right: 4px; }
section.pro { border: 1px solid var(--down); border-radius: 12px; padding: 20px 24px; background: var(--panel); }
section.pro h2 { font-size: 1.2rem; margin-top: 6px; }
.benefits { padding-left: 20px; margin: 10px 0 16px; }
.benefits li { margin: 6px 0; }
.button { display: inline-block; padding: 9px 16px; border: 1px solid var(--down); border-radius: 10px;
          color: var(--text); text-decoration: none; }
.button:hover { background: rgba(77, 208, 225, .1); }
.headline { font-size: 1.25rem; margin: 6px 0 0; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px;
         grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 14px 40px;
        background: var(--panel); font-size: .95rem; position: relative; }
.card strong { font-weight: 600; }
.card::before { content: "✓"; color: var(--down); font-weight: 700; position: absolute; left: 16px; top: 14px; }
section.teaser h3 { font-size: 1.05rem; margin: 4px 0 8px; }
section.teaser .when { color: var(--muted); font-size: .85rem; margin: 0; }
.follow a { white-space: nowrap; }

/* the Community Forecast next to the model value */
/* the Radar's headline reading (spec §6.14) */
.instrument { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0 0 10px; }
.instrument .reading { font-size: 1.3rem; margin: 4px 0 2px; }
.instrument .note { margin-top: 4px; }

.pair { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 6px 0 12px; }
.pair div { display: flex; flex-direction: column; }
.pair .k { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.pair .v { font-family: var(--mono); font-size: 1.6rem; }

/* footer */
footer { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; color: var(--muted); font-size: .85rem; }
footer .rule { border-top: 1px solid var(--line); padding-top: 16px; }
footer p { margin: 8px 0; }
footer .marks { font-size: .75rem; }
