/* ═══════════════════════════════════════════════════════════
   هوشِ حضور — Custom Design System
   Tailwind utilities via CDN, custom components here
   ═══════════════════════════════════════════════════════════ */

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  margin: 0;
}
::selection { background: color-mix(in oklab, var(--brand) 22%, transparent); color: var(--ink); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
.dark ::-webkit-scrollbar-thumb { border-color: var(--paper-2); }

/* Focus visible */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* Input focus */
input:focus, textarea:focus, select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 14%, transparent);
}

/* Table hover */
table tbody tr { transition: background 0.15s; }
table tbody tr:hover { background: color-mix(in oklab, var(--brand) 4%, transparent); }

/* Print */
@media print {
  .to-top, .section-dots, .chat-launch, .scroll-prog, .social-proof, .mobile-cta-bar { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   هوشِ حضور — Hand-crafted design system
   Warm paper · deep emerald · gold · editorial
   ═══════════════════════════════════════════════════════════ */
:root {
  --radius: 0.75rem;

  /* Floating UI offset — when cookie consent is visible, this pushes all floating buttons up */
  --cookie-offset: 0px;

  /* Warm paper base */
  --paper: #f4efe4;
  --paper-2: #ece5d6;
  --paper-3: #e4dcca;
  --surface: #fbf8f1;
  --surface-2: #ffffff;

  /* Ink */
  --ink: #1a1c17;
  --ink-2: #3a3c34;
  --ink-3: #5c5e52;

  /* Lines */
  --line: #d9d1bd;
  --line-2: #e7e0cd;

  /* Brand — deep emerald (trust / education) */
  --brand: #0d4a37;
  --brand-2: #14593f;
  --brand-3: #1c7252;
  --brand-soft: #e2ece6;
  --brand-ink: #07281d;

  /* Gold — warm premium accent */
  --gold: #b07d24;
  --gold-2: #c8902e;
  --gold-soft: #f1e6c9;

  /* Status */
  --present: #2e7d5b;
  --absent: #b14a32;
  --late: #c08a1e;
  --info: #2f6f8f;

  /* shadcn token mapping */
  --background: var(--paper);
  --foreground: var(--ink);
  --card: var(--surface);
  --card-foreground: var(--ink);
  --popover: var(--surface-2);
  --popover-foreground: var(--ink);
  --primary: var(--brand);
  --primary-foreground: #f7f3ea;
  --secondary: var(--paper-2);
  --secondary-foreground: var(--ink);
  --muted: var(--paper-2);
  --muted-foreground: var(--ink-3);
  --accent: var(--brand-soft);
  --accent-foreground: var(--brand-ink);
  --destructive: #b14a32;
  --border: var(--line);
  --input: var(--paper-2);
  --ring: var(--brand-2);
  --chart-1: var(--brand);
  --chart-2: var(--gold-2);
  --chart-3: #2f6f8f;
  --chart-4: #7a5a8c;
  --chart-5: #b14a32;
  --sidebar: var(--surface);
  --sidebar-foreground: var(--ink);
  --sidebar-primary: var(--brand);
  --sidebar-primary-foreground: #f7f3ea;
  --sidebar-accent: var(--brand-soft);
  --sidebar-accent-foreground: var(--brand-ink);
  --sidebar-border: var(--line);
  --sidebar-ring: var(--brand-2);
}

.dark {
  --paper: #14130f;
  --paper-2: #1c1b16;
  --paper-3: #24221c;
  --surface: #18170f;
  --surface-2: #1f1d15;
  --ink: #f2ecdc;
  --ink-2: #d6cdb4;
  --ink-3: #9b9580;
  --line: #322f25;
  --line-2: #2a281f;
  --brand: #4ea787;
  --brand-2: #5fbd9a;
  --brand-3: #76cfac;
  --brand-soft: #1c2a24;
  --brand-ink: #eaf3ee;
  --gold: #d6a44b;
  --gold-2: #e3b65c;
  --gold-soft: #2a2415;
  --background: var(--paper);
  --foreground: var(--ink);
  --card: var(--surface);
  --card-foreground: var(--ink);
  --popover: var(--surface-2);
  --popover-foreground: var(--ink);
  --primary: var(--brand);
  --primary-foreground: #0c1109;
  --secondary: var(--paper-2);
  --secondary-foreground: var(--ink);
  --muted: var(--paper-2);
  --muted-foreground: var(--ink-3);
  --accent: var(--brand-soft);
  --accent-foreground: var(--brand-ink);
  --destructive: #c85f44;
  --border: var(--line);
  --input: var(--paper-2);
  --ring: var(--brand-2);
}

  html {
    scroll-behavior: smooth;
  }
  body {
    
    font-family: var(--font-vazirmatn), system-ui, sans-serif;
    font-feature-settings: "ss01", "ss02";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  ::selection {
    background: var(--brand);
    color: var(--surface);
  }
}

/* ═══════════════════════════════════════════════════════════
   Custom utility & component classes
   ═══════════════════════════════════════════════════════════ */

/* Persian numerals helper */
.fa-num {
  font-feature-settings: "ss01";
  font-variant-numeric: lining-nums;
}

/* Editorial container */
.shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .shell { padding-inline: 2rem; }
}
@media (min-width: 1280px) {
  .shell { padding-inline: 2.5rem; }
}

/* Section mark — numbered editorial label */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.mark::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--brand);
  opacity: 0.6;
}

