/* ════════════════════════════════════════════════════════════════════
   NexFlow · Section-specific styles
   Nav · Hero · Services · HIW · Pricing · Contact · Chatbot · Footer
   ════════════════════════════════════════════════════════════════════ */

/* ── Nav ──────────────────────────────────────────────────────────── */
.nf-nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(247,248,250,.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background var(--d-base) var(--ease-out),
              backdrop-filter var(--d-base) var(--ease-out),
              border-color var(--d-base);
}
.nf-nav.scrolled {
  background: rgba(247,248,250,.78);
  /* Blur radius scales with scroll velocity — the bar feels more
     "smeared" while the user is flicking the wheel and crisps back
     to 18px at rest. Capped via the calc so a still page is exactly
     the prior value. --sv is written by engine/motion.js. */
  backdrop-filter: saturate(1.6) blur(calc(18px + var(--sv, 0) * 8px));
  -webkit-backdrop-filter: saturate(1.6) blur(calc(18px + var(--sv, 0) * 8px));
  border-bottom-color: var(--rule);
}
.nf-nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -.01em; font-size: 16px;
  color: var(--fg-0);
}
.nf-nav-links { display: flex; align-items: center; gap: 28px; }
.nf-nav-links a {
  font-size: 14px; color: var(--fg-1);
  padding: 6px 0; position: relative;
  transition: color var(--d-fast);
}
.nf-nav-links a:hover { color: var(--fg-0); }
.nf-nav-links a::after {
  content:""; position:absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--fg-0); transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-base) var(--ease-out);
}
.nf-nav-links a:hover::after { transform: scaleX(1); }

/* ── Services dropdown ────────────────────────────────────────────────
   The Services menu is the only nav item that fans out into a panel.
   Trigger acts as both anchor (touch / second-click) and dropdown opener
   (first-click + hover). Panel uses a 12px translate-down enter so the
   hover bridge stays clickable; nf-nav-svc:hover keeps it open via the
   parent's mouseenter handler in Nav.jsx. */
.nf-nav-svc { position: relative; }
.nf-nav-svc-trigger {
  /* inherits .nf-nav-links a styling, just adds the caret */
  display: inline-flex; align-items: center; gap: 5px;
}
.nf-nav-svc-caret {
  font-size: 9px; line-height: 1;
  transform: translateY(1px);
  transition: transform var(--d-fast) var(--ease-out);
}
.nf-nav-svc.open .nf-nav-svc-caret { transform: translateY(1px) rotate(180deg); }
.nf-nav-svc-trigger::after { display: none; }

.nf-nav-svc-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, -8px);
  width: min(560px, 90vw);
  background: rgba(255,255,255,.98);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  /* Solid fallback first (covers browsers without color-mix, and avoids the
     whole declaration being dropped — the previous value referenced an
     undefined --ink token which invalidated the shadow entirely). */
  box-shadow: 0 24px 60px -20px rgba(14,15,20,.22), 0 0 0 1px rgba(14,124,99,.06);
  box-shadow:
    0 24px 60px -20px color-mix(in oklab, var(--fg-0) 22%, transparent),
    0 0 0 1px color-mix(in oklab, var(--brand) 6%, transparent);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--d-fast) var(--ease-out),
    transform var(--d-base) var(--ease-out),
    visibility 0s linear var(--d-base);
  z-index: 100;
}
.nf-nav-svc.open .nf-nav-svc-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition:
    opacity var(--d-fast) var(--ease-out),
    transform var(--d-base) var(--ease-out),
    visibility 0s linear 0s;
}
/* Invisible hover bridge so the cursor can travel from trigger to panel
   without the menu closing. Has to live above the panel's transform-origin. */
