/* DialMCP marketing site — static, no build step, no external requests.
   Design language: Plus Jakarta Sans display type, Geist Mono labels,
   lime #d6fd70 accent, dark #131313 panels, soft grey surfaces,
   1.5rem card radii, pill buttons. */

/* Plus Jakarta Sans (SIL OFL 1.1) & Geist Mono (SIL OFL 1.1), self-hosted
   variable fonts, latin subset. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --ink: #1d1d1d;            /* base black */
  --ink-strong: #131313;     /* grey-900: dark panels, buttons */
  --ink-soft: #2f2f2f;       /* grey-700: dark hover */
  --text-secondary: #585858; /* grey-400 */
  --soft: #c7c7c7;           /* grey-300: two-tone headings */
  --grey-100: #f2f2f2;
  --grey-200: #ececec;
  --border: #efeff2;
  --green: #d6fd70;
  --on-dark-body: #c7c7c7;
  --on-dark-faint: #8a8a8a;
  --radius-card: 1.5rem;
  --radius-panel: 2rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
  --radius-pill: 5rem;
  --shadow-card: 0 1px 2px rgba(19, 19, 19, 0.04), 0 8px 24px -12px rgba(19, 19, 19, 0.08);
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
::selection { background: var(--green); color: var(--ink-strong); }
:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 2px; }

