/* Locustep guide pages (states, comparisons, rankings). Same palette and type
   as the app and the legal pages. Generated pages: scripts/seo/build-pages.mjs */
:root {
  color-scheme: light dark;
  --paper: #F7F6F3;
  --card: #FFFFFF;
  --ink: #1E2A38;
  --soft: rgba(30, 42, 56, 0.72);
  --faint: rgba(30, 42, 56, 0.56);
  --accent: #2E2F7A;
  --accent-ink: #FFFFFF;
  --sage: #3F7A68;
  --gold: #9A5608;
  --win: rgba(63, 122, 104, 0.12);
  --line: rgba(30, 42, 56, 0.13);
  --tint: rgba(30, 42, 56, 0.04);
  --night: #141A22;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12171E;
    --card: #1A222C;
    --ink: #ECEEF2;
    --soft: rgba(236, 238, 242, 0.74);
    --faint: rgba(236, 238, 242, 0.56);
    --accent: #A5A6F0;
    --accent-ink: #0F1720;
    --sage: #6FC0A3;
    --gold: #F2A93B;
    --win: rgba(111, 192, 163, 0.14);
    --line: rgba(236, 238, 242, 0.13);
    --tint: rgba(236, 238, 242, 0.04);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: 'Manrope', system-ui, sans-serif; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3rem); font-weight: 800; margin: 0 0 0.9rem; letter-spacing: -0.025em; text-wrap: balance; }
