/* ==========================================================================
   nexaBridge.ai — site styles
   ========================================================================== */

:root {
  --bg: #0B0B0C;
  --bg-raised: #0E0E0F;
  --panel: #111113;
  --panel-2: #121214;
  --panel-3: #151517;
  --line: #1F2023;
  --line-2: #2A2B2F;
  --line-3: #2E2F33;
  --text: #F4F4F5;
  --text-2: #DADBDE;
  --soft: #C9CACE;
  --muted: #9D9EA3;
  --dim: #8A8B91;
  --accent: #E8843A;
  --accent-2: #F5A462;
  --green: #9BE06B;
  --ice: #BFD8F5;
  --line-soft: #26272B;
  --line-4: #34353A;
  --line-5: #45464B;
  --border-strong: #3A3B40;
  --control-border: #6A6B71;   /* form fields & icon buttons: ≥3:1 against panels (WCAG 1.4.11) */
  --frame: #1A1B1E;
  --dots: #2C2D31;
  --win: #1B1C1E;
  --card-hover: #141416;
  --ghost-hover: #1A1512;
  --on-accent: #111113;
  --subtle: #8C8D92;
  --win-title: #A5A6AB;
  --ft-link: #B7B9BF;
  --glyph: #E4E5E8;
  --ht-dot: #D9DADD;
  --ht-dot-2: #F2F3F4;
  --danger: #E5484D;
  --error: #FF8A8A;
  --backdrop: rgba(5, 5, 6, .72);
  --shadow: rgba(0, 0, 0, .9);
  --tab-glow: rgba(255, 255, 255, .28);
  --link-border: #3A2A1E;
  --pt-opacity: 1;
  --logo-filter: invert(1);
  --hero-grad: linear-gradient(90deg, #9D9EA3 0%, #C9CACE 45%, #BFD8F5 80%, #8FB8F2 100%);
  --phone: #141416;
  --chat-head: #18191C;
  --chat-bg: #0E0F10;
  --chat-me: #3A2716;
  --chat-bot: #1E1F23;
  --senti-neg: #E8843A;
  --senti-neu: #5A5B61;
  --senti-pos: #6CC4F0;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* Light theme — set on <html data-theme="light"> by js/theme.js */
:root[data-theme="light"] {
  --bg: #F7F6F3;
  --bg-raised: #FFFFFF;
  --panel: #FFFFFF;
  --panel-2: #FBFAF8;
  --panel-3: #FFFFFF;
  --line: #E6E4DF;
  --line-2: #D9D7D1;
  --line-3: #D2D0CA;
  --text: #17171A;
  --text-2: #2E2F33;
  --soft: #45464B;
  --muted: #5C5D63;
  --dim: #626369;
  --accent: #A8500E;
  --accent-2: #8F430B;
  --green: #3A7F1C;
  --ice: #7FAEEA;
  --line-soft: #E3E1DB;
  --line-4: #CFCDC7;
  --line-5: #BDBBB5;
  --border-strong: #CFCDC7;
  --control-border: #8E8C86;
  --frame: #E6E4DF;
  --dots: #D6D4CE;
  --win: #F1F0EC;
  --card-hover: #FBFAF8;
  --ghost-hover: #FBEFE5;
  --on-accent: #FFFFFF;
  --subtle: #6F7076;
  --win-title: #5C5D63;
  --ft-link: #45464B;
  --glyph: #3A3B40;
  --ht-dot: #A3A4A9;
  --ht-dot-2: #4A4B50;
  --danger: #D93036;
  --error: #C62828;
  --backdrop: rgba(30, 30, 32, .35);
  --shadow: rgba(40, 30, 20, .18);
  --tab-glow: rgba(0, 0, 0, .18);
  --link-border: #EBC9AE;
  --pt-opacity: 1;
  --logo-filter: none;
  --hero-grad: linear-gradient(90deg, #5C5D63 0%, #45464B 45%, #3F78C4 80%, #2C64B4 100%);
  --phone: #FFFFFF;
  --chat-head: #FBFAF8;
  --chat-bg: #EFEDE8;
  --chat-me: #FCE3CC;
  --chat-bot: #FFFFFF;
  --senti-neg: #A8500E;
  --senti-neu: #A3A4A9;
  --senti-pos: #2C64B4;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
body.modal-open { overflow: hidden; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#content:focus { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--text); color: var(--bg);
  font-family: var(--mono); font-size: 14px; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Halftone art primitives ---------- */
.ht { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--ht-dot) 0.8px, transparent 1.2px); background-size: 5px 5px; -webkit-mask-image: radial-gradient(closest-side, #000 15%, transparent 100%); mask-image: radial-gradient(closest-side, #000 15%, transparent 100%); }
.ht::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, var(--ht-dot-2) 1.5px, transparent 1.9px); background-size: 5px 5px; -webkit-mask-image: radial-gradient(closest-side, #000 0%, transparent 70%); mask-image: radial-gradient(closest-side, #000 0%, transparent 70%); }
.ht-lr { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 95%); mask-image: linear-gradient(90deg, transparent 0%, #000 95%); }
.ht-rl { -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 95%); mask-image: linear-gradient(270deg, transparent 0%, #000 95%); }
.ht-tb { -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 100%); mask-image: linear-gradient(180deg, #000 10%, transparent 100%); }
.ht-v { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 50%, transparent 100%); }
.ht-soft { -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 105%); mask-image: radial-gradient(closest-side, #000 30%, transparent 105%); }

/* Per-tool art */
.art { position: relative; }
.art-conv { width: 150px; height: 140px; }
.art-conv .conv-l { position: absolute; left: 8px; top: 0; width: 70px; height: 140px; border-radius: 70px 0 0 70px; overflow: hidden; }
.art-conv .conv-r { position: absolute; right: 8px; top: 20px; width: 50px; height: 100px; border-radius: 0 50px 50px 0; overflow: hidden; }
.art-rag { width: 170px; height: 150px; }
.art-rag .pg-doc { position: absolute; width: 72px; height: 88px; overflow: hidden; }
.art-rag .doc1 { left: 5px; top: 5px; }
.art-rag .doc2 { left: 49px; top: 31px; }
.art-rag .doc3 { left: 93px; top: 57px; }
.art-calls { display: flex; align-items: center; gap: 8px; height: 150px; }
.art-calls .pg-bar { position: relative; width: 16px; border-radius: 8px; overflow: hidden; }
.art-med { width: 150px; height: 150px; clip-path: polygon(36% 0, 64% 0, 64% 36%, 100% 36%, 100% 64%, 64% 64%, 64% 100%, 36% 100%, 36% 64%, 0 64%, 0 36%, 36% 36%); }
.art-wa { width: 190px; height: 150px; }
.art-wa .pg-bob { position: absolute; overflow: hidden; }
.art-wa .b1 { left: 4px; top: 8px; width: 124px; height: 86px; border-radius: 43px; }
.art-wa .b2 { left: 22px; top: 84px; width: 28px; height: 28px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.art-wa .b3 { right: 4px; top: 78px; width: 86px; height: 60px; border-radius: 30px; animation-delay: -2.2s; }

/* ---------- Keyframes ---------- */
@keyframes pg-conv-l { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(3px); } }
@keyframes pg-conv-r { 0%, 100% { transform: translateX(10px); } 50% { transform: translateX(-3px); } }
@keyframes pg-bar { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@keyframes pg-rot { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes pg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pg-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pg-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .2; } }
@keyframes dt-screen { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dt-live { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes hm-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -420; } }
@keyframes hm-spin { to { transform: rotate(360deg); } }
@keyframes pt-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes md-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes kpi-bump { 0% { color: var(--green); transform: translateY(-3px); } 100% { color: var(--text); transform: none; } }
@keyframes cta-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.03); } }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes md-fade { from { opacity: 0; } to { opacity: 1; } }

.pg-conv-l { animation: pg-conv-l 4s ease-in-out infinite; }
.pg-conv-r { animation: pg-conv-r 4s ease-in-out infinite; }
.pg-bar { animation: pg-bar 1.6s ease-in-out infinite; }
.pg-rot { animation: pg-rot 28s linear infinite; }
.pg-bob { animation: pg-bob 4.5s ease-in-out infinite; }
.pg-blink { animation: pg-blink 1.4s steps(1) infinite; }
.dt-screen { animation: dt-screen .6s var(--ease) both; }
.dt-in { opacity: 0; animation: pg-in .7s var(--ease) forwards; }
.dt-live { animation: dt-live 1.2s ease-in-out infinite; }
.hm-flow { animation: hm-flow 2.8s linear infinite; }
.hm-flow.f-2 { animation-delay: .35s; }
.hm-flow.f-3 { animation-delay: .7s; }
.hm-flow.f-4 { animation-delay: 1.05s; }
.hm-flow.f-5 { animation-delay: 1.4s; }
.hm-spin { animation: hm-spin 3s linear infinite; transform-origin: center; }
.hm-arc { animation: pg-rot 120s linear infinite; }

.d-10 { animation-delay: .1s; }
.d-16 { animation-delay: .16s; }
.d-22 { animation-delay: .22s; }
.d-34 { animation-delay: .34s; }
.d-44 { animation-delay: .44s; }
.d-55 { animation-delay: .55s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; font-family: var(--mono); font-size: 16px; line-height: 1.2;
  border-radius: 4px; text-decoration: none; min-height: 44px;
  transition: background .25s, border-color .25s, color .25s;
}
.btn-light { border: none; color: var(--bg); background: var(--text); padding: 17px 30px; }
.btn-light:hover, .btn-light:focus-visible { background: var(--accent); color: var(--bg); }
.btn-light[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { color: var(--text); padding: 16px 29px; border: 1px solid var(--border-strong); background: var(--panel-2); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--accent); background: var(--ghost-hover); color: var(--text); }
.btn-sm { font-size: 14px; padding: 13px 26px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.header-inner {
  max-width: 1440px; margin: 0 auto; padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--mono); font-size: 15px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-logo { display: block; height: 32px; width: auto; filter: var(--logo-filter); }
.primary-nav { display: flex; gap: 44px; }
.primary-nav a { color: var(--text); text-decoration: none; padding: 10px 0; transition: color .2s; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--accent); }
.primary-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
/* Theme + motion toggles */
.header-actions { display: flex; align-items: center; gap: 28px; }
.header-toggles { display: flex; gap: 10px; }
.theme-toggle, .motion-toggle {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--control-border); border-radius: 999px; cursor: pointer;
  color: var(--text); transition: border-color .2s, color .2s, background .2s;
}
.theme-toggle:hover, .motion-toggle:hover { border-color: var(--accent); color: var(--accent); }
.motion-toggle .icon-play { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 130px 40px 120px; }
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--dots) 1.1px, transparent 1.5px); background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(ellipse 30% 22% at 12% 12%, #000, transparent), radial-gradient(ellipse 22% 30% at 80% 18%, #000, transparent), radial-gradient(ellipse 18% 14% at 45% 6%, #000 20%, transparent), radial-gradient(ellipse 20% 30% at 92% 70%, #000, transparent), radial-gradient(ellipse 16% 24% at 4% 80%, #000, transparent);
  mask-image: radial-gradient(ellipse 30% 22% at 12% 12%, #000, transparent), radial-gradient(ellipse 22% 30% at 80% 18%, #000, transparent), radial-gradient(ellipse 18% 14% at 45% 6%, #000 20%, transparent), radial-gradient(ellipse 20% 30% at 92% 70%, #000, transparent), radial-gradient(ellipse 16% 24% at 4% 80%, #000, transparent);
}
.hero-arc {
  position: absolute; right: -240px; top: -200px; width: 900px; height: 900px; border-radius: 50%;
  background-image: radial-gradient(var(--line-soft) 1.2px, transparent 1.6px); background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(circle, transparent 58%, #000 60%, #000 66%, transparent 68%);
  mask-image: radial-gradient(circle, transparent 58%, #000 60%, #000 66%, transparent 68%);
}
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill-wrap { padding: 1.5px; border-radius: 999px; background: linear-gradient(90deg, var(--ice), var(--accent)); }
.pill { display: flex; align-items: center; gap: 12px; padding: 13px 26px; border-radius: 999px; background: var(--bg-raised); font-size: 17px; color: var(--text); }
.hero-title { margin: 44px 0 0; font-size: 84px; line-height: 1.06; font-weight: 500; letter-spacing: -0.035em; }
.hero-title > span { display: block; color: var(--text); }
.hero-title > .hero-grad { background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { margin: 34px 0 0; max-width: 640px; font-size: 20px; line-height: 1.55; color: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* Hero split: phone plays a conversation, then the tagline appears beside it */
.hero-split {
  display: grid; width: 100%; column-gap: 28px; row-gap: 64px; justify-content: center; align-items: center; text-align: center;
  grid-template-columns: auto auto;
  grid-template-areas: "phone log" "copy copy";
}
.hero-split .phone { grid-area: phone; }
.hero-split .phone, .hero-split .insights { text-align: left; }
.hero:has(.hero-split) { padding-top: 72px; }
.hero-copy { grid-area: copy; }
.hero-split .hero-title { margin-top: 0; }
.hero-split .hero-lede { margin-left: auto; margin-right: auto; }

.phone {
  position: relative; display: flex; flex-direction: column; width: 320px; max-width: 100%; height: 572px; padding: 10px; border-radius: 44px;
  background: var(--phone); border: 1px solid var(--line-3);
  box-shadow: 0 40px 80px -30px var(--shadow);
}
.phone-notch { position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #000; z-index: 2; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 46px 16px 12px; border-radius: 34px 34px 0 0; background: var(--chat-head); border-bottom: 1px solid var(--line); }
.phone-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 22px; font-weight: 700; }
.phone-who { display: flex; flex-direction: column; font-size: 15px; line-height: 1.25; }
.phone-who span { font-family: var(--mono); font-size: 12px; color: var(--green); }
.chat {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  flex: 1; min-height: 0; padding: 14px 12px; overflow: hidden; background: var(--chat-bg);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px); mask-image: linear-gradient(180deg, transparent 0, #000 40px);
}
.bubble { flex-shrink: 0; max-width: 82%; padding: 8px 11px 5px; border-radius: 14px; font-size: 14px; line-height: 1.4; color: var(--text); animation: bubble-in .35s var(--ease) both; }
.bubble.from-me { align-self: flex-end; background: var(--chat-me); border-bottom-right-radius: 4px; }
.bubble.from-bot { align-self: flex-start; background: var(--chat-bot); border-bottom-left-radius: 4px; }
.bubble-meta { display: block; margin-top: 2px; text-align: right; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.bubble .ticks { color: var(--ice); }
.bubble.typing { display: flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s ease-in-out infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
.phone-input { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 0 0 34px 34px; background: var(--chat-head); }
.phone-input span { flex: 1; padding: 9px 14px; border-radius: 999px; background: var(--chat-bot); font-size: 13px; color: var(--dim); }
.phone-input i { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); }

/* Insights panel: fields logged from the conversation as it happens */
.insights {
  grid-area: log; align-self: stretch; display: flex; flex-direction: column; width: 360px; margin: 10px 0;
  border: 1px solid var(--line-3); border-radius: 14px; background: var(--panel); overflow: hidden;
  font-family: var(--mono); box-shadow: 0 30px 60px -30px var(--shadow);
}
.insights-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--win-title); }
.insights-live { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 10.5px; letter-spacing: .08em; color: var(--green); }
.insights-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.kpi { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: var(--panel); }
.kpi-l { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.kpi-v { font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--text); }
.kpi-bump .kpi-v { animation: kpi-bump .9s var(--ease); }
.dash-sec { padding: 10px 14px 4px; }
.dash-h { margin-bottom: 7px; font-size: 10.5px; color: var(--muted); }
.intents { display: flex; flex-direction: column; gap: 5px; }
.intent { display: grid; grid-template-columns: 112px minmax(0, 1fr) 34px; align-items: center; gap: 8px; font-size: 11px; color: var(--soft); }
.intent-track { height: 8px; }
.intent-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--accent); opacity: .45; transition: width .6s var(--ease), opacity .3s; }
.intent-v { text-align: right; color: var(--text-2); }
.intent.is-live .intent-l, .intent.is-live .intent-v { color: var(--text); font-weight: 600; }
.intent.is-live .intent-fill { opacity: 1; }
.senti { display: flex; flex-direction: column; gap: 5px; }
.senti-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 11px; color: var(--soft); }
.senti-bar { display: flex; gap: 2px; height: 16px; }
.senti-bar > span { display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: var(--on-accent); }
.senti-bar > span:first-child { border-radius: 4px 0 0 4px; }
.senti-bar > span:last-child { border-radius: 0 4px 4px 0; }
.s-neg { background: var(--senti-neg); }
.s-neu { background: var(--senti-neu); }
.senti-bar > .s-neu { color: var(--text); }
.s-pos { background: var(--senti-pos); }
.senti-key { display: flex; gap: 12px; margin-top: 7px; font-size: 10px; color: var(--muted); }
.senti-key span { display: flex; align-items: center; gap: 5px; }
.senti-key i { width: 8px; height: 8px; border-radius: 2px; }
.dash-feed { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 4px; border-top: 1px solid var(--line); }
.log { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; margin: 0; padding: 0 0 8px; list-style: none; overflow: hidden; }
.log-row {
  display: grid; grid-template-columns: 32px 92px minmax(0, 1fr); align-items: baseline; gap: 6px;
  padding: 4px 6px; border-radius: 6px; font-size: 11px; animation: bubble-in .4s var(--ease) both;
}
.log-row:nth-child(odd) { background: var(--panel-2); }
.log-t { color: var(--dim); font-size: 10.5px; }
.log-k { color: var(--muted); }
.log-v { color: var(--text-2); font-weight: 500; }
.log-v.tone-warn { color: var(--accent-2); }
.log-v.tone-good { color: var(--green); }
.log-v.tone-info { color: var(--ice); }
:root[data-theme="light"] .log-v.tone-info { color: #2C64B4; }

/* Scenes: chat (+ insights) and call (+ call evaluation); js sets data-scene */
.hero-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.seg { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--bg-raised); }
.seg-btn { padding: 8px 16px; border: 0; border-radius: 999px; background: none; font-family: var(--mono); font-size: 13px; color: var(--muted); cursor: pointer; }
.seg-btn span { margin-right: 4px; color: var(--dim); }
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-pressed="true"] { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.seg-btn[aria-pressed="true"] span { color: var(--accent); }
#hero-stage:not([data-scene="chat"]) .scr-chat, #hero-stage:not([data-scene="chat"]) .dv-chat,
#hero-stage:not([data-scene="call"]) .scr-call, #hero-stage:not([data-scene="call"]) .dv-call,
#hero-stage:not([data-scene="scale"]) .scr-scale, #hero-stage:not([data-scene="scale"]) .dv-scale { display: none; }
.phone-screen, .dash-view { animation: md-fade .4s var(--ease); }
.phone-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 34px; overflow: hidden; }
.dash-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* Call screen */
.scr-call { background: var(--chat-bg); }
.call-top { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 52px 16px 14px; text-align: center; background: linear-gradient(180deg, var(--chat-head), var(--chat-bg)); }
.call-kicker { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.call-avatar { display: grid; place-items: center; width: 64px; height: 64px; margin-top: 6px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 28px; font-weight: 600; }
.call-top b { font-size: 17px; }
.call-time { font-family: var(--mono); font-size: 12px; color: var(--green); }
.call-wave { display: flex; align-items: center; gap: 3px; height: 28px; margin-top: 4px; }
.call-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); animation: pg-bar 1s ease-in-out infinite; }
.call-wave i:nth-child(3n) { animation-delay: -.3s; }
.call-wave i:nth-child(3n+1) { animation-delay: -.6s; }
.call-wave i:nth-child(4n) { animation-duration: 1.3s; }
.is-ended .call-wave i { animation: none; transform: scaleY(.15); opacity: .4; }
.is-ended .call-time { color: var(--muted); }
.call-caps {
  flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 0 12px 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px); mask-image: linear-gradient(180deg, transparent 0, #000 40px);
}
.cap { flex-shrink: 0; max-width: 88%; padding: 7px 10px; border-radius: 12px; background: var(--chat-bot); font-size: 13px; line-height: 1.4; animation: bubble-in .35s var(--ease) both; }
.cap b { display: block; font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--accent-2); }
.cap-caller { align-self: flex-end; background: var(--chat-me); }
.cap-caller b { color: var(--muted); }
.call-ctrls { display: flex; justify-content: center; gap: 22px; padding: 10px 0 18px; }
.call-ctrls i { width: 44px; height: 44px; border-radius: 50%; background: var(--chat-bot); }
.call-ctrls .end { background: var(--danger); }
.bubble.from-call { align-self: center; max-width: none; padding: 6px 12px; border: 1px solid var(--line-3); background: var(--chat-head); font-family: var(--mono); font-size: 11.5px; color: var(--soft); }

