/* Handler — styles
   Near-black base, cool blue-teal accent. System fonts. Mobile-first, single column. */

:root {
  --bg: #0b0f12;
  --bg-raised: #11171c;
  --bg-card: #141c22;
  --border: #1f2a32;
  --text: #e8edf0;
  --text-dim: #9fb0ba;
  --accent: #2dd4bf;
  --accent-deep: #14b8a6;
  --accent-ink: #04211d;
  --max: 54rem;
}

/* Light theme — toggled by the header lightbulb (js/site.js), persisted in
   localStorage. Dark is the default (no data-theme attribute). */
:root[data-theme="light"] {
  --bg: #f6f8f9;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --border: #dce4e9;
  --text: #16232c;
  --text-dim: #51636f;
  --accent: #0d9488;
  --accent-deep: #0b7a70;
  --accent-ink: #ffffff;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Example-call banner (homepage, above the header) ---------- */
.call-banner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-ink);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 60;
}
.call-banner[hidden] { display: none; }
.cb-play {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  color: var(--accent-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.cb-play svg { width: 1rem; height: 1rem; }
.cb-play:hover {
  background: rgba(0, 0, 0, 0.32);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Live-call waveform: always animating so the banner reads as "a call is
   happening right now"; speeds up while the recording actually plays. */
.cb-eq {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 1.15rem;
  flex: none;
}
.cb-eq i {
  width: 3px;
  height: var(--h, 60%);
  border-radius: 2px;
  background: var(--accent-ink);
  opacity: 0.8;
  animation: cb-eq-bounce 1.5s ease-in-out var(--d, 0s) infinite;
}
.call-banner.playing .cb-eq i {
  opacity: 1;
  animation-duration: 0.7s;
}
@keyframes cb-eq-bounce {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cb-eq i { animation: none; transform: scaleY(0.7); }
}
@media (max-width: 480px) {
  .cb-eq i:nth-child(n+9) { display: none; }
}
.cb-label {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cb-progress { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 6rem; }
.cb-bar {
  flex: 1;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
}
.cb-fill { height: 100%; width: 0; background: var(--accent-ink); border-radius: 999px; }
.cb-time { font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-close {
  flex: none;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--accent-ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  opacity: 0.75;
}
.cb-close:hover { opacity: 1; }
@media (max-width: 540px) {
  .call-banner { gap: 0.55rem; padding: 0.5rem 0.9rem; }
  .cb-label { font-size: 0.85rem; }
}

/* ---------- Header ----------
   Transparent while at the top of the page; frosted white (5% opacity)
   glass once the user scrolls (.scrolled is toggled in js/site.js). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
:root[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  padding: 0.75rem 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}
/* Nav links sit immediately after the logo (left-aligned); site-nav grows to
   fill the row and pushes its own trailing CTA to its right edge, so the
   button cluster (CTA + Get Started) lands flush at the far right. */
.header-inner .site-nav { flex: 1; }

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo .dot { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1.1rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: nowrap; }
.site-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
/* Duplicate Get Started that lives inside the hamburger dropdown only. */
.site-nav .nav-cta-mobile { display: none; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
/* Secondary action (outline pill), pushed to site-nav's own right edge —
   everything after it in the flex row (the hidden mobile duplicate) rides
   along with it. */
.site-nav a.nav-cta {
  margin-left: auto;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.44rem 0.95rem;
  border-radius: 8px;
  font-weight: 600;
}
.site-nav a.nav-cta:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.site-nav a[aria-current="page"] { color: var(--text); }

/* Collapse straight to logo + hamburger + lightbulb before anything can wrap
   to a second line; the nav links and Get Started move into the dropdown. */
@media (max-width: 999px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-get-started { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.9rem 1.25rem; border-top: 1px solid var(--border); }
  .site-nav a.nav-cta { margin-left: 0; border-radius: 0; text-align: center; }
  .site-nav .nav-cta-mobile { display: block; text-align: center; color: var(--accent); font-weight: 700; }
}

/* ---------- Hero ----------
   Full-bleed AC-unit illustration under a theme-matched gradient. The image
   layer is fixed-attachment for a parallax effect (disabled on small screens,
   where fixed backgrounds are janky). Negative top margin pulls the section
   up behind the transparent sticky header. */
.hero {
  position: relative;
  margin-top: -3.8rem;
  padding: 9.5rem 0 4rem;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(45, 212, 191, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(11, 15, 18, 0.78) 0%, rgba(11, 15, 18, 0.88) 55%, var(--bg) 96%),
    url("../images/hero-unit.jpg") center 25% / cover no-repeat;
  background-attachment: scroll, scroll, fixed;
}
.hero .trust-strip { border-top-color: rgba(255, 255, 255, 0.12); }
:root[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse at 70% 10%, rgba(13, 148, 136, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(246, 248, 249, 0.72) 0%, rgba(246, 248, 249, 0.88) 55%, var(--bg) 96%),
    url("../images/hero-unit.jpg") center 25% / cover no-repeat;
  background-attachment: scroll, scroll, fixed;
}
:root[data-theme="light"] .hero .trust-strip { border-top-color: rgba(0, 0, 0, 0.12); }
@media (max-width: 720px) {
  .hero, :root[data-theme="light"] .hero { background-attachment: scroll; }
}

.hero-contact {
  margin: -0.9rem 0 1.9rem;
  font-size: 0.95rem;
}
.hero-contact a { font-weight: 600; }

h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

.hero .sub {
  color: var(--text-dim);
  font-size: 1.125rem;
  margin: 0 0 1.75rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-deep); text-decoration: none; }
.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-raised);
}
.btn-secondary:hover { border-color: var(--accent); text-decoration: none; }

.trust-strip {
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

/* ---------- Sections ---------- */
section, .page-body { padding: 2.5rem 0; }

h2 {
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h3 { font-size: 1.1rem; margin: 1.75rem 0 0.4rem; }
h3 + p { margin-top: 0; }

p { color: var(--text-dim); }
p strong, li strong { color: var(--text); }

.section-alt {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Pricing ---------- */
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  margin: 1.5rem 0;
}
.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem;
  margin-bottom: 1rem;
  background: var(--bg);
}
.billing-toggle button {
  border: none;
  background: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.billing-toggle button.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.price small { font-size: 1.1rem; font-weight: 500; color: var(--text-dim); }
.price-note { font-size: 0.95rem; }
.guarantee {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.25rem 0;
}
.fine { font-size: 0.9rem; font-style: italic; }

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.25rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  padding: 0.85rem 0;
  list-style: none;
  position: relative;
  padding-right: 1.75rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; }

/* ---------- Steps (How it works) ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 2rem 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.75rem 3.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li p { margin: 0.15rem 0 0; }
.steps li strong { color: var(--text); }

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.callout p { margin: 0; }

/* ---------- Form ---------- */
.demo-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  margin: 2rem 0;
}
.demo-form h3 { margin-top: 0; }
.demo-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
}
.demo-form input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.demo-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.demo-form button {
  margin-top: 1.25rem;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.form-success { display: none; }
.form-success p { color: var(--text); font-weight: 500; }

/* ---------- Closing CTA ---------- */
.closing { text-align: center; padding: 3.5rem 0; }
.closing .demo-number {
  display: block;
  font-size: clamp(1.6rem, 6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 1.25rem 0 0.25rem;
}
.closing .demo-label { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 6rem; /* clearance for sticky bar */
  font-size: 0.9rem;
}
.site-footer .wrap { max-width: 64rem; }
.site-footer .tagline { color: var(--text-dim); margin: 0.6rem 0 0; font-size: 0.95rem; }
.site-footer p { margin: 0.5rem 0; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem 3rem;
  flex-wrap: wrap;
}
.footer-brand { max-width: 18rem; }
.footer-brand .logo { font-size: 1.35rem; display: block; line-height: 1; }
/* Keep the top of the link columns flush with the top of the logo. */
.footer-cols .footer-col strong { line-height: 1; margin-top: 0.15rem; }
.footer-legal {
  border-top: 1px solid var(--border);
  margin-top: 1.75rem;
  padding-top: 1rem;
  font-size: 0.85rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; }
.footer-nav a { color: var(--text-dim); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 1rem 4rem; margin-left: auto; text-align: left; }
.footer-cols .footer-col {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.footer-cols .footer-col strong { color: var(--text); font-size: 0.95rem; margin-bottom: 0.2rem; }

/* ---------- Competitive matrix ---------- */
.matrix-wrap { overflow-x: auto; margin: 1.25rem 0 0.5rem; border: 1px solid var(--border); border-radius: 10px; }
.matrix { border-collapse: collapse; width: 100%; min-width: 60rem; font-size: 0.82rem; background: var(--bg-card); }
.matrix.matrix-mini { min-width: 34rem; }
.matrix th, .matrix td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.matrix thead th { color: var(--text); font-size: 0.8rem; position: sticky; top: 0; background: var(--bg-raised); }
.matrix thead th:nth-child(2) { color: var(--accent); }
.matrix tbody th { color: var(--text-dim); font-weight: 500; max-width: 18rem; }
.matrix td.m-yes { color: var(--accent); font-weight: 700; }
.matrix td.m-no { color: #e5484d; }
.matrix td.m-paid, .matrix td.m-part { color: #e5a53d; }
.matrix-legend { margin-top: 0.5rem; }

/* ---------- Sticky CTA bar ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(17, 23, 28, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
:root[data-theme="light"] .sticky-cta { background: rgba(255, 255, 255, 0.94); }
.sticky-cta .btn { padding: 0.65rem 1.2rem; font-size: 0.95rem; white-space: nowrap; }
.sticky-cta .sticky-note {
  color: var(--text-dim);
  font-size: 0.85rem;
}
@media (max-width: 480px) {
  .sticky-cta .sticky-note { display: none; }
  .sticky-cta .btn { flex: 1; text-align: center; }
}

/* ---------- Chatbot widget ---------- */
.hb-bubble {
  position: fixed;
  right: 1rem;
  bottom: calc(4.75rem + env(safe-area-inset-bottom));
  z-index: 70;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.hb-bubble:hover { background: var(--accent-deep); }
.hb-bubble svg { width: 1.6rem; height: 1.6rem; }

.hb-panel {
  position: fixed;
  right: 1rem;
  bottom: calc(9rem + env(safe-area-inset-bottom));
  z-index: 70;
  width: min(45rem, calc(100vw - 2rem));
  height: min(90rem, calc(100vh - 11rem));
  max-height: min(90rem, calc(100vh - 11rem));
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.hb-panel[hidden] { display: none; }

.hb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.hb-head strong { font-size: 1rem; }
.hb-sub { display: block; color: var(--text-dim); font-size: 0.78rem; }
.hb-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}
.hb-close:hover { color: var(--text); }

.hb-tabs {
  display: flex;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.hb-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0.5rem;
  cursor: pointer;
}
.hb-tab:hover { color: var(--text); }
.hb-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.hb-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 8rem;
}
.hb-msg {
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.hb-msg.bot { background: var(--bg-card); border: 1px solid var(--border); align-self: flex-start; color: var(--text); }
.hb-msg.user { background: var(--accent); color: var(--accent-ink); align-self: flex-end; }
.hb-msg.note { background: none; color: var(--text-dim); font-size: 0.8rem; align-self: center; text-align: center; padding: 0.1rem; }
.hb-msg.typing { color: var(--text-dim); font-style: italic; }

.hb-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.hb-mic {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hb-mic svg { width: 1.15rem; height: 1.15rem; }
.hb-mic:hover { border-color: var(--accent); }
.hb-mic.live {
  background: #e5484d;
  border-color: #e5484d;
  color: #fff;
  animation: hb-pulse 1.4s ease-in-out infinite;
}
.hb-mic:disabled { opacity: 0.4; cursor: not-allowed; }
@keyframes hb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); }
}

.hb-form { display: flex; flex: 1; gap: 0.5rem; }
.hb-form input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
}
.hb-form input:focus { outline: none; border-color: var(--accent); }
.hb-form button {
  flex: none;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 1rem;
  cursor: pointer;
  font-family: inherit;
}
.hb-form button:hover { background: var(--accent-deep); }
.hb-form button:disabled, .hb-form input:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Admin page ---------- */
.admin-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid #e5a53d;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  margin: 1.5rem 0;
}
.admin-status { font-size: 0.95rem; }
.admin-status .ok { color: var(--accent); font-weight: 700; }
.admin-status .missing { color: #e5a53d; font-weight: 700; }

/* ---------- Get Started header button (primary CTA, far right) ---------- */
.nav-get-started {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-get-started:hover { background: var(--accent-deep); color: var(--accent-ink); text-decoration: none; }

/* ---------- Hero lead form ---------- */
.hero-lead {
  display: flex;
  gap: 0.5rem;
  max-width: 27rem;
  margin: -0.9rem 0 1.9rem;
}
.hero-lead input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.hero-lead input:focus { outline: none; border-color: var(--accent); }
.hero-lead button {
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0 1.1rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.hero-lead button:hover { background: var(--accent-deep); }
.hero-lead-done { margin: -0.9rem 0 1.9rem; color: var(--accent); font-weight: 600; }

/* ---------- Auth (login/signup) page ---------- */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 3.8rem);
}
.auth-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 4rem;
}
.auth-card { width: 100%; max-width: 24rem; }
.auth-card h1 { font-size: 1.65rem; margin-bottom: 0.4rem; }
.auth-sub { margin-top: 0; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin: 1.25rem 0 1rem; }
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem;
  cursor: pointer;
}
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-card label { display: block; font-size: 0.9rem; font-weight: 600; margin: 1rem 0 0.35rem; }
.auth-card input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.auth-card input:focus { outline: none; border-color: var(--accent); }
.auth-card .btn { width: 100%; margin-top: 1.25rem; border: none; cursor: pointer; font-family: inherit; }
.auth-msg { font-size: 0.9rem; min-height: 1.3rem; margin: 0.75rem 0 0; }
.auth-msg.err { color: #e5484d; }
.auth-msg.ok { color: var(--accent); }

.auth-right {
  background: var(--bg-raised);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}
.testimonial-box { max-width: 26rem; }
.testimonial { transition: opacity 0.4s ease; }
.testimonial.fading { opacity: 0; }
.testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}
.testimonial blockquote::before { content: "\201C"; color: var(--accent); }
.testimonial blockquote::after { content: "\201D"; color: var(--accent); }
.testimonial cite { color: var(--text-dim); font-style: normal; font-size: 0.95rem; }
.testimonial-dots { display: flex; gap: 0.4rem; margin-top: 1.5rem; }
.testimonial-dots span {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--border); cursor: pointer;
}
.testimonial-dots span.on { background: var(--accent); }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-right { display: none; }
}

/* ---------- Dashboard ---------- */
/* Collapsible left sidebar */
.dash-layout {
  display: flex;
  gap: 1.75rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.dash-side {
  flex: none;
  width: 12.5rem;
  position: sticky;
  top: 4.6rem;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: width 0.2s ease;
  overflow: hidden;
}
.dash-side.collapsed { width: 3rem; }
.side-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
}
.side-link svg { width: 1.15rem; height: 1.15rem; flex: none; }
.side-link:hover { color: var(--text); background: var(--bg-raised); text-decoration: none; }
.side-link.active { background: var(--bg-card); color: var(--accent); }
.dash-side.collapsed .side-link span { display: none; }
.side-toggle { color: var(--text-dim); margin-bottom: 0.75rem; }
.side-toggle svg { transition: transform 0.2s ease; }
.dash-side.collapsed .side-toggle svg { transform: rotate(180deg); }
.dash-main { flex: 1; min-width: 0; }
@media (max-width: 720px) {
  .dash-layout { gap: 0.9rem; padding: 0 0.75rem; }
  .dash-side { width: 3rem; }
  .dash-side:not(.collapsed) { width: 3rem; }
  .dash-side .side-link span { display: none; }
  .side-toggle { display: none; }
}

.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dash-head h1 { margin-bottom: 0.25rem; }
.dash-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.stat-card .stat-n { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.stat-card .stat-l { font-size: 0.85rem; color: var(--text-dim); }

.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.dash-table th { color: var(--text-dim); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.dash-table tbody tr { cursor: pointer; }
.dash-table tbody tr:hover { background: var(--bg-card); }
.dash-table .empty td { color: var(--text-dim); cursor: default; }
/* Phones: tables scroll sideways instead of squeezing */
@media (max-width: 700px) {
  .dash-table { display: block; overflow-x: auto; white-space: nowrap; }
}
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge.ok { background: rgba(45, 212, 191, 0.15); color: var(--accent); }
.badge.no { background: rgba(229, 72, 77, 0.15); color: #e5484d; }
.badge.warn { background: rgba(229, 165, 61, 0.15); color: #e5a53d; }
.badge.info { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.detail-card h3 { margin-top: 0; }
.detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.detail-meta div { font-size: 0.95rem; }
.detail-meta .k { color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; display: block; }
.transcript {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  max-height: 24rem;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---------- Admin lists ---------- */
.admin-gate { max-width: 24rem; }

/* ---------- Dashboard: profile menu, view tabs, recent callers, CRM ---------- */
.avatar-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  flex: none;
}
.avatar-wrap { position: relative; }
.avatar-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 11rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 0.35rem;
  z-index: 80;
}
.avatar-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  border-radius: 7px;
  cursor: pointer;
}
.avatar-menu button:hover { background: var(--bg-raised); color: var(--accent); }
.avatar-menu #sign-out { color: #e5484d; }
.avatar-menu #sign-out:hover { color: #e5484d; }
.avatar-menu hr { border: none; border-top: 1px solid var(--border); margin: 0.3rem 0; }

.dash-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin: 1.25rem 0 1.5rem; }
.dash-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.dash-tab:hover { color: var(--text); }
.dash-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.recent-callers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}
.caller-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;
}
.caller-card:hover { border-color: var(--accent); }
.caller-card .cc-name { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.caller-card .cc-sub { color: var(--text-dim); font-size: 0.82rem; }

.crm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; margin-top: 1rem; }
.crm-form label { font-size: 0.85rem; font-weight: 600; }
.crm-form label span { display: block; margin-bottom: 0.3rem; }
.crm-form input, .crm-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.crm-form input:focus, .crm-form textarea:focus { outline: none; border-color: var(--accent); }
.crm-form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .crm-form { grid-template-columns: 1fr; } }

