:root {
  color-scheme: light;
  --background: #fafafc;
  --surface: #f0f1f6;
  --ink: #22242c;
  --secondary: #5f6270;
  --line: #dcdee7;
  --accent: #3b5bdb;
  --button: #26305e;
  --button-text: #fff;
  --window: #ffffff;
  --window-side: #f3f4f8;
  --window-line: #e3e5ec;
  --select: #3b5bdb;
  --green: #2f9e44;
  --orange: #e8590c;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #17181d;
  --surface: #1e2027;
  --ink: #eceef4;
  --secondary: #a9adbb;
  --line: #343744;
  --accent: #91a7ff;
  --button: #dfe4fb;
  --button-text: #1d2244;
  --window: #24262e;
  --window-side: #1c1e25;
  --window-line: #353845;
  --select: #4c6ef5;
  --green: #40c057;
  --orange: #fd7e14;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 30; padding: 12px 20px; background: var(--ink); color: var(--background); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--background); }
.navigation { min-height: 88px; display: flex; align-items: center; gap: 36px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 13px; color: var(--secondary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.quiet-button { min-height: 36px; padding: 8px 8px; border: 0; background: none; color: var(--secondary); font-size: 12px; cursor: pointer; }
.quiet-button:hover { color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 8px; background: var(--button); color: var(--button-text); font-size: 14px; font-weight: 500; line-height: 1.4; white-space: nowrap; transition: opacity .15s; }
.button:hover { opacity: .85; text-decoration: none; }
.button-small { min-height: 36px; padding: 8px 16px; font-size: 12px; }
.text-link { color: var(--ink); font-size: 14px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--ink); }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .025em; margin-bottom: 20px; }

.hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 72px; padding-block: 40px 56px; }
.hero-copy { padding-block: 8px; }
h1 { font-size: clamp(44px, 4.8vw, 64px); font-weight: 500; letter-spacing: -.055em; line-height: 1.07; }
.hero-description { max-width: 408px; margin-top: 24px; color: var(--secondary); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.compatibility { margin-top: 12px; color: var(--secondary); font-size: 11px; }
.hero-note { max-width: 328px; margin-top: 24px; padding-left: 12px; border-left: 2px solid var(--accent); font-size: 12px; color: var(--secondary); line-height: 1.6; }

/* App illustration */
.app-gallery { min-width: 0; width: 100%; }
.gallery-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 16px; }
.gallery-tabs button { min-height: 36px; padding: 8px 12px; border: 0; border-radius: 4px; color: var(--secondary); background: transparent; font-size: 11px; white-space: nowrap; cursor: pointer; }
.gallery-tabs button:hover { color: var(--ink); }
.gallery-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); }
.mock-window { overflow: hidden; border: 1px solid var(--window-line); border-radius: 12px; background: var(--window); box-shadow: 0 1px 3px #00000012, 0 22px 48px -18px #00000040; font-size: 12px; line-height: 1.4; }
.mock-titlebar { display: flex; align-items: center; gap: 8px; height: 36px; padding-inline: 12px; border-bottom: 1px solid var(--window-line); background: var(--window-side); }
.mock-titlebar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.mock-titlebar i:nth-child(2) { background: #febc2e; }
.mock-titlebar i:nth-child(3) { background: #28c840; }
.mock-titlebar span { margin-left: 12px; font-weight: 600; font-size: 12px; }
.mock-body { display: grid; grid-template-columns: 38% 1fr; min-height: 328px; }
.mock-sidebar { margin: 0; padding: 8px 8px; list-style: none; border-right: 1px solid var(--window-line); background: var(--window-side); }
.mock-sidebar li { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-sidebar li.active { background: var(--select); color: #fff; }
.mock-heading { margin-top: 8px; color: var(--secondary); font-size: 10.5px; font-weight: 600; }
.tile { flex-shrink: 0; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; font-size: 9px; font-weight: 600; color: #fff; }
.t-blue { background: linear-gradient(#4dabf7, #1c7ed6); }
.t-green { background: linear-gradient(#69db7c, #2f9e44); }
.t-orange { background: linear-gradient(#ffa94d, #e8590c); }
.t-purple { background: linear-gradient(#b197fc, #7048e8); }
.t-gone, .t-cli { background: none; color: inherit; border: 1px solid currentColor; opacity: .7; font-size: 8px; }
.count { margin-left: auto; font-variant-numeric: tabular-nums; padding: 0 8px; border-radius: 99px; background: var(--green); color: #fff; font-style: normal; font-size: 10px; font-weight: 600; }
.count + .unknown { margin-left: 4px; }
.unknown { margin-left: auto; padding: 0 8px; border: 1px dashed currentColor; border-radius: 99px; font-style: normal; font-size: 10px; opacity: .7; }
.mock-detail { padding: 16px 20px; min-width: 0; }
.mock-app { font-size: 15px; font-weight: 600; }
.mock-sub { color: var(--secondary); font-size: 11px; }
.mono { font-family: ui-monospace, monospace; }
.mock-note { margin-top: 8px; color: var(--secondary); font-size: 11px; }
.mock-button { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 6px; background: var(--surface); border: 1px solid var(--window-line); color: #e03131; font-size: 11px; }
.mock-section { margin-top: 16px; padding-bottom: 4px; font-weight: 600; font-size: 12px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--window-line); }
.mock-row > span:first-child { display: flex; flex-direction: column; min-width: 0; font-weight: 500; }
.mock-row small { color: var(--secondary); font-size: 10.5px; font-weight: 400; }

/* Chips: the app's own vocabulary. Solid = confirmed, outline = confirmed absence, dashed = unknown. */
.chip { flex-shrink: 0; display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.chip.solid { color: #fff; }
.chip.green { background: var(--green); }
.chip.orange { background: var(--orange); }
.chip.outline { border: 1px solid var(--secondary); color: var(--secondary); }
.chip.dashed { border: 1px dashed var(--secondary); color: var(--secondary); }

figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; text-align: center; font-size: 12px; color: var(--secondary); }
.screenshot-note { font-size: 10px; opacity: .85; }

.details-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; padding-block: 40px 64px; border-top: 1px solid var(--line); }
.detail h2 { font-size: 17px; font-weight: 500; margin-bottom: 12px; }
.detail p { color: var(--secondary); font-size: 13px; line-height: 1.75; }

.honesty-section { padding-block: 0 72px; }
.honesty-section h2 { max-width: 520px; font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -.045em; }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
.legend .chip { font-size: 12px; padding: 4px 12px; }
.legend p { margin-top: 12px; color: var(--secondary); font-size: 13px; line-height: 1.7; }

.setup-section { padding-block: 76px 80px; background: var(--surface); }
.setup-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: start; }
.setup-intro h2 { max-width: 328px; font-size: 35px; font-weight: 500; line-height: 1.18; letter-spacing: -.045em; }
.setup-intro > p:not(.eyebrow) { color: var(--secondary); max-width: 320px; font-size: 14px; margin-block: 20px 20px; }
.setup-steps { border-top: 1px solid var(--line); }
.setup-steps details { border-bottom: 1px solid var(--line); }
.setup-steps summary { display: flex; align-items: baseline; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; }
.setup-steps summary::-webkit-details-marker { display: none; }
.setup-steps summary::after { content: "+"; margin-left: auto; color: var(--secondary); font-size: 18px; font-weight: 400; }
.setup-steps details[open] summary::after { content: "−"; }
.step-number { color: var(--accent); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 400; }
.step-body { padding: 0 32px 24px; color: var(--secondary); font-size: 13px; line-height: 1.8; }
.step-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.step-body strong { color: var(--ink); font-weight: 500; }

.download-section { display: flex; align-items: center; gap: 24px; padding-block: 56px; }
.download-icon { flex-shrink: 0; }
.download-copy { flex: 1; }
.download-copy h2 { font-size: 23px; font-weight: 500; line-height: 1.3; }
.download-copy p { margin-top: 8px; color: var(--secondary); font-size: 13px; }
.macbase-badge { flex-shrink: 0; display: inline-block; }
.macbase-badge img { height: 56px; width: auto; }
.macbase-badge .macbase-badge-dark { display: none; }
[data-theme="dark"] .macbase-badge-light { display: none; }
[data-theme="dark"] .macbase-badge-dark { display: block; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px 36px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 11px; }
.site-footer p a { color: var(--ink); }
.footer-links { display: flex; gap: 28px; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .navigation { gap: 24px; }
  .nav-links { gap: 20px; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-actions { gap: 16px; }
  .hero-description { font-size: 16px; }
  .app-gallery { max-width: 620px; justify-self: center; }
  .details-section { gap: 32px; }
  .setup-layout { gap: 48px; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .navigation { min-height: 72px; gap: 12px; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; gap: 4px; }
  .brand { font-size: 16px; gap: 4px; }
  .brand img { width: 32px; height: 32px; }
  .button-small { padding-inline: 12px; }
  .hero { gap: 32px; padding-block: 32px 48px; }
  h1 { font-size: clamp(40px, 10vw, 60px); }
  .hero-description { max-width: 440px; margin-top: 20px; }
  .hero-actions { margin-top: 24px; gap: 20px; }
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-sidebar { display: none; }
  .details-section, .legend { grid-template-columns: 1fr; gap: 28px; }
  .details-section { padding-block: 32px 44px; }
  .honesty-section h2 { font-size: 26px; }
  .setup-section { padding-block: 48px; }
  .setup-layout { grid-template-columns: 1fr; gap: 36px; }
  .setup-intro h2 { max-width: 380px; font-size: 30px; }
  .setup-intro > p:not(.eyebrow) { max-width: 460px; }
  .download-section { flex-wrap: wrap; gap: 16px; padding-block: 40px; }
  .download-icon { width: 60px; height: 60px; }
  .download-copy { flex-basis: calc(100% - 80px); }
  .download-copy h2 { font-size: 21px; }
  .download-section > .button { margin-top: 8px; }
  .footer-links { flex-wrap: wrap; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