/* Hairline */
.hairline { height: 1px; background: var(--line); }

/* Section heading */
.h-sec {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.h-sec .accent { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0.7rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: var(--surface);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 6px 18px -8px rgba(13,74,55,0.6);
}
.btn-primary:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 12px 26px -10px rgba(13,74,55,0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.btn-gold {
  background: var(--gold);
  color: #1a1306;
}
.btn-gold:hover { background: var(--gold-2); transform: translateY(-1px); }

/* Cards */
.card-ink {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card-ink:hover {
  border-color: var(--brand);
}

/* Tag / chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: var(--surface);
}

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 3rem;
  flex-shrink: 0;
  padding-inline: 1.5rem;
  animation: marquee 38s linear infinite;
  min-width: 100%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
[dir="rtl"] .marquee__track { animation-direction: reverse; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Code window */
.code-win {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  background: #15140f;
  box-shadow: 0 30px 60px -30px rgba(13,74,55,0.35);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  background: #1d1b14;
  border-bottom: 1px solid #2c2a20;
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-body { padding: 1.3rem 1.4rem; overflow-x: auto; }
.code-body pre {
  font-family: var(--font-mono), monospace;
  font-size: 0.82rem;
  line-height: 1.85;
  color: #d8d2bd;
  margin: 0;
  white-space: pre;
}
.tok-kw { color: #d6a44b; }
.tok-str { color: #8fbf9c; }
.tok-com { color: #6f6a55; font-style: italic; }
.tok-fn { color: #88b5c9; }
.tok-cls { color: #e0b65c; }
.tok-num { color: #c89a6a; }
.tok-dec { color: #b6a07a; }

/* Face scan frame */
.scan-frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  background: radial-gradient(120% 120% at 30% 20%, #16382b 0%, #0c2419 60%, #071710 100%);
}
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4ea787, transparent);
  box-shadow: 0 0 16px #4ea787;
  animation: scan 3.2s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 12%; opacity: 0.9; }
  50% { top: 88%; opacity: 0.9; }
}
.corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid #5fbd9a;
}
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* Subtle grid texture */
.tex-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
}

/* Status dot pulse */
.dot-pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--present);
}
.dot-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--present);
  animation: pulse 2s ease-out infinite;
  opacity: 0;
}
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Range slider — calc */
input[type="range"].rng {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
}
input[type="range"].rng::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13,74,55,0.3);
  transition: transform 0.15s;
}
input[type="range"].rng::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"].rng::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  cursor: pointer;
}

