/**
 * Doctors My Agency — Orange brand theme (#F97316)
 * Load AFTER landing.css
 */

:root,
html[data-theme="dark"],
html:not([data-theme="light"]) {
  --accent: #F97316;
  --accent-dark: #ea580c;
  --accent-light: #fb923c;
  --gold: #F97316;
  --gold-light: #fb923c;
  --gold-dark: #ea580c;
  --bg: #0c0c0e;
  --bg-alt: #121214;
  --bg-card: #18181b;
  --bg-elevated: #1f1f23;
  --text: #ffffff;
  --muted: #e4e4e7;
  --text-secondary: #d4d4d8;
  --purple: #F97316;
  --gradient: linear-gradient(135deg, #fb923c 0%, #F97316 50%, #ea580c 100%);
  --gradient-btn: linear-gradient(135deg, #F97316, #ea580c);
  --shadow-glow: 0 12px 40px rgba(249, 115, 22, 0.28);
  --nav-bg: rgba(12, 12, 14, 0.92);
  --nav-border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --accent-soft: rgba(249, 115, 22, 0.12);
  --accent-text: #fb923c;
  --wa-out: #005c4b;
  --wa-bg: #0b141a;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --text-secondary: #64748b;
  --accent-text: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.96);
  --nav-border: rgba(15, 23, 42, 0.08);
  --border-subtle: rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 8px 32px rgba(249, 115, 22, 0.18);
  --wa-out: #d9fdd3;
  --wa-bg: #e5ddd5;
}

/* Typography scale — readable & professional */
html { font-size: 16px; background: var(--bg) !important; overflow-x: hidden; }
body {
  font-size: 1rem;
  color: var(--text);
  margin: 0 !important;
  padding: 0 !important;
}
.section-head p,
.hero p,
.feature-card p,
.channel span,
.stat-label,
.testimonial-card blockquote,
.price-card li,
.problem-box p {
  color: var(--muted) !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}
.section-head h2,
.problem-box h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem) !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem) !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  line-height: 1.12 !important;
}
.hero h1 span {
  background: var(--gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.feature-card h3 { font-size: 1.0625rem !important; font-weight: 600 !important; color: var(--text) !important; }
.nav-links a { color: var(--text-secondary) !important; font-size: 0.9375rem !important; }
html[data-theme="light"] .nav-links a { color: var(--muted) !important; }
html[data-theme="light"] .nav-links a:hover { color: var(--accent) !important; }

@media (max-width: 768px) {
  body.nav-open { overflow: hidden; }
}
.nav-links a:hover { color: var(--accent) !important; }
.logo { font-size: 1.0625rem !important; color: var(--text) !important; }

/* Unified backgrounds */
body, section, .hero, .stats-strip, .portal-page {
  background: var(--bg) !important;
  color: var(--text);
}

header, section, footer {
  position: relative;
  z-index: 1;
}

nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 200 !important;
  overflow: visible !important;
}

.hero {
  overflow: hidden;
}
.wa-phone-wrap {
  overflow: hidden;
}

/* Cards */
.feature-card, .testimonial-card, .price-card, .portal-card,
.form-card, .faq-item, .channel, .problem-box {
  background: var(--bg-card) !important;
  border-color: var(--border-subtle) !important;
}

html[data-theme="light"] .feature-card,
html[data-theme="light"] .testimonial-card,
html[data-theme="light"] .price-card,
html[data-theme="light"] .channel {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

/* Orange accent */
.glow-purple { background: #F97316 !important; opacity: 0.18; }
.glow-blue { background: #fb923c !important; opacity: 0.12; }
.glow-teal { display: none; }

.btn {
  font-size: 0.9375rem !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
}
.btn-primary {
  background: var(--gradient-btn) !important;
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.35) !important;
  color: #fff !important;
}
.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(249, 115, 22, 0.45) !important;
  filter: brightness(1.05);
}
.btn-outline {
  border-color: var(--border-subtle) !important;
  color: var(--text) !important;
}
.btn-outline:hover {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
}
.badge {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  border-color: rgba(249, 115, 22, 0.25) !important;
  font-size: 0.8125rem !important;
  padding: 6px 14px !important;
}

.problem-box .accent { color: var(--accent) !important; }
.stats-strip {
  border-top: 1px solid var(--border-subtle) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  padding: 40px 0 !important;
}
.stats-value {
  background: var(--gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
}
.stat-label { font-size: 0.9375rem !important; color: var(--muted) !important; }

.cta-banner {
  background: var(--gradient) !important;
  border-radius: 16px !important;
  padding: 56px 40px !important;
}
.cta-banner h2 { font-size: clamp(1.5rem, 2.5vw, 2rem) !important; color: #fff !important; }
.cta-banner p { color: rgba(255,255,255,0.92) !important; font-size: 1.0625rem !important; }
.cta-banner .btn { background: #fff !important; color: #ea580c !important; font-weight: 700 !important; }

.faq-question { font-size: 1rem !important; color: var(--text) !important; }
.faq-question:hover { color: var(--accent) !important; background: var(--accent-soft) !important; }
.faq-icon { background: var(--accent-soft) !important; color: var(--accent) !important; }
.faq-item.is-open { border-color: rgba(249, 115, 22, 0.4) !important; }
.faq-answer p { font-size: 0.9375rem !important; color: var(--muted) !important; }

.feature-card:hover, .channel:hover, .testimonial-card:hover,
.price-card:hover, .portal-card:hover {
  border-color: rgba(249, 115, 22, 0.45) !important;
  transform: translateY(-4px);
}
.price-card.popular {
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-glow) !important;
}

.feature-card.signature {
  border-color: rgba(249, 115, 22, 0.35) !important;
  background: linear-gradient(135deg, rgba(249,115,22,0.06), rgba(249,115,22,0.02)) !important;
}

.theme-toggle:hover { border-color: var(--accent) !important; }

/* Theme toggle — SVG icons (no emoji) */
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle.is-light .icon-sun { display: none; }
.theme-toggle.is-light .icon-moon { display: block; }

/* Portal nav — visible logo & contrast in dark + light mode */
.portal-page nav,
body.portal-page nav {
  background: var(--nav-bg) !important;
  border-bottom: 1px solid var(--nav-border) !important;
  backdrop-filter: blur(12px);
}
.portal-page .logo,
.portal-page nav .logo {
  color: var(--text) !important;
  font-weight: 700 !important;
}
.portal-page .logo-icon {
  background: var(--gradient-btn) !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}
html[data-theme="light"] .portal-page nav {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .portal-page .logo {
  color: #0f172a !important;
}

@media (max-width: 768px) {
  .portal-page nav,
  body.portal-page nav {
    padding: 10px 16px 0 !important;
    background: transparent !important;
    border-bottom: none !important;
    min-height: 0;
  }
  .portal-page nav .container.nav-inner,
  .portal-page .nav-inner {
    background: var(--nav-bg) !important;
    border: 1px solid var(--nav-border) !important;
    border-radius: 14px;
    padding: 10px 14px !important;
    min-height: 52px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  }
}
html[data-theme="dark"] .portal-page .logo,
html:not([data-theme="light"]) .portal-page .logo {
  color: #ffffff !important;
}
.portal-page .nav-cta .btn-outline {
  border-color: var(--border-subtle) !important;
  color: var(--text) !important;
}
.portal-page .nav-cta .btn-outline:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

.feature-icon { background: rgba(249, 115, 22, 0.12) !important; }

footer.site-footer, footer {
  background: #050506 !important;
  color: #e4e4e7 !important;
  margin: 0 !important;
  padding-bottom: 32px !important;
  position: relative;
  z-index: 2;
  box-shadow: none !important;
}
#salesbot-window:not(.open),
#salesbot-bubble.hidden {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}
#salesbot-window.open {
  display: flex !important;
  height: auto !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  visibility: visible !important;
  pointer-events: auto;
}
#salesbot-window,
#salesbot-bubble {
  position: fixed !important;
  margin: 0 !important;
}
#salesbot-messages {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
#salesbot-input-area {
  flex-shrink: 0 !important;
  background: #fff !important;
}
#salesbot-input {
  font-size: 16px !important;
}
body.dma-salesbot-keyboard #salesbot-powered {
  display: none !important;
}
@media (max-width: 768px) {
  #salesbot-window.open {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    bottom: auto !important;
    border-radius: 0 !important;
    transform: none !important;
  }
}
footer p, footer a { color: #a1a1aa !important; font-size: 0.9375rem !important; }
footer a:hover { color: var(--accent-light) !important; }
footer h4 { color: #71717a !important; }

/* Hero layout pro spacing */
.hero {
  padding: 72px 0 88px !important;
  position: relative;
}
.hero-grid {
  gap: 56px !important;
  align-items: center !important;
}
section { padding: 80px 0 !important; }
.section-head { margin-bottom: 48px !important; max-width: 720px !important; }

/* WhatsApp phone mockup — interior colors fixed regardless of page theme */
.wa-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 900px;
  contain: layout style;
  overflow: hidden;
}
.wa-phone {
  width: 100%;
  max-width: 310px;
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.45s ease;
  animation: waPhoneFloat 5s ease-in-out infinite;
  contain: layout style paint;
}
@keyframes waPhoneFloat {
  0%, 100% { transform: rotateY(-8deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-6deg) rotateX(1deg) translateY(-10px); }
}
.wa-phone:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-4px);
  animation-play-state: paused;
}
.wa-phone-frame {
  background: linear-gradient(155deg, #3a3a3f 0%, #1c1c1f 45%, #0e0e10 100%);
  border-radius: 40px;
  padding: 11px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(0,0,0,0.5),
    0 28px 56px rgba(0,0,0,0.55),
    0 0 90px rgba(249, 115, 22, 0.14);
  position: relative;
}
.wa-phone-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #0a0a0c;
  border-radius: 0 0 18px 18px;
  z-index: 3;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04);
}
.wa-phone-notch::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a1e;
  box-shadow: inset 0 0 2px rgba(255,255,255,0.15);
}
.wa-screen {
  background: #e5ddd5;
  border-radius: 30px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.wa-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 4px;
  background: #075e54;
  color: rgba(255,255,255,0.92);
  font-size: 0.6875rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.wa-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wa-header {
  background: #075e54;
  padding: 6px 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  flex-shrink: 0;
}
.wa-header-back,
.wa-header-icon {
  background: none;
  border: none;
  padding: 6px;
  color: rgba(255,255,255,0.95);
  display: grid;
  place-items: center;
  cursor: default;
  flex-shrink: 0;
  line-height: 0;
}
.wa-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F97316, #ea580c);
  display: grid;
  place-items: center;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.wa-header-info {
  flex: 1;
  min-width: 0;
}
.wa-header-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-header-status {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.82);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}
.wa-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  animation: waPulse 2s ease infinite;
  flex-shrink: 0;
}
@keyframes waPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}
.wa-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.wa-chat-area {
  flex: 1;
  padding: 12px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: #e5ddd5;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h80v80H0z' fill='none'/%3E%3Cg fill='%23c8bdb3' fill-opacity='0.35'%3E%3Ccircle cx='10' cy='10' r='1.5'/%3E%3Ccircle cx='50' cy='30' r='1'/%3E%3Ccircle cx='70' cy='60' r='1.2'/%3E%3Ccircle cx='30' cy='70' r='1'/%3E%3C/g%3E%3C/svg%3E");
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.wa-chat-area::-webkit-scrollbar { width: 0; }

.wa-msg {
  max-width: 82%;
  padding: 6px 8px 5px 9px;
  border-radius: 7.5px;
  font-size: 0.8125rem;
  line-height: 1.42;
  color: #111b21;
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}
.wa-msg.wa-visible {
  animation: waMsgPopIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes waMsgPopIn {
  to { opacity: 1; transform: translateY(0); }
}
.wa-msg-in {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 2px;
}
.wa-msg-in::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 10px 0;
  border-color: transparent #fff transparent transparent;
}
.wa-msg-out {
  align-self: flex-end;
  background: #d9fdd3;
  border-top-right-radius: 2px;
}
.wa-msg-out::before {
  content: '';
  position: absolute;
  right: -6px;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 10px 8px;
  border-color: transparent transparent transparent #d9fdd3;
}
.wa-msg-text { display: inline; }
.wa-msg-time {
  font-size: 0.625rem;
  color: rgba(17,27,33,0.45);
  float: right;
  margin-left: 10px;
  margin-top: 5px;
  line-height: 1;
  position: relative;
  top: 2px;
}

.wa-voice {
  align-self: flex-start;
  background: #fff;
  border-radius: 7.5px;
  border-top-left-radius: 2px;
  padding: 8px 10px 6px;
  max-width: 72%;
  opacity: 0;
  transform: translateY(14px);
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
  position: relative;
}
.wa-voice.wa-visible {
  animation: waMsgPopIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.wa-voice::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 10px 0;
  border-color: transparent #fff transparent transparent;
}
.wa-voice-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-voice-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}
.wa-voice-wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
}
.wa-voice-wave span {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: #8696a0;
  animation: waWave 1.2s ease-in-out infinite;
}
.wa-voice-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.wa-voice-wave span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.wa-voice-wave span:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.wa-voice-wave span:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.wa-voice-wave span:nth-child(5) { height: 18px; animation-delay: 0.15s; }
.wa-voice-wave span:nth-child(6) { height: 10px; animation-delay: 0.25s; }
.wa-voice-wave span:nth-child(7) { height: 16px; animation-delay: 0.05s; }
.wa-voice-wave span:nth-child(8) { height: 11px; animation-delay: 0.35s; }
@keyframes waWave {
  0%, 100% { transform: scaleY(0.6); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
.wa-voice-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 0.625rem;
  color: rgba(17,27,33,0.45);
}
.wa-voice-dur { color: #8696a0; }

.wa-typing {
  align-self: flex-end;
  background: #d9fdd3;
  padding: 11px 14px 10px;
  border-radius: 7.5px;
  border-top-right-radius: 2px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transform: translateY(10px);
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}
.wa-typing.wa-visible {
  animation: waTypingIn 0.28s ease forwards;
}
.wa-typing.wa-hiding {
  animation: waTypingOut 0.22s ease forwards;
}
.wa-typing::before {
  content: '';
  position: absolute;
  right: -6px;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 10px 8px;
  border-color: transparent transparent transparent #d9fdd3;
}
@keyframes waTypingIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes waTypingOut {
  to { opacity: 0; transform: translateY(6px); height: 0; padding: 0; margin: 0; overflow: hidden; }
}
.wa-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8696a0;
  animation: waDot 1.1s ease infinite;
}
.wa-typing span:nth-child(2) { animation-delay: 0.18s; }
.wa-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes waDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.wa-input-bar {
  background: #f0f2f5;
  padding: 6px 8px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.wa-input-icon {
  background: none;
  border: none;
  padding: 4px;
  color: #54656f;
  display: grid;
  place-items: center;
  cursor: default;
  flex-shrink: 0;
  line-height: 0;
}
.wa-input-emoji {
  font-size: 1.25rem;
  line-height: 1;
}
.wa-input-fake {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 0.9375rem;
  color: #8696a0;
  min-width: 0;
}
.wa-mic-fab {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: default;
  box-shadow:
    0 2px 8px rgba(37, 211, 102, 0.35),
    0 0 0 2px rgba(249, 115, 22, 0.25);
  line-height: 0;
  animation: waMicPulse 3s ease-in-out infinite;
}
@keyframes waMicPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35), 0 0 0 2px rgba(249, 115, 22, 0.25); }
  50% { box-shadow: 0 2px 12px rgba(37, 211, 102, 0.5), 0 0 0 3px rgba(249, 115, 22, 0.35); }
}