/* Ads screen: one click-to-WhatsApp ad shown on each platform in turn */
.scr-scale { position: relative; padding: 48px 12px 12px; background: var(--chat-bg); }
.scr-scale[data-platform="instagram"] { --pf: #E1306C; }
.scr-scale[data-platform="facebook"] { --pf: #1877F2; }
.scr-scale[data-platform="whatsapp"] { --pf: #25D366; }
.ad-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; font-family: var(--mono); font-size: 12px; }
.ad-top b { font-weight: 600; color: var(--text); }
.ad-top b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--pf); }
.ad-dots { display: flex; gap: 5px; }
.ad-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-4); transition: background .3s; }
.ad-dots i.is-on { background: var(--pf); }
.ad-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--chat-bot); }
.ad-card.ad-in { animation: bubble-in .45s var(--ease) both; }
.ad-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.2; }
.ad-head small { display: block; font-size: 11px; color: var(--dim); }
.ad-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 700; }
.ad-art {
  display: flex; align-items: flex-end; height: 200px; padding: 18px; color: #fff; font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em;
  background: linear-gradient(150deg, color-mix(in srgb, var(--pf) 75%, #000) 0%, #1A1B1E 60%, color-mix(in srgb, var(--accent) 70%, #000) 100%);
  transition: background .4s;
}
.ad-caption { margin: 0; padding: 10px 12px 2px; font-size: 12.5px; line-height: 1.4; color: var(--soft); }
.ad-cta { display: flex; justify-content: center; gap: 6px; margin: 8px 12px 12px; padding: 10px; border-radius: 10px; background: #25D366; font-size: 13px; font-weight: 600; color: #0B1F12; animation: cta-pulse 1.8s ease-in-out infinite; }
.ad-toast {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 12px; border: 1px solid var(--line-3); border-radius: 12px; background: var(--panel-3);
  font-family: var(--mono); font-size: 11.5px; color: var(--text-2); opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s var(--ease);
}
.ad-toast::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); }
.ad-toast.is-on { opacity: 1; transform: none; }

/* Growth dashboard */
.funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.fn-step { display: flex; flex-direction: column; gap: 2px; padding: 7px 8px; background: var(--panel); }
.fn-l { font-size: 10px; color: var(--dim); }
.fn-step b { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text); }
.fn-pc { font-size: 9.5px; color: var(--muted); }
.intent-fill.sc-fill { opacity: 1; transition: none; }
.spark { display: block; width: 100%; height: 60px; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-area { fill: var(--accent); opacity: 0; }
.spark-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10.5px; color: var(--muted); }

