/* Cyrillic override — DM Sans lacks Cyrillic */
:lang(ru) {
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }
body {
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-surface-mid);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 { font-family: var(--font-display); font-size: var(--font-size-5xl); font-weight: 800; line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
h2 { font-family: var(--font-display); font-size: var(--font-size-4xl); font-weight: var(--font-weight-bold); line-height: var(--leading-snug); letter-spacing: var(--tracking-tight); }
h3 { font-family: var(--font-display); font-size: var(--font-size-2xl); font-weight: var(--font-weight-bold); line-height: var(--leading-snug); }
h4 { font-family: var(--font-display); font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); }
p  { line-height: var(--leading-normal); }
.lead { font-size: var(--font-size-lg); line-height: var(--leading-relaxed); color: var(--color-text-secondary); }

@media (min-width: 1024px) {
  h1 { font-size: var(--font-size-6xl); }
}

a { color: var(--color-interactive-hover); }
img { max-width: 100%; height: auto; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

@media (min-width: 1280px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

/* Section base */
.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section-compact {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

/* ============================================
   ICONS (Lucide SVG)
   ============================================ */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.feature-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  color: var(--color-interactive-hover);
}

.story-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  color: var(--color-interactive-hover);
}

.proof-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-accent-hover);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background-color var(--duration-normal) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background-color: var(--color-accent-400);
  color: #1a1a0e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}
.btn-primary:active {
  transform: scale(0.98) translateY(0);
  box-shadow: none;
}
.btn-primary:focus-visible {
  outline: 3px solid var(--color-text-inverse);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background-color: transparent;
  color: var(--color-interactive-hover);
  border: 2px solid var(--color-interactive);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}
.btn-secondary:hover {
  background-color: var(--color-interactive-soft);
  border-color: var(--color-interactive-hover);
  color: var(--color-interactive-press);
}

/* Dark-bg variant (math section, demo section) */
.btn-secondary--dark {
  color: var(--color-text-inverse);
  border-color: var(--color-white-40);
}
.btn-secondary--dark:hover {
  background: var(--color-white-10);
  border-color: var(--color-text-inverse);
  color: var(--color-text-inverse);
}

.btn-large { padding: var(--space-4) var(--space-8); font-size: var(--font-size-lg); }

/* Focus visible global */
*:focus-visible {
  outline: 3px solid var(--color-interactive);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
*:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  height: 72px;
  overflow: visible;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}


.logo-icon { display: none; }
.logo-text { display: none; }

.logo-img {
  height: 63px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

html.dark .logo-img {
  filter: invert(1) hue-rotate(180deg);
}

/* Footer logo: always white on dark footer background */
.footer-logo {
  height: 63px;
  margin-bottom: 8px;
  filter: invert(1) hue-rotate(180deg);
}

@media (max-width: 768px) {
  .nav-logo .logo-img { height: 80px; }
  .footer-logo { height: 80px; }
  .nav-container { height: 92px; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: all 0.2s;
}

.nav-header-controls {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-nav-link);
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: 1.1rem;
  transition: color var(--duration-fast);
}
.nav-links a:hover {
  color: var(--color-nav-link-hover);
}

.nav-lang {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.lang-btn {
  padding: 4px 8px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-tertiary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.lang-btn:hover { border-color: var(--color-interactive); color: var(--color-interactive-hover); }
.lang-btn.active { background: var(--color-interactive); color: var(--color-text-inverse); border-color: var(--color-interactive); }

.nav-links .nav-dashboard {
  padding: 7px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  line-height: 1.25;
}
.nav-links .nav-dashboard:hover { background: var(--color-surface-mid); color: var(--color-text-primary); }

.nav-links .nav-cta {
  background: var(--color-interactive);
  color: var(--color-text-inverse);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  display: inline-flex;
  align-items: center;
  line-height: 1.25;
  white-space: nowrap;
}
.nav-links .nav-cta:hover { background: var(--color-primary-200); color: var(--color-text-primary); }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: var(--space-20) 0 var(--space-16);
  background: linear-gradient(180deg, var(--color-interactive-soft) 0%, var(--color-text-inverse) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-content { text-align: left; }

.hero-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: var(--color-accent-100);
  color: var(--color-accent-hover);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, var(--font-size-5xl));
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.hero-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

/* P1-A: Hero social proof */
.hero-proof {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  letter-spacing: 0.01em;
}
.hero-proof .proof-num {
  font-weight: var(--font-weight-semibold);
  color: var(--color-interactive-hover);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* ============================================
   PHONE ILLUSTRATION
   ============================================ */
.phone-illustration {
  position: relative;
  width: 220px;
  height: 380px;
  margin: 0 auto;
}
.phone-frame {
  width: 220px;
  height: 380px;
  background: linear-gradient(135deg, var(--color-phone-body-start), var(--color-phone-body-end));
  border-radius: var(--radius-2xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: var(--color-phone-notch);
  border-radius: var(--radius-sm);
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-phone-screen-start), var(--color-phone-screen-end));
  border-radius: calc(var(--radius-2xl) - 4px);
  padding: var(--space-7) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
}
.call-indicator {
  background: var(--color-interactive);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  text-align: center;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  animation: pulse-call 2s ease-in-out infinite;
}
.call-indicator .call-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2px;
  color: var(--color-text-inverse);
}
.call-indicator .call-text { opacity: 0.9; font-size: 10px; margin-top: 2px; }
.call-indicator .call-customer { opacity: 0.8; font-size: 9px; margin-top: 2px; }
.grace-status {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  text-align: center;
  box-shadow: var(--shadow-xs);
}
.grace-status .status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: var(--radius-full);
  margin-right: 4px;
  animation: blink 1.5s ease-in-out infinite;
}
.grace-status .status-text { font-size: 12px; font-weight: var(--font-weight-semibold); color: var(--color-text-primary); }
.speech-bubble {
  background: var(--color-interactive);
  color: var(--color-text-inverse);
  border-radius: 14px 14px 4px 14px;
  padding: var(--space-3) var(--space-4);
  font-size: 11px;
  line-height: 1.4;
  max-width: 90%;
  align-self: flex-end;
  box-shadow: 0 2px 8px rgba(34, 114, 195, 0.2);
  animation: fadeInUp 0.6s ease 0.5s both;
}
.speech-bubble-reply {
  background: #ffffff;
  color: var(--color-text-primary);
  border-radius: 14px 14px 14px 4px;
  padding: var(--space-3) var(--space-4);
  font-size: 11px;
  line-height: 1.4;
  max-width: 85%;
  align-self: flex-start;
  box-shadow: var(--shadow-xs);
  animation: fadeInUp 0.6s ease 1.2s both;
}

@keyframes pulse-call { 0%,100% { opacity: 1; } 50% { opacity: 0.85; } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   PROOF BAR
   ============================================ */
.proof-bar {
  padding: var(--space-6) 0;
  background: var(--color-surface-mid);
  border-bottom: 1px solid var(--color-border);
}
.proof-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
}

/* ============================================
   MATH / ROI
   ============================================ */
.math-section {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, var(--color-surface-dark), var(--color-primary));
  color: var(--color-text-inverse);
  text-align: center;
}
.math-line {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
  color: var(--color-white-85);
}
.math-loss {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-danger);
  margin: var(--space-5) 0;
}
.math-highlight {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-text-inverse);
  margin: var(--space-6) 0;
  line-height: var(--leading-snug);
}

/* ============================================
   AGENTS SECTION
   ============================================ */
.agents-section {
  padding: var(--section-py) 0;
}
.agents-section h2,
.steps-section h2 {
  text-align: center;
  margin-bottom: var(--space-2);
}
.section-sub {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-12);
}
.agents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.agent-card {
  background: #ffffff;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  position: relative;
}

.card-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

.agent-card-header { margin-bottom: var(--space-2); }
.agent-name {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}
.agent-card .agent-role {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.agent-tagline {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-1);
}
.agent-price {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-3);
}
.price-from {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-right: 2px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-text-primary);
}
.price-period {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}
.agent-desc {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
  line-height: var(--leading-normal);
}
.agent-card-cta {
  display: inline-block;
  color: var(--color-interactive-hover);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  text-decoration: none;
}
.agent-card-cta:hover { text-decoration: underline; }

/* P1-C: Agent card accent borders */
#agent-grace { border-top: 3px solid #2272c3; }
#agent-mia   { border-top: 3px solid #d97706; }
#agent-roxy  { border-top: 3px solid #e11d48; }
#agent-nora  { border-top: 3px solid #16a34a; }

/* ============================================
   STEPS
   ============================================ */
.steps-section {
  padding: var(--section-py) 0;
  background: var(--color-surface-mid);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
}
.step { text-align: center; }
.step-number {
  width: 48px;
  height: 48px;
  background: var(--color-interactive);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--font-size-xl);
  margin: 0 auto var(--space-4);
}
.step h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}
.step p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* ============================================
   DEMO
   ============================================ */
/* P1-B: Demo contractor photo */
.demo-photo-wrap {
  max-width: 480px;
  margin: 0 auto var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.demo-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.demo-section {
  padding: var(--section-py) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-surface-dark), var(--color-primary));
  color: var(--color-text-inverse);
}
.demo-section h2 {
  font-size: clamp(1.5rem, 3vw, var(--font-size-4xl));
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}
.demo-desc {
  max-width: 640px;
  margin: 0 auto var(--space-8);
  color: var(--color-white-80);
  font-size: var(--font-size-base);
}
.demo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-success);
  color: var(--color-text-inverse);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  text-decoration: none;
  transition: background var(--duration-fast);
  margin-bottom: var(--space-4);
}
.demo-cta-btn:hover { background: var(--color-success-dark); }
.demo-tip {
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--font-size-sm);
  color: var(--color-white-55);
  line-height: var(--leading-normal);
}

/* ============================================
   CTA SECTION
   ============================================ */
.section-cta {
  padding: var(--section-py) 0;
  text-align: center;
  background: var(--color-interactive-soft);
}
.section-cta h2 {
  font-size: clamp(1.5rem, 3vw, var(--font-size-4xl));
  margin-bottom: var(--space-2);
}
.cta-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-8);
}
.section-cta .btn-primary { margin-bottom: var(--space-3); }
.cta-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

/* ============================================
   ABOUT / STORY
   ============================================ */
.story-section {
  padding: var(--section-py) 0 var(--space-12);
}
.story-section h1 {
  font-size: clamp(2rem, 4vw, var(--font-size-5xl));
  margin-bottom: var(--space-8);
  text-align: center;
}
.story-content {
  max-width: 700px;
  margin: 0 auto var(--space-12);
}
.story-lead {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}
.story-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-lg);
}
.story-bold {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-interactive-hover);
  margin-top: var(--space-6);
}
.story-icons {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}
.story-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.story-icon-item span:last-child {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
}

