/* SystemLatch — Apple-inspired design system */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #1d1d1f;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --border: rgba(0, 0, 0, 0.08);
  --card: #ffffff;
  --radius: 22px;
  --radius-lg: 28px;
  --radius-sm: 14px;
  --nav-h: 52px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.47059;
  font-size: 17px;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ——— Nav ——— */
.nav {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(251, 251, 253, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 22px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 19px;
  letter-spacing: -0.03em;
}
.logo:hover { text-decoration: none; opacity: 0.8; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(145deg, #0071e3, #0055b3);
  position: relative; flex-shrink: 0;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 5px;
  border: 2px solid rgba(255,255,255,0.9); border-radius: 3px;
  border-top-color: transparent; border-left-color: transparent;
  transform: rotate(-45deg) translate(1px, -1px);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text); font-size: 12px; opacity: 0.88;
  text-decoration: none; letter-spacing: -0.01em;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: 6px 14px; border-radius: 980px; opacity: 1 !important;
  font-weight: 500;
}
.nav-cta:hover { background: var(--accent-hover) !important; text-decoration: none !important; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--text);
  margin: 4px auto; transition: transform 0.2s var(--ease);
}

/* ——— Layout helpers ——— */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--bg-dark); color: #f5f5f7;
}
.section-dark .eyebrow { color: #2997ff; }
.section-dark .subhead { color: #a1a1a6; }
.section-dark .text-sec { color: #a1a1a6; }

.eyebrow {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--accent); letter-spacing: -0.01em; margin-bottom: 10px;
}
.headline {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.05;
  margin-bottom: 18px;
}
.headline-md {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
  margin-bottom: 14px;
}
.subhead {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 400; color: var(--text-secondary);
  letter-spacing: -0.02em; line-height: 1.35;
  max-width: 620px;
}
.center { text-align: center; }
.center .subhead { margin-left: auto; margin-right: auto; }
.text-sec { color: var(--text-secondary); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  padding: 12px 22px; border-radius: 980px; border: 0; cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), opacity 0.2s;
  text-decoration: none !important;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent; color: var(--accent);
  padding: 12px 8px;
}
.btn-secondary:hover { text-decoration: underline !important; }
.btn-secondary::after { content: " ›"; font-weight: 400; }
.btn-dark { background: #fff; color: var(--text); }
.btn-dark:hover { background: #f5f5f7; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 28px; }
.center .btn-row,
.hero .btn-row { justify-content: center; }

/* ——— Reveal animations ——— */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ——— Hero ——— */
.hero {
  padding: 72px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero .headline { max-width: 900px; margin-left: auto; margin-right: auto; }
.hero .subhead { margin: 0 auto 8px; }
.hero .btn-row {
  justify-content: center;
  align-items: center;
  width: 100%;
}
.hero-parallax {
  will-change: transform;
  margin-top: 56px;
}

/* ——— Product showcase ——— */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 22px;
}
.showcase-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  min-height: 420px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.showcase-card h3 {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px;
}
.phone-mock {
  background: #fff; border-radius: 18px; padding: 16px;
  box-shadow: inset 0 0 0 1px var(--border);
  height: calc(100% - 36px); display: flex; flex-direction: column; gap: 10px;
}
.call-bar {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.call-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(48, 209, 88, 0.1); }
}
.call-meta { flex: 1; }
.call-meta strong { display: block; font-size: 14px; letter-spacing: -0.02em; }
.call-meta span { font-size: 12px; color: var(--text-tertiary); }
.transcript {
  flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
}
.bubble {
  max-width: 88%; padding: 10px 14px; border-radius: 16px;
  font-size: 14px; line-height: 1.4; letter-spacing: -0.01em;
  opacity: 0; transform: translateY(8px);
}
.bubble.visible { opacity: 1; transform: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.bubble-ai {
  background: var(--accent-soft); color: var(--text);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.bubble-caller {
  background: var(--bg-dark); color: #f5f5f7;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.typing {
  display: inline-flex; gap: 4px; padding: 4px 2px; align-items: center;
}
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary);
  animation: typing 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.cal-mock {
  background: #fff; border-radius: 18px; padding: 16px;
  box-shadow: inset 0 0 0 1px var(--border);
  height: calc(100% - 36px);
}
.cal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.cal-header strong { font-size: 15px; letter-spacing: -0.02em; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  margin-bottom: 16px;
}
.cal-dow {
  font-size: 10px; color: var(--text-tertiary); text-align: center;
  font-weight: 600; padding: 4px 0;
}
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 12px; border-radius: 50%; color: var(--text-secondary);
}
.cal-day.today { background: var(--accent); color: #fff; font-weight: 600; }
.cal-day.muted { opacity: 0.35; }
.booking-slot {
  background: linear-gradient(135deg, rgba(0,113,227,0.1), rgba(0,113,227,0.04));
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 12px 14px;
  opacity: 0; transform: translateY(12px) scale(0.96);
}
.booking-slot.visible {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.booking-slot .time {
  font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 2px;
}
.booking-slot .who { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.booking-slot .svc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.booking-check {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 12px; color: #248a3d; font-weight: 500;
  opacity: 0;
}
.booking-check.visible { opacity: 1; transition: opacity 0.4s 0.2s; }

/* ——— Problem ——— */
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 48px;
}
.stat-card {
  background: var(--card); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat-num {
  font-size: clamp(36px, 5vw, 48px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px;
  color: var(--text);
}
.stat-label {
  font-size: 15px; color: var(--text-secondary); letter-spacing: -0.01em;
  line-height: 1.4;
}
.footnotes {
  margin-top: 32px; font-size: 11px; color: var(--text-tertiary);
  line-height: 1.55; max-width: 720px;
}
.footnotes a { color: var(--text-tertiary); }
.problem-copy {
  max-width: 640px; margin-top: 24px;
  font-size: 19px; color: var(--text-secondary); letter-spacing: -0.015em;
  line-height: 1.45;
}

/* ——— What you get ——— */
.features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 48px;
}
.feature {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 36px 32px; transition: transform 0.3s var(--ease);
}
.feature:hover { transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-size: 21px; font-weight: 600; letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.feature p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.45;
  letter-spacing: -0.01em;
}

/* ——— How it works ——— */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 48px;
}
.step {
  background: #fff; border-radius: var(--radius); padding: 36px 28px;
  border: 1px solid var(--border); position: relative;
}
.step-num {
  font-size: 13px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.04em; margin-bottom: 16px;
}
.step h3 {
  font-size: 24px; font-weight: 600; letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.step p { font-size: 15px; color: var(--text-secondary); line-height: 1.45; }

/* ——— Niches ——— */
.niches {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 48px;
}
.niche {
  background: var(--bg-alt); border-radius: var(--radius-lg);
  padding: 40px 32px; min-height: 280px;
  display: flex; flex-direction: column;
}
.niche-glyph {
  width: 56px; height: 56px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; color: var(--accent);
}
.niche-glyph svg { width: 28px; height: 28px; }
.niche h3 {
  font-size: 24px; font-weight: 600; letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.niche p { font-size: 15px; color: var(--text-secondary); line-height: 1.45; flex: 1; }
.niche .cite {
  margin-top: 16px; font-size: 11px; color: var(--text-tertiary);
}

/* ——— Pricing ——— */
.pricing-card {
  max-width: 520px; margin: 48px auto 0;
  background: #fff; border-radius: var(--radius-lg);
  padding: 48px 40px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); text-align: center;
}
.price-amount {
  font-size: 64px; font-weight: 700; letter-spacing: -0.04em;
  line-height: 1; margin: 8px 0;
}
.price-amount span { font-size: 22px; font-weight: 500; color: var(--text-secondary); }
.price-setup {
  font-size: 15px; color: var(--text-secondary); margin-bottom: 28px;
}
.price-list {
  text-align: left; margin: 0 auto 32px; max-width: 340px;
}
.price-list li {
  padding: 10px 0 10px 28px; position: relative;
  font-size: 15px; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
}
.price-list li:last-child { border-bottom: 0; }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230071e3'%3E%3Cpath d='M6.5 11.2L3.3 8l1.05-1.05L6.5 9.1l5.15-5.15L12.7 5z'/%3E%3C/svg%3E");
  background-size: 16px;
}
.price-note {
  font-size: 12px; color: var(--text-tertiary); margin-top: 20px;
  line-height: 1.45;
}

/* ——— FAQ ——— */
.faq-list { max-width: 720px; margin: 48px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 22px 4px; text-align: left;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--text);
}
.faq-q:hover { color: var(--accent); }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent-soft); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
  font-size: 15px; color: var(--text-secondary); line-height: 1.5;
  padding: 0 4px;
}
.faq-item.open .faq-a { max-height: 320px; padding-bottom: 22px; }

/* ——— CTA / Form ——— */
.cta-section { padding: 100px 0; }
.cta-card {
  background: var(--bg-dark); color: #f5f5f7;
  border-radius: var(--radius-lg); padding: 64px 48px;
  text-align: center; max-width: 820px; margin: 0 auto;
}
.cta-card .headline-md { color: #fff; }
.cta-card .subhead { color: #a1a1a6; }
.demo-form {
  max-width: 440px; margin: 36px auto 0; text-align: left;
}
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block; font-size: 13px; font-weight: 500;
  color: #a1a1a6; margin-bottom: 6px; letter-spacing: -0.01em;
}
.form-row input, .form-row select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06); color: #fff;
  outline: none; transition: border-color 0.2s, background 0.2s;
}
.form-row input::placeholder { color: rgba(255,255,255,0.35); }
.form-row input:focus, .form-row select:focus {
  border-color: var(--accent); background: rgba(255,255,255,0.1);
}
.form-row select option { background: #1d1d1f; color: #fff; }
.form-note {
  font-size: 11px; color: #86868b; margin-top: 12px; text-align: center;
}
.form-success {
  display: none; padding: 24px; text-align: center;
  background: rgba(48, 209, 88, 0.12); border-radius: 14px;
  color: #30d158; font-size: 15px; margin-top: 20px;
}
.form-success.show { display: block; }

/* ——— Footer ——— */
.footer {
  background: var(--bg-alt); padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 22px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap; padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px; color: var(--text-secondary); text-decoration: none;
}
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom {
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p {
  font-size: 11px; color: var(--text-tertiary); line-height: 1.5;
}

/* ——— Legal pages ——— */
.legal {
  max-width: 720px; margin: 0 auto; padding: 80px 22px 100px;
}
.legal .eyebrow { margin-bottom: 8px; }
.legal h1 {
  font-size: clamp(32px, 5vw, 44px); font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 12px;
}
.draft-banner {
  background: #fff3cd; color: #664d03; border: 1px solid #ffecb5;
  border-radius: 12px; padding: 14px 18px; font-size: 14px;
  margin: 24px 0 36px; font-weight: 500;
}
.legal h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  margin: 36px 0 12px;
}
.legal p, .legal li {
  font-size: 15px; color: var(--text-secondary); line-height: 1.55;
  margin-bottom: 12px;
}
.legal ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; }