/* Call-evaluation dashboard */
.ce-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.ce-head > span:first-child { display: flex; flex-direction: column; }
.ce-head b { font-family: var(--sans); font-size: 14px; }
.ce-head .dash-h { margin-bottom: 2px; }
.ce-score { display: flex; flex-direction: column; align-items: flex-end; }
.ce-score b { font-size: 30px; font-weight: 600; line-height: 1; }
.ce-score span { font-size: 10px; color: var(--dim); }
.crits { display: flex; flex-direction: column; gap: 8px; }
.crit { display: grid; grid-template-columns: minmax(0, 1fr) 40px; row-gap: 4px; font-size: 11px; color: var(--muted); }
.crit-l em { margin-left: 4px; padding: 0 5px; border: 1px solid var(--line-4); border-radius: 4px; font-size: 9.5px; font-style: normal; color: var(--muted); }
.crit-v { grid-column: 2; grid-row: 1; text-align: right; color: var(--dim); }
.crit-track { grid-column: 1 / -1; grid-row: 2; height: 6px; border-radius: 3px; background: var(--line); }
.crit-fill { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--accent); transition: width .6s var(--ease); }
.crit.is-scored .crit-l, .crit.is-scored .crit-v { color: var(--text-2); }
.tr-agent { background: var(--senti-neg); }
.tr-caller { background: var(--senti-pos); }
.ce-tip { display: flex; flex-direction: column; margin-top: 12px; padding: 8px 10px; border-left: 2px solid var(--accent); background: var(--panel-2); font-size: 11.5px; line-height: 1.45; color: var(--text-2); animation: bubble-in .4s var(--ease) both; }
.ce-tip .dash-h { margin-bottom: 2px; }

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr); row-gap: 24px;
    grid-template-areas: "phone" "log" "copy"; justify-items: center;
  }
  .insights { width: 360px; max-width: 100%; height: 520px; margin: 0; text-align: left; }
  .hero-copy { margin-top: 16px; }
}
@media (max-width: 720px) {
  .hero-split .hero-title { font-size: 40px; }
  .phone { width: 300px; height: 512px; border-radius: 38px; }
  .phone-screen { border-radius: 28px; }
  .ad-art { height: 160px; font-size: 18px; }
  .phone-head { border-radius: 28px 28px 0 0; }
  .phone-input { border-radius: 0 0 28px 28px; }
  .bubble { font-size: 13.5px; }
}

