/* ========================================================
   Ask·ilia — landing page
   Tokens and rules follow the brand reference (v2.0 · 2026)
   ======================================================== */

:root {
  --slate: #2F3640;
  --amber: #E6952A;
  --paper: #F6F3EE;
  --stone: #CCC8BF;
  --graphite: #525862;
  --muted: #6A6E77;
  --success: #2F7D5A;
  --success-bg: #EAF4EC;
  --error: #A83838;
  --white: #FFFFFF;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container-max: 1100px;
  --section-y: 96px;
  --section-y-mobile: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }

.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;
}

/* ========================================================
   Scroll reveal animation system
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  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-visible {
  opacity: 1;
  transform: translateY(0);
}
.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; }

/* ========================================================
   01 · Nav
   ======================================================== */
.nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--stone);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease;
}
.nav.is-scrolled {
  box-shadow: 0 1px 12px rgba(47, 54, 64, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark svg { width: 110px; height: auto; display: block; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 639px) {
  .hamburger { display: flex; }
  .nav-right {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--stone);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-right.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.lang-btn {
  background: none; border: none; padding: 4px 2px;
  font: inherit; color: var(--muted); cursor: pointer;
  text-transform: uppercase; transition: color 0.15s ease;
}
.lang-btn:hover { color: var(--slate); }
.lang-btn.is-active { color: var(--slate); font-weight: 500; }
.lang-sep { color: var(--stone); }

.nav-cta {
  font-size: 14px; font-weight: 500;
  color: var(--slate); text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--slate);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-cta:hover { background: var(--slate); color: var(--paper); }

/* ========================================================
   01.5 · Pre-launch band
   ======================================================== */
.prelaunch-band {
  background: var(--white);
  border-bottom: 1px solid var(--stone);
  padding: 12px 0;
}
.prelaunch-band-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.prelaunch-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  animation: prelaunchPulse 2.4s ease-in-out infinite;
}
@keyframes prelaunchPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
.prelaunch-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  flex-shrink: 0;
}
.prelaunch-sep {
  color: var(--stone);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.prelaunch-text {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--graphite);
}
@media (max-width: 639px) {
  .prelaunch-text { font-size: 12.5px; line-height: 1.45; }
  .prelaunch-sep { display: none; }
}

/* ========================================================
   Shared section scaffolding
   ======================================================== */
.section {
  padding: var(--section-y-mobile) 0;
  border-bottom: 1px solid var(--stone);
}
@media (min-width: 768px) { .section { padding: var(--section-y) 0; } }

.section--white { background: var(--white); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--amber);
  transform: translateY(-1px);
}

.section-h2 {
  font-family: var(--font-sans);
  font-weight: 500; font-size: 34px;
  line-height: 1.12; letter-spacing: -0.02em;
  color: var(--slate); max-width: 720px;
  margin-bottom: 20px;
}
@media (min-width: 768px) { .section-h2 { font-size: 44px; } }

.section-lede {
  font-family: var(--font-serif);
  font-size: 19px; line-height: 1.55;
  color: var(--graphite); max-width: 680px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .section-lede { font-size: 22px; } }

/* ========================================================
   02 · Hero
   ======================================================== */
.hero { padding: 56px 0 80px; }
@media (min-width: 768px) { .hero { padding: 72px 0 96px; } }
.hero .eyebrow { margin-bottom: 28px; }
.hero-content {
  animation: heroContentIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 340px; gap: 80px; }
}

.hero-h1 {
  font-family: var(--font-sans);
  font-weight: 500; font-size: 40px;
  line-height: 1.08; letter-spacing: -0.035em;
  color: var(--slate); max-width: 820px;
  margin-bottom: 28px;
}
@media (min-width: 640px) { .hero-h1 { font-size: 52px; } }
@media (min-width: 1024px) { .hero-h1 { font-size: 58px; } }

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic; font-size: 20px;
  line-height: 1.5; color: var(--graphite);
  max-width: 680px; margin-bottom: 40px;
}
@media (min-width: 768px) { .hero-sub { font-size: 22px; } }

/* Hero phone mockup */
.hero-visual { display: block; margin-top: 8px; }
@media (min-width: 1024px) { .hero-visual { margin-top: 0; } }