.nf-nav-svc-panel::before {
  content: ''; position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
}
.nf-nav-svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.nf-nav-svc-item {
  display: flex !important;
  flex-direction: column;
  padding: 10px 12px !important;
  border-radius: 10px;
  text-decoration: none;
  transition: background var(--d-fast);
}
.nf-nav-svc-item::after { display: none !important; }
.nf-nav-svc-item:hover,
.nf-nav-svc-item:focus-visible {
  background: var(--brand-soft); /* fallback first for no color-mix */
  background: color-mix(in oklab, var(--brand) 8%, transparent);
}
.nf-nav-svc-item:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.nf-nav-svc-item-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-0);
  line-height: 1.2;
  margin-bottom: 3px;
}
.nf-nav-svc-item:hover .nf-nav-svc-item-label { color: var(--brand); }
.nf-nav-svc-item-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: .02em;
  line-height: 1.2;
}
.nf-nav-svc-foot {
  margin-top: 8px;
  padding: 10px 12px 4px;
  border-top: 1px solid var(--rule);
}
.nf-nav-svc-foot a {
  font-size: 13px !important;
  font-weight: 500;
  color: var(--brand) !important;
  padding: 0 !important;
  display: inline-flex; align-items: center; gap: 6px;
}
.nf-nav-svc-foot a::after { display: none !important; }
.nf-nav-svc-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* On mobile (burger menu), the dropdown panel becomes an inline collapsible
   block below its trigger. We force-open it when the burger menu is open
   so users see all six services at a glance without an extra tap. */
@media (max-width: 820px) {
  .nf-nav-svc-trigger { pointer-events: auto; }
  .nf-nav-svc-caret { display: none; }
  .nf-nav-svc-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--rule);
    margin-top: 4px;
    margin-bottom: 6px;
    transition: none;
  }
  .nf-nav-svc-grid { grid-template-columns: 1fr; }
}
/* Motion-sensitive users: open the panel instantly, no translate/caret spin. */
@media (prefers-reduced-motion: reduce) {
  .nf-nav-svc-panel,
  .nf-nav-svc.open .nf-nav-svc-panel { transition: none; }
  .nf-nav-svc-caret { transition: none; }
}
.nf-nav-right { display: flex; align-items: center; gap: 14px; }
.nf-nav-burger {
  display: none; width: 40px; height: 40px;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  position: relative; z-index: 2;
}
.nf-nav-burger span {
  display: block; width: 20px; height: 2px; background: var(--fg-0);
  border-radius: 2px;
  transition: transform var(--d-base) var(--ease-out), opacity var(--d-fast);
}
/* Burger → X when the full-screen menu is open. */
.nf-nav.menu-open .nf-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nf-nav.menu-open .nf-nav-burger span:nth-child(2) { opacity: 0; }
.nf-nav.menu-open .nf-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* The in-menu CTA only shows inside the mobile overlay; the header keeps
   its own compact CTA on desktop. */
.nf-nav-cta-mobile { display: none; }

/* Lock the page behind the full-screen mobile menu. */
body.nf-menu-open { overflow: hidden; }

@media (max-width: 820px) {
  /* Full-screen overlay menu with large, thumb-friendly tap targets. */
  .nf-nav-links {
    position: fixed; inset: 0;
    height: 100dvh; min-height: 100vh;
    background: rgba(247,248,250,.99);
    -webkit-backdrop-filter: saturate(1.6) blur(22px);
    backdrop-filter: saturate(1.6) blur(22px);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px;
    padding: 96px var(--gutter) calc(40px + env(safe-area-inset-bottom));
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--d-base) var(--ease-out), opacity var(--d-fast);
  }
  .nf-nav-links.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
  .nf-nav-links > a {
    font-size: 19px; font-weight: 600; color: var(--fg-0);
    padding: 16px 4px;
    border-bottom: 1px solid var(--rule);
  }
  .nf-nav-links > a::after { display: none; }
  .nf-nav-cta-desktop { display: none; }
  .nf-nav-cta-mobile {
    display: inline-flex; justify-content: center;
    margin-top: 22px;
    border-bottom: none !important;
  }
  .nf-nav-burger { display: flex; }
  /* Services header inside the overlay */
  .nf-nav-svc { padding: 8px 0 4px; }
  .nf-nav-svc-trigger {
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .1em; color: var(--fg-2);
    padding: 8px 4px;
  }
  .nf-nav-svc-item { padding: 13px 14px !important; }
  .nf-nav-svc-item-label { font-size: 16px; }
  .nf-nav-svc-item-hint { font-size: 12px; font-family: var(--font-sans); }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero-right { position: relative; min-height: 320px; }