code, pre { font-family: var(--font-mono); }
pre {
  background: var(--grey-100);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.code-block { position: relative; }
.code-block pre { padding-right: 3rem; }
.copy-btn {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
.code-block:hover .copy-btn,
.copy-btn:focus-visible {
  opacity: 1;
  transform: translateY(0);
}
.copy-btn:hover { background: rgba(0, 0, 0, 0.1); }
.copy-btn svg { width: 1rem; height: 1rem; stroke: var(--ink); }
.copy-btn .icon-check { display: none; stroke: #1a8c3f; }
.copy-btn.copied .icon-copy { display: none; }
.copy-btn.copied .icon-check { display: block; }
.copy-btn.copied { opacity: 1; transform: translateY(0); }
code.inline {
  background: var(--grey-100);
  border-radius: 0.375rem;
  padding: 0.125rem 0.4375rem;
  font-size: 0.8125em;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.wrap { max-width: 75rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }

/* ---- type helpers ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: currentColor;
  margin-right: 0.75rem;
  vertical-align: 0.2em;
}
.eyebrow.lime { color: var(--green); }
.soft { color: var(--soft); }

h1 {
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.06em;
  font-weight: 500;
  text-wrap: balance;
}
h1 .soft { color: inherit; opacity: 0.73; }

section h2 {
  font-size: clamp(2.125rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.06em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: pretty;
}
section p.lead {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 40rem;
  margin-top: 1.25rem;
}
.sec-head.center { text-align: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }
.sec-head .eyebrow { display: block; margin-bottom: 1rem; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s cubic-bezier(0.19, 1, 0.22, 1), transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn.dark { background: var(--ink-strong); color: #fff; }
.btn.dark:hover { background: var(--ink-soft); }
.btn.accent { background: var(--green); color: var(--ink-strong); padding-right: 0.625rem; }
.btn.accent .circ {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink-strong);
  flex: 0 0 auto;
}
.btn.accent .circ svg { width: 0.875rem; height: 0.875rem; stroke: var(--green); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn.small { min-height: 2.5rem; padding: 0.375rem 1.125rem; font-size: 0.8125rem; }
.btn.lime { background: var(--green); color: var(--ink-strong); }
.btn.lime:hover { background: #c9f353; }

/* ---- header ---- */
/* The header sits 0.75rem off the viewport top so the pill below always has
   room to float, rather than sitting flush against the edge. */
header.site {
  position: sticky;
  top: 0.75rem;
  z-index: 10;
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0 0.5rem 0 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(19, 19, 19, 0.06);
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 2px rgba(19, 19, 19, 0.04), 0 12px 28px -14px rgba(19, 19, 19, 0.18);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease, transform 0.25s ease;
}
/* On the homepage the header floats transparently inside the hero sky —
   no pill, no top gap — until the page is scrolled (JS toggles .scrolled). */
body.home header.site:not(.scrolled) { top: 0; }
body.home header.site:not(.scrolled) .bar {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0 0.5rem;
  /* pushes the nav content down from the sky's top edge without changing the
     header's box height (the hero's negative margin depends on that staying fixed) */
  transform: translateY(0.875rem);
}
body.home header.site:not(.scrolled) .logo,
body.home header.site:not(.scrolled) nav.main > a:not(.btn) { color: #fff; }
body.home header.site:not(.scrolled) nav.main > a:not(.btn):hover { background: rgba(255, 255, 255, 0.14); }
body.home header.site:not(.scrolled) .logo-credit { color: rgba(255, 255, 255, 0.75); border-left-color: rgba(255, 255, 255, 0.35); }
body.home header.site:not(.scrolled) .logo-credit a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.5); }
.logo-group { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.logo-credit {
  padding-left: 0.75rem;
  border-left: 1px solid var(--soft);
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.logo-credit a {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--soft);
  text-underline-offset: 2px;
}
.logo-credit a:hover { color: var(--ink); }
.logo .dot {
  background: var(--green);
  color: var(--ink-strong);
  border-radius: 0.4375rem;
  padding: 0 0.3125rem;
  margin-right: 0.1875rem;
}
nav.main { display: flex; align-items: center; gap: 0.25rem; }
nav.main > a {
  padding: 0.5rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: var(--radius-pill);
  transition: background-color 0.2s, color 0.25s ease;
}
nav.main > a:hover { background: var(--grey-100); }
nav.main .btn { margin-left: 0.625rem; }

/* ---- hero ---- */
/* Sky photo: unsplash.com/photos/1597571063304-81f081944ee8 (Unsplash License), self-hosted. */
.hero { padding: 0.75rem 0.75rem 0; margin-top: calc(-4.25rem - 1px); }
.hero .panel {
  position: relative;
  margin: 0 auto;
  /* the header overlays the panel, so the panel fills the viewport minus gutters */
  min-height: calc(100svh - 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #3d87c4 url("/sky.webp") center top / cover no-repeat;
  border-radius: var(--radius-panel);
  padding: clamp(6rem, 9vw, 7.5rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero .panel > * { width: 100%; }
.hero .eyebrow { display: block; margin-bottom: 1.5rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 32px rgba(30, 80, 130, 0.3); }
.hero h1 .soft { opacity: 1; }
.hero p.sub {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 1.5rem auto 0;
  max-width: 38rem;
  text-shadow: 0 1px 16px rgba(30, 80, 130, 0.22);
}
.hero p.sub strong { color: #fff; font-weight: 700; }
.cta-row { display: flex; gap: 0.875rem; flex-wrap: wrap; justify-content: center; margin-top: 2.5rem; }
.hero .fineprint {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.6;
}
.hero code.inline {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---- transcript mock ---- */
.call-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  max-width: 36rem;
  margin: 3rem auto 0;
  text-align: left;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
}
.call-card .bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.call-card .live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: var(--ink-strong);
  border-radius: var(--radius-pill);
  padding: 0.3125rem 0.75rem;
  flex: 0 0 auto;
}
.call-card .bar-meta { color: var(--text-secondary); }
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-strong);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.turn { display: flex; gap: 0.625rem; margin: 0.625rem 0; font-size: 0.875rem; line-height: 1.55; }
.turn .who {
  flex: 0 0 5.25rem;
  width: 5.25rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.1875rem 0.375rem;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-top: 2px;
}
.turn .txt { flex: 1 1 auto; min-width: 0; }
.turn.agent .who { background: var(--ink-strong); color: var(--green); }
.turn.callee .who { background: var(--grey-100); color: var(--text-secondary); }
.turn .txt { color: #3a3a3a; }
.turn.objective .who { background: transparent; box-shadow: inset 0 0 0 1px var(--soft); color: var(--text-secondary); }
.turn.objective .txt { color: var(--text-secondary); font-style: italic; }
.turn { opacity: 0.45; transition: opacity 0.4s ease; }
.turn.active { opacity: 1; }

/* fixed-size scrolling transcript, so the call card stays a constant height
   regardless of how long the real transcript is */
.transcript-viewport {
  position: relative;
  height: 13.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to bottom, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
}
.transcript-viewport::-webkit-scrollbar { display: none; }
.transcript { padding: 0.75rem 0; }

/* ---- hero play button ---- */
.play-btn { position: relative; }
.play-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.play-icon svg { width: 0.875rem; height: 0.875rem; }
.play-icon .icon-pause { display: none; }
.play-btn.playing .icon-play { display: none; }
.play-btn.playing .icon-pause { display: inline; }
.play-duration {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---- sections ---- */
section { padding: clamp(4rem, 8vw, 7rem) 0; }

/* ---- features (bento) ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  grid-auto-flow: dense;
  gap: 1rem;
  margin-top: 3.5rem;
}
.feature {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.feature.tall { grid-row: span 2; justify-content: space-between; }
.feature.wide { grid-column: span 2; }
.feature .eyebrow {
  font-size: 0.6875rem;
  color: var(--text-secondary);
}
.feature .eyebrow::before { display: none; }
.feature-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: var(--grey-100);
  flex: 0 0 auto;
}
.feature-badge svg { width: 1.125rem; height: 1.125rem; stroke: var(--ink-strong); }
.feature .body { margin-top: 1.75rem; }
.feature.tall .body { margin-top: 0; }
.feature h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.feature.tall h3 { font-size: 2rem; }
.feature.wide h3 { font-size: 1.75rem; }
.feature p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 34rem;
}
.feature p a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--soft); text-underline-offset: 3px; }
.feature p a:hover { text-decoration-color: var(--ink); }

/* photo card — image background with a white inset content card, à la reference.
   Sky-blue gradient underlays the photo as a fallback. */
.feature.photo {
  border-color: transparent;
  padding: 1.25rem;
  min-height: 22rem;
  background: url("/caller-id.jpg") center top / cover no-repeat,
              linear-gradient(165deg, #58b0e4, #1f72b3);
}
.feature.photo .eyebrow { color: #fff; text-shadow: 0 1px 8px rgba(18, 58, 98, 0.4); }
.feature.photo .feature-badge { background: #fff; box-shadow: 0 2px 10px rgba(18, 58, 98, 0.18); }
.feature.photo .body {
  margin-top: 0;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
}
.feature.photo .body h3 { font-size: 1.75rem; }

.feature.gray { background: var(--grey-100); border-color: var(--grey-100); box-shadow: none; }
.feature.gray .feature-badge { background: #fff; }

.feature.lime { background: var(--green); border-color: var(--green); box-shadow: none; }
.feature.lime .eyebrow { color: rgba(19, 19, 19, 0.55); }
.feature.lime h3 { color: var(--ink-strong); }
.feature.lime p { color: rgba(19, 19, 19, 0.72); }
.feature.lime .feature-badge { background: rgba(19, 19, 19, 0.08); }

.feature.dark { background: var(--ink-strong); border-color: var(--ink-strong); box-shadow: none; }
.feature.dark .eyebrow { color: rgba(255, 255, 255, 0.5); }
.feature.dark .feature-badge { background: rgba(255, 255, 255, 0.1); }
.feature.dark .feature-badge svg { stroke: #fff; }
.feature.dark h3 { color: #fff; }
.feature.dark p { color: var(--on-dark-body); }
.feature.dark p a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.feature.dark p a:hover { text-decoration-color: #fff; }

/* ---- setup ---- */
.steps {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.step-row { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.step-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-strong);
  background: var(--green);
  border-radius: var(--radius-pill);
  padding: 0.1875rem 0.5rem;
}
.step-title {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.step p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.step p a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--soft); text-underline-offset: 3px; }

#setup .panel {
  margin-top: 2.5rem;
  background: var(--grey-100);
  border-radius: var(--radius-panel);
  padding: 1.5rem;
}
#setup .panel .clients { margin-top: 0; }
.clients { margin-top: 3.5rem; display: grid; gap: 1rem; }
.client {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.client.featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), var(--shadow-card); }
.client summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.client summary::-webkit-details-marker { display: none; }
.client-summary-right { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; }
.client-body { margin-top: 0; }
.client-badge {
  flex: 0 0 auto;
  background: var(--green);
  color: var(--ink-strong);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
}
.client h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.client p.meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0.5rem 0 1rem;
}
.client ol {
  margin: 0.5rem 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.client ol li { margin: 0.5rem 0; padding-left: 0.375rem; }
.client ol li::marker { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--soft); }
.client strong { color: var(--ink); }
.client .code-block { margin: 1rem 0 0.25rem; }

/* ---- faq ---- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.faq-intro .eyebrow { display: block; margin-bottom: 1rem; }
.faq-intro h2 { margin-bottom: 1rem; }
.faq-intro .lead { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.65; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
details {
  background: var(--grey-100);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
details summary::-webkit-details-marker { display: none; }
.faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  color: var(--ink-strong);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.faq-toggle svg { width: 0.875rem; height: 0.875rem; }
details[open] .faq-toggle { transform: rotate(45deg); }
details p {
  color: var(--text-secondary);
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}
details a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--soft); text-underline-offset: 3px; }
details a:hover { text-decoration-color: var(--ink); }

/* ---- prose pages (safety/privacy/terms) ---- */
.prose { padding-top: 4.5rem; padding-bottom: 6rem; max-width: 44rem; }
.prose h1 {
  font-size: clamp(2.5rem, 4.5vw, 3.25rem);
  margin-bottom: 1rem;
  color: var(--ink);
}
.prose p.updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}
.prose h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--ink);
  margin: 3rem 0 0.75rem;
}
.prose p, .prose li { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; }
.prose p { margin: 0.75rem 0; }
.prose ul { margin: 0.75rem 0 0.75rem 1.25rem; }
.prose li { margin: 0.5rem 0; padding-left: 0.25rem; }
.prose li::marker { color: var(--green); }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--soft); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.notice {
  background: var(--grey-100);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  color: #3a3a3a;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---- footer ---- */
footer.site { padding: 3rem 0 3.5rem; border-top: 1px solid var(--border); }
footer.site .foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
footer.site nav { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
footer.site nav a { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
footer.site nav a:hover { color: var(--text-secondary); }
footer.site .copyright {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---- motion ---- */
@media (prefers-reduced-motion: no-preference) {
  /* scroll reveal: JS adds .reveal then toggles .is-visible via IntersectionObserver */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* ambient sky drift — slow, soft, always on */
  .hero .panel {
    background-position: center top, center top;
    animation: sky-drift 46s ease-in-out infinite alternate;
  }
  @keyframes sky-drift {
    from { background-position: center top, center top; }
    to { background-position: 58% top, center top; }
  }

  /* gentle floating call card */
  .call-card { animation: card-float 7s ease-in-out infinite; }
  @keyframes card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
}

/* ---- responsive ---- */
@media (max-width: 960px) {
  header.site .logo-credit { display: none; }
}
@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .feature.tall { grid-row: auto; justify-content: flex-start; }
  .feature.tall .body { margin-top: 1.75rem; }
  .feature.tall h3 { font-size: 1.75rem; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
  .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 3.5rem 0; }
  nav.main > a { padding: 0.5rem 0.5rem; font-size: 0.875rem; }
}
@media (max-width: 640px) {
  nav.main > a:not(.btn) { display: none; }
  footer.site .foot-top { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  footer.site nav { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
@media (max-width: 560px) {
  .hero .panel { padding-left: 1.125rem; padding-right: 1.125rem; }
  .cta-row .btn { width: 100%; }

  /* shorten the listen button to "Listen to a call" on phones */
  .play-label-full { display: none; }

  /* drop the restaurant name from the call-card meta on phones */
  .bar-meta-name { display: none; }

  /* transcript: stack the speaker pill on top of the text, not beside it */
  .turn { flex-direction: column; gap: 0.25rem; }
  .turn .who { flex: 0 0 auto; width: auto; align-self: flex-start; text-align: left; margin-top: 0; }

  /* setup: keep the client cards from overflowing the viewport on phones */
  #setup .panel { padding: 1rem; }
  .client { padding: 1.25rem; position: relative; }
  .client h3 { font-size: 1.125rem; }
  .client summary { align-items: center; }
  /* featured card: title + toggle sit on one row like the other cards, and the
     "Easiest & most powerful" badge floats in the top-right corner above them */
  .client.featured { padding-top: 3.5rem; }
  .client-summary-right { display: contents; }
  .client-badge { position: absolute; top: 1.25rem; right: 1.25rem; }
  /* wrap long install commands instead of hiding them behind a tiny scroll */
  .client .code-block pre { white-space: pre-wrap; word-break: break-word; overflow-x: visible; }
}
