/* Landing page styles extracted from index.html */

/* Hero mockup carousel */
.hero-mockup-viewport { position: relative; }
.hero-mockup-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 0;
}
.hero-mockup-slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-mockup-dot {
  width: 8px;
  height: 8px;
  min-height: 8px;
  min-width: 8px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.45);
  cursor: pointer;
  transition: background 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-mockup-dot:hover { background: rgba(148, 163, 184, 0.75); }
.hero-mockup-dot--active {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  transform: scale(1.15);
}
.hero-mac-chrome {
  background: linear-gradient(180deg, #eef1f6 0%, #e4e9f2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
.hero-mac-url {
  background: rgba(248, 250, 252, 0.96);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
[data-theme="light"] .hero-mac-chrome {
  background: linear-gradient(180deg, #eef1f6 0%, #e4e9f2 100%);
}
[data-theme="light"] .hero-mac-url {
  background: rgba(248, 250, 252, 0.98);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

/* Premium landing refresh (light-first, violet accent) */
#landingView {
  position: relative;
  overflow-x: clip;
  background: linear-gradient(180deg, #fafbfc 0%, #f6f7fb 48%, #f4f6fa 100%);
}
#landingView::before {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  top: -30%;
  height: 85%;
  max-height: 52rem;
  background: radial-gradient(ellipse 72% 58% at 50% 0%, rgba(124, 58, 237, 0.05), transparent 74%);
  pointer-events: none;
  z-index: 0;
  animation: landingAmbientDrift 22s ease-in-out infinite alternate;
}
@keyframes landingFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes landingNavIn {
  from {
    opacity: 0;
    transform: translate3d(0, -4px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes landingFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
}
@keyframes landingAmbientDrift {
  from {
    transform: translate3d(-2.2%, -1.6%, 0) scale(1.015);
  }
  to {
    transform: translate3d(2.2%, 1.6%, 0) scale(1.04);
  }
}
/* Header keeps Tailwind sticky; z-index from markup stacks above ::before */
#landingView .landing-nav-pill {
  border: 0;
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #landingView .landing-nav-pill {
    background: rgba(255, 255, 255, 0.9);
  }
}
#landingView .landing-nav-pill nav a {
  padding-inline: 0.25rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
#landingView .landing-nav-pill nav a:hover {
  transform: translateY(-1px);
}
#landingView > section:first-of-type {
  position: relative;
  isolation: isolate;
}
#landingView > section:first-of-type::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10%;
  transform: translateX(-50%);
  width: min(100%, 52rem);
  height: 78%;
  max-height: 28rem;
  background: radial-gradient(ellipse 100% 70% at 50% 35%, rgba(255, 255, 255, 0.85), rgba(248, 250, 252, 0.35) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
#landingView > section:first-of-type::after {
  content: "";
  position: absolute;
  inset: 8% 6% 2%;
  background:
    radial-gradient(ellipse 62% 44% at 50% 18%, rgba(124, 58, 237, 0.06), transparent 72%),
    radial-gradient(ellipse 48% 38% at 72% 58%, rgba(59, 130, 246, 0.035), transparent 74%);
  pointer-events: none;
  z-index: 0;
}
#landingView > section:first-of-type > * {
  position: relative;
  z-index: 1;
}
#landingView > section:first-of-type h1 {
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 800;
  color: #111111;
  text-wrap: balance;
  text-rendering: geometricPrecision;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
#landingView > section:first-of-type p {
  text-wrap: pretty;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#landingView > section:first-of-type .landing-hero-in--3 {
  color: #6b7280;
  font-size: 18px;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}
#landingView > section,
#landingView > div,
#landingView > footer {
  position: relative;
  z-index: 1;
}
#landingView > header.landing-nav-in {
  opacity: 0;
  animation: landingNavIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