/* FAQ */
.faq-row {
  border-bottom: 1px solid var(--line);
}
.faq-row:first-child { border-top: 1px solid var(--line); }
.faq-q {
  cursor: pointer;
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--brand); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1);
  color: var(--ink-3);
  line-height: 1.85;
}
.faq-row.open .faq-a { max-height: 360px; padding-bottom: 1.4rem; }
.faq-row.open .faq-icon { transform: rotate(45deg); color: var(--brand); }
.faq-icon { transition: transform 0.3s; flex-shrink: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
  border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* Sticky footer layout helper */
.page-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-main { flex: 1 0 auto; }

/* Toast badge gradient removal etc. handled by shadcn */

/* Chat launcher */
.chat-launch {
  position: fixed;
  inset-block-end: calc(1.5rem + var(--cookie-offset, 0px));
  inset-inline-end: 1.5rem;
  z-index: 90;
}

/* ─────────────────────────────────────────────────────────────
   Phase-2 polish: micro-interactions & refined details
   ───────────────────────────────────────────────────────────── */

/* Buttons: nudge the trailing arrow on hover */
.btn svg {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
/* RTL: arrow points left, so push it further left on hover */
.btn:hover svg { transform: translateX(-3px); }
.btn-primary:active { transform: translateY(0); }

/* Card hover lift (for .card-ink used in features/roadmap/etc.) */
.card-ink { will-change: transform; }
.card-ink:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px -28px rgba(13, 74, 55, 0.4);
}

/* Feature icon: subtle rotate on card hover */
.tilt-icon { transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1); }
.card-ink:hover .tilt-icon { transform: rotate(-6deg) scale(1.06); }

/* Nav link active underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0.75rem;
  bottom: 0.35rem;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

/* Reveal stagger helper — set --d via inline style */
.reveal { transition-delay: var(--d, 0ms); }

/* Marquee item shimmer divider */
.marquee__track span:nth-child(even) { opacity: 0.55; }

/* Pricing recommended card: soft pulse on the badge */
.pulse-badge {
  animation: badgePulse 2.6s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 35%, transparent); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* Comparison table row hover */
.cmp-row { transition: background 0.2s; }
.cmp-row:hover { background: color-mix(in oklab, var(--brand) 4%, var(--surface)); }

/* Testimonial card quote mark */
.quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.4rem;
  line-height: 0.6;
  color: color-mix(in oklab, var(--brand) 28%, transparent);
}

/* Focus-visible ring for accessibility */
:where(button, a, input, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Smooth color transition when toggling theme */
html.theme-toggling *, html.theme-toggling *::before, html.theme-toggling *::after {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease !important;
}

/* Scroll progress indicator */
.scroll-prog {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 2.5px;
  z-index: 60;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform-origin: right;
  transform: scaleX(var(--p, 0));
  transition: transform .1s linear;
  pointer-events: none;
}

/* Section scrollspy dots (left edge in RTL, desktop only) */
.section-dots {
  position: fixed;
  inset-inline-end: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.6rem 0.4rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px -10px rgba(13, 74, 55, 0.25);
}
@media (min-width: 1024px) {
  .section-dots { display: flex; }
}
.section-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s;
}
.section-dot:hover { transform: scale(1.15); }
.section-dot-inner {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  opacity: 0.4;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-dot.active .section-dot-inner {
  width: 11px;
  height: 11px;
  background: var(--brand);
  opacity: 1;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 20%, transparent);
}
.section-dot:hover .section-dot-inner {
  background: var(--brand);
  opacity: 0.8;
}

/* Scrollspy tooltip — visible on hover */
.section-dot-tooltip {
  position: absolute;
  inset-inline-end: 100%;
  inset-inline-start: auto;
  margin-inline-end: 0.6rem;
  white-space: nowrap;
  padding: 0.3rem 0.65rem;
  border-radius: 0.4rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.3);
}
/* Arrow on the tooltip (pointing toward the dot) */
.section-dot-tooltip::after {
  content: "";
  position: absolute;
  inset-inline-start: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-inline-start-color: var(--ink);
}
.section-dot:hover .section-dot-tooltip,
.section-dot:focus-visible .section-dot-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .section-dot, .section-dot-inner, .section-dot-tooltip { transition: none; }
}

/* Back-to-top floating button — stacks above chatbot on the left (RTL: inset-inline-end = left) */
.to-top {
  position: fixed;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -16px rgba(13,74,55,0.4);
  cursor: pointer;
  /* Stack above chatbot: chatbot is at 1.5rem + 56px height + 0.5rem gap = ~5.75rem */
  inset-block-end: calc(5.75rem + var(--cookie-offset, 0px));
  inset-inline-end: 1.5rem; /* same side as chatbot (left in RTL) */
  z-index: 80;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s;
}
.to-top:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
/* On mobile, stack above chatbot + mobile CTA bar */
@media (max-width: 640px) {
  .to-top { inset-block-end: calc(5.75rem + var(--mobile-cta-offset, 0px)); }
}