/* ============================================
   ONBOARDING
   ============================================ */

/* ============================================
   PRICING PAGE
   ============================================ */
.pricing-hero {
  padding: var(--space-16) 0 var(--space-8);
  text-align: center;
  background: var(--color-interactive-soft);
}
.pricing-hero h1 {
  font-size: clamp(1.75rem, 4vw, var(--font-size-5xl));
  margin-bottom: var(--space-2);
}

.pricing-section {
  padding: var(--space-12) 0 var(--space-16);
}
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.pricing-note {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-top: var(--space-8);
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  position: relative;
  max-width: 360px;
}
.pricing-card.featured {
  border-color: var(--color-interactive);
  box-shadow: var(--shadow-md);
}
.pricing-agent-name {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  color: var(--color-primary);
  margin-bottom: 2px;
}
.pricing-role {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}
.pricing-price { margin-bottom: var(--space-5); }
.pricing-features {
  list-style: none;
  text-align: left;
  padding: 0;
  margin-bottom: var(--space-6);
}
.pricing-features li {
  padding: var(--space-2) 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--color-border);
}
.pricing-cta {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background: var(--color-interactive);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: background var(--duration-fast);
}
.pricing-cta:hover { background: var(--color-primary-200); color: var(--color-text-primary); }

/* Multi-tier (Mia) pricing */
.pricing-tier-group { margin-bottom: var(--space-4); }
.tier-group-title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  color: var(--color-primary);
  margin-bottom: 4px;
  text-align: center;
}
.tier-group-role {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}
.tier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.tier-cards .pricing-card { max-width: none; }

/* ============================================
   COMPARISON TABLE
   ============================================ */
.section-compare {
  padding: var(--space-16) 0;
  background: var(--color-surface-mid);
}
.comparison-section h2 {
  text-align: center;
  margin-bottom: var(--space-8);
}
.comparison-table-wrapper {
  overflow-x: auto;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
}
.comparison-table th {
  background: var(--color-surface-mid);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}
.comparison-table td:first-child,
.comparison-table th:first-child {
  text-align: left;
  font-weight: var(--font-weight-medium);
}
.comparison-table .highlight {
  background: var(--color-interactive-soft);
  color: var(--color-interactive-hover);
  font-weight: var(--font-weight-bold);
}
.comparison-table th.highlight {
  background: var(--color-interactive);
  color: var(--color-text-inverse);
}
.compare-price {
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-xs);
}
.cost-row { font-weight: var(--font-weight-bold); }
.cost-row td { border-bottom: none; }

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  padding: var(--section-py) 0;
}
.faq-section h2 {
  text-align: center;
  margin-bottom: var(--space-10);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-border-strong);
  padding: 0;
}
.faq-question {
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: 1.1rem;
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: var(--font-size-2xl);
  color: var(--color-interactive);
  font-weight: var(--font-weight-regular);
  flex-shrink: 0;
  margin-left: var(--space-4);
}
.faq-item[open] .faq-question::after { content: '\2212'; }
.faq-answer {
  padding: 0 0 var(--space-5);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--leading-normal);
}

/* ============================================
   AGENT DETAIL PAGES
   ============================================ */
.agent-hero {
  padding: var(--space-16) 0 var(--space-10);
  background: var(--color-interactive-soft);
  text-align: center;
}
.agent-hero-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: var(--color-accent-100);
  color: var(--color-accent-hover);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
}
.agent-hero h1 {
  font-size: clamp(2rem, 4vw, var(--font-size-5xl));
  margin-bottom: var(--space-2);
}
.agent-hero-tagline {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
}

.agent-detail {
  padding: var(--space-16) 0;
}
.agent-features h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}
.agent-detail-desc {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-8);
  max-width: 640px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}
.feature-item {
  background: var(--color-surface-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}
.feature-item h3 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.agent-pricing-box {
  background: var(--color-interactive-soft);
  border: 2px solid var(--color-interactive);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  text-align: center;
  display: inline-block;
  margin: var(--space-6) 0;
}
.agent-pricing-box .price-amount {
  font-size: var(--font-size-5xl);
}
.agent-pricing-box p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-top: var(--space-1);
}

/* Mia tiers on detail page */
.mia-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}
.tier-card {
  background: #ffffff;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tier-card.featured {
  border-color: var(--color-interactive);
  box-shadow: var(--shadow-md);
}
.tier-card h4 {
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.tier-tag {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-3);
}
.tier-card .card-badge {
  position: absolute;
  top: -10px;
  right: 16px;
}
.tier-card .pricing-features { margin-bottom: 0; flex-grow: 1; }
.tier-card .pricing-features li { text-align: left; }
.tier-card .pricing-cta { margin-top: auto; }

.single-tier-wrap {
  max-width: 420px;
  margin: var(--space-8) auto 0;
}
.single-tier-wrap .tier-card {
  width: 100%;
}
.agent-features h3 {
  font-size: var(--font-size-xl);
  margin: var(--space-8) 0 var(--space-4);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-surface-dark);
  color: var(--color-white-60);
  padding: var(--space-12) 0 0;
}
.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-2); }
.footer-brand .logo-icon { background: var(--color-interactive); }
.footer-brand .logo-text { color: var(--color-text-inverse); }
.footer-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-white-50);
}
.footer-col h4 {
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}
.footer-col ul {
  list-style: none;
}
.footer-col a {
  color: var(--color-white-60);
  text-decoration: none;
  font-size: var(--font-size-sm);
  display: block;
  padding: var(--space-1) 0;
  transition: color var(--duration-fast);
}
.footer-col a:hover { color: var(--color-text-inverse); }

.footer-bottom {
  margin-top: var(--space-10);
  padding: var(--space-4) var(--container-gutter);
  border-top: 1px solid var(--color-white-10);
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-white-40);
}

/* ============================================
   PORTAL / DASHBOARD
   ============================================ */
.portal-section {
  padding: var(--space-16) 0;
  background: var(--color-surface-mid);
  text-align: center;
}
.portal-section h2 {
  margin-bottom: var(--space-2);
}
.portal-cards {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.portal-card {
  background: #ffffff;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 400px;
  text-align: center;
}
.portal-card h3 {
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.portal-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-5);
}

/* ============================================
   404 PAGE
   ============================================ */
.page-header {
  padding: var(--section-py) 0;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, var(--font-size-5xl));
  margin-bottom: var(--space-3);
}

/* ============================================
   TIER NAME / TAGLINE
   ============================================ */
.tier-name {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.tier-tagline {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-cards,
  .mia-tiers { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-header-controls {
    display: flex;
  }
  .nav-header-controls .theme-toggle {
    width: 28px;
    height: 28px;
    padding: 0;
  }
  .nav-header-controls .theme-toggle svg {
    width: 16px;
    height: 16px;
  }
  .nav-header-controls .lang-btn {
    padding: 3px 6px;
    font-size: 11px;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-surface-mid);
    border-bottom: 1px solid var(--color-border-strong);
    padding: var(--space-4) var(--container-gutter);
    gap: var(--space-2);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .nav-links.active a { padding: var(--space-2) 0; }
  .nav-links.active .nav-lang { margin-top: var(--space-2); }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: var(--space-4); }

  .phone-illustration { width: 180px; height: 320px; }
  .phone-frame { width: 180px; height: 320px; }

  .proof-grid { gap: var(--space-6); }

  .agents-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .features-grid { grid-template-columns: 55fr 45fr; }

  .tier-cards,
  .mia-tiers { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

  .footer-grid { grid-template-columns: 55fr 45fr; }

  .comparison-table th,
  .comparison-table td { padding: 10px 8px; font-size: var(--font-size-xs); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: var(--space-12) 0 var(--space-10); }
  .proof-grid { flex-direction: column; align-items: center; gap: var(--space-4); }
  .features-grid { grid-template-columns: 1fr; }
}

/* QG P1 fix: nav-cta focus visible on primary bg */
.nav-links .nav-cta:focus-visible {
  outline-color: var(--color-text-inverse);
}

/* Utility classes for semantic inline highlights */
.text-error { color: var(--color-danger); }
.text-white { color: var(--color-text-inverse); }
.text-muted-light { color: var(--color-border-strong); }

/* Section background alternation */
.section-alt-blue { background-color: var(--color-interactive-soft); }
.section-alt-warm { background-color: var(--color-accent-50); }

/* ============================================================
   ANIMATION SYSTEM v2.0
   Strategy: CSS view() for Chrome/Edge, IO fallback for Safari
   Rule: only animate transform + opacity (GPU-accelerated)
   ============================================================ */

/* ── Keyframes ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 0.8; }
  50%  { transform: scale(1.05); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 0.8; }
}


/* ── Scroll reveal (IntersectionObserver, all browsers) ── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-fade {
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.reveal-fade.is-visible { opacity: 1; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* Staggered grid children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 300ms; }

/* ── Hover micro-interactions ── */

/* Card lift (applies to agent-card, pricing-card, step) */
.card-lift,
.agent-card,
.pricing-card {
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}
.card-lift:hover,
.agent-card:hover,
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-lift:hover .card-icon,
.agent-card:hover .card-icon {
  color: var(--color-interactive);
  transition: color var(--duration-normal) var(--ease-out);
}

/* Step number scale */
.step:hover .step-number { transform: scale(1.1); }

/* Arrow link (Smith.ai pattern) */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-interactive-hover);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
}
.arrow-link .arrow-icon {
  display: inline-block;
  transition: transform var(--duration-normal) var(--ease-spring);
}
.arrow-link:hover { color: var(--color-primary); }
.arrow-link:hover .arrow-icon { transform: translateX(5px); }

/* Nav underline grow */
.nav-underline { position: relative; }
.nav-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-interactive);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-spring);
}
.nav-underline:hover::after,
.nav-underline[aria-current="page"]::after { width: 100%; }

/* Stats number highlight */
.stat-block:hover .stat-number { color: var(--color-interactive-hover); }
.stat-number { transition: color var(--duration-normal) var(--ease-out); }

/* Loading utilities */
.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    var(--color-surface-mid) 25%,
    var(--color-border) 50%,
    var(--color-surface-mid) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-primary-100);
  border-top-color: var(--color-interactive);
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
}

/* Scroll progress bar */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 3px;
      background: var(--color-interactive);
      transform-origin: left;
      animation: scaleX linear both;
      animation-timeline: scroll();
      z-index: 200;
    }
    @keyframes scaleX {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
  }
}

