/* Shared by the standalone pages (/testimonials/, /case-studies/). Loaded after
   vendor/scrollcraft/scrollcraft.css: maps the engine's tokens onto the site's (same
   values as the homepage :root), plus header, footer, buttons, eyebrow, lede, the
   'Play with sound' button and the closing section. Page-specific CSS loads after. */

:root {
  --brand-blue: #0ca3ef;
  --background: #0b1115;
  --foreground: #f2f8fc;
  --muted-foreground: #a4a9ac;
  --border: #303436;
  --card: #181a1b;

  --sc-canvas: var(--background);
  --sc-surface: var(--card);
  --sc-ink: var(--foreground);
  --sc-ink-soft: var(--muted-foreground);
  --sc-accent: var(--brand-blue);
  --sc-accent-ink: #041923;
  --sc-font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sc-font-text: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sc-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { background: var(--background); scroll-behavior: auto; }
body {
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(12, 163, 239, .10), transparent 70%),
    var(--background);
}
img { max-width: 100%; }
.wrap { width: min(1280px, 100% - 64px); margin-inline: auto; }

/* ---- header / footer: same shapes as the homepage ------------------------ */
.cs-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; border-bottom: 1px solid rgba(12, 163, 239, .18); }
.cs-head img, .cs-foot img { width: 220px; height: auto; }
.cs-head nav { display: flex; align-items: center; gap: 28px; }
.cs-head__link { color: var(--muted-foreground); text-decoration: none; font-size: 14px; }
.cs-head__link:hover { color: var(--foreground); }
.cs-btn {
  display: inline-flex; align-items: center; gap: 28px;
  color: var(--foreground); text-decoration: none; font-size: 14px;
  border: 1px solid var(--border); border-radius: 6px; padding: 13px 16px;
  transition: border-color var(--sc-d-base) var(--sc-ease-out), background var(--sc-d-base) var(--sc-ease-out);
}
.cs-btn:hover { border-color: var(--brand-blue); }
.cs-btn--solid { background: var(--brand-blue); border-color: var(--brand-blue); color: var(--sc-accent-ink); font-weight: 600; }
.cs-btn--solid:hover { background: #3bb6f3; }

.cs-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-top: 1px solid var(--border); padding: 30px 0; }
.cs-foot img { width: 190px; }
.cs-foot__mid { display: grid; justify-items: center; gap: 10px; color: var(--muted-foreground); font-size: 12px; }
.cs-social { display: flex; gap: 6px; }
.cs-social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 6px; color: var(--foreground); }
.cs-social a:hover { border-color: var(--brand-blue); }
.cs-social svg { width: 17px; height: 17px; }
.cs-foot nav { display: flex; justify-content: flex-end; gap: 20px; }
.cs-foot nav a { color: var(--muted-foreground); text-decoration: none; font-size: 12px; }
.cs-foot nav a:hover { color: var(--foreground); }

/* ---- type + buttons used across pages -------------------------------------- */
.cs-eyebrow {
  margin: 0 0 22px; font-family: var(--sc-font-mono); font-size: 12px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--brand-blue);
}
.cs-lede {
  margin: 28px auto 0; max-width: 54ch; color: var(--muted-foreground);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.55; text-wrap: pretty;
}

/* "Play with sound" over a video. Top of the frame, because several clips have
   subtitles burned in along the bottom. */
.cs-sound {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 11px 16px 11px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(242, 248, 252, .28); background: rgba(11, 17, 21, .55); backdrop-filter: blur(10px);
  color: var(--foreground); font-size: 14px; font-weight: 600;
  transition: background var(--sc-d-base) var(--sc-ease-out), border-color var(--sc-d-base) var(--sc-ease-out);
}
.cs-sound:hover { background: rgba(12, 163, 239, .85); border-color: var(--brand-blue); color: var(--sc-accent-ink); }
.cs-sound svg { width: 18px; height: 18px; }

/* ---- close ---------------------------------------------------------------- */
.cs-end { padding: clamp(96px, 12vw, 168px) 0; text-align: center; }
.cs-end h2 { margin: 0 auto 40px; max-width: 18ch; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }

@media (max-width: 860px) {
  .wrap { width: calc(100% - 32px); }
  .cs-head img { width: 160px; }
  .cs-head nav { gap: 16px; }
  .cs-head__link { display: none; }
  .cs-btn { gap: 14px; padding: 11px 14px; }

  .cs-foot { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cs-foot nav { justify-content: center; }
}