/* A headline whose second sentence steps in, like the notch in the logo's L. */
h1 .step-1 { display: block; }
h1 .step-2 { display: block; padding-left: 0.62em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 800; margin: 3rem 0 1rem; }
h3 { font-size: 1.12rem; font-weight: 700; margin: 0 0 0.4rem; }
h4 { font-size: 1rem; font-weight: 700; margin: 0 0 0.25rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 0.5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--faint); }
.small { font-size: 0.9rem; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(8px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font: 800 1.08rem/1 'Manrope', system-ui, sans-serif; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand { color: #0A0A0B; }
.mk-l { fill: #0A0A0B; stroke: #0A0A0B; }
.mk-b { fill: #C46F12; }
@media (prefers-color-scheme: dark) { .brand { color: #FFFFFF; } .mk-l { fill: #FFFFFF; stroke: #FFFFFF; } .mk-b { fill: #F2A93B; } }
.topnav { display: flex; align-items: center; gap: 1.1rem; font-weight: 500; font-size: 0.95rem; }
.topnav a:not(.btn) { color: var(--soft); text-decoration: none; }
.topnav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 600px) { .topnav a:not(.btn):not(.nav-login) { display: none; } .topnav { gap: 0.9rem; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0.7rem 1.2rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 0.98rem/1.1 'Manrope', system-ui, sans-serif; text-decoration: none; border: 1px solid transparent; text-align: center; }
.btn:hover { filter: brightness(1.08); }
.btn-sm { min-height: 38px; padding: 0.5rem 0.95rem; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--tint); filter: none; }
.btn-gold { background: var(--gold); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-gold { color: #17120A; } }

/* hero */
.crumbs { font-size: 0.88rem; color: var(--faint); margin: 1.4rem 0 0; }
.crumbs a { color: var(--faint); }
.hero { padding: 2.2rem 0 1.2rem; max-width: 46rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.09em; font: 700 0.76rem/1.3 'Manrope', system-ui, sans-serif; color: var(--sage); margin: 0 0 0.8rem; }
.dek { font-size: 1.16rem; color: var(--soft); max-width: 42rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); gap: 0.8rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.05rem 0.9rem; display: flex; flex-direction: column; }
.tile p { margin: 0; }
.tile-l { font-size: 0.86rem; color: var(--soft); font-weight: 600; }
.tile-v { font: 800 1.7rem/1.15 'Manrope', system-ui, sans-serif; margin: 0.3rem 0 0.15rem !important; font-variant-numeric: tabular-nums; }
.tile-v small { font-size: 0.95rem; font-weight: 700; color: var(--soft); }
.tile-s { font-size: 0.84rem; color: var(--faint); line-height: 1.4; }
.tile-r { font-size: 0.88rem; font-weight: 600; margin-top: 0.55rem !important; }
.tile-r a { text-decoration: none; }
.tile-src { font-size: 0.74rem; color: var(--faint); margin-top: auto !important; padding-top: 0.6rem; line-height: 1.35; }
.tile-src a { color: var(--faint); }

/* prose and lists */
.prose { max-width: 46rem; }
.verdict { padding: 0; list-style: none; margin: 0; }
.verdict li { padding: 0.75rem 0 0.75rem 1.1rem; border-bottom: 1px solid var(--line); position: relative; }
.verdict li::before { content: ''; position: absolute; left: 0; top: 1.3rem; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.note { background: var(--tint); border-left: 3px solid var(--gold); padding: 0.8rem 1rem; border-radius: 0 10px 10px 0; font-size: 0.95rem; }
.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a { display: inline-block; padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--card); font-size: 0.93rem; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font: 700 0.82rem/1.3 'Manrope', system-ui, sans-serif; color: var(--soft); text-transform: uppercase; letter-spacing: 0.05em; background: var(--tint); }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody th { font-weight: 600; }
table.compare td.win { background: var(--win); font-weight: 700; }
table.rank tr.top td:first-child { color: var(--sage); font-weight: 800; }
table.plans td { text-align: center; width: 6.5rem; }
.tick { color: var(--sage); font-weight: 800; }
.dash { color: var(--faint); }
.src-inline { display: block; font-weight: 400; font-size: 0.74rem; line-height: 1.35; margin-top: 0.2rem; }
.src-inline a { color: var(--faint); }
.src { font-size: 0.82rem; color: var(--faint); margin-top: 0.6rem; }
.src a { color: var(--faint); }

/* cities */
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0.8rem; }
.city { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.city p { font-size: 0.95rem; margin-bottom: 0.5rem; }
.city-rent { font-size: 0.9rem !important; color: var(--soft); }
.two-col { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.two-col .city { margin-bottom: 0.7rem; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* calls to action */
.cta { margin: 2.6rem 0; padding: 1.5rem; border-radius: 18px; background: var(--night); color: #ECEEF2; display: grid; gap: 1rem; }
.cta h2 { margin: 0 0 0.4rem; font-size: 1.35rem; color: #fff; }
.cta p { margin: 0; color: rgba(236, 238, 242, 0.8); }
.cta .btn { background: #A5A6F0; color: #0F1720; }
.cta .btn-ghost { background: transparent; color: #ECEEF2; border-color: rgba(236, 238, 242, 0.3); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
@media (min-width: 760px) { .cta { grid-template-columns: 1fr auto; align-items: center; padding: 1.8rem 2rem; } }
@media (prefers-color-scheme: dark) { .cta { background: #1F2A36; } }
.premium-band { margin: 2.6rem 0; padding: 1.5rem; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 7%, var(--card)); max-width: 46rem; }
.premium-band h2 { margin: 0 0 0.6rem; font-size: 1.3rem; }
.premium-band .eyebrow { color: var(--gold); }

/* steps, grids */
.steplist { list-style: none; counter-reset: s; padding: 0; margin: 0; max-width: 46rem; }
.steplist li { counter-increment: s; position: relative; padding: 0 0 1.4rem 3.2rem; }
.steplist li::before { content: counter(s); position: absolute; left: 0; top: -0.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 800 0.98rem/1 'Manrope', system-ui, sans-serif; }
.steplist .how { font-size: 0.93rem; color: var(--soft); background: var(--tint); padding: 0.6rem 0.8rem; border-radius: 10px; }
.start-grid, .kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.8rem; }
.start-grid > div, .kit > article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.start-grid ul, .kit ul { margin: 0; padding-left: 1.1rem; font-size: 0.95rem; }
.kit { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.kit li { margin-bottom: 0.35rem; }
.fit-list { padding-left: 1.2rem; max-width: 46rem; }
.fit-list li { margin-bottom: 0.4rem; }
.rank-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.rank-list li { display: flex; flex-direction: column; padding: 0.75rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.rank-list a { font-weight: 600; text-decoration: none; }
.rank-list .muted { font-size: 0.88rem; }
.compare-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0 1.4rem; }
.compare-index h2 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
.compare-index ul { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.compare-index li { padding: 0.2rem 0; }

/* faq, sources */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; padding-right: 1.6rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0.2rem; top: -0.1rem; font-size: 1.3rem; color: var(--faint); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0.6rem 0 0; color: var(--soft); }
.sources { max-width: 46rem; font-size: 0.88rem; color: var(--faint); }
.sources h2 { font-size: 1.1rem; }
.sources a { color: var(--faint); }
.sources ul { padding-left: 1.1rem; }

/* footer */
.foot { margin-top: 4rem; border-top: 1px solid var(--line); padding: 2.4rem 0 3rem; font-size: 0.93rem; color: var(--soft); }
.foot-cols { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0.2rem 0 0.7rem; color: var(--faint); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 0.4rem; }
.foot a { color: var(--soft); }
.foot .brand { margin-bottom: 0.7rem; }
.fine { margin-top: 2rem; font-size: 0.82rem; color: var(--faint); }
.fine a { color: var(--faint); }
.facts { list-style: none; padding: 0; margin: 0 0 1rem; }
.facts li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
