/* Call My Agent — desk, felt, violet cord */

:root {
  --paper: #fbf6ee;
  --paper-deep: #f3ebe0;
  --ink: #2a2118;
  --ink-soft: #5c4f42;
  --muted: #8a7a6a;
  --peach: #e8a882;
  --peach-soft: #f2c4a8;
  --desk: #c4a57a;
  --desk-deep: #8b6914;
  --violet: #6d3df0;
  --violet-deep: #4f28c4;
  --violet-soft: #ebe4ff;
  --slack: #1a1d21;
  --slack-panel: #222529;
  --slack-text: #d1d2d3;
  --ok: #2d8a4e;
  --danger: #c44;
  --radius: 14px;
  --shadow: 0 24px 60px -28px rgba(42, 33, 24, 0.45);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 168, 130, 0.22), transparent 60%),
    radial-gradient(900px 500px at 90% 5%, rgba(109, 61, 240, 0.08), transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--paper-deep);
  padding: 0.12em 0.4em;
  border-radius: 5px;
}

a {
  color: var(--violet-deep);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0;
}

/* ——— Top nav ——— */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.top nav a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--violet);
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--violet-deep);
}

@media (max-width: 560px) {
  .logo {
    font-size: 1rem;
    white-space: nowrap;
  }

  .top nav a:not(.nav-cta) {
    display: none;
  }
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 10px 28px -12px var(--violet);
}

.btn-primary:hover {
  background: var(--violet-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 18%, transparent);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ——— Shared section bits ——— */

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 0.75rem;
}

.section-head {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  padding: 0 1.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.section-sub {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.1rem;
}

.cord-divider {
  color: var(--violet);
  opacity: 0.45;
  padding: 0.5rem clamp(1rem, 6vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
}

.cord-divider svg {
  width: 100%;
  height: 28px;
  display: block;
}

/* ——— Hero ——— */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) 2rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    padding-top: 3.5rem;
  }
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-art {
  margin: 0;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--desk) 40%, transparent);
  transform: rotate(-0.6deg);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ——— Stage ——— */

.stage-section {
  padding: clamp(2rem, 5vw, 3.5rem) 0 0;
}

.scrub {
  height: 420vh;
}

.scrub.is-settled {
  height: auto;
}

.scrub.is-settled .scrub-sticky {
  position: static;
  height: auto;
}

.scrub.is-settled .scrub-progress {
  display: none;
}

.scrub-sticky {
  position: sticky;
  top: 4.25rem;
  height: calc(100vh - 4.25rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0.4rem clamp(1rem, 3vw, 2rem) 0.75rem;
}

.scrub-progress {
  height: 3px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 99px;
  margin: 0 0 0.85rem;
  flex: none;
}

.scrub-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--violet);
  border-radius: inherit;
}

.stage {
  --stage-gap: 0.85rem;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--stage-gap);
  min-height: 0;
}

.stage-agent-left { grid-column: 1; grid-row: 1; }
.term-claude { grid-column: 1; grid-row: 2; }
.stage-agent-right { grid-column: 2; grid-row: 1; }
.term-codex { grid-column: 2; grid-row: 2; }
.stage-middle { grid-column: 1 / -1; grid-row: 3; }
.stage-controls { grid-column: 1 / -1; grid-row: 4; }

@media (min-width: 960px) {
  .stage {
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr) minmax(190px, 250px);
    grid-template-rows: auto minmax(120px, 1fr) auto;
    gap: 1rem 1.15rem;
    align-items: stretch;
  }

  .stage-agent-left { grid-column: 1; grid-row: 1; }
  .term-claude { grid-column: 1; grid-row: 2; }
  .stage-middle { grid-column: 2; grid-row: 1 / 3; }
  .stage-agent-right { grid-column: 3; grid-row: 1; }
  .term-codex { grid-column: 3; grid-row: 2; }
  .stage-controls { grid-column: 1 / -1; grid-row: 3; }
}

.stage-agent {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--desk) 35%, transparent);
  background: #c4a574;
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.stage-agent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
}

.crop-claude {
  object-position: 12% 48%;
  transform-origin: 18% 58%;
}

.crop-codex {
  object-position: 88% 50%;
  transform-origin: 82% 56%;
}

/* Agent terminals under the photos */

.term {
  background: #1c1917;
  color: #e7e5e4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 132px;
  min-width: 0;
  align-self: start;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  background: #141210;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 1px solid #2c2825;
  flex: none;
}

.lights {
  display: flex;
  gap: 4px;
}

.lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.term-body {
  padding: 0.7rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  overflow: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
}

.term-wait {
  margin: 0;
  color: #78716c;
}

.term-line {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
}

.term-line.out {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
}

.term-line.out .prompt {
  color: var(--peach-soft);
  margin-right: 0.35rem;
}

.term-line.out .term-text {
  color: #e7e5e4;
}

