/* Web Butler — homepage. The butler's calling card: white stock, ink,
   hairline rules, one serif voice. The only color on the page is the
   working knot. */

:root {
  --paper: #ffffff;
  --ink: #171717;
  --text-2: #404040;
  --text-3: #737373;
  --mist: #a3a3a3;
  --hairline: rgba(0, 0, 0, 0.08);
  --border: rgba(0, 0, 0, 0.1);
  --hover: rgba(0, 0, 0, 0.04);
  --accent: #3b82f6;

  --serif: 'IBM Plex Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --col: 640px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Short page now: keep the footer on the bottom edge regardless. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

::selection { background: rgba(59, 130, 246, 0.18); }

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

/* ---------------------------------------------------------------------
   The mark, as used by the page chrome (header, footer). The demo's
   bowtie is the real BowtieMark component; it animates itself.
--------------------------------------------------------------------- */

.bowtie { width: 20px; height: 20px; display: block; }
.bt-wing { fill: currentColor; }
.bt-knot { fill: var(--mist); transition: fill 150ms ease-out; }

/* The butler straightens his tie when greeted — same pause/tilt/
   over-correct/settle beats as the extension's adjust variant, and the
   knot warms to the accent while the pointer stays. */
.wordmark .bowtie {
  transform-origin: 50% 50%;
}
.wordmark:hover .bowtie {
  animation: bow-adjust 500ms ease-in-out;
}
.wordmark:hover .bt-knot { fill: var(--accent); }
@keyframes bow-adjust {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  55% { transform: rotate(5deg); }
  80% { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}

/* ---------------------------------------------------------------------
   Frame
--------------------------------------------------------------------- */

.top {
  max-width: 1260px;
  /* Body is a flex column; auto margins would otherwise shrink-wrap this. */
  width: 100%;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px;
  margin-left: -8px; /* optically align the mark with the column edge */
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* ⌘-click the wordmark: a small brand menu (download the logo). */
.logo-menu {
  position: fixed;
  z-index: 60;
  min-width: 208px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
  animation: logo-menu-in 140ms cubic-bezier(0.33, 1, 0.68, 1);
  transform-origin: top left;
}
@keyframes logo-menu-in {
  from { opacity: 0; transform: scale(0.96) translateY(-3px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.logo-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: 500 13px var(--sans);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.logo-menu button:hover { background: var(--hover); }
.logo-menu button svg { width: 14px; height: 14px; color: var(--text-3); flex: none; }

.top-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--text-3);
  border-radius: 999px;
  transition: color 120ms, background-color 120ms;
}
.top-link:hover { color: var(--ink); background: var(--hover); }
.top-link svg { display: block; }

main {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  /* Push the footer to the bottom edge on tall viewports. */
  flex: 1;
}

/* ---------------------------------------------------------------------
   Hero
--------------------------------------------------------------------- */

/* The claim beside the proof: headline and lede on the left, the demo
   window running its errands on the right — everything in the first
   viewport, no scroll required. */
.hero-row {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px 0 72px;
}

.hero {
  flex: 1 1 380px;
  min-width: 320px;
  text-align: left;
}

/* Everything above the fold rises into place, in reading order. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.lede,
.cta-row,
.window,
.demo-tabs {
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lede { animation-delay: 70ms; }
.cta-row { animation-delay: 120ms; }
.window { animation-delay: 160ms; }
.demo-tabs { animation-delay: 250ms; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
}

/* The subscription, spelled out: the three marks the butler can drive,
   stacked like accounts on a keyring — overlapping chips, first in front.
   Sized in em so they ride the headline's type scale. */
.hero-logos {
  display: inline-flex;
  align-items: center;
  margin-left: 0.16em;
  vertical-align: 0.13em; /* optically center the cluster on the caps */
}
.logo-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.92em;
  height: 0.92em;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
}
.logo-chip + .logo-chip { margin-left: -0.26em; }
.logo-chatgpt { z-index: 3; }
.logo-claude { z-index: 2; color: #d97757; } /* Claude's brand terracotta */
.logo-grok { z-index: 1; }

/* Greeted, the keyring fans out: transforms only, so the headline never
   reflows — the back chips slide right into the open end of the line. */
.logo-chip {
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-logos:hover .logo-claude { transform: translateX(0.3em); }
.hero-logos:hover .logo-grok { transform: translateX(0.6em); }
.logo-chip svg {
  width: 0.52em;
  height: 0.52em;
  display: block;
}

.lede {
  max-width: 44ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}

/* The install button, stubbed until the Web Store listing exists. */
.cta-row {
  display: flex;
  margin-top: 26px;
}
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: default;
}
.btn-add-icon {
  width: 15px;
  height: 15px;
  flex: none;
}
.btn-add-icon[hidden] { display: none; }
.btn-add .soon {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------------------------------------------------------------------
   The demo — a faux page with the real pill working one errand.
--------------------------------------------------------------------- */

/* The demo gives ground before the text does: it can shrink to 440px
   so two columns survive on ordinary desktop windows, not just wide ones. */
.demo {
  flex: 0 1 660px;
  min-width: 440px;
  max-width: 660px;
}

/* Mid-width desktops: the left column is lean, so the headline steps
   down a size to keep its two-line shape beside the demo. */
@media (max-width: 1150px) and (min-width: 901px) {
  .hero h1 { font-size: clamp(25px, 2.7vw, 34px); }
  .lede { font-size: 15px; }
}

/* Narrow: the claim stacks back on top of the proof, centered. */
@media (max-width: 900px) {
  .hero-row {
    flex-direction: column;
    gap: 18px;
    padding: 20px 0 56px;
  }
  /* flex-basis means height once the row becomes a column: reset it,
     or the hero pads itself out to 380px and shoves the demo down. */
  .hero { flex: none; min-width: 0; text-align: center; }
  .lede { margin: 0 auto; }
  .cta-row { justify-content: center; }
  .demo { flex: none; width: 100%; max-width: 660px; min-width: 0; }
}

.window {
  max-width: 660px;
  margin: 0 auto;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 16px 48px -24px rgba(0, 0, 0, 0.18);
}

.chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
}
/* Traffic lights at their real macOS size, resting gray like an
   unfocused window; hovering any of them lights all three. */
.chrome .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  transition: background 140ms;
}
.chrome:has(.dot:hover) .dot:nth-of-type(1) { background: #ff5f57; }
.chrome:has(.dot:hover) .dot:nth-of-type(2) { background: #febc2e; }
.chrome:has(.dot:hover) .dot:nth-of-type(3) { background: #28c840; }
.chrome .addr {
  margin: 0 auto;
  transform: translateX(-30px); /* optically center against the dots */
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  background: rgba(0, 0, 0, 0.035);
  border-radius: 6px;
  padding: 3px 26px;
}

.stage {
  position: relative;
  padding: 18px 18px 74px;
  /* Fixed height: the window must not resize (and bounce the page)
     when the sponsored posts fold away. */
  min-height: 340px;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.012), transparent 60px);
  /* The side panel squeezes the page, the way real Chrome does. */
  transition: padding-right 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-panel='open'] .stage { padding-right: 318px; }

/* Skeleton feed */
.feed { display: flex; flex-direction: column; gap: 10px; }

.post {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  padding: 12px 14px;
  transition: opacity 500ms ease, transform 500ms ease, margin 500ms ease,
    max-height 500ms ease, padding 500ms ease, border-width 500ms ease;
  max-height: 80px;
  overflow: hidden;
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}
.lines { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.line { height: 7px; border-radius: 4px; background: rgba(0, 0, 0, 0.07); }
.w-40 { width: 40%; } .w-48 { width: 48%; } .w-56 { width: 56%; }
.w-64 { width: 64%; } .w-72 { width: 72%; } .w-80 { width: 80%; }

.post .tag {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 1px 7px;
}

/* The alteration lands: sponsored posts fold away. */
[data-state='done'] .post.sponsored {
  opacity: 0;
  transform: scale(0.985);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: -10px; /* swallow the flex gap above */
  border-top-width: 0;
  border-bottom-width: 0;
}

/* Help-center article (the answering scene). One paragraph carries the
   pick ring — the same accent language as the shell's element picker. */
.article { display: flex; flex-direction: column; gap: 9px; }
.article .headline {
  height: 14px;
  width: 58%;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.09);
  margin-bottom: 6px;
}
.article .picked {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 6px 0;
  padding: 12px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.06);
  transition: background-color 150ms;
}

/* Hovering the p.policy chip in the shell: the box's own border stays the
   only line; a soft pulsing halo breathes behind it (and behind the label
   pill, which rides on top as a child). Mirrors ElementHighlight's
   emphasis values in the extension. */
.article .picked.glowing {
  background: rgba(59, 130, 246, 0.14);
  animation: picked-pulse 0.9s ease-in-out infinite alternate;
}
@keyframes picked-pulse {
  from {
    box-shadow:
      0 0 0 3px rgba(59, 130, 246, 0.15),
      0 0 16px 2px rgba(59, 130, 246, 0.25);
  }
  to {
    box-shadow:
      0 0 0 5px rgba(59, 130, 246, 0.22),
      0 0 28px 6px rgba(59, 130, 246, 0.4);
  }
}
.article .picked-label {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
}

/* Pricing page (the report scene): three plans, side by side. */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
}
.plan.featured { border-color: rgba(0, 0, 0, 0.22); }
.plan .price {
  height: 16px;
  width: 52%;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.1);
  margin: 2px 0 4px;
}
.plan .buy {
  height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  margin-top: 6px;
}

/* Checkout page (the errands scene): enough real form language to make the
   cursor's work legible, still restrained enough to read as an example. */
.demo-form {
  max-width: 430px;
  margin: 0 auto;
  padding: 2px 0;
}
.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.form-heading .headline {
  width: 42%;
  height: 12px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.09);
}
.form-total {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}
.form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.demo-field {
  min-width: 0;
  height: 52px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms, box-shadow 160ms, background 160ms;
}
.demo-field:last-child { grid-column: 1 / -1; }
.demo-field.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.field-label {
  display: block;
  font-size: 9px;
  color: var(--text-3);
  margin-bottom: 3px;
}
.field-value {
  display: block;
  min-height: 16px;
  font-size: 12px;
  color: var(--ink);
}
.field-value:not(.filled) {
  width: 58%;
  height: 7px;
  margin-top: 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.055);
}
.field-value.filled {
  animation: field-fill 180ms ease-out both;
}
@keyframes field-fill {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}
.review {
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 9px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  transition: background 180ms, box-shadow 180ms;
}
.review.filled {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

/* The butler, docked like the real thing. What renders inside is the
   real thing: the shell components from @web-butler/ui. */
#demo-mount { display: contents; }

.butler {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 5;
  transition: right 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-panel='open'] .butler { right: 318px; }
.butler #web-butler-root { width: 100%; }

/* Chrome's side panel, in miniature: docked to the window's right edge,
   below the address bar, serving the real ReportView. */
.side-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  z-index: 4;
  overflow: hidden;
  background: #fff;
  border-left: 1px solid var(--hairline);
  box-shadow: -14px 0 36px -22px rgba(0, 0, 0, 0.25);
}
.side-panel #web-butler-root { height: 100%; }