.channel strong { font-size: 1rem !important; color: var(--text) !important; }
.channel-desc { color: var(--muted) !important; font-size: 0.875rem !important; display: block; margin-top: 8px; line-height: 1.5 !important; }
.channel {
  padding: 28px 24px !important;
  border-radius: 14px !important;
  text-align: center;
}
.channels { gap: 20px !important; }

.problem-box {
  padding: 48px 40px !important;
  border-radius: 16px !important;
  text-align: center;
  border: 1px solid var(--border-subtle) !important;
  max-width: 820px;
  margin: 0 auto;
}
.problem-box p { font-size: 1.0625rem !important; }

.feature-grid { gap: 20px !important; }
.feature-card {
  padding: 24px !important;
  border-radius: 14px !important;
}

.workflow-step strong { color: var(--text) !important; font-size: 0.9375rem !important; }
.workflow-step p { color: var(--muted) !important; font-size: 0.8125rem !important; margin-top: 6px; line-height: 1.4 !important; }
.workflow-step .num {
  background: var(--gradient) !important;
  color: #fff !important;
}

/* Keep all 5 steps on one row — flex-wrap was pushing "Booked" to line 2 */
.workflow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  flex-wrap: unset !important;
  gap: 4px 6px !important;
  align-items: center;
  padding: 32px 16px !important;
}
.workflow-step {
  min-width: 0 !important;
  padding: 12px 4px !important;
}
.workflow-arrow {
  flex-shrink: 0;
  font-size: 1.125rem !important;
  line-height: 1;
  padding: 0 2px;
}

