/* Volition marketing styles shared by the homepage and legal pages. */
:root {
  --ink: #15122a;
  --ink-2: #2b2745;
  --ink-soft: #5b5770;
  --ink-mute: #8a8698;
  --paper: #f7f2ea;
  --paper-2: #efe7da;
  --card: #fffdf9;
  --rule: #e4dccd;

  --sun: #ff6a2b;
  --sun-deep: #e8521a;
  --dawn: #ffb35c;
  --noon: #ffd25e;
  --dusk: #ff7a7a;
  --violet: #7a5cff;
  --night: #3a2f8f;
  --night-soft: #a99cff;
  --sky: #4fa8ff;
  --lime: #9be15d;
  --lime-deep: #2f9e55;
  --rose: #ff6f9c;
  --gold: #f5b83d;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --page: 80rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --r-sm: 0.6rem;
  --r-md: 1rem;
  --r-lg: 1.6rem;
  --r-xl: 2.2rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgb(21 18 42 / 0.06), 0 12px 32px -12px rgb(21 18 42 / 0.18);
  --shadow-lg: 0 2px 4px rgb(21 18 42 / 0.06), 0 30px 60px -24px rgb(21 18 42 / 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.4rem;
  border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 2.5rem; padding: 0 1.1rem; font-size: 0.92rem; }
.btn-sun { background: var(--sun); color: #fff; }
.btn-sun:hover { background: var(--sun-deep); }
.btn-glass { background: rgb(255 255 255 / 0.14); color: #fff; backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35); }
.btn-glass:hover { background: rgb(255 255 255 / 0.22); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }

.pill { display: inline-flex; align-items: center; padding: 0.22rem 0.65rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.pill-lime { background: #e2f7d1; color: #23733d; }
.pill-violet { background: #ebe5ff; color: #4b33c4; }
.pill-rose { background: #ffe1ea; color: #b4224f; }

/* Nav -------------------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 0.9rem var(--gutter); transition: background 300ms var(--ease), box-shadow 300ms var(--ease), padding 300ms var(--ease); }
.nav-inner { max-width: var(--page); margin: 0 auto; display: flex; align-items: center; gap: 2rem; }
.nav-logo img { width: auto; height: 2.6rem; filter: brightness(0) invert(1); transition: filter 300ms; }
.nav-links { display: flex; gap: 0.25rem; margin-right: auto; padding: 0.3rem; border-radius: 999px; background: rgb(255 255 255 / 0.12); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); }
.nav-links a { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.92rem; padding: 0.45rem 0.95rem; border-radius: 999px; transition: background 200ms; }
.nav-links a:hover { background: rgb(255 255 255 / 0.16); }
.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.nav-login { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.92rem; }
.nav-menu { display: none; }

.nav.is-solid { background: rgb(247 242 234 / 0.86); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--rule); padding-block: 0.6rem; }
.nav.is-solid .nav-logo img { filter: none; }
.nav.is-solid .nav-links { background: transparent; box-shadow: none; backdrop-filter: none; }
.nav.is-solid .nav-links a, .nav.is-solid .nav-login { color: var(--ink); }
.nav.is-solid .nav-links a:hover { background: var(--paper-2); }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; min-height: max(44rem, 100svh); display: grid; align-items: center; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1400ms ease; filter: saturate(1.12) sepia(0.12) brightness(1.04); transform: scale(1.04); }
.hero-video.is-active { opacity: 1; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero-grade {
  position: absolute; inset: 0;
  background:
    radial-gradient(110% 90% at 90% 0%, rgb(255 150 70 / 0.32), transparent 60%),
    linear-gradient(95deg, rgb(21 18 42 / 0.72) 0%, rgb(21 18 42 / 0.36) 48%, rgb(21 18 42 / 0.08) 100%),
    linear-gradient(0deg, rgb(21 18 42 / 0.45), transparent 35%);
}
.hero-inner { width: 100%; max-width: var(--page); margin: 0 auto; padding: 8rem var(--gutter) 5rem; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); text-shadow: 0 2px 30px rgb(21 18 42 / 0.25); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; }
.hero h1 em { display: inline-block; margin-top: 0.08em; font-size: 1.06em; letter-spacing: -0.01em; color: #ffd9b8; }
.hero-lede { margin-top: 1.6rem; max-width: 34rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; color: rgb(255 255 255 / 0.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }
.hero-ticker { display: flex; align-items: center; gap: 0.6rem; margin-top: 2.4rem; font-size: 0.95rem; color: rgb(255 255 255 / 0.78); }
.ticker-icon { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgb(155 225 93 / 0.22); color: var(--lime); }
.ticker-icon svg { width: 0.9rem; }
.ticker-track { position: relative; display: inline-grid; min-width: 0; }
.ticker-track > span { grid-area: 1 / 1; opacity: 0; transform: translateY(0.6em); transition: opacity 500ms var(--ease), transform 500ms var(--ease); white-space: nowrap; }
.ticker-track > span.is-active { opacity: 1; transform: none; }
.ticker-track > span.is-leaving { opacity: 0; transform: translateY(-0.6em); }

/* Phone + chat ----------------------------------------------------------- */
.hero-phone { justify-self: end; width: min(100%, 23rem); }
.phone { border-radius: 2rem; background: #f3eee6; color: var(--ink); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6), 0 0 0 8px rgb(255 255 255 / 0.12); overflow: hidden; }
.phone-head { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.1rem; background: var(--card); border-bottom: 1px solid var(--rule); }
.phone-head strong { display: block; font-size: 0.95rem; }
.phone-head small { display: block; font-size: 0.75rem; color: var(--lime-deep); }
.phone-head time { margin-left: auto; font-size: 0.75rem; color: var(--ink-mute); }
.avatar-dot { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; font-weight: 700; font-size: 0.85rem; color: #fff; }
.avatar-sun { background: var(--sun); }
.avatar-sky { background: var(--sky); }
.avatar-rose { background: var(--rose); }
.avatar-gold { background: var(--gold); }

.chat { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; min-height: 26rem; justify-content: flex-end; }
.hero .chat { height: 28.5rem; min-height: 0; overflow: hidden; background: radial-gradient(circle at 20% 10%, rgb(255 179 92 / 0.12), transparent 50%), #f3eee6; }
.msg { max-width: 84%; padding: 0.6rem 0.85rem; border-radius: 1.1rem; font-size: 0.9rem; line-height: 1.4; box-shadow: 0 1px 1px rgb(21 18 42 / 0.06); }
.msg-in { align-self: flex-start; background: var(--card); border-bottom-left-radius: 0.35rem; }
.msg-voice { width: 84%; }
.voice-row { display: flex; align-items: center; gap: 0.6rem; }
.voice-play { flex: none; width: 1.75rem; height: 1.75rem; }
.voice-play circle { fill: var(--ink); }
.voice-play path { fill: var(--card); }
.voice-wave { flex: 1; min-width: 0; height: 1.3rem; fill: var(--ink-2); opacity: 0.55; }
.voice-time { flex: none; font-size: 0.75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.voice-transcript { margin-top: 0.3rem; font-size: 0.78rem; line-height: 1.35; color: var(--ink-soft); }
.msg-out { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 0.35rem; }
.msg-tool, .msg-result { align-self: center; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.78rem; }
.msg-tool { background: #ebe5ff; color: #3e2aa6; }
.msg-tool i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--violet); animation: pulse 1.4s ease-in-out infinite; }
.msg-tool b { font-weight: 650; }
.msg-result { background: #e2f7d1; color: #23733d; font-weight: 600; }
.typing { align-self: flex-end; display: inline-flex; gap: 0.25rem; padding: 0.75rem 0.9rem; border-radius: 1.1rem; border-bottom-right-radius: 0.35rem; background: var(--ink); }
.typing i { width: 0.38rem; height: 0.38rem; border-radius: 50%; background: rgb(255 255 255 / 0.7); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes pulse { 50% { opacity: 0.35; } }

[data-chat] > [data-delay] { transition: opacity 450ms var(--ease), transform 450ms var(--ease); }
.js [data-chat] > [data-delay]:not(.is-shown) { display: none; }
.js [data-chat] > [data-delay].is-entering { opacity: 0; transform: translateY(8px) scale(0.98); }

/* Channels --------------------------------------------------------------- */
.channels { max-width: var(--page); margin: 0 auto; padding: 2.6rem var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; border-bottom: 1px solid var(--rule); }
.channels-label { font-size: 0.95rem; color: var(--ink-soft); max-width: 18rem; }
.channel-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.channel-list li { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 1rem 0.45rem 0.45rem; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); font-weight: 550; font-size: 0.95rem; }
.ch { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--paper-2); color: var(--ink); }
.ch svg { width: 1.05rem; }
.ch-wa { background: #d9f6e3; color: #128c4a; }
.ch-xs { width: 0.6rem; height: 0.6rem; display: inline-block; vertical-align: 0.05em; margin-right: 0.4rem; background: #25b864; }

/* Statement -------------------------------------------------------------- */
.statement { max-width: var(--page); margin: 0 auto; padding: clamp(5rem, 10vw, 8rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.statement > p { max-width: 62rem; font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.14; letter-spacing: -0.025em; font-weight: 500; }
.statement > p em { color: var(--sun-deep); font-size: 1.06em; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: clamp(1.8rem, 3.5vw, 2.6rem); }
.flow li { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.3rem); }
.flow li:not(:last-child)::after { content: ""; width: clamp(1rem, 2.5vw, 2.2rem); height: 2px; border-radius: 2px; background: var(--rule); }
.flow li::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgb(255 106 43 / 0.16); animation: flow-step 6s ease-in-out infinite; }
.flow li:nth-child(2)::before { animation-delay: 0.5s; } .flow li:nth-child(3)::before { animation-delay: 1s; }
.flow li:nth-child(4)::before { animation-delay: 1.5s; } .flow li:nth-child(5)::before { animation-delay: 2s; }
.flow li.flow-paid::before { background: var(--lime-deep); box-shadow: 0 0 0 4px rgb(47 158 85 / 0.18); animation-delay: 2.5s; }
.flow li.flow-paid { color: var(--lime-deep); }
@keyframes flow-step { 0%, 30%, 100% { transform: scale(1); } 10% { transform: scale(1.6); } }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.pillars li { padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.pillars strong { display: block; font-size: 1.1rem; font-weight: 600; }
.pillars span { display: block; margin-top: 0.35rem; color: var(--ink-soft); }

/* Duo cards -------------------------------------------------------------- */
.duo { max-width: var(--page); margin: 0 auto; padding: 1rem var(--gutter) clamp(4rem, 8vw, 7rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; scroll-margin-top: 5rem; }
.duo-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(1.8rem, 3.5vw, 3rem) clamp(1.5rem, 3.5vw, 3rem) 0; min-height: 40rem; display: flex; flex-direction: column; }
.duo-inbound { background: linear-gradient(160deg, #fff7ef 0%, #ffe6d3 100%); }
.duo-outbound { background: linear-gradient(160deg, #f3f0ff 0%, #e3dcff 100%); }
.duo-card h2, .cap h3 { font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; color: var(--ink-soft); max-width: 26rem; }
.duo-card h2 strong, .cap h3 strong { color: var(--ink); font-weight: 600; }
.duo-visual { position: relative; flex: 1; margin-top: 2rem; min-height: 26rem; }

.bubble { position: absolute; max-width: 18rem; padding: 0.8rem 1rem; border-radius: 1.2rem; font-size: 0.95rem; line-height: 1.4; box-shadow: var(--shadow); }
.bubble small { display: block; margin-bottom: 0.25rem; font-size: 0.75rem; color: var(--ink-mute); }
.bubble-in { top: 0; left: 0; background: var(--card); border-bottom-left-radius: 0.35rem; }
.bubble-out { top: 6.6rem; right: 3.2rem; background: var(--ink); color: #fff; border-bottom-right-radius: 0.35rem; }
.bubble-avatar { position: absolute; right: -2.9rem; bottom: -0.4rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.6); }
.float-a { animation: float 6s ease-in-out infinite; }
.float-b { animation: float 6s ease-in-out -3s infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

.record { position: absolute; left: 0; right: -3rem; bottom: 0; padding: 1.4rem 1.5rem 1rem; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--card); box-shadow: var(--shadow-lg); }
.record-head { display: flex; align-items: center; gap: 0.8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.record-head strong { display: block; font-size: 1.1rem; }
.record-head small { color: var(--ink-mute); font-size: 0.82rem; }
.record-head .pill { margin-left: auto; }
.check { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none; border-radius: 50%; background: var(--lime-deep); color: #fff; font-weight: 700; }
.record dl div { display: grid; grid-template-columns: 7.5rem 1fr; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.record dl div:last-child { border-bottom: 0; }
.record dt { color: var(--ink-mute); }
.record dd { font-weight: 600; }

.campaign { position: absolute; top: 0; right: 0; max-width: 19rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow); z-index: 1; animation: float 7s ease-in-out infinite; }
.campaign p { margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.4; }
.board { position: absolute; left: 0; right: -3rem; bottom: 0; padding: 1.4rem 1.5rem 1.2rem; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--card); box-shadow: var(--shadow-lg); }
.board-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.board-head strong { display: block; font-size: 1.1rem; }
.board-head small { color: var(--ink-mute); font-size: 0.82rem; }
.board-meter { flex: 1; height: 0.5rem; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.board-meter span { display: block; height: 100%; width: var(--fill); border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--lime-deep)); transition: width 800ms var(--ease); }
.board-head b { font-size: 1rem; font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: right; }
.board-grid { display: grid; grid-template-columns: 2.2rem repeat(5, 1fr); gap: 0.45rem; align-items: center; }
.board-grid .board-day { text-align: center; font-size: 0.78rem; color: var(--ink-mute); font-weight: 500; }
.board-grid .tech { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--paper-2); font-size: 0.7rem; font-weight: 600; color: var(--ink-soft); }
.board-grid i { height: 2.6rem; border-radius: 0.55rem; background: var(--paper-2); transition: background 400ms var(--ease), box-shadow 400ms; position: relative; }
.board-grid i.on { background: var(--lime-deep); }
.board-grid i.on::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 0.8rem; font-style: normal; }
.board-grid i.is-booking { background: #f1edff; box-shadow: inset 0 0 0 1.5px var(--violet); }
.board-grid i.is-booking::after { content: "Offering…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--violet); font-size: 0.68rem; font-weight: 600; font-style: normal; }
.board-grid i.is-new { background: var(--violet); }
.board-grid i.is-new::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 0.8rem; font-style: normal; }

/* Section heads ---------------------------------------------------------- */
.section-head { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.section-head h2 { max-width: 48rem; font-size: clamp(2.1rem, 4.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.section-head h2 em { font-size: 1.08em; color: var(--sun-deep); }
.section-head p { margin-top: 1.2rem; max-width: 36rem; font-size: 1.15rem; color: var(--ink-soft); }
.section-head-light h2 em { color: #ffc9a3; }
.team .section-head h2 { max-width: 60rem; }
.section-head-light p { color: rgb(255 255 255 / 0.7); }

/* Outbound plays --------------------------------------------------------- */
.plays { padding: clamp(4rem, 8vw, 7rem) 0; scroll-margin-top: 4rem; }
.plays-body { max-width: var(--page); margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.plays-tabs { position: relative; display: flex; flex-direction: column; }
.plays-tabs button { position: relative; display: block; width: 100%; text-align: left; padding: 1.05rem 1.2rem 1.05rem 1.5rem; border: 0; background: transparent; border-radius: var(--r-md); cursor: pointer; transition: background 250ms var(--ease); }
.plays-tabs button::before { content: ""; position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 3px; border-radius: 3px; background: var(--rule); transition: background 250ms; }
.plays-tabs button strong { display: block; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-soft); transition: color 250ms; }
.plays-tabs button span { display: block; overflow: hidden; max-height: 0; opacity: 0; color: var(--ink-soft); transition: max-height 400ms var(--ease), opacity 400ms var(--ease), margin 400ms var(--ease); }
.plays-tabs button:hover strong { color: var(--ink); }
.plays-tabs button[aria-selected="true"] { background: var(--card); box-shadow: var(--shadow); }
.plays-tabs button[aria-selected="true"]::before { background: var(--sun); }
.plays-tabs button[aria-selected="true"] strong { color: var(--ink); }
.plays-tabs button[aria-selected="true"] span { max-height: 3rem; opacity: 1; margin-top: 0.25rem; }
.plays-progress { height: 3px; margin: 1rem 1.2rem 0 1.5rem; border-radius: 3px; background: var(--rule); overflow: hidden; }
.plays-progress span { display: block; height: 100%; width: 0; background: var(--sun); }
.plays-progress span.is-running { animation: progress var(--play-ms, 9000ms) linear forwards; }
@keyframes progress { to { width: 100%; } }

.plays-stage { position: relative; display: grid; align-items: center; border-radius: var(--r-xl); padding: clamp(1.2rem, 3vw, 2.5rem); background: linear-gradient(150deg, #2a2156 0%, var(--ink) 60%); box-shadow: var(--shadow-lg); min-height: 33rem; overflow: hidden; }
.plays-stage::before { content: ""; position: absolute; width: 22rem; height: 22rem; right: -6rem; top: -8rem; border-radius: 50%; background: radial-gradient(circle, rgb(255 106 43 / 0.45), transparent 65%); }
.play-phone { position: relative; width: 100%; max-width: 25rem; margin: 0 auto; }
.play-panel { background: #f3eee6; }
.play-trigger { display: flex; align-items: center; gap: 0.5rem; width: fit-content; margin: 0 auto; padding: 0.9rem 0.9rem 0; font-size: 0.78rem; font-weight: 500; color: var(--ink-soft); }
.trigger-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
.trigger-rose { background: var(--rose); } .trigger-lime { background: var(--lime); } .trigger-sky { background: var(--sky); }
.trigger-sun { background: var(--sun); } .trigger-violet { background: #a996ff; } .trigger-gold { background: var(--gold); }
.play-panel .chat, .play-panel .match { height: 22rem; min-height: 0; overflow: hidden; }
.match { display: flex; flex-direction: column; gap: 0.6rem; min-height: 22rem; padding: 1rem; justify-content: flex-end; }
.match li:not(.msg-result) { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0.9rem; border-radius: var(--r-md); background: var(--card); box-shadow: 0 1px 1px rgb(21 18 42 / 0.06); }
.match li:first-child { box-shadow: inset 0 0 0 1.5px var(--lime-deep); }
.match strong { display: block; font-size: 0.95rem; }
.match small { color: var(--ink-mute); font-size: 0.8rem; }
.match .pill { margin-left: auto; }

/* 24/7 day --------------------------------------------------------------- */
.day { padding: clamp(4.5rem, 9vw, 7.5rem) 0; color: #fff; background: linear-gradient(180deg, var(--ink) 0%, #221b4a 100%); overflow: hidden; }
.day-track { max-width: var(--page); margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.8rem; position: relative; }
.day-track::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--dawn), var(--sun), var(--noon), var(--dusk), var(--violet), var(--night)); }
.day-track li { position: relative; padding: 1.8rem 1.1rem 1.3rem; margin-top: 1.4rem; border-radius: var(--r-md); background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.09); }
.day-track li::before { content: ""; position: absolute; top: -1.75rem; left: 1.1rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 5px rgb(21 18 42), 0 0 18px var(--tone); }
.day-track time { display: block; font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--tone-text, var(--tone)); }
.day-track strong { display: block; margin-top: 0.6rem; font-weight: 600; line-height: 1.25; }
.day-track span { display: block; margin-top: 0.35rem; font-size: 0.88rem; color: rgb(255 255 255 / 0.62); }

/* Team ------------------------------------------------------------------- */
.team { padding: clamp(4rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem); color: #fff; background: #221b4a; scroll-margin-top: 3rem; position: relative; overflow: hidden; }
.team::before { content: ""; position: absolute; left: 50%; top: 40%; width: 70rem; height: 40rem; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(122 92 255 / 0.3), transparent); pointer-events: none; }
.team-grid { position: relative; max-width: var(--page); margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sam { position: relative; max-width: calc(var(--page) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); margin: clamp(2.5rem, 5vw, 4rem) auto 1rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 3.5vw, 2.8rem); border-radius: var(--r-xl); background: linear-gradient(135deg, rgb(255 179 92 / 0.16), rgb(122 92 255 / 0.14)); box-shadow: inset 0 0 0 1px rgb(255 217 184 / 0.28); }
.sam-id { display: flex; align-items: center; gap: 1rem; }
.sam-blob { width: 5rem; height: 5rem; flex: none; }
.sam-blob > :first-child { fill: var(--night-soft); stroke: var(--night-soft); stroke-width: 9; transform-box: view-box; transform-origin: 40px 40px; animation: spin-slow 30s linear infinite; }
.sam-blob circle { fill: var(--ink); }
.sam-blob .smile { fill: none; stroke: var(--ink); stroke-width: 4.8; stroke-linecap: round; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.sam h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; }
.sam .role { color: var(--night-soft); font-weight: 500; }
.sam-lede { margin-top: 1.2rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; color: rgb(255 255 255 / 0.85); max-width: 30rem; }
.sam-skills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.4rem; }
.sam-skills li { padding: 0.4rem 0.85rem; border-radius: 999px; background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14); font-size: 0.88rem; color: rgb(255 255 255 / 0.88); }
.sam-chat { border-radius: var(--r-lg); background: #f3eee6; color: var(--ink); overflow: hidden; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6); }
.sam-chat-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.1rem; background: var(--card); border-bottom: 1px solid var(--rule); }
.sam-chat-head small { margin-left: auto; color: var(--ink-mute); font-size: 0.78rem; }
.sam-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgb(255 106 43 / 0.18); }
.sam-chat .chat { height: 25rem; min-height: 0; overflow: hidden; }
.sam-chat .typing { align-self: flex-start; background: var(--card); border-radius: 1.1rem; border-bottom-left-radius: 0.35rem; }
.sam-chat .typing i { background: var(--ink-mute); }
.sam-report { display: grid; grid-template-columns: repeat(3, auto); gap: 1.2rem; }
.sam-report span { display: block; font-size: 0.75rem; color: var(--ink-mute); }
.sam-report b { display: block; font-size: 1.25rem; font-weight: 650; color: var(--ink); letter-spacing: -0.02em; }
.agent { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; align-content: start; padding: 1.5rem; border-radius: var(--r-lg); background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); transition: transform 300ms var(--ease), background 300ms; }
.agent:hover { transform: translateY(-4px); background: rgb(255 255 255 / 0.09); }
.agent .blob { width: 3.8rem; height: 3.8rem; grid-row: span 1; }
.agent .blob > :first-child { fill: var(--hue); }
.agent .blob circle { fill: var(--ink); }
.agent .blob .smile { fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; }
.agent:hover .blob { animation: wobble 700ms var(--ease); }
@keyframes wobble { 30% { transform: rotate(-8deg) scale(1.05); } 60% { transform: rotate(5deg); } }
.agent > div { align-self: center; }
.agent h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.agent .role { font-size: 0.88rem; color: var(--hue); font-weight: 500; }
.agent > p:not(.role) { grid-column: 1 / -1; }
.agent > p:nth-of-type(2) { margin-top: 0.8rem; color: rgb(255 255 255 / 0.78); line-height: 1.45; }
.agent-status { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.85rem; color: rgb(255 255 255 / 0.6); }
.agent-status i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgb(155 225 93 / 0.2); animation: pulse 2s ease-in-out infinite; }

/* Playbooks -------------------------------------------------------------- */
.playbooks { max-width: var(--page); margin: 0 auto; padding: clamp(5rem, 9vw, 8rem) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; scroll-margin-top: 3rem; }
.playbooks h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.playbooks h2 em { font-size: 1.08em; color: var(--sun-deep); }
.steps { margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.steps li { display: flex; gap: 1rem; }
.steps b { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.9rem; }
.steps strong { display: block; font-size: 1.1rem; font-weight: 600; }
.steps span { display: block; margin-top: 0.2rem; color: var(--ink-soft); }

.editor { border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(1deg); }
.window-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule); background: #fbf8f2; }
.window-bar i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--rule); }
.window-bar span { margin: 0 auto; padding-right: 2.5rem; font-size: 0.82rem; color: var(--ink-mute); }
.editor-body { padding: 1.4rem 1.6rem 1.5rem; }
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.editor-head strong { display: block; font-size: 1.15rem; }
.editor-head small { color: var(--ink-mute); font-size: 0.82rem; }
.editor-steps { counter-reset: step; display: grid; gap: 0.15rem; padding: 0.9rem 0; }
.editor-steps li { counter-increment: step; position: relative; padding: 0.42rem 0 0.42rem 1.8rem; font-size: 0.95rem; line-height: 1.7; }
.editor-steps li::before { content: counter(step); position: absolute; left: 0; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.tool { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.05rem 0.55rem 0.05rem 0.4rem; border-radius: 0.45rem; background: #ebe5ff; color: #3e2aa6; font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.tool::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 2px; background: var(--violet); }
.editor-knowledge { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.editor-knowledge span { font-size: 0.82rem; color: var(--ink-mute); margin-right: 0.3rem; }
.editor-knowledge em { font: 500 0.82rem var(--font); padding: 0.3rem 0.7rem; border-radius: 999px; background: #fff0e4; color: #a7400f; }

/* Capabilities ----------------------------------------------------------- */
.caps { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) clamp(5rem, 9vw, 8rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.cap { display: flex; flex-direction: column; border-radius: var(--r-xl); padding: 2rem 1.8rem 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; min-height: 30rem; }
.cap h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.cap-visual { flex: 1; margin: 2rem -1.8rem 0; padding: 2rem 1.8rem; display: grid; place-items: center; background: var(--paper-2); }
.cap-night { background: radial-gradient(circle at 70% 20%, #4a3bb0, var(--ink) 70%); }
.alert-card { width: 100%; max-width: 17rem; padding: 1.1rem; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.alert-card strong { display: block; margin-top: 0.6rem; font-size: 1.05rem; }
.alert-card small { color: var(--ink-mute); }
.page-line { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: -1rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: rgb(255 255 255 / 0.12); color: #fff; font-size: 0.85rem; }
.page-line i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--lime); animation: pulse 1.4s infinite; }
.widget { width: 100%; max-width: 18rem; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 1rem; }
.widget-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1rem; background: var(--ink); color: #fff; font-size: 0.88rem; font-weight: 600; }
.widget-head i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lime); }
.widget .msg { margin: 0 0.8rem; font-size: 0.85rem; }
.widget .msg-in { background: var(--paper-2); }
.slots { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 0.8rem; }
.slots span { padding: 0.4rem 0.6rem; border-radius: 0.55rem; font-size: 0.8rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--rule); }
.slots .is-picked { background: var(--sun); color: #fff; box-shadow: none; }
.handoff { width: 100%; max-width: 18rem; padding: 1.2rem; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-lg); }
.handoff small { color: var(--violet); font-weight: 600; font-size: 0.78rem; }
.handoff strong { display: block; margin-top: 0.35rem; font-size: 1.05rem; }
.handoff ul { margin-top: 0.8rem; }
.handoff li { display: grid; grid-template-columns: 5.2rem 1fr; padding: 0.5rem 0; border-top: 1px solid var(--rule); font-size: 0.86rem; font-weight: 550; }
.handoff li span { color: var(--ink-mute); font-weight: 400; }

/* CTA -------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; max-width: calc(var(--page) - 2 * var(--gutter)); margin: 0 auto clamp(4rem, 8vw, 6rem); padding: clamp(4rem, 9vw, 7rem) var(--gutter); border-radius: var(--r-xl); text-align: center; background: var(--night); color: #fff; width: calc(100% - 2 * var(--gutter)); }
.cta h2 { position: relative; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.75rem, 6.9vw, 5.9rem); line-height: 0.98; letter-spacing: 0; }
.cta p { position: relative; margin: 1.2rem auto 2rem; max-width: 30rem; font-size: 1.15rem; color: rgb(255 255 255 / 0.8); }
.cta .btn { position: relative; }

/* Footer ----------------------------------------------------------------- */
.footer { border-top: 1px solid var(--rule); }
.footer-inner { max-width: var(--page); margin: 0 auto; padding: 3.5rem var(--gutter) 2.5rem; display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; }
.footer-logo img { height: 2.6rem; width: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h3 { font-size: 0.8rem; font-weight: 600; color: var(--ink-mute); margin-bottom: 0.8rem; }
.footer-cols a { display: block; padding: 0.25rem 0; text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; }
.footer-cols a:hover { color: var(--ink); }
.footer-base { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.85rem; color: var(--ink-mute); }

/* Reveal ----------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */
/* Brand: agent faces and Sam's shape as supporting marks ------------------- */
.brand-face { flex: none; display: block; width: 2.2rem; height: 2.2rem; }
.brand-face circle { fill: var(--ink); }
.brand-face .smile { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; }
.brand-face-heading { display: inline-block; width: 0.95em; height: 0.95em; margin-right: 0.35em; vertical-align: -0.12em; }
.brand-sam { position: absolute; pointer-events: none; }
.statement { position: relative; isolation: isolate; overflow: hidden; }
.statement-sam { z-index: -1; top: 6%; right: -4%; width: 30%; transform: rotate(10deg); }
.statement-sam path { fill: var(--paper-2); stroke: var(--paper-2); stroke-width: 9; }
.statement-sam circle { fill: var(--paper); }
.cta-sam { right: -3%; bottom: -34%; width: 42%; transform: rotate(-8deg); }
.cta-sam path { fill: #4d41ad; stroke: #4d41ad; stroke-width: 9; }
.cta-sam circle { fill: var(--night); }
.footer { position: relative; }
.footer-faces { position: absolute; top: -2.1rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.4rem; height: 2.1rem; overflow: hidden; pointer-events: none; }
.footer-faces .brand-face { width: 4rem; height: 4rem; }
.footer-faces .brand-face:nth-child(odd) { transform: translateY(0.25rem) rotate(-6deg); }
.footer-faces .brand-face:nth-child(even) { transform: rotate(5deg); }

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding-top: 7.5rem; }
  .hero-phone { justify-self: start; }
  .duo, .plays-body, .playbooks { grid-template-columns: 1fr; }
  .day-track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0.8rem; }
  .day-track::before { display: none; }
  .day-track li { margin-top: 0; }
  .day-track li::before { top: 1.25rem; left: auto; right: 1.1rem; box-shadow: 0 0 14px var(--tone); }
  .team-grid, .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sam { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-login { display: none; }
  .nav-inner { gap: 0.75rem; }
  .nav-actions { margin-left: auto; }
  .nav-menu { display: block; position: relative; }
  .nav-menu summary { list-style: none; display: grid; place-content: center; gap: 5px; width: 2.6rem; height: 2.6rem; border-radius: 50%; cursor: pointer; background: rgb(255 255 255 / 0.16); backdrop-filter: blur(12px); }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu summary span { display: block; width: 1rem; height: 2px; border-radius: 2px; background: #fff; transition: transform 250ms var(--ease); }
  .nav.is-solid .nav-menu summary { background: var(--paper-2); }
  .nav.is-solid .nav-menu summary span { background: var(--ink); }
  .nav-menu[open] summary span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-menu[open] summary span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-menu nav { position: absolute; right: 0; top: calc(100% + 0.6rem); min-width: 12rem; display: grid; padding: 0.5rem; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-lg); }
  .nav-menu nav a { padding: 0.7rem 0.9rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 500; }
  .nav-menu nav a:hover { background: var(--paper-2); }
}
@media (max-width: 680px) {
  .statement-sam { top: 2%; width: 44%; opacity: 0.7; }
  .cta-sam { right: -10%; bottom: -22%; width: 78%; }
  .footer-faces { gap: 0.2rem; }
  .footer-faces .brand-face { width: 3.2rem; height: 3.2rem; }
  .hero { min-height: auto; }
  .hero-inner { padding: 6.5rem var(--gutter) 3rem; }
  .hero-phone { width: 100%; justify-self: stretch; }
  .hero .chat { height: 25.5rem; }
  .hero-ticker { font-size: 0.88rem; }
  .channels-label { max-width: none; }
  .pillars { grid-template-columns: 1fr; gap: 1rem; }
  .duo-card { min-height: 0; border-radius: var(--r-lg); }
  .duo-visual { min-height: 31rem; }
  .bubble-out { right: 2.9rem; top: 7.4rem; }
  .record, .board { right: -1.5rem; padding-inline: 1.1rem; }
  .record dl div { grid-template-columns: 6rem 1fr; font-size: 0.9rem; }
  .campaign { left: 1.5rem; max-width: none; }
  .board-grid i { height: 2.2rem; }
  .board-grid i.is-booking::after { content: "…"; }
  .day-track { grid-template-columns: 1fr 1fr; }
  .day-track time { font-size: 1.5rem; }
  .team-grid, .caps { grid-template-columns: 1fr; }
  .sam-chat .chat { height: 23rem; }
  .sam-report { gap: 0.8rem; }
  .cap { min-height: 0; }
  .plays-stage { min-height: 0; border-radius: var(--r-lg); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
