/* Same cool-neutral palette, ink actions and radius scale as the local app.
   Layers: navigation 10, skip link 20. No external fonts or dependencies. */
:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f7;
  --text: #15181e;
  --muted: #5a6270;
  --faint: #657080;
  --line: #e2e5ec;
  --line-strong: #cbd0db;
  --accent: #3f5bd9;
  --accent-soft: rgba(63, 91, 217, .06);
  --ink: #15181e;
  --ink-text: #ffffff;
  --ok: #1c7c48;
  --shadow: 0 4px 10px rgba(15, 23, 42, .025), 0 24px 60px -32px rgba(15, 23, 42, .18);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --r-panel: 16px;
  --r-control: 8px;
  --wrap: 1240px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d11;
    --surface: #0f1217;
    --surface-2: #171b23;
    --text: #e8ebf1;
    --muted: #a3abb9;
    --faint: #8792a3;
    --line: #232936;
    --line-strong: #3c4555;
    --accent: #9db7ff;
    --accent-soft: rgba(157, 183, 255, .05);
    --ink: #eef1f6;
    --ink-text: #0b0d11;
    --ok: #6fcf97;
    --shadow: 0 4px 10px rgba(0, 0, 0, .14), 0 24px 60px -32px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }
button, .btn { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
a { color: var(--accent); text-decoration: none; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(38px, 4vw, 54px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.18; }
h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.02em; }
p { text-wrap: pretty; }
code, pre, .mono { font-family: var(--mono); }
code { font-size: .86em; }
p code { background: var(--surface-2); padding: 2px 4px; border-radius: 4px; overflow-wrap: anywhere; }
.wrap { width: min(var(--wrap), calc(100% - 80px)); margin-inline: auto; }
.section { padding: 88px 0; scroll-margin-top: 88px; }
.section-head { max-width: 650px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin-top: 16px; max-width: 58ch; }
.eyebrow { font-size: 12px; font-weight: 500; color: var(--accent); margin-bottom: 18px; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.7; margin-top: 20px; max-width: 43ch; }
.text-link, .link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 10px 16px; border-radius: var(--r-control); font-size: 13px; font-weight: 500; white-space: nowrap; transition: transform .12s ease, background-color .12s ease; }
.btn-primary { color: var(--ink-text); background: var(--ink); border: 1px solid var(--ink); }
.btn-lg { min-height: 46px; padding: 12px 20px; font-size: 14px; }
.btn:active, .processor-switch button:active, .copy-btn:active { transform: scale(.98); }
.skip { position: fixed; top: -60px; left: 16px; padding: 10px 16px; background: var(--ink); color: var(--ink-text); border-radius: var(--r-control); z-index: 20; }
.skip:focus { top: 12px; }

/* Quiet navigation, with the opaque brand tile in both themes. */
.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.nav-inner { display: flex; align-items: center; min-height: 76px; gap: 40px; }
.brand { display: inline-flex; align-items: center; flex: none; gap: 10px; color: var(--text); font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); }
.brand-sub { display: block; font-size: 11px; color: var(--faint); font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 26px; }
.nav-links { margin-left: auto; }
.nav-links a, .nav-github { font-size: 13px; color: var(--muted); }
.nav-actions { gap: 20px; }

/* The real product is the hero visual, large enough to read. */
.hero { padding: 66px 0 56px; scroll-margin-top: 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 44px; align-items: center; }
.hero-copy { padding-bottom: 22px; }
.hero-shot { min-width: 0; }
.screenshot-link { display: block; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-panel); box-shadow: var(--shadow); background: var(--surface); }
.hero-shot img { width: 100%; }
.hero-shot figcaption { display: flex; gap: 12px; justify-content: space-between; margin-top: 14px; color: var(--faint); font-size: 11px; }

/* Compatibility, not a wall of pill badges. */
.strip { border-block: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: 205px 1fr; gap: 40px; align-items: center; padding-block: 30px; }
.strip-label { color: var(--faint); font-size: 12px; line-height: 1.8; }
.strip-label strong { color: var(--text); font-size: 14px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; column-gap: 28px; row-gap: 14px; padding: 0; margin: 0; list-style: none; }
.chips.logos { column-gap: 12px; row-gap: 12px; align-items: center; }
.chips.logos li { display: block; }
.chips.logos img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-strong); }

/* Runtime path: flat steps beside an accurate tool reference. */
.workflow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.journey { margin: 0; padding: 0; list-style: none; }
.journey li { display: grid; grid-template-columns: 38px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.journey li:first-child { padding-top: 6px; }
.step-number { font: 12px/27px var(--mono); color: var(--accent); }
.journey p { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 44ch; }
.protocol { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); min-width: 0; overflow: hidden; }
.panel-caption { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 12px; }
.panel-caption .mono { color: var(--faint); font-size: 10px; }
.tool-list { margin: 0; padding: 0 22px; }
.tool-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.tool-list dt { font: 13px/1.5 var(--mono); color: var(--text); }
.tool-list dd { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.protocol .code-block { margin: 22px; }
.protocol-note { margin: 0 22px 22px; color: var(--faint); font-size: 12px; }
.protocol-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Three practical capabilities, led by an actual import-review capture. */
.features { border-block: 1px solid var(--line); background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 64px; }
.import-feature { min-width: 0; overflow: hidden; border-radius: var(--r-panel); background: var(--bg); border: 1px solid var(--line); }
.feature-copy { padding: 28px 30px 24px; }
.feature-copy p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 48ch; }
.import-feature figure { padding: 0 24px 20px; }
.import-feature img { width: 100%; border-radius: 12px; }
.import-feature figcaption { padding-top: 14px; font-size: 11px; text-align: center; color: var(--faint); }
.feature-stack article { padding: 24px 0; border-top: 1px solid var(--line); }
.feature-stack article:first-child { border: 0; padding-top: 0; }
.feature-stack article:last-child { padding-bottom: 0; }
.feature-stack p { font-size: 14px; color: var(--muted); margin: 10px 0 16px; max-width: 50ch; }
.example-command { padding: 12px 14px; border: 1px solid var(--line); background: var(--bg); border-radius: var(--r-control); overflow-x: auto; }
.example-command code { font-size: 12px; white-space: nowrap; }