.hero-metrics {
  display: flex; gap: 28px;
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid var(--rule);
}

/* In the hero only, the eyebrow pulse-dot tracks the active industry
   accent. The accent var is rewritten by HeroUI on industry switch,
   so the chip colour follows the workflow being demonstrated. */
.hero .eyebrow .dot { background: var(--acc, var(--brand)); }
.hero-metric-val {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1; letter-spacing: -.018em;
}

.hero-log {
  padding: 18px 20px;
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
}
/* Glass meniscus · a fine bright line at the top of the log card,
   the same way a real glass surface catches its top edge against
   ambient light. One pixel, very subtle. */
.hero-log::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,.55) 50%,
    transparent);
  pointer-events: none;
}
.hero-log-head {
  display: flex; justify-content: space-between;
  margin-bottom: 12px;
}
.hero-log-body {
  font-family: var(--font-mono);
  font-size: 11.5px; line-height: 1.75;
  min-height: 140px;
  color: var(--fg-1);
}
.hero-log-line { animation: fadeUp .4s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── Hero · "see it for" industry switcher row ───────────────────── */
.hero-switch {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.hero-switch-lbl { color: var(--fg-2); flex-shrink: 0; }

/* ── Hero · animated "watch it work" workflow card (v10) ──────────────
   A clean, legible card on the light surface. The node rail runs the
   selected industry's real build; each node lights up in sequence so a
   non-technical visitor sees the work happen. Accent follows the
   industry via --acc (set by HeroUI). */
.hero-flow {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.hero-flow::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--acc, var(--brand)) 28%, var(--acc, var(--brand)) 72%, transparent);
  opacity: .55;
}
.hero-flow-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; gap: 12px;
}
.hero-flow-file { color: var(--fg-2); display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hero-flow-file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-flow-live {
  width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%;
  background: var(--acc, var(--brand));
  animation: hf-pulse 2.1s var(--ease-out) infinite;
}
@keyframes hf-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--acc, var(--brand)) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero-flow-status { color: var(--acc, var(--brand)); font-weight: 600; flex-shrink: 0; }

.hero-flow-rail { display: flex; flex-direction: column; }
.hero-flow-node {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0;
  transition: opacity var(--d-base) var(--ease-out);
}
/* vertical connector behind the icon column */
.hero-flow-node::before {
  content: ''; position: absolute; left: 16px; top: -50%;
  width: 2px; height: 100%; background: var(--rule);
  z-index: 0;
}
.hero-flow-node:first-child::before { display: none; }
.hero-flow-node.done::before,
.hero-flow-node.active::before { background: color-mix(in oklab, var(--acc, var(--brand)) 42%, var(--rule)); }
.hero-flow-ico {
  position: relative; z-index: 1;
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: var(--bg-2); color: var(--fg-3);
  border: 1px solid var(--rule);
  transition: background var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out),
              transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.hero-flow-node.active .hero-flow-ico {
  background: var(--acc, var(--brand)); color: #fff; border-color: transparent;
  transform: scale(1.07);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--acc, var(--brand)) 16%, transparent);
}
.hero-flow-node.done .hero-flow-ico {
  background: color-mix(in oklab, var(--acc, var(--brand)) 14%, var(--bg-1));
  color: var(--acc, var(--brand)); border-color: transparent;
}
.hero-flow-meta { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.hero-flow-name {
  font-size: 14px; font-weight: 600; color: var(--fg-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--d-base);
}
.hero-flow-node.active .hero-flow-name { color: var(--fg-0); }
.hero-flow-node.pending .hero-flow-name { color: var(--fg-3); }
.hero-flow-type { color: var(--fg-3); font-size: 10.5px; }
.hero-flow-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--rule-strong); }
.hero-flow-node.active .hero-flow-dot { background: var(--acc, var(--brand)); }
.hero-flow-node.done .hero-flow-dot { background: var(--emerald); }

