/* ============================================
   BOOKED AI — Stylesheet
   Dark tech-premium aesthetic
   ============================================ */

/* --- Design Tokens --- */
:root {
  --green: #01D48F;
  --green-hover: #00b87a;
  --green-glow: rgba(1, 212, 143, 0.15);
  --green-glow-strong: rgba(1, 212, 143, 0.3);
  --white: #FFFFFF;
  --navy: #1A1A2E;
  --navy-light: #232347;
  --navy-lighter: #2a2a50;
  --navy-dark: #111125;
  --navy-darkest: #0d0d1e;
  --text-muted: #9898b0;
  --text-muted-dark: #6a6a82;
  --text-body: #4A4A5A;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.1);
  --shadow-dark-card: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.3);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { max-width: 65ch; }

.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark p,
.section-dark .text-muted {
  color: var(--text-muted);
}

.section-light {
  background: var(--white);
  color: var(--navy);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header p {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--text-muted-dark);
}

.section-dark .section-header p {
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--navy-darkest);
  box-shadow: 0 2px 12px rgba(1, 212, 143, 0.25);
}

.btn-primary:hover {
  background: var(--green-hover);
  box-shadow: 0 4px 24px rgba(1, 212, 143, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(26, 26, 46, 0.2);
}

.btn-ghost-dark:hover {
  border-color: var(--green);
  color: var(--green);
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 28px;
  transition: all var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 76px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--transition);
}

.header.scrolled .logo {
  color: var(--white);
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--green);
}

.header.scrolled .nav-links a {
  color: var(--white);
}

.header.scrolled .nav-links a:hover {
  color: var(--white);
}

.nav-links .btn {
  font-size: 0.9rem;
  padding: 12px 28px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(1, 212, 143, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(1, 212, 143, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Subtle grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(1, 212, 143, 0.1);
  border: 1px solid rgba(1, 212, 143, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: #0a9b6a;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--navy);
}

.hero h1 .highlight {
  color: var(--green);
}

/* --- Hero Fan Images --- */
.hero-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  height: 260px;
  margin: 40px auto 40px;
  max-width: 750px;
}

.hero-fan-img {
  --rotation: calc((var(--i) - 3) * 8deg);
  --shift: calc((var(--i) - 3) * 6px);
  position: absolute;
  width: 180px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: #e0e0e0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: rotate(var(--rotation)) translateY(var(--shift));
  left: calc(50% + (var(--i) - 3) * 72px - 90px);
  transition: transform 0.3s ease;
}

.hero-fan-img[style*="--i:0"] { z-index: 1; }
.hero-fan-img[style*="--i:1"] { z-index: 2; }
.hero-fan-img[style*="--i:2"] { z-index: 3; }
.hero-fan-img[style*="--i:3"] { z-index: 4; }
.hero-fan-img[style*="--i:4"] { z-index: 3; }
.hero-fan-img[style*="--i:5"] { z-index: 2; }
.hero-fan-img[style*="--i:6"] { z-index: 1; }

.hero-fan-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-fan {
    height: 180px;
    margin: 28px auto 28px;
  }

  .hero-fan-img {
    width: 120px;
    height: 150px;
    border-radius: 12px;
    left: calc(50% + (var(--i) - 3) * 48px - 60px);
    --rotation: calc((var(--i) - 3) * 7deg);
  }
}

@media (max-width: 480px) {
  .hero-fan {
    height: 150px;
    margin: 20px auto 20px;
  }

  .hero-fan-img[style*="--i:0"],
  .hero-fan-img[style*="--i:6"] {
    display: none;
  }

  .hero-fan-img {
    width: 90px;
    height: 115px;
    border-radius: 10px;
    left: calc(50% + (var(--i) - 3) * 50px - 45px);
    --rotation: calc((var(--i) - 3) * 7deg);
  }
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-body);
  margin: 0 auto 40px;
  max-width: 580px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Card Grids --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Light cards */
.card {
  padding: 36px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.section-light .card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-card);
}

.section-light .card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* Dark cards */
.section-dark .card {
  background: var(--navy-light);
  border: 1px solid var(--border-subtle);
}

.section-dark .card:hover {
  border-color: rgba(1, 212, 143, 0.15);
  background: var(--navy-lighter);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--green-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--green);
  stroke: var(--green);
}

/* --- Card with Image --- */
.card-with-image {
  padding: 0;
  overflow: hidden;
}

.card-with-image .card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f5f7;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.card-with-image .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-with-image h3,
.card-with-image p {
  padding-left: 32px;
  padding-right: 32px;
}

.card-with-image h3 {
  padding-top: 24px;
}

.card-with-image p {
  padding-bottom: 28px;
}