.hero-phone {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 44px;
  padding: 0;
  overflow: hidden;
  width: 100%;
  max-width: 282px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 40px 80px -16px rgba(47, 54, 64, 0.22),
    0 16px 32px -8px rgba(47, 54, 64, 0.10),
    0 2px 4px rgba(47, 54, 64, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.hero-phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 4px;
  font-family: var(--font-sans);
}
.hero-phone-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: -0.01em;
}
.hero-phone-indicators {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hero-phone-signal { height: 10px; width: 16px; display: block; }
.hero-phone-wifi { height: 10px; width: 14px; display: block; }
.hero-phone-battery { height: 10px; width: 24px; display: block; }

.hero-phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 10px;
  border-bottom: 1px solid var(--stone);
  background: var(--white);
}
.hero-phone-back {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}
.hero-phone-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.hero-phone-header-actions svg {
  width: 18px;
  height: 18px;
  display: block;
}

.hero-phone-daybreak {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  padding: 10px 0 2px;
  letter-spacing: 0;
}

.hero-phone-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--stone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(47, 54, 64, 0.06);
}
.hero-phone-avatar-mark {
  width: 19px;
  height: 19px;
  display: block;
}
.hero-phone-avatar-status {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #31A24C;
  border: 1.5px solid var(--white);
}

.hero-phone-meta {
  flex: 1;
  min-width: 0;
  line-height: 1.15;
}
.hero-phone-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: -0.01em;
}
.hero-phone-status {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.hero-phone-messages {
  flex: 1;
  min-height: 0;
  padding: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.hero-phone-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 16px;
  max-width: 100%;
}
.hero-phone-row-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--stone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-end;
}
.hero-phone-row-avatar svg {
  width: 14px;
  height: 14px;
  display: block;
}
.hero-phone-row-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(82% - 34px);
}

.hero-phone-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.45;
  word-wrap: break-word;
}
.hero-phone-bubble--user {
  background: #0084FF;
  color: #FFFFFF;
  margin: 0 18px 0 auto;
  max-width: 80%;
  border-bottom-right-radius: 6px;
}
.hero-phone-bubble--bot {
  background: #F0F0F0;
  color: var(--slate);
  border-bottom-left-radius: 6px;
}
.hero-phone-row-stack .hero-phone-bubble--bot:not(:last-child) {
  border-bottom-left-radius: 18px;
}
.hero-phone-bubble--success {
  background: var(--success-bg);
  color: var(--success);
  font-weight: 500;
  border-bottom-left-radius: 6px;
}

.channel-badges {
  display: flex; gap: 12px;
  align-items: center; margin-bottom: 32px;
  flex-wrap: wrap;
}
.channel-badges--visual {
  margin-top: 20px;
  margin-bottom: 0;
  justify-content: center;
}
.channel-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); padding: 6px 12px;
  border: 1px solid var(--stone); border-radius: 999px;
  background: var(--white);
}
.channel-badge-icon { width: 16px; height: 16px; flex-shrink: 0; display: block; }
.channel-badge-icon[src$="whatsapp.svg"] { width: 24px; height: 24px; margin: -4px 0 -4px -4px; }

.hero-secondary {
  margin-top: 14px; font-size: 14px; color: var(--muted);
}
.hero-secondary a {
  color: var(--slate); text-decoration: underline;
  text-decoration-color: var(--stone);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.hero-secondary a:hover { text-decoration-color: var(--slate); }

/* ========================================================
   Waitlist form
   ======================================================== */
.waitlist {
  display: flex; flex-direction: column;
  gap: 10px; max-width: 520px;
}
@media (min-width: 560px) {
  .waitlist {
    flex-direction: row; gap: 8px; padding: 4px;
    background: #fff; border: 1px solid var(--stone);
    border-radius: 999px;
  }
}

.waitlist-input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 15px;
  padding: 14px 18px;
  border: 1px solid var(--stone);
  border-radius: 999px; background: #fff;
  color: var(--slate); outline: none;
  transition: border-color 0.15s ease;
}
@media (min-width: 560px) {
  .waitlist-input { border: none; padding: 12px 20px; }
  .waitlist-input:focus { box-shadow: none; }
}
.waitlist-input::placeholder { color: var(--muted); }
.waitlist-input:focus { border-color: var(--slate); }
.waitlist-input.has-error { border-color: var(--error); }

