/* The site landing page. Same palette family as the /try demo
   (crates/demo/www/app.css) so moving between the two feels like one
   place — but this page is the shop window, so it earns the gradients,
   the glass and the motion the demo deliberately does without. */

/* Local aliases over the shared theme tokens (hydra-theme.css). */
:root {
  --bg: var(--hy-bg);
  --bg-panel: var(--hy-bg-panel);
  --bg-term: var(--hy-bg-term);
  --border: var(--hy-border);
  --border-strong: var(--hy-border-strong);
  --text: var(--hy-text);
  --dim: var(--hy-dim);
  --accent: var(--hy-accent);
  --teal: var(--hy-teal);
  --ok: var(--hy-ok);
  --mono: var(--hy-mono);
  --sans: var(--hy-sans);
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.sub-h {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.dim {
  color: var(--dim);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

::selection {
  background: rgba(74, 163, 255, 0.28);
}

/* ── Backdrop ────────────────────────────────────────────────────────── */

/* Two soft light sources behind everything: the accent blue high left,
   the teal low right. Fixed, so scrolling moves the page through the
   light rather than the light with the page. */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 420px at 18% -8%, rgba(74, 144, 217, 0.16), transparent 65%),
    radial-gradient(700px 500px at 85% 8%, rgba(122, 111, 240, 0.1), transparent 65%),
    radial-gradient(800px 600px at 70% 110%, rgba(74, 144, 217, 0.07), transparent 65%);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.button {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

@media (hover: hover) {
  .button:hover {
    text-decoration: none;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
  }
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: var(--hy-brand-grad);
  border-color: rgba(140, 140, 245, 0.55);
  box-shadow: 0 4px 20px rgba(98, 118, 228, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button.primary:hover {
  box-shadow: 0 6px 26px rgba(98, 118, 228, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button.small {
  padding: 7px 14px;
  font-size: 13.5px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(64px, 10vw, 96px) 24px 30px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

/* Announcement pill above the headline, firstup-banner style. */
.announce {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 6px 14px 6px 6px;
  font-size: 13px;
  color: var(--dim);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 140ms ease, color 140ms ease;
}

.announce:hover {
  text-decoration: none;
  color: var(--text);
  border-color: rgba(96, 165, 250, 0.5);
}

.announce-tag {
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  border-radius: 999px;
  color: #dff0ff;
  background: var(--hy-brand-grad);
}

.announce-arrow {
  transition: transform 140ms ease;
}

.announce:hover .announce-arrow {
  transform: translateX(2px);
}

/* Wrapped text does not belong in a pill: on a phone the announcement
   becomes a small left-aligned banner, the tag leading into the text,
   the arrow dropped since the whole banner is the link. */
@media (max-width: 640px) {
  .announce {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    text-align: left;
    padding: 10px 14px;
    border-radius: 12px;
    line-height: 1.55;
  }

  .announce-arrow {
    display: none;
  }
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.grad {
  background: linear-gradient(100deg, #79b8ff 0%, #6ba7ea 55%, #a49bf7 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 22px auto 0;
  max-width: 60ch;
  font-size: 17.5px;
  color: var(--dim);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 0;
}

/* ── Hero network ────────────────────────────────────────────────────── */

.net {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 460px;
  opacity: 0.65;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
}

.net .pipes path {
  fill: none;
  stroke: rgba(120, 160, 210, 0.16);
  stroke-width: 1.5;
}

.net .flows path {
  fill: none;
  stroke: url(#flow) rgba(74, 163, 255, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 3 14;
}

.net .nodes circle {
  fill: #101722;
  stroke: rgba(110, 170, 240, 0.55);
  stroke-width: 1.5;
}

@media (prefers-reduced-motion: no-preference) {
  .net .flows path {
    animation: flow 2.6s linear infinite;
  }

  @keyframes flow {
    to {
      stroke-dashoffset: -17;
    }
  }
}

/* ── Tab radios ──────────────────────────────────────────────────────── */

/* The state carrier for the terminal and screenshot tabs, hidden the
   way the mobile nav checkbox is: still focusable, so arrow keys move
   between tabs, with the ring drawn on the visible label. */
.tab-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── Hero terminal ───────────────────────────────────────────────────── */

.term-wrap {
  margin: 44px auto 0;
  max-width: 640px;
  text-align: left;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-term);
  box-shadow:
    0 24px 70px -18px rgba(30, 90, 170, 0.45),
    0 6px 24px rgba(0, 0, 0, 0.5);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.cmd {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
}

.cmd.no-caret::after {
  content: none;
}

.cmd::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 12px;
  margin-left: 6px;
  vertical-align: -2px;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .cmd.no-caret::after {
  content: none;
}

.cmd::after {
    animation: blink 1.1s steps(1) infinite;
  }

  @keyframes blink {
    50% {
      opacity: 0;
    }
  }
}

.term-tab {
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

@media (hover: hover) {
  .term-tab:hover {
    color: var(--text);
  }
}

#term-wds:checked ~ .term-bar label[for="term-wds"],
#term-uds:checked ~ .term-bar label[for="term-uds"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
}

#term-wds:focus-visible ~ .term-bar label[for="term-wds"],
#term-uds:focus-visible ~ .term-bar label[for="term-uds"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* The blinking caret follows the selected file. */
#term-wds:checked ~ .term-bar label[for="term-wds"]::after,
#term-uds:checked ~ .term-bar label[for="term-uds"]::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 12px;
  margin-left: 6px;
  vertical-align: -2px;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  #term-wds:checked ~ .term-bar label[for="term-wds"]::after,
  #term-uds:checked ~ .term-bar label[for="term-uds"]::after {
    animation: blink 1.1s steps(1) infinite;
  }
}

.term-pane {
  display: none;
}

#term-wds:checked ~ .pane-wds,
#term-uds:checked ~ .pane-uds {
  display: block;
}

.term {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre;
}

.term>span {
  display: block;
  min-height: 1.5em;
}

@media (prefers-reduced-motion: no-preference) {
  .term>span {
    opacity: 0;
    animation: line-in 300ms ease forwards;
  }

  .term>span:nth-child(1) {
    animation-delay: 150ms;
  }

  .term>span:nth-child(2) {
    animation-delay: 250ms;
  }

  .term>span:nth-child(3) {
    animation-delay: 350ms;
  }

  .term>span:nth-child(4) {
    animation-delay: 430ms;
  }

  .term>span:nth-child(5) {
    animation-delay: 510ms;
  }

  .term>span:nth-child(6) {
    animation-delay: 590ms;
  }

  .term>span:nth-child(7) {
    animation-delay: 670ms;
  }

  .term>span:nth-child(8) {
    animation-delay: 800ms;
  }

  .term>span:nth-child(9) {
    animation-delay: 1000ms;
  }

  @keyframes line-in {
    to {
      opacity: 1;
    }
  }
}

.term .ok {
  color: var(--ok);
}

/* ── Sections ────────────────────────────────────────────────────────── */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  margin-top: clamp(72px, 12vw, 110px);
}

/* Anchor jumps land below the sticky nav instead of underneath it. */
section[id],
.anchor {
  scroll-margin-top: 76px;
}

/* A subsection folded into its parent: smaller heading, same rhythm. */
.anchor {
  margin-top: 64px;
}

.sub-h {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.sub-lede {
  margin: 10px 0 0;
  max-width: 64ch;
  color: var(--dim);
  font-size: 15px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lede {
  margin: 14px 0 0;
  max-width: 64ch;
  color: var(--dim);
}

/* Scroll reveal — sections drift up as they arrive. The observer adds
   .in; visitors preferring less motion get everything visible at once. */
/* Scoped under .js (set by the page script) so no-JS readers see every
   section instead of permanent opacity 0. */
/* Fade only, no translate: anchor scrolling measures the target's
   visual position, and a section mid-drift measures 16px low, landing
   headings under the sticky nav on a timing-dependent coin flip. An
   entrance may move nothing that a scroll can target. */
.js .reveal {
  opacity: 0;
  transition: opacity 500ms ease;
}

.js .reveal.in {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transition: none;
  }
}

/* ── Stats band ──────────────────────────────────────────────────────── */

.stats {
  margin-top: 90px;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(500px 260px at 12% 0%, rgba(74, 163, 255, 0.1), transparent 70%),
    radial-gradient(500px 260px at 88% 100%, rgba(79, 214, 194, 0.08), transparent 70%),
    var(--bg-panel);
}

.stat-n {
  display: block;
  font-size: clamp(44px, 5vw, 62px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #79b8ff 0%, #79b8ff 30%, #a49bf7 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat strong {
  display: block;
  margin-top: 10px;
  font-size: 15.5px;
}

.stat-d {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--dim);
  max-width: 34ch;
}

/* ── Cards ───────────────────────────────────────────────────────────── */

.cards {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.cards.four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  position: relative;
  padding: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 14px 40px -14px rgba(40, 110, 200, 0.35);
  }
}

.card .icon {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
}

.card .icon {
  display: block;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.card .model {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--dim);
  font-family: var(--mono);
}

.card p:last-child {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: #c3ccdb;
}


/* ── Closer ──────────────────────────────────────────────────────────── */

.closer {
  margin-bottom: 30px;
  padding: 56px 24px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(74, 163, 255, 0.12), transparent 70%),
    var(--bg-panel);
}

.closer .section-lede {
  margin-inline: auto;
}

.cta.center {
  justify-content: center;
}


/* ── Screenshots ─────────────────────────────────────────────────────── */

.shot {
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-term);
}

.shot.big {
  margin-top: 34px;
  box-shadow:
    0 24px 70px -18px rgba(30, 90, 170, 0.35),
    0 6px 24px rgba(0, 0, 0, 0.5);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.shot-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--dim);
  border-top: 1px solid var(--border);
}

.shot-tabbar {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shot-tabbar label {
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

@media (hover: hover) {
  .shot-tabbar label:hover {
    color: var(--text);
    border-color: var(--border-strong);
  }
}

#shot-canvas:checked ~ .shot-tabbar label[for="shot-canvas"],
#shot-editor:checked ~ .shot-tabbar label[for="shot-editor"],
#shot-results:checked ~ .shot-tabbar label[for="shot-results"],
#shot-report:checked ~ .shot-tabbar label[for="shot-report"],
#shot-queue:checked ~ .shot-tabbar label[for="shot-queue"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(96, 165, 250, 0.45);
}

#shot-canvas:focus-visible ~ .shot-tabbar label[for="shot-canvas"],
#shot-editor:focus-visible ~ .shot-tabbar label[for="shot-editor"],
#shot-results:focus-visible ~ .shot-tabbar label[for="shot-results"],
#shot-report:focus-visible ~ .shot-tabbar label[for="shot-report"],
#shot-queue:focus-visible ~ .shot-tabbar label[for="shot-queue"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shot-tabs .shot.big {
  display: none;
  margin-top: 14px;
}

#shot-canvas:checked ~ .pane-canvas,
#shot-editor:checked ~ .pane-editor,
#shot-results:checked ~ .pane-results,
#shot-report:checked ~ .pane-report,
#shot-queue:checked ~ .pane-queue {
  display: block;
}

/* ── Compatibility ───────────────────────────────────────────────────── */

.compat-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.compat-item h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.compat-item p {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--dim);
}

/* ── SDK code split ──────────────────────────────────────────────────── */

.code-split {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 1.4fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 760px) {
  .code-split {
    grid-template-columns: 1fr;
  }
}

.code-copy h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.code-copy p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--dim);
}