.hero-flow-log {
  margin-top: 14px; padding: 11px 13px;
  border-radius: var(--r-s);
  background: var(--bg-2); border: 1px solid var(--rule);
  min-height: 42px; display: flex; align-items: center;
}
.hero-flow-log .t-mono { color: var(--fg-1); font-size: 11.5px; line-height: 1.5; }
.hero-flow-metrics {
  display: flex; gap: 20px; margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--rule);
}
.hero-flow-metrics > div { display: flex; flex-direction: column; }
.hero-flow-metrics b { font-family: var(--font-serif); font-size: 19px; line-height: 1; color: var(--fg-0); }
.hero-flow-metrics span { font-family: var(--font-mono); font-size: 10px; color: var(--fg-2); margin-top: 5px; letter-spacing: .03em; }

@media (prefers-reduced-motion: reduce) {
  .hero-flow-live { animation: none; }
  .hero-flow-node.active .hero-flow-ico { transform: none; }
}

/* ── What we actually do · plain-language band (v10) ──────────────── */
.what-we-do-grid { gap: 18px; }
.what-do-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px 24px 22px;
  text-decoration: none;
}
.what-do-num {
  color: var(--clay); font-weight: 600;
  font-size: 12px; letter-spacing: .08em;
  margin-bottom: 14px;
}
.what-do-k { margin-bottom: 10px; color: var(--fg-0); }
.what-do-card .t-body { color: var(--fg-1); margin-bottom: 18px; }
.what-do-go {
  margin-top: auto;
  font-weight: 600; font-size: 14px; color: var(--brand);
  display: inline-flex; align-items: center; gap: 7px;
}
.what-do-card:hover .what-do-go .arr { transform: translateX(4px); }
.what-do-go .arr { transition: transform var(--d-base) var(--ease-out); }
.what-do-foot {
  margin-top: 28px; max-width: 720px;
  color: var(--fg-2);
  padding-left: 18px; border-left: 2px solid var(--clay-line);
}

/* ── Services tab panel ───────────────────────────────────────────── */
.svc {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-1);
}
.svc-list {
  background: var(--bg-2);
  border-right: 1px solid var(--rule);
  padding: 16px;
}
.svc-list button {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left;
  padding: 14px;
  border-radius: var(--r-s);
  font-size: 14px; font-weight: 500;
  color: var(--fg-1);
  transition: all var(--d-fast) var(--ease-out);
  margin-bottom: 4px;
}
.svc-list button[aria-pressed="true"],
.svc-list button[aria-selected="true"] {
  background: var(--fg-0); color: var(--fg-inv);
  /* Left bleed-stroke in brand · reinforces directionality from
     the list (left rail) into the detail panel on the right. */
  box-shadow: inset 3px 0 0 var(--brand);
}
.svc-list button:hover:not([aria-pressed="true"]):not([aria-selected="true"]) { background: var(--bg-3); color: var(--fg-0); }
.svc-num { font-family: var(--font-mono); font-size: 10px; opacity: .55; }
.svc-detail { padding: 36px; }