/* Scenario tabs, set in the eyebrow voice. */
.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 14px;
}
.demo-tabs button {
  appearance: none;
  background: none;
  border: 0;
  position: relative; /* anchors the sliding .tab-line */
  padding: 3px 1px 4px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color 120ms;
}
.demo-tabs button:hover { color: var(--text-2); }
.demo-tabs button.on { color: var(--ink); }

/* The demo prompt is real but scripted: the field ignores the pointer and
   never shows a caret (the shell auto-focuses it on panel clicks), while
   the plus/send buttons around it keep their hover and tap life. */
[data-demo-prompt] textarea {
  pointer-events: none;
  caret-color: transparent;
}

/* The selection line: one element, shared across tabs via layoutId, so it
   slides to the active tab instead of blinking on and off. */
.tab-line {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 0;
  height: 1px;
  background: var(--ink);
}

/* ---------------------------------------------------------------------
   Below the fold — every section shares the hero's left edge and a
   hairline rule on top: how-it-works, questions, install.
--------------------------------------------------------------------- */

.sec-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 26px;
}

/* How it works — three numbered steps in a row, no cards. */
.how {
  border-top: 1px solid var(--hairline);
  padding: 52px 0 64px;
}
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
.how-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.how-steps h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.how-steps p {
  margin: 0;
  max-width: 42ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-3);
}
.how-steps kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  padding: 1px 5px;
  border: 1px solid var(--hairline);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--text-2);
  transition: transform 80ms ease, background 80ms ease, border-color 80ms ease;
}
/* Pressing the real ⌘E presses the drawn one: down a notch and grayed. */
.how-steps kbd.pressed {
  transform: translateY(1.5px);
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.16);
  color: var(--ink);
}
@media (max-width: 760px) {
  .how-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Install — two ways in: the store that's coming, the repo that works. */
.install {
  border-top: 1px solid var(--hairline);
  padding: 52px 0 88px;
}
.install-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.install-col + .install-col {
  border-left: 1px solid var(--hairline);
  padding-left: 48px;
}
.install-col h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.install-col > p {
  margin: 0 0 20px;
  max-width: 48ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-3);
}
@media (max-width: 760px) {
  .install-cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .install-col + .install-col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--hairline);
    padding-top: 36px;
  }
}
.install-clone {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 11px 16px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #fafafa;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  overflow-x: auto;
  white-space: pre;
}
.install-note {
  margin: 0 0 26px;
  max-width: 58ch;
  font-size: 13px;
  color: var(--text-3);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 8px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 140ms, color 140ms;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.install-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  transition: color 140ms, background 140ms;
}
.btn-copy svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.btn-copy:hover {
  color: var(--ink);
  background: var(--hover);
}
.btn-copy.copied { color: var(--accent); }
.btn-copy:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   FAQ — quiet disclosures under hairline rules, serif questions.
--------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--hairline);
  padding: 52px 0 72px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.faq .sec-title { margin: 6px 0 0; }