.waitlist-btn {
  font: inherit; font-size: 15px; font-weight: 500;
  padding: 14px 22px;
  background: var(--slate); color: var(--paper);
  border: none; border-radius: 999px;
  cursor: pointer; transition: background 0.15s ease;
  white-space: nowrap; position: relative;
}
.waitlist-btn:hover { background: #1f242c; }
.waitlist-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.waitlist-btn .spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(246,243,238,0.3);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px; vertical-align: middle;
}
.waitlist-btn.is-loading .spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

.waitlist-error {
  font-size: 13px; color: var(--error);
  margin-top: 6px; display: none;
  font-family: var(--font-sans);
}
.waitlist-error.is-visible { display: block; }

.waitlist-success {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-style: italic; font-size: 15px;
  color: var(--success);
}

/* Dark variant for footer */
.waitlist--dark { background: rgba(246,243,238,0.06); border-color: rgba(246,243,238,0.2); }
.waitlist--dark .waitlist-input { background: transparent; color: var(--paper); border-color: transparent; }
.waitlist--dark .waitlist-input::placeholder { color: rgba(246,243,238,0.55); }
.waitlist--dark .waitlist-input.has-error { border-color: var(--error); }
.waitlist--dark .waitlist-btn { background: var(--paper); color: var(--slate); }
.waitlist--dark .waitlist-btn:hover { background: #fff; }

/* ========================================================
   02.5 · Hero product logos
   ======================================================== */
.hero-product-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 44px;
}
.hero-product-logo {
  height: 34px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .hero-product-logo { height: 38px; }
}

/* ========================================================
   03 · Problem — stats
   ======================================================== */
.stat-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; margin-top: 16px;
}
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.stat-card {
  position: relative;
  background: #fff; border: 1px solid var(--stone);
  border-radius: 12px; padding: 36px 32px;
  border-top: 3px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(47,54,64,0.06);
  border-top-color: var(--amber);
}

/* Funnel arrow connectors between stat cards */
@media (min-width: 768px) {
  .stat-card:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--amber);
    line-height: 1;
    pointer-events: none;
  }
}
@media (max-width: 767px) {
  .stat-grid { gap: 36px; }
  .stat-card:not(:last-child)::after {
    content: "↓";
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--amber);
    line-height: 1;
    pointer-events: none;
  }
}

.stat-num {
  font-family: var(--font-sans);
  font-weight: 500; font-size: 44px;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--slate); margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) { .stat-num { font-size: 57px; } }

.stat-label {
  font-family: var(--font-serif);
  font-size: 18px; line-height: 1.5;
  color: var(--graphite);
}

.stat-grid-source {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.problem-quote {
  margin: 48px 0 0;
  max-width: 720px;
  padding: 24px 28px;
  border-left: 3px solid var(--amber);
  background: rgba(230, 149, 42, 0.04);
  border-radius: 0 8px 8px 0;
}
.problem-quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--slate);
  margin: 0 0 12px;
}
.problem-quote-attribution {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========================================================
   04 · How it works — steps
   ======================================================== */
.steps {
  list-style: none; counter-reset: step;
  margin-top: 16px; border-top: 1px solid var(--stone);
}
.step {
  display: grid; grid-template-columns: 64px 1fr;
  align-items: baseline; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--stone);
  transition: padding-left 0.25s ease;
}
.step:hover { padding-left: 8px; }
@media (min-width: 768px) {
  .step { grid-template-columns: 96px 1fr; gap: 40px; padding: 36px 0; }
  .step:hover { padding-left: 12px; }
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}
.step:hover .step-num { color: var(--amber); }
.step-text {
  font-family: var(--font-sans);
  font-size: 20px; line-height: 1.4;
  color: var(--slate); max-width: 640px;
}
@media (min-width: 768px) { .step-text { font-size: 24px; } }

/* ========================================================
   05 · Demo — tabbed channels
   ======================================================== */
.demo-tabs {
  max-width: 640px;
  margin: 16px auto 0;
  border: 1px solid var(--stone);
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 16px 40px -12px rgba(47, 54, 64, 0.12), 0 4px 8px -4px rgba(47, 54, 64, 0.06);
}

.demo-tablist {
  display: flex;
  border-bottom: 1px solid var(--stone);
  background: var(--paper);
}

