/* ============================================================
   ClinicMind — Landing System
   Editorial medical aesthetic. Bone paper, forest ink, terra accent.
   ============================================================ */

:root {
  /* Color */
  --paper:        #F3EEE4;
  --paper-warm:   #EAE2D1;
  --paper-deep:   #DFD5BF;
  --ink:          #181613;
  --ink-soft:     #3A342D;
  --ink-mute:     #6E665B;
  --forest:       #1E3A2E;
  --forest-soft:  #2D5141;
  --forest-deep:  #122318;
  --sage:         #859680;
  --sage-soft:    #B7C2B1;
  --terra:        #C2613D;
  --terra-deep:   #9B4527;
  --terra-soft:   #E3A98F;
  --gold:         #B68F4E;
  --border:       #D6CCB7;
  --border-soft:  #E2D8C4;
  --shadow-1: 0 1px 2px rgba(24,22,19,.04), 0 2px 8px rgba(24,22,19,.04);
  --shadow-2: 0 4px 14px rgba(24,22,19,.06), 0 10px 30px rgba(24,22,19,.06);
  --shadow-3: 0 12px 32px rgba(24,22,19,.08), 0 28px 64px rgba(24,22,19,.10);
  --shadow-ink: 0 30px 60px -20px rgba(18,35,24,.30);

  /* Type */
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:  'Manrope', 'Helvetica Neue', system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1240px;
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-xl: 44px;

  /* Motion */
  --ease-out:  cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.6, 0, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02", "cv11";
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .55;
  mix-blend-mode: multiply;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--forest); color: var(--paper); }

/* ============================================================
   Typography
   ============================================================ */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
  opacity: .6;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
h1 { font-size: clamp(48px, 7vw, 104px); }
h2 { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -0.025em; }
h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }
h4 { font-size: 20px; line-height: 1.25; }

.serif-italic { font-family: var(--serif); font-style: italic; font-variation-settings: "opsz" 144; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-mute); }
.mono-num { font-family: var(--mono); font-feature-settings: "tnum"; }

p { margin: 0; color: var(--ink-soft); }
.lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-tight { padding: clamp(60px, 8vw, 100px) 0; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 238, 228, 0.78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.site-header.scrolled { border-color: var(--border); background: rgba(243, 238, 228, 0.92); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 34px; height: 34px;
  background: url('ClincMindLogo.png') center / contain no-repeat;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--forest);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease-out), background .2s, color .2s, border-color .2s, box-shadow .25s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-2);
}
.btn-primary:hover { background: var(--forest); transform: translateY(-1px); box-shadow: var(--shadow-ink); }
.btn-primary .arrow { transition: transform .25s var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--paper-warm); border-color: var(--ink-soft); }

.btn-soft {
  background: var(--paper-warm);
  color: var(--ink);
  border-color: var(--border-soft);
}
.btn-soft:hover { background: var(--paper-deep); }

.btn-lg { padding: 17px 28px; font-size: 15px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(60px, 9vw, 130px) 0 clamp(60px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 32px;
}
.hero-tag-pill {
  background: var(--forest);
  color: var(--paper);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6BA66B;
  position: relative;
}
.hero-tag-dot::after {
  content:'';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #6BA66B;
  opacity: .35;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .35; }
  50% { transform: scale(1.8); opacity: 0; }
}