/* Hub */
.hub { margin-top: 90px; display: flex; flex-direction: column; align-items: center; }
.hub-icons { display: flex; gap: 33px; }
.hub-icon {
  --c: #34353A;
  position: relative; width: 88px; height: 88px; border-radius: 18px;
  background: var(--panel-2); border: 1.5px solid var(--line-4); box-shadow: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
  text-decoration: none;
  transition: border-color .4s, box-shadow .4s, transform .25s;
}
.hub-icon:hover { transform: translateY(-3px); }
.hub-icon.is-on { border-color: var(--c); box-shadow: 0 0 30px -8px var(--c); }
.hub-glyph { display: flex; opacity: .6; transition: opacity .4s; }
.hub-icon.is-on .hub-glyph, .hub-icon:hover .hub-glyph { opacity: 1; }
.hm-tip {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--mono); font-size: 11px; color: var(--c);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.hub-icon:hover .hm-tip, .hub-icon:focus-visible .hm-tip { opacity: 1; }
.hub-conn { overflow: visible; }
.hub-core { padding: 1.5px; border-radius: 20px; background: linear-gradient(135deg, var(--ice), var(--accent)); box-shadow: 0 0 40px -10px rgba(232, 132, 58, .6); }
.hub-core-inner { width: 88px; height: 88px; border-radius: 18px; background: var(--panel-3); display: flex; align-items: center; justify-content: center; }