/* Dark mode: refine surfaces & code window for readability */
.dark .code-win { box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.dark .code-bar { background: #100f0a; border-bottom-color: #2a281f; }
.dark .code-body { background: #0a0907; }

/* Subtle dotted texture for dark hero background */
.dark .tex-grid {
  background-image:
    radial-gradient(circle, var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.4;
}

/* ── Phase-3: live demo + chart + trust strip + mobile CTA ── */

/* Hero live-demo row entrance (RTL — slide from right + fade) */
@keyframes demoSlideIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* School-logo trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 2.5rem;
}
.trust-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-3);
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.35s, opacity 0.35s, transform 0.35s;
}
.trust-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}
.trust-logo svg { flex-shrink: 0; }
.trust-logo span { font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em; }

/* ROI chart bars */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 140px;
  padding-top: 0.5rem;
}
.chart-bar {
  flex: 1;
  position: relative;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--brand-3), var(--brand));
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s;
  min-height: 6px;
}
.chart-bar:hover { filter: brightness(1.15); }
.chart-bar.peak { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.chart-bar .bar-val {
  position: absolute;
  top: -1.4rem;
  inset-inline: 0;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--ink-2);
  white-space: nowrap;
}
.chart-bar .bar-lbl {
  position: absolute;
  bottom: -1.3rem;
  inset-inline: 0;
  text-align: center;
  font-size: 0.62rem;
  color: var(--ink-3);
}

/* Sticky mobile mini-CTA bar */
.mobile-cta {
  position: fixed;
  inset-block-end: var(--cookie-offset, 0px);
  inset-inline: 0;
  z-index: 70;
  display: none;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-cta.show { transform: translateY(0); }
@media (max-width: 640px) {
  .mobile-cta { display: flex; }
  /* On mobile, chat launcher sits above the mobile CTA bar */
  .chat-launch { inset-block-end: calc(5rem + var(--cookie-offset, 0px)); }
}

/* Reduced motion — disable all animations/transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .scan-line, .dot-pulse::after { animation: none !important; }
}

/* ── Phase-5: cookie banner + FAQ search + polish ── */

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* FAQ search input focus glow */
.faq-search:focus-within {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 12%, transparent);
}

/* Section divider — editorial mark between sections */
.sec-div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}
.sec-div::before, .sec-div::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.sec-div::after { background: linear-gradient(90deg, var(--line), transparent); }
.sec-div .sec-div-mark {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* Hover lift for pricing cards */
.price-card { transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s; }
.price-card:hover { transform: translateY(-4px); }

/* Plan comparison highlight pulse */
@keyframes planGlow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 0%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--brand) 10%, transparent); }
}

/* Feedback button micro-interaction */
.faq-fb-btn:active { transform: scale(0.94); }

/* Cookie banner respects reduced motion */
@media (prefers-reduced-motion: reduce) {
  @keyframes cookieIn { from { opacity: 0; } to { opacity: 1; } }
}

/* ── Phase-6: hero parallax, modal scroll, admin polish ── */

/* Hero subtle parallax on the background blobs (respecting reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero-blob {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }
}

/* Admin table sticky header */
.admin-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

/* Compare-plans modal table zebra + sticky header */
.cmp-table { border-collapse: collapse; width: 100%; }
.cmp-table th {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 1;
}

/* Pricing card refined entrance */
.price-card-enter {
  animation: priceIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes priceIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smooth modal scrollbar */
.modal-scroll::-webkit-scrollbar { width: 8px; }
.modal-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

/* ── Phase-9: richer micro-interactions, focus, polish ── */

/* Visible focus ring for keyboard navigation (accessibility) */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Text selection brand color */
::selection {
  background: color-mix(in oklab, var(--brand) 22%, transparent);
  color: var(--ink);
}

/* Animated underline for inline links */
a.link-anim {
  position: relative;
  text-decoration: none;
  color: var(--brand);
}
a.link-anim::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
a.link-anim:hover::after { transform: scaleX(1); }

/* Button shimmer on hover (subtle light sweep) */
.btn-primary, .btn-gold {
  position: relative;
  overflow: hidden;
}
.btn-primary::before, .btn-gold::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: skewX(-18deg);
  transition: inset-inline-start 0.7s ease;
  pointer-events: none;
}
.btn-primary:hover::before, .btn-gold:hover::before {
  inset-inline-start: 140%;
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary::before, .btn-gold::before { display: none; }
}

