/* =====================================================================
   Callumi — soft, calm, light by default, with a full dark theme.
   Brand: signal mint #39F3C0 · ink #0A0F1E · paper #F4F6FA
   Mint is for fills, rings and text on ink. On light backgrounds,
   mint-coloured text uses --accent-text (#006B51, 6:1 on paper).
   ===================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --mint: #39F3C0;
  --ink: #0A0F1E;
  --paper: #F4F6FA;

  --bg: #F4F6FA;
  --bg-alt: #EBEFF6;
  --surface: #FFFFFF;
  --surface-2: #F6F8FB;
  --line: #E0E5EE;
  --line-strong: #77839A;          /* 3:1+ on white and paper: input borders */
  --text: #1B2335;
  --heading: #0A0F1E;
  --muted: #4B5568;
  --accent-text: #006B51;
  --accent-soft: #E2F8F0;
  --accent-line: #9FE6CF;
  --focus: #0A0F1E;
  --focus-halo: rgba(57, 243, 192, .55);
  --btn-bg: #0A0F1E;
  --btn-text: #FFFFFF;
  --btn-hover: #1D2742;
  --ghost-hover: #E7ECF4;
  --logo-ring: #0A0F1E;
  --error: #B42318;
  --error-soft: #FDECEA;
  --bubble-me: #0A0F1E;
  --bubble-me-text: #FFFFFF;
  --header-bg: rgba(244, 246, 250, .86);
  --glow-1: rgba(57, 243, 192, .22);
  --glow-2: rgba(120, 150, 255, .14);

  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 15, 30, .05), 0 2px 8px rgba(10, 15, 30, .04);
  --shadow: 0 1px 2px rgba(10, 15, 30, .04), 0 10px 30px rgba(10, 15, 30, .07);
  --shadow-lg: 0 24px 60px rgba(10, 15, 30, .12);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* Dark theme: follows the device unless the visitor picked one with the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F1E; --bg-alt: #0D1427; --surface: #111A2D; --surface-2: #16203A;
    --line: #233049; --line-strong: #7584A2; --text: #D9E0EC; --heading: #FFFFFF; --muted: #A6B1C5;
    --accent-text: #39F3C0; --accent-soft: rgba(57, 243, 192, .12); --accent-line: rgba(57, 243, 192, .45);
    --focus: #39F3C0; --focus-halo: rgba(57, 243, 192, .25);
    --btn-bg: #39F3C0; --btn-text: #0A0F1E; --btn-hover: #7CF7D5; --ghost-hover: #1A2440;
    --logo-ring: #39F3C0; --error: #FF8A80; --error-soft: rgba(255, 138, 128, .12);
    --bubble-me: #2A3755; --bubble-me-text: #FFFFFF; --header-bg: rgba(10, 15, 30, .82);
    --glow-1: rgba(57, 243, 192, .13); --glow-2: rgba(90, 120, 255, .12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0F1E; --bg-alt: #0D1427; --surface: #111A2D; --surface-2: #16203A;
  --line: #233049; --line-strong: #7584A2; --text: #D9E0EC; --heading: #FFFFFF; --muted: #A6B1C5;
  --accent-text: #39F3C0; --accent-soft: rgba(57, 243, 192, .12); --accent-line: rgba(57, 243, 192, .45);
  --focus: #39F3C0; --focus-halo: rgba(57, 243, 192, .25);
  --btn-bg: #39F3C0; --btn-text: #0A0F1E; --btn-hover: #7CF7D5; --ghost-hover: #1A2440;
  --logo-ring: #39F3C0; --error: #FF8A80; --error-soft: rgba(255, 138, 128, .12);
  --bubble-me: #2A3755; --bubble-me-text: #FFFFFF; --header-bg: rgba(10, 15, 30, .82);
  --glow-1: rgba(57, 243, 192, .13); --glow-2: rgba(90, 120, 255, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
@media (max-width: 380px) { .nowrap { white-space: normal; } }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  background: var(--btn-bg); color: var(--btn-text); padding: 12px 18px; border-radius: 12px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Focus: thick outline (3:1+ against every background) plus a soft mint halo. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible, .chip:focus-visible, .tool-btn:focus-visible, .icon-btn:focus-visible { box-shadow: 0 0 0 7px var(--focus-halo); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out), box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 8px 22px rgba(10, 15, 30, .16); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ghost-hover); }
.btn-quiet { background: var(--surface-2); color: var(--heading); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--line-strong); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ring { width: 22px !important; height: 22px !important; color: var(--mint); }
:root[data-theme="dark"] .btn-ring { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ring { color: var(--ink); } }