/* ── Reduced motion override ── */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-fade,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .agent-card:hover,
  .pricing-card:hover,
  .card-lift:hover { transform: none; box-shadow: none; }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   DARK MODE
   ============================================ */
html.dark {
  --color-surface-mid:  #0f0f0e;
  --color-surface-mid: #1c1c1a;
  --color-border: #2a2a27;
  --color-border-strong: #3d3d39;
  --color-text-tertiary: #9c9c90;
  --color-text-secondary: #c4c4b8;
  --color-text-primary: #f0f0e8;
  --color-text-primary: #fafaf5;
  --color-text-inverse: #1c1c1a;
  --color-interactive-soft:  #0f1a2e;
  --color-primary-100: #162440;
  --color-interactive: #4a8fd6;
  --color-interactive-hover: #6ba3e0;
  --color-primary: #6ba3e0;
  --color-accent-50:   #1a1408;
  --color-accent-100:  #2a2010;
  --color-accent:  #f59e0b;
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.3), 0 4px 6px rgba(0,0,0,0.2);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.4), 0 8px 10px rgba(0,0,0,0.2);
  --shadow-hover: 0 16px 32px rgba(74,143,214,0.2), 0 4px 8px rgba(74,143,214,0.1);
}

/* Dark mode overrides for elements with hardcoded colors */
html.dark body { background-color: #0f0f0e; color: #f0f0e8; }
html.dark .hero { background: linear-gradient(180deg, #0f1a2e 0%, #0f0f0e 100%); }
html.dark .math-section { background: #1c1c1a; }

.demo-section { background: linear-gradient(135deg, #1c1c1a, #0f1a2e); }
html.dark .section-cta { background: #1c1c1a; }
html.dark .site-footer { background: #0f0f0e; border-top-color: #2a2a27; }
html.dark .proof-bar { background: #1c1c1a; border-color: #2a2a27; }
html.dark .faq-item { border-color: #2a2a27; }
html.dark .pricing-card { background: #1c1c1a; border-color: #2a2a27; }
html.dark .agent-card { background: #1c1c1a; border-color: #2a2a27; }
html.dark .portal-card { background: #1c1c1a; border-color: #2a2a27; }
html.dark .btn-secondary { border-color: #4a8fd6; color: #6ba3e0; }
html.dark .btn-secondary:hover { background: rgba(74,143,214,0.1); }
html.dark a { color: #6ba3e0; }
html.dark .pricing-card.featured { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent); }
html.dark .hero-badge { background: rgba(74,143,214,0.15); }
html.dark .phone-frame { background: linear-gradient(135deg, #2a2a27, #1c1c1a); }
html.dark .phone-screen { background: linear-gradient(180deg, #2a2a27, #1c1c1a); }
html.dark .call-indicator { background: var(--color-interactive); }
html.dark .grace-status { background: #2a2a27; }

/* Theme toggle button */
.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  color: var(--color-text-tertiary);
  border-radius: var(--radius-md);
  transition: color var(--duration-normal), background var(--duration-normal);
}
.theme-toggle:hover { background: var(--color-border); color: var(--color-text-primary); }
.theme-toggle svg { width: 20px; height: 20px; }
html.dark .theme-toggle .sun-icon { display: none; }
html:not(.dark) .theme-toggle .moon-icon { display: none; }
/* Dark mode additional readability fixes */
html.dark .portal-section { background: #141412; }
html.dark .portal-card { background: #1c1c1a; border-color: #3d3d39; }
html.dark .portal-card h3 { color: #6ba3e0; }
html.dark .portal-card p { color: #c4c4b8; }
html.dark .section-sub { color: #9c9c90; }
html.dark .hero-subtitle { color: #c4c4b8; }
html.dark .hero-note { color: #9c9c90; }
html.dark .step-number { background: var(--color-accent); color: #0f0f0e; }
html.dark .step p { color: #c4c4b8; }
html.dark .step h3 { color: #f0f0e8; }
html.dark .proof-item { color: #c4c4b8; }
html.dark .pricing-role { color: #9c9c90; }
html.dark .pricing-features li { color: #c4c4b8; }
html.dark .pricing-price { color: #f0f0e8; }
html.dark .faq-question { color: #f0f0e8; }
html.dark .faq-answer { color: #c4c4b8; }
html.dark .agent-desc { color: #c4c4b8; }
html.dark .agent-tagline { color: #9c9c90; }
html.dark .footer-tagline { color: #9c9c90; }
html.dark .footer-col h4 { color: #9c9c90; }
html.dark .footer-col a { color: #c4c4b8; }
html.dark .footer-col a:hover { color: #6ba3e0; }
html.dark .footer-bottom { border-top-color: #2a2a27; color: #6b6b62; }
html.dark .nav-cta { background: var(--color-accent); color: #0f0f0e; }
html.dark .site-header { background: rgba(15,15,14,0.95); backdrop-filter: blur(8px); }
html.dark .section-alt-blue { background: #0f1a2e; }
html.dark .section-alt-warm { background: #1a1408; }
html.dark .comparison-table th { color: #9c9c90; }
html.dark .comparison-table td { color: #c4c4b8; border-color: #2a2a27; }

/* Dark mode — button text and critical visibility fixes */
html.dark .btn-large { color: #0f0f0e; }
html.dark .nav-logo .logo-text { color: #f0f0e8; }
html.dark .nav-logo .logo-icon { color: #f0f0e8; background: var(--color-interactive); }
html.dark .nav-toggle span { background: #f0f0e8; }
html.dark .nav-links a { color: var(--color-nav-link); }
html.dark .nav-links a:hover { color: var(--color-nav-link-hover); }
html.dark .nav-links.active { background: #1a1a18; border-color: #2a2a27; }
html.dark .nav-links.active a { color: #d4d4c8; }
html.dark .nav-links.active a:hover { color: #f0f0e8; }
html.dark .footer-brand .logo-text { color: #f0f0e8; }
html.dark .footer-brand .logo-icon { color: #f0f0e8; }
html.dark .demo-section h2 { color: #f0f0e8; }
html.dark .demo-section .demo-desc { color: #c4c4b8; }
html.dark .demo-section .demo-tip { color: #9c9c90; }
html.dark .demo-section .demo-cta-btn { color: #0f0f0e; }
html.dark .math-section .math-line { color: #c4c4b8; }
html.dark .math-section .math-loss { color: #f87171; }
html.dark .math-section .math-highlight { color: #f0f0e8; }
html.dark .cta-subtitle { color: #9c9c90; }
html.dark .cta-note { color: #6b6b62; }
html.dark .section-cta h2 { color: #f0f0e8; }
html.dark .pricing-hero h1 { color: #f0f0e8; }
html.dark .pricing-note { color: #9c9c90; }
html.dark .tier-group-title { color: #f0f0e8; }
html.dark .tier-group-role { color: #9c9c90; }
html.dark .tier-name { color: #f0f0e8; }
html.dark .tier-tagline { color: #9c9c90; }
html.dark .card-badge { background: var(--color-accent); color: #0f0f0e; }
html.dark .pricing-agent-name { color: #f0f0e8; }
html.dark .pricing-cta { background: var(--color-accent); color: #0f0f0e; }

/* ============================================
   3D ICONS — Lordicon & 3dicons.co
   ============================================ */

/* Story section — larger icon wraps for Lordicon */
.story-icon-3d {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-interactive-soft), var(--color-primary-100));
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(34, 114, 195, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.story-icon-item:hover .story-icon-3d {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(34, 114, 195, 0.25);
}

/* SVG fallback — CSS 3D effect for globe/star where Lordicon hash not found */
.svg-3d-fallback .icon {
  filter: drop-shadow(2px 4px 6px rgba(34, 114, 195, 0.3));
  transition: transform 0.4s ease, filter 0.4s ease;
}
.story-icon-item:hover .svg-3d-fallback .icon {
  transform: perspective(400px) rotateY(15deg) scale(1.1);
  filter: drop-shadow(4px 8px 12px rgba(34, 114, 195, 0.4));
}

/* Proof bar — animated icons */
.proof-icon-3d {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Onboarding — lord-icon above step number */

/* Home steps — lord-icon above step number */
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

/* Agent cards — 3D PNG icons */
.agent-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
}
.agent-icon-3d {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(4px 6px 10px rgba(0,0,0,0.15));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.agent-card:hover .agent-icon-3d {
  transform: translateY(-6px) rotateY(10deg) scale(1.08);
  filter: drop-shadow(6px 10px 20px rgba(34, 114, 195, 0.3));
}

/* ============================================
   COMPACT PRICING GRID (2-col layout)
   ============================================ */
.pricing-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 800px;
  margin: 0 auto;
}
.pricing-grid-compact .pricing-card {
  max-width: none;
}
/* Mia tier group spans full width */
.pricing-grid-compact .pricing-tier-group {
  grid-column: 1 / -1;
}
/* Grace featured — slightly larger */
.pricing-grid-compact .pricing-card.featured {
  border-width: 2px;
  box-shadow: 0 4px 24px rgba(34, 114, 195, 0.15);
}

/* Compact tier cards — 3 cols within the full-width group */
.pricing-grid-compact .tier-cards {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.pricing-grid-compact .tier-cards .pricing-card {
  padding: var(--space-5) var(--space-4);
}
.pricing-grid-compact .pricing-features li {
  padding: 6px 0;
  font-size: var(--font-size-xs);
}

/* ============================================
   RESPONSIVE — 3D Icons & Compact Pricing
   ============================================ */
@media (max-width: 768px) {
  .pricing-grid-compact {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .pricing-grid-compact .tier-cards {
    grid-template-columns: 1fr;
  }
  .story-icon-3d {
    width: 56px;
    height: 56px;
  }
  .story-icon-3d lord-icon {
    width: 44px !important;
    height: 44px !important;
  }
  .agent-icon-3d {
    width: 64px;
    height: 64px;
  }
}

/* ============================================
   DARK MODE — 3D Icons & Compact Pricing
   ============================================ */
html.dark .story-icon-3d {
  background: linear-gradient(135deg, #0f1a2e, #1a2d4a);
  box-shadow: 0 4px 16px rgba(34, 114, 195, 0.2);
}
html.dark .agent-icon-3d {
  filter: drop-shadow(4px 6px 10px rgba(0,0,0,0.4));
}
html.dark .agent-card:hover .agent-icon-3d {
  filter: drop-shadow(6px 10px 20px rgba(34, 114, 195, 0.4));
}
html.dark .pricing-grid-compact .pricing-card.featured {
  box-shadow: 0 4px 24px rgba(217, 119, 6, 0.15);
}
html.dark .pricing-hero {
  background: #0f1a2e;
}

/* Footer attribution */
.footer-attribution {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  margin-top: var(--space-2);
}
.footer-attribution a {
  color: var(--color-text-tertiary);
  text-decoration: underline;
}
html.dark .footer-attribution { color: #6b6b62; }
html.dark .footer-attribution a { color: #6b6b62; }

/* BUTTON HOVER VISIBILITY FIXES */
.btn-primary:hover { color: var(--color-text-inverse); }
html.dark .btn-primary { background: var(--color-accent); color: #0f0f0e; }
html.dark .btn-primary:hover { background: var(--color-accent-400); color: #0f0f0e; box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3); }
html.dark .pricing-cta:hover { background: var(--color-accent-400); color: #0f0f0e; }
html.dark .nav-cta:hover { background: var(--color-interactive); color: var(--color-text-inverse); }
html.dark .agent-card-cta { color: var(--color-accent-400); }
html.dark .agent-card-cta:hover { color: var(--color-accent); }

/* ONBOARDING STEPS — card backgrounds */

/* HOME STEPS — icon backgrounds */
.step-icon { background: linear-gradient(135deg, var(--color-accent-50), var(--color-accent-100)); border-radius: 14px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-2); }
html.dark .step-icon { background: linear-gradient(135deg, #1a1408, #2a2010); }

/* AGENT AVATARS — gradient circles with initials */
.agent-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-4) auto var(--space-3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.agent-avatar-letter {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-text-inverse);
}
.agent-avatar-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.agent-card:hover .agent-avatar {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.agent-avatar--grace { background: linear-gradient(135deg, #2272c3, #1d5fa6); }
.agent-avatar--mia { background: linear-gradient(135deg, #d97706, #b45309); }
.agent-avatar--roxy { background: linear-gradient(135deg, #e11d48, #be123c); }
.agent-avatar--nora { background: linear-gradient(135deg, #16a34a, #15803d); }
html.dark .agent-card:hover .agent-avatar { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

/* Nav dashboard dark mode */
html.dark .nav-dashboard { color: #f0f0e8; border-color: #3d3d39; }
html.dark .nav-dashboard:hover { background: #2a2a27; color: #f0f0e8; }

/* Story icon links */
.story-icon-link { text-decoration: none; color: inherit; transition: transform 0.3s ease; }
.story-icon-link:hover { transform: translateY(-4px); }
.feature-desc { font-size: var(--font-size-sm); color: var(--color-text-tertiary); margin-top: var(--space-1); }
html.dark .feature-desc { color: #9c9c90; }

/* ===========================
   BLOG
   =========================== */
.blog-hero {
  padding: var(--space-16) 0 var(--space-8);
  text-align: center;
}
.blog-hero h1 { margin-bottom: var(--space-3); }

.blog-list { padding: var(--space-12) 0; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
}

.post-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.post-card h2 { font-size: var(--font-size-xl); margin: var(--space-3) 0 var(--space-3); }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { color: var(--color-accent); }
.post-card p { color: var(--color-text-tertiary); font-size: var(--font-size-sm); margin-bottom: var(--space-4); }
.post-date { font-size: var(--font-size-xs); color: var(--color-text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; }
.post-read-more { font-size: var(--font-size-sm); color: var(--color-accent); font-weight: 600; text-decoration: none; }
.post-read-more:hover { text-decoration: underline; }
.post-tag { background: rgba(217,119,6,0.1); color: var(--color-accent); font-size: var(--font-size-xs); padding: 2px 8px; border-radius: 999px; }

/* Blog post page */
.blog-post-wrap { padding: var(--space-12) 0; }
.post-header { max-width: 720px; margin: 0 auto var(--space-10); }
.post-header .post-meta { display: flex; gap: var(--space-3); align-items: center; margin-bottom: var(--space-4); }
.post-header h1 { font-size: var(--font-size-4xl); line-height: 1.2; margin-bottom: var(--space-4); }
.post-lead { font-size: var(--font-size-lg); color: var(--color-text-tertiary); }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2 { font-size: var(--font-size-2xl); margin: var(--space-8) 0 var(--space-4); }
.post-body h3 { font-size: var(--font-size-xl); margin: var(--space-6) 0 var(--space-3); }
.post-body p { color: var(--color-text-secondary); line-height: 1.75; margin-bottom: var(--space-4); }
.post-body ul, .post-body ol { padding-left: var(--space-6); margin-bottom: var(--space-4); }
.post-body li { line-height: 1.75; margin-bottom: var(--space-2); color: var(--color-text-secondary); }
.post-body a { color: var(--color-accent); text-decoration: underline; }
.post-body strong { color: var(--color-text-primary); }
.post-body table { width: 100%; border-collapse: collapse; margin: var(--space-6) 0; font-size: var(--font-size-sm); }
.post-body th { background: var(--color-text-inverse); padding: var(--space-3) var(--space-4); text-align: left; font-weight: 600; border-bottom: 2px solid var(--color-border); }
.post-body td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); }
.post-body hr { border: none; border-top: 1px solid var(--color-border); margin: var(--space-8) 0; }
.post-footer { max-width: 720px; margin: var(--space-10) auto 0; display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* Blog dark mode */
html.dark .post-card { background: #1c1c1a; border-color: #2a2a27; }
html.dark .post-card h2 a { color: #f0f0e8; }
html.dark .post-card p { color: #9c9c90; }
html.dark .post-date { color: #9c9c90; }
html.dark .post-header h1 { color: #f0f0e8; }
html.dark .post-lead { color: #9c9c90; }
html.dark .post-body p, html.dark .post-body li { color: #c4c4b8; }
html.dark .post-body h2, html.dark .post-body h3 { color: #f0f0e8; }
html.dark .post-body strong { color: #f0f0e8; }
html.dark .post-body th { background: #1c1c1a; border-color: #2a2a27; }
html.dark .post-body td { border-color: #2a2a27; color: #c4c4b8; }
html.dark .post-body hr { border-color: #2a2a27; }
html.dark .post-tag { background: rgba(217,119,6,0.15); }


/* ============================================
   PHASE 4: ONBOARDING TIMELINE (about page)
   ============================================ */
.onboard-section {
  padding: var(--section-py) 0;
  text-align: center;
}
.onboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: 1100px;
  margin: 0 auto var(--space-10);
}
.onboard-cta {
  margin-top: var(--space-4);
}
@media (max-width: 900px) {
  .onboard-grid { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
}
@media (max-width: 480px) {
  .onboard-grid { grid-template-columns: 1fr; max-width: 340px; }
}
@media (max-width: 768px) {
  .service-map-container {
  transform: translateZ(0); height: 280px; }
}

/* ============================================
   PHASE 4: SERVICE AREA MAP (grace page)
   ============================================ */
.service-map-section {
  padding: var(--section-py) 0;
  text-align: center;
}
.service-map-container {
  transform: translateZ(0);
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin: var(--space-6) 0 var(--space-4);
  box-shadow: var(--shadow-sm);
}
.map-demo-badge {
  display: inline-block;
  background: var(--color-interactive-soft);
  color: var(--color-interactive-press);
  border: 1px solid var(--color-primary-200);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-5);
}
.map-caption {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}
.map-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  max-width: 480px;
  margin: 0 auto;
  line-height: var(--leading-normal);
}

/* Dark mode — map sections */
html.dark .map-demo-badge {
  background: #0f1a2e;
  color: #6ba3e0;
  border-color: #1e3555;
}
html.dark .map-caption { color: #c4c4b8; }
html.dark .map-note { color: #9c9c90; }
html.dark .service-map-container {
  transform: translateZ(0); border-color: #2a2a27; }
.grace-platforms-section {
  background: #08090d;
  padding: 80px 0 90px;
  position: relative;
}

.grace-platforms-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(34, 114, 195, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.grace-platforms-section .gp-heading {
  text-align: center;
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #a8c4e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grace-platforms-section .gp-subheading {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Tabs */
.gp-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  padding: 0 16px;
}

.gp-tab {
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.gp-tab:hover {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.07);
}

.gp-tab.active {
  background: rgba(34, 114, 195, 0.25);
  border-color: rgba(34, 114, 195, 0.6);
  color: #7fb8f0;
  box-shadow: 0 0 20px rgba(34, 114, 195, 0.2);
}

/* Tab panels */
.gp-panel {
  display: none;
}

.gp-panel.active {
  display: block;
  animation: gpFadeIn 0.3s ease;
}

@keyframes gpFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Grid */
.gp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card base */
.gp-card {
  position: relative;
  border-radius: 16px;
  padding: 20px 16px 18px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(0deg) rotateY(0deg);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gp-card:hover {
  border-color: rgba(var(--gp-glow-rgb), 0.4);
  background: rgba(255,255,255,0.07);
  box-shadow:
    0 0 24px rgba(var(--gp-glow-rgb), 0.15),
    0 4px 24px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.gp-card.active-selected {
  border-color: rgba(var(--gp-glow-rgb), 0.7);
  background: rgba(var(--gp-glow-rgb), 0.08);
  box-shadow:
    0 0 32px rgba(var(--gp-glow-rgb), 0.25),
    0 8px 32px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Shimmer sweep on hover */
.gp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position 0.5s ease;
  pointer-events: none;
}

.gp-card:hover::after {
  background-position: 200% 0;
}

/* Hero AI card */
.gp-card--hero {
  grid-column: span 2;
  padding: 28px 24px 24px;
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.2);
}

.gp-card--hero:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.1);
}

/* Platform icon wrapper */
.gp-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(var(--gp-glow-rgb), 0.12);
  border: 1px solid rgba(var(--gp-glow-rgb), 0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.gp-card:hover .gp-icon-wrap {
  box-shadow: 0 0 20px rgba(var(--gp-glow-rgb), 0.3);
  transform: scale(1.08) translateZ(4px);
}

.gp-card--hero .gp-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.gp-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.gp-card--hero .gp-icon-wrap svg {
  width: 36px;
  height: 36px;
}

/* Platform name */
.gp-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 6px;
  margin-top: auto;
  width: 100%;
}

.gp-card--hero .gp-name {
  font-size: 1rem;
}

/* Status badge */
.gp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}

.gp-badge--live {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.gp-badge--live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  animation: gpPulse 2s infinite;
  display: inline-block;
}

@keyframes gpPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.gp-badge--soon {
  background: rgba(251, 191, 36, 0.12);
  color: rgba(251, 191, 36, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Coming soon card dimming */
.gp-card--soon {
  opacity: 0.7;
}

.gp-card--soon:hover {
  opacity: 1;
}

/* Tap hint arrow */
.gp-tap-hint {
  position: absolute;
  bottom: 12px;
  right: 14px;
  color: rgba(255,255,255,0.2);
  font-size: 0.65rem;
  transition: color 0.2s ease;
}

.gp-card:hover .gp-tap-hint,
.gp-card.active-selected .gp-tap-hint {
  color: rgba(var(--gp-glow-rgb), 0.6);
}

/* ============================================
   AI LIVE — Special Holographic Icon
   ============================================ */

.gp-ai-orb {
  position: relative;
  width: 36px;
  height: 36px;
}

.gp-ai-orb svg {
  width: 100%;
  height: 100%;
}

.gp-ai-ring {
  animation: gpAiRing 3s ease-in-out infinite;
  transform-origin: center;
}

.gp-ai-ring-2 {
  animation: gpAiRing 3s ease-in-out infinite 0.8s;
}

@keyframes gpAiRing {
  0%   { opacity: 0.2; transform: scale(0.8); }
  50%  { opacity: 0.6; transform: scale(1.1); }
  100% { opacity: 0.2; transform: scale(0.8); }
}

.gp-ai-sparkle {
  animation: gpSparkle 2.5s ease-in-out infinite;
}

.gp-ai-sparkle-2 {
  animation: gpSparkle 2.5s ease-in-out infinite 1.2s;
}

@keyframes gpSparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50%       { opacity: 1; transform: scale(1); }
}

.gp-ai-holo {
  animation: gpHolo 4s linear infinite;
}

@keyframes gpHolo {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ============================================
   BOTTOM SHEET
   ============================================ */

.gp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.gp-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.gp-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #13141a;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px 20px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.gp-sheet.active {
  transform: translateY(0);
}

.gp-sheet-handle-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 0;
}

.gp-sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.gp-sheet-inner {
  padding: 20px 24px 32px;
}

.gp-sheet-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.gp-sheet-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gp-sheet-icon svg {
  width: 28px;
  height: 28px;
}

.gp-sheet-title-wrap {
  flex: 1;
  min-width: 0;
}

.gp-sheet-platform-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.gp-sheet-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
}

.gp-sheet-dev-note {
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 10px;
  font-size: 0.8rem;
  color: rgba(251, 191, 36, 0.75);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}

.gp-sheet-close {
  display: block;
  width: calc(100% - 48px);
  margin: 0 24px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.gp-sheet-close:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}

/* ============================================
   DESKTOP SIDE PANEL (override bottom sheet)
   ============================================ */

@media (min-width: 768px) {
  .gp-sheet {
    position: absolute;
    bottom: auto;
    left: auto;
    right: 24px;
    top: 50%;
    transform: translateX(40px) translateY(-50%);
    opacity: 0;
    pointer-events: none;
    width: 340px;
    max-height: 70vh;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 32px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s ease;
  }

  .gp-sheet.active {
    transform: translateX(0) translateY(-50%);
    opacity: 1;
    pointer-events: auto;
  }

  .gp-sheet-handle-wrap {
    display: none;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .gp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gp-card--hero {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .gp-card--hero .gp-icon-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 600px) {
  .grace-platforms-section {
    padding: 60px 0 70px;
  }

  .gp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px;
  }

  .gp-card--hero {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 10px;
    align-items: center;
  }

  .gp-card--hero .gp-icon-wrap {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    align-self: center;
  }

  .gp-card--hero .gp-name {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    align-self: end;
  }

  .gp-card--hero .gp-badge {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  .gp-card {
    padding: 16px 12px 14px;
  }

  .gp-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .gp-icon-wrap svg {
    width: 24px;
    height: 24px;
  }

  .gp-name {
    font-size: 0.75rem;
  }

  .gp-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
  }
}

/* Dark mode already — section is always dark */
html.dark .grace-platforms-section {
  background: #06070c;
}


/* ============================================
   GRACE PLATFORMS — FIXES v3
   ============================================ */

/* AI orb sizing */
.gp-ai-orb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Full-bleed via box-shadow trick */
.grace-platforms-section {
  box-shadow: 0 0 0 100vw #08090d;
  clip-path: inset(0 -100vw);
}
/* Yelp wordmark icon — #CC2222 is Yelp official brand red */
.gp-icon-wrap--yelp {
  background: #CC2222;
  border-color: rgba(180,20,20,0.6);
}
/* Override global svg sizing: Yelp wordmark is wide (2.3:1 ratio) — use full width */
.gp-icon-wrap--yelp svg {
  width: 38px;
  height: auto;
}


/* ── Agent Hero Photo Layout ─────────────────────────────────────────── */
.agent-hero {
  padding: var(--space-12) 0 var(--space-10);
  background: var(--color-interactive-soft);
  text-align: left;
}
.agent-hero-inner {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}
.agent-hero-photo-col {
  flex: 0 0 40%;
  max-width: 420px;
}
.agent-hero-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}
.agent-hero-text-col {
  flex: 1;
}
.agent-hero-text-col h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: var(--space-2);
}
.agent-hero-text-col .agent-hero-tagline {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-top: var(--space-3);
}
@media (max-width: 768px) {
  .agent-hero { text-align: center; }
  .agent-hero-inner {
    flex-direction: column;
    gap: var(--space-6);
  }
  .agent-hero-photo-col {
    max-width: 260px;
    width: 70%;
  }
}

/* ── Agent Hero Bio Layout ───────────────────────────────────────────── */
.agent-hero {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, var(--color-interactive-hover) 0%, var(--color-primary) 100%);
  color: #fff;
  text-align: left;
}
.agent-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
}
.agent-hero-photo-col {
  flex: 0 0 36%;
  max-width: 380px;
}
.agent-hero-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.agent-hero-text-col {
  flex: 1;
  min-width: 0;
  padding-top: var(--space-2);
}
.agent-hero-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
  letter-spacing: 0.03em;
}
.agent-hero-text-col h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #fff;
  margin-bottom: var(--space-4);
  line-height: 1.1;
}
.agent-bio-intro {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}
.agent-bio-block {
  margin-bottom: var(--space-5);
}
.agent-bio-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-2);
}
.agent-bio-skills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1) var(--space-4);
}
.agent-bio-skills li {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.88);
  padding-left: 1.1em;
  position: relative;
}
.agent-bio-skills li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent-300);
  font-weight: bold;
  font-size: 0.85em;
}
.agent-bio-text {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin: 0;
}
.agent-bio-vision {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

/* ── Agent Pricing Section (gray) ────────────────────────────────────── */
.agent-pricing-section {
  padding: var(--space-16) 0;
  background: var(--color-surface-mid);
}
html.dark .agent-pricing-section {
  background: var(--color-text-primary);
}
.agent-pricing-heading {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-8);
  color: var(--color-text-primary);
}
html.dark .agent-pricing-heading {
  color: var(--color-surface-mid);
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .agent-hero { text-align: center; }
  .agent-hero-inner {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
  }
  .agent-hero-photo-col {
    max-width: 220px;
    width: 65%;
  }
  .agent-bio-skills {
    grid-template-columns: 1fr;
  }
  .agent-pricing-heading { text-align: center; }
}

/* ── Agent Banner (thin blue strip) ─────────────────────────────────── */
.agent-banner {
  padding: var(--space-8) 0 var(--space-6);
  background: var(--color-interactive-soft);
  text-align: center;
}
html.dark .agent-banner { background: var(--color-surface-dark); }
.agent-banner-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: var(--color-accent-100);
  color: var(--color-accent-hover);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2);
}
.agent-banner-name {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-text-primary);
  margin: var(--space-1) 0 var(--space-2);
  line-height: 1.1;
}
html.dark .agent-banner-name { color: var(--color-surface-mid); }
.agent-banner-tagline {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin: 0;
}
html.dark .agent-banner-tagline { color: var(--color-text-muted); }

/* ── Agent Main Section (gray) ───────────────────────────────────────── */
.agent-main {
  padding: var(--space-12) 0 var(--space-16);
  background: var(--color-surface-mid);
}
html.dark .agent-main {
  background: var(--color-text-primary);
}

/* Photo column */
.agent-main-photo { grid-column: 1; }
.agent-main-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  object-fit: cover;
  aspect-ratio: 5/6;
  display: block;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

/* Bio column */
.agent-main-bio { grid-column: 2; min-width: 0; }
.agent-bio-intro {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
html.dark .agent-bio-intro { color: var(--color-border-strong); }
.agent-bio-block { margin-bottom: var(--space-5); }
.agent-bio-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2);
}
.agent-bio-skills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1) var(--space-4);
}
.agent-bio-skills li {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  padding-left: 1.2em;
  position: relative;
  line-height: 1.5;
}
html.dark .agent-bio-skills li { color: var(--color-border-strong); }
.agent-bio-skills li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-interactive);
  font-weight: bold;
  font-size: 0.85em;
}
.agent-bio-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0;
}
html.dark .agent-bio-text { color: var(--color-text-muted); }
.agent-bio-vision { font-style: italic; }

/* Pricing column */
.agent-main-pricing {
  grid-column: 3;
  width: 300px;
  flex-shrink: 0;
}
.agent-pricing-label-sm {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-3);
}
.agent-main-pricing .single-tier-wrap {
  margin: 0;
  display: block;
}
.agent-main-pricing .tier-card {
  width: 100%;
  max-width: none;
}
.agent-main-pricing .mia-tiers {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.agent-main-pricing .mia-tiers .tier-card {
  width: 100%;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .agent-main-grid {
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto;
  }
  .agent-main-photo { grid-column: 1; grid-row: 1 / 3; }
  .agent-main-bio { grid-column: 2; grid-row: 1; }
  .agent-main-pricing { grid-column: 2; grid-row: 2; width: 100%; }
  .agent-main-pricing .mia-tiers {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .agent-main-pricing .mia-tiers .tier-card { flex: 1; min-width: 200px; }
}
@media (max-width: 640px) {
  .agent-main-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .agent-main-photo {
    grid-column: 1; grid-row: 1;
    max-width: 200px;
    margin: 0 auto;
  }
  .agent-main-bio { grid-column: 1; grid-row: 2; }
  .agent-main-pricing { grid-column: 1; grid-row: 3; width: 100%; }
  .agent-bio-skills { grid-template-columns: 1fr; }
  .agent-main-pricing .mia-tiers { flex-direction: column; }
}

/* ── Agent main gray section ─────────────────────────────────────────── */
.agent-main {
  padding: var(--space-12) 0 var(--space-16);
  background: var(--color-surface-mid);
}
html.dark .agent-main { background: var(--color-text-primary); }

.agent-main-photo img,
.agent-main-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  object-fit: cover;
  aspect-ratio: 5/6;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Bio */
.agent-bio-intro {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
html.dark .agent-bio-intro { color: var(--color-border-strong); }
.agent-bio-block { margin-bottom: var(--space-5); }
.agent-bio-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.agent-bio-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}
html.dark .agent-bio-text { color: var(--color-text-muted); }
.agent-bio-vision { font-style: italic; }

/* Pricing column (single plan) */
.agent-main-pricing { width: 100%; }
.agent-pricing-label-sm {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.agent-main-pricing .single-tier-wrap {
  margin: 0;
  display: block;
}
.agent-main-pricing .tier-card {
  width: 100%;
  max-width: none;
}

/* Mia multi-plan layout: photo + bio top, then pricing row below */
.agent-main-top {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-8);
  align-items: start;
  margin-bottom: var(--space-10);
}
.agent-multi-pricing { width: 100%; }
.agent-multi-pricing .mia-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-4);
}
.agent-multi-pricing .tier-card {
  width: 100%;
  max-width: none;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .agent-main-grid {
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto;
  }
  .agent-main-grid .agent-main-photo { grid-column: 1; grid-row: 1 / 3; }
  .agent-main-grid .agent-main-bio   { grid-column: 2; grid-row: 1; }
  .agent-main-grid .agent-main-pricing { grid-column: 2; grid-row: 2; }
  .agent-main-top { grid-template-columns: 200px 1fr; }
  .agent-multi-pricing .mia-tiers { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .agent-main-grid,
  .agent-main-top { grid-template-columns: 1fr; }
  .agent-main-grid .agent-main-photo,
  .agent-main-top .agent-main-photo {
    max-width: 180px;
    margin: 0 auto;
  }
  .agent-main-grid .agent-main-photo { grid-row: 1; grid-column: 1; }
  .agent-main-grid .agent-main-bio   { grid-row: 2; grid-column: 1; }
  .agent-main-grid .agent-main-pricing { grid-row: 3; grid-column: 1; }
  .agent-multi-pricing .mia-tiers {
    grid-template-columns: 1fr;
  }
}

/* ═══ AGENT PAGE v4 ════════════════════════════════════════════════════ */
/* Photo stretches to match card height; labels removed */

.agent-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: var(--space-8);
  align-items: stretch;
}
.agent-main-photo {
  display: flex;
  flex-direction: column;
}
.agent-main-img {
  width: 100%;
  flex: 1;
  min-height: 320px;
  border-radius: var(--radius-2xl);
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Mia top row */
.agent-main-top {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-8);
  align-items: stretch;
  margin-bottom: var(--space-10);
}
.agent-main-top .agent-main-photo { display: flex; flex-direction: column; }
.agent-main-top .agent-main-img {
  width: 100%;
  flex: 1;
  min-height: 300px;
  border-radius: var(--radius-2xl);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Mia 3 cards — compact */
.agent-multi-pricing .mia-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.agent-multi-pricing .tier-card {
  width: 100%;
  max-width: none;
}
.agent-multi-pricing .pricing-features li {
  font-size: var(--font-size-xs);
  padding: var(--space-1) 0;
}
.agent-multi-pricing .tier-card {
  padding: var(--space-5);
}

/* Pricing column (single plan) stretches too */
.agent-main-pricing {
  display: flex;
  flex-direction: column;
}
.agent-main-pricing .single-tier-wrap {
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.agent-main-pricing .tier-card {
  width: 100%;
  max-width: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.agent-main-pricing .pricing-features {
  flex-grow: 1;
}
.agent-main-pricing .pricing-cta {
  margin-top: auto;
}

/* Remove old agent-pricing-label-sm spacing if it remains */
.agent-pricing-label-sm { display: none; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .agent-main-grid {
    grid-template-columns: 1fr 1.6fr;
    grid-template-rows: auto auto;
    align-items: start;
  }
  .agent-main-grid .agent-main-photo { grid-column: 1; grid-row: 1 / 3; }
  .agent-main-grid .agent-main-bio   { grid-column: 2; grid-row: 1; }
  .agent-main-grid .agent-main-pricing { grid-column: 2; grid-row: 2; }
  .agent-main-grid .agent-main-img { min-height: 420px; }
  .agent-multi-pricing .mia-tiers { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .agent-main-grid,
  .agent-main-top { grid-template-columns: 1fr; align-items: start; }
  .agent-main-grid .agent-main-photo,
  .agent-main-top .agent-main-photo { max-width: 200px; margin: 0 auto; }
  .agent-main-grid .agent-main-photo { grid-row: 1; grid-column: 1; }
  .agent-main-grid .agent-main-bio   { grid-row: 2; }
  .agent-main-grid .agent-main-pricing { grid-row: 3; }
  .agent-main-img { min-height: 240px; }
  .agent-multi-pricing .mia-tiers { grid-template-columns: 1fr; }
}

/* ═══ SOPHIE SECTION ══════════════════════════════════════════════════ */
.sophie-section {
  padding: var(--space-16) 0;
  background: var(--color-interactive-soft);
}
html.dark .sophie-section {
  background: var(--color-surface-dark, #1e3a5f);
}
.sophie-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--space-12);
  align-items: center;
}
.sophie-photo-col { flex-shrink: 0; }
.sophie-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.sophie-role-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary-100);
  border: 1px solid var(--color-primary-300);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-interactive-press);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.sophie-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-text-primary);
  margin: var(--space-1) 0 var(--space-4);
  line-height: 1.05;
}
.sophie-desc {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 520px;
}
.sophie-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-6);
}
.sophie-feats li {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  padding-left: 1.4em;
  position: relative;
  line-height: 1.5;
}
.sophie-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-interactive-hover);
  font-weight: bold;
}
@media (max-width: 900px) {
  .sophie-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .sophie-photo-col { max-width: 300px; margin: 0 auto; }
  .sophie-feats { grid-template-columns: 1fr; }
}

/* ═══ GRACE DEMO SECTION ══════════════════════════════════════════════ */
.grace-main-section {
  padding: var(--space-16) 0;
  background: var(--color-interactive-soft);
}
html.dark .grace-main-section {
  background: var(--color-surface-dark, #1e3a5f);
}
.grace-demo-stat {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-2);
}
.demo-cta-btn { margin-top: var(--space-2); }
.demo-tip {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

/* ═══ SOPHIE DUAL ACTIONS ════════════════════════════════════════════ */
.sophie-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-2);
}
.sophie-call-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* ═══ STEPS FLOW — COMPACT HORIZONTAL STEPPER ════════════════════════ */
.steps-heading { margin-bottom: var(--space-10); }
.steps-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.step-flow-item {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  position: relative;
}
.step-flow-arrow {
  font-size: 2rem;
  color: var(--color-primary-400);
  padding-top: 60px;
  flex-shrink: 0;
  line-height: 1;
}
.step-flow-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-3);
  height: 56px;
  align-items: center;
}
.step-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-interactive-hover);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  margin: 0 auto var(--space-3);
}
.step-flow-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 var(--space-2);
  color: var(--color-text-primary);
}
.step-flow-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}
.steps-cta-row {
  text-align: center;
  margin-top: var(--space-10);
}
@media (max-width: 768px) {
  .steps-flow { flex-direction: column; align-items: center; }
  .step-flow-arrow { transform: rotate(90deg); padding-top: 0; padding: var(--space-2) 0; }
  .step-flow-item { max-width: 100%; width: 100%; }
}

/* ── Agent Single Section (pricing + extra content for non-Mia agents) ── */
.agent-single-section {
  background: var(--color-surface-mid);
  padding: var(--space-12) 0;
}
html.dark .agent-single-section {
  background: var(--color-text-primary);
}
/* Center the pricing card when alone in single-section */
.agent-single-section .single-tier-wrap {
  margin-top: 0;
}

/* ===== Blog Comments ===== */
.blog-comments { padding: var(--space-12) 0; border-top: 1px solid var(--color-border); }
.comments-title { font-size: var(--font-size-2xl); font-weight: 700; margin-bottom: var(--space-6); }
.comments-list { max-width: 720px; margin-bottom: var(--space-10); }
.comments-loading, .comments-empty { color: var(--color-text-tertiary); font-style: italic; }
.comment-item { padding: var(--space-5) 0; border-bottom: 1px solid var(--color-surface-mid); }
.comment-meta { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.comment-author { font-weight: 600; color: var(--color-text-primary); }
.comment-date { font-size: var(--font-size-sm); color: var(--color-text-tertiary); }
.comment-body { color: var(--color-text-secondary); line-height: 1.7; white-space: pre-wrap; }
.comment-form-wrap { max-width: 720px; }
.comment-form-wrap h3 { font-size: var(--font-size-xl); font-weight: 600; margin-bottom: var(--space-5); }
.comment-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
@media (max-width: 600px) { .comment-fields-row { grid-template-columns: 1fr; } }
.comment-field { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-4); }
.comment-field label { font-weight: 500; font-size: var(--font-size-sm); color: var(--color-text-secondary); }
.comment-field input, .comment-field textarea { border: 1px solid var(--color-border-strong); border-radius: 8px; padding: var(--space-3) var(--space-4); font-size: var(--font-size-base); font-family: inherit; background: var(--color-text-inverse); color: var(--color-text-primary); transition: border-color .15s; }
.comment-field input:focus, .comment-field textarea:focus { outline: none; border-color: var(--color-accent); }
.comment-field-hint { font-size: var(--font-size-xs); color: var(--color-text-tertiary); }
.comment-optin-label { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--font-size-sm); color: var(--color-text-secondary); margin-bottom: var(--space-4); cursor: pointer; }
.comment-optin-label input[type=checkbox] { margin-top: 2px; flex-shrink: 0; }
.comment-msg { font-size: var(--font-size-sm); margin-bottom: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: 6px; display: none; }
.comment-msg:not(:empty) { display: block; }
.comment-msg--ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.comment-msg--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
html.dark .blog-comments { border-color: #2a2a27; }
html.dark .comment-item { border-color: #2a2a27; }
html.dark .comment-author { color: #f0f0e8; }
html.dark .comment-body { color: #c4c4b8; }
html.dark .comment-field input, html.dark .comment-field textarea { background: #1c1c1a; border-color: #3a3a37; color: #f0f0e8; }

/* ============================================
   MIA VITRINA RESTORE v3 — Phase 1 (2026-04-19)
   Showcase classes restored from commit 5fa7970^ (pre-deletion state)
   Source: git show 5fa7970^:src/css/style.v2.css
   Scope: 90 unique showcase classes (mia-vitrina-*, mia-mesh-*, hs-*, ds-*,
   mia-how-*, mia-step*, mia-stats-*, mia-hs-*, mia-browser-*, page-mia, mia-stat-*)
   F5 exclusion: mia-waitlist-* NOT restored (Section D removed per plan)
   ============================================ */

/* B11 CTA — Получить Mia Premium (between ROI stats bar and pricing tier cards) */
.mia-cta-premium-wrap {
  text-align: center;
  padding: var(--space-8) 0 var(--space-6);
}
.mia-cta-premium-heading {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}
.mia-cta-premium-sub {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.mia-cta-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-10);
  background: linear-gradient(135deg, var(--color-accent-hover), var(--color-accent-700));
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mia-cta-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.35);
  color: var(--color-text-inverse);
}
.mia-cta-premium:active {
  transform: scale(0.98) translateY(0);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}
.mia-cta-premium:focus-visible {
  outline: 3px solid var(--color-interactive);
  outline-offset: 3px;
}
html.dark .mia-cta-premium {
  background: linear-gradient(135deg, var(--color-accent-400), var(--color-accent-hover));
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  color: #0f0f0e;
}
html.dark .mia-cta-premium:hover {
  background: linear-gradient(135deg, var(--color-accent-300), var(--color-accent));
  color: #0f0f0e;
}


html.dark .mia-cta-premium:focus-visible {
  outline-color: var(--color-primary-300);
}
/* === END mia-cta-premium === */

.mia-vitrina-demo {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  padding: var(--space-16, 4rem) 0;
  text-align: center;
}
.mia-vitrina-demo h2 {
  position: relative; z-index: 1;
  background: linear-gradient(135deg, #fff 0%, #fbbf24 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.mia-vitrina-demo-sub {
  position: relative; z-index: 1;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-8, 2rem);
}
.hs-container {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}
.hs-bg {
  width: 100%;
  display: block;
}
.hs-dot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-interactive, #3b82f6);
  border: 3px solid #fff;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.25), 0 0 16px rgba(59,130,246,0.4);
}
.hs-dot--premium {
  background: var(--color-accent, #f59e0b);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.25), 0 0 16px rgba(245,158,11,0.4);
}
.hs-dot-inner {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-400, #60a5fa);
  animation: hs-pulse 2s ease-out infinite;
  pointer-events: none;
}
.hs-dot--premium .hs-dot-inner {
  border-color: var(--color-accent-400, #fbbf24);
}
/* Phase 9.2 — Stage dot color modifiers */
.hs-dot--visibility {
  background: #B0B0B0;
  border: none;
  box-shadow: none;
}
.hs-dot--trust {
  background: #FFFFFF;
  border: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.35);
}
.hs-dot--contact {
  background: #4A4A4A;
  border: none;
  box-shadow: 0 0 0 2px #FFFFFF;
}
.hs-dot--reviews {
  background: #808080;
  border: none;
  box-shadow: 0 0 0 2px #FFFFFF;
}
.hs-dot--protection {
  background: #E3261F;
  border: none;
  box-shadow: none;
}

/* Phase 9.2 — Keyboard focus for stage dot modifiers */
.hs-dot--visibility:focus-visible,
.hs-dot--trust:focus-visible,
.hs-dot--contact:focus-visible,
.hs-dot--reviews:focus-visible,
.hs-dot--protection:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}
/* Phase 9.5 — Stage Legend badges */
.stage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto 20px;
  padding: 0 4px;
  max-width: 860px;
  position: relative;
  z-index: 1;
}
.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  background: transparent;
  color: #e8e8e8;
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}
.stage-badge:hover {
  border-color: rgba(255,255,255,0.6);
}
.stage-badge:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.stage-badge[aria-pressed="true"] {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}
.stage-badge-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stage-badge--visibility .stage-badge-swatch { background: #B0B0B0; }
.stage-badge--trust .stage-badge-swatch { background: #FFFFFF; box-shadow: 0 0 0 1.5px rgba(0,0,0,0.4); }
.stage-badge--contact .stage-badge-swatch { background: #4A4A4A; box-shadow: 0 0 0 1.5px #FFFFFF; }
.stage-badge--reviews .stage-badge-swatch { background: #808080; box-shadow: 0 0 0 1.5px #FFFFFF; }
.stage-badge--protection .stage-badge-swatch { background: #E3261F; }
.stage-badge-count {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
}
.hs-dot--dimmed {
  opacity: 0.3;
  pointer-events: none;
}
.hs-dot.hs-dot--dimmed {
  opacity: 0.3;
  pointer-events: none;
}
.hs-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 12px 14px;
  width: 200px;
  text-align: left;
  z-index: 10;
  white-space: normal;
  /* Ph2: opacity transition instead of display toggle */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.hs-card--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
}
.hs-stat {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-interactive-hover, #2563eb);
  margin: 0 0 2px;
}
.hs-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #111827;
}
.hs-tier {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.hs-tier--all {
  background: var(--color-primary-100, #dbeafe);
  color: var(--color-interactive-press, #1d4ed8);
}
.hs-tier--premium {
  background: var(--color-accent-100, #fef3c7);
  color: var(--color-accent-700, #b45309);
}
.hs-source {
  font-size: 0.68rem;
  color: #9ca3af;
  margin: 0;
}
.mia-how-it-works {
  padding: var(--space-16, 4rem) 0;
  text-align: center;
}
.mia-how-it-works h2 {
  margin-bottom: var(--space-10, 2.5rem);
}
.mia-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8, 2rem);
  max-width: 900px;
  margin: 0 auto;
}
.mia-step {
  background: var(--color-surface, #fff);
  border-radius: 12px;
  padding: var(--space-6, 1.5rem);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.mia-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent, #f59e0b);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-3, 0.75rem);
}
.mia-step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-2, 0.5rem);
}
.mia-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-2, 0.5rem);
}
.mia-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}
.mia-vitrina-demo .hs-card {
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.07);
}
.mia-vitrina-demo .hs-stat {
  color: #fbbf24; font-size: 1.4rem; font-weight: 700;
}
.mia-vitrina-demo .hs-label {
  color: #f3f4f6;
}
.mia-vitrina-demo .hs-tier--all {
  background: rgba(59,130,246,0.18);
  color: #93c5fd;
}
.mia-vitrina-demo .hs-tier--premium {
  background: rgba(245,158,11,0.18);
  color: #fbbf24;
}
.mia-vitrina-demo .hs-source {
  color: #6b7280;
}
.hs-dot--up .hs-card {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
}
.hs-dot--up .hs-card--visible {
  transform: translateX(-50%) translateY(0);
}
.mia-hs-mobile-stats {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  padding: 0 16px;
}
.mia-hs-card {
  all: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
  min-width: 120px;
  flex: 1 1 calc(50% - 8px);
  box-sizing: border-box;
}
.mia-hs-card:active {
  background: rgba(255,255,255,0.15);
}
.mia-hs-card-stat {
  font-size: 1.1rem;
  font-weight: 800;
  color: #6ee7b7;
  line-height: 1;
  margin-bottom: 4px;
}
.mia-hs-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #e5e7eb;
}
.mia-hs-card-detail {
  font-size: 0.65rem;
  color: #94a3b8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, margin 0.25s ease;
  margin-top: 0;
}
.mia-hs-card.expanded .mia-hs-card-detail {
  max-height: 60px;
  margin-top: 6px;
}
.mia-hs-card--premium {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.3);
}
.mia-hs-card--premium .mia-hs-card-stat {
  color: #fbbf24;
}
.page-mia .agent-hero {
  /* Mia page: suppress default agent hero bottom border (demo section has its own dark bg) */
  border-bottom: none;
}
.mia-mesh-container {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.mia-mesh-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3;
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite; animation-direction: alternate;
}
.mia-mesh-orb--amber {
  width: 380px; height: 380px; background: #f59e0b;
  top: -10%; left: 10%;
  animation: mia-orb-a 12s ease-in-out infinite alternate;
}
.mia-mesh-orb--emerald {
  width: 320px; height: 320px; background: #10b981;
  top: 40%; right: 5%;
  animation: mia-orb-b 16s ease-in-out infinite alternate;
}
.mia-mesh-orb--indigo {
  width: 280px; height: 280px; background: #818cf8;
  bottom: -5%; left: 40%;
  animation: mia-orb-c 18s ease-in-out infinite alternate;
}
.mia-vitrina-demo .hs-dot--premium .hs-dot-inner {
  animation: hs-premium-ring 2s ease-out infinite;
}
/* ============================================
   Phase 1 MUST-FIX (S1+S2 MF-1): Restored @keyframes for showcase animations
   Source: git show 5fa7970^:src/css/style.v2.css L3793, L4600-4602, L4608
   ============================================ */
@keyframes hs-pulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes hs-premium-ring {
  0%   { box-shadow: 0 0 0 0   rgba(245,158,11,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(245,158,11,0);   }
  100% { box-shadow: 0 0 0 0   rgba(245,158,11,0);   }
}
@keyframes mia-orb-a {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px,30px) scale(1.1); }
}
@keyframes mia-orb-b {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-30px,40px) scale(0.9); }
}
@keyframes mia-orb-c {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(20px,-20px) scale(1.05); }
}

/* Phase 1 MUST-FIX (S3 SF-1): prefers-reduced-motion coverage for restored showcase */

/* Phase 9.2 — JTBD-4 rotating sentence carousel */
.hs-sentence-wrap {
  position: relative;
  min-height: 2.5em;
  overflow: hidden;
}
.hs-sentence {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  animation: rotateSentences 20s ease-in-out infinite;
}
.hs-sentence:nth-child(1) { animation-delay: 0s; opacity: 1; }
.hs-sentence:nth-child(2) { animation-delay: 5s; }
.hs-sentence:nth-child(3) { animation-delay: 10s; }
.hs-sentence:nth-child(4) { animation-delay: 15s; }

@keyframes rotateSentences {
  0%    { opacity: 1; transform: translateY(0); }
  22%   { opacity: 1; transform: translateY(0); }
  25%   { opacity: 0; transform: translateY(-6px); }
  95%   { opacity: 0; transform: translateY(-6px); }
  100%  { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hs-sentence {
    animation: none;
    opacity: 1;
    position: static;
    transform: none;
  }
  .hs-sentence-wrap { min-height: 0; overflow: visible; }
  .hs-dot-inner,
  .hs-dot--premium .hs-dot-inner,
  .mia-mesh-orb,
  .mia-mesh-orb--amber,
  .mia-mesh-orb--emerald,
  .mia-mesh-orb--indigo,
  .mia-cta-premium {
    animation: none;
    transition: none;
  }
  .mia-cta-premium:hover { transform: none; }
  .mia-vitrina-demo .hs-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ============================================================
   Live Demo Block (mia.njk — port from style.v2.css 2026-04-24)
   ============================================================ */
.live-demo-block {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.live-demo-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.live-demo-sub {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}
.live-demo-cta {
  display: inline-block;
  margin-bottom: 1.5rem;
}
.ai-disclaimer-small {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}


/* ============================================================
   Phase 9.4 — JTBD Explainer Section
   ============================================================ */
.jtbd-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
  text-align: center;
}

.jtbd-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.jtbd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  text-align: left;
}

.jtbd-card--last {
  grid-column: 2 / 3;
}

.jtbd-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.jtbd-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Stage color accents */
.jtbd-card--visibility { border-left: 3px solid #B0B0B0; }
.jtbd-card--trust      { border-left: 3px solid rgba(255, 255, 255, 0.55); }
.jtbd-card--contact    { border-left: 3px solid #6B6B6B; }
.jtbd-card--reviews    { border-left: 3px solid #808080; }
.jtbd-card--protection { border-left: 3px solid #E3261F; }

.jtbd-card-header {
  width: 100%;
  padding: 0.85rem 0.9rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.jtbd-toggle-btn {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  flex: 0 0 auto;
}

.jtbd-chevron { display: none; }

.jtbd-stage-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2em 0.55em;
  border-radius: 999px;
  margin-bottom: 0.1rem;
}

.jtbd-stage-badge--visibility { background: rgba(176, 176, 176, 0.18); color: #B0B0B0; }
.jtbd-stage-badge--trust      { background: rgba(255, 255, 255, 0.1);  color: rgba(255,255,255,0.8); }
.jtbd-stage-badge--contact    { background: rgba(107, 107, 107, 0.25); color: rgba(255,255,255,0.7); }
.jtbd-stage-badge--reviews    { background: rgba(128, 128, 128, 0.2);  color: #B0B0B0; }
.jtbd-stage-badge--protection { background: rgba(227, 38, 31, 0.18);   color: #E3261F; }

.jtbd-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.jtbd-card--rotating .hs-sentence-wrap {
  min-height: 2.6em;
  margin-bottom: 0.1rem;
}

.jtbd-card--rotating .hs-sentence {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.jtbd-card-body {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
  margin: 0;
  padding: 0 0.9rem 0.85rem;
}

/* ---- Mobile accordion (≤ 700px) ---- */
@media (max-width: 700px) {
  .jtbd-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .jtbd-card--last {
    grid-column: 1;
  }
  .jtbd-card-header {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    padding: 0.75rem 0.85rem;
  }
  .jtbd-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
    margin-left: auto;
  }
  .jtbd-stage-badge {
    flex: 0 0 auto;
    order: 0;
  }
  .jtbd-card-title {
    flex: 1 1 auto;
    order: 1;
  }
  .jtbd-card--rotating .hs-sentence-wrap {
    flex: 1 1 auto;
    order: 1;
    min-height: 0;
  }
  .jtbd-chevron {
    display: block;
    width: 16px;
    height: 16px;
    color: rgba(255,255,255,0.6);
    transition: transform 0.2s ease;
  }
  .jtbd-card-body {
    display: none;
    padding: 0 0.85rem 0.75rem;
  }
  .jtbd-card.jtbd-expanded .jtbd-card-body {
    display: block;
  }
  .jtbd-card.jtbd-expanded .jtbd-chevron {
    transform: rotate(180deg);
  }

}

/* prefers-reduced-motion: jtbd rotating card — show all 4 stacked */
@media (prefers-reduced-motion: reduce) {
  .jtbd-card--rotating .hs-sentence {
    animation: none;
    opacity: 1;
    position: static;
    transform: none;
    display: block;
    margin-bottom: 0.2rem;
  }
  .jtbd-card--rotating .hs-sentence-wrap {
    min-height: 0;
    overflow: visible;
  }
}

/* ============================================
   NAV DROPDOWN — ported from main 2026-04-23
   (var renames applied: neutral-700→text-secondary,
    font-heading→font-display, weight-medium→font-weight-medium,
    text-sm→font-size-sm, primary-600→interactive-hover,
    color-white→text-inverse, neutral-200→border,
    primary-50→interactive-soft, primary-700→interactive-press,
    text-xs→font-size-xs, weight-normal→font-weight-regular,
    neutral-500→text-tertiary, primary-500→interactive)
   ============================================ */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-nav-link);
  font-family: var(--font-display);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  transition: color var(--duration-fast);
}
.nav-dropdown-trigger:hover { color: var(--color-nav-link-hover); }
.nav-dropdown-trigger svg { width: 12px; height: 12px; transition: transform var(--duration-fast); }
.nav-dropdown:hover .nav-dropdown-trigger { color: var(--color-nav-link-hover); }
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: var(--color-nav-dropdown-surface);
  border: 1px solid var(--color-nav-dropdown-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: 100;
}
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-links .nav-dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-nav-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.nav-links .nav-dropdown-item:hover {
  background: var(--color-nav-hover-bg);
  color: var(--color-nav-hover-text);
}
.nav-dropdown-item-role {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  color: var(--color-nav-role-text);
  margin-top: 1px;
}
.nav-dropdown-item:hover .nav-dropdown-item-role { color: var(--color-nav-role-hover); }

@media (max-width: 768px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-trigger { padding: var(--space-2) 0; width: 100%; }
  .nav-dropdown-trigger svg { width: 12px; height: 12px; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 var(--space-2) var(--space-3);
    min-width: auto;
  }
  .nav-links.active .nav-dropdown-menu { display: block; }
  .nav-dropdown-item { display: block; padding: 4px 0; border-radius: 0; }
  .nav-dropdown-item-role { display: none; }
}

html.dark .nav-dropdown-menu {
  background: #1e293b;
  border-color: #334155;
}
html.dark .nav-links .nav-dropdown-item {
  color: #cbd5e1;
}
html.dark .nav-links .nav-dropdown-item:hover {
  background: rgba(79, 70, 229, 0.15);
  color: #a5b4fc;
}
html.dark .nav-dropdown-item-role { color: #64748b; }
html.dark .nav-dropdown-item:hover .nav-dropdown-item-role { color: #818cf8; }
/* ===========================================
 * Landing pakge C — B1-B5 revamp sections
 * Added 2026-04-26 — append to style.v3.css
 * ----------------------------------------- */

/* ============ Psychology block (after Sophie) ============ */
.psychology-section {
  padding: var(--space-12, 4rem) 0;
}
.psychology-h2 {
  text-align: center;
  margin-bottom: var(--space-2, 0.5rem);
}
.psychology-intro {
  max-width: 760px;
  margin: 0 auto var(--space-8, 2.5rem);
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.6;
}
.psychology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6, 1.5rem);
  margin-bottom: var(--space-8, 2.5rem);
}
.psychology-stat {
  text-align: center;
  padding: var(--space-4, 1rem);
}
.psychology-stat-num {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent, #d97706);
  font-family: 'Bricolage Grotesque', serif;
  margin-bottom: var(--space-2, 0.5rem);
}
.psychology-stat-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  margin-bottom: var(--space-1, 0.25rem);
  line-height: 1.4;
}
.psychology-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted, #6b7280);
  font-style: italic;
}
.psychology-tagline {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-strong, #b45309);
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-4, 1rem) var(--space-6, 1.5rem);
  border-left: 4px solid var(--accent, #d97706);
  background: rgba(217, 119, 6, 0.04);
  border-radius: 4px;
}

/* ============ Trust signals (after Steps) ============ */
.trust-section {
  padding: var(--space-12, 4rem) 0;
}
.trust-h2 {
  text-align: center;
  margin-bottom: var(--space-2, 0.5rem);
}
.trust-intro {
  max-width: 760px;
  margin: 0 auto var(--space-8, 2.5rem);
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5, 1.25rem);
  margin-bottom: var(--space-6, 1.5rem);
}
.trust-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: var(--space-6, 1.5rem);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.trust-card-impact {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--success, #059669);
  background: rgba(5, 150, 105, 0.08);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  margin-bottom: var(--space-3, 0.75rem);
}
.trust-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--space-2, 0.5rem);
  color: var(--text-primary, #1f2937);
}
.trust-card-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary, #4b5563);
  margin: 0;
}
.trust-footer {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted, #6b7280);
  font-style: italic;
  margin-top: var(--space-4, 1rem);
}

/* ============ FAQ objections (after Grace Demo) ============ */
.faq-section {
  padding: var(--space-12, 4rem) 0;
}
.faq-h2 {
  text-align: center;
  margin-bottom: var(--space-2, 0.5rem);
}
.faq-intro {
  max-width: 760px;
  margin: 0 auto var(--space-8, 2.5rem);
  text-align: center;
  font-size: 1.0625rem;
}
.faq-accordion {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  margin-bottom: var(--space-3, 0.75rem);
  background: var(--surface, #ffffff);
  overflow: hidden;
}
.faq-item[open] {
  border-color: var(--accent, #d97706);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.08);
}
.faq-q {
  cursor: pointer;
  padding: var(--space-4, 1rem) var(--space-5, 1.25rem);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-primary, #1f2937);
  list-style: none;
  position: relative;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  position: absolute;
  right: var(--space-5, 1.25rem);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent, #d97706);
  transition: transform 0.2s;
}
.faq-item[open] .faq-q::after {
  content: '−';
}
.faq-a {
  padding: 0 var(--space-5, 1.25rem) var(--space-4, 1rem);
  color: var(--text-secondary, #4b5563);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.faq-a p {
  margin: 0 0 var(--space-3, 0.75rem);
}
.faq-grace-script {
  background: rgba(34, 114, 195, 0.06);
  border-left: 3px solid var(--primary, #2272c3);
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  margin: 0;
  font-style: italic;
  border-radius: 4px;
}
.faq-grace-label {
  font-weight: 700;
  font-style: normal;
  color: var(--primary, #2272c3);
  margin-right: 0.375rem;
}
.faq-disclaimer {
  max-width: 720px;
  margin: var(--space-6, 1.5rem) auto 0;
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--warning-strong, #b45309);
}

/* ============ Mobile breakpoints (R2 mitigation) ============ */
@media (max-width: 768px) {
  .psychology-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4, 1rem); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4, 1rem); }
  .psychology-stat-num { font-size: 2.75rem; }
  .trust-card { padding: var(--space-4, 1rem); }
  .faq-q, .faq-a { padding-left: var(--space-4, 1rem); padding-right: var(--space-4, 1rem); }
}
@media (max-width: 480px) {
  .psychology-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .psychology-stat-num { font-size: 2.5rem; }
  .psychology-tagline { font-size: 1.0625rem; padding: var(--space-3, 0.75rem) var(--space-4, 1rem); }
}