.hero h1 {
  font-size: clamp(52px, 7.4vw, 110px);
  margin-bottom: 28px;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: wordRise .9s var(--ease-out) forwards;
}
@keyframes wordRise {
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 .italic {
  font-style: italic;
  color: var(--forest);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero h1 .underline {
  background-image: linear-gradient(transparent 78%, var(--terra-soft) 78%, var(--terra-soft) 96%, transparent 96%);
  padding: 0 4px;
}

.hero-sub {
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--forest);
  line-height: 1;
  letter-spacing: -.02em;
}
.hero-stat-label {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-top: 6px;
  letter-spacing: .01em;
}

/* Hero visual: phone mockup with floating accents */
.hero-visual {
  position: relative;
  height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Phone mockup
   ============================================================ */
.phone {
  --phone-w: 290px;
  --phone-h: 600px;
  width: var(--phone-w);
  height: var(--phone-h);
  background: #0E0C0A;
  border-radius: 44px;
  padding: 11px;
  box-shadow:
    0 0 0 1.5px #2A2520,
    0 0 0 5px #0E0C0A,
    var(--shadow-3),
    var(--shadow-ink);
  position: relative;
  flex-shrink: 0;
}
.phone::before {
  /* Side button */
  content: '';
  position: absolute;
  right: -2px; top: 130px;
  width: 4px; height: 60px;
  background: #2A2520;
  border-radius: 0 2px 2px 0;
}
.phone::after {
  /* Volume buttons */
  content: '';
  position: absolute;
  left: -2px; top: 110px;
  width: 4px; height: 35px;
  background: #2A2520;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 50px 0 0 #2A2520;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 33px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #0E0C0A;
  border-radius: 999px;
  z-index: 10;
}
.phone-statusbar {
  height: 44px;
  padding: 14px 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  z-index: 5;
}
.phone-statusbar-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}
.phone-statusbar-icons svg { width: 14px; height: 14px; opacity: .85; }

/* WhatsApp screen */
.wa-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #1E3A2E;
  color: #F3EEE4;
  margin-top: 4px;
}
.wa-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terra) 0%, var(--gold) 100%);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--paper);
  flex-shrink: 0;
}
.wa-name { font-size: 13.5px; font-weight: 600; line-height: 1.15; }
.wa-status {
  font-size: 10.5px;
  opacity: .85;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wa-status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #8BD18B;
}
.wa-body {
  flex: 1;
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(194,97,61,.05), transparent 60%),
    #EFEAE0;
  overflow: hidden;
}
.wa-msg {
  max-width: 78%;
  padding: 8px 11px 7px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  position: relative;
  opacity: 0;
  animation: msgIn .5s var(--ease-out) forwards;
  box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.wa-msg.in {
  background: #FFFFFF;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--ink);
}
.wa-msg.out {
  background: #D9F0CB;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  color: var(--ink);
}
.wa-msg .time {
  font-size: 9.5px;
  color: var(--ink-mute);
  margin-top: 2px;
  display: block;
  text-align: right;
}
.wa-msg .ai-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--forest);
  background: rgba(30,58,46,.1);
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.wa-typing {
  align-self: flex-start;
  padding: 9px 14px;
  background: white;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 3px;
}
.wa-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-mute);
  animation: typingDot 1.4s infinite;
}
.wa-typing span:nth-child(2) { animation-delay: .15s; }
.wa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.wa-input {
  padding: 8px 12px;
  background: #F0EBE0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-input-box {
  flex: 1;
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--ink-mute);
}
.wa-input-send {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--forest);
  display: grid;
  place-items: center;
}
.wa-input-send svg { width: 14px; height: 14px; }

/* Floating accents around hero phone */
.hero-accent {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow-2);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  z-index: 4;
  animation: floatY 7s ease-in-out infinite;
}
.hero-accent .ic {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-accent .ic svg { width: 14px; height: 14px; color: var(--paper); }
.hero-accent.a1 { top: 90px; left: -10px; animation-delay: -1s; }
.hero-accent.a1 .ic { background: var(--terra); }
.hero-accent.a2 { top: 230px; right: -30px; animation-delay: -3s; }
.hero-accent.a2 .ic { background: var(--forest); }
.hero-accent.a3 { bottom: 70px; left: -40px; animation-delay: -5s; }
.hero-accent.a3 .ic { background: var(--gold); }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Decorative orb behind phone */
.hero-orb {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(194,97,61,.18), rgba(30,58,46,.10) 50%, transparent 75%);
  filter: blur(20px);
  z-index: 0;
  animation: orbDrift 18s ease-in-out infinite;
}
@keyframes orbDrift {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.07) translate(-12px, 14px); }
}

/* ============================================================
   Trust strip
   ============================================================ */
.trust {
  padding: 36px 0 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(234, 226, 209, .35);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.trust-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 22px;
  font-weight: 500;
}
.marquee {
  display: flex;
  gap: 70px;
  align-items: center;
  animation: scrollX 38s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: .8;
}
.marquee-item svg { color: var(--terra); flex-shrink: 0; }
@keyframes scrollX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   How-it-works flow (5 steps with mockups)
   ============================================================ */