.tool-btn, .icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--heading);
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.tool-btn:hover, .icon-btn:hover { border-color: var(--line-strong); }
.tool-btn svg, .icon-btn svg { width: 20px; height: 20px; }
.lang-btn { font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: .04em; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; padding: 6px 4px; margin-left: -4px; color: var(--heading); }
.brand-logo { width: 132px; height: auto; aspect-ratio: 4605 / 1132.5; color: var(--heading); }
.brand-logo .logo-ring, .footer-brand .logo-ring { stroke: var(--logo-ring); }
.brand-logo .logo-dot { fill: var(--logo-ring); }
/* <use> clones live in a shadow tree, so colour them through inherited custom properties */
#logo .logo-ring { stroke: var(--logo-ring); }
#logo .logo-dot { fill: var(--logo-ring); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--heading); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.main-nav a:not(.btn):hover { background: var(--ghost-hover); }
.nav-cta-li { margin-left: 8px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: block; }
}
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .main-nav a:not(.btn) { min-height: 48px; border-radius: 12px; font-size: 1.05rem; }
  .nav-cta-li { margin: 10px 0 0; }
  .nav-cta-li .btn { width: 100%; min-height: 50px; }
  .header-tools { order: 2; }
}

/* ===== Shared section bits ===== */
main > section { padding: clamp(64px, 8vw, 104px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 4vw, 48px); }
.section-sub { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--font-head); font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.noscript { text-align: center; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 82% 38%, var(--glow-1), transparent 70%),
    radial-gradient(40% 50% at 8% 100%, var(--glow-2), transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 1.4rem + 4vw, 4rem); line-height: 1.04; letter-spacing: -.03em; margin-bottom: .45em; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .98rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23006B51' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-visual { position: relative; min-height: 480px; min-width: 0; display: grid; place-items: center; }
.ripples { position: relative; width: min(400px, 82vw, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.ripples span {
  position: absolute; inset: 18%; border-radius: 50%; border: 2px solid var(--accent-line);
  animation: ripple 4.8s cubic-bezier(.2, .6, .3, 1) infinite; opacity: 0;
}
.ripples span:nth-child(2) { animation-delay: 1.6s; }
.ripples span:nth-child(3) { animation-delay: 3.2s; }
@keyframes ripple { 0% { transform: scale(.7); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.hero-ring { position: relative; width: 40%; height: 40%; color: var(--heading); filter: drop-shadow(0 12px 30px var(--glow-1)); }
:root[data-theme="dark"] .hero-ring { color: var(--mint); filter: drop-shadow(0 0 22px rgba(57, 243, 192, .45)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-ring { color: var(--mint); filter: drop-shadow(0 0 22px rgba(57, 243, 192, .45)); } }

.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 16px 18px; font-size: .92rem; margin: 0;
  animation: floaty 9s ease-in-out infinite;
}
.float-card p { margin: 0; }
.call-card { top: 0; left: 0; width: min(230px, 62%); }
.cc-status { display: flex; align-items: center; gap: 8px; color: var(--accent-text); font-weight: 600; font-size: .85rem; }
.cc-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--accent-soft); }
.cc-num { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--heading); margin: 6px 0 2px !important; }
.cc-meta { color: var(--muted); font-size: .85rem; }
.cc-pill { display: inline-block; margin-top: 10px !important; padding: 4px 12px; border-radius: 999px; background: var(--mint); color: var(--ink); font-weight: 700; font-size: .82rem; }
.sms-card { right: 0; bottom: 0; width: min(250px, 66%); animation-delay: -4.5s; }
.sms-meta { color: var(--muted); font-size: .8rem; font-weight: 600; margin-bottom: 4px !important; }
.sms-card p:last-child { color: var(--heading); }
@keyframes floaty { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; max-width: 460px; width: 100%; margin-inline: auto; }
}
@media (max-width: 420px) {
  .hero-visual { min-height: 320px; }
  .call-card { width: 200px; }
  .sms-card { width: 210px; }
}