/* Compact padding for image cards in 4-col grid */
.card-grid-4 .card-with-image h3,
.card-grid-4 .card-with-image p {
  padding-left: 20px;
  padding-right: 20px;
}

.card-grid-4 .card-with-image h3 {
  padding-top: 18px;
  font-size: 1.05rem;
}

.card-grid-4 .card-with-image p {
  padding-bottom: 20px;
  font-size: 0.875rem;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.section-light .card p {
  color: var(--text-body);
}

/* --- Trade Cards (smaller) --- */
.trade-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.trade-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.trade-card .card-icon {
  margin: 0 auto 16px;
  width: 48px;
  height: 48px;
}

.trade-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.trade-card p {
  font-size: 0.875rem;
  color: var(--text-body);
  margin: 0 auto;
}

/* --- How It Works Cards --- */
.section-header-left {
  text-align: left;
}

.section-header-left h2 {
  text-align: left;
}

.section-header-left p {
  margin-left: 0;
  margin-right: 0;
}

.hiw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hiw-card {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(0,0,0,0.08);
}

.hiw-card:last-child {
  border-right: none;
}

.hiw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hiw-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  opacity: 0.7;
}

.hiw-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hiw-icon svg {
  width: 22px;
  height: 22px;
  color: var(--green);
}

.hiw-card h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.hiw-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  flex-grow: 1;
}

.hiw-action {
  margin-top: 28px;
}

.btn.btn-dark {
  background-color: #1A1A2E;
  color: #ffffff;
  padding: 16px 32px;
  border: none;
}

.btn.btn-dark:hover {
  background-color: #252540;
  transform: translateY(-2px);
}

.hiw-arrow {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,0,0,0.15), rgba(0,0,0,0.05));
  position: relative;
  margin-top: 12px;
}

.hiw-arrow::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0,0,0,0.25);
  font-size: 1.2rem;
}

/* --- The Standard --- */
.standard-sub {
  margin-top: 16px;
}

.standard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.standard-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #1A1A2E 0%, #2a2a44 40%, #1e2a38 100%);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.standard-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 30%, rgba(1, 212, 143, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.standard-card h3 {
  font-size: 1.4rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: auto;
  position: relative;
}

.standard-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-top: 24px;
  position: relative;
}

.standard-cta {
  text-align: center;
}

/* --- Pain Points --- */
.pain-lead {
  padding: 40px 44px;
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
  background: var(--navy-light);
  margin-bottom: 36px;
}

.pain-lead p {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 100%;
}

.pain-lead p strong {
  color: var(--white);
}

.pain-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--navy-light);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  position: relative;
}

.pain-card h3 {
  color: var(--white);
}

.pain-card p {
  color: var(--text-muted);
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--green), rgba(1, 212, 143, 0.3));
}

.pain-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.pain-card p {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.pain-contrast {
  text-align: center;
  margin-top: 48px;
  padding: 0 20px;
}

.pain-contrast p {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--white);
  max-width: 700px;
  margin: 0 auto;
}

.pain-contrast .highlight {
  color: var(--green);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  margin-bottom: 20px;
  color: var(--navy);
}

.cta-section p {
  color: var(--text-body);
  margin: 0 auto 36px;
  max-width: 540px;
  font-size: 1.05rem;
}

/* --- Footer --- */
.footer {
  background: var(--navy-darkest);
  color: var(--text-muted);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.925rem;
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--green);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--green);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

/* --- Demo Page --- */
.hero-demo {
  min-height: auto;
  padding: 160px 0 80px;
}

.hero-demo .hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.video-container {
  max-width: 800px;
  margin: 48px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-light);
  border: 1px solid var(--border-subtle);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(1, 212, 143, 0.4);
  transition: all var(--transition);
  cursor: pointer;
}

.play-button:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 40px rgba(1, 212, 143, 0.5);
}

.play-button svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  color: var(--navy-darkest);
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-light);
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: rgba(1, 212, 143, 0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--green);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.faq-item.active .faq-icon {
  background: var(--green-glow);
  border-color: rgba(1, 212, 143, 0.3);
}

.faq-item.active .faq-icon svg {
  color: var(--green);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 28px 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* --- Animations --- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
}