/* Card top-edge accent line on hover */
.card-ink {
  position: relative;
}
.card-ink::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 1rem;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand),
    transparent
  );
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.3s, transform 0.4s;
  border-radius: 999px;
  pointer-events: none;
}
.card-ink:hover::after {
  opacity: 0.6;
  transform: scaleX(1);
}

/* Mark label decorative dot pulse */
.mark {
  position: relative;
}
.mark::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-inline-start: 0.15rem;
  opacity: 0.7;
}
@media (prefers-reduced-motion: no-preference) {
  .mark::after {
    animation: markPulse 2.4s ease-in-out infinite;
  }
  @keyframes markPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.85); }
    50% { opacity: 0.9; transform: scale(1.1); }
  }
}

/* Section heading decorative flourish on reveal */
.h-sec .accent {
  position: relative;
  display: inline-block;
}
.h-sec .accent::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 3px;
  background: var(--gold);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.reveal.in .h-sec .accent::after,
.h-sec.reveal.in .accent::after,
section.in .h-sec .accent::after {
  transform: scaleX(1);
}

/* Chip hover lift */
.chip {
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
}

/* FAQ row expand icon rotation */
.faq-row summary {
  list-style: none;
  cursor: pointer;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row .faq-chevron {
  transition: transform 0.3s ease;
}
.faq-row[open] .faq-chevron {
  transform: rotate(90deg);
}

/* Scroll-snap section anchors for smoother navigation */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Table row hover highlight (admin + compare) */
table tbody tr {
  transition: background 0.15s ease;
}
table tbody tr:hover {
  background: color-mix(in oklab, var(--brand) 4%, transparent);
}

/* Input focus glow */
input:focus, textarea:focus, select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 14%, transparent);
}

/* Section transition divider — small ornament between sections */
.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  opacity: 0.5;
}
.section-ornament::before,
.section-ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 120px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.section-ornament-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Custom range slider thumb enhancement */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px -2px rgba(13, 74, 55, 0.5);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px -2px rgba(13, 74, 55, 0.5);
}

/* Improved scrollbar (global) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
  border: 2px solid var(--paper);
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--ink-3);
}

/* Dark mode scrollbar */
.dark *::-webkit-scrollbar-thumb {
  border-color: var(--paper-2);
}

/* ── Phase-10: comparison sticky header, row reveal, hero parallax ── */

/* Comparison table sticky header — stays visible while scrolling through rows */
.cmp-sticky-head {
  position: sticky;
  top: 70px;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--paper) 92%, transparent);
}

/* Comparison row staggered reveal (extends .reveal with faster timing) */
.cmp-row {
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hero subtle parallax blobs */
@media (prefers-reduced-motion: no-preference) {
  .hero-blob-1, .hero-blob-2 {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }
}

/* Feature card icon tilt on hover */
.feature-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-ink:hover .feature-icon {
  transform: rotate(-8deg) scale(1.12);
}

/* Pricing card highlight ring pulse on the "pro" plan */
.price-highlight {
  position: relative;
}
.price-highlight::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  z-index: -1;
  opacity: 0.5;
  animation: priceRing 3s ease-in-out infinite;
}
@keyframes priceRing {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .price-highlight::before { animation: none; opacity: 0.4; }
}

/* Testimonial card subtle gradient border */
.testimonial-card {
  position: relative;
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card::before {
  content: "\201C"; /* left double quotation mark */
  position: absolute;
  top: -0.5rem;
  inset-inline-start: 1rem;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: var(--brand);
  opacity: 0.25;
  line-height: 1;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(13, 74, 55, 0.3);
}

/* Timeline node pulse */
.timeline-node {
  position: relative;
}
.timeline-node::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  opacity: 0;
  animation: tlPulse 2.5s ease-in-out infinite;
}
@keyframes tlPulse {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 0; transform: scale(1.5); }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-node::after { animation: none; }
}

/* Roadmap card phase badge shimmer */
.roadmap-badge {
  position: relative;
  overflow: hidden;
}
.roadmap-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(100%);
  transition: transform 0.8s;
}
.roadmap-badge:hover::after {
  transform: translateX(-100%);
}

/* Keyboard hint for command palette */
.kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.3rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  box-shadow: 0 1px 0 var(--line);
}

/* Form field shake on validation error */
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.field-error-shake {
  animation: fieldShake 0.3s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .field-error-shake { animation: none; }
}