/* Optional deep detail does not overwhelm the product introduction. */
.architecture-details { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; scroll-margin-top: 90px; }
.architecture-details summary { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-size: 14px; list-style: none; }
.architecture-details summary::-webkit-details-marker { display: none; }
.summary-meta { display: flex; gap: 20px; color: var(--faint); font-size: 12px; }
.summary-meta span { font-size: 19px; line-height: 1; color: var(--text); }
.architecture-details[open] .summary-meta span { transform: rotate(45deg); }
.figure { border-top: 1px solid var(--line); }
.figure img { width: 100%; background: #f3f4f6; }
.figure figcaption { padding: 14px 24px; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 16px; }

/* Safety is a concise part of the page, not a different brand. */
.security-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 84px; align-items: start; }
.security-grid .lede { font-size: 15px; }
.security-grid .link { margin-top: 20px; }
.boundary-list { list-style: none; margin: 0; padding: 0; }
.boundary-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.boundary-list li:first-child { padding-top: 0; }
.boundary-list h3 { font-size: 15px; letter-spacing: -.015em; }
.boundary-list p { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Copy controls sit outside the scrolling code, never on top of its text. */
.code-block { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-control); overflow: hidden; background: var(--bg); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 11px; }
pre.code { padding: 16px; margin: 0; overflow-x: auto; color: var(--text); font-size: 12px; line-height: 1.85; tab-size: 2; }
pre.code code { font-size: inherit; }
.t-key { color: var(--muted); }
.t-str { color: var(--accent); }
.copy-btn { min-height: 32px; min-width: 52px; padding: 5px 8px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; font-size: 11px; flex: none; }

.install { border-block: 1px solid var(--line); background: var(--surface); }
.install-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 88px; align-items: start; }
.install-copy { padding-top: 12px; }
.install-copy h2 { font-size: clamp(34px, 3.8vw, 46px); }
.install-copy > p { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 36ch; }
.install-panel { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--bg); padding: 24px; min-width: 0; }
.install-panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--faint); font-size: 12px; margin-bottom: 28px; }
.brew-block { margin-bottom: 22px; }
.processor-switch { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-control); background: var(--surface-2); border: 1px solid var(--line); }
.processor-switch button { min-height: 34px; border: 1px solid transparent; border-radius: 6px; padding: 6px 12px; color: var(--muted); background: transparent; font-size: 12px; }
.processor-switch button[aria-pressed="true"] { color: var(--text); background: var(--surface); border-color: var(--line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.steps > li { min-width: 0; }
.step-head { margin-bottom: 10px; }
.step-head h3 { font-size: 13px; font-weight: 500; }
.install-note { margin: 18px 0; color: var(--faint); font-size: 12px; }

.footer { padding: 42px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand p { margin-top: 12px; color: var(--faint); font-size: 12px; }
.footer nav { display: grid; gap: 8px; align-content: start; }
.footer nav h3 { font-size: 12px; font-weight: 500; margin-bottom: 5px; }
.footer nav a { color: var(--muted); font-size: 12px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: 11px; }

@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .brand:hover, .btn:hover, .screenshot-link:hover { text-decoration: none; }
  .nav-links a:hover, .nav-github:hover, .footer nav a:hover { color: var(--text); }
  .btn:hover { opacity: .88; }
  .copy-btn:hover { background: var(--surface-2); border-color: var(--line); color: var(--text); }
  .architecture-details summary:hover { background: var(--surface-2); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 28px; }
  h1 { font-size: 40px; }
  .hero-shot figcaption { flex-direction: column; gap: 2px; }
  .workflow-grid, .feature-grid, .security-grid, .install-grid { gap: 40px; }
  .nav-inner { gap: 24px; }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 40px); }
  .nav-inner { min-height: 68px; gap: 16px; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; gap: 16px; }
  .hero { padding: 44px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(36px, 7vw, 48px); }
  .hero .lede { font-size: 16px; max-width: 40ch; margin-top: 16px; }
  .hero-shot figcaption { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .section { padding: 56px 0; scroll-margin-top: 72px; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 15px; }
  .strip-inner { grid-template-columns: 1fr; gap: 18px; padding-block: 24px; }
  .strip-label br { display: none; }
  .strip-label strong { margin-left: 4px; }
  .chips { column-gap: 22px; row-gap: 12px; }
  .workflow-grid, .feature-grid, .security-grid, .install-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-copy { padding: 24px; }
  .architecture-details { margin-top: 32px; }
  .architecture-details summary { padding: 18px; }
  .summary-meta { font-size: 0; gap: 0; }
  .summary-meta span { font-size: 22px; }
  .figure figcaption { padding: 14px 18px; flex-direction: column; gap: 6px; }
  .install-panel { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}
@media (pointer: coarse) {
  .btn, .copy-btn, .processor-switch button { min-height: 44px; }
  .footer nav a { padding-block: 4px; }
}
@media (max-width: 380px) {
  .nav-github { display: none; }
  .brand-sub { font-size: 10px; }
  .wrap { width: calc(100% - 32px); }
}
