/* ======================================
   ROOT PUBLIC VIEWS
====================================== */

.main-layout {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2.75rem);
  padding-bottom: calc(var(--footer-height) + 1.5rem);
  animation: fadeIn 0.8s ease-out;
}

.root-content {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-grid > *,
.platform-showcase > *,
.contact-grid > *,
.video-overlay > * {
  min-width: 0;
}

.container {
  width: 100%;
}

.section {
  position: relative;
  margin-bottom: var(--spacing-12);
}

.root-content > .section:last-child {
  margin-bottom: var(--spacing-6);
}

.section.gradient {
  padding: var(--spacing-3) 0;
  background: none;
}

.section-shell {
  padding: clamp(1.5rem, 2vw, 2.25rem);
  border-radius: 32px;
  border: 1px solid var(--color-border-strong);
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 76%),
    rgb(245 248 252 / 92%)
  );
  box-shadow: var(--shadow-lg);
}

.section-shell-dark {
  background: var(--gradient-primary);
  color: #f8fbff;
}

.section-shell-dark .section-title,
.section-shell-dark h3,
.section-shell-dark p,
.section-shell-dark .lead-text,
.section-shell-dark .text-gray-600 {
  color: #f8fbff !important;
  -webkit-text-fill-color: initial;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: var(--spacing-5);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  color: var(--text-strong);
  background: none;
  -webkit-text-fill-color: initial;
}

.lead-text,
.section-intro {
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.8;
  color: var(--text-muted);
}

.hero-section .section-shell {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 84%), rgb(240 245 252 / 74%)),
    var(--gradient-mesh);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-6);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.55rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin: 0 0 1.3rem;
  max-width: 40rem;
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
  line-height: 1.8;
  color: var(--text-muted);
}

.hero-badges,
.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgb(16 36 63 / 14%);
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 94%),
    rgb(229 238 248 / 90%)
  );
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text-strong);
  font-size: var(--font-size-sm);
  font-weight: 700;
  box-shadow:
    0 12px 28px rgb(16 36 63 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 72%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1;
  transition: var(--transition-base);
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  color: #fff;
}

.btn-secondary {
  background: rgb(255 255 255 / 75%);
  border-color: var(--color-border-strong);
  color: var(--text-strong);
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--text-strong);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-stat {
  padding: 1rem 1.1rem;
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--color-border-strong);
  background: rgb(255 255 255 / 70%);
}

.hero-stat strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--text-strong);
}

.hero-stat span {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 1.25rem;
  justify-items: end;
}

.hero-media-frame {
  width: min(100%, 420px);
  padding: 1rem;
  border-radius: 36px;
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 88%),
    rgb(223 233 244 / 88%)
  );
  border: 1px solid rgb(255 255 255 / 55%);
  box-shadow: var(--shadow-xl);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  object-fit: cover;
}

.hero-aside-card {
  width: min(100%, 360px);
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: rgb(16 36 63 / 92%);
  color: #eaf2fb;
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-aside-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgb(16 36 63 / 18%);
}

.hero-aside-card h3 {
  margin: 0 0 0.35rem;
  color: #fff;
}

.hero-aside-card p {
  margin: 0;
  color: rgb(234 242 251 / 82%);
  font-size: var(--font-size-sm);
}

.trust-grid,
.services-grid,
.pricing-grid,
.team-grid,
.contact-grid,
.legal-nav-grid {
  display: grid;
  gap: 1.1rem;
}

.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.legal-nav-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 1.3rem;
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--color-border-strong);
  background: rgb(255 255 255 / 76%);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.card:hover:not(.interactive-card) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card.interactive-card {
  transform-origin: center;
  will-change: transform;
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.card.interactive-card:hover,
.card.interactive-card:focus-within {
  transform: perspective(1200px) translateY(-8px) rotateX(0.8deg)
    rotateY(-0.55deg);
  border-color: rgb(23 57 94 / 22%);
  box-shadow: 0 26px 52px rgb(16 36 63 / 14%);
}

.card.compact {
  padding: 1rem;
}

.card.clickable {
  cursor: pointer;
}

.surface-card {
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 82%),
    rgb(242 246 251 / 92%)
  );
}

.trust-card,
.service-card,
.pricing-card,
.team-card,
.contact-card,
.legal-nav-card {
  height: 100%;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgb(23 57 94 / 12%),
    rgb(90 149 196 / 18%)
  );
  color: var(--text-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 65%);
}

.service-card h3,
.pricing-card h3,
.team-card h3,
.contact-card h3 {
  margin: 0.9rem 0 0.55rem;
  font-size: 1.15rem;
}

.service-card p,
.team-card p,
.contact-card p {
  margin: 0;
  color: var(--text-muted);
}

.list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}

.list-item:last-child {
  margin-bottom: 0;
}

.stat-number {
  display: block;
  margin-bottom: 0.3rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  color: var(--text-strong);
}