.code-card {
  margin: 0;
  max-width: none;
}

/* The bar shows a file name, not a prompt: no blinking caret here. */
.code-card .cmd.no-caret::after {
  content: none;
}

.cmd::after {
  content: none;
}

.term.code .kw {
  display: inline;
  min-height: 0;
  color: var(--accent);
}

.term.code .st {
  display: inline;
  min-height: 0;
  color: var(--teal);
}

/* ── Performance ─────────────────────────────────────────────────────── */

.perf-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.perf-grid {
  position: relative;
}

.perf-row-label {
  margin: 26px 0 -16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

.perf-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-panel);
}

.perf-time {
  display: block;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #79b8ff 0%, #79b8ff 30%, #a49bf7 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.perf-card strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

.perf-d {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--dim);
  font-family: var(--mono);
}

/* ── Feature grid ────────────────────────────────────────────────────── */

.feature-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.feature {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-panel);
  transition: border-color 160ms ease;
}

.feature:hover {
  border-color: rgba(96, 165, 250, 0.35);
}

.feature h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* A feature that is real but early. Quiet on purpose: it sits inside the
   heading rather than above the card, so it reads as a qualifier on the
   name and not as a badge competing with it. */
.feature-tag {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
  vertical-align: 1.5px;
}

.feature p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--dim);
}