@media (max-width: 780px) {
  .svc { grid-template-columns: 1fr; }
  .svc-list { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* ── HIW · sticky scroll story ────────────────────────────────────── */
.hiw {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
.hiw .pin {
  position: sticky;
  top: 96px;
  align-self: start;
}
.hiw-progress { margin-top: 32px; display: flex; gap: 6px; }
.hiw-progress > div {
  flex: 1; height: 3px;
  background: var(--bg-3);
  transition: background var(--d-base);
}
.hiw-progress > div.on { background: var(--fg-0); }
.hiw-step {
  padding: 48px 0;
  border-bottom: 1px dashed var(--rule);
}
.hiw-step:last-child { border-bottom: 0; }
@media (max-width: 960px) {
  .hiw { grid-template-columns: 1fr; }
  .hiw .pin { position: relative; top: 0; }
}

/* ── Pricing ──────────────────────────────────────────────────────── */
.price-card {
  padding: 32px;
  border-radius: var(--r);
  border: 1px solid var(--rule);
  background: var(--bg-1);
  display: flex; flex-direction: column;
}
.price-card.feat {
  background: var(--bg-ink);
  color: var(--fg-inv);
  border-color: transparent;
  /* Premium-feeling glow + a hairline gradient stroke across the
     top of the dark card. Lifts the featured plan out of the row
     without ratcheting up size or weight. */
  box-shadow: var(--shadow-brand);
  position: relative;
}
.price-card.feat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--brand) 30%,
    var(--cyan) 70%,
    transparent);
  opacity: .7;
  border-top-left-radius: var(--r);
  border-top-right-radius: var(--r);
}
.price-card .amt {
  font-family: var(--font-serif);
  font-size: clamp(42px, 4.2vw, 60px);
  line-height: 1; letter-spacing: -.02em;
  margin: 14px 0 6px;
}
.price-card .amt .cur {
  font-size: .42em; vertical-align: .6em;
  font-family: var(--font-sans); font-weight: 500;
  color: var(--fg-2); margin-right: 2px;
}
.price-card.feat .amt .cur { color: var(--fg-inv-2); }
.price-card .amt .suf {
  font-size: .42em; vertical-align: middle;
  font-family: var(--font-sans); font-weight: 500;
  color: var(--fg-2);
}
.price-card.feat .amt .suf { color: var(--fg-inv-2); }
.price-card p { color: var(--fg-1); font-size: 14px; line-height: 1.55; }
.price-card.feat p { color: var(--fg-inv-1); }
.price-card ul {
  list-style: none; padding: 0;
  margin: 18px 0 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.price-card li {
  font-size: 14px; color: var(--fg-1);
  display: flex; gap: 8px; align-items: flex-start;
}
.price-card.feat li { color: var(--fg-inv-1); }
.price-card li::before {
  content: "+"; color: var(--brand);
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
  flex-shrink: 0; margin-top: 1px;
}
.price-card.feat li::before { color: #9EBBFF; }
.price-card .btn { align-self: flex-start; margin-top: auto; }

/* ── ROI calculator ───────────────────────────────────────────────── */
.roi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.roi-in { padding: 28px; }
.roi-out {
  padding: 28px;
  border-radius: var(--r);
  background: var(--bg-ink);
  color: var(--fg-inv);
}
.roi-row label {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-2); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 10px;
}
.roi-row label .val {
  font-family: var(--font-serif); font-style: italic;
  font-size: 18px; color: var(--fg-0);
  text-transform: none; letter-spacing: 0;
}
.roi-amount {
  font-family: var(--font-serif);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1; letter-spacing: -.02em;
  margin: 12px 0 4px;
}
.roi-breakdown {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 780px) { .roi { grid-template-columns: 1fr; } }

/* ── Calendar / Contact ───────────────────────────────────────────── */
/* Contact path chooser is the shared .swap segmented pill (see
   components.css) — three options: Request a call · Contact us · Chat. */
.chat-choice-panel{padding:26px 28px; border:1px solid var(--rule); border-radius:var(--r); background:var(--bg-1); max-width:760px}

.cal {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-1);
}
.cal-left { padding: 28px; border-right: 1px solid var(--rule); }
.cal-right { padding: 28px; background: var(--bg-2); }
.cal-month {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.cal-month h4 { font-family: var(--font-sans); font-weight: 600; font-size: 15px; margin: 0; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; text-align: center;
}
.cal-grid .dow {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-2); padding: 6px 0;
}
.cal-grid button {
  padding: 10px 0;
  border-radius: var(--r-s);
  font-size: 13px; font-weight: 500;
  color: var(--fg-0);
  transition: all var(--d-fast) var(--ease-out);
}
.cal-grid button:hover:not(:disabled) { background: var(--bg-2); }
.cal-grid button:disabled { color: var(--fg-3); cursor: not-allowed; }
.cal-grid button[aria-pressed="true"] { background: var(--fg-0); color: var(--fg-inv); }
.cal-grid button.has-slots { font-weight: 600; }
.cal-grid button.has-slots::after {
  content: ""; display: block; width: 4px; height: 4px;
  border-radius: 50%; background: var(--brand);
  margin: 3px auto 0;
}
.cal-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.cal-slots button {
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-s);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-0);
  transition: all var(--d-fast) var(--ease-out);
}
.cal-slots button:hover { border-color: var(--fg-0); }
.cal-slots button[aria-pressed="true"] { background: var(--fg-0); color: var(--fg-inv); border-color: var(--fg-0); }
.cal-slot-local { display: block; margin-top: 3px; font-size: 10.5px; color: var(--fg-2); font-weight: 400; }
.cal-slots button[aria-pressed="true"] .cal-slot-local { color: var(--fg-inv); opacity: .85; }