/* Window dots */
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.term-dots { display: flex; gap: 9px; }
.term-dots .dot { width: 13px; height: 13px; }
.term-dots.sm { gap: 7px; }
.term-dots.sm .dot { width: 11px; height: 11px; }
.term-dots .dot-r { background: #8E3B3B; } .term-dots .dot-y { background: #9A8A34; } .term-dots .dot-g { background: #4E7C3B; }


/* ---------- Tools grid ---------- */
.tools { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 72px; padding: 120px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 0 40px; }
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.section-title { margin: 0; font-size: 52px; line-height: 1.08; font-weight: 500; letter-spacing: -0.03em; color: var(--text); }
.section-lede { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.grid-wrap { position: relative; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.grid-dots {
  position: absolute; left: 60px; right: 60px; top: -40px; height: 40px;
  background-image: radial-gradient(var(--line-4) 1px, transparent 1.3px); background-size: 8px 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, transparent 30%, #000 50%, #000 60%, transparent 70%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, transparent 30%, #000 50%, #000 60%, transparent 70%, #000 85%, transparent);
}
.grid-frame { position: relative; border: 1px solid var(--frame); padding: 16px; }
.frame-sq { position: absolute; width: 7px; height: 7px; background: var(--line-3); }
.frame-sq.tl { top: -4px; left: -4px; } .frame-sq.tr { top: -4px; right: -4px; }
.frame-sq.bl { bottom: -4px; left: -4px; } .frame-sq.br { bottom: -4px; right: -4px; }
.tool-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }

.pg-card {
  position: relative; height: 100%; min-height: 420px;
  background: var(--panel); border: 1px solid var(--line); padding: 40px 24px 36px;
  display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer;
  opacity: 0; animation: pg-in .8s var(--ease) forwards;
  transition: border-color .4s, background .4s;
}
.pg-card:nth-child(2) { animation-delay: .1s; }
.pg-card:nth-child(3) { animation-delay: .2s; }
.pg-card:nth-child(4) { animation-delay: .3s; }
.pg-card:nth-child(5) { animation-delay: .4s; }
.pg-card:hover, .pg-card:focus-within { border-color: var(--line-4); background: var(--card-hover); }
.pg-corner { position: absolute; width: 8px; height: 8px; border-color: var(--line-5); border-style: solid; border-width: 0; transition: border-color .3s; }
.pg-corner.tl { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.pg-corner.tr { top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; }
.pg-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.pg-corner.br { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }
.pg-card:hover .pg-corner, .pg-card:focus-within .pg-corner { border-color: var(--accent); }
.card-art { height: 190px; width: 100%; display: flex; align-items: center; justify-content: center; }
.pg-art { position: relative; display: flex; align-items: center; justify-content: center; transition: transform .6s var(--ease); }
.pg-card:hover .pg-art { transform: scale(1.08); }
.pg-doc { transition: transform .6s var(--ease); }
.pg-card:hover .doc1 { transform: translate(-10px, -8px); }
.pg-card:hover .doc3 { transform: translate(10px, 8px); }
.card-title { margin: 32px 0 0; min-height: 2.6em; display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1.3; font-weight: 500; color: var(--text); }
.card-desc { margin: 6px 0 24px; max-width: 220px; min-height: 2.9em; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.pg-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--mono); font-size: 13px; color: var(--accent); background: transparent;
  border: 1px solid var(--link-border); border-radius: 999px; padding: 10px 18px; min-height: 40px;
  transition: background .25s, border-color .25s, color .25s;
}
.pg-link::after { content: ""; position: absolute; inset: 0; }
.pg-card:hover .pg-link, .pg-link:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Partners ---------- */
.partners { padding: 40px 0 120px; overflow: hidden; }
.partners-lede { margin: 0 0 56px; padding: 0 40px; text-align: center; font-size: 18px; font-weight: 400; letter-spacing: 0; color: var(--soft); }
.marquee {
  position: relative; max-width: 1300px; margin: 0 auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.pt-track { display: flex; width: max-content; white-space: nowrap; padding: 10px 0; animation: pt-scroll 60s linear infinite; }
.pt-track:hover, .pt-track:focus-within { animation-play-state: paused; }
.pt-logo {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 0 10px;
  height: 80px; min-width: 150px; padding: 12px 26px; border-radius: 14px; text-decoration: none;
  background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 6px 18px -12px var(--shadow);
  color: #2E2F33; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  opacity: var(--pt-opacity); transition: opacity .25s, transform .25s, box-shadow .25s;
}
.pt-logo:hover, .pt-logo:focus-visible { opacity: 1; transform: translateY(-3px); box-shadow: 0 12px 24px -12px var(--shadow); }
.pt-img { display: block; height: calc(42px * var(--s, 1)); width: auto; max-width: 170px; object-fit: contain; }
.pt-logo .pt-mark { --c-ink: color-mix(in srgb, var(--c) 60%, #000); color: var(--c-ink); border-color: var(--c-ink); }
.pt-mark {
  flex-shrink: 0; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 9px;
  border: 1.5px solid var(--c); color: var(--c);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
}

/* ---------- Tool detail ---------- */
.tool-view { padding-bottom: 40px; }
.band { border-bottom: 1px solid var(--line); margin-top: 20px; border-top: 1px solid var(--line); }
.band-row { max-width: 1380px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; align-items: stretch; }
.band-back {
  flex-shrink: 0; width: 240px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 4px; padding: 0 24px; border-right: 1px solid var(--line); text-decoration: none; text-align: left;
}
.band-back-hint { font-family: var(--mono); font-size: 12px; color: var(--dim); transition: color .2s; }
.band-back:hover .band-back-hint { color: var(--accent); }
.band-back-name { font-family: var(--sans); font-size: 15px; color: var(--text); }
.band-tabs { flex-grow: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.dt-tab {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 10px; min-height: 56px; background: none; border: none; cursor: pointer; font-size: 15px; color: var(--subtle);
  transition: color .3s;
}
.dt-tab:hover, .dt-tab[aria-selected="true"] { color: var(--text); }
.dt-tab-swatch { width: 16px; height: 4px; border-radius: 2px; flex-shrink: 0; }
.dt-tab-line {
  position: absolute; left: 18%; right: 18%; bottom: -1px; height: 2px; background: var(--text);
  opacity: 0; box-shadow: 0 6px 18px 2px var(--tab-glow); transition: opacity .3s;
}
.dt-tab[aria-selected="true"] .dt-tab-line { opacity: 1; }

.win-wrap { max-width: 1380px; margin: 0 auto; padding: 20px 40px 0; }
.dt-win { background: var(--win); border: 1px solid var(--line-2); border-radius: 14px; padding: 0 8px 8px; box-shadow: 0 60px 120px -60px var(--shadow); }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; font-family: var(--mono); font-size: 13px; }
.win-bar .term-dots { gap: 8px; }
.win-bar .term-dots .dot { width: 12px; height: 12px; }
.win-title { color: var(--win-title); text-align: center; }
.win-spacer { width: 68px; flex-shrink: 0; }
.win-body { background: var(--panel-3); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px; }
.split { border: 1px solid var(--line-2); border-radius: 6px; padding: 36px 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.split-copy { display: flex; flex-direction: column; }
.live-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 5px 10px; border: 1px solid var(--line-3); border-radius: 999px; text-decoration: none;
  font-family: var(--mono); font-size: 12px; color: var(--muted); transition: color .2s, border-color .2s;
}
.live-link:hover { color: var(--text); border-color: var(--green); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.tool-headline { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 400; letter-spacing: -0.02em; }
.tool-desc { animation-delay: .08s; margin: 16px 0 0; font-size: 16px; line-height: 1.55; color: var(--soft); max-width: 480px; }
.tool-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.dash-rule { margin: 28px 0 22px; border-top: 1px dashed var(--line-4); max-width: 520px; }
.tool-bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tool-bullets li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); }
.tool-bullets li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; background: var(--accent); }

.stage-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Tool page: screenshot stage + viewer ---------- */
.split.with-shot { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 40px; padding: 32px 32px 32px 44px; }
.shot-note {
  margin-top: 22px; padding: 16px 18px; max-width: 480px;
  border: 1px solid var(--line-3); border-left: 3px solid var(--c, var(--accent)); border-radius: 8px;
  background: color-mix(in srgb, var(--c, var(--accent)) 7%, var(--panel-2));
}
.shot-note-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.shot-note-title { margin: 6px 0 0; font-size: 17px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.shot-note-text { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--soft); }

.stage { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stage-label { display: flex; align-items: center; gap: 8px; white-space: nowrap; min-width: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.stage-expand {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 12px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--control-border); border-radius: 999px; transition: border-color .2s, color .2s;
}
.stage-expand:hover, .stage-expand:focus-visible { border-color: var(--c, var(--accent)); color: var(--c, var(--accent)); }
.stage-frame {
  display: block; width: 100%; padding: 0; cursor: zoom-in; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line-3); border-radius: 10px;
  box-shadow: 0 24px 50px -32px var(--shadow); transition: border-color .3s;
}
.stage-frame:hover, .stage-frame:focus-visible { border-color: var(--c, var(--accent)); }
.stage-frame img { display: block; width: 100%; height: auto; }
.stage-pager { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-page {
  min-height: 34px; padding: 6px 14px; cursor: pointer; font-family: var(--sans); font-size: 13px;
  color: var(--muted); background: transparent; border: 1px solid var(--control-border); border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.stage-page:hover { color: var(--text); }
.stage-page[aria-pressed="true"] { color: var(--text); font-weight: 500; border-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); }
.stage-page[aria-pressed="true"]::before { content: "✓ "; }

.shot-viewer {
  max-height: calc(100vh - 32px); padding: 0; overflow: auto; width: fit-content; max-width: min(1280px, calc(100vw - 32px));
  background: var(--panel-3); color: var(--text); border: 1px solid var(--line-3); border-radius: 14px;
  box-shadow: 0 40px 120px -20px var(--shadow);
}
.shot-viewer::backdrop { background: var(--backdrop); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sv-bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; background: var(--win); border-bottom: 1px solid var(--line-soft); }
.sv-title { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); }
.shot-viewer img { display: block; max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; margin: 0 auto; }
.sv-caption { margin: 0; padding: 16px 20px 20px; font-size: 15px; line-height: 1.55; color: var(--soft); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.md-backdrop { position: fixed; inset: 0; background: var(--backdrop); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: md-fade .25s ease both; }
.md-card { position: relative; width: 100%; max-width: 520px; margin: auto; background: var(--panel-3); border: 1px solid var(--line-3); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 120px -20px var(--shadow); animation: md-in .35s var(--ease) both; }
.md-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; background: var(--win); border-bottom: 1px solid var(--line-soft); }
.md-bar-title { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.md-close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; border-radius: 6px; }
.md-close:hover { color: var(--text); }
.md-body { padding: 28px 28px 26px; }
.md-form { display: flex; flex-direction: column; gap: 18px; }
.md-h { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.md-h .accent { color: var(--accent); }
.md-p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.md-intro { margin-top: 8px; }
.md-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.md-fieldset { display: flex; flex-direction: column; gap: 6px; }
.md-label { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.md-field {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--text);
  background: var(--bg-raised); border: 1px solid var(--control-border); border-radius: 6px; padding: 12px 14px;
  transition: border-color .2s;
}
.md-field::placeholder { color: var(--dim); }
.md-select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.md-choice { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.md-choice legend { padding: 0; margin-bottom: 6px; }
.md-segments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.md-segment {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; cursor: pointer;
  font-size: 15px; color: var(--soft); background: var(--bg-raised); border: 1px solid var(--control-border); border-radius: 6px;
  transition: border-color .2s, background .2s, color .2s;
}
.md-segment input { margin: 0; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.md-segment:has(input:checked) { color: var(--text); font-weight: 500; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg-raised)); }
.md-segment:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.md-segment input:focus-visible { outline: none; }
.md-field:focus { border-color: var(--accent); }
.md-field[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.md-textarea { resize: vertical; line-height: 1.5; min-height: 120px; }
.md-submit { font-size: 15px; padding: 14px 20px; }
.md-error { margin: 0; font-size: 14px; line-height: 1.5; color: var(--error); }
.md-or { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.md-or span { flex-grow: 1; border-top: 1px dashed var(--line-3); }
.md-alt { margin: 0; text-align: center; font-size: 15px; color: var(--muted); }
.md-alt a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-family: var(--mono); }
.md-alt a:hover { color: var(--accent-2); }
.md-success { display: flex; flex-direction: column; gap: 14px; padding: 12px 0 6px; }
.md-ok { font-family: var(--mono); font-size: 13px; color: var(--green); }
.md-done { align-self: flex-start; margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raised); }
.foot { max-width: 1380px; margin: 0 auto; padding: 56px 40px 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-logo { display: block; height: 20px; width: auto; max-width: none; filter: var(--logo-filter); }
.foot-address { font-style: normal; font-size: 12.5px; line-height: 1.75; color: var(--subtle); }
.foot-kicker { display: block; color: var(--dim); letter-spacing: .08em; font-size: 12.5px; margin-bottom: 4px; }
.foot-tools { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.foot-tools li { display: flex; align-items: center; gap: 8px; }
.ft-link { display: inline-flex; align-items: center; min-height: 28px; color: var(--ft-link); text-decoration: none; transition: color .2s; }
.ft-link:hover { color: var(--accent); }
.ft-ext { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; text-decoration: none; color: var(--dim); font-size: 12px; }
.ft-ext:hover { color: var(--text); }

/* ---------- Light theme overrides ---------- */
/* Per-tool colours are pastel; deepen them on light backgrounds */
:root[data-theme="light"] .hm-tip { color: color-mix(in srgb, var(--c) 50%, #000); }
:root[data-theme="light"] .pg-link { color: var(--accent-2); }
.tool-headline span { color: var(--w); }
:root[data-theme="light"] .tool-headline span { color: color-mix(in srgb, var(--w) 55%, #000); }
:root[data-theme="light"] .hero-dots, :root[data-theme="light"] .hero-arc { opacity: .8; }

/* Light theme: soft pastel wash behind the home hero */
:root[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse 45% 55% at 10% 15%, rgba(243, 201, 160, .55), transparent 70%),
    radial-gradient(ellipse 40% 50% at 92% 10%, rgba(191, 216, 245, .75), transparent 70%),
    radial-gradient(ellipse 40% 45% at 85% 85%, rgba(180, 156, 245, .30), transparent 70%),
    radial-gradient(ellipse 45% 45% at 12% 88%, rgba(155, 224, 107, .28), transparent 70%),
    radial-gradient(ellipse 35% 35% at 50% 60%, rgba(240, 127, 176, .14), transparent 70%),
    linear-gradient(180deg, #FFFDF9 0%, var(--bg) 100%);
}
:root[data-theme="light"] .pill { background: linear-gradient(90deg, #F2F7FE, #FFF4EA); }
:root[data-theme="light"] .hero .btn-ghost { background: rgba(255, 255, 255, .7); }
:root[data-theme="light"] .hub-core-inner { background: linear-gradient(135deg, #EEF5FE, #FFF1E4); }

/* Light theme: soft tints of each tool's colour (--c) in boxes */
:root[data-theme="light"] .pg-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, #fff) 0%, color-mix(in srgb, var(--c) 5%, #fff) 100%);
  border-color: color-mix(in srgb, var(--c) 28%, #fff);
  --ht-dot: color-mix(in srgb, var(--c) 55%, #6F7076);
  --ht-dot-2: color-mix(in srgb, var(--c) 70%, #2E2F33);
}
:root[data-theme="light"] .pg-card:hover, :root[data-theme="light"] .pg-card:focus-within {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 20%, #fff) 0%, color-mix(in srgb, var(--c) 8%, #fff) 100%);
  border-color: color-mix(in srgb, var(--c) 55%, #fff);
}
:root[data-theme="light"] .pg-card .pg-corner { border-color: color-mix(in srgb, var(--c) 45%, #fff); }
:root[data-theme="light"] .hub-icon {
  background: color-mix(in srgb, var(--c) 12%, #fff);
  border-color: color-mix(in srgb, var(--c) 35%, #fff);
}
:root[data-theme="light"] .hub-icon .hub-glyph { --glyph: color-mix(in srgb, var(--c) 60%, #2E2F33); opacity: .85; }
:root[data-theme="light"] .tool-view .dt-win { background: color-mix(in srgb, var(--c) 12%, #fff); border-color: color-mix(in srgb, var(--c) 28%, #fff); }
:root[data-theme="light"] .tool-view .win-body { border-color: color-mix(in srgb, var(--c) 22%, #fff); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split, .split.with-shot { grid-template-columns: 1fr; padding: 48px 36px; gap: 40px; }
  .shot-note { max-width: none; }
  .split.with-shot .stage { order: -1; }
  .hero-title { font-size: 60px; }
  .band-back { width: 200px; }
  .dt-tab { gap: 7px; padding: 18px 4px; font-size: 14px; }
  .dt-tab-swatch { width: 12px; }
}
@media (max-width: 900px) {
  .band-row { flex-direction: column; }
  .band-back { width: 100%; border-right: none; border-bottom: 1px solid var(--line); padding: 16px 20px; }
}
@media (max-width: 720px) {
  .header-inner { padding: 14px 16px; }
  .hero { padding: 72px 16px 80px; }
  .hero-title { font-size: 40px; margin-top: 32px; }
  .hero-lede { font-size: 17px; margin-top: 24px; }
  .pill { font-size: 14px; padding: 10px 18px; gap: 10px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 200px; }
  .hub { margin-top: 64px; }
  .hub-icons { gap: 10px; }
  .hub-icon { width: 56px; height: 56px; border-radius: 14px; }
  .hub-icon svg { width: 28px; height: 28px; }
  .hm-tip { display: none; }
  .hub-conn { display: none; }
  .hub-core { margin-top: 28px; }
  .tools { padding: 80px 0; gap: 48px; }
  .section-head { padding: 0 16px; }
  .section-title { font-size: 36px; }
  .grid-wrap { padding: 0 16px; }
  .grid-frame { padding: 10px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pg-card { min-height: 360px; padding: 32px 14px 28px; }
  .card-art { height: 160px; }
  .card-art .pg-art { transform: scale(.8); }
  .pg-card:hover .card-art .pg-art { transform: scale(.86); }
  .partners { padding: 24px 0 80px; }
  .partners-lede { padding: 0 16px; margin-bottom: 36px; font-size: 16px; }
  .marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .pt-logo { height: 64px; min-width: 120px; padding: 12px 18px; margin: 0 6px; font-size: 15px; }
  .pt-img { height: calc(34px * var(--s, 1)); max-width: 140px; }
  .band-tabs { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-tab { font-size: 14px; }
  .win-wrap { padding: 16px 16px 0; }
  .dt-win { padding: 0 4px 4px; }
  .win-bar { padding: 10px 12px; font-size: 11px; }
  .win-bar .term-dots, .win-spacer { display: none; }
  .win-bar { justify-content: center; }
  .win-body { padding: 6px; }
  .split, .split.with-shot { padding: 28px 18px; gap: 28px; }
  .stage-label { font-size: 11px; }
  .stage-live-text { display: none; }
  .tool-headline { font-size: 28px; }
  .md-body { padding: 22px 18px 20px; }
  .modal { padding: 12px; }
  .foot { flex-direction: column; align-items: flex-start; padding: 40px 16px 36px; gap: 32px; }
}
@media (max-width: 420px) {
  .tool-grid { grid-template-columns: 1fr; }
  .md-row { grid-template-columns: 1fr; }
}

/* Partner logos become a static, fully visible grid when motion is off or a keyboard user tabs into them,
   so no focused logo is hidden off-screen (WCAG 2.2.2, 2.4.11) */
:root[data-motion="off"] .marquee, .marquee:focus-within { -webkit-mask-image: none; mask-image: none; }
:root[data-motion="off"] .pt-track, .marquee:focus-within .pt-track {
  animation: none; flex-wrap: wrap; width: auto; justify-content: center; white-space: normal; row-gap: 16px; padding: 10px 16px;
}
:root[data-motion="off"] .pt-track [data-clone], .marquee:focus-within .pt-track [data-clone] { display: none; }

/* Motion off (header toggle, or the OS "reduce motion" setting by default) */
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation-play-state: paused !important; }
:root[data-motion="off"] .pg-blink { animation: none; }
:root[data-motion="off"] .dt-in, :root[data-motion="off"] .bubble, :root[data-motion="off"] .log-row, :root[data-motion="off"] .cap, :root[data-motion="off"] .ce-tip, :root[data-motion="off"] .ad-card { opacity: 1; animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pg-card, .dt-in { opacity: 1; }
  .pt-track { flex-wrap: wrap; width: auto; justify-content: center; white-space: normal; row-gap: 16px; }
  .pt-track [data-clone] { display: none; }
}
