/* Tally's own site: a scoreboard. Klein blue and signal yellow, heavy capitals, hard edges, big numbers.
   Nothing here is shared with the other apps' sites. */
:root {
  --page: #F3F2EE;
  --panel: #FFFFFF;
  --ink: #12141A;
  --muted: #4B4F5C;
  --rule: #12141A;
  --soft-rule: #D6D5CF;
  --blue: #002FA7;
  --on-blue: #FFFFFF;
  --yellow: #FFD500;
  --accent: #002FA7;
  --night: #12141A;
  --on-night: #F3F2EE;
  --on-yellow: #12141A;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0B0D14; --panel: #151925; --ink: #F1F2F6; --muted: #A7ADBD; --rule: #F1F2F6; --soft-rule: #2A3042; --blue: #1F4FD8; --accent: #FFD500; --night: #05060A;
  }
}
:root[data-theme="dark"] {
  --page: #0B0D14; --panel: #151925; --ink: #F1F2F6; --muted: #A7ADBD; --rule: #F1F2F6; --soft-rule: #2A3042; --blue: #1F4FD8; --accent: #FFD500; --night: #05060A;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.55 var(--sans); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 760px) { .wrap { padding-inline: 40px; } }

.caps { text-transform: uppercase; letter-spacing: -0.01em; font-weight: 900; line-height: 0.92; margin: 0; }
.hl { color: var(--yellow); }
.label { font: 600 0.78rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }

/* Header: a black strip like a timing board. */
.bar { background: var(--night); color: var(--on-night); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.brand img { width: 30px; height: 30px; }
.bar nav { display: flex; gap: 18px; }
.bar nav a { text-decoration: none; opacity: 0.75; }
.bar nav a:hover, .bar nav a[aria-current] { opacity: 1; box-shadow: inset 0 -3px var(--yellow); }

/* Hero: a full-bleed blue band, left-aligned capitals, the stat strip under it. */
.hero { background: var(--blue); color: var(--on-blue); background-image: repeating-linear-gradient(-55deg, transparent 0 22px, rgba(255,255,255,0.05) 22px 44px); }
.hero .wrap { display: grid; gap: 32px; padding-block: 48px 0; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.2fr 0.8fr; align-items: end; padding-block-start: 72px; } }
.hero h1 { font-size: clamp(3rem, 9.5vw, 6.2rem); }
.hero h1 .hl { white-space: nowrap; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 34em; margin: 22px 0 18px; opacity: 0.92; }
.flag { display: inline-block; background: var(--yellow); color: var(--on-yellow); padding: 8px 14px; margin-bottom: 40px; }
.hero .shot { align-self: end; justify-self: center; width: min(320px, 80%); }
.hero .shot img { border: 3px solid var(--ink); border-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-block: 3px solid var(--rule); background: var(--panel); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 20px 16px; border-right: 1px solid var(--soft-rule); border-bottom: 1px solid var(--soft-rule); }
@media (min-width: 760px) { .stat { border-bottom: 0; padding: 26px 24px; } .stat:last-child { border-right: 0; } }
.stat b { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 8px; color: var(--muted); }

/* Sections: a big index number, capitals, then the screenshot with a hard yellow offset. */
.section { display: grid; gap: 28px 64px; align-items: center; padding-block: 64px; border-bottom: 3px solid var(--rule); }
@media (min-width: 860px) { .section { grid-template-columns: 1fr 1fr; } .section.flip .shot { order: -1; } }
.index { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; color: var(--blue); }
:root[data-theme="dark"] .index { color: var(--yellow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .index { color: var(--yellow); } }
.index b { font-size: 3.4rem; font-weight: 900; line-height: 0.8; font-variant-numeric: tabular-nums; }
.section h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 18px; }
.section p { margin: 0 0 16px; color: var(--muted); max-width: 32em; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--soft-rule); }
.ticks li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--soft-rule); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 18px; width: 12px; height: 12px; background: var(--yellow); outline: 2px solid var(--rule); }
.shot { justify-self: center; width: min(300px, 86%); }
.section .shot img { border: 3px solid var(--ink); box-shadow: 14px 14px 0 var(--yellow); }

/* Privacy as a four-cell results board. */
.board { background: var(--night); color: var(--on-night); padding-block: 56px; }
.board h2 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: 28px; }
.cells { display: grid; gap: 2px; background: #2E3342; border: 2px solid #2E3342; margin: 0 0 24px; padding: 0; list-style: none; }
@media (min-width: 760px) { .cells { grid-template-columns: repeat(4, 1fr); } }
.cells li { background: var(--night); padding: 22px 18px; }
.cells strong { display: block; color: var(--yellow); font-weight: 900; text-transform: uppercase; margin-bottom: 6px; }
.cells span { opacity: 0.85; font-size: 0.95rem; }
.board a { color: var(--yellow); font-weight: 700; }

/* Text pages. */
.page { max-width: calc(46em + 80px); padding-block: 48px 64px; }
.page h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); margin-bottom: 14px; }
.page .meta { display: inline-block; background: var(--yellow); color: var(--on-yellow); padding: 6px 10px; margin-bottom: 32px; }
.page h2 { text-transform: uppercase; font-weight: 900; font-size: 1.25rem; letter-spacing: 0.02em; margin: 44px 0 12px; padding-top: 14px; border-top: 3px solid var(--rule); }
.page ul { padding-left: 1.2em; } .page li { margin-bottom: 8px; }
.page code { font-family: var(--mono); font-size: 0.9em; }
.table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 0.95rem; border-top: 2px solid var(--rule); }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--soft-rule); }
.table thead th { font: 600 0.78rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 600px) {
  .table, .table tbody, .table tr, .table td, .table th { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { border-bottom: 1px solid var(--soft-rule); padding: 10px 0; }
  .table td, .table th { border: 0; padding: 2px 0; }
}
.contact { border: 3px solid var(--rule); background: var(--panel); padding: 24px; margin: 8px 0 32px; box-shadow: 10px 10px 0 var(--blue); }
.contact h2 { border: 0; padding: 0; margin: 0 0 8px; }
.button { display: inline-block; background: var(--yellow); color: var(--on-yellow); font-weight: 900; text-transform: uppercase; text-decoration: none; padding: 14px 20px; border: 3px solid var(--ink); margin-top: 8px; }
.faq { counter-reset: q; }
.faq details { border-bottom: 1px solid var(--soft-rule); padding: 16px 0 16px 52px; position: relative; counter-increment: q; }
.faq details::before { content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 900 1.35rem/1 var(--sans); color: var(--blue); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .faq details::before { color: var(--yellow); } }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

.small { font-size: 0.88rem; color: var(--muted); }
.foot { background: var(--night); color: var(--on-night); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-block: 22px 32px; font-size: 0.9rem; }
.foot a { color: inherit; }
.foot nav { display: flex; gap: 18px; }

.lost { padding-block: 80px; }
.lost h1 { font-size: clamp(4rem, 18vw, 10rem); color: var(--blue); }
.lost p { font-size: 1.2rem; }

.acc { color: var(--accent); }