.pricing-card {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgb(16 36 63 / 96%), rgb(24 58 95 / 95%));
  color: #f2f8ff;
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgb(16 36 63 / 26%);
}

.pricing-card.featured:hover,
.pricing-card.featured:focus-within {
  transform: perspective(1200px) translateY(-12px) rotateX(0.8deg)
    rotateY(-0.4deg);
}

.pricing-card.featured h3,
.pricing-card.featured p,
.pricing-card.featured li,
.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-tag {
  color: #f2f8ff;
}

.pricing-card.featured .pricing-price small {
  color: rgb(242 248 255 / 72%);
}

.pricing-card-logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius-md, 12px);
}

.pricing-tag {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgb(16 36 63 / 8%);
  color: var(--text-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-price {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--text-strong);
}

.pricing-price small {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.platform-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.35rem;
  align-items: stretch;
}

.platform-showcase--single {
  grid-template-columns: minmax(0, 36rem);
  justify-content: center;
}

.demo-audio-card,
.demo-video-card {
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.platform-showcase--single .demo-audio-card {
  width: 100%;
}

.demo-audio-card {
  display: grid;
  grid-template-rows: minmax(280px, 340px) auto;
}

.demo-audio-image {
  overflow: hidden;
  min-height: 100%;
  background: linear-gradient(
    180deg,
    rgb(214 227 241 / 55%),
    rgb(233 240 248 / 12%)
  );
}

.demo-audio-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  transform: scale(1.01);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-audio-card:hover .demo-audio-image img,
.demo-audio-card:focus-within .demo-audio-image img {
  transform: scale(1.05);
}

.demo-audio-content {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
}

.demo-audio-title {
  margin: 0;
  font-size: 1.1rem;
}

.demo-audio-description {
  margin: 0;
  color: var(--text-muted);
}

.demo-play-btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

.demo-video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgb(12 24 39 / 96%), rgb(17 34 55 / 92%));
}

.demo-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(12 24 39 / 8%), rgb(12 24 39 / 36%));
  pointer-events: none;
}

.demo-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#videoLoading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(12 24 39 / 38%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#videoLoading[hidden] {
  display: none;
}

.video-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 4px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

.video-overlay {
  position: absolute;
  inset: auto 1.25rem 1.25rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  padding: 1rem 1.15rem;
  border-radius: 22px;
  background: rgb(12 24 39 / 65%);
  color: #eef6ff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.video-overlay p {
  margin: 0;
  min-width: 0;
  flex: 1;
  line-height: 1.6;
  font-size: 0.88rem;
}

.video-overlay strong {
  display: block;
  margin-bottom: 0.25rem;
}

.demo-video-frame.is-playing .video-overlay {
  background: rgb(12 24 39 / 40%);
}

.team-card {
  display: flex;
  flex-direction: column;
}

.team-card p {
  flex: 1;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.team-role {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.team-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgb(23 57 94 / 8%);
  color: var(--text-strong);
  font-size: 0.76rem;
  font-weight: 700;
}

.team-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
}

.team-detail.is-open {
  max-height: 32rem;
  opacity: 1;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-strong);
}

.team-credentials {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.45rem;
  list-style: none;
}

.team-credentials li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.team-credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.55;
}

.contact-card {
  display: grid;
  gap: 1rem;
}

.cta-panel {
  padding: 2rem;
  border-radius: 32px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-xl);
}