/* Success checkmark animation for form submissions */
@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.success-check {
  animation: checkPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Image lazy-load fade-in */
img {
  opacity: 1;
  transition: opacity 0.3s;
}
img[data-loading="true"] {
  opacity: 0;
}

/* Print-friendly (for admin export preview) */
@media print {
  .to-top, .section-dots, .chat-launch, .scroll-prog, .social-proof, .mobile-cta-bar {
    display: none !important;
  }
}

/* ═══ Date/Slot buttons ═══ */
.date-btn { padding:.5rem;border-radius:.5rem;border:1px solid var(--line);background:var(--surface);cursor:pointer;text-align:center;transition:all .2s; }
.date-btn.selected { border-color:var(--brand);background:var(--brand-soft); }
.date-btn .weekday { display:block;font-size:.66rem;color:var(--ink-3); }
.date-btn .date { display:block;font-size:.78rem;font-weight:700;color:var(--ink);margin-top:.15rem; }
.slot-btn { padding:.4rem .7rem;border-radius:.5rem;border:1px solid var(--line);background:var(--surface);font-size:.78rem;cursor:pointer;transition:all .2s; }
.slot-btn.selected { border-color:var(--brand);background:var(--brand-soft);color:var(--brand);font-weight:700; }

/* ═══ Pricing button hover arrow ═══ */
.btn svg { transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.btn:hover svg { transform: translateX(-3px); }
.btn-primary:active { transform: translateY(0); }

/* ═══ Marquee ═══ */
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 3rem; flex-shrink: 0; padding-inline: 1.5rem; animation: marquee 38s linear infinite; min-width: 100%; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .marquee__track { animation-direction: reverse; }

/* ═══ Scan frame ═══ */
.scan-frame { position: relative; aspect-ratio: 1; border-radius: 1rem; overflow: hidden; background: radial-gradient(120% 120% at 30% 20%, #16382b 0%, #0c2419 60%, #071710 100%); }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #4ea787, transparent); box-shadow: 0 0 16px #4ea787; animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 12%; opacity: 0.9; } 50% { top: 88%; opacity: 0.9; } }
.corner { position: absolute; width: 22px; height: 22px; border: 2px solid #5fbd9a; }
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* ═══ Dot pulse ═══ */
.dot-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--present); }
.dot-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--present); animation: pulse 2s ease-out infinite; opacity: 0; }
@keyframes pulse { 0% { transform: scale(0.7); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }

/* ═══ Code window ═══ */
.code-win { border: 1px solid var(--line); border-radius: 0.9rem; overflow: hidden; background: #15140f; box-shadow: 0 30px 60px -30px rgba(13,74,55,0.35); }
.code-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1rem; background: #1d1b14; border-bottom: 1px solid #2c2a20; }
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-body { padding: 1.3rem 1.4rem; overflow-x: auto; }
.code-body pre { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; line-height: 1.85; color: #d8d2bd; margin: 0; white-space: pre; }

/* ═══ Range slider ═══ */
input[type="range"].rng { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px; background: var(--line); outline: none; }
input[type="range"].rng::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); cursor: pointer; box-shadow: 0 2px 8px rgba(13,74,55,0.3); transition: transform 0.15s; }
input[type="range"].rng::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"].rng::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); cursor: pointer; }

/* ═══ FAQ ═══ */
.faq-row { border-bottom: 1px solid var(--line); }
.faq-row:first-child { border-top: 1px solid var(--line); }
.faq-q { cursor: pointer; padding: 1.4rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: color 0.2s; }
.faq-q:hover { color: var(--brand); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1); color: var(--ink-3); line-height: 1.85; }
.faq-row.open .faq-a { max-height: 500px; padding-bottom: 1.4rem; }
.faq-row.open .faq-icon { transform: rotate(45deg); color: var(--brand); }
.faq-icon { transition: transform 0.3s; flex-shrink: 0; }

/* ═══ Scrollspy ═══ */
.section-dots { position: fixed; inset-inline-end: 1rem; top: 50%; transform: translateY(-50%); z-index: 55; display: none; flex-direction: column; gap: 0.65rem; padding: 0.6rem 0.4rem; border-radius: 999px; background: color-mix(in oklab, var(--surface) 85%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px); box-shadow: 0 8px 24px -10px rgba(13, 74, 55, 0.25); }
@media (min-width: 1024px) { .section-dots { display: flex; } }
.section-dot { position: relative; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; text-decoration: none; transition: transform 0.2s; }
.section-dot:hover { transform: scale(1.15); }
.section-dot-inner { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: 0.4; transition: all 0.3s; }
.section-dot.active .section-dot-inner { width: 11px; height: 11px; background: var(--brand); opacity: 1; box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 20%, transparent); }
.section-dot:hover .section-dot-inner { background: var(--brand); opacity: 0.8; }
.section-dot-tooltip { position: absolute; inset-inline-end: 100%; margin-inline-end: 0.6rem; white-space: nowrap; padding: 0.3rem 0.65rem; border-radius: 0.4rem; background: var(--ink); color: var(--paper); font-size: 0.7rem; font-weight: 600; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.section-dot-tooltip::after { content: ""; position: absolute; inset-inline-start: 100%; top: 50%; transform: translateY(-50%); border: 4px solid transparent; border-inline-start-color: var(--ink); }
.section-dot:hover .section-dot-tooltip, .section-dot:focus-visible .section-dot-tooltip { opacity: 1; transform: translateX(0); }

/* ═══ Back to top ═══ */
.to-top { position: fixed; width: 2.75rem; height: 2.75rem; border-radius: 0.8rem; background: var(--surface); border: 1px solid var(--line); color: var(--brand); display: grid; place-items: center; box-shadow: 0 12px 30px -16px rgba(13,74,55,0.4); cursor: pointer; inset-block-end: calc(5.75rem + var(--cookie-offset, 0px)); inset-inline-end: 1.5rem; z-index: 80; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top:hover { background: var(--brand-soft); border-color: var(--brand); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ═══ Scroll progress ═══ */
.scroll-prog { position: fixed; top: 0; inset-inline: 0; height: 2.5px; z-index: 60; background: linear-gradient(90deg, var(--brand), var(--gold)); transform-origin: right; transform: scaleX(var(--p, 0)); transition: transform .1s linear; pointer-events: none; }

/* ═══ Chat launcher ═══ */
.chat-launch { position: fixed; inset-block-end: calc(1.5rem + var(--cookie-offset, 0px)); inset-inline-end: 1.5rem; z-index: 90; }

/* ═══ Cookie offset CSS variable ═══ */
:root { --cookie-offset: 0px; }

/* ═══ Social proof ═══ */
.social-proof { position: fixed; inset-block-end: calc(1.5rem + var(--cookie-offset, 0px)); inset-inline-start: 1rem; z-index: 40; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s, bottom .3s; pointer-events: none; }
.social-proof-card { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 30px -12px rgba(13,74,55,.35); font-size: .78rem; color: var(--ink-2); max-width: 300px; }
.social-proof-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--present); flex-shrink: 0; position: relative; }
.social-proof-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--present); opacity: .4; animation: sp-ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes sp-ping { 0% { transform: scale(1); opacity: .4; } 75%, 100% { transform: scale(2.2); opacity: 0; } }