.term-line.in {
  border-left: 2px solid #57534e;
  color: #a8a29e;
}

.term-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8a29e;
}

.term-line.is-copied {
  background: color-mix(in srgb, var(--violet) 22%, transparent);
  box-shadow: inset 2px 0 0 var(--violet);
}

.term-line.is-typing .term-text::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 0.9em;
  margin-left: 2px;
  background: #e7e5e4;
  vertical-align: text-bottom;
  animation: caret 1s steps(1) infinite;
}

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

.term-line[hidden],
.term-wait[hidden] {
  display: none !important;
}

.agent-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.stage-middle {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  min-height: 0;
}

.relay-panel,
.call-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.65rem;
}

.stage-caption {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.stage-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

/* Slack paste relay */

.slack {
  background: var(--slack);
  color: var(--slack-text);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 220px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.slack-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: #121416;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid #2e3135;
}

.slack-hash {
  color: #ababad;
  font-weight: 400;
}

.slack-meta {
  margin-left: auto;
  font-weight: 500;
  font-size: 0.75rem;
  color: #9a9b9e;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .slack-meta {
    display: none;
  }
}

.slack-thread {
  flex: 1;
  padding: 0.85rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
  overflow-y: auto;
}

.msg-static {
  opacity: 1;
  transform: none;
  animation: none;
}

.msg {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.55rem;
  opacity: 0;
  transform: translateY(8px);
  animation: msgIn 0.4s var(--ease) forwards;
}

@keyframes msgIn {
  to { opacity: 1; transform: none; }
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.msg-avatar.mark { background: #4a154b; }
.msg-avatar.priya { background: #1264a3; }
.msg-avatar.claude { background: #d97757; }
.msg-avatar.codex { background: #10a37f; }
.msg-avatar.system { background: #565856; }

.msg-body {
  min-width: 0;
}

.msg-who {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.15rem;
}

.msg-who span {
  font-weight: 400;
  color: #9a9b9e;
  margin-left: 0.4rem;
  font-size: 0.72rem;
}

.msg-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #c7c8ca;
  white-space: pre-wrap;
}

.msg-text.paste {
  border-left: 3px solid #565856;
  padding-left: 0.65rem;
  color: #ababad;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
}

/* Phone call panel */

.call-panel[hidden],
.relay-panel[hidden],
#hangup-card[hidden],
#reset-btn[hidden],
#connect-btn[hidden],
.btn[hidden] {
  display: none !important;
}

.call-scene {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #c4a574;
}

.call-scene > img {
  width: 100%;
  display: block;
  max-height: min(56vh, 460px);
  object-fit: cover;
  object-position: center 62%;
  transform: none;
}

.call-scene .tag-left { left: 0.85rem; }
.call-scene .tag-right { left: auto; right: 0.85rem; }

.phone {
  background: rgba(28, 22, 18, 0.94);
  color: var(--paper);
  border-radius: 16px;
  border: 3px solid var(--violet);
  overflow: hidden;
  box-shadow:
    0 22px 50px -18px rgba(20, 8, 40, 0.72),
    0 0 0 1px color-mix(in srgb, var(--violet) 55%, transparent);
  min-height: 140px;
  display: flex;
  flex-direction: column;
}

.call-scene .phone {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  width: min(380px, 52%);
  min-height: 90%;
  max-height: 95%;
}

.call-scene .phone-thread {
  max-height: 230px;
}

@media (max-width: 800px) {
  .call-scene {
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .call-scene > img {
    border-radius: calc(var(--radius) + 4px);
    max-height: 240px;
  }

  .call-scene .phone {
    position: static;
    transform: none;
    width: auto;
    max-height: none;
    margin-top: 0.75rem;
  }
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  background: color-mix(in srgb, #000 25%, transparent);
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--violet) 25%, transparent);
}

.phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 30%, transparent);
  animation: pulseDot 1.4s ease infinite;
}

@keyframes pulseDot {
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--violet) 10%, transparent); }
}

.phone-live {
  margin-left: auto;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--peach-soft);
}

.phone-thread {
  flex: 1;
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 300px;
  overflow-y: auto;
}

.call-bubble {
  max-width: 92%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(6px);
  animation: msgIn 0.35s var(--ease) forwards;
}

.call-bubble.caller {
  align-self: flex-start;
  background: color-mix(in srgb, var(--peach) 28%, #3d3228);
  border-bottom-left-radius: 4px;
}

.call-bubble.callee {
  align-self: flex-end;
  background: color-mix(in srgb, var(--violet) 45%, #3d3228);
  border-bottom-right-radius: 4px;
}

.call-bubble .who {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.hangup-card {
  margin: 0 1rem 1rem;
  padding: 0.85rem 1rem;
  background: var(--violet-soft);
  color: var(--ink);
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--violet) 30%, transparent);
  animation: msgIn 0.45s var(--ease) forwards;
}

.hangup-label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet-deep);
}