@media (max-width: 900px) {
  .workflow {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 24px 16px !important;
  }
  .workflow-arrow { transform: rotate(90deg); }
}

.price-card h3 { font-size: 1.0625rem !important; color: var(--text) !important; }
.price-card .amount { font-size: 2.25rem !important; color: var(--text) !important; }
.price-card li { font-size: 0.9375rem !important; line-height: 1.5 !important; }

html[data-theme="light"] section:nth-of-type(even) {
  background: var(--bg-alt) !important;
}
html[data-theme="dark"] section:nth-of-type(even),
html:not([data-theme="light"]) section:nth-of-type(even) {
  background: var(--bg-alt) !important;
}

.signature-tag { color: var(--accent) !important; }

.hero-trust {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  text-align: left;
  max-width: 420px;
}
.hero-trust li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}
.hero-trust li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.stat-desc {
  font-size: 0.8125rem !important;
  color: var(--muted) !important;
  margin-top: 8px;
  line-height: 1.45 !important;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  text-align: left;
}
.pain-item {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 16px;
}
.pain-item strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 6px;
}
.pain-item span {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px 20px;
  transition: transform 0.2s, border-color 0.2s;
}
.value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.35);
}
.value-icon { font-size: 1.5rem; margin-bottom: 12px; }
.value-card h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin-bottom: 8px;
}
.value-card p {
  font-size: 0.875rem !important;
  color: var(--muted) !important;
  line-height: 1.55 !important;
  margin: 0;
}