.animate-on-scroll.visible {
  animation: fade-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered children */
.stagger-children .animate-on-scroll:nth-child(1) { animation-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { animation-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(3) { animation-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(4) { animation-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(5) { animation-delay: 0.4s; }
.stagger-children .animate-on-scroll:nth-child(6) { animation-delay: 0.5s; }
.stagger-children .animate-on-scroll:nth-child(7) { animation-delay: 0.6s; }
.stagger-children .animate-on-scroll:nth-child(8) { animation-delay: 0.7s; }

/* --- Mobile Menu --- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--green);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hiw-cards {
    grid-template-columns: 1fr;
  }

  .hiw-card {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .hiw-card:last-child {
    border-bottom: none;
  }

  .standard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .card-grid,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hiw-card {
    padding: 28px 24px;
  }

  .standard-cards {
    grid-template-columns: 1fr;
  }

  .pain-lead {
    padding: 28px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-demo {
    padding: 120px 0 60px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 28px 24px;
  }

  .card-with-image {
    padding: 0;
  }

  .standard-card {
    min-height: 200px;
  }
}

/* --- Demo Sales Copy --- */
.demo-copy {
  max-width: 700px;
}

.demo-copy h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 32px;
}

.demo-copy p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 24px;
  max-width: 100%;
}

.demo-copy-intro {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  font-style: italic;
}

.demo-copy-highlight {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  margin-top: 8px;
}

/* --- Calendar Embed --- */
.calendar-embed {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}

.calendar-embed iframe {
  display: block;
  width: 100%;
  min-height: 700px;
}

/* --- Thank You Cards --- */
.ty-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.ty-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ty-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(1, 212, 143, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.ty-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.ty-card-step {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 12px;
}

.ty-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.ty-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
}

.ty-card p strong {
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 640px) {
  .ty-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ty-card {
    padding: 32px 24px;
  }
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 700px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 16px;
  max-width: 100%;
}

.legal-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--green-hover);
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 6px;
}

/* --- Demo CTA Button --- */
.demo-cta {
  margin-top: 32px;
  display: inline-block;
  font-size: 1.1rem;
  padding: 16px 48px;
  letter-spacing: 0.5px;
}

/* --- Demo Gate Modal --- */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  touch-action: none;
}

.demo-modal {
  background: var(--navy);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  position: relative;
  overflow: hidden;
  overflow-y: auto;
  max-height: 90vh;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.demo-modal-overlay.active .demo-modal {
  transform: translateY(0);
}

.demo-modal-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
}

.demo-modal-progress-bar {
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, var(--green), var(--green-hover));
  border-radius: 0 3px 3px 0;
}

.demo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--transition);
  line-height: 1;
}

.demo-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.demo-modal-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--white);
  padding: 36px 36px 0;
  line-height: 1.2;
}

.demo-modal-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 12px 36px 0;
  line-height: 1.6;
  max-width: 100%;
}

.demo-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 36px 0;
}

.demo-modal-fields input {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition);
}

.demo-modal-fields input:focus {
  border-color: var(--green);
}

.demo-modal-fields input::placeholder {
  color: #999;
}

.demo-modal-phone {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.demo-modal-flag {
  display: flex;
  align-items: center;
  padding: 0 12px 0 16px;
  font-size: 1.3rem;
  background: var(--white);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.demo-modal-phone input {
  border: none;
  border-radius: 0;
  background: transparent;
}

.demo-modal-phone:focus-within {
  border-color: var(--green);
}

.demo-modal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 36px 0;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.demo-modal-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
}

.demo-modal-submit {
  display: block;
  width: calc(100% - 72px);
  margin: 24px 36px 36px;
  padding: 18px 32px;
  background: var(--green);
  color: var(--navy-darkest);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
}

.demo-modal-submit:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(1, 212, 143, 0.4);
}

.demo-modal-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  text-align: center;
  padding: 0 36px 24px;
  margin: 0;
  min-height: 0;
}

.demo-modal-error:empty {
  display: none;
}

/* Video player (Wistia) */
.video-player {
  width: 100%;
  height: 100%;
}

.video-player wistia-player {
  width: 100%;
  height: 100%;
  display: block;
}

/* Video unlocked state */
.video-unlocked .video-placeholder {
  display: none;
}

.video-unlocked .video-player {
  display: block !important;
}

@media (max-width: 480px) {
  .demo-modal,
  .lp-modal-box {
    max-width: 100%;
    border-radius: var(--radius);
  }

  .demo-modal-title {
    font-size: 1.4rem;
    padding: 28px 24px 0;
  }

  .demo-modal-sub {
    padding: 10px 24px 0;
  }

  .demo-modal-fields {
    padding: 20px 24px 0;
  }

  .demo-modal-checkbox {
    padding: 16px 24px 0;
  }

  .demo-modal-submit {
    width: calc(100% - 48px);
    margin: 20px 24px 28px;
  }

  .demo-modal-error {
    padding: 0 24px 20px;
  }
}


/* ============================================
   LANDING PAGE (/get-demo/)
   ============================================ */

/* --- LP Hero --- */
.lp-hero {
  padding: 140px 0 100px;
  text-align: center;
}

.lp-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.lp-hero-content h1 {
  margin-bottom: 24px;
}

.mobile-break {
  display: none;
}

.lp-hero-content .hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 650px;
  margin: 0 auto 28px;
}

.lp-scarcity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 36px;
}