/* ——— 404 ——— */
.page-404 {
  min-height: calc(100vh - var(--nav-h) - 160px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 22px;
}
.page-404 .code {
  font-size: 96px; font-weight: 700; letter-spacing: -0.05em;
  color: var(--bg-alt); line-height: 1; margin-bottom: -20px;
  background: linear-gradient(180deg, #d2d2d7, #f5f5f7);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .showcase { max-width: 100%; }
  .stat-grid, .steps, .niches { gap: 14px; }
  .section { padding: 80px 0; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(251, 251, 253, 0.96);
    backdrop-filter: blur(20px); padding: 20px 22px 28px;
    border-bottom: 1px solid var(--border); gap: 18px;
    align-items: flex-start;
  }
  .nav-toggle { display: block; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-card { min-height: 380px; }
  .stat-grid, .features, .steps, .niches { grid-template-columns: 1fr; }
  .pricing-card { padding: 36px 24px; }
  .price-amount { font-size: 52px; }
  .cta-card { padding: 48px 24px; }
  .hero { padding: 48px 0 24px; }
  .section { padding: 64px 0; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .center .btn-row,
  .hero .btn-row { align-items: center; }
  .center .btn-row .btn,
  .hero .btn-row .btn { width: auto; min-width: min(100%, 280px); }
  .center .btn-row .btn-secondary,
  .hero .btn-row .btn-secondary { width: auto; min-width: 0; }
}

@media (max-width: 390px) {
  .headline { font-size: 36px; }
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
}

/* ——— Live chat demo ——— */
.chat-live {
  display: flex; flex-direction: column; height: calc(100% - 36px);
  background: #fff; border-radius: 18px; padding: 14px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.chat-live-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 980px;
  margin-bottom: 10px; align-self: flex-start;
}
.chat-live-thread {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  min-height: 200px; max-height: 320px; padding-right: 4px;
}
.chat-live-form {
  display: flex; gap: 8px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.chat-live-form input {
  flex: 1; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; font-size: 14px; outline: none;
  background: var(--bg-alt); color: var(--text);
}
.chat-live-form input:focus { border-color: var(--accent); }
.chat-live-form button {
  border: 0; background: var(--accent); color: #fff;
  border-radius: 12px; padding: 0 16px; font-weight: 600; cursor: pointer;
  font-size: 14px;
}
.chat-live-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 8px; }

/* ——— Demo form extras ——— */
.demo-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.slot-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  max-height: 220px; overflow-y: auto; margin-top: 6px;
}
.slot-opt {
  appearance: none; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); color: #f5f5f7;
  border-radius: 10px; padding: 10px 8px; font-size: 12px;
  cursor: pointer; text-align: center;
}
.slot-opt:hover, .slot-opt.selected {
  border-color: var(--accent); background: rgba(0,113,227,0.2);
}
.slot-opt:disabled { opacity: 0.35; cursor: not-allowed; }
.form-error {
  color: #ff6482; font-size: 13px; margin-top: 10px; text-align: center;
  display: none;
}
.form-error.show { display: block; }
.confirm-panel {
  display: none; text-align: left; margin-top: 24px;
  background: rgba(255,255,255,0.06); border-radius: 16px; padding: 24px;
}
.confirm-panel.show { display: block; }
.confirm-panel h3 { font-size: 22px; margin-bottom: 8px; color: #fff; }
.confirm-panel p { color: #a1a1a6; font-size: 15px; margin-bottom: 10px; }
.confirm-meta {
  font-size: 14px; color: #f5f5f7; line-height: 1.5;
  margin: 16px 0; padding: 14px; border-radius: 12px;
  background: rgba(0,0,0,0.25);
}
.turnstile-wrap { margin: 14px 0; display: flex; justify-content: center; min-height: 65px; }

/* Admin */
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 48px 22px 80px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 24px; }
.admin-table th, .admin-table td {
  text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table th { font-size: 12px; color: var(--text-tertiary); font-weight: 600; }
.admin-login {
  max-width: 360px; margin: 80px auto; padding: 32px;
  background: var(--bg-alt); border-radius: var(--radius);
}
.admin-login input {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border);
  margin: 8px 0 16px;
}
.badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 980px;
}
.badge-new { background: var(--accent-soft); color: var(--accent); }
.badge-done { background: rgba(48,209,88,0.15); color: #248a3d; }

@media (max-width: 768px) {
  .slot-grid { grid-template-columns: 1fr; }
}