.settings-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}
.settings-block h3 { margin-top: 0; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; }
.toggle-row label { color: var(--text); font-size: 0.95rem; }
.toggle-row input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }

/* ---------- Motion (all gated on prefers-reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: var(--rd, 0ms);
  }
  .reveal.in { opacity: 1; transform: none; }

  .btn, .nav-get-started, .nav-cta, .hero-lead button {
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  }
  .btn:hover, .nav-get-started:hover, .hero-lead button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  }
  .price-card, .caller-card, .stat-card, .settings-block, .detail-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .price-card:hover, .caller-card:hover, .stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  }

  /* Slow drifting glow over the hero so it breathes. */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(38rem 20rem at 18% 25%, rgba(45, 212, 191, 0.16), transparent 70%);
    animation: hero-glow 16s ease-in-out infinite alternate;
  }
  @keyframes hero-glow {
    from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.65; }
    to   { transform: translate3d(22%, 12%, 0) scale(1.15); opacity: 1; }
  }
  .hero .wrap { position: relative; }

  .logo .dot { display: inline-block; animation: dot-pulse 3.2s ease-in-out infinite; }
  @keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
  }

  .hb-bubble { transition: transform 0.18s ease, box-shadow 0.18s ease; }
  .hb-bubble:hover { transform: scale(1.07); }

  .faq details p { animation: faq-open 0.3s ease; }
  @keyframes faq-open {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- Row action menu (⋮) ---------- */
.row-actions { position: relative; width: 2.2rem; text-align: right; }
.row-menu-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  line-height: 1;
}
.row-menu-btn:hover { color: var(--text); background: var(--bg-raised); }
.row-menu {
  position: absolute;
  right: 0.25rem;
  top: 100%;
  z-index: 40;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 0.25rem;
  min-width: 9rem;
}
.row-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #e5484d;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}
.row-menu button:hover { background: var(--bg-raised); }