.flow {
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.flow-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.flow-head h2 .italic {
  font-style: italic;
  color: var(--forest);
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.flow-steps::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 60px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--ink-mute) 0 4px, transparent 4px 10px);
  opacity: .35;
}
.flow-step {
  position: relative;
  padding-top: 16px;
}
.flow-step-num {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--forest);
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: transform .4s var(--ease-out), background .3s;
}
.flow-step:hover .flow-step-num {
  background: var(--forest);
  color: var(--paper);
  transform: translateY(-4px);
}
.flow-step-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--paper);
  display: grid;
  place-items: center;
  position: absolute;
  top: 0; right: 10px;
  z-index: 2;
}
.flow-step-icon svg { width: 16px; height: 16px; }
.flow-step h4 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 10px;
  font-variation-settings: "opsz" 14, "SOFT" 50;
}
.flow-step p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }

/* ============================================================
   Feature grid (bento)
   ============================================================ */
.features-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}
.feat-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .3s;
}
.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-soft);
}
.feat-card .feat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--paper);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.feat-card .feat-icon svg { width: 22px; height: 22px; }
.feat-card h3 { font-size: 22px; margin-bottom: 10px; }
.feat-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* span helpers */
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.row-2 { grid-row: span 2; }

.feat-card.dark {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest-deep);
}
.feat-card.dark h3 { color: var(--paper); }
.feat-card.dark p { color: rgba(243,238,228,.78); }
.feat-card.dark .feat-icon { background: var(--paper); color: var(--forest); }

.feat-card.terra {
  background: var(--terra);
  color: var(--paper);
  border-color: var(--terra-deep);
}
.feat-card.terra h3, .feat-card.terra p { color: var(--paper); }
.feat-card.terra p { color: rgba(243,238,228,.85); }
.feat-card.terra .feat-icon { background: var(--paper); color: var(--terra); }

/* ============================================================
   Section: How patient flow works (animated mockup)
   ============================================================ */
.flow-detail {
  position: relative;
  z-index: 2;
}
.flow-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 140px;
}
.flow-detail-grid:nth-child(even) {
  grid-template-columns: 1.1fr 1fr;
}
.flow-detail-grid:nth-child(even) .flow-detail-visual { order: -1; }

.flow-detail-content .eyebrow { margin-bottom: 24px; }
.flow-detail-content h2 { margin-bottom: 22px; max-width: 16ch; }
.flow-detail-content p { font-size: 17px; line-height: 1.6; max-width: 50ch; margin-bottom: 18px; }
.flow-detail-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.flow-detail-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  font-size: 15px;
}
.flow-detail-list li:last-child { border-bottom: none; }
.flow-detail-list .check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.flow-detail-list .check svg { width: 11px; height: 11px; }

.flow-detail-visual {
  position: relative;
  height: 660px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Voice call mockup */
.voice-card {
  width: 320px;
  background: var(--forest);
  color: var(--paper);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow-3), var(--shadow-ink);
  position: relative;
}
.voice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.voice-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--terra);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--paper);
}
.voice-name { font-weight: 600; font-size: 15px; }
.voice-info { font-size: 12px; opacity: .7; }
.voice-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.voice-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FF6B6B;
  box-shadow: 0 0 0 0 rgba(255,107,107,.6);
  animation: liveBlink 1.5s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,107,.6); }
  50% { box-shadow: 0 0 0 6px rgba(255,107,107,0); }
}

.voice-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 90px;
  margin: 12px 0 22px;
}
.voice-waveform span {
  display: block;
  width: 4px;
  background: var(--paper);
  border-radius: 4px;
  animation: wave 1.2s ease-in-out infinite;
  opacity: .85;
}
.voice-waveform span:nth-child(odd) { background: var(--terra-soft); }
@keyframes wave {
  0%, 100% { height: 12px; }
  50% { height: 50px; }
}
.voice-waveform span:nth-child(1)  { animation-delay: -.1s; }
.voice-waveform span:nth-child(2)  { animation-delay: -.2s; }
.voice-waveform span:nth-child(3)  { animation-delay: -.3s; }
.voice-waveform span:nth-child(4)  { animation-delay: -.4s; }
.voice-waveform span:nth-child(5)  { animation-delay: -.5s; }
.voice-waveform span:nth-child(6)  { animation-delay: -.6s; }
.voice-waveform span:nth-child(7)  { animation-delay: -.7s; }
.voice-waveform span:nth-child(8)  { animation-delay: -.8s; }
.voice-waveform span:nth-child(9)  { animation-delay: -.9s; }
.voice-waveform span:nth-child(10) { animation-delay: -1.0s; }
.voice-waveform span:nth-child(11) { animation-delay: -1.1s; }
.voice-waveform span:nth-child(12) { animation-delay: -1.2s; }