/* ═══ Mobile CTA ═══ */
.mobile-cta { position: fixed; inset-block-end: var(--cookie-offset, 0px); inset-inline: 0; z-index: 70; display: none; transform: translateY(100%); transition: transform 0.35s; }
.mobile-cta.show { transform: translateY(0); }
@media (max-width: 640px) { .mobile-cta { display: flex; } .chat-launch { inset-block-end: calc(5rem + var(--cookie-offset, 0px)); } }

/* ═══ Nav link ═══ */
.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; inset-inline: 0.75rem; bottom: 0.35rem; height: 1.5px; background: var(--brand); transform: scaleX(0); transform-origin: center; transition: transform 0.28s; border-radius: 2px; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

/* ═══ Card hover ═══ */
.card-ink { will-change: transform; }
.card-ink:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -28px rgba(13, 74, 55, 0.4); }
.tilt-icon { transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1); }
.card-ink:hover .tilt-icon { transform: rotate(-6deg) scale(1.06); }

/* ═══ Pricing pulse badge ═══ */
.pulse-badge { animation: badgePulse 2.6s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 35%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }

/* ═══ Comparison row ═══ */
.cmp-row { transition: background 0.2s; }
.cmp-row:hover { background: color-mix(in oklab, var(--brand) 4%, var(--surface)); }

/* ═══ Reduced motion ═══ */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; } }