.faq-list { min-width: 0; }
.faq details:first-child summary { padding-top: 0; }
@media (max-width: 760px) {
  .faq {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.faq details { border-bottom: 1px solid var(--hairline); }

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 2px;
  cursor: pointer;
  list-style: none; /* no default disclosure triangle */
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.008em;
  transition: color 120ms;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--text-2); }

/* The marker: a plus that turns into a close when the answer is out. */
.faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--mist);
  transition: transform 180ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }

/* Open and close glide instead of snapping. `interpolate-size` lets the
   height animate to auto; browsers without it just toggle instantly. */
.faq details {
  interpolate-size: allow-keywords;
}
.faq details::details-content {
  block-size: 0;
  overflow-y: clip;
  transition:
    block-size 240ms cubic-bezier(0.33, 1, 0.68, 1),
    content-visibility 240ms allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
}
/* The answer itself eases down a touch as the drawer opens. */
.faq details[open] p {
  transform: translateY(0);
  opacity: 1;
}

.faq details p {
  transform: translateY(-4px);
  opacity: 0;
  transition: transform 240ms cubic-bezier(0.33, 1, 0.68, 1), opacity 200ms;
  margin: 0;
  padding: 0 2px 20px;
  max-width: 58ch;
  font-size: 14px;
  color: var(--text-3);
}
.faq details a { color: var(--text-2); }
.faq details a:hover { color: var(--ink); }

/* ---------------------------------------------------------------------
   Small screens
--------------------------------------------------------------------- */

@media (max-width: 640px) {
  .hero { padding-top: 12px; }
  .stage { padding-bottom: 70px; }
  /* Not enough room to squeeze: the side panel overlays instead. */
  .side-panel { width: 82%; z-index: 6; }
  [data-panel='open'] .stage { padding-right: 18px; }
  [data-panel='open'] .butler { right: 18px; }
}

/* ---------------------------------------------------------------------
   Footer — one quiet line of credit, pinned to the bottom edge
   (body is a flex column and main flexes).
--------------------------------------------------------------------- */

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--text-3);
}
.foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 120ms;
}
.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot .freestyle-logo {
  width: 14px;
  height: 11px;
  display: block;
}
.foot-sep { color: var(--mist); margin: 0 3px; }

/* ---------------------------------------------------------------------
   Reduced motion: no loop — the demo rests on the delivered state.
--------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post { transition: none; }
  .field-value.filled { animation: none; }
  .hero h1,
  .lede,
  .cta-row,
  .window,
  .demo-tabs,
  .logo-menu,
  .wordmark:hover .bowtie {
    animation: none;
  }
  .faq details::details-content,
  .faq details p {
    transition: none;
  }
}