.voice-transcript {
  background: rgba(243,238,228,.08);
  border: 1px solid rgba(243,238,228,.12);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 10px;
}
.voice-transcript .speaker {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .65;
  margin-bottom: 4px;
  display: block;
}
.voice-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.voice-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(243,238,228,.1);
  border: 1px solid rgba(243,238,228,.15);
  display: grid;
  place-items: center;
  color: var(--paper);
}
.voice-btn.end { background: #C44; border-color: #A33; }

/* Brain visualization */
.brain-viz {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  position: relative;
}
.brain-core {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FBF6EC, var(--paper-warm) 65%, var(--paper-deep) 100%);
  display: grid;
  place-items: center;
  box-shadow:
    0 0 80px rgba(30,58,46,.18),
    0 0 0 1px var(--border-soft),
    inset 0 1px 0 rgba(255,255,255,.6);
  z-index: 2;
  animation: corePulse 6s ease-in-out infinite;
}
.brain-core img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(30,58,46,.18));
}
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 80px rgba(30,58,46,.18), 0 0 0 1px var(--border-soft), inset 0 1px 0 rgba(255,255,255,.6); }
  50%      { box-shadow: 0 0 110px rgba(194,97,61,.22), 0 0 0 1px var(--border-soft), inset 0 1px 0 rgba(255,255,255,.6); }
}
.brain-orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--border);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.brain-orbit.o2 {
  inset: 10%;
  border-color: var(--sage);
  opacity: .4;
  animation-duration: 22s;
  animation-direction: reverse;
}
.brain-orbit.o3 {
  inset: 20%;
  opacity: .25;
  animation-duration: 18s;
}
@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
.brain-node {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-2);
  animation: nodeFloat 6s ease-in-out infinite;
}
.brain-node .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terra);
}
.brain-node.n1 { top: 5%; left: 12%; }
.brain-node.n2 { top: 18%; right: 0; animation-delay: -1s; }
.brain-node.n3 { top: 50%; right: -10%; animation-delay: -2s; }
.brain-node.n4 { bottom: 18%; right: 5%; animation-delay: -3s; }
.brain-node.n5 { bottom: 0; left: 25%; animation-delay: -4s; }
.brain-node.n6 { top: 50%; left: -8%; animation-delay: -5s; }
.brain-node.n7 { top: 15%; left: 45%; animation-delay: -2.5s; }
@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Doctor dashboard mockup */
.dashboard-card {
  width: 540px;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
  border: 1px solid var(--border);
}
.dashboard-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
}
.dashboard-bar .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.dashboard-bar .label {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.dashboard-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dash-stat {
  background: var(--paper-warm);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
}
.dash-stat .label { font-size: 11px; color: var(--ink-mute); letter-spacing: .07em; text-transform: uppercase; }
.dash-stat .value { font-family: var(--serif); font-size: 36px; color: var(--ink); margin-top: 6px; line-height: 1; letter-spacing: -.02em; }
.dash-stat .change { font-size: 12px; color: var(--forest); margin-top: 6px; font-weight: 600; }
.dash-list {
  grid-column: span 2;
  background: var(--paper-warm);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  padding: 18px;
}
.dash-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.dash-list-head h4 { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.dash-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-soft);
}
.dash-item:last-child { border-bottom: none; }
.dash-item-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  flex-shrink: 0;
}
.dash-item-name { flex: 1; font-weight: 500; }
.dash-item-time { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }
.dash-item-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(30,58,46,.1);
  color: var(--forest);
}
.dash-item-badge.terra { background: rgba(194,97,61,.15); color: var(--terra-deep); }

/* ============================================================
   Languages section
   ============================================================ */
.languages {
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--radius-xl);
  padding: clamp(50px, 8vw, 100px);
  margin: 0 28px;
  position: relative;
  overflow: hidden;
}
.languages::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(194,97,61,.20), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(133,150,128,.15), transparent 50%);
  pointer-events: none;
}
.lang-content { position: relative; z-index: 2; }
.languages .eyebrow { color: var(--terra-soft); }
.languages h2 { color: var(--paper); max-width: 18ch; margin-bottom: 18px; }
.languages h2 .italic { color: var(--terra-soft); }
.languages .lead { color: rgba(243,238,228,.78); max-width: 60ch; }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.lang-card {
  background: rgba(243,238,228,.06);
  border: 1px solid rgba(243,238,228,.15);
  border-radius: 18px;
  padding: 22px;
  transition: background .25s, transform .3s;
}
.lang-card:hover { background: rgba(243,238,228,.12); transform: translateY(-3px); }
.lang-name {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-native {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--terra-soft);
  margin-bottom: 14px;
}
.lang-sample {
  background: rgba(0,0,0,.18);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(243,238,228,.85);
}
.lang-card.rtl .lang-sample { direction: rtl; text-align: right; }

