:root {
  color-scheme: dark;
  --paper: #151c24;
  --surface: #202b35;
  --ink: #f0f5f6;
  --muted: #aebec8;
  --edge: #33434e;
  --forest: #132821;
  --green: #78e9a7;
  --lime: #44df91;
  --soft: #253b38;
  --gold: #ffcf61;
  --radius: 1.25rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: var(--green); text-underline-offset: .19em; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #f1c76e; outline-offset: 4px; }
::selection { background: var(--lime); color: var(--forest); }
.frame { width: min(calc(100% - 2.5rem), 81rem); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 5; padding: .6rem 1rem; transform: translateY(-150%); background: var(--surface); }
.skip:focus { transform: translateY(0); }

.site-shell { display: grid; grid-template-columns: 13.4rem minmax(0, 1fr); min-height: 100vh; }
.site-header { align-self: start; position: sticky; top: 1rem; margin: 1rem 0 1rem 1rem; padding: .95rem; border: 1px solid var(--edge); border-radius: 1rem; background: var(--surface); }
.header-row { display: flex; align-items: start; justify-content: space-between; gap: .55rem; padding: .3rem 0 1.2rem; }
.brand { display: inline-flex; flex-direction: column; align-items: start; flex-shrink: 0; gap: .4rem; text-decoration: none; }
.brand img { width: 7.2rem; }
.site-nav nav { display: grid; gap: .24rem; }
.site-nav a { padding: .54rem .65rem; border: 1px solid transparent; border-radius: .5rem; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: .92rem; font-weight: 650; }
.site-nav a:hover { background: #293842; color: var(--ink); }
.site-nav a[aria-current] { border-color: #416353; background: var(--soft); color: var(--green); }
.age { display: inline-grid; width: 1.85rem; min-height: 1.85rem; place-items: center; flex-shrink: 0; border: 1px solid var(--edge); border-radius: .4rem; color: var(--muted); font-size: .71rem; font-weight: 800; }
.side-reference { margin-top: 1.13rem; padding: .9rem .2rem .15rem; border-top: 1px solid var(--edge); font-size: .8rem; }
.side-reference a, .top-link { color: var(--muted); text-decoration: none; }
.side-reference a:hover, .top-link:hover { color: var(--green); text-decoration: underline; }
.site-main { min-width: 0; }
.top-bar { display: flex; justify-content: end; align-items: center; gap: 1rem; width: min(calc(100% - 2.5rem), 81rem); margin: 0 auto; min-height: 4.25rem; border-bottom: 1px solid var(--edge); }
.top-link { padding: .5rem .85rem; border: 1px solid var(--edge); border-radius: .55rem; font-size: .86rem; font-weight: 720; }
.top-bar .button { min-height: 2.25rem; font-size: .86rem; }

.page-content { padding-block: 1.3rem 4rem; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.85rem); font-weight: 780; }
h2 { font-size: clamp(1.8rem, 3.7vw, 2.75rem); }
h3 { font-size: 1.15rem; }
.lede { font-size: clamp(1.06rem, 1.7vw, 1.23rem); line-height: 1.56; }
.muted, figcaption, .credit { color: var(--muted); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #3a5548;
  border-radius: 1.15rem;
  background: radial-gradient(ellipse at 0 100%, #254437, transparent 70%), #152720;
  color: #f6f9ee;
}
.hero-copy { min-width: 0; padding: clamp(1.5rem, 3.3vw, 3rem); align-self: center; }
.hero h1 { font-size: clamp(2.6rem, 4.3vw, 4rem); }
.hero-promo { margin-top: .8rem; color: #f2ebd6; font-size: 1.02rem; font-weight: 720; }
.hero-promo strong { display: block; margin-top: .12em; color: var(--gold); font-size: clamp(1.9rem, 3.4vw, 3.5rem); line-height: 1.1; letter-spacing: -.045em; }
.hero-promo span { white-space: nowrap; }
.hero-up-to { font-size: .55em; letter-spacing: 0; }
.hero .lede { max-width: 35ch; margin-top: .85rem; color: #dbe7d9; font-size: 1.05rem; }
.hero-media { position: relative; min-height: 22rem; overflow: hidden; background: #263831; }
.hero-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 78% 50%; }
.hero-media::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 3.6rem; background: linear-gradient(90deg, #152720b0, transparent); pointer-events: none; }
.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: 1.55rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.8rem; padding: .55rem 1rem; border: 1px solid transparent; border-radius: .55rem; text-decoration: none; text-align: center; font-weight: 750; line-height: 1.25; }
.button.primary { background: var(--lime); color: #10281e; }
.button.primary:hover { background: #83f2b7; }
.button.subtle { border-color: var(--edge); background: var(--surface); color: var(--ink); }
.button.subtle:hover { border-color: var(--green); }
.section { margin-top: clamp(2.5rem, 5vw, 4rem); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.home-shortcuts { margin-top: 1rem; }
.topic-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .28rem .65rem; align-content: start; min-width: 0; padding: .85rem 1.05rem; border: 1px solid var(--edge); border-radius: .75rem; background: linear-gradient(150deg, #293a43, var(--surface) 65%); color: var(--ink); text-decoration: none; }
.topic-card:nth-child(2) { background: linear-gradient(150deg, #3a3830, var(--surface) 68%); }
.topic-card:nth-child(3) { background: linear-gradient(150deg, #2b3349, var(--surface) 68%); }
.topic-card:nth-child(4) { background: linear-gradient(150deg, #233f3a, var(--surface) 68%); }
.topic-card:hover { border-color: var(--green); }
.topic-card strong { font-size: 1.12rem; line-height: 1.28; }
.topic-card span { grid-column: 1; color: var(--muted); font-size: .87rem; }
.topic-card .arrow { grid-area: 1 / 2 / span 2; align-self: center; color: var(--green); font-size: 1.13rem; line-height: 1; }
.split { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: start; gap: clamp(1.4rem, 4vw, 3.2rem); }
.lobby-section { align-items: center; }
.lobby-section .body-section, .info-grid .body-section { margin-top: 0; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.info-grid .callout { background: var(--surface); }
.info-links { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .8rem; font-size: .9rem; }
.callout, .offer-card { padding: clamp(1.05rem, 2.5vw, 1.7rem); border: 1px solid var(--edge); border-radius: var(--radius); background: var(--soft); }
.callout p, .offer-card p { margin-top: .65rem; }
.offer-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--surface); }
.offer-card .button { flex-shrink: 0; }
.offer-card h2 { font-size: 1.35rem; }
.evidence { min-width: 0; }
.evidence img { border-radius: .75rem; border: 1px solid var(--edge); background: var(--forest); }
.evidence figcaption { font-size: .83rem; padding-top: .55rem; }
.app-banner { max-width: 52rem; }

.article { max-width: 61rem; margin-inline: auto; }
.trail { display: flex; flex-wrap: wrap; gap: .55rem; color: var(--muted); font-size: .88rem; margin-bottom: 1.5rem; }
.article-head { max-width: 52rem; padding: clamp(.5rem, 2vw, 1.7rem) 0 1.6rem; }
.article-head h1 { font-size: clamp(2.35rem, 6vw, 4.5rem); overflow-wrap: anywhere; }
.article-head .lede { max-width: 53ch; margin-top: 1rem; color: var(--muted); }
.jumplinks { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.1rem 0 0; list-style: none; }
.jumplinks a { display: inline-block; padding: .35rem .67rem; background: var(--soft); border-radius: .45rem; text-decoration: none; font-size: .91rem; font-weight: 680; }
.jumplinks a:hover { text-decoration: underline; }
.body-section { margin: 2.35rem 0 0; scroll-margin-top: 1rem; }
.body-section h2 + *, .body-section h3 + * { margin-top: .65rem; }
.body-section p + p { margin-top: .8rem; }
.body-section h3 { margin-top: 1.35rem; }
.body-section ul, .body-section ol { padding-left: 1.4rem; }
.body-section li + li { margin-top: .52rem; }
.step-list { display: grid; gap: .8rem; list-style: none; padding: 0 !important; counter-reset: steps; }
.step-list li { counter-increment: steps; padding: 1rem 1rem 1rem 3.1rem; min-height: 3rem; position: relative; border: 1px solid var(--edge); border-radius: .8rem; background: var(--surface); }
.step-list li + li { margin-top: 0; }
.step-list li::before { content: counter(steps); position: absolute; top: .97rem; left: .95rem; width: 1.45rem; min-height: 1.45rem; border-radius: .4rem; background: var(--soft); color: var(--green); text-align: center; font-size: .87rem; font-weight: 800; }
.step-list strong { display: block; }
.compare { width: 100%; border-collapse: collapse; text-align: left; background: var(--surface); overflow-wrap: anywhere; }
.compare caption { text-align: left; padding-bottom: .55rem; font-size: .87rem; color: var(--muted); }
.compare th, .compare td { padding: .65rem .9rem; border: 1px solid var(--edge); vertical-align: top; }
.compare thead { background: var(--soft); }
.compare tbody th { font-weight: 650; }
.source-list { margin: .8rem 0 0; color: var(--muted); font-size: .91rem; }
.question-list { display: grid; gap: .55rem; margin-top: .8rem; }
.question-list details { padding: .85rem 1rem; border: 1px solid var(--edge); border-radius: .65rem; background: var(--surface); }
.question-list summary { color: var(--ink); font-weight: 700; cursor: pointer; }
.question-list details p { margin: .55rem 0 0; color: var(--muted); }
code { overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--edge); }
.footer-row { display: flex; align-items: start; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.7rem 6rem; color: var(--muted); font-size: .88rem; }
.footer-row strong { color: var(--ink); }

.floating-cta { display: flex; align-items: center; gap: .7rem; position: fixed; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 4; max-width: calc(100% - 2rem); padding: .52rem .65rem .52rem .85rem; border: 1px solid #49695c; border-radius: .75rem; background: #172e28; color: #eef6e7; box-shadow: 0 .65rem 2.1rem #00140f80; }
.floating-cta .caption { display: grid; line-height: 1.28; }
.floating-cta small { color: #c4d9bf; font-size: .74rem; }
.floating-cta .button { min-height: 2.1rem; padding: .32rem .55rem; color: #193520; background: var(--lime); font-size: .8rem; }
.floating-cta button { display: grid; place-items: center; width: 2.1rem; min-height: 2.1rem; padding: 0; border: 1px solid #6d806c; border-radius: .38rem; background: transparent; color: inherit; cursor: pointer; }
.floating-cta button:hover { background: #354a3b; }

@media (max-width: 69rem) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 59rem) {
  .site-shell { display: block; }
  .site-header { position: static; width: min(calc(100% - 1.6rem), 44rem); margin: .6rem auto 0; padding: .58rem .55rem .48rem; }
  .header-row { align-items: center; padding: .16rem 0 .42rem; }
  .brand { flex-direction: row; align-items: center; gap: .55rem; }
  .brand img { width: 6.3rem; }
  .site-nav nav { display: flex; flex-wrap: wrap; gap: .12rem; }
  .site-nav a { padding: .3rem .22rem; font-size: .77rem; }
  .side-reference { display: none; }
  .top-bar { width: min(calc(100% - 1.6rem), 44rem); min-height: 3.4rem; }
  .page-content { padding-top: .85rem; }
}
@media (max-width: 47rem) {
  .frame { width: calc(100% - 1.6rem); }
  .hero, .split, .info-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { border-radius: 1rem; }
  .hero-copy { padding: 1.5rem 1.25rem 1.25rem; }
  .hero h1 { font-size: clamp(2.25rem, 9.6vw, 3.35rem); }
  .hero-media { min-height: 0; aspect-ratio: 16 / 8.6; margin: 0 .55rem .55rem; border-radius: .6rem; }
  .hero-media img { object-position: 80% 50%; }
  .hero-media::after { content: none; }
  .offer-card, .footer-row { align-items: start; flex-direction: column; }
  .offer-card .button { max-width: 100%; }
  .floating-cta { right: .55rem; bottom: max(.55rem, env(safe-area-inset-bottom)); max-width: calc(100% - 1.1rem); gap: .43rem; padding: .38rem; }
  .floating-cta .caption { min-width: 0; }
  .floating-cta .caption strong { font-size: .81rem; }
  .floating-cta small { font-size: .69rem; }
  .floating-cta .button { font-size: .75rem; }
}
@media (max-width: 24rem) {
  .hero-promo strong { font-size: 1.7rem; }
  .article-head h1 { font-size: clamp(1.65rem, 7.35vw, 2.35rem); }
  .card-grid { gap: .45rem; }
  .topic-card { min-height: 0; padding: .75rem; }
  .topic-card strong { font-size: 1rem; }
  .topic-card span { font-size: .84rem; }
  .compare th, .compare td { padding: .42rem; font-size: .85rem; }
  .floating-cta .caption strong { display: none; }
}