.voice-benefits {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.voice-benefits li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}
.voice-benefits li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.clinic-note {
  text-align: center;
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px 24px;
}
.trust-block h3 {
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin-bottom: 10px;
}
.trust-block p {
  font-size: 0.9375rem !important;
  color: var(--muted) !important;
  line-height: 1.6 !important;
  margin: 0;
}

.testimonial-card blockquote {
  font-size: 0.9375rem !important;
  line-height: 1.65 !important;
}

/* Voice section — two-col copy + flat phone variant */
.voice-section { overflow: hidden; }
.voice-section .two-col { gap: 56px; }
.voice-section-copy h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.voice-section-copy p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}
.wa-phone-wrap--voice { perspective: none; }
.wa-phone--voice {
  transform: none;
  animation: waPhoneFloatVoice 5s ease-in-out infinite;
}
@keyframes waPhoneFloatVoice {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.wa-phone--voice:hover {
  transform: translateY(-4px);
  animation-play-state: paused;
}
.wa-msg-in.wa-voice-transcript .wa-msg-text {
  font-style: italic;
  color: #667781;
}

html[data-theme="light"] .portal-page .form-card {
  background: #fff !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}
.field input:focus, .field select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2) !important;
}
a { color: var(--accent); }
a:hover { color: var(--accent-light); }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .wa-phone-wrap {
    order: 2;
    margin-top: 16px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .hero-copy { order: 1; }
  .wa-phone {
    transform: none;
    width: min(78vw, 300px);
    max-width: 300px;
    margin: 0 auto;
    animation: none;
  }
  .wa-phone:hover { transform: none; }
  .wa-phone-frame { padding: 10px; border-radius: 36px; }
  .wa-screen {
    min-height: 0;
    height: auto;
    aspect-ratio: 9 / 19.5;
    min-height: 540px;
  }
  nav {
    padding: 10px 16px 0 !important;
    background: transparent !important;
    border-bottom: none !important;
    min-height: 0;
  }
  nav .container.nav-inner {
    background: var(--nav-bg) !important;
    border: 1px solid var(--nav-border) !important;
    border-radius: 14px;
    padding: 10px 14px !important;
    min-height: 52px;
    max-width: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    justify-content: flex-start;
    gap: 10px;
  }
  .logo-text { display: none; }
  .logo { gap: 0; font-size: 0; }
  .nav-toggle {
    width: 40px;
    height: 40px;
    margin-left: auto;
  }
  .hero { padding: 48px 0 56px !important; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .voice-section .two-col { gap: 32px; }
  .voice-section-copy { order: 1; }
  .wa-phone-wrap--voice {
    order: 2;
    margin-top: 16px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .wa-phone--voice {
    width: min(78vw, 300px);
    max-width: 300px;
    margin: 0 auto;
    animation: none;
  }
  .wa-phone--voice:hover { transform: none; }
  .wa-phone--voice .wa-screen {
    min-height: 0;
    aspect-ratio: 9 / 19.5;
    min-height: 540px;
  }
  .hero-trust { margin-left: auto; margin-right: auto; }
  .pain-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .trust-grid { grid-template-columns: 1fr; }
  .stat-desc { max-width: none; }
  section.value-section,
  section.trust-section { padding: 56px 0 !important; }
}
@media (max-width: 400px) {
  .value-grid { grid-template-columns: 1fr; }
  .wa-phone,
  .wa-phone--voice {
    width: min(82vw, 290px);
  }
  .wa-screen { min-height: 520px; }
  .wa-msg { font-size: 0.75rem; }
}