.cta-panel .section-kicker,
.cta-panel .lead-text,
.cta-panel .list-item,
.cta-panel p,
.cta-panel h2,
.cta-panel h3 {
  color: #f7fbff;
  -webkit-text-fill-color: initial;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal-hero .section-shell {
  position: sticky;
  top: calc(var(--header-height) + 0.75rem);
  z-index: var(--z-sticky);
}

.legal-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.legal-tab {
  min-height: 42px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
  background: rgb(255 255 255 / 76%);
  color: var(--text-strong);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.legal-tab.is-active {
  background: var(--gradient-primary);
  color: #fff;
}

.legal-panel {
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.legal-panel[hidden] {
  display: none;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.auth-layout {
  min-height: calc(100vh - var(--header-height) - 2rem);
  display: grid;
  place-items: center;
}

.auth-shell {
  width: min(1120px, 100%);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="scale"] {
  transform: scale(0.95);
}

[data-reveal="left"] {
  transform: translateX(-34px);
}

[data-reveal="right"] {
  transform: translateX(34px);
}

[data-reveal].revealed,
.stagger-children.revealed > * {
  opacity: 1;
  transform: none;
}

.auth-layout [data-reveal] {
  opacity: 1;
  transform: none;
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.revealed > *:nth-child(1) {
  transition-delay: 0.05s;
}

.stagger-children.revealed > *:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger-children.revealed > *:nth-child(3) {
  transition-delay: 0.15s;
}

.stagger-children.revealed > *:nth-child(4) {
  transition-delay: 0.2s;
}

.stagger-children.revealed > *:nth-child(5) {
  transition-delay: 0.25s;
}

/* Override stagger transition on interactive cards for smooth hover */
.stagger-children.revealed > .card.interactive-card {
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0s;
}

[data-theme="dark"] .section-shell,
[data-theme="dark"] .card,
[data-theme="dark"] .hero-stat,
[data-theme="dark"] .legal-tab {
  background: rgb(15 24 38 / 86%);
}

[data-theme="dark"] .badge,
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-ghost {
  background: rgb(18 30 49 / 82%);
}

[data-theme="dark"] .hero-media-frame {
  background: linear-gradient(180deg, rgb(22 34 52 / 96%), rgb(13 24 39 / 92%));
}

[data-theme="dark"] .avatar-initials,
[data-theme="dark"] .legal-tab.is-active,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .pricing-card.featured {
  color: #fff;
}

[data-theme="contrast"] .section-shell,
[data-theme="contrast"] .card,
[data-theme="contrast"] .hero-stat,
[data-theme="contrast"] .badge,
[data-theme="contrast"] .btn,
[data-theme="contrast"] .legal-tab {
  background: #fff;
  border: 2px solid #000;
  box-shadow: none;
}

[data-theme="contrast"] .section-shell-dark,
[data-theme="contrast"] .cta-panel,
[data-theme="contrast"] .pricing-card.featured,
[data-theme="contrast"] .btn-primary,
[data-theme="contrast"] .legal-tab.is-active,
[data-theme="contrast"] .avatar-initials {
  background: #000;
  color: #fff;
}

@media (width <= 1080px) {
  .hero-grid,
  .platform-showcase,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid,
  .pricing-grid,
  .team-grid,
  .legal-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    justify-items: stretch;
  }

  .hero-media-frame,
  .hero-aside-card {
    width: 100%;
  }
}

@media (width <= 900px) {
  .root-content {
    width: min(100%, calc(100% - 1.25rem));
  }

  .section-shell,
  .cta-panel {
    border-radius: 28px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.6rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .video-overlay {
    flex-direction: column;
    align-items: stretch;
  }

  .video-overlay .btn-secondary {
    width: 100%;
  }
}

@media (width <= 720px) {
  .root-content {
    width: min(100%, calc(100% - 1rem));
  }

  .main-layout {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: calc(var(--footer-height) + 4.5rem);
  }

  .section {
    margin-bottom: var(--spacing-8);
  }

  .section-shell,
  .cta-panel {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .cta-links .btn-primary,
  .cta-links .btn-secondary,
  .cta-links .btn-ghost {
    width: 100%;
  }

  .hero-badges {
    gap: 0.55rem;
  }

  .badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-meta,
  .trust-grid,
  .services-grid,
  .pricing-grid,
  .team-grid,
  .legal-grid,
  .legal-nav-grid {
    grid-template-columns: 1fr;
  }

  .platform-showcase {
    grid-template-columns: 1fr;
  }

  .demo-audio-card {
    grid-template-rows: minmax(220px, 280px) auto;
  }

  .demo-video-frame {
    min-height: 420px;
  }

  .video-overlay {
    inset: auto 1rem 1rem;
    padding: 0.9rem 1rem;
  }

  .legal-hero .section-shell {
    position: relative;
    top: auto;
  }
}

@media (width <= 560px) {
  .main-layout {
    padding-top: calc(var(--header-height) + 1.55rem);
  }

  .hero-title {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.02;
  }

  .hero-meta {
    gap: 0.8rem;
  }

  .hero-stat,
  .card {
    padding: 1.05rem;
  }

  .pricing-price {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
  }

  .demo-video-frame {
    min-height: 360px;
  }

  .video-overlay {
    position: static;
    margin: 0.9rem;
  }
}

@media (width <= 420px) {
  .main-layout {
    padding-bottom: calc(var(--footer-height) + 5.5rem);
  }

  .root-content {
    width: calc(100% - 0.75rem);
  }

  .section-shell,
  .cta-panel {
    padding: 1rem;
    border-radius: 20px;
  }

  .hero-actions,
  .cta-links,
  .pricing-actions {
    gap: 0.6rem;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    min-height: 46px;
    padding-inline: 1rem;
  }

  .demo-audio-card {
    grid-template-rows: minmax(200px, 240px) auto;
  }

  .demo-video-frame {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Kill entrance animations */
  [data-reveal],
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    opacity: 1 !important;
    animation: none !important;
  }

  /* Cards: no entrance motion, but preserve hover transitions */
  .card {
    opacity: 1 !important;
    animation: none !important;
  }

  .card.interactive-card {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      border-color 0.2s ease !important;
  }

  .card:not(:hover, :focus-within) {
    transform: none !important;
  }
}