.hangup-summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.stage[data-mode="call"] .relay-panel,
.stage[data-mode="call"] .term,
.stage[data-mode="call"] .stage-agent {
  display: none;
}

.stage[data-mode="call"] {
  display: block;
}

.stage[data-mode="relay"] .call-panel {
  display: none;
}

.stage[data-mode="call"] .stage-middle,
.stage[data-mode="call"] .stage-controls {
  margin-top: 0.85rem;
}

/* ——— How ——— */

.how {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
}

.beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .beats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.beats li {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--paper-deep) 80%, #fff);
  border: 1px solid color-mix(in srgb, var(--desk) 28%, transparent);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 12px 32px -24px rgba(42, 33, 24, 0.4);
}

.beat-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
  z-index: 0;
}

.beats li.is-playing .beat-video {
  opacity: 1;
}

.beat-copy {
  position: relative;
  z-index: 2;
}

.beat-lead {
  width: fit-content;
  max-width: 100%;
  border-radius: 12px;
  transform: translateY(0);
  transition: transform 0.5s var(--ease), background-color 0.35s ease;
}

.beats li.is-hot .beat-lead {
  transform: translateY(var(--beat-shift, 0px));
  background: color-mix(in srgb, var(--paper) 28%, transparent);
  box-shadow: 0 0 0 0.55rem color-mix(in srgb, var(--paper) 28%, transparent);
  backdrop-filter: blur(8px);
}

.beat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--violet);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.beats h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.beats p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  transition: opacity 0.28s ease;
}

.beats li.is-hot p {
  opacity: 0;
}

.payoff {
  margin: 2.5rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.payoff strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ——— Consent ——— */

.consent {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

@media (min-width: 860px) {
  .consent {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }
}

.consent-art {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--desk) 35%, transparent);
  transform: rotate(0.8deg);
}

.consent-art img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.consent-copy h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.consent-copy > p:last-child {
  color: var(--ink-soft);
  margin: 1.25rem 0 0;
}

.ring-card {
  position: relative;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--violet) 25%, transparent);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: 0 16px 40px -24px var(--violet);
}

.ring-pulse {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--violet) 50%, transparent);
  animation: ringPulse 1.8s ease infinite;
}

@keyframes ringPulse {
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.ring-text {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  padding-right: 1.5rem;
}

.ring-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

.chip-answer {
  background: var(--violet);
  color: #fff;
}

.chip-decline {
  background: var(--paper-deep);
  color: var(--ink-soft);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

/* ——— Security ——— */

.security {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--violet-soft) 55%, transparent) 40%, transparent);
  border-radius: 2rem;
}

.sec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 700px) {
  .sec-list {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
  }
}

.sec-list li {
  padding: 1rem 1.15rem;
  background: color-mix(in srgb, #fff 70%, var(--paper));
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--violet) 12%, transparent);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.sec-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

/* ——— Install ——— */

.install {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem) 3rem;
  max-width: var(--max);
  margin: 0 auto;
}

.install-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .install-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.install-code {
  margin: 0;
  background: var(--ink);
  color: #f5efe6;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.65;
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.install-code code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.install-note {
  margin: 0;
  color: var(--ink-soft);
}

.phrasebook {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--desk) 30%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px -28px rgba(42, 33, 24, 0.35);
}

.phrasebook h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--desk) 25%, transparent);
  background: var(--paper-deep);
}

.phrasebook table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.phrasebook th,
.phrasebook td {
  text-align: left;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--desk) 18%, transparent);
  vertical-align: top;
}

.phrasebook th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.phrasebook tr:last-child td {
  border-bottom: none;
}

.phrasebook td:first-child {
  font-weight: 500;
  color: var(--ink);
  width: 45%;
}

@media (max-width: 600px) {
  .phrasebook thead {
    display: none;
  }

  .phrasebook tr {
    display: block;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid color-mix(in srgb, var(--desk) 18%, transparent);
  }

  .phrasebook td {
    display: block;
    width: 100%;
    padding: 0.15rem 0;
    border: none;
  }

  .phrasebook td:first-child {
    width: 100%;
    margin-bottom: 0.25rem;
  }
}

.other-cmds {
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Footer ——— */

.foot {
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  background: var(--paper-deep);
}

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.foot-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.foot p {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
}

.foot-meta {
  margin-top: 1rem !important;
  font-size: 0.85rem;
  color: var(--muted) !important;
}

/* ——— Reduced motion ——— */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scrub {
    height: auto;
  }

  .scrub-sticky {
    position: static;
    height: auto;
    overflow: visible;
  }

  .msg,
  .call-bubble,
  .hangup-card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 959px) {
  .scrub {
    height: 320vh;
  }

  .stage-agent img {
    aspect-ratio: 4 / 3;
  }

  .term {
    min-height: 110px;
  }

  .term-body {
    font-size: 0.68rem;
  }
}
