:root {
  color-scheme: light;
  --paper: #f2f5f0;
  --ink: #132c25;
  --text: #374e46;
  --rule: #cedacf;
  --dark: #132e26;
  --green: #137250;
  --lime: #d9eeae;
  --amber: #9a4a15;
  --brand: #101e55;
  --brand-link: #234bb2;
  font: 100%/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, .table-scroll:focus-visible {
  outline: 3px solid #a34d1b;
  outline-offset: 3px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1rem max(5vw, calc((100vw - 72rem) / 2));
  background: var(--brand);
  color: #f2f6ee;
}
.topbar a { text-decoration: none; }
.brand { font-weight: 800; }
.brand span { margin-left: .6rem; font-size: .85rem; font-weight: 600; color: #c7dcce; }
nav { display: flex; flex-wrap: wrap; gap: .45rem 1rem; font-size: .88rem; }
.topbar a:hover { text-decoration: underline; text-underline-offset: .3em; }
main, footer { max-width: 76rem; margin: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(9rem, 21vw, 16rem);
  align-items: start;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 2.5rem;
}
.intro-copy { max-width: 52rem; }
.intro-mark { display: block; width: 100%; height: auto; margin-top: 1rem; border-radius: 1.25rem; }
.testflight {
  margin-top: .8rem;
  border: 1px solid var(--rule);
  padding: .85rem;
  border-radius: .75rem;
  background: #fff;
  font-size: .86rem;
}
.testflight h2 { font-size: 1.14rem; letter-spacing: -.015em; }
.testflight p { margin-bottom: .55rem; }
.testflight ol { margin: 0; padding-left: 1.25rem; }
.testflight li + li { margin-top: .28rem; }
.audience { color: var(--brand-link); font-size: .84rem; font-weight: 730; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.06em;
}
h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.035em; margin-bottom: .65rem; }
h3 { margin-bottom: .5rem; }
p { color: var(--text); }
.intro-copy > p:not(.audience) { max-width: 46rem; }
.intro-copy > .lead { font-size: clamp(1.12rem, 2vw, 1.25rem); }
.protocol-steps { margin: 0 0 1rem; padding-left: 1.55rem; color: var(--text); }
.protocol-steps li { padding-left: .15rem; margin-bottom: .35rem; }
.protocol-steps li::marker { color: var(--brand-link); font-weight: 700; }
.intro-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--brand-link);
  font-weight: 750;
  text-underline-offset: .18em;
}
.panel {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 1.1rem;
  padding: clamp(1.15rem, 3.5vw, 2.25rem);
}
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.section-heading p { max-width: 43rem; margin-bottom: .6rem; }
.comparison-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem 1rem;
  margin-block: .6rem 1rem;
  padding: .65rem .8rem;
  border: 1px solid var(--rule);
  border-radius: .55rem;
}
.comparison-terms dt { font-weight: 760; color: var(--ink); }
.comparison-terms dd { font-size: .85rem; font-weight: 400; color: var(--text); }
.switch { display: flex; background: #e8eee7; padding: .25rem; border-radius: .65rem; gap: .2rem; }
.switch button {
  background: transparent;
  border: 0;
  border-radius: .45rem;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  padding: .55rem .9rem;
  cursor: pointer;
}
.switch button[aria-pressed="true"] { background: var(--dark); color: white; }
.strategy-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1.15rem; }
.strategy-card { background: #f0f5ed; border: 1px solid #d3dfd1; border-radius: .7rem; padding: 1rem; }
.strategy-card.shortage { background: #fff3e8; border-color: #f0d2b9; }
.service { margin: 0; font-size: clamp(1.18rem, 3vw, 1.8rem); font-weight: 760; color: var(--ink); letter-spacing: -.035em; }
.meter { background: #d6e3d6; height: .45rem; margin: .7rem 0 1.1rem; border-radius: 20px; overflow: hidden; }
.meter span { display: block; background: var(--green); height: 100%; }
.shortage .meter { background: #f0d0b8; }
.shortage .meter span { background: var(--amber); }
dl { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; }
dt { font-size: .81rem; color: var(--text); }
dd { margin: .15rem 0 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.condition-result { margin: .9rem 0 1.25rem; font-weight: 620; color: var(--ink); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 41rem; font-size: .88rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 750; font-size: 1rem; padding-block: .7rem .55rem; }
thead { background: var(--dark); color: #f2f5ef; }
th, td { text-align: right; padding: .65rem .7rem; border-bottom: 1px solid var(--rule); }
th:nth-child(-n+2), td:nth-child(2) { text-align: left; }
td:nth-child(2) { white-space: nowrap; }
.selected-condition { background: #f1f7ef; }
.table-note { margin: .85rem 0 0; }
.explain, .feedback { margin: clamp(2rem, 6vw, 4rem) 0; max-width: 57rem; }
details { border-bottom: 1px solid var(--rule); padding-block: .7rem; }
summary { font-weight: 750; cursor: pointer; }
details p { margin: .55rem 0 .2rem 1rem; }
.feedback { padding: 1.3rem 1.5rem; background: var(--lime); border-radius: .75rem; }
.feedback li { margin-bottom: .4rem; }
.feedback p { margin: .65rem 0 0; }
footer { padding-bottom: 1.8rem; color: var(--text); font-size: .83rem; }
@media (max-width: 37rem) {
  .topbar { flex-wrap: wrap; }
  .intro { grid-template-columns: 1fr; }
  .intro-mark { width: 8rem; margin-top: 0; border-radius: .8rem; }
  .testflight { max-width: 26rem; }
  .comparison-terms { grid-template-columns: 1fr; }
  .strategy-cards { grid-template-columns: 1fr; }
}

.native-screenshots { display: grid; gap: 1.4rem; margin-top: 1.35rem; }
.native-screenshots figure { margin: 0; min-width: 0; }
.native-screenshots figure + figure { width: min(100%, 47rem); }
.native-screenshots figure a { display: block; border-radius: .85rem; }
.native-screenshots img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: .85rem; }
.native-screenshots figcaption { margin-top: .55rem; color: var(--text); font-size: .95rem; line-height: 1.5; }
.native-chart-heading { margin-top: 2rem; }
.native-chart-screenshots figure + figure { width: 100%; }
.recorded-costs { margin-top: .75rem; }

.national-study-table table { min-width: 20rem; margin-top: .5rem; }
.national-study-table th:not(:first-child), .national-study-table td { text-align: right; white-space: normal; }
