:root {
  --bg: #f8f8f2;
  --surface: #efefe9;
  --border: #cdceca;
  --text: #232629;
  --muted: #60615d;
  --primary: #008e8e;
  --secondary: #700f98;
  --accent: #0082c9;
  --pale-teal: #e1eeea;
  --pale-purple: #eee6f0;
  --pale-blue: #e3edf2;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.6; }
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 820px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 5%, #008e8e0b, transparent 57%), linear-gradient(90deg, transparent 49.9%, #cdceca24 50%, transparent 50.1%); }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 4px; }
.site-header, .site-footer { max-width: 1120px; margin: 0 auto; padding: 27px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; font: 25px Georgia, serif; letter-spacing: -.7px; }
.wordmark-dot { color: var(--primary); font: 15px Georgia, serif; margin-left: 3px; }
.network { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.network span { color: var(--accent); font-size: 23px; }
main { max-width: 880px; margin: auto; padding: 0 24px; }
.intro { position: relative; text-align: center; padding-top: 78px; }
.arch { position: absolute; top: 12px; left: 50%; width: 472px; height: 435px; transform: translateX(-50%); border: 1px solid var(--border); border-radius: 250px 250px 0 0; z-index: -1; overflow: hidden; display: flex; opacity: .7; mask-image: linear-gradient(#000 0%, #000 23%, transparent 83%); }
.arch::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--border); border-radius: inherit; z-index: 1; }
.arch span { flex: 1; border-right: 1px solid #23262940; background: var(--pale-teal); transform: skewY(-24deg); transform-origin: top right; }
.arch span:nth-child(2) { background: var(--pale-purple); transform: skewY(24deg); }
.arch span:nth-child(3) { background: var(--pale-blue); transform: skewY(-24deg); border: 0; }
.arch i { position: absolute; top: 22px; left: 50%; width: 38px; height: 38px; border: 1px solid var(--border); transform: translateX(-50%) rotate(45deg); background: var(--bg); }
.eyebrow { text-transform: uppercase; letter-spacing: 2.1px; font-size: 10px; font-weight: 650; margin: 0 0 24px; color: var(--muted); }
h1 { font: normal clamp(43px, 6.5vw, 68px)/1.08 Georgia, serif; letter-spacing: -2.8px; margin: 0 0 24px; }
h1 em { color: #006e6e; font-weight: normal; }
.intro-copy { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 33px; }
form { text-align: left; max-width: 680px; margin: 0 auto; }
label { display: block; font-size: 12px; font-weight: 650; margin: 0 0 8px; }
.input-row { display: flex; padding: 5px; border: 1px solid #9fa7a2; background: var(--bg); border-radius: 9px; box-shadow: 0 6px 18px #23262905; }
.handle-wrap { position: relative; flex: 1; min-width: 0; }
.at-sign { position: absolute; left: 13px; top: 10px; color: var(--primary); font: 23px Georgia, serif; }
input { width: 100%; min-height: 48px; background: transparent; border: 0; border-radius: 4px; color: var(--text); padding: 10px 10px 10px 42px; font-size: 15px; }
input::placeholder { color: #747570; }
.primary { min-height: 48px; border: 1px solid #005f5f; background: #006c6c; color: #fff; padding: 10px 19px; border-radius: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s; }
.primary:hover { background: #005858; }
.primary span { margin-left: 14px; font-size: 18px; }
.input-help { margin: 10px 0 0; font-size: 11px; color: var(--muted); }
#suggestions { position: absolute; left: -5px; right: -5px; top: 51px; z-index: 5; list-style: none; margin: 0; padding: 5px; text-align: left; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); box-shadow: 0 10px 24px #23262916; }
#suggestions li { padding: 8px 10px; min-height: 48px; cursor: pointer; border-radius: 3px; overflow-wrap: anywhere; }
#suggestions li[aria-selected="true"], #suggestions li:hover { background: var(--pale-teal); }
#suggestions strong, #suggestions span { display: block; }
#suggestions strong { font-size: 13px; }
#suggestions span { font-size: 12px; color: var(--muted); }
.scan-controls { max-width: 680px; margin: 30px auto 16px; }
.progress-line { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.live-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
progress { width: 100%; height: 5px; border: 0; accent-color: var(--primary); display: block; margin: 11px 0; }
progress::-webkit-progress-bar { background: var(--surface); }
progress::-webkit-progress-value { background: var(--primary); }
.scan-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.scan-actions span { font-size: 11px; color: var(--muted); }
.text-button { background: none; padding: 6px 0; border: 0; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; color: var(--text); font-size: 12px; }
.secondary { border: 1px solid var(--border); border-radius: 5px; padding: 9px 14px; min-height: 44px; background: var(--surface); color: var(--text); font-size: 13px; }
.error { max-width: 680px; margin: 20px auto; padding: 15px 18px; background: var(--pale-purple); border: 1px solid var(--secondary); border-radius: 6px; font-size: 13px; overflow-wrap: anywhere; }
.results { max-width: 720px; margin: 30px auto 0; }
.period-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.period-controls > span { font: italic 17px Georgia, serif; color: var(--muted); }
.period-controls > div { display: flex; gap: 3px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.period-controls button { min-height: 44px; border: 1px solid transparent; border-radius: 3px; background: transparent; padding: 5px 17px; font-size: 12px; color: var(--muted); }
.period-controls button[aria-pressed="true"] { background: var(--bg); border-color: var(--border); color: var(--text); box-shadow: 0 1px 3px #23262908; }
.result-card { border: 1px solid #879995; border-radius: 100px 100px 12px 12px / 34px 34px 12px 12px; padding: 30px 38px 22px; background: var(--bg); position: relative; box-shadow: 0 12px 40px #23262905; overflow: hidden; }
.result-card::before { content: ""; position: absolute; left: 0; right: 0; height: 6px; top: 0; background: linear-gradient(90deg, var(--primary) 0 33%, var(--secondary) 33% 66%, var(--accent) 66%); opacity: .7; }
.card-top { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 27px; font-size: 11px; }
.card-brand { font: 16px Georgia, serif; }
.badge { border: 1px solid var(--border); background: var(--surface); padding: 3px 9px; border-radius: 20px; font-size: 10px; }
.identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.identity > div:last-child { min-width: 0; }
.medallion { flex: 0 0 48px; width: 48px; height: 53px; display: grid; place-items: center; border: 1px solid #008e8e60; border-radius: 25px 25px 6px 6px; background: var(--pale-teal); font: 23px Georgia, serif; color: #006464; }
.identity h2 { margin: 0; font: 23px Georgia, serif; overflow-wrap: anywhere; }
.identity p { margin: 3px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.stat { text-align: center; margin: 30px 0; }
.stat > p:first-child { font-size: 12px; color: var(--muted); margin: 0; }
.main-count { font: clamp(66px, 13vw, 108px)/1.2 Georgia, serif; font-variant-numeric: tabular-nums; letter-spacing: -4px; color: #006b6b; margin: 5px 0; overflow-wrap: anywhere; }
.date-range { overflow-wrap: anywhere; color: var(--muted); font-size: 10px; margin: 0; }
.zero-note { font-size: 12px; margin: 8px 0 0; }
.comparison { width: 100%; border-collapse: collapse; margin: 0 0 27px; table-layout: fixed; }
.comparison th { width: 77px; font-size: 12px; font-weight: 400; text-align: left; padding: 9px 8px 9px 0; }
.comparison td { padding: 9px 0; }
.comparison td:last-child { width: 85px; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.bar-track { height: 15px; background: var(--surface); border-radius: 2px 9px 2px 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); opacity: .5; transition: width .25s; }
tr[data-days="30"] .bar-fill { background: var(--secondary); }
tr[data-days="90"] .bar-fill { background: var(--accent); }
tr.selected .bar-fill { opacity: 1; }
tr.selected th, tr.selected td:last-child { font-weight: 700; }
.card-footer { border-top: 1px solid var(--border); padding-top: 15px; display: flex; justify-content: space-between; gap: 13px; font-size: 10px; color: var(--muted); }
.card-footer > div { display: flex; flex-direction: column; gap: 3px; }
.card-footer > div:last-child { text-align: right; }
.card-footer strong { color: var(--text); font-weight: 500; }
.result-note { margin: 15px 8px; color: var(--muted); font-size: 11px; text-align: center; }
details { font-size: 12px; color: var(--muted); padding: 16px 0; border-bottom: 1px solid var(--border); }
summary { min-height: 32px; cursor: pointer; color: var(--text); }
details p { line-height: 1.7; }
#coverage-text { white-space: pre-line; overflow-wrap: anywhere; }
.explanation { padding: 64px 0 36px; }
.section-rule { display: flex; align-items: center; gap: 18px; color: var(--muted); font: italic 15px Georgia, serif; text-align: center; }
.section-rule::before, .section-rule::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 37px 15px 0; }
.pane-icon { width: 42px; height: 53px; display: grid; place-items: center; border: 1px solid #23262950; border-radius: 24px 24px 3px 3px; font: 20px Georgia, serif; margin-bottom: 17px; }
.teal { background: var(--pale-teal); color: #006c6c; }
.purple { background: var(--pale-purple); color: var(--secondary); }
.blue { background: var(--pale-blue); color: #00679e; }
.explain-grid h2 { font: 20px Georgia, serif; margin: 0 0 10px; }
.explain-grid p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.source-note { text-align: center; font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 43px; }
.site-footer { margin-top: 12px; border-top: 1px solid var(--border); font-size: 10px; color: var(--muted); padding-top: 20px; padding-bottom: 24px; }
.site-footer > span:first-child { font: 15px Georgia, serif; }
.site-footer > span:last-child span { color: var(--primary); margin-left: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .site-header { padding: 20px 18px; }
  .wordmark { font-size: 22px; gap: 7px; }
  .wordmark-dot { display: none; }
  .network { font-size: 10px; gap: 4px; }
  main { padding: 0 16px; }
  .intro { padding-top: 68px; }
  .arch { width: 290px; height: 370px; top: 12px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.6px; }
  h1 { letter-spacing: -1.8px; font-size: clamp(38px, 8.5vw, 50px); }
  .intro-copy { font-size: 14px; }
  .input-row { flex-direction: column; gap: 4px; }
  .primary { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; }
  .primary span { margin: 0; }
  .input-help { font-size: 10px; line-height: 1.7; }
  .period-controls { flex-wrap: wrap; }
  .period-controls > span { font-size: 15px; }
  .period-controls button { padding: 5px 11px; }
  .result-card { padding: 26px 18px 18px; border-radius: 70px 70px 8px 8px / 27px 27px 8px 8px; }
  .card-top { margin-bottom: 22px; }
  .card-brand { font-size: 14px; }
  .badge { font-size: 9px; padding: 3px 7px; }
  .identity h2 { font-size: 21px; }
  .main-count { letter-spacing: -2px; }
  .comparison th { width: 64px; font-size: 11px; }
  .comparison td:last-child { width: 64px; font-size: 12px; }
  .date-range { font-size: 9px; }
  .card-footer { flex-direction: column; }
  .card-footer > div:last-child { text-align: left; }
  .explanation { padding-top: 44px; }
  .section-rule { font-size: 13px; gap: 10px; }
  .explain-grid { gap: 22px; grid-template-columns: 1fr; padding: 29px 10px 0; }
  .explain-grid > div { display: grid; grid-template-columns: 42px 1fr; column-gap: 17px; }
  .pane-icon { grid-row: 1 / 3; margin: 0; }
  .explain-grid h2 { font-size: 19px; margin-bottom: 5px; }
  .source-note { margin-top: 30px; }
  .site-footer { padding: 18px 16px; align-items: start; }
  .site-footer > span:last-child { max-width: 170px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
