/* Install pages. Tokens, header and footer are copied from the site's inline styles so these pages match; the rest is theirs. */
:root {
  --paper: #f7f9fb;
  --paper-deep: #e7edf3;
  --ink: #172938;
  --body: #41515d;
  --muted: #667783;
  --line: #d7e0e8;
  --card: #ffffff;
  --green: #2f8b78;
  --green-dark: #1f6b5b;
  --green-soft: #e2f1ed;
  --amber: #6167a6;
  --amber-soft: #e8eaf6;
  --serif: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 9px 13px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font: 500 12px/1.2 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { color: var(--ink); font-family: var(--serif); font-weight: 600; }
h1 { max-width: 820px; margin-bottom: 24px; font-size: clamp(48px, 7vw, 94px); line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 18px; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -.04em; }
h3 { color: var(--ink); font-size: 19px; line-height: 1.3; }
.lead { max-width: 710px; color: var(--body); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 224, 232, .85);
  background: rgba(247, 249, 251, .9);
  backdrop-filter: blur(14px);
}
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 21px; height: 21px; border: 1px solid var(--green); border-radius: 50%; position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--green); border-radius: 50%; }
.brand-mark::before { width: 5px; height: 5px; top: 3px; left: 3px; box-shadow: 9px 3px 0 var(--green); }
.brand-mark::after { width: 5px; height: 5px; bottom: 3px; left: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--body); font-size: 14px; text-decoration: none; }
.nav-links a:hover { color: var(--green); }
.nav-cta { padding: 9px 15px; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink) !important; font-weight: 500; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { padding: 8px 11px; border: 1px solid var(--ink); border-radius: 3px; font-size: 14px; }
.mobile-menu summary::after { margin-left: 9px; font-size: 16px; }
.mobile-menu-links { position: absolute; top: calc(100% + 8px); right: 0; width: 210px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); box-shadow: 0 14px 40px rgba(23, 41, 56, .16); }
.mobile-menu-links a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; }
.mobile-menu-links a:hover { background: var(--green-soft); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; border: 1px solid var(--green); border-radius: 3px; background: var(--green); color: white; font-weight: 500; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); background: var(--green-dark); }
.button.secondary { background: transparent; color: var(--green); }
.button.secondary:hover { background: var(--green-soft); }
.backed { display: block; margin: 0; color: var(--muted); text-decoration: none; }
.backed span { display: block; margin-bottom: 9px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.backed .ah-logo { display: block; height: 19px; width: auto; color: #e6edf3; }
.backed:hover .ah-logo { color: #ffffff; }
footer { padding: 40px 0; background: #112a39; color: #8c959b; }
footer .brand { color: white; }
.logo { display: block; height: 24px; width: auto; color: var(--ink); }
footer .logo { height: 22px; color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-col h4 { margin: 0 0 13px; color: #ffffff; font: 500 11px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.footer-col a { display: block; margin: 9px 0; font-size: 13px; text-decoration: none; }
.footer-col a:hover { color: #ffffff; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; font-size: 12.5px; }
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: #ffffff; }
.nav { min-height: 74px; gap: 32px; }
.nav-links { gap: 28px; }
.nav-links a { font-size: 15px; }
.logo { height: 26px; }
details { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; color: var(--ink); font-weight: 500; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font: 22px var(--mono); }
details[open] summary::after { content: "-"; }
.mobile-menu { border: 0; }
.mobile-menu summary { padding: 8px 11px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ---- Install pages ---- */
:root { --term: #112a39; --term-line: #24404f; --term-ink: #e6eef3; --term-dim: #7f97a6; }
.install code { font-family: var(--mono); font-size: .88em; }
.install p code, .install li code { padding: 1px 5px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); color: var(--ink); white-space: nowrap; }
.install a { color: var(--green-dark); }
.install .button { color: white; }

.i-hero { padding: 72px 0 80px; border-bottom: 1px solid var(--line); background:
  radial-gradient(1100px 420px at 85% -10%, var(--green-soft), transparent 70%), var(--paper); }
.i-hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.i-hero h1 { margin-bottom: 20px; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.045em; }
.i-hero .lead { max-width: 560px; margin-bottom: 26px; font-size: clamp(17px, 1.6vw, 19px); }
.crumbs { display: flex; gap: 9px; margin-bottom: 26px; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.crumbs a { color: var(--green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--body); font-size: 13px; }
.facts li::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 600; }
.i-hero-run { display: grid; gap: 14px; padding-top: 6px; }

/* the command card */
.term { overflow: hidden; border: 1px solid var(--term-line); border-radius: 8px; background: var(--term); color: var(--term-ink); box-shadow: 0 24px 60px rgba(17, 42, 57, .18); }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--term-line); }
.term-where { color: var(--term-dim); font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.term-hint { margin: 0; padding: 11px 16px 13px; border-top: 1px solid var(--term-line); color: var(--term-dim); font-size: 13px; }
.cmd-lines { margin: 0; padding: 6px 0; list-style: none; }
.cmd-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px 7px 16px; }
.cmd-row + .cmd-row { border-top: 1px dashed rgba(255,255,255,.07); }
.cmd-row code { overflow-x: auto; color: var(--term-ink); font-size: 14.5px; white-space: nowrap; scrollbar-width: none; }
.cmd-row code::-webkit-scrollbar { display: none; }
.prompt { color: #5cc4ae; font-family: var(--mono); user-select: none; }
.line .prompt { display: inline-block; width: 22px; }
.cmd-block { margin: 0; padding: 16px; overflow-x: auto; font: 14.5px/1.85 var(--mono); }
.cmd-block .line { display: block; white-space: pre; }
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border: 1px solid var(--term-line); border-radius: 5px; background: rgba(255,255,255,.04); color: var(--term-ink); font: 500 12.5px var(--sans); cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.copy:hover { border-color: #5cc4ae; background: rgba(92,196,174,.12); }
.copy.done { border-color: #5cc4ae; background: #2f8b78; color: white; }
.term-small .cmd-block { padding: 12px 14px; font-size: 13px; }
.term-small { box-shadow: none; }

.alt { border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.alt summary { padding: 13px 16px; font-size: 14.5px; }
.alt summary::after { font-size: 18px; }
.alt-body { padding: 0 16px 16px; }
.alt-body p { margin: 0 0 12px; color: var(--body); font-size: 14.5px; }

.i-section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.i-section h2 { margin-bottom: 26px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 24px 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.step-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font: 500 13px var(--mono); }
.step h3 { margin: 4px 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--body); font-size: 14.5px; line-height: 1.6; }

.i-split { background: var(--card); }
.i-split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; margin: 0 0 16px; padding-left: 30px; font-size: 15.5px; line-height: 1.6; }
.checks li::before { content: "✓"; position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: white; font-size: 11px; font-weight: 700; }
.faqs details:last-child { border-bottom: 1px solid var(--line); }
.faqs summary { padding: 17px 0; font-size: 15.5px; }
.faqs details p { max-width: 620px; margin: 0; padding: 0 32px 18px 0; color: var(--body); font-size: 14.5px; line-height: 1.65; }
.help-line { margin: 20px 0 0; color: var(--muted); font-size: 14px; }

.i-others { border-bottom: 0; }
.i-others h2 { margin-bottom: 8px; }
.sub { margin: 0 0 24px; color: var(--muted); }
.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.other { display: flex; flex-direction: column; gap: 3px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); text-decoration: none; transition: border-color .2s ease, translate .2s ease; }
.other strong { color: var(--ink); font-size: 16px; }
.other span { color: var(--muted); font-size: 13px; }
.other:hover { border-color: var(--green); translate: 0 -2px; }

/* overview */
.i-hero-overview h1 { max-width: 760px; }
.i-hero-overview .lead { max-width: 680px; margin-bottom: 40px; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); text-decoration: none; transition: border-color .2s ease, translate .2s ease, box-shadow .2s ease; }
a.tool:hover { border-color: var(--green); translate: 0 -3px; box-shadow: 0 16px 42px rgba(47, 139, 120, .1); }
.tool-where { color: var(--green); font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tool-name { color: var(--ink); font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.tool-peek { display: block; overflow: hidden; margin: 4px 0 6px; padding: 11px 13px; border-radius: 5px; background: var(--term); color: var(--term-ink); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.tool-peek .prompt { margin-right: 10px; }
.tool-go { margin-top: auto; color: var(--green-dark); font-weight: 600; }
.tool-body { margin: 0; color: var(--body); font-size: 14.5px; }
.tool-agent { background: transparent; border-style: dashed; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0; }
.fine { margin: 26px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .i-hero-grid, .i-split-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .wrap { width: min(calc(100% - 32px), var(--max)); }
  .site-header { position: relative; } /* not static: static ignores z-index, and the hero below would paint over the open menu */
  .nav { min-height: 60px; }
  .logo { height: 24px; }
  .i-hero { padding: 40px 0 52px; }
  .i-section { padding: 54px 0; }
  .tools, .others { grid-template-columns: minmax(0, 1fr); }
  .tool { padding: 22px 20px; }
  .cmd-row { padding-left: 12px; gap: 8px; }
  .cmd-row code, .cmd-block { font-size: 13px; }
  .copy span { display: none; }
  .copy.done span { display: inline; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .other, .tool, .copy { transition: none; }
  .button:hover, .other:hover, a.tool:hover { transform: none; translate: none; }
}
/* the in-text code pill must not reach the command card */
.install .cmd-row code, .install .tool-peek { padding: 0; border: 0; border-radius: 0; background: none; color: var(--term-ink); }
.install .tool-peek { padding: 11px 13px; border-radius: 5px; background: var(--term); }
.tool-agent { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 32px; align-items: center; }
.tool-agent > .tool-where, .tool-agent > .tool-name, .tool-agent > .tool-body, .tool-agent > .tool-actions { grid-column: 1; }
.tool-agent > .term { grid-column: 2; grid-row: 1 / span 4; }
@media (max-width: 900px) { .tool-agent { display: flex; } }
.tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .tools { grid-template-columns: minmax(0, 1fr); } }
.tool > * { min-width: 0; max-width: 100%; }
/* a long one-line command scrolls inside its card, it never widens the page */
.i-hero-run { grid-template-columns: minmax(0, 1fr); }
.i-hero-run > *, .alt-body, .alt-body .term { min-width: 0; max-width: 100%; }
.crumbs a { display: inline-block; padding: 6px 0; margin: -6px 0; }

.mobile-menu-links a.mobile-cta { margin: 0 0 6px; background: var(--green); color: white; font-weight: 600; text-align: center; border-radius: 3px; }
.mobile-menu-links a.mobile-cta:hover { background: var(--green-dark); }
.nav-cta { padding: 10px 17px; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink) !important; font-weight: 500; }
.nav-cta:hover { background: var(--ink); color: white !important; }

/* customer proof: logo beside their own words */
.i-proof { padding: 44px 0; border-bottom: 1px solid var(--line); background: var(--card); }
.i-proof-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: center; }
.i-proof-logo { display: block; width: 200px; max-width: 100%; height: auto; }
.i-proof-quote { margin: 0; padding-left: 28px; border-left: 3px solid var(--green); }
.i-proof-quote blockquote { margin: 0; }
.i-proof-quote p { max-width: 760px; margin: 0 0 12px; color: var(--ink); font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.6; text-wrap: pretty; }
.i-proof-quote figcaption { color: var(--muted); font-size: 14px; }
.i-proof-quote figcaption strong { color: var(--ink); font-weight: 600; }
.i-hero-overview + .i-proof { border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .i-proof { padding: 36px 0; }
  .i-proof-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .i-proof-logo { width: 170px; }
  .i-proof-quote { padding-left: 18px; }
}