.lp-scarcity svg {
  flex-shrink: 0;
}

.lp-cta {
  font-size: 1.05rem;
  padding: 18px 40px;
}

/* --- LP Problem Copy --- */
.lp-problem-copy {
  max-width: 700px;
  margin: 0 auto;
}

.lp-problem-copy p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 20px;
  max-width: 700px;
}

.lp-problem-highlight {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 32px;
}

/* Problem section on dark background */
.lp-problem-dark .lp-problem-copy p {
  color: var(--text-muted);
}

.lp-problem-dark .lp-problem-highlight {
  color: var(--white);
}

/* --- LP Steps (How It Works) --- */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.lp-steps-4 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
}

.lp-step {
  background: var(--navy-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}

.lp-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy-darkest);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.lp-step h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.lp-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 100%;
}

/* --- LP Features (What Makes This Different) --- */
.lp-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.lp-feature {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.lp-feature:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.lp-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--green-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.lp-feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.lp-feature h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.lp-feature p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 100%;
}

/* --- Google Reviews Grid --- */
.google-reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

/* --- Single Review Wrapper (centered) --- */
.google-review-single {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Video Embed (Hero) --- */
.lp-video-embed {
  max-width: 640px;
  margin: 0 auto 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.lp-video-placeholder {
  width: 100%;
  height: 100%;
  background: var(--navy-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}

.lp-video-placeholder svg {
  opacity: 0.4;
}

.lp-video-placeholder p {
  font-size: 0.9rem;
  margin: 0;
}

/* --- Exclusivity Copy --- */
.lp-exclusivity-copy {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.lp-exclusivity-copy p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 16px;
}

/* --- Landing Page Section Heading --- */
.lp-section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

/* --- Google Review Card --- */
.google-review-card {
  background: var(--white);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.google-review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #e8e8e8;
}

.google-review-logo {
  flex-shrink: 0;
}

.google-review-source {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.google-review-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.google-review-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.google-review-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
}

.google-review-stars {
  display: flex;
  gap: 1px;
}

.google-review-body {
  padding: 20px 24px;
  flex: 1;
}

.google-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.google-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4285F4;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.google-review-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.google-review-meta strong {
  color: #333;
  font-size: 0.95rem;
}

.google-review-meta span {
  color: #888;
  font-size: 0.8rem;
}

.google-review-stars-inline {
  display: flex;
  gap: 1px;
  margin-bottom: 10px;
}

.google-review-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

.google-review-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-top: 1px solid #e8e8e8;
  color: #4285F4;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.google-review-link:hover {
  background: #f8f9fa;
}

/* --- LP FAQ (light background variant) --- */
.lp-faq-section .faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.lp-faq-section .faq-question {
  color: var(--navy);
}

.lp-faq-section .faq-icon {
  color: var(--navy);
}

.lp-faq-section .faq-item.active .faq-icon {
  color: var(--green);
}

.lp-faq-section .faq-answer-inner {
  color: var(--text-body);
}

/* --- LP Final CTA --- */
.lp-final-cta {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.lp-final-cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.75;
  margin: 20px auto 36px;
  max-width: 600px;
}

/* --- LP Multi-step Modal --- */
.lp-modal-box {
  max-width: 520px;
}

.lp-modal-step {
  /* Inherits demo-modal-fields, demo-modal-submit etc. */
}

/* Consent checkbox */
.lp-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 32px;
  margin-top: 16px;
  margin-bottom: 8px;
  cursor: pointer;
}

.lp-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.lp-consent span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Select dropdown (Step 1) */
.demo-modal-fields select {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.demo-modal-fields select:focus {
  border-color: var(--green);
}

/* Calendar embed wrapper */
.lp-calendar-wrap {
  padding: 0 24px 24px;
  min-height: 900px;
}

.lp-calendar-wrap iframe {
  border-radius: var(--radius);
}

/* --- LP Responsive --- */
@media (max-width: 768px) {
  .lp-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lp-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .google-reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lp-hero {
    padding: 120px 0 80px;
  }

  .mobile-break {
    display: block;
  }

  .lp-hero-content h1 {
    font-size: 1.85rem;
  }
}

@media (max-width: 480px) {
  .lp-hero-content .hero-sub {
    font-size: 1rem;
  }

  .lp-scarcity {
    font-size: 0.85rem;
  }

  .lp-cta {
    width: 100%;
    font-size: 1rem;
    padding: 16px 24px;
  }

  .lp-step {
    padding: 28px 24px;
  }

  .lp-feature {
    padding: 28px 24px;
  }

  .google-review-text {
    font-size: 0.9rem;
  }

  .lp-calendar-wrap {
    padding: 0 12px 12px;
    min-height: 500px;
  }

  .lp-modal-box {
    max-width: 100%;
  }
}