/* ---------- Company profile: chips + service rows ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.chip {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-input {
  cursor: text;
  width: 9rem;
  background: var(--bg-card);
}
.chip-input:focus { outline: none; border-color: var(--accent); color: var(--text); }
.chip-input::placeholder { color: var(--text-dim); }

.svc-row {
  display: grid;
  grid-template-columns: 1fr 8rem 6rem 6rem 2rem;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.6rem;
}
.svc-row input, .svc-row select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
}
.svc-row input:focus, .svc-row select:focus { outline: none; border-color: var(--accent); }
.svc-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem;
}
.svc-remove:hover { color: #e5484d; }
.svc-head {
  display: grid;
  grid-template-columns: 1fr 8rem 6rem 6rem 2rem;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
@media (max-width: 640px) {
  .svc-row, .svc-head { grid-template-columns: 1fr 6.5rem 4.5rem 4.5rem 1.6rem; }
}
.contact-row, .contact-head { grid-template-columns: 1fr 11rem 2rem !important; }
@media (max-width: 640px) {
  .contact-row, .contact-head { grid-template-columns: 1fr 8.5rem 1.6rem !important; }
}

/* ---------- Admin roadmap ---------- */
.rm-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.rm-item.rm-done { opacity: 0.75; }
.rm-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: none;
  border: none;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.rm-head:hover { background: var(--bg-raised); }
.rm-title { color: var(--text); font-weight: 700; font-size: 0.98rem; flex: 1; }
.rm-count { color: var(--text-dim); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.rm-chev { color: var(--text-dim); font-size: 0.8rem; }
.rm-subs { padding: 0.25rem 1.1rem 0.9rem; border-top: 1px solid var(--border); }
.rm-sub {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  cursor: pointer;
}
.rm-sub input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); margin-top: 0.15rem; flex: none; cursor: pointer; }
.rm-sub:hover span { color: var(--text); }
.rm-sub-done span { text-decoration: line-through; opacity: 0.65; }