.demo-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}
.demo-tab img { width: 16px; height: 16px; display: block; flex-shrink: 0; }
.demo-tab img[src$="whatsapp.svg"] { width: 18px; height: 18px; margin: -1px 0; }
.demo-tab:hover { color: var(--slate); }
.demo-tab.is-active {
  color: var(--slate);
  background: var(--white);
}
.demo-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--amber);
}
.demo-tab[data-tab="messenger"].is-active { color: #0084FF; }
.demo-tab[data-tab="messenger"].is-active::after { background: #0084FF; }
.demo-tab[data-tab="instagram"].is-active { color: #C13584; }
.demo-tab[data-tab="instagram"].is-active::after {
  background: linear-gradient(90deg, #FFDD55 0%, #FF543E 35%, #C837AB 70%, #833AB4 100%);
}
.demo-tab[data-tab="whatsapp"].is-active { color: #008069; }
.demo-tab[data-tab="whatsapp"].is-active::after { background: #008069; }
@media (max-width: 480px) {
  .demo-tab { font-size: 10px; padding: 12px 6px; gap: 6px; }
  .demo-tab span { display: none; }
  .demo-tab img { width: 22px; height: 22px; }
}

.demo-panel { }
.demo-panel[hidden] { display: none; }
.demo-panel.is-active {
  animation: demo-panel-fade 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes demo-panel-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-chat {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.demo-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--stone);
}
.demo-chat-back { width: 20px; height: 20px; flex-shrink: 0; display: block; color: var(--muted); }

.demo-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.demo-chat-avatar--ig {
  background: linear-gradient(135deg, #FFDD55 0%, #FF543E 50%, #C837AB 100%);
  padding: 2px;
}
.demo-chat-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--amber);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--white);
  box-sizing: border-box;
}

.demo-chat-meta { flex: 1; min-width: 0; line-height: 1.15; }
.demo-chat-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: -0.01em;
}
.demo-chat-sub {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.demo-chat-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--muted);
}
.demo-chat-actions svg { width: 20px; height: 20px; display: block; }

.demo-chat-body {
  flex: 1;
  padding: 18px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-chat-time,
.demo-chat-receipt {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 4px 0;
}
.demo-chat-receipt { text-align: right; margin-right: 36px; }

.demo-row { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.demo-row--in { justify-content: flex-start; }
.demo-row--out { justify-content: flex-end; }

.demo-msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.demo-msg-avatar--patient {
  background: #D9D5CD;
  color: var(--slate);
}
.demo-msg-avatar--clinic {
  background: var(--amber);
  color: var(--white);
}

.demo-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  position: relative;
}
.demo-bubble--in {
  background: var(--white);
  color: var(--slate);
  border: 1px solid var(--stone);
  border-bottom-left-radius: 6px;
}
.demo-bubble--out {
  color: var(--white);
  border-bottom-right-radius: 6px;
}

.demo-bubble-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  font-size: 10.5px;
  opacity: 0.75;
  white-space: nowrap;
}
.demo-bubble-time { }
.demo-ticks { width: 15px; height: 10px; display: block; }

/* ---- Messenger channel ---- */
.demo-chat--messenger { background: var(--white); }
.demo-chat--messenger .demo-chat-header { background: var(--white); }
.demo-chat--messenger .demo-chat-back,
.demo-chat--messenger .demo-chat-actions { color: #0084FF; }
.demo-chat--messenger .demo-chat-avatar {
  position: relative;
}
.demo-chat--messenger .demo-chat-avatar::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #31A24C;
  border: 2px solid var(--white);
  bottom: -1px;
  right: -1px;
}
.demo-chat--messenger .demo-bubble--out {
  background: #0084FF;
  color: #FFFFFF;
}
.demo-chat--messenger .demo-bubble--in {
  background: #F0F0F0;
  color: var(--slate);
  border: none;
}
.demo-chat--messenger .demo-bubble--success {
  background: #E7F3FF;
  color: #0866FF;
  border: none;
  font-weight: 500;
}
.demo-chat--messenger .demo-chat-time { font-size: 11px; color: #65676B; }

/* ---- Instagram channel ---- */
.demo-chat--instagram { background: var(--white); }
.demo-chat--instagram .demo-chat-header {
  background: var(--white);
  border-bottom: 1px solid var(--stone);
}
.demo-chat--instagram .demo-chat-name { color: var(--slate); font-weight: 600; }
.demo-chat--instagram .demo-chat-sub { color: var(--muted); }
.demo-chat--instagram .demo-chat-back,
.demo-chat--instagram .demo-chat-actions { color: var(--slate); }
.demo-chat--instagram .demo-bubble--out {
  background: #3797F0;
  color: #FFFFFF;
}
.demo-chat--instagram .demo-bubble--in {
  background: #EFEFEF;
  color: var(--slate);
  border: none;
}
.demo-chat--instagram .demo-bubble--success {
  background: rgba(55, 151, 240, 0.10);
  color: #1F6FEB;
  border: none;
  font-weight: 500;
}
.demo-chat--instagram .demo-chat-time { font-size: 11px; color: #8E8E8E; }

/* ---- WhatsApp channel ---- */
.demo-chat--whatsapp {
  background: #ECE5DD;
  background-image: radial-gradient(rgba(7, 94, 84, 0.04) 1px, transparent 1px);
  background-size: 14px 14px;
}
.demo-chat--whatsapp .demo-chat-header {
  background: #008069;
  border-bottom: none;
}
.demo-chat--whatsapp .demo-chat-avatar { background: var(--amber); }
.demo-chat--whatsapp .demo-chat-name,
.demo-chat--whatsapp .demo-chat-sub { color: #FFFFFF; }
.demo-chat--whatsapp .demo-chat-sub { color: rgba(255, 255, 255, 0.85); }
.demo-chat--whatsapp .demo-chat-back,
.demo-chat--whatsapp .demo-chat-actions { color: #FFFFFF; }
.demo-chat--whatsapp .demo-bubble--out {
  background: #D9FDD3;
  color: #111B21;
  border: none;
  border-bottom-right-radius: 4px;
}
.demo-chat--whatsapp .demo-bubble--in {
  background: #FFFFFF;
  border-color: transparent;
  border-bottom-left-radius: 4px;
}
.demo-chat--whatsapp .demo-bubble--success {
  background: #D4F0D4;
  color: #075E54;
  font-weight: 500;
  border-color: transparent;
}
/* WhatsApp bubble tails — small triangle on the corner closest to its sender */
.demo-chat--whatsapp .demo-bubble--out::before,
.demo-chat--whatsapp .demo-bubble--in::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 13px;
}
.demo-chat--whatsapp .demo-bubble--out::before {
  right: -7px;
  background: #D9FDD3;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.demo-chat--whatsapp .demo-bubble--in::before {
  left: -7px;
  background: #FFFFFF;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.demo-chat--whatsapp .demo-bubble--success::before {
  background: #D4F0D4;
}
.demo-chat--whatsapp .demo-bubble-meta { color: #667781; }
.demo-chat--whatsapp .demo-ticks { color: #53BDEB; }
.demo-chat--whatsapp .demo-chat-time {
  background: rgba(255, 255, 255, 0.85);
  color: #54656F;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-block;
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 8px;
  align-self: center;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

/* ========================================================
   06 · Guardrails
   ======================================================== */
.guardrails-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; margin-top: 16px;
  padding-top: 24px; border-top: 1px solid var(--stone);
}
@media (min-width: 768px) {
  .guardrails-grid { grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 40px; align-items: start; }
}

.guardrails-heading {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--slate);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stone);
  display: flex;
  align-items: center;
  gap: 10px;
}
.guardrails-heading::before {
  content: "✓";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--amber);
  line-height: 1;
}
.guardrails-heading--wont { color: var(--error); }
.guardrails-heading--wont::before {
  content: "×";
  color: var(--error);
}
@media (min-width: 768px) {
  .guardrails-heading { font-size: 30px; }
}

.guardrails-list { list-style: none; }
.guardrails-list li {
  font-family: var(--font-sans);
  font-size: 17px; line-height: 1.4;
  color: var(--slate);
  padding: 12px 0 12px 22px; position: relative;
  border-bottom: 1px solid rgba(204,200,191,0.45);
}

.guardrails-col:first-child .guardrails-list li::before {
  content: ""; position: absolute;
  left: 0; top: 20px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
}
.guardrails-col:last-child .guardrails-list li::before {
  content: "×"; position: absolute;
  left: 0; top: 10px;
  font-family: var(--font-mono);
  color: var(--error); font-size: 18px; line-height: 1;
}

.guardrails-footnote {
  margin-top: 40px;
  font-family: var(--font-serif);
  font-style: italic; font-size: 18px;
  color: var(--graphite); max-width: 640px;
}

/* ========================================================
   07 · Pricing card
   ======================================================== */
.pricing-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 28px;
  max-width: 620px;
}
@media (min-width: 640px) {
  .pricing-tiles { grid-template-columns: 1fr 1fr; gap: 20px; }
}
.pricing-tile {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 12px;
  padding: 28px 24px;
}
.pricing-tile-num {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--slate);
  margin-bottom: 10px;
}
@media (min-width: 768px) {
  .pricing-tile-num { font-size: 52px; }
}
.pricing-tile:first-child .pricing-tile-num { color: var(--amber); }
.pricing-tile-label {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--graphite);
}

.pricing-notes {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-notes li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--graphite);
}
.pricing-notes li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 500;
}