#landingView .landing-hero-in {
  opacity: 0;
  animation: landingFadeUp 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#landingView .landing-hero-in--1 {
  animation-delay: 0.05s;
}
#landingView .landing-hero-in--2 {
  animation-delay: 0.12s;
}
#landingView .landing-hero-in--3 {
  animation-delay: 0.2s;
}
#landingView .landing-hero-in--4 {
  animation-delay: 0.28s;
}
#landingView .landing-mockup-float {
  animation: landingFloat 9.5s ease-in-out infinite;
  will-change: transform;
}
#landingView [data-landing-reveal] {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.82s ease, transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
}
#landingView [data-landing-reveal].landing-reveal-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
#landingView.hidden .landing-nav-in,
#landingView.hidden .landing-hero-in,
#landingView.hidden .landing-mockup-float {
  animation: none !important;
}
#landingView.hidden::before {
  animation: none !important;
}
#landingView.hidden .landing-nav-in,
#landingView.hidden .landing-hero-in {
  opacity: 1;
  transform: none;
}
#landingView.hidden .landing-mockup-float {
  transform: none;
  will-change: auto;
}
#landingView .landing-button-primary,
#landingView .landing-button-secondary {
  transition: all 0.2s ease;
}
#landingView .landing-button-primary:hover,
#landingView .landing-button-secondary:hover {
  transform: translateY(-1px);
}
#landingView .landing-button-primary:active,
#landingView .landing-button-secondary:active {
  transform: translateY(0) scale(0.98);
}
@media (prefers-reduced-motion: reduce) {
  #landingView::before {
    animation: none !important;
  }
  #landingView .landing-nav-in,
  #landingView .landing-hero-in,
  #landingView .landing-mockup-float {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }
  #landingView [data-landing-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  #landingView .landing-button-primary,
  #landingView .landing-button-secondary {
    transition: none;
  }
  #landingView .landing-nav-pill nav a {
    transition: none;
  }
  #landingView .landing-mockup-card,
  #landingView .hero-mockup-dot {
    transition: none;
  }
  #landingView .landing-button-primary:hover,
  #landingView .landing-button-secondary:hover,
  #landingView .landing-button-primary:active,
  #landingView .landing-button-secondary:active,
  #landingView .landing-nav-pill nav a:hover,
  #landingView .landing-mockup-card:hover,
  #landingView .hero-mockup-dot:hover {
    transform: none;
  }
}
#landingView .bg-revoran-card {
  background-color: #ffffff !important;
}
#landingView .border-revoran-border {
  border-color: #e6eaf2 !important;
}
#landingView .text-rv-heading {
  color: #0f172a !important;
}
#landingView .text-slate-400 {
  color: #64748b !important;
}
#landingView .text-slate-300 {
  color: #475569 !important;
}
#landingView > section:not(:first-of-type),
#landingView > footer {
  border-top: 1px solid rgba(226, 232, 240, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 -1px 0 rgba(15, 23, 42, 0.015),
    0 18px 36px -34px rgba(15, 23, 42, 0.18);
}
#landingView .landing-surface {
  border: 1px solid rgba(226, 232, 240, 0.84);
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.025),
    0 12px 26px -16px rgba(15, 23, 42, 0.07),
    0 24px 48px -34px rgba(15, 23, 42, 0.08);
}
#landingView .landing-button-primary {
  background: #7c3aed;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}
#landingView .landing-button-primary:hover {
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.42);
}
#landingView #getStartedBtn {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.02),
    0 8px 20px -16px rgba(15, 23, 42, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}
#landingView #getStartedBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 12px 24px -16px rgba(15, 23, 42, 0.14);
}
#landingView .landing-button-secondary {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  color: #111;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
#landingView .card,
#landingView .feature-card,
#landingView .pricing-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
  border-radius: 16px;
}
#landingView .landing-button-secondary:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#landingView .text-emerald-400,
#landingView .text-blue-400,
#landingView .text-blue-300,
#landingView .text-\[\#3B82F6\],
#landingView .text-\[\#8B5CF6\] {
  color: #7c3aed !important;
}
#landingView .from-\[\#3B82F6\],
#landingView .to-\[\#8B5CF6\] {
  --tw-gradient-from: #7c3aed !important;
  --tw-gradient-to: #7c3aed !important;
}
#landingView .rounded-2xl.border,
#landingView .plan-card,
#landingView .faq-item,
#landingView table {
  border-color: rgba(226, 232, 240, 0.82);
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.02),
    0 10px 24px -18px rgba(15, 23, 42, 0.065),
    0 20px 40px -32px rgba(15, 23, 42, 0.07);
}
#landingView h1,
#landingView h2 {
  letter-spacing: -0.018em;
}
#landingView h2 {
  font-size: clamp(1.9rem, 3vw, 2.45rem);
}
@media (max-width: 640px) {
  #landingView section {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
  #landingView > section:first-of-type {
    padding-top: 5.5rem !important;
    padding-bottom: 5.75rem !important;
  }
}
#landingView .landing-hero-badge {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px -4px rgba(15, 23, 42, 0.05);
}
#landingView .landing-section-pill {
  background: #f3f0ff;
  color: #7c3aed;
  border: 1px solid #e0d7ff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