/* ============================================================
   Testimonial
   ============================================================ */
.testimonial {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}
.testimonial-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 32px;
  font-variation-settings: "opsz" 144, "SOFT" 70;
}
.testimonial-quote .mark {
  color: var(--terra);
  font-style: italic;
}
.testimonial-author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--forest));
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
}
.testimonial-name { font-weight: 600; font-size: 15px; text-align: left; }
.testimonial-title { font-size: 13px; color: var(--ink-mute); text-align: left; }

/* ============================================================
   Pricing teaser
   ============================================================ */
.pricing-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  position: relative;
  transition: transform .3s;
}
.price-card:hover { transform: translateY(-3px); }
.price-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.price-card.featured h3, .price-card.featured .price-amount { color: var(--paper); }
.price-card.featured ul li { color: rgba(243,238,228,.85); }
.price-tag {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--terra);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.price-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--forest);
  margin-bottom: 6px;
}
.price-card.featured .price-name { color: var(--terra-soft); }
.price-amount {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.02em;
  margin: 14px 0 6px;
}
.price-period { font-size: 13px; color: var(--ink-mute); margin-bottom: 22px; }
.price-card.featured .price-period { color: rgba(243,238,228,.6); }
.price-card ul {
  list-style: none;
  padding: 22px 0 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.price-card.featured ul { border-color: rgba(243,238,228,.15); }
.price-card li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price-card li::before {
  content: '';
  width: 14px; height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3EEE4' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center / 9px no-repeat;
  margin-top: 4px;
}
.price-card.featured li::before { background-color: var(--terra); }
.price-card .btn { width: 100%; justify-content: center; margin-top: 24px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  list-style: none;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-left: 24px;
  transition: transform .3s, background .3s, border-color .3s;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  border-radius: 1px;
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 12px; transition: opacity .3s; }
[open] .faq-icon { background: var(--forest); border-color: var(--forest); }
[open] .faq-icon::before, [open] .faq-icon::after { background: var(--paper); }
[open] .faq-icon::after { opacity: 0; }
.faq-icon {
  position: relative;
}
.faq-a {
  padding-top: 16px;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 64ch;
}

/* ============================================================
   CTA block
   ============================================================ */
.cta-block {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-xl);
  padding: clamp(60px, 9vw, 110px) clamp(40px, 6vw, 80px);
  margin: 0 28px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(194,97,61,.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30,58,46,.4), transparent 50%);
  pointer-events: none;
}
.cta-block-inner { position: relative; z-index: 2; }
.cta-block h2 {
  color: var(--paper);
  font-size: clamp(40px, 5vw, 72px);
  max-width: 20ch;
  margin: 0 auto 24px;
}
.cta-block h2 .italic { color: var(--terra-soft); }
.cta-block p { color: rgba(243,238,228,.78); max-width: 56ch; margin: 0 auto 36px; font-size: 17px; }
.cta-block .btn-primary { background: var(--paper); color: var(--ink); }
.cta-block .btn-primary:hover { background: var(--terra); color: var(--paper); }
.cta-block .btn-ghost { color: var(--paper); border-color: rgba(243,238,228,.25); }
.cta-block .btn-ghost:hover { background: rgba(243,238,228,.06); border-color: rgba(243,238,228,.5); }
.cta-block-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { max-width: 36ch; color: var(--ink-soft); font-size: 14.5px; }
.footer-col h5 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--ink-soft); transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-mute);
}

/* ============================================================
   Animations on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .19s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .26s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .33s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .47s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .54s; opacity: 1; transform: translateY(0); }

/* ============================================================
   Forms (Demo / Waitlist pages)
   ============================================================ */