/* Clickable month-grid calendar (restores the "pick a day" widget) */
.cal-cal { border: 1px solid var(--rule); border-radius: var(--r-s); padding: 14px 16px; background: var(--bg-1); }
.cal-az { float: right; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--fg-3); }
.cal-nav {
  width: 30px; height: 30px; border-radius: var(--r-s);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; color: var(--fg-0); border: 1px solid var(--rule);
  transition: background var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}
.cal-nav:hover:not(:disabled) { background: var(--bg-2); border-color: var(--fg-2); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 880px) { .cal { grid-template-columns: 1fr; } .cal-left { border-right: 0; border-bottom: 1px solid var(--rule); } }

/* Booking-type chooser ($50 · 15-min / $130 · 1-hour) */
.book-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.book-type {
  display: flex; flex-direction: column; gap: 6px; cursor: pointer;
  padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r-s);
  background: var(--bg-1); transition: border-color var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out);
}
.book-type:hover { border-color: var(--fg-2); }
.book-type.on { border-color: var(--brand); background: var(--brand-soft); }
.book-type input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.book-type .bt-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.book-type .bt-name { font-weight: 600; font-size: 14.5px; color: var(--fg-0); }
.book-type .bt-price { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--brand-ink); }
.book-type .bt-blurb { font-size: 12.5px; color: var(--fg-2); line-height: 1.4; }
@media (max-width: 560px) { .book-types { grid-template-columns: 1fr; } }

.contact-receipt {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--r);
}
.contact-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 14px;
}
@media (max-width: 880px) { .contact-steps { grid-template-columns: 1fr 1fr; } }

/* ── Chatbot ──────────────────────────────────────────────────────── */
.cb-bubble {
  position: fixed; bottom: 22px; right: 22px;
  z-index: var(--z-chat);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--fg-0); color: var(--fg-inv);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-3);
  transition: transform var(--d-base) var(--ease-out);
}
.cb-bubble:hover { transform: scale(1.06); }
.cb-bubble .dot-on {
  position: absolute; top: 6px; right: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--emerald-bright);
  border: 2px solid var(--fg-0);
}

.cb-panel {
  position: fixed; bottom: 90px; right: 22px;
  z-index: var(--z-chat);
  width: min(600px, calc(100vw - 44px));
  background: var(--bg-1);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--shadow-3);
  display: flex; flex-direction: column;
  overflow: hidden;
  max-height: min(713px, calc(100vh - 130px));
  animation: cb-pop .25s var(--ease-out);
}
@keyframes cb-pop { from { opacity:0; transform: translateY(8px) scale(.98); } to { opacity:1; transform: none; } }

