/* 1. Reset / base */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 2. Tokens: the night sky and the macaw's three feathers */
:root {
  color-scheme: dark;
  --background: #080d14;
  --surface: #0d1520;
  --surface-raised: #121c2a;
  --border: rgba(140, 170, 205, .16);
  --border-strong: rgba(140, 170, 205, .3);
  --text: #f4f6fa;
  --secondary: #a6b2c4;
  --muted: #8794aa;
  --red: #e11a1c;
  --yellow: #f9b812;
  --blue: #0a5ccb;
  --link: #7db7ff;
  --green: #6edb54;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  /* Airmail edge in the macaw colors; used only where mail is in transit. */
}

/* 3. Typography */
html { scroll-behavior: smooth; background: var(--background); }
body { min-width: 280px; background: var(--background); color: var(--text); font: 16px/1.6 var(--sans); }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 750; letter-spacing: -.03em; }
h3 { font-size: 15px; font-weight: 650; letter-spacing: -.005em; }
p { text-wrap: pretty; }
code, kbd { font-family: var(--mono); font-size: .875em; }
kbd { display: inline-block; min-width: 1.6em; padding: 0 .35em; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; color: var(--text); font-size: .8em; line-height: 1.5; text-align: center; }
main p a, .install-note a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
main p a:hover, .install-note a:hover { color: var(--text); }
.mono { filter: invert(1); }