.form-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding: 80px 0 120px;
}
.form-page-info h1 { font-size: clamp(44px, 5.6vw, 84px); margin-bottom: 24px; }
.form-page-info h1 .italic { color: var(--forest); font-style: italic; }
.form-page-info .lead { font-size: 18px; margin-bottom: 36px; max-width: 44ch; }
.form-points {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.form-points strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; font-size: 15px; }
.form-points .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--forest);
  color: var(--paper);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.form-points .ic svg { width: 18px; height: 18px; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-2);
  position: sticky;
  top: 100px;
}
.form-card h3 { margin-bottom: 6px; font-size: 26px; }
.form-card .form-card-sub { font-size: 14px; color: var(--ink-mute); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink-soft);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(30,58,46,.1);
}
.form-field textarea { min-height: 110px; resize: vertical; font-family: var(--sans); }
.form-field .helper { font-size: 12px; color: var(--ink-mute); margin-top: 6px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 10px; }
.form-card-foot {
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

/* ============================================================
   Calendar (demo page)
   ============================================================ */
.calendar {
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.calendar-month {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}
.calendar-nav {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-soft);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.calendar-grid .day-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-mute);
  padding: 6px 0;
}
.calendar-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  transition: background .2s;
}
.calendar-day:hover { background: var(--paper); }
.calendar-day.muted { color: var(--ink-mute); opacity: .35; cursor: default; }
.calendar-day.selected { background: var(--forest); color: var(--paper); }
.calendar-day.has-slot { font-weight: 600; }
.calendar-day.has-slot::after {
  content: '';
  width: 4px; height: 4px;
  background: var(--terra);
  border-radius: 50%;
  position: absolute;
  margin-top: 18px;
}
.calendar-day { position: relative; }

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.slot {
  padding: 12px 8px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  font-family: var(--mono);
  font-feature-settings: "tnum";
  color: var(--ink);
  transition: all .2s;
}
.slot:hover { background: var(--paper-warm); border-color: var(--ink-soft); }
.slot.selected { background: var(--forest); color: var(--paper); border-color: var(--forest); }

/* ============================================================
   Page hero variant (small)
   ============================================================ */
.page-hero {
  padding: 60px 0 40px;
}
.page-hero h1 {
  font-size: clamp(48px, 6.4vw, 92px);
  margin-bottom: 22px;
}
.page-hero h1 .italic { color: var(--forest); font-style: italic; }
.page-hero .lead { font-size: 19px; max-width: 56ch; }

/* ============================================================
   Feature category sections (features page)
   ============================================================ */
.feature-category {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.feature-category:last-child { border-bottom: none; }
.feature-category-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: start;
}
.feature-category-head .eyebrow { margin-bottom: 18px; }
.feature-category h2 { font-size: clamp(36px, 4vw, 56px); }
.feature-category h2 .italic { color: var(--forest); font-style: italic; }
.feature-category p { font-size: 17px; max-width: 56ch; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-tile {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature-tile:hover { transform: translateY(-2px); border-color: var(--border-soft); box-shadow: var(--shadow-1); }
.feature-tile .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--paper-warm);
  color: var(--forest);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature-tile .ic svg { width: 20px; height: 20px; }
.feature-tile h4 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; line-height: 1.2; }
.feature-tile p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* ============================================================
   Mobile menu / responsive
   ============================================================ */
.menu-toggle { display: none; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 80px; }
  .hero-visual { height: 600px; order: 2; }
  .flow-detail-grid { grid-template-columns: 1fr !important; gap: 50px; }
  .flow-detail-grid .flow-detail-visual { order: 1 !important; height: 500px; }
  .features-bento { grid-template-columns: repeat(2, 1fr); }
  .span-3, .span-4, .span-6 { grid-column: span 2; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-row { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .feature-category-head { grid-template-columns: 1fr; gap: 24px; }
  .form-page { grid-template-columns: 1fr; gap: 50px; }
  .form-card { position: relative; top: auto; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-steps::before { display: none; }
  .flow-head { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-actions .btn-primary { 
    padding: 8px 14px; 
    font-size: 12px; 
    gap: 8px;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    background: var(--paper-warm);
    border-radius: 10px;
  }
  .nav-actions .btn-ghost { display: none; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .features-bento { grid-template-columns: 1fr; }
  .span-3, .span-4, .span-6, .span-2, .row-2 { grid-column: span 1; grid-row: auto; }
  .lang-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .languages { margin: 0 16px; padding: 50px 24px; }
  .cta-block { margin: 0 16px; padding: 50px 24px; }
  .dashboard-card { width: 100%; max-width: 380px; }
  .flow-steps { grid-template-columns: 1fr; }
  .hero-accent.a1, .hero-accent.a2, .hero-accent.a3 { transform: scale(.85); }
  .hero-accent.a1 { left: 0; }
  .hero-accent.a2 { right: 0; }
  .hero-accent.a3 { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