.cb-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 10px;
}
.cb-head .av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--fg-0); color: var(--fg-inv);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-style: italic;
  font-size: 17px;
}
.cb-head-meta { flex: 1; }
.cb-head h5 { margin: 0; font-size: 14px; font-weight: 600; }
.cb-head .t-mono { margin: 0; font-size: 11px; color: var(--fg-2); }
.cb-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  color: var(--fg-2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--d-fast);
}
.cb-icon:hover { background: var(--bg-2); color: var(--fg-0); }
.cb-close {
  width: 30px; height: 30px;
  border-radius: 8px;
  color: var(--fg-2); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--d-fast);
}
.cb-close:hover { background: var(--bg-2); color: var(--fg-0); }

.cb-msgs {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}
.cb-msg { display: flex; gap: 8px; max-width: 88%; }
.cb-msg.bot { align-self: flex-start; align-items: flex-end; }
.cb-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.cb-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--fg-0); color: var(--fg-inv);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-style: italic;
  font-size: 13px;
  flex-shrink: 0;
}
.cb-msg .bub {
  padding: 10px 14px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.5;
}
.cb-msg.bot .bub { background: var(--bg-2); color: var(--fg-0); border-bottom-left-radius: 4px; }
.cb-msg.user .bub { background: var(--fg-0); color: var(--fg-inv); border-bottom-right-radius: 4px; }

.cb-typing-indicator { display: flex; gap: 4px; padding: 14px; }
.cb-typing-indicator span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-3);
  animation: cb-bounce 1.2s infinite;
}
.cb-typing-indicator span:nth-child(2) { animation-delay: .15s; }
.cb-typing-indicator span:nth-child(3) { animation-delay: .3s; }
@keyframes cb-bounce { 0%, 60%, 100% { opacity: .4; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.cb-quick {
  padding: 0 16px 12px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cb-quick button {
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  font-size: 12px;
  color: var(--fg-1);
  transition: all var(--d-fast);
}
.cb-quick button:hover { border-color: var(--fg-0); color: var(--fg-0); }

.cb-input {
  display: flex; gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
  background: var(--bg-0);
}
.cb-input input {
  flex: 1; border: 1px solid var(--rule);
  border-radius: 18px; padding: 9px 14px;
  font-size: 13.5px; background: var(--bg-1); color: var(--fg-0);
}
.cb-input input:focus { outline: 0; border-color: var(--fg-0); }
.cb-input button {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--fg-0); color: var(--fg-inv);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--d-fast);
}
.cb-input button:hover:not(:disabled) { transform: translateY(-1px); }
.cb-input button:disabled { opacity: .5; cursor: not-allowed; }

.cb-foot {
  padding: 8px 16px 10px;
  font-size: 10.5px; color: var(--fg-3);
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  letter-spacing: .04em;
}
.cb-foot code { color: var(--fg-2); }

/* ── Chat contact form ─────────────────────────────────────────── */
.cb-contact-form {
  margin: 10px 12px;
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-s);
}
.cb-contact-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--fg-0);
}
.cb-contact-form input,
.cb-contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-s);
  background: var(--bg-1);
  color: var(--fg-0);
  font-size: 13px;
  font-family: var(--font-sans);
  resize: vertical;
}
.cb-contact-form input:focus,
.cb-contact-form textarea:focus {
  outline: 0;
  border-color: var(--brand);
}
.cb-contact-form input::placeholder,
.cb-contact-form textarea::placeholder {
  color: var(--fg-3);
}
.cb-contact-form .btn.lg {
  font-size: 12px;
  padding: 8px 14px;
}

/* ── Chat contact envelope button ───────────────────────────────── */
.cb-contact-btn {
  background: none !important;
  border: none !important;
  padding: 6px !important;
  color: var(--fg-2) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--d-fast) var(--ease-out);
}
.cb-contact-btn:hover { color: var(--brand) !important; }

/* ── Footer ───────────────────────────────────────────────────────── */
.nf-foot {
  padding: 64px 0 36px;
  border-top: 1px solid var(--rule);
  background: var(--bg-0);
  position: relative; z-index: var(--z-content);
}
/* Indigo dot ornaments on the footer's top edge · mirrors the
   .divider geometry token used elsewhere on the page, gives the
   transition from content to footer a quiet editorial seam. */