.pricing-grid {
  margin-top: 8px;
  max-width: 620px;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 12px;
  padding: 32px 28px;
}
.pricing-card-label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber);
  font-weight: 500;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--stone);
}
.pricing-card-detail {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px; line-height: 1.55;
  color: var(--graphite);
  margin-bottom: 20px;
}
.pricing-card-cta {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  color: var(--slate);
  text-decoration: underline;
  text-decoration-color: var(--stone);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.pricing-card-cta:hover { text-decoration-color: var(--slate); }

/* ========================================================
   06 · Founders
   ======================================================== */
.founders-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; margin-top: 8px;
}
@media (min-width: 768px) { .founders-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.founder-card {
  background: #fff; border: 1px solid var(--stone);
  border-radius: 12px; padding: 24px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.founder-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47,54,64,0.06);
}

.founder-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.founder-avatar {
  width: 64px; height: 64px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--paper);
  box-shadow: 0 2px 8px rgba(47,54,64,0.1);
  flex-shrink: 0;
}

.founder-info {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}
.founder-name {
  font-family: var(--font-sans);
  font-weight: 500; font-size: 22px;
  letter-spacing: -0.01em; color: var(--slate);
}
.founder-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  color: #0A66C2;
  background: rgba(10,102,194,0.08);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.founder-linkedin svg { width: 26px; height: 26px; display: block; }