#landingView .landing-mockup-card {
  border-width: 0.75px;
  border-color: rgba(203, 213, 225, 0.82);
  background: rgba(236, 241, 247, 0.95);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
  box-shadow:
    0 2px 3px rgba(15, 23, 42, 0.04),
    0 18px 42px -14px rgba(15, 23, 42, 0.14),
    0 36px 72px -38px rgba(15, 23, 42, 0.16);
}
#landingView .landing-mockup-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.58);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 22px 48px -16px rgba(15, 23, 42, 0.16),
    0 40px 80px -40px rgba(15, 23, 42, 0.18);
}
#landingView .landing-mockup-glow {
  background: radial-gradient(ellipse 100% 100% at 50% 40%, rgba(124, 58, 237, 0.07), rgba(148, 163, 184, 0.04) 55%, transparent 70%);
}
#landingView .hero-mac-chrome {
  background: linear-gradient(180deg, #eef1f6 0%, #e4e9f2 100%) !important;
  border-bottom-width: 0.75px !important;
  border-bottom-color: rgba(148, 163, 184, 0.44) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
#landingView .hero-mac-url {
  background: rgba(248, 250, 252, 0.98);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.44);
}

/* ROI Calculator — force light inputs regardless of dashboard dark-mode tokens */
#roi-calculator input[type="number"],
#roi-calculator input[type="text"] {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
}

/* Feature demo card tone badges */
.feature-tone-btn {
  background: #f3f0ff;
  color: #7c3aed;
  border: 1.5px solid #e0d7ff;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.feature-tone-btn.active,
.feature-tone-btn:first-child {
  background: #7c3aed;
  color: white;
  border-color: #7c3aed;
}

/* How It Works — tighter vertical padding */
#how-it-works {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* Book demo modal — full-viewport overlay + centered panel */
.book-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  pointer-events: none;
}

.book-demo-modal.book-demo-modal--open {
  display: flex;
  pointer-events: auto;
}

.book-demo-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.book-demo-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 28rem;
  max-height: calc(100dvh - 2rem);
  height: auto;
  overflow: hidden;
  border-radius: 1rem;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: left;
  box-sizing: border-box;
}

.book-demo-modal__form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100dvh - 2rem);
}

.book-demo-modal__header {
  flex-shrink: 0;
  padding: 2rem 2rem 0.75rem;
  padding-right: 2.75rem;
}

.book-demo-modal__title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
}

.book-demo-modal__subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

.book-demo-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 2rem;
  -webkit-overflow-scrolling: touch;
}

.book-demo-modal__footer {
  flex-shrink: 0;
  padding: 1rem 2rem 2rem;
  border-top: 1px solid #f3f4f6;
  background: #ffffff;
}

.book-demo-modal__success {
  padding: 2.5rem 2rem;
  text-align: center;
}

.book-demo-modal__success-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.book-demo-modal__success-title {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.book-demo-modal__submit--inline {
  width: auto;
  display: inline-block;
  padding: 0.5rem 1.5rem;
}

.book-demo-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.book-demo-modal__close:hover {
  color: #4b5563;
}

.book-demo-modal__field {
  margin-bottom: 1rem;
}

.book-demo-modal__field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.book-demo-modal__field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #111827;
}

.book-demo-modal__field input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #111827;
}

.book-demo-modal__phone-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.book-demo-modal__dial {
  flex: 0 0 auto;
  min-width: 8.5rem;
  max-width: 42%;
  box-sizing: border-box;
  padding: 0.625rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  font-size: 0.8125rem;
  color: #111827;
  background: #ffffff;
  cursor: pointer;
}

.book-demo-modal__dial:focus {
  outline: none;
  box-shadow: 0 0 0 2px #111827;
}

.book-demo-modal__phone-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.book-demo-modal__submit {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: #111827;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.book-demo-modal__submit:hover:not(:disabled) {
  opacity: 0.9;
}

.book-demo-modal__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.book-demo-modal__error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.book-demo-modal__error.hidden {
  display: none !important;
}

/* Tailwind .hidden loses to .book-demo-modal__form { display:flex } — enforce toggle */
#bookDemoFormView.book-demo-modal--hidden,
.book-demo-modal__form.book-demo-modal--hidden {
  display: none !important;
}

#bookDemoSuccessView.book-demo-modal--hidden,
.book-demo-modal__success.book-demo-modal--hidden {
  display: none !important;
}