/* 4. Layout */
.container { width: calc(100% - 64px); max-width: 1160px; margin-inline: auto; }
.section { margin-top: 88px; padding-top: 88px; border-top: 1px solid var(--border); scroll-margin-top: 8px; }
.section-heading { max-width: 680px; margin-bottom: 40px; }
.section-heading p { margin-top: 16px; color: var(--secondary); font-size: 18px; line-height: 1.65; }
.section-heading code { color: var(--text); }
.section-note { margin-top: 24px; color: var(--muted); font-size: 14px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(18, 28, 42, .6);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 150ms, border-color 150ms;
}
.button:hover { background: var(--surface-raised); border-color: rgba(140, 170, 205, .5); }
.button-primary { border-color: var(--text); background: var(--text); color: var(--background); }
.button-primary:hover { border-color: #fff; background: #fff; }

/* 5. Header */
.header { min-height: 80px; display: flex; align-items: center; gap: 40px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.wordmark img { width: 30px; height: 30px; }
.navigation { display: flex; gap: 28px; color: #c2cddc; font-size: 15px; }
.navigation a:hover { color: var(--text); }
.get-started { margin-left: auto; min-height: 38px; padding: 7px 16px; font-size: 14px; }
/* Language menu: a native disclosure of plain links, so it also works without JavaScript. */
.languages { position: relative; margin-left: auto; margin-right: -24px; }
.languages + .get-started { margin-left: 0; }
.languages summary { display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; color: #c2cddc; font-size: 14px; font-weight: 600; list-style: none; cursor: pointer; transition: background-color 150ms, border-color 150ms; }
.languages summary::-webkit-details-marker { display: none; }
.languages summary:hover, .languages[open] summary { border-color: var(--border-strong); background: var(--surface-raised); color: var(--text); }
.languages summary svg { width: 18px; height: 18px; }
.languages .languages-chevron { width: 14px; height: 14px; color: var(--muted); transition: transform 150ms; }
.languages[open] .languages-chevron { transform: rotate(180deg); }
.languages ul { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10; min-width: 172px; padding: 6px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.languages a { display: flex; align-items: center; padding: 8px 12px; border-radius: 8px; color: var(--secondary); font-size: 15px; }
.languages a:hover { background: var(--surface-raised); color: var(--text); }
.languages a[aria-current] { color: var(--text); font-weight: 650; }
.languages a[aria-current]::after { content: "✓"; margin-left: auto; padding-left: 16px; color: var(--green); }

/* 6. Hero */
.hero { padding: 16px 0 56px; text-align: center; }
.hero-logo { width: 224px; height: 224px; margin: 0 auto; filter: drop-shadow(0 24px 60px rgba(10, 92, 203, .22)); }
.hero h1 { font-size: 88px; font-weight: 750; letter-spacing: -3.5px; line-height: 1.1; }
.hero-tagline { margin-top: 2px; font: italic 19px/1.5 Georgia, "Times New Roman", serif; color: #eceef2; }
.headline { margin-top: 30px; font-size: 28px; font-weight: 600; line-height: 1.35; letter-spacing: -.5px; }
.hero-lede { max-width: 640px; margin: 14px auto 0; color: var(--secondary); font-size: 18px; line-height: 1.65; }

/* 7. Install: a card with a thin edge in the macaw colors */
/* How to use: one subsection per way of using Ahrara. */
.usage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 56px; scroll-margin-top: 16px; }
.usage + .usage { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--border); }
/* The first way to use Ahrara starts below a line too, apart from the section title. */
.section-heading + .usage { padding-top: 48px; border-top: 1px solid var(--border); }
.usage h3 { font-size: 28px; font-weight: 720; letter-spacing: -.02em; }
.usage-copy > p:not(.section-note) { margin-top: 12px; color: var(--secondary); font-size: 17px; line-height: 1.65; }
.usage-copy > p code { color: var(--text); }
/* Alternate sides: the example moves left while the reading order keeps the text first. */
.usage-flip > .usage-copy { grid-column: 2; grid-row: 1; }
.usage-flip > figure { grid-column: 1; grid-row: 1; }
.usage-copy .envelope { margin-top: 28px; }
.installer-platforms { color: var(--muted); font-size: 14px; }
/* Narrow columns wrap long commands at spaces instead of hiding them behind a scrollbar. */
.usage .command code { font-size: 14px; white-space: pre-wrap; }
.envelope { padding: 1px; border-radius: 16px; background: linear-gradient(135deg, rgba(232, 48, 47, .75), rgba(249, 184, 18, .5) 50%, rgba(22, 135, 255, .75)); }
.installer { padding: 22px 24px 18px; border-radius: 15px; background: linear-gradient(180deg, var(--surface-raised), var(--surface) 70%); }
.install-note { margin-top: 16px; color: var(--secondary); font-size: 14px; }

/* 8. Installation methods and integrated command */
.method-picker { position: relative; display: flex; align-items: center; margin-top: 16px; }
.method-icon { position: absolute; left: 14px; width: 20px; height: 20px; object-fit: contain; pointer-events: none; }
.method-icon.plate { padding: 1px; border-radius: 50%; }
/* A native select keeps keyboard and screen reader behavior; only its box is styled. */
.method-select, .method-button { width: 100%; min-height: 46px; padding: 0 44px 0 46px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%239aa8bd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; appearance: none; cursor: pointer; }
.method-select:hover, .method-button:hover { border-color: rgba(140, 170, 205, .5); }
.method-select:focus-visible, .method-button:focus-visible, .method-list:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.method-button { display: flex; align-items: center; text-align: left; }
.method-button[aria-expanded="true"] { border-color: var(--text); }
.method-list { position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 20; max-height: min(360px, 60vh); margin: 0; padding: 6px; overflow-y: auto; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); list-style: none; }
.method-group { padding: 10px 10px 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.method-group:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--border); }
.method-option { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 10px; border-radius: 8px; color: var(--secondary); font-size: 15px; cursor: pointer; }
.method-option img { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; }
.method-option.is-active { background: var(--surface-raised); color: var(--text); }
.method-option[aria-selected="true"] { color: var(--text); font-weight: 600; }
.method-option[aria-selected="true"]::after { content: ""; width: 10px; height: 6px; margin-left: auto; border-bottom: 2px solid var(--green); border-left: 2px solid var(--green); transform: translateY(-2px) rotate(-45deg); }
.method-select option { background: var(--surface); color: var(--text); }
.install-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; margin-top: 16px; padding: 14px 14px 14px 18px; border: 1px solid var(--border); border-radius: 11px; background: #060a10; }
.command { display: flex; align-items: baseline; gap: 12px; min-width: 0; overflow-x: auto; }
.prompt { font: 16px/1 var(--mono); color: var(--green); }
.prompt:empty { display: none; }
/* Commands never break mid-URL; narrow screens scroll them instead. */
.command code { font-size: 15px; line-height: 1.6; white-space: pre; }
.copy-button { display: inline-grid; place-items: center; align-self: flex-start; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: #e3e9f0; cursor: pointer; transition: color 150ms, background-color 150ms; }
.copy-button:hover { color: #fff; background: var(--surface-raised); }
.copy-button svg { width: 17px; height: 17px; grid-area: 1 / 1; }
.check-icon { visibility: hidden; }
.copy-button[data-copied] { color: var(--green); }
.copy-button[data-copied] .copy-icon { visibility: hidden; }
.copy-button[data-copied] .check-icon { visibility: visible; }
/* One link per release binary: platform rows with x64 and ARM64. */
.download { display: grid; flex: 1; gap: 8px; }
.download-row { display: grid; grid-template-columns: 104px repeat(2, minmax(0, 1fr)); align-items: center; gap: 8px; }
.download-row span { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary); font-size: 14px; font-weight: 600; }
.download-row span img { width: 18px; height: 18px; flex-shrink: 0; object-fit: contain; }
.download-row a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 600; }
.download-row a:hover { border-color: var(--border-strong); background: var(--surface-raised); }
.download-row svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-hint { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* 9. About */
.about { padding-top: 96px; }
.overview-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.overview-facts > div { padding-top: 20px; border-top: 2px solid var(--border-strong); }
.overview-facts dt { font-size: 17px; font-weight: 650; }
.overview-facts dd { margin-top: 8px; color: var(--secondary); line-height: 1.7; }

/* 10. How to use / terminal preview */
.terminal-preview { --terminal-border: #424b58; --terminal-cyan: #5df5f5; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #0a0f17; color: #e5e9f0; font: 12px/1.65 var(--mono); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.terminal-prompt { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; font-size: 15px; }
.terminal-prompt code { font-size: inherit; }
.terminal-prompt > span:first-child { color: var(--green); }
.terminal-preview[data-stage="typing"] .terminal-prompt code::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -.1em; background: var(--terminal-cyan); animation: terminal-cursor 600ms step-end infinite; }
/* Reserve the final layout while the demo starts, so the page never jumps. */
.terminal-preview[data-stage="idle"] .terminal-dashboard,
.terminal-preview[data-stage="idle"] .terminal-inbox,
.terminal-preview[data-stage="typing"] .terminal-dashboard,
.terminal-preview[data-stage="typing"] .terminal-inbox,
.terminal-inbox tr[data-pending] { visibility: hidden; }
.terminal-preview[data-stage="connecting"] .terminal-connected { color: #d2d431; }
.terminal-inbox tr[data-received] { animation: terminal-arrival 350ms ease-out both; }
@keyframes terminal-cursor { 50% { opacity: 0; } }
@keyframes terminal-arrival { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.terminal-dashboard { border: 1px solid var(--terminal-border); }
.terminal-brand { position: relative; padding: 17px 48px; border-bottom: 1px solid var(--terminal-border); text-align: center; color: var(--terminal-cyan); }
.terminal-version { position: absolute; top: 9px; right: 12px; font-size: 10px; }
.terminal-logo { margin: 0; font: 14px/1.15 var(--mono); white-space: pre; }
.terminal-status { display: grid; grid-template-columns: 106px minmax(0, 1fr); margin: 0; padding: 9px 0; }
.terminal-status dt, .terminal-status dd { min-width: 0; margin: 0; padding: 1px 11px; overflow-wrap: anywhere; }
.terminal-status dt { border-right: 1px solid var(--terminal-border); white-space: nowrap; }
.terminal-status dt span { display: inline-block; width: 12px; }
.terminal-connected { color: #52e78b; }
.terminal-web { color: #d2d431; }
.terminal-inbox { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; border: 1px solid var(--terminal-border); font: inherit; }
.terminal-inbox caption { padding: 12px 0 9px; text-align: left; color: var(--terminal-cyan); }
.terminal-inbox th, .terminal-inbox td { padding: 6px 8px; border-right: 1px solid var(--terminal-border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal-inbox th { font-weight: 600; border-bottom: 1px solid var(--terminal-border); }
.terminal-inbox td { padding-block: 4px; }
.terminal-inbox .terminal-marker { width: 25px; text-align: center; }
.terminal-inbox .terminal-received { width: 160px; }
.terminal-inbox .terminal-from { width: 25%; }
.terminal-inbox .terminal-size { width: 64px; }

/* Browser preview: the web app's inbox in a window edged with the macaw's feathers. */
.web-app { margin-top: 28px; }
.browser-preview { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #0a0f17; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.browser-feathers { display: flex; gap: 6px; }
.browser-feathers i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.browser-feathers i + i { background: var(--yellow); }
.browser-feathers i + i + i { background: var(--blue); }
.browser-url { flex: 1; padding: 5px 12px; border-radius: 999px; background: var(--background); color: var(--secondary); font: 12px/1.4 var(--mono); }
.browser-page { padding: 20px; }
.browser-heading { margin-bottom: 14px; font-size: 18px; font-weight: 720; letter-spacing: -.02em; }
.browser-heading span { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(47, 124, 246, .16); color: var(--link); font-size: 12px; vertical-align: 2px; }
.browser-inbox { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; }
.browser-inbox li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); }
.browser-inbox li + li { border-top: 1px solid var(--border); }
.browser-avatar { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
.browser-inbox li + li .browser-avatar { background: var(--red); }
.browser-message { display: grid; flex: 1; min-width: 0; font-size: 14px; }
.browser-message span { overflow: hidden; color: var(--secondary); text-overflow: ellipsis; white-space: nowrap; }
.browser-inbox time { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* 11. Agents */
.agent-chat { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 15px; }
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--border); color: var(--secondary); font-size: 13px; }
.chat-header > span:last-child { display: flex; align-items: center; gap: 8px; }
.chat-header img { filter: invert(1); opacity: .75; }
.chat-conversation { display: flex; flex-direction: column; gap: 20px; padding: 22px; }
.chat-message { max-width: 88%; line-height: 1.65; }
.chat-author { display: block; margin-bottom: 4px; color: var(--secondary); font-size: 12px; }
.chat-user { align-self: flex-end; padding: 10px 14px; border-radius: 10px 10px 2px 10px; background: #142339; }
.chat-agent { align-self: flex-start; }
.chat-actions { display: grid; gap: 16px; }
.chat-actions li, .chat-result { display: flex; align-items: flex-start; gap: 10px; }
.chat-actions svg, .chat-result svg { width: 16px; height: 16px; margin-top: 3px; color: var(--green); }
.chat-actions strong { display: block; font-size: 14px; font-weight: 600; }
.chat-actions span { display: block; margin-top: 2px; color: var(--secondary); font-size: 13px; line-height: 1.6; }
.chat-actions code { font-size: inherit; color: var(--text); }
.chat-result { padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.6; }
.chat-result strong { color: var(--green); }
/* A single short sequence; reserve the transcript's space before revealing it. */
.agent-chat[data-state="idle"] [data-chat-step] { opacity: 0; }
.agent-chat[data-state="playing"] [data-chat-step] { animation: chat-reveal 300ms ease-out both; animation-delay: calc(var(--step) * 650ms); }
@keyframes chat-reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
/* Marks with dark lettering get the light backing they are designed for. */
.plate { padding: 2px; border-radius: 6px; background: #f4f6fa; }

/* 12. SDKs and frameworks */
.code-sample { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #0a0f17; }
.code-sample figcaption { padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--secondary); font-size: 13px; }
.code-sample pre { margin: 0; padding: 18px; overflow-x: auto; font: 13.5px/1.7 var(--mono); }
.code-sample code { font-size: inherit; }
.tok-key { color: #ff8f9a; }
.tok-str { color: #ffd166; }
.tok-num { color: #8fc1ff; }
.tok-com { color: #7f8ba0; }
.tok-fn { color: #7ee0c3; }

/* 13. Privacy: zero retention and ownership */
.privacy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.privacy section { scroll-margin-top: 120px; }
.privacy section p { margin-top: 16px; color: var(--secondary); font-size: 17px; line-height: 1.7; }
.retention-flow { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(40px, 1fr) auto minmax(40px, 1fr) auto; align-items: center; gap: 20px; margin-top: 56px; padding: 32px 40px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.retention-flow li:not(.flow-route) { display: grid; justify-items: center; gap: 4px; min-width: 150px; text-align: center; }
.retention-flow li > svg { width: 28px; height: 28px; margin-bottom: 8px; color: var(--text); }
.retention-flow strong { font-size: 16px; font-weight: 650; }
.retention-flow span { color: var(--muted); font-size: 14px; }
/* A plain arrow connects the delivery stops. */
.flow-route { position: relative; height: 1px; background: var(--border-strong); }
.flow-route::after { content: ""; position: absolute; top: 50%; right: 0; width: 7px; height: 7px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: translateY(-50%) rotate(45deg); }
.privacy .section-note { grid-column: 1 / -1; }

/* 14. Free */
.free { text-align: center; }
.free > * { max-width: 760px; margin-inline: auto; }
.free > p { margin-top: 16px; color: var(--secondary); font-size: 18px; line-height: 1.65; }
.free > .free-note { margin-top: 8px; color: var(--muted); font-size: 15px; }
.button-sponsor { gap: 8px; border-color: #d84d8b; background: #d84d8b; color: #fff; }
.button-sponsor:hover { border-color: #c23f79; background: #c23f79; }
.button-sponsor svg { width: 16px; height: 16px; fill: currentColor; }
.free-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* 15. FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 18px; height: 18px; color: var(--secondary); transition: transform 150ms; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list p { margin: 0 40px 22px 0; color: var(--secondary); font-size: 16px; line-height: 1.75; }
.faq-list code { color: var(--text); }

/* 16. Footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 120px; padding: 32px 0 40px; border-top: 1px solid var(--border); }
.footer-tagline { color: var(--secondary); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }

/* 17. Responsive */
@media (max-width: 1100px) {
  .usage { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .usage-flip > .usage-copy, .usage-flip > figure { grid-column: auto; grid-row: auto; }
  .container { width: calc(100% - 48px); }
  .agent-chat { max-width: 720px; }
}
@media (max-width: 820px) {
  .desktop-link { display: none; }
  .hero-logo { width: 184px; height: 184px; }
  .hero h1 { font-size: 72px; }
  .overview-facts { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .privacy, .faq { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .privacy section + section { margin-top: 40px; }
  .faq h2 { margin-bottom: 24px; }
  .retention-flow { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; padding: 28px 20px; }
  .flow-route { width: 1px; height: 32px; }
  .flow-route::after { top: auto; right: auto; bottom: 0; left: 50%; transform: translateX(-50%) rotate(135deg); }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .section { margin-top: 64px; padding-top: 64px; }
  .about { padding-top: 72px; }
  .header { min-height: 68px; gap: 24px; }
  .languages { margin-right: -12px; }
  .languages summary { padding-inline: 9px; }
  .languages .languages-chevron { display: none; }
  .hero { padding-top: 8px; padding-bottom: 40px; }
  .hero-logo { width: 148px; height: 148px; }
  .hero h1 { font-size: 54px; letter-spacing: -2px; }
  .hero-tagline { margin-top: 5px; font-size: 15px; }
  .headline { margin-top: 24px; font-size: 22px; }
  .hero-lede { font-size: 16px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading p { font-size: 16px; }
  .envelope { border-radius: 13px; }
  .installer { padding: 18px 14px 16px; border-radius: 12px; }
  .install-panel { flex-direction: column; align-items: stretch; padding: 12px; gap: 8px; }
  .command { gap: 8px; }
  .command code { font-size: 12.5px; white-space: pre-wrap; }
  .copy-button { align-self: flex-end; }
  .prompt { font-size: 14px; }
  .terminal-preview { padding: 10px; font-size: 11px; }
  .terminal-brand { padding: 28px 8px 14px; }
  .terminal-logo { font-size: clamp(8px, 2vw, 12px); }
  .terminal-status { grid-template-columns: 100px minmax(0, 1fr); }
  .terminal-status dt, .terminal-status dd { padding-inline: 7px; }
  .terminal-inbox, .terminal-inbox tbody { display: block; }
  .terminal-inbox thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .terminal-inbox caption { display: block; font-size: 11px; }
  .terminal-inbox { border: 0; }
  .terminal-inbox tbody { border: 1px solid var(--terminal-border); }
  .terminal-inbox tbody tr { display: grid; grid-template-columns: 20px minmax(0, 1fr) 60px; grid-template-areas: "marker received size" "marker from from" "marker subject subject"; padding: 7px 0; }
  .terminal-inbox tbody tr + tr { border-top: 1px solid var(--terminal-border); }
  .terminal-inbox td { min-width: 0; padding: 1px 5px; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .terminal-inbox td.terminal-marker { grid-area: marker; width: auto; }
  .terminal-inbox td.terminal-received { grid-area: received; width: auto; }
  .terminal-inbox td.terminal-from { grid-area: from; width: auto; }
  .terminal-inbox td.terminal-subject { grid-area: subject; }
  .terminal-inbox td.terminal-size { grid-area: size; width: auto; text-align: right; }
  .chat-header { padding: 12px 14px; }
  .agent-chat { font-size: 14px; }
  .chat-conversation { gap: 18px; padding: 16px 14px; }
  .chat-message { max-width: 96%; }
  .code-sample pre { padding: 14px; font-size: 12px; }
  .footer { margin-top: 88px; }
}
@media (max-width: 400px) {
  .header { gap: 10px; }
  .languages { margin-right: -2px; }
  .languages summary { padding-inline: 8px; }
  .languages summary > span[aria-hidden] { display: none; }
}

/* 18. Accessibility */
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 18px; z-index: 2; padding: 10px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