.founder-linkedin:hover {
  color: #FFFFFF;
  background: #0A66C2;
  transform: translateY(-1px);
}

.founder-role {
  font-family: var(--font-sans);
  font-size: 14px; color: var(--graphite);
  margin-top: 4px;
}
.founder-credentials {
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  border-top: 1px solid var(--stone);
}
.founder-credentials li {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--graphite);
  padding: 8px 0 8px 16px;
  position: relative;
}
.founder-credentials li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
}


/* ========================================================
   10 · Footer
   ======================================================== */
.footer { background: var(--slate); color: var(--paper); }

.footer-cta {
  padding: var(--section-y-mobile) 0;
  border-bottom: 1px solid rgba(246,243,238,0.12);
}
@media (min-width: 768px) { .footer-cta { padding: var(--section-y) 0; } }

.footer-h2 {
  font-family: var(--font-sans);
  font-weight: 500; font-size: 36px;
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--paper); margin-bottom: 16px;
}
@media (min-width: 768px) { .footer-h2 { font-size: 48px; } }

.footer-sub {
  font-family: var(--font-serif);
  font-style: italic; font-size: 18px;
  color: rgba(246,243,238,0.72);
  max-width: 520px; margin-bottom: 32px;
}

.footer-meta { padding: 28px 0; }
.footer-meta-inner {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 20px;
}
@media (min-width: 640px) {
  .footer-meta-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.wordmark--paper svg { width: 96px; }

.footer-meta-right {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
}
.footer-link {
  color: rgba(246,243,238,0.72);
  text-decoration: none; transition: color 0.15s ease;
}
.footer-link:hover { color: var(--paper); }
.footer-copy { color: rgba(246,243,238,0.45); }

/* ========================================================
   Focus / a11y
   ======================================================== */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px; border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, .reveal, .bubble { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bubble { opacity: 1; transform: none; }
}