/* On a phone, a column of separate card boxes reads as repetition. The
   inventory grids (features, use cases, toolchain, downloads) become one
   panel of divided rows; the engine cards, the benchmark cards and the
   screenshot figures keep their card weight. */
@media (max-width: 640px) {
  .feature-grid,
  #toolchain .cards.four,
  #download .cards {
    display: block;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-panel);
  }

  .feature,
  #toolchain .cards.four .card,
  #download .cards .card {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 14px 16px;
  }

  .feature + .feature,
  #toolchain .cards.four .card + .card,
  #download .cards .card + .card {
    border-top: 1px solid var(--border);
  }

  #toolchain .cards.four .card:hover,
  #download .cards .card:hover {
    transform: none;
    box-shadow: none;
  }

  #toolchain .card .icon,
  #download .card .icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    vertical-align: -3px;
  }

  #toolchain .card h3,
  #download .card h3 {
    display: inline-block;
  }

}

/* ── Download ────────────────────────────────────────────────────────── */

.card.dl .icon {
  fill: var(--dim);
  stroke: none;
}

.card.dl .icon[viewBox] path[fill="none"] {
  fill: none;
  stroke: var(--dim);
}

#download .cta {
  margin-top: 30px;
}

.note.center {
  text-align: center;
  margin-inline: auto;
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq-list {
  margin-top: 26px;
  border-top: 1px solid var(--border);
  max-width: 760px;
}

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

.faq-list summary {
  padding: 16px 30px 16px 2px;
  font-size: 15.5px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--dim);
  transition: transform 160ms ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .faq-list details {
    interpolate-size: allow-keywords;
  }

  .faq-list details::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: content-visibility 260ms allow-discrete, block-size 260ms ease;
  }

  .faq-list details[open]::details-content {
    block-size: auto;
  }
}

.faq-list details p {
  margin: 0 0 16px;
  max-width: 66ch;
  font-size: 14.5px;
  color: var(--dim);
}

/* ── Footer columns ──────────────────────────────────────────────────── */

.foot-brand {
  max-width: 260px;
}

.foot-col h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

.foot-col a {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--dim);
}

.foot-col a:hover {
  color: var(--text);
  text-decoration: none;
}


/* ── Footer ──────────────────────────────────────────────────────────── */

.foot-inner .hydra-wordmark {
  font-size: 17px;
}

footer {
  margin-top: 90px;
  border-top: 1px solid var(--border);
}

.foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 24px 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.foot-inner .dim {
  margin: 8px 0 0;
  font-size: 13.5px;
}



/* ── Small screens ───────────────────────────────────────────────────── */

/* Narrow layouts: content-sized flex wrapping reads as ragged columns,
   so the footer switches to real grid tracks, brand spanning the row. */
@media (max-width: 900px) {
  .foot-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .foot-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .foot-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
