/* agents-balancer — balancer.stilldash.com */

:root {
  --accent: #B5813A;            /* ochre, matches the top bar of the icon */
  --charcoal: #2C2C2A;
  --paper: #F1EFE8;

  --bg: var(--paper);
  --surface: #FAF9F5;
  --ink: var(--charcoal);
  --ink-2: #5F5E59;
  --line: #DEDBD1;
  --accent-ink: #855619;        /* accent text on light bg, AA contrast */
  --on-accent: #FFFFFF;
  --accent-strong: #855619;     /* button fill, AA with white text */
  --shadow: 0 1px 2px rgba(44, 44, 42, .06), 0 12px 32px -12px rgba(44, 44, 42, .22);

  --radius: 14px;
  --maxw: 1040px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1F1F1D;
    --surface: #2C2C2A;
    --ink: var(--paper);
    --ink-2: #B4B1A8;
    --line: #3D3D3A;
    --accent-ink: #E2B676;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -14px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

code { font: .9em var(--mono); background: color-mix(in srgb, var(--ink) 7%, transparent); padding: .1em .35em; border-radius: 5px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 650; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.05rem; font-weight: 620; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: .5rem .8rem; z-index: 10; }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: clamp(48px, 9vw, 104px); padding-bottom: 40px; }
.hero-icon { width: 128px; height: 128px; margin: 0 auto 14px; filter: drop-shadow(0 10px 22px rgba(44, 44, 42, .18)); }
.hero h1 { font-size: clamp(2.3rem, 1.7rem + 3vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--ink-2); max-width: 34ch; margin: .8rem auto 2rem; text-wrap: balance; }

.download { display: flex; flex-direction: column; align-items: center; gap: .55rem; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.6rem;
  border-radius: 999px;
  background: var(--accent); /* fallback */
  background: var(--accent-strong); color: var(--on-accent);
  font-weight: 620; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ico { width: 20px; height: 20px; flex: none; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); min-height: 44px; font-size: .95rem; }
.btn-quiet:hover { filter: none; box-shadow: inset 0 0 0 1px var(--ink-2); }

.dl-meta { margin: .2rem 0 0; color: var(--ink-2); font-size: .92rem; }
.dl-others { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1rem; font-size: .92rem; }
.dl-others a[aria-current] { display: none; }
.dl-note { margin: .4rem 0 0; max-width: 46ch; font-size: .85rem; color: var(--ink-2); text-wrap: balance; }

/* ---------- product shot ---------- */
.shot { padding-block: 24px 72px; }
.stage {
  position: relative; margin: 0 auto; max-width: 860px;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--charcoal) 6%, var(--bg)), color-mix(in srgb, var(--charcoal) 12%, var(--bg)));
  border: 1px solid var(--line);
  padding: 0 0 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
}
.menubar {
  width: 100%; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.mb-dot { width: 34px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.mb-dot:first-child { width: 14px; }
.mb-spacer { flex: 1; }
.mb-tray { width: 18px; height: 18px; border-radius: 4px; }
.mb-clock { font-variant-numeric: tabular-nums; }

.shot-panel {
  width: min(360px, calc(100% - 40px));
  margin: 10px 0 0 auto; margin-right: clamp(20px, 8%, 72px);
  border-radius: 12px; box-shadow: var(--shadow);
  justify-self: end;
}
.shot-toast {
  width: min(319px, calc(100% - 40px));
  margin-top: 28px;
  border-radius: 999px; box-shadow: var(--shadow);
}
.stage figcaption { margin-top: 22px; padding-inline: 20px; text-align: center; color: var(--ink-2); font-size: .95rem; }

/* ---------- how it works ---------- */
.how { padding-block: 40px 64px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.steps li { position: relative; }
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent-ink); font-weight: 650; font-size: .95rem;
  margin-bottom: .8rem; font-variant-numeric: tabular-nums;
}
.steps p { margin: .4rem 0 0; color: var(--ink-2); }
.steps q { color: var(--ink); quotes: "“" "”"; }

/* ---------- features ---------- */
.features { padding-block: 40px 56px; }
.feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.feat p { margin: .35rem 0 0; color: var(--ink-2); font-size: .95rem; }
.fine { margin: 1.4rem auto 0; text-align: center; font-size: .85rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- install ---------- */
.install { padding-block: 40px 72px; }
.notes { margin: 0 auto; max-width: 720px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.notes > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.notes dt { font-weight: 620; }
.notes dd { margin: 0; color: var(--ink-2); }
.notes strong { color: var(--ink); font-weight: 600; }
.again { text-align: center; margin: 2rem 0 0; }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem;
  padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2);
}
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .steps, .feat { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .steps, .feat { grid-template-columns: 1fr; }
  .steps { gap: 22px; }
  .shot-panel { justify-self: center; margin: 14px auto 0; }
  .shot-toast { margin-top: 18px; }
  .notes > div { grid-template-columns: 1fr; gap: 4px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .hero-icon { width: 104px; height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* dark mode: give the charcoal icon a faint edge so it doesn't melt into the page */
@media (prefers-color-scheme: dark) {
  .hero-icon { filter: drop-shadow(0 0 1px rgba(241, 239, 232, .35)) drop-shadow(0 12px 28px rgba(0, 0, 0, .5)); }
  .mb-tray { filter: drop-shadow(0 0 .5px rgba(241, 239, 232, .6)); }
}
.stage picture { display: contents; }

/* ---------- works with ---------- */
.works { padding-block: 8px 48px; text-align: center; }
.works p { margin: 0 auto; max-width: 62ch; color: var(--ink-2); text-wrap: balance; }
.works strong { color: var(--ink); font-weight: 600; }

/* ---------- CLI ---------- */
.cli { padding-block: 8px 72px; }
.cli-box { margin: 0 auto; max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.cli-box p { margin: 0 0 .8rem; color: var(--ink-2); }
.cli-box p:last-child { margin: .8rem 0 0; font-size: .9rem; }
.cli pre { margin: 0; overflow-x: auto; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 10px; padding: 12px 14px; }
.cli pre code { background: none; padding: 0; font-size: .88rem; line-height: 1.7; white-space: pre; }
