:root {
  color-scheme: light dark;
  --page: #f2f4f3;
  --surface: #fcfdfc;
  --surface-2: #e7ebe9;
  --ink: #17201c;
  --muted: #53615a;
  --line: #cbd3cf;
  --accent: #d94f3d;
  --accent-ink: #fff8f5;
  --focus: #1c6e52;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #101512;
    --surface: #171d19;
    --surface-2: #202923;
    --ink: #edf2ef;
    --muted: #b2beb7;
    --line: #3a463f;
    --accent: #f0715f;
    --accent-ink: #21120f;
    --focus: #79d6b3;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-underline-offset: 0.2em; }
img { display: block; width: 100%; height: auto; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .8rem 1rem; background: var(--ink); color: var(--page); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { min-height: 70px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--page) 92%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 780; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 1.05rem; height: 1.05rem; border: 4px solid var(--accent); border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; white-space: nowrap; }
.nav-links a { color: var(--muted); font-size: .92rem; font-weight: 650; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.mobile-nav { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: stretch; min-height: min(740px, calc(100dvh - 70px)); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 4rem clamp(1rem, 5vw, 5rem) 4rem max(1rem, calc((100vw - 1180px) / 2)); }
.eyebrow { margin: 0 0 1rem; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.03; letter-spacing: -.045em; }
h1 { max-width: 12ch; margin-bottom: 1.2rem; font-size: clamp(3rem, 6vw, 6.5rem); }
.hero-copy > p:not(.eyebrow) { max-width: 34rem; margin: 0 0 1.75rem; color: var(--muted); font-size: 1.1rem; }
.hero-image { min-height: 500px; object-fit: cover; object-position: center; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; width: fit-content; padding: 0 1.15rem; border: 1px solid var(--ink); border-radius: 10px; background: var(--ink); color: var(--page); font-weight: 760; text-decoration: none; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(.98); }
.button.accent { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: .8rem; font-size: clamp(2.2rem, 5vw, 4.5rem); }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.filter-block { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; margin-bottom: 2rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .85rem; font-weight: 760; }
.field input { min-height: 50px; width: 100%; padding: 0 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.field small { color: var(--muted); }
.result-count { padding-bottom: .8rem; color: var(--muted); font-size: .9rem; }
.directory { display: grid; grid-template-columns: 1.25fr .75fr; border-top: 1px solid var(--line); }
.app-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: 1.25rem; align-items: center; min-height: 116px; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.app-row h3 { margin-bottom: .35rem; font-size: 1.35rem; }
.app-row p { margin: 0; color: var(--muted); font-size: .9rem; }
.app-row .meta { color: var(--ink); font-size: .88rem; }
.text-link { color: var(--accent); font-weight: 760; white-space: nowrap; }
.sponsor { align-self: start; margin-left: 2.5rem; padding: 2rem; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); position: sticky; top: 1rem; }
.sponsor .label { margin: 0 0 1.3rem; font-size: .73rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sponsor h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.sponsor p { margin-bottom: 1.5rem; }
.sponsor .button { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.sponsor small { display: block; margin-top: 1.3rem; opacity: .82; }
.guide-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; }
.guide { min-height: 280px; padding: 2rem; border-radius: var(--radius); background: var(--surface); }
.guide:nth-child(2) { background: var(--surface-2); }
.guide h3 { max-width: 14ch; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.guide p { max-width: 45ch; color: var(--muted); }
.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 3rem; }
.page-hero h1 { max-width: 16ch; font-size: clamp(3rem, 7vw, 6.4rem); }
.page-hero p { max-width: 62ch; color: var(--muted); font-size: 1.1rem; }
.content { max-width: 780px; padding-bottom: 6rem; }
.content h2 { margin-top: 3.5rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.content h3 { margin-top: 2.4rem; font-size: 1.5rem; }
.content p, .content li { color: var(--muted); }
.content li + li { margin-top: .7rem; }
.comparison { width: 100%; margin: 2rem 0; border-collapse: collapse; font-size: .92rem; }
.comparison th, .comparison td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { color: var(--muted); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.notice { margin: 2.5rem 0; padding: 1.4rem; border-left: 4px solid var(--accent); background: var(--surface); }
.app-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.app-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.app-card p { color: var(--muted); }
.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.footer-grid p { max-width: 58ch; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; gap: 1.2rem; font-size: .86rem; }
[hidden] { display: none !important; }

@media (max-width: 780px) {
  .nav-links { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { cursor: pointer; font-weight: 750; }
  .mobile-nav div { position: absolute; right: 1rem; top: 62px; display: grid; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 4rem 1rem; }
  .hero-image { min-height: 360px; max-height: 520px; }
  .directory, .guide-grid { grid-template-columns: 1fr; }
  .app-row { grid-template-columns: 1fr auto; }
  .app-row .meta { display: none; }
  .sponsor { margin: 2rem 0 0; position: static; }
  .app-index { grid-template-columns: 1fr; }
  .comparison { display: block; overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
