/* iliad.md home — v2 (2026-09-25). Tokens mirror the Figma "Iliad web v2" collection. */

:root {
  --white: #ffffff;
  --paper: #f4f1e9;
  --ink: #1a1b1a;
  --ink-2: #33352f;
  --muted: #5c5f56;
  --hairline: #e7e3d7;
  --gold: #ffad1f;
  --gold-hover: #ffa20a;
  --gold-deep: #e8920a;
  --gold-ink: #5a3d00;
  /* gold dark enough for small text on white and paper (AA) */
  --gold-text: #9a5b00;
  --butter: #fff3c2;
  --butter-deep: #f6e39a;
  --sky: #d6ecff;
  --sky-deep: #b9ddfb;
  --blush: #ffe1d6;
  --mint: #dbf4e0;
  --mint-deep: #bfe9c8;
  --del-ink: #9a4b36;
  --ins-ink: #2c5a38;
  --del-wash: rgba(244, 150, 118, 0.15);
  --ins-wash: rgba(108, 196, 140, 0.16);

  /* the app, as drawn inside the page */
  --app-bg: #fffefa;
  --app-border: #d9d7cc;
  --app-line: #e3e0d6;
  --app-text: #1f211f;
  --app-tree: #2f332e;
  --app-label: #62675f;
  --app-ui: #52584f;
  --app-ghost: #767a72;
  --app-key: #cfcec3;
  --app-select: rgba(60, 66, 74, 0.14);
  --app-hover: rgba(60, 66, 74, 0.07);
  --term-bg: #1f211f;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, monospace;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* the app's own faces (present on every Mac), with web fallbacks */
  --font-app-serif: "Iowan Old Style", "Source Serif 4", Georgia, serif;
  --font-app-ui: "Avenir Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-float: 0 36px 72px -8px rgba(26, 26, 20, 0.08), 0 10px 28px rgba(26, 26, 20, 0.06), 0 1px 2px rgba(26, 26, 20, 0.04);
  --shadow-mini: 0 8px 20px rgba(26, 26, 20, 0.08), 0 1px 2px rgba(26, 26, 20, 0.05);
  --shadow-window: 0 12px 30px rgba(0, 0, 0, 0.1);
  --shadow-lift: 0 14px 32px -10px rgba(26, 26, 20, 0.16), 0 2px 6px rgba(26, 26, 20, 0.05);

  --gutter: 40px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
kbd { font: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 9px;
  font-weight: 600; text-decoration: none; transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1;
  text-decoration: none; color: var(--ink);
}
.wordmark svg { width: 22px; height: 22px; flex: none; }
.wordmark .md { color: var(--gold-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 9px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s, border-color 0.18s;
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-gold { background: var(--gold); border-color: var(--gold-deep); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(232, 146, 10, 0.7); }
.btn-gold:active { background: var(--gold-deep); color: #3f2a00; transform: translateY(1px); box-shadow: none; }
.btn-plain { color: var(--ink); }
.btn-plain:hover { background: var(--paper); }
.btn-white { background: var(--white); border-color: var(--hairline); color: var(--ink); }
.btn-white:hover { border-color: #d6d1c2; transform: translateY(-1px); box-shadow: var(--shadow-mini); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn .arrow { transition: transform 0.18s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- Nav ---------- */
.site-nav { border-bottom: 1px solid var(--hairline); background: var(--white); position: relative; z-index: 20; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  color: var(--ink-2); font-weight: 500; font-size: 15px; text-decoration: none;
  padding: 4px 0; background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 2px;
  transition: background-size 0.2s var(--ease);
}
.nav-links a:not(.btn):hover { background-size: 100% 2px; }

.lang { display: flex; gap: 2px; padding: 3px; background: var(--paper); border-radius: 9px; }
.lang a {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px; line-height: 1.4;
  padding: 5px 10px; border-radius: 7px; text-decoration: none; color: var(--muted);
}
.lang a[aria-current] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(26, 26, 20, 0.06); }
.lang a:not([aria-current]):hover { color: var(--ink); }

.lang-inline { display: none; align-items: center; gap: 6px; font-family: var(--font-mono); font-weight: 700; font-size: 11px; color: var(--muted); }
.lang-inline a { text-decoration: none; color: var(--muted); padding: 6px 2px; }
.lang-inline a[aria-current] { color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 40px; height: 40px; margin-right: -9px;
  display: grid; place-items: center; border-radius: 9px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu summary .icon-close { display: none; }
.menu[open] summary .icon-open { display: none; }
.menu[open] summary .icon-close { display: block; }
.menu-panel {
  position: absolute; right: -8px; top: calc(100% + 8px); width: min(240px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--hairline); border-radius: 14px;
  box-shadow: var(--shadow-float); padding: 8px; display: flex; flex-direction: column;
}
.menu-panel a:not(.btn) {
  padding: 12px 12px; border-radius: 9px; text-decoration: none; font-weight: 500; color: var(--ink-2);
}
.menu-panel a:not(.btn):hover { background: var(--paper); }
.menu-panel .btn { margin-top: 6px; }
.menu[open] .menu-panel { animation: menu-in 0.18s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Hero ---------- */
.hero { padding-top: 96px; padding-bottom: 24px; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero h1 {
  font-weight: 800; font-size: clamp(44px, 1.2rem + 4.6vw, 80px); line-height: 1.05;
  letter-spacing: -0.03em; max-width: 1000px;
}
.hero h1 span { display: block; }
.hero-sub {
  font-family: var(--font-serif); font-size: 22px; line-height: 34px; color: var(--ink-2);
  max-width: 660px; text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.meta span { white-space: nowrap; }

.stage {
  margin-top: 64px; background: var(--paper); border-radius: 14px;
  padding: 56px 64px 56px;
}

/* ---------- App window (hero): drawn to match the real app ---------- */
.window {
  position: relative; margin: 0 auto; max-width: 1072px; height: 444px;
  background: var(--app-bg); border: 1px solid rgba(26, 26, 20, 0.14);
  border-radius: 12px; box-shadow: 0 0 0 0.5px rgba(26, 26, 20, 0.04), 0 22px 48px -12px rgba(26, 26, 20, 0.18), 0 4px 12px rgba(26, 26, 20, 0.05);
  display: grid; grid-template-columns: 218px 1fr; grid-template-rows: 38px 1fr; overflow: hidden; text-align: left;
  font-family: var(--font-app-ui); color: var(--app-ui);
}
.window svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.traffic { display: flex; gap: 6.5px; align-items: center; padding-left: 12px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; background: #ec6a5e; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.traffic i:nth-child(2) { background: #f4bf4f; }
.traffic i:nth-child(3) { background: #61c554; }
.topbar {
  grid-column: 1 / -1; display: grid; grid-template-columns: 218px 1fr; border-bottom: 1px solid var(--app-line);
  background: #fbfaf5;
}
.topbar-main { display: flex; align-items: flex-end; gap: 12px; padding: 0 14px 0 12px; min-width: 0; }
.topbar-main > svg { margin-bottom: 11px; color: #8a8e86; }
.topbar-main .dim { color: #b9bbb3; }
.tab {
  display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; margin-left: 4px;
  border: 1px solid var(--app-line); border-bottom: 0; border-radius: 7px 7px 0 0; background: var(--app-bg);
  font-size: 12.5px; color: var(--app-text); position: relative; top: 1px;
}
.tab svg { width: 9px; height: 9px; color: #6d716a; }
.topbar-tools { margin-left: auto; display: flex; gap: 16px; margin-bottom: 11px; color: #5c6058; }
.tree { padding: 12px 8px 0; background: #fcfbf6; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--app-line); }
.tree-head { display: flex; align-items: center; gap: 4px; padding: 0 4px 10px 6px; font-weight: 600; font-size: 12.5px; color: var(--app-text); }
.tree-head .caret-down { width: 9px; height: 9px; color: #6d716a; }
.tree-head .tools { margin-left: auto; display: flex; gap: 11px; color: #6d716a; }
.tree-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--app-tree); padding: 5px 8px; border-radius: 6px; line-height: 1.2; }
.tree-row svg { width: 12px; height: 12px; color: #6d716a; }
.tree-row.nested { padding-left: 22px; }
.tree-row.active { background: #f1efe8; box-shadow: inset 2px 0 0 #b9b6ab; }
.tree-row.muted { color: #9fa29a; }
.pane { min-width: 0; overflow: hidden; }
.prose {
  width: 100%; max-width: 600px; margin: 0 auto; padding: 50px 24px 0;
  font-family: var(--font-app-serif); color: var(--app-text);
}
.prose .doc-title { font-size: 31px; font-weight: 700; line-height: 1.2; letter-spacing: -0.005em; }
.prose .doc-h { font-size: 21px; font-weight: 700; line-height: 1.3; margin-top: 30px; }
.prose p { font-size: 16.5px; line-height: 27px; margin-top: 18px; }
.prose .doc-h + p { margin-top: 14px; }
.prose .ghost { color: #a3a59d; }
.prose .md-syntax { color: #a3a59d; font-weight: 400; }
.caret {
  display: inline-block; width: 1.5px; height: 1.1em; margin: 0 1px -0.18em;
  background: #2b2e2a; vertical-align: baseline;
}
.hero-live .caret { animation: blink 1.05s steps(1) infinite; }
.hero-live .caret.typing { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.sbar-row { display: flex; justify-content: flex-end; margin-top: 12px; margin-right: -12px; }
.sbar {
  display: inline-flex; align-items: center; gap: 16px; padding: 7px 13px;
  background: var(--app-bg); border: 1px solid #dddbd2; border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  font-family: var(--font-app-ui); font-size: 12.5px; color: #52564f; line-height: 1.3;
}
.sbar > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.sbar svg { width: 12px; height: 12px; }
.k { font: inherit; color: #a3a59d; border-radius: 3px; padding: 0 2px; transition: background-color 0.15s, color 0.15s; }
.k.pressed { background: var(--butter); color: var(--ink); }

/* hero animation states (JS-driven; static HTML is the seeded frame) */
.hero-live .fx { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.45s var(--ease); }
.hero-live .is-hidden { opacity: 0; transform: translateY(4px); }
.hero-live .ghost.is-hidden { transform: none; }
.hero-live .ghost.accepted { color: var(--app-text); }
.hero-live .fade-out { opacity: 0; transition: opacity 0.4s; }
.kask { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 4px; background: var(--butter); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.8em; line-height: 1.5; vertical-align: 1px; }

/* ---------- Sections ---------- */
.section { padding-block: 120px; }
.section-paper { background: var(--paper); padding-block: 128px; overflow: clip; }
.eyebrow {
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-text);
}
.section-head { display: flex; align-items: flex-end; gap: 80px; margin-bottom: 56px; }
.section-head .title-block { display: flex; flex-direction: column; gap: 16px; flex: none; }
.section-head h2, .features-head h2 {
  font-weight: 800; font-size: clamp(36px, 1.3rem + 3vw, 56px); line-height: 1.07; letter-spacing: -0.025em;
}
.lede { font-family: var(--font-serif); font-size: 20px; line-height: 31px; color: var(--ink-2); max-width: 520px; text-wrap: pretty; }

/* Section 2: two cards, each a slice of the app drawn in HTML (text at reading size) */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shot-card { background: var(--paper); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.shot-media { position: relative; flex: 1; padding: 32px 32px 0; display: flex; flex-direction: column; }
.shot-inline { justify-content: center; }
.app-panel {
  background: var(--app-bg); border: 1px solid rgba(26, 26, 20, 0.13); border-radius: 11px;
  box-shadow: 0 16px 36px -14px rgba(26, 26, 20, 0.16), 0 2px 6px rgba(26, 26, 20, 0.04);
  font-family: var(--font-app-ui); color: var(--app-ui); overflow: hidden;
}
.app-panel svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.panel-bar {
  display: flex; align-items: center; gap: 14px; height: 32px; padding-left: 12px;
  background: #fbfaf5; border-bottom: 1px solid var(--app-line); font-size: 12px; color: var(--app-label);
}
.panel-bar .traffic { padding: 0; gap: 6px; }
.panel-bar .traffic i { width: 9px; height: 9px; }
.panel-doc { padding: 24px 28px 26px; font-family: var(--font-app-serif); color: var(--app-text); }
.panel-doc .doc-h { font-size: 20px; font-weight: 700; line-height: 1.3; }
.panel-doc p { font-size: 16px; line-height: 26px; margin-top: 12px; }
.panel-doc .ghost { color: #a3a59d; }
.panel-doc .sbar-row { margin: 12px -10px 0 0; }
.panel-doc .sbar { gap: 13px; font-size: 12px; padding: 6px 11px; }
.panel-doc .sel { background: rgba(60, 66, 74, 0.13); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 2px 0; }
.ai-menu {
  width: 74%; margin: 8px 0 0 12%; background: var(--app-bg); border: 1px solid #d9d7cf; border-radius: 9px;
  box-shadow: 0 14px 32px rgba(26, 26, 20, 0.1); padding: 6px; font-family: var(--font-app-ui); font-size: 13px; color: var(--app-text);
}
.ai-input { border: 1px solid #d9d7cf; border-radius: 6px; padding: 7px 9px; color: #8a8e86; }
.ai-menu ul { list-style: none; margin: 5px 0 0; padding: 0; }
.ai-menu li { padding: 6px 9px; border-radius: 5px; display: flex; justify-content: space-between; line-height: 1.3; }
.ai-menu li.on { background: #f0efea; font-weight: 500; }
.ai-menu li span { color: #6d716a; }

.shot-caption { padding: 24px 32px 32px; display: flex; flex-direction: column; gap: 6px; }
.shot-caption h3 { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; line-height: 1.25; }
.shot-caption p { color: var(--muted); font-size: 16px; line-height: 24px; }

.keystrip {
  display: flex; gap: 10px 24px; align-items: center; justify-content: center; align-self: center; margin-top: 22px;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 20px; box-shadow: var(--shadow-mini);
}
.keystrip .ks { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.keycap {
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.3;
  background: var(--butter); border: 1px solid var(--butter-deep); border-bottom-width: 2px;
  border-radius: 6px; padding: 3px 9px; transition: background-color 0.3s, transform 0.3s var(--ease);
}
.keycap.lit { background: var(--gold); border-color: var(--gold-deep); transform: translateY(-1px); }

/* Section 3: terminal + review */
.agent-shots { display: grid; grid-template-columns: minmax(0, 1fr) 616px; gap: 24px; align-items: stretch; }
.terminal {
  margin: 0; background: var(--term-bg); border-radius: 11px; box-shadow: var(--shadow-window);
  padding: 14px 20px 20px; font-family: var(--font-code); font-size: 13.5px; line-height: 21px;
  color: #e8e6dc; overflow: hidden;
}
.terminal .traffic { padding-left: 0; margin-bottom: 12px; }
.terminal ol { list-style: none; margin: 0; padding: 0; }
.terminal li { min-height: 21px; white-space: pre-wrap; overflow-wrap: break-word; }
.terminal li + li { margin-top: 4px; }
.terminal .gap { min-height: 10px; }
.terminal .cmd { color: #fffdf6; }
.terminal .out { color: #9a9d95; }
.terminal .ask { color: #f4bf4f; }
.terminal .step { color: #c8c6bc; }
.terminal .step + .step { margin-top: 0; }

.review {
  align-self: start; background: var(--app-bg); border: 1px solid var(--app-border); border-radius: 11px;
  box-shadow: var(--shadow-window); overflow: hidden; position: relative;
}
.review img { width: 100%; height: auto; }

.paste-card {
  width: min(880px, 100%); margin: 56px auto 0; background: var(--white); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 28px 32px; box-shadow: var(--shadow-float); display: flex; flex-direction: column; gap: 14px;
}
.paste-card h3 { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.paste-card .note { color: var(--muted); font-size: 15px; }
.paste-card .note code { font-family: var(--font-mono); font-size: 0.92em; }
.cmdfield {
  display: flex; align-items: center; gap: 16px; background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 9px; padding: 8px 8px 8px 20px;
}
.cmdfield code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 16px; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.copy-btn { min-width: 84px; }
.copy-btn.copied { background: var(--mint); border-color: var(--mint-deep); color: var(--ins-ink); }

/* Section 4: features */
.features-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.section-features { padding-top: 128px; padding-bottom: 96px; }
.feature-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.feature {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 14px; padding: 10px 10px 22px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: #ddd8ca; }
.feature h3 { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; padding-inline: 10px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 22px; padding-inline: 10px; margin-top: -12px; }
.fv {
  position: relative; height: 196px; border-radius: 9px; overflow: hidden; padding: 18px 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.fv-paper { background: var(--paper); }
.fv-blush { background: var(--blush); }
.fv-butter { background: var(--butter); }
.fv-mint { background: var(--mint); }
.mini { background: var(--white); border-radius: 8px; box-shadow: var(--shadow-mini); padding: 12px; font-family: var(--font-serif); font-size: 13px; line-height: 20px; color: var(--ink); }
.wash { display: block; background: var(--sky); border-bottom: 2px solid var(--sky-deep); border-radius: 3px; padding: 1px 3px; }
.fv-comments { justify-content: flex-start; padding-top: 20px; gap: 0; }
.fv-comments .mini { padding-bottom: 22px; }
.bubble {
  position: relative; align-self: flex-start; margin: -14px 0 0 10%; max-width: 90%; display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--sky-deep); border-radius: 9px; padding: 8px 12px 8px 10px;
  box-shadow: var(--shadow-mini); font-weight: 500; font-size: 12px; line-height: 1.3; color: var(--ink-2);
}
.bubble i { width: 16px; height: 16px; border-radius: 50%; background: var(--sky-deep); flex: none; }
.squiggle { color: var(--del-ink); text-decoration: underline wavy var(--del-ink) 1px; text-underline-offset: 2px; }
.fix {
  align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; background: var(--white);
  border: 1px solid var(--hairline); border-radius: 9px; padding: 6px 10px 6px 8px; box-shadow: var(--shadow-mini);
  font-family: var(--font-serif); font-size: 13px; white-space: nowrap;
}
.fix .from { color: var(--del-ink); }
.fix .to { color: var(--ins-ink); font-weight: 600; }
.fix .arr { font-family: var(--font-display); font-size: 12px; color: var(--muted); }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--white); border: 1.5px solid var(--butter-deep);
  border-radius: 9px; padding: 7px 10px; font-weight: 500; font-size: 13px;
}
.search svg { width: 14px; height: 14px; flex: none; }
.results { background: var(--white); border-radius: 9px; box-shadow: var(--shadow-mini); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.results div { display: flex; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.results .hit { background: var(--butter); }
.results b { font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.results .s { font-family: var(--font-serif); overflow: hidden; text-overflow: ellipsis; }
.results .n { font-weight: 500; }
.minitree { background: var(--white); border-radius: 9px; box-shadow: var(--shadow-mini); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.minitree div { font-weight: 500; font-size: 12px; color: var(--ink-2); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.minitree .nested { padding-left: 22px; }
.minitree .drop { background: var(--mint); border: 1.5px dashed var(--mint-deep); color: var(--ins-ink); padding: 3px 7px; }
.dragged {
  position: absolute; left: 84px; top: 146px; background: var(--white); border: 1px solid var(--mint-deep);
  border-radius: 6px; padding: 4px 8px 4px 16px; font-weight: 500; font-size: 12px; color: var(--ink-2);
  box-shadow: var(--shadow-mini); transform: rotate(-2deg); white-space: nowrap;
}
.fv-focus { justify-content: flex-end; padding: 16px 26px 0; }
.focused { background: var(--white); border-radius: 8px 8px 0 0; box-shadow: var(--shadow-mini); padding: 14px 16px 16px; font-family: var(--font-serif); display: flex; flex-direction: column; gap: 8px; }
.focused strong { font-size: 14px; font-weight: 600; }
.focused span { font-size: 11px; line-height: 17px; color: var(--ink-2); }

.rail-dots { display: none; }
.trust { display: flex; justify-content: center; align-items: center; gap: 14px 22px; padding: 56px 0 0; list-style: none; margin: 0; flex-wrap: wrap; }
.trust li { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Section 5: download */
.section-download { padding-top: 48px; padding-bottom: 120px; }
.get {
  background: var(--butter); border-radius: 14px; padding: 64px 64px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}
.get h2 { font-weight: 800; font-size: clamp(44px, 1.6rem + 3vw, 64px); line-height: 1.03; letter-spacing: -0.03em; }
.dmg {
  display: flex; align-items: center; gap: 18px; background: var(--white); border: 1px solid var(--butter-deep);
  border-radius: 14px; padding: 18px 28px 18px 20px; box-shadow: var(--shadow-float); text-align: left;
}
.dmg .icon { width: 56px; height: 56px; flex: none; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--hairline); border-radius: 12px; }
.dmg .icon svg { width: 30px; height: 30px; }
.dmg strong { display: block; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; }
.dmg small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.get .buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.mac-only { font-size: 15px; color: var(--ink-2); margin-top: -8px; }
.mac-only a { color: var(--gold-text); font-weight: 600; text-underline-offset: 3px; }
.mac-only a:hover { color: var(--ink); }
.alt-install {
  display: grid; grid-template-columns: auto auto auto; gap: 10px 12px; align-items: center; justify-items: start;
  padding-top: 22px; border-top: 1px solid var(--butter-deep); margin-top: 4px;
}
.alt-line { display: contents; font-size: 14px; color: var(--muted); }
.alt-line > span { justify-self: end; font-size: 14px; color: var(--muted); }
.alt-line code {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); background: var(--white);
  border: 1px solid var(--butter-deep); border-radius: 7px; padding: 5px 10px; overflow-wrap: anywhere; user-select: all; justify-self: stretch;
}
.linkbtn {
  background: none; border: 0; padding: 4px 6px; margin: -4px -6px; cursor: pointer; border-radius: 6px;
  font-weight: 600; font-size: 14px; color: var(--gold-text);
}
.linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.linkbtn.copied { color: var(--ins-ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 36px; }
.foot-left { display: flex; align-items: center; gap: 18px; }
.site-footer .wordmark { font-size: 17.6px; gap: 5px; }
.site-footer .wordmark svg { width: 17.6px; height: 17.6px; }
.copyright { font-size: 14px; color: var(--muted); }
.foot-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.foot-links a { font-weight: 500; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal on scroll (JS adds .js; reduced motion never hides) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(12px); }
  .js [data-reveal].is-in {
    opacity: 1; transform: none;
    transition: opacity 0.4s var(--ease) var(--d, 0ms), transform 0.4s var(--ease) var(--d, 0ms);
  }
  .js .terminal.will-play li { opacity: 0; transform: translateY(4px); }
  .js .terminal.will-play li.on { opacity: 1; transform: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
  .js .review.will-play { opacity: 0; transform: translateY(8px); }
  .js .review.will-play.on { opacity: 1; transform: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .feature:hover, .btn:hover, .btn-white:hover { transform: none; }
}

/* ---------- Responsive (keep last) ---------- */
@media (max-width: 1199px) {
  .section-head { gap: 48px; }
  .section-head .title-block { flex: 1 1 auto; }
  .lede { flex: 0 1 460px; }
}
@media (max-width: 1199px) and (min-width: 841px) {
  .keystrip { align-self: stretch; justify-content: space-around; gap: 6px; padding: 10px 8px; }
  .keystrip .ks { flex-direction: column; gap: 5px; }
}
@media (max-width: 1139px) {
  .agent-shots { grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 680px; margin-inline: auto; }
}
@media (max-width: 1079px) {
  .feature-rail {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .feature-rail::-webkit-scrollbar { display: none; }
  .feature { flex: 0 0 260px; scroll-snap-align: start; }
  .feature:hover { transform: none; box-shadow: none; }
  .rail-dots { display: flex; gap: 6px; justify-content: flex-start; margin-top: 12px; }
  .rail-dots button {
    width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
  }
  .rail-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: #d3cdbd; transition: width 0.2s var(--ease), background-color 0.2s; }
  .rail-dots button[aria-current="true"]::before { width: 18px; background: var(--gold); }
  .trust { padding-top: 40px; }
}
@media (max-width: 1023px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .lede { flex: none; }
  .stage { padding: 36px 32px 40px; }
  .window, .topbar { grid-template-columns: 180px 1fr; }
  .window { height: 444px; }
  .topbar-tools { display: none; }
  .prose { padding-inline: 32px; }
}
@media (max-width: 840px) {
  .nav-links, .site-nav .lang { display: none; }
  .nav-right { gap: 12px; }
  .menu { display: block; }
  .lang-inline { display: flex !important; }
  .shots { grid-template-columns: 1fr; }
  .section { padding-block: 88px; }
  .section-paper { padding-block: 88px; }
  .section-features { padding-top: 88px; padding-bottom: 72px; }
}
@media (min-width: 841px) { .lang-inline { display: none; } }
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-nav .wrap { min-height: 53px; }
  .wordmark { font-size: 19.8px; gap: 5.4px; }
  .wordmark svg { width: 19.8px; height: 19.8px; }
  .hero { padding-top: 56px; }
  .hero-copy { gap: 20px; }
  .hero h1 { font-size: clamp(38px, 11.4vw, 48px); line-height: 1; }
  .hero-sub { font-size: 18px; line-height: 28px; }
  .hero-ctas { flex-direction: column; width: 100%; gap: 6px; }
  .hero-ctas .btn-gold { width: 100%; }
  .meta { font-size: 11px; }
  .stage { margin-top: 36px; padding: 20px 12px 22px; border-radius: 14px; margin-inline: -4px; }
  .window { grid-template-columns: 1fr; grid-template-rows: 32px 1fr; height: 336px; border-radius: 10px; }
  .window .tree { display: none; }
  .topbar { grid-template-columns: auto 1fr; }
  .topbar-main { padding-left: 14px; }
  .topbar-main > svg { display: none; }
  .tab { height: 25px; font-size: 11px; padding: 0 10px; }
  .prose { padding: 20px 18px 0; }
  .prose .doc-title { font-size: 23px; }
  .prose .doc-h { font-size: 17px; margin-top: 16px; }
  .prose p { font-size: 15px; line-height: 23px; margin-top: 10px; }
  .prose .doc-h + p { margin-top: 8px; }
  .sbar-row { margin: 10px 0 0; justify-content: flex-start; }
  .sbar { gap: 12px; font-size: 12px; padding: 6px 10px; }
  .sbar .opt { display: none; }
  .section, .section-paper { padding-block: 64px; }
  .section-features { padding-top: 64px; padding-bottom: 56px; }
  .section-head { margin-bottom: 28px; gap: 16px; }
  .lede { font-size: 18px; line-height: 28px; }
  .shot-media { padding: 20px 14px 0; }
  .panel-doc { padding: 18px 18px 20px; }
  .panel-doc .doc-h { font-size: 18px; }
  .panel-doc p { font-size: 15px; line-height: 24px; margin-top: 10px; }
  .panel-doc .sbar-row { margin: 10px 0 0; justify-content: flex-start; }
  .panel-doc .sbar .opt { display: none; }
  .ai-menu { width: 88%; margin-left: 6%; }
  .shot-caption { padding: 18px 20px 22px; }
  .shot-caption h3 { font-size: 19px; }
  .shot-caption p { font-size: 15px; line-height: 22px; }
  .keystrip { align-self: stretch; justify-content: space-around; gap: 6px; margin-top: 14px; padding: 10px 8px; }
  .keystrip .ks { flex-direction: column; font-size: 13.5px; gap: 5px; }
  .keycap { font-size: 13px; padding: 3px 8px; }
  .terminal { font-size: 12px; line-height: 18px; padding: 12px 14px 16px; }
  .terminal li { min-height: 18px; }
  .terminal li + li { margin-top: 3px; }
  .paste-card { margin-top: 28px; padding: 22px 18px; }
  .paste-card h3 { font-size: 18px; }
  .cmdfield { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .cmdfield code { font-size: 14px; }
  .copy-btn { width: 100%; }
  .feature { flex-basis: 250px; }
  .trust { justify-content: flex-start; gap: 10px 16px; }
  .trust li { font-size: 15px; }
  .section-download { padding-top: 16px; padding-bottom: 56px; }
  .get { padding: 44px 20px 26px; gap: 22px; }
  .dmg { padding: 14px 16px; gap: 14px; width: 100%; }
  .dmg .icon { width: 48px; height: 48px; }
  .dmg strong { font-size: 18px; }
  .dmg small { font-size: 11px; }
  .get .buttons { flex-direction: column; width: 100%; }
  .get .buttons .btn { width: 100%; }
  .alt-install { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 6px; width: 100%; padding-top: 18px; }
  .alt-line > span { justify-self: center; margin-top: 10px; }
  .alt-line code { max-width: 100%; text-align: center; justify-self: center; }
  .linkbtn { margin: 0; padding: 8px 20px; }
  .mac-only { font-size: 14px; margin-top: -4px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 24px; }
  .foot-left { display: contents; }
  .foot-links { gap: 18px; flex-wrap: wrap; order: 1; }
  .copyright { order: 2; }
}
.is-paused .caret { animation-play-state: paused; }