.nf-foot::before,
.nf-foot::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.nf-foot::before { left:  var(--gutter); }
.nf-foot::after  { right: var(--gutter); }
/* Footer column grid · brand blurb gets the wide first column, then four
   equal link columns. Collapses to two columns on tablet, one on phone. */
.nf-foot-grid { grid-template-columns: 1.5fr repeat(4, 1fr); }
@media (max-width: 980px) { .nf-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .nf-foot-grid { grid-template-columns: 1fr; } }
.nf-foot-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px;
  margin-bottom: 14px;
}
.nf-foot h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fg-2);
  margin: 0 0 14px;
  font-weight: 500;
}
.nf-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.nf-foot a { font-size: 14px; color: var(--fg-1); }
.nf-foot a:hover { color: var(--fg-0); }
.nf-foot-bottom {
  margin-top: 36px; padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--fg-2);
}

/* ── Lead magnet capture ───────────────────────────────────────── */
.lead-magnet-mini {
  margin-top: 18px;
  max-width: 560px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-m);
  background: color-mix(in oklab, var(--bg-1), transparent 8%);
  box-shadow: var(--shadow-soft);
}
.lead-magnet-mini strong { color: var(--fg-0); }
.lead-magnet-mini span,
.lead-magnet-mini p { color: var(--fg-2); font-size: 13px; margin: 6px 0 0; }
.lead-magnet-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.lead-magnet-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-s);
  background: var(--bg-0);
  color: var(--fg-0);
}
.lead-magnet-row button {
  padding: 10px 14px;
  border: 1px solid var(--fg-0);
  border-radius: var(--r-s);
  background: var(--fg-0);
  color: var(--bg-0);
  font-weight: 700;
  cursor: pointer;
}
.lead-magnet-row button:disabled { opacity: .65; cursor: wait; }
.lead-magnet-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px dashed var(--rule);
  border-radius: var(--r-s);
  color: var(--fg-2);
  font-size: 13px;
}
.lead-magnet-contact a { color: var(--fg-0); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .lead-magnet-row { flex-direction: column; }
  .lead-magnet-row button { width: 100%; }
}

/* ── Problems we solve + "what we do" grid (v9) ─────────────────────── */
.prob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.prob-card {
  background: var(--bg-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
  padding: 24px 22px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: border-color var(--d-base), box-shadow var(--d-base), transform var(--d-base);
}
.prob-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.prob-pain {
  font-family: var(--font-serif);
  font-size: 21px; line-height: 1.3; letter-spacing: -.01em;
  color: var(--fg-0);
  margin: 0 0 14px;
}
.prob-fix {
  font-size: 15px; line-height: 1.5; color: var(--fg-1);
  margin: 0 0 16px;
}
.prob-link {
  margin-top: auto;
  font-size: 14px; font-weight: 600; color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
}
.prob-link:hover { gap: 9px; }

.svc-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.svc-page-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
  padding: 26px 24px 24px;
  display: flex; flex-direction: column;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: border-color var(--d-base), box-shadow var(--d-base), transform var(--d-base);
}
.svc-page-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-brand); transform: translateY(-3px); }
.svc-page-ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  margin-bottom: 16px;
}
.svc-page-tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.svc-page-title {
  font-size: 22px; font-weight: 600; letter-spacing: -.01em;
  color: var(--fg-0);
  margin: 0 0 10px;
}
.svc-page-desc {
  font-size: 15px; line-height: 1.55; color: var(--fg-1);
  margin: 0 0 18px;
}
.svc-page-more {
  margin-top: auto;
  font-size: 14px; font-weight: 600; color: var(--fg-0);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--d-fast), gap var(--d-fast);
}
.svc-page-card:hover .svc-page-more { color: var(--brand); gap: 9px; }

@media (max-width: 900px) {
  .prob-grid, .svc-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .prob-grid, .svc-page-grid { grid-template-columns: 1fr; }
  .prob-pain { font-size: 19px; }
}