/* ===== Demo ===== */
.demo { background: var(--bg-alt); border-block: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
@media (max-width: 1140px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }

/* Chat */
.chat { display: flex; flex-direction: column; overflow: hidden; position: sticky; top: 92px; height: min(760px, calc(100vh - 110px)); min-height: 560px; }
@media (max-width: 1140px) { .chat { position: relative; top: 0; height: 640px; } .chat:has(.call-bar.on) { height: 760px; } }
@media (max-width: 560px) { .chat { height: min(700px, calc(100svh - 84px)); min-height: 600px; } .chat:has(.call-bar.on) { height: min(820px, calc(100svh - 84px)); min-height: 680px; } }
@media (max-height: 640px) and (min-width: 1141px) { .chat { position: relative; top: 0; height: 620px; } }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--mint); }
.avatar svg { width: 28px; height: 28px; }
.chat-head h3 { margin: 0; font-size: 1.1rem; }
.chat-sub { margin: 0; color: var(--muted); font-size: .88rem; }
.chat-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 18px; font-size: .86rem; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.chat-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-text); }

.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; overscroll-behavior: contain; }
.chat-log:focus-visible { outline-offset: -4px; }
.msg { max-width: 86%; margin: 0; animation: msg-in .35s ease both; }
.msg .who { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 4px; }
.msg .bubble { padding: 11px 15px; border-radius: 18px; line-height: 1.5; font-size: 1rem; }
.msg-ai .who { color: var(--accent-text); }
.msg-ai .bubble { background: var(--surface-2); border: 1px solid var(--line); border-top-left-radius: 6px; color: var(--heading); }
.msg-me { align-self: flex-end; text-align: left; }
.msg-me .who { color: var(--muted); text-align: right; }
.msg-me .bubble { background: var(--bubble-me); color: var(--bubble-me-text); border-top-right-radius: 6px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.typing .bubble { display: inline-flex; gap: 5px; align-items: center; padding: 15px 16px; }
.typing .bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: blink 1.2s infinite; }
.typing .bubble i:nth-child(2) { animation-delay: .2s; }
.typing .bubble i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 40% { opacity: 1; transform: translateY(-2px); } }

.sms {
  align-self: center; width: min(320px, 92%); margin: 6px 0; padding: 14px 16px 14px;
  background: var(--surface); border: 1px solid var(--accent-line); border-radius: 18px; box-shadow: var(--shadow);
  animation: msg-in .45s ease both;
}
.sms-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .8rem; font-weight: 700; color: var(--accent-text); }
.sms-head svg { width: 16px; height: 16px; }
.sms p { margin: 0; color: var(--heading); font-size: .95rem; }
.sms .sms-to { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.chat-action { align-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px 0; }
.chip {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--accent-line);
  background: var(--accent-soft); color: var(--heading); font-size: .92rem; font-weight: 500;
  transition: border-color .2s, background-color .2s;
}
.chip:hover { border-color: var(--accent-text); }
.chips[hidden] { display: none; }

.chat-form { padding: 10px 18px 14px; }
.chat-label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.chat-row { display: flex; gap: 8px; align-items: center; }
.chat-row input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--heading);
}
.chat-row input::placeholder { color: var(--muted); opacity: 1; }
.chat-row input:focus-visible { outline-offset: 2px; }
.icon-btn { width: 48px; height: 48px; }
.send-btn { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.send-btn:hover { background: var(--btn-hover); }
.send-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ===== Voice call ===== */
.call-bar { padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.call-bar.on { background: var(--accent-soft); }
.call-idle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.btn-call { min-height: 52px; padding: 0 24px; background: var(--mint); color: var(--ink); border-color: var(--ink); box-shadow: 0 8px 22px rgba(57, 243, 192, .32); }
.btn-call:hover { background: #6CF6D2; }
.btn-call svg { width: 22px; height: 22px; }
.call-hint { margin: 0; flex: 1 1 180px; font-size: .9rem; color: var(--muted); }
.call-live { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.call-live[hidden], .call-idle[hidden] { display: none; }
.call-orb { position: relative; flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--mint); }
.call-orb svg { width: 30px; height: 30px; }
.call-orb::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; }
.call-orb[data-state="listening"]::after { opacity: 1; animation: orb-listen 1.5s ease-out infinite; }
.call-orb[data-state="talking"] svg { animation: orb-talk .8s ease-in-out infinite; }
.call-orb[data-state="thinking"] svg, .call-orb[data-state="ringing"] svg { animation: orb-spin 1.4s linear infinite; }
.call-orb[data-state="muted"], .call-orb[data-state="nohear"] { background: var(--surface-2); color: var(--muted); }
@keyframes orb-listen { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes orb-talk { 50% { transform: scale(1.12); } }
@keyframes orb-spin { to { transform: rotate(360deg); } }
.call-info { flex: 1 1 170px; min-width: 0; }
.call-title { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--heading); }
.call-timer { margin-left: 6px; font-family: var(--font-body); font-weight: 500; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.call-state { margin: 2px 0 0; min-height: 1.4em; font-size: .92rem; font-weight: 600; color: var(--accent-text); }
.call-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.call-talk[hidden] { display: none; }
.call-mute .i-mic-off { display: none; }
.call-mute[aria-pressed="true"] { background: var(--error-soft); color: var(--error); border-color: var(--error); }
.call-mute[aria-pressed="true"] .i-mic { display: none; }
.call-mute[aria-pressed="true"] .i-mic-off { display: block; }
.btn-end { background: #B42318; color: #FFFFFF; border-color: #B42318; }
.btn-end:hover { background: #8F1B13; border-color: #8F1B13; }
.call-voice-note { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.call-bar:not(.on) .call-voice-note { display: none; }
@media (prefers-reduced-motion: reduce) {
  .call-orb[data-state="listening"]::after { animation: none; opacity: 1; transform: scale(1.12); }
}
.chat-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 8px; }
.mode-note { margin: 0; font-size: .8rem; color: var(--muted); }
.mode-note:empty { display: none; }
.voice-status { margin: 4px 0 0; font-size: .86rem; color: var(--muted); min-height: 0; }
.voice-status:empty { display: none; }
.voice-status.listening { color: var(--accent-text); font-weight: 600; }

/* Switch (a real checkbox; the track is decoration) */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: .9rem; color: var(--text); }
.switch input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.switch-track { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line-strong); transition: background-color .2s; flex: none; }
.switch-thumb { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--line-strong); transition: transform .2s, background-color .2s; }
.switch input:checked + .switch-track { background: var(--mint); border-color: var(--ink); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(16px); background: var(--ink); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Dashboard: always ink, echoing the ad */
.dash {
  --d-bg: #0B1122; --d-surface: #111A2F; --d-surface-2: #16213A; --d-line: #243150;
  --d-text: #E4E9F2; --d-muted: #A6B1C5; --focus: #39F3C0; --focus-halo: rgba(57, 243, 192, .3);
  background: radial-gradient(80% 50% at 90% 0%, rgba(57, 243, 192, .09), transparent 70%), var(--d-bg);
  color: var(--d-text); border-color: #1D2843; padding: clamp(16px, 2.4vw, 24px);
}
.dash h3, .dash h4 { color: #fff; }
.dash a { color: var(--mint); }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; }
.dash-kicker { margin: 0 0 2px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.dash-head h3 { margin: 0 0 8px; font-size: 1.35rem; }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(255, 194, 102, .12); border: 1px solid rgba(255, 194, 102, .35); color: #FFD596; font-size: .8rem; font-weight: 600; }
.demo-badge svg { width: 15px; height: 15px; }
.dash-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-state { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: .9rem; color: var(--d-text); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(57, 243, 192, .6); animation: live 2s infinite; }
.live-state.paused .live-dot { background: transparent; border: 2px solid var(--d-muted); animation: none; box-shadow: none; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(57, 243, 192, 0); } 100% { box-shadow: 0 0 0 0 rgba(57, 243, 192, 0); } }
.btn-dash { background: var(--d-surface-2); color: #fff; border-color: #34446A; }
.btn-dash:hover { border-color: var(--mint); }
.btn-dash .i-play { display: none; }
.btn-dash[aria-pressed="true"] .i-play { display: block; }
.btn-dash[aria-pressed="true"] .i-pause { display: none; }
.dash-hint { margin: 12px 0 0; font-size: .86rem; color: var(--d-muted); }

.stats { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat-label { display: block; font-size: .8rem; color: var(--d-muted); line-height: 1.3; }
.stat-value { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); color: #fff; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .55em; color: var(--d-muted); font-weight: 600; margin-left: 2px; }
.stat.bump .stat-value { animation: bump .6s ease; }
@keyframes bump { 30% { color: var(--mint); transform: translateY(-2px); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 680px) { .dash-cols { grid-template-columns: minmax(0, 1fr); } }
.dash-box { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--radius-md); padding: 14px; }
.dash-box h4 { margin: 0 0 10px; font-size: 1rem; }
.leads-box { margin-top: 12px; padding: 0; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 9px 10px; border-radius: 10px; background: var(--d-surface-2); font-size: .86rem; line-height: 1.35; }
.feed .f-ico { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(57, 243, 192, .12); color: var(--mint); }
.feed .f-ico svg { width: 16px; height: 16px; }
.feed .f-ico.t-text { background: rgba(138, 180, 255, .14); color: #A9C6FF; }
.feed .f-ico.t-night { background: rgba(255, 194, 102, .14); color: #FFD596; }
.feed .f-top { color: #fff; font-weight: 600; }
.feed .f-sub { color: var(--d-muted); }
.feed li.new { animation: feed-in .6s ease both; }
.feed li.you { background: rgba(57, 243, 192, .14); outline: 1.5px solid rgba(57, 243, 192, .6); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-8px); } }

.cal { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cal li { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--d-surface-2); font-size: .88rem; min-height: 44px; }
.cal .c-time { font-family: var(--font-head); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.cal .c-what { color: var(--d-text); }
.cal .c-open { color: var(--d-muted); font-style: italic; }
.cal .c-open::before { content: "○ "; font-style: normal; }
.cal li.you { background: rgba(57, 243, 192, .16); outline: 1.5px solid rgba(57, 243, 192, .7); animation: slot-in .9s ease both; }
@keyframes slot-in { from { background: rgba(57, 243, 192, .28); box-shadow: 0 0 0 6px rgba(57, 243, 192, .25); } }
.you-tag { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: var(--mint); color: var(--ink); font-size: .72rem; font-weight: 700; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-md); }
.leads { width: 100%; border-collapse: collapse; font-size: .88rem; }
.leads caption { text-align: left; padding: 14px 14px 10px; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1rem; }
.leads th { text-align: left; font-weight: 600; color: var(--d-muted); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 8px 14px; border-bottom: 1px solid var(--d-line); white-space: nowrap; }
.leads td { padding: 10px 14px; border-bottom: 1px solid var(--d-line); vertical-align: top; }
.leads tr:last-child td { border-bottom: 0; }
.leads td:first-child { color: #fff; font-weight: 600; }
.leads tr.new td { animation: feed-in .6s ease both; }
.leads tr.you td { background: rgba(57, 243, 192, .12); }
.leads tr.you td:first-child { box-shadow: inset 3px 0 0 var(--mint); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-weight: 600; font-size: .8rem; white-space: nowrap; }
.status svg { width: 14px; height: 14px; flex: none; }
.s-booked { background: rgba(57, 243, 192, .14); color: var(--mint); }
.s-texted { background: rgba(138, 180, 255, .14); color: #B4CDFF; }
.s-follow { background: rgba(255, 194, 102, .14); color: #FFD596; }
.urg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.urg::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--d-muted); flex: none; }
.urg.u-emergency::before { background: #FF8A80; transform: rotate(45deg); }
.urg.u-today::before { background: #FFC266; border-radius: 50%; }
.urg.u-this_week::before { background: #8AB4FF; }

/* ===== Watch ===== */
.watch { background: var(--ink); color: #D9E0EC; position: relative; overflow: hidden; --focus: #39F3C0; --focus-halo: rgba(57, 243, 192, .3); }
.watch::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 0%, rgba(57, 243, 192, .12), transparent 70%); pointer-events: none; }
.watch .container { position: relative; }
.watch h2 { color: #fff; }
.watch .eyebrow { color: var(--mint); }
.watch .eyebrow::before { box-shadow: 0 0 0 4px rgba(57, 243, 192, .15); }
.watch .section-sub { color: #A6B1C5; }
.video-figure { margin: 0 auto; max-width: 1040px; }
.video-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid #243150; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); background: #000; margin-inline: auto; }
.video-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0A0F1E; }
@media (max-width: 600px) and (orientation: portrait) {
  .video-frame { max-width: min(100%, calc(78vh * 9 / 16)); }
  .video-frame video { aspect-ratio: 9 / 16; }
}
.video-figure figcaption { margin-top: 20px; color: #C3CCDB; }
.transcript { margin-top: 2px; }
.transcript summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; cursor: pointer; list-style: none; font-size: .9rem; font-weight: 500; color: #A6B1C5; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(166, 177, 197, .5); }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.transcript[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.transcript summary:hover { color: #fff; }
.transcript ol { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; max-width: 70ch; font-size: .92rem; color: #C7D0DF; }
.transcript li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; line-height: 1.55; }
.transcript .ts { font-family: var(--font-head); font-weight: 600; color: #7FE9C9; font-variant-numeric: tabular-nums; }

/* ===== How ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow-sm); }
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--heading);
  background: var(--surface); border: 5px solid var(--mint); box-shadow: 0 0 0 6px var(--accent-soft);
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }

/* ===== Features ===== */
.features { background: var(--bg-alt); border-block: 1px solid var(--line); }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* 8 cards: always even rows (4+4, 2x4, 1x8) */
@media (max-width: 1100px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s ease; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.f-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 16px; }
.f-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ===== Who ===== */
.who-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who-grid { grid-template-columns: minmax(0, 1fr); } }
.who-grid li { position: relative; padding: 22px 24px 22px 56px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.who-grid li::before { content: ""; position: absolute; left: 24px; top: 27px; width: 14px; height: 14px; border-radius: 50%; border: 3.5px solid var(--mint); box-shadow: 0 0 0 4px var(--accent-soft); }
.who-grid h3 { font-size: 1.1rem; margin-bottom: .35em; }
.who-grid p { margin: 0; color: var(--muted); }

/* ===== FAQ ===== */
.faq { background: var(--bg-alt); border-block: 1px solid var(--line); }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: var(--accent-line); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 18px 60px 18px 22px; min-height: 56px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--heading); border-radius: var(--radius-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23006B51' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); max-width: 68ch; }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: minmax(0, 1fr); } }
.contact-copy > p { color: var(--muted); font-size: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; color: var(--heading); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%230A0F1E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow-lg); }
.form-intro { color: var(--muted); font-size: .92rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--heading);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%2377839A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.hint { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.field-err { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; font-size: .92rem; font-weight: 600; color: var(--error); }
.field-err::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--error); color: var(--surface); font-size: .75rem; font-weight: 800; }
.error-summary { border: 2px solid var(--error); background: var(--error-soft); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; }
.error-summary h3 { font-size: 1rem; color: var(--heading); margin-bottom: 6px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--error); font-weight: 600; }
.form-privacy { margin: 14px 0 0; font-size: .88rem; color: var(--muted); }
.form-status { margin: 10px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.err { color: var(--error); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 24px 8px; }
.success-ring { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--ink); color: var(--mint); }
.success-ring svg { width: 44px; height: 44px; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--muted); }
.preview-note { font-size: .9rem; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); display: inline-block; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-brand .brand-logo { width: 140px; }
.footer-brand p { margin: 12px 0 0; color: var(--muted); }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--heading); text-decoration: none; border-radius: 10px; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-fine { padding-top: 20px; font-size: .9rem; color: var(--muted); }
.footer-fine p { margin: 0; }

/* ===== Simple pages (privacy, 404, thanks) ===== */
.page { padding: clamp(40px, 6vw, 80px) 0; }
.page h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.page h2 { font-size: 1.4rem; margin-top: 1.8em; }
.page p, .page li { max-width: 70ch; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: .4em; }
.template-note { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--heading); }
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.center-page .big-ring { width: 120px; height: 120px; margin: 0 auto 24px; color: var(--heading); }
.center-page .btn { margin: 6px; }

/* ===== Motion: respect the visitor's setting ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ripples span { display: none; }
}

/* Forced colours (Windows High Contrast): keep shapes visible */
@media (forced-colors: active) {
  .btn, .chip, .tool-btn, .icon-btn, .panel, .status, .stat { border: 1px solid CanvasText; }
  .switch-track { border-color: CanvasText; }
}

/* chat: system line ("Call connected…") */
.chat-system { align-self: center; margin: 0; max-width: 90%; text-align: center; font-size: .82rem; color: var(--muted); }

/* theme toggle: change colours in one step */
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* leads table on phones: tighter so all four columns usually fit without sideways scrolling */
@media (max-width: 560px) {
  .leads { font-size: .8rem; }
  .leads th, .leads td { padding: 8px 5px; }
  .urg { gap: 4px; }
  .status svg { display: none; }
  .leads th:first-child, .leads td:first-child { padding-left: 12px; }
  .leads th { font-size: .7rem; letter-spacing: .02em; white-space: normal; }
  .status, .urg { white-space: normal; }
  .status { padding: 3px 8px 3px 6px; }
  .dash { padding: 12px; }
  .chat-head { padding: 12px 14px; }
  .chat-log { padding: 14px; }
  .chat-form, .chips { padding-left: 14px; padding-right: 14px; }
  .chat-note { padding: 10px 14px; }
}

/* chat on phones: suggestions in one swipeable row, more room for the conversation */
@media (max-width: 560px) {
  .chat { height: min(720px, 86vh); height: min(720px, 86svh); min-height: 520px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scroll-padding-inline: 14px; }
  .chip { flex: none; }
  .avatar { width: 38px; height: 38px; }
  .avatar svg { width: 24px; height: 24px; }
  .chat-head h3 { font-size: 1.02rem; }
  .chat-sub { font-size: .8rem; }
  #chat-restart { padding: 0 12px; }
}
@media (max-width: 560px) {
  .leads .you-tag, .leads .status { border-radius: 7px; line-height: 1.3; }
  .leads .you-tag { padding: 2px 6px; font-size: .68rem; }
  .leads .status { padding: 3px 6px; }
}
@media (max-width: 380px) {
  .dash { padding: 10px; }
  .leads th, .leads td { padding: 8px 4px; }
  .leads th:first-child, .leads td:first-child { padding-left: 10px; }
  .urg::before { display: none; }
  .leads { font-size: .78rem; }
}

/* dark theme: mint versions of the small inline icons */
:root[data-theme="dark"] .hero-points li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%2339F3C0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .faq summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%2339F3C0' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-points li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%2339F3C0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  :root:not([data-theme="light"]) .faq summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%2339F3C0' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}

/* Phones: during a call, give the conversation the room (the demo notice was read before calling) */
@media (max-width: 560px) {
  .chat:has(.call-bar.on) .chat-note { display: none; }
  .call-bar { padding: 12px 14px; }
  .call-orb { width: 46px; height: 46px; }
  .call-orb svg { width: 26px; height: 26px; }
  .call-voice-note { margin-top: 6px; }
}

/* ----- "Best time to reach you" calendar (Book a demo form) ----- */
.when { border: 0; margin: 0; padding: 0; min-width: 0; }
.when > legend { display: block; padding: 0; font-weight: 600; color: var(--heading); margin-bottom: 2px; }
.when .hint { margin: 0 0 10px; }
.when-fallback { width: 100%; }
.when-picker { border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px; background: var(--surface-2); }
.when.is-invalid .when-picker { border-color: var(--error); border-width: 2px; }
.when-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.when-group + .when-group { margin-top: 14px; }
.when-group[disabled] { opacity: .55; }
.when-sub { padding: 0; font-size: .85rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); margin-bottom: 8px; }
.day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.when-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.time-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--heading);
  cursor: pointer; user-select: none; transition: background-color .15s, border-color .15s, transform .15s;
}
.time-tile { padding: 10px 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.time-tile:hover { border-color: var(--heading); }
.when-radio:checked + .time-tile { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.when-radio:focus-visible + .day-cell, .when-radio:focus-visible + .time-tile { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }
.when-radio:disabled + .time-tile { cursor: not-allowed; border-style: dashed; color: var(--muted); text-decoration: line-through; background: transparent; }
.when-group[disabled] .time-tile { cursor: not-allowed; }
.when-pick { margin: 12px 0 0; font-weight: 600; color: var(--accent-text); }
.when-pick:empty { display: none; }
@media (max-width: 420px) {
  .when-picker { padding: 10px; }
  .day-grid { gap: 6px; }
  .time-grid { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .day-cell, .time-tile { transition: none; } }

/* month calendar */
.wcal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wcal-month { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--heading); }
.wcal-nav { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--heading); cursor: pointer; }
.wcal-nav svg { width: 20px; height: 20px; }
.wcal-nav:hover:not(:disabled) { border-color: var(--heading); }
.wcal-nav:disabled { opacity: .35; cursor: not-allowed; }
.wcal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
.wcal-dow span { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); padding: 2px 0; }
.day-cell {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; min-height: 38px; max-height: 50px;
  border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--heading);
  font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; user-select: none; transition: background-color .15s, border-color .15s;
}
.day-cell:hover { border-color: var(--heading); }
.day-cell.is-today::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.when-radio:checked + .day-cell { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.when-radio:disabled + .day-cell { border-color: transparent; background: transparent; color: var(--muted); opacity: .55; cursor: not-allowed; }
.wcal-key { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 420px) { .day-grid, .wcal-dow { gap: 3px; } .day-cell { min-height: 34px; border-radius: 8px; } }
/* beat ".field label { display: block }" so dates and times sit centred in their boxes */
.when label.day-cell { display: grid; place-items: center; margin: 0; }
.when label.time-tile { display: flex; align-items: center; justify-content: center; margin: 0; }

/* compact calendar: fixed-size date buttons, centred, so it doesn't stretch across the whole form */
.when-picker { max-width: 360px; }
.day-grid, .wcal-dow { grid-template-columns: repeat(7, 40px); justify-content: space-between; gap: 2px 0; }
.day-cell { width: 38px; height: 38px; min-height: 0; max-height: none; aspect-ratio: auto; border-radius: 50%; font-size: .92rem; justify-self: center; }
.day-cell.is-today::after { bottom: 3px; width: 4px; height: 4px; }
.wcal-head { margin-bottom: 4px; }
.wcal-nav { width: 34px; height: 34px; }
.wcal-month { font-size: 1rem; }
.time-grid { gap: 6px; }
.time-tile { min-height: 38px; padding: 6px 4px; font-size: .92rem; border-radius: 999px; }
#time-group:not([hidden]) { animation: when-in .2s ease-out; }
@keyframes when-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #time-group:not([hidden]) { animation: none; } }
@media (max-width: 380px) { .day-grid, .wcal-dow { grid-template-columns: repeat(7, minmax(0, 1fr)); } .day-cell { width: 34px; height: 34px; } }

/* ----- live demo: which business you're calling ----- */
.biz-switch { border: 0; margin: 0 auto 22px; padding: 0; min-width: 0; text-align: center; }
.biz-switch legend { display: block; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 600; color: var(--heading); }
.biz-options { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.biz-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.biz-options label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; font-weight: 600; color: var(--text); cursor: pointer; transition: background-color .15s, color .15s; }
.biz-options label svg { width: 20px; height: 20px; flex: none; }
.biz-options label:hover { background: var(--ghost-hover); }
.biz-radio:checked + label { background: var(--btn-bg); color: var(--btn-text); }
.biz-radio:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }
@media (max-width: 560px) {
  .biz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 20px; width: 100%; }
  .biz-options label { justify-content: center; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .biz-options label { transition: none; } }
/* the hidden radio behind each date/time must stay 1px: beat ".field input { width: 100% }", which made the page scroll sideways */
.field .when-radio { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; margin: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.when-picker { position: relative; }

/* ===== Polish (2026-11-23) ===== */
/* Browser surfaces in the brand's colours */
::selection { background: rgba(57, 243, 192, .38); color: var(--heading); }
html { accent-color: var(--accent-text); scrollbar-color: var(--line-strong) var(--bg); }
input, textarea { caret-color: var(--accent-text); }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* Everything you can press answers the press */
.chip, .tool-btn, .icon-btn, .wcal-nav, .biz-options label, .time-tile, .day-cell { transition-property: background-color, border-color, color, transform; transition-duration: .16s; transition-timing-function: var(--ease-out); }
.chip:active, .tool-btn:active, .icon-btn:active, .wcal-nav:active:not(:disabled), .biz-options label:active, .time-tile:active, .day-cell:active { transform: scale(.96); }
.main-nav a:not(.btn) { transition: background-color .16s ease; }
.faq summary::after { transition: transform .3s var(--ease-out); }
.faq summary:hover { color: var(--accent-text); }

/* Hero: one entrance on load, then still. The two cards arrive in story order: the call, then the text. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.hero-copy > * { animation: rise .7s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .07s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .21s; }
.hero-visual .ripples { animation: pop .9s var(--ease-out) .1s both; }
.hero-visual .call-card { animation: pop .6s var(--ease-out) .45s both, floaty 9s ease-in-out 1.1s infinite; }
.hero-visual .sms-card { animation: pop .6s var(--ease-out) 1.05s both, floaty 9s ease-in-out -3.4s infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-visual .ripples, .hero-visual .call-card, .hero-visual .sms-card { animation: none !important; opacity: 1 !important; transform: none !important; }
}
