/* ==========================================================================
   Ritiko Landing Page — Landing Home
   Ultra-clean, typography-focused, Stripe/Linear style.
   Monochrome with strategic teal pops. Maximum whitespace.
   SELF-CONTAINED — overrides landing.css completely.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System — Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors — teal-forward palette */
  --lh-black: #111827;
  --lh-dark: #1f2937;
  --lh-gray-700: #374151;
  --lh-gray-500: #6b7280;
  --lh-gray-400: #9ca3af;
  --lh-gray-200: #e5e7eb;
  --lh-gray-100: #f3f4f6;
  --lh-gray-50: #f9fafb;
  --lh-white: #ffffff;
  --lh-teal: #32b0a5;
  --lh-teal-dark: #2a9a90;
  --lh-teal-darker: #1e7a72;
  --lh-teal-light: #5dd9cf;
  --lh-teal-pale: #e8f7f6;
  --lh-teal-bg: rgba(50, 176, 165, 0.06);
  --lh-teal-bg-strong: rgba(50, 176, 165, 0.1);

  /* Typography */
  --lh-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --lh-font-mono: "SF Mono", "Fira Code", "Fira Mono", monospace;

  /* Spacing */
  --lh-section-pad: 120px;
  --lh-container-max: 1200px;

  /* Transitions */
  --lh-ease: cubic-bezier(0.16, 1, 0.3, 1);
}


/* --------------------------------------------------------------------------
   2. Base Overrides
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--lh-font);
  color: var(--lh-black);
  background: var(--lh-white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--lh-container-max);
  margin: 0 auto;
  padding: 0 32px;
}


/* --------------------------------------------------------------------------
   3. Reveal Animation — subtle fade only
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--lh-ease), transform 0.6s var(--lh-ease);
}


/* --------------------------------------------------------------------------
   4. Navbar — minimal, thin bottom border
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lh-gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.3s ease;
}

.navbar.scrolled .container {
  height: 64px;
}

.nav-logo img {
  height: 56px;
  width: auto;
  transition: height 0.3s ease;
}

.navbar.scrolled .nav-logo img {
  height: 32px;
}

/* Logo entrance animation — plays once on page load */
.nav-logo .logo-white {
  animation: logo-entrance 1s var(--lh-ease) 0.1s both;
}

@keyframes logo-entrance {
  0% { opacity: 0; transform: translateY(-12px) scale(0.85); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* White logo on teal hero, switch to color when scrolled */
.nav-logo .logo-white {
  display: block !important;
}

.nav-logo .logo-color {
  display: none !important;
}

.navbar.scrolled .nav-logo .logo-white {
  display: none !important;
}

.navbar.scrolled .nav-logo .logo-color {
  display: block !important;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

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

.nav-links a::after {
  display: none;
}

.nav-new-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--lh-white);
  color: var(--lh-teal);
  vertical-align: super;
  margin-left: 2px;
  line-height: 1;
}

.navbar.scrolled .nav-new-badge {
  background: var(--lh-teal);
  color: var(--lh-white);
}

.navbar.scrolled .nav-links a {
  color: var(--lh-gray-500);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--lh-black);
}

.nav-login-btn {
  padding: 8px 20px !important;
  background: var(--lh-white) !important;
  color: var(--lh-teal) !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.nav-login-btn:hover {
  background: rgba(255, 255, 255, 0.9) !important;
}

.navbar.scrolled .nav-login-btn {
  background: var(--lh-teal) !important;
  color: var(--lh-white) !important;
}

.navbar.scrolled .nav-login-btn:hover {
  background: var(--lh-teal-dark) !important;
}

.menu-toggle span {
  background: var(--lh-white);
}

.navbar.scrolled .menu-toggle span {
  background: var(--lh-black);
}


/* --------------------------------------------------------------------------
   5. Hero — teal background, white typography
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--lh-teal);
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-content {
  flex: 0 0 60%;
  max-width: 60%;
}

.hero-visual {
  flex: 0 0 40%;
  max-width: 40%;
}

.alpha-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--lh-white);
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.alpha-badge:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(253, 224, 71, 0.5);
  color: var(--lh-white);
  text-decoration: none;
}

.neon-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #FDE047;
  border: 1px solid #FDE047;
  background: rgba(253, 224, 71, 0.1);
  text-shadow:
    0 0 7px rgba(253, 224, 71, 0.8),
    0 0 20px rgba(253, 224, 71, 0.5),
    0 0 40px rgba(253, 224, 71, 0.3);
  box-shadow:
    0 0 7px rgba(253, 224, 71, 0.4),
    0 0 20px rgba(253, 224, 71, 0.2),
    inset 0 0 10px rgba(253, 224, 71, 0.1);
  animation: neon-flicker 3s ease-in-out infinite;
}

@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.8; }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
  97% { opacity: 1; }
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--lh-white);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero h1 .accent,
.gradient-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--lh-white);
  background-clip: unset;
  animation: none;
  color: var(--lh-white);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--lh-white);
  color: var(--lh-teal);
  font-weight: 600;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--lh-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--lh-white);
}

/* Hero rotating text */
.hero-rotating-wrapper {
  display: inline-flex;
  position: relative;
  vertical-align: baseline;
}

.hero-rotating-sizer {
  visibility: hidden;
  font-style: normal;
  white-space: pre;
}

.hero-rotating-text-wrap {
  position: absolute;
  left: 0;
  top: 0;
  white-space: pre;
}

.hero-rotating-text {
  color: #FDE047;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-style: normal;
}

.hero-cursor {
  color: #FDE047;
  font-weight: 300;
  animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero image container */
.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
  position: relative;
  z-index: 2;
}

/* Pulse rings behind image */
.hero-overlay-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero .pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-expand 4s ease-out infinite;
}

.hero .ring-1 { width: 300px; height: 300px; animation-delay: 0s; }
.hero .ring-2 { width: 400px; height: 400px; animation-delay: 1.3s; }
.hero .ring-3 { width: 500px; height: 500px; animation-delay: 2.6s; }

@keyframes pulse-expand {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}

/* Floating notification cards */
.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  font-size: 13px;
  font-weight: 500;
  color: var(--lh-black);
  z-index: 3;
  animation: float-card 6s ease-in-out infinite;
  white-space: nowrap;
}

.card-1 { top: 15%; right: -10%; animation-delay: 0s; }
.card-2 { bottom: 25%; left: -5%; animation-delay: 2s; }
.card-3 { bottom: 10%; right: -5%; animation-delay: 4s; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}


/* --------------------------------------------------------------------------
   6. Trust Bar — minimal line separated
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--lh-teal-dark);
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
}

.trust-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.trust-badge {
  background: none;
  border: none;
  border-left: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* --------------------------------------------------------------------------
   7. Flow Diagram — Nurse -> Riko -> Chart (animated SVG)
   -------------------------------------------------------------------------- */
.flow-section {
  padding: var(--lh-section-pad) 0 80px;
  background: var(--lh-white);
}

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

.flow-section .section-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--lh-black);
  text-transform: none;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.flow-node-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--lh-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lh-white);
  transition: border-color 0.4s var(--lh-ease);
}

.flow-node-circle.teal {
  border-color: var(--lh-teal);
  background: var(--lh-teal-bg);
}

.flow-node-circle svg {
  width: 28px;
  height: 28px;
}

.flow-node-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--lh-gray-500);
  letter-spacing: -0.01em;
}

.flow-connector {
  flex: 1;
  max-width: 120px;
  height: 2px;
  position: relative;
  margin: 0 -4px;
  margin-bottom: 32px;
}

.flow-connector-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lh-gray-200);
}

.flow-connector-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lh-teal);
  transform-origin: left;
  transform: scaleX(0);
  animation: flow-progress 3s var(--lh-ease) infinite;
}

@keyframes flow-progress {
  0% { transform: scaleX(0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: scaleX(1); opacity: 1; }
  60% { transform: scaleX(1); opacity: 0; }
  100% { transform: scaleX(1); opacity: 0; }
}

.flow-connector:nth-child(4) .flow-connector-progress {
  animation-delay: 1.5s;
}

.flow-dot {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lh-teal);
  animation: flow-dot-move 3s var(--lh-ease) infinite;
}

@keyframes flow-dot-move {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  50% { left: calc(100% - 8px); opacity: 1; }
  60% { opacity: 0; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

.flow-connector:nth-child(4) .flow-dot {
  animation-delay: 1.5s;
}


/* --------------------------------------------------------------------------
   8. Voice Assistant (Riko) Section — clean 2-column, subtle gray bg
   -------------------------------------------------------------------------- */
.voice-section {
  background: var(--lh-teal-pale);
  padding: var(--lh-section-pad) 0;
  border-top: none;
  border-bottom: none;
}

.voice-section .container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.voice-illustration {
  flex: 0 0 40%;
  max-width: 40%;
  display: flex;
  justify-content: center;
}

/* Riko Chat Mockup — conversational UI animation */
.riko-chat-mockup {
  width: 300px;
  margin: 0 auto;
  background: var(--lh-white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: riko-mockup-float 5s ease-in-out infinite;
}

@keyframes riko-mockup-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Header */
.riko-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--lh-gray-200);
}

.riko-status-dot {
  width: 8px;
  height: 8px;
  background: var(--lh-teal);
  border-radius: 50%;
  animation: riko-status-pulse 2s ease-in-out infinite;
}

@keyframes riko-status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(50, 176, 165, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(50, 176, 165, 0); }
}

.riko-app-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--lh-black);
  font-style: italic;
}

.riko-app-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--lh-teal);
  color: white;
  line-height: 1;
}

/* Chat body */
.riko-chat-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}

/* Bubble base */
.riko-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  max-width: 85%;
  opacity: 0;
  transform: translateY(12px);
}

/* User bubble */
.riko-bubble-user {
  background: var(--lh-gray-100);
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: riko-user-cycle 8s var(--lh-ease) infinite;
}

.riko-bubble-user span {
  font-size: 13px;
  color: var(--lh-gray-700);
  font-weight: 500;
}

/* Mini waveform */
.riko-mini-wave {
  width: 48px;
  height: 24px;
  flex-shrink: 0;
}

.riko-wave-bar {
  animation: riko-wave-pulse 1.4s ease-in-out infinite;
  transform-origin: center;
}
.riko-wave-bar:nth-child(1) { animation-delay: 0s; }
.riko-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.riko-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.riko-wave-bar:nth-child(4) { animation-delay: 0.45s; }
.riko-wave-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes riko-wave-pulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* AI bubble */
.riko-bubble-ai {
  background: var(--lh-teal-pale);
  align-self: flex-start;
  animation: riko-ai-cycle 8s var(--lh-ease) infinite;
}

/* Typing dots */
.riko-typing {
  display: flex;
  gap: 5px;
  padding: 2px 4px;
}

.riko-dot {
  width: 7px;
  height: 7px;
  background: var(--lh-teal);
  border-radius: 50%;
  animation: riko-typing-bounce 1.2s ease-in-out infinite;
}
.riko-dot:nth-child(1) { animation-delay: 0s; }
.riko-dot:nth-child(2) { animation-delay: 0.2s; }
.riko-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes riko-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Output bubble */
.riko-bubble-output {
  background: var(--lh-white);
  border: 1.5px solid var(--lh-teal);
  align-self: flex-start;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: riko-output-cycle 8s var(--lh-ease) infinite;
}

.riko-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.riko-check polyline {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: riko-check-cycle 8s ease-out infinite;
}

/* Check draw synced to output bubble appearance (~56% of 8s = 4.48s) */
@keyframes riko-check-cycle {
  0%, 58% { stroke-dashoffset: 20; }
  66% { stroke-dashoffset: 0; }
  85% { stroke-dashoffset: 0; }
  93%, 100% { stroke-dashoffset: 20; }
}

/* Note preview lines */
.riko-note-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.riko-note-line {
  height: 4px;
  background: var(--lh-gray-200);
  border-radius: 2px;
  opacity: 0;
  transform-origin: left;
  animation: riko-line-cycle 8s ease-out infinite;
}
.riko-note-line:nth-child(1) { animation-delay: 0s; }
.riko-note-line:nth-child(2) { animation-delay: 0.2s; }
.riko-note-line:nth-child(3) { animation-delay: 0.4s; }

.riko-note-line.short { max-width: 55%; }
.riko-note-line.medium { max-width: 75%; }

@keyframes riko-line-cycle {
  0%, 52% { opacity: 0; transform: scaleX(0); }
  60% { opacity: 1; transform: scaleX(1); }
  85% { opacity: 1; transform: scaleX(1); }
  93%, 100% { opacity: 0; transform: scaleX(1); }
}

/* Bubble cycle keyframes — 8s loop, staggered entrances */
/* User: appears 5%-12%, holds, fades at 88%-95% */
@keyframes riko-user-cycle {
  0%, 4% { opacity: 0; transform: translateY(12px); }
  10% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  93%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* AI: appears 25%-32%, holds, fades at 88%-95% */
@keyframes riko-ai-cycle {
  0%, 24% { opacity: 0; transform: translateY(12px); }
  32% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  93%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* Output: appears 48%-56%, holds, fades at 88%-95% */
@keyframes riko-output-cycle {
  0%, 47% { opacity: 0; transform: translateY(12px); }
  56% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  93%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* Mic button bar */
.riko-mic-bar {
  display: flex;
  justify-content: center;
  padding: 16px 0 20px;
  border-top: 1px solid var(--lh-gray-100);
}

.riko-mic-btn {
  position: relative;
  width: 52px;
  height: 52px;
  background: var(--lh-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(50, 176, 165, 0.3);
}

.riko-mic-btn svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.riko-mic-ring {
  position: absolute;
  top: -6px;
  right: -6px;
  bottom: -6px;
  left: -6px;
  border: 2px solid var(--lh-teal);
  border-radius: 50%;
  animation: riko-mic-pulse 2.5s ease-out infinite;
}

@keyframes riko-mic-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}


/* Riko name emphasis */
.riko-highlight {
  color: var(--lh-teal);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
}

.voice-content {
  flex: 0 0 55%;
  max-width: 55%;
  text-align: center;
}

.voice-content > p {
  margin-left: auto;
  margin-right: auto;
}

.voice-content .section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lh-teal);
  margin-bottom: 12px;
}

.voice-content h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--lh-black);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.voice-content > p {
  font-size: 17px;
  color: var(--lh-gray-700);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.7;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.benefit-card {
  background: var(--lh-white);
  border: 1px solid var(--lh-gray-200);
  border-top: none;
  border-radius: 8px;
  padding: 24px;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.benefit-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--lh-gray-400);
}

.benefit-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--lh-black);
  margin-bottom: 4px;
}

.benefit-card p {
  font-size: 13px;
  color: var(--lh-gray-700);
  margin-bottom: 0;
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   9. Programs Section — borderless cards, thin colored top line
   -------------------------------------------------------------------------- */
.programs-section {
  background: var(--lh-white);
  padding: var(--lh-section-pad) 0;
}

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

.programs-section .section-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--lh-black);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.programs-section .section-header .section-subtitle {
  font-size: 17px;
  color: var(--lh-gray-700);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.program-card {
  border: 1px solid var(--lh-gray-200);
  border-radius: 8px;
  box-shadow: none;
  padding: 24px;
  padding-top: 56px;
  text-align: left;
  transition: border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: attr(data-initials);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
}

.program-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--lh-gray-400);
}

/* Per-program colors: alternating teal / blue stripe + light body tint */
.program-card { background: rgba(50, 176, 165, 0.04); }

.program-afc-gafc::before { background: #7cc5b8; }
.program-pchm::before { background: #8fafd4; }
.program-afl::before { background: #7cc5b8; }
.program-more::before { background: #8fafd4; }

.program-card h3 {
  font-family: "Nunito", var(--lh-font);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.program-afc-gafc h3 { color: #5aab9c; }
.program-pchm h3 { color: #6a93ba; }
.program-afl h3 { color: #5aab9c; }
.program-more h3 { color: #6a93ba; }

/* "More Programs" card CTA styling */
.program-more {
  display: flex;
  flex-direction: column;
}

.program-more-cta {
  margin-top: auto;
  padding-top: 16px;
  text-align: center;
}

.program-state {
  font-size: 12px;
  font-weight: 500;
  color: var(--lh-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.program-card > p {
  font-size: 14px;
  color: var(--lh-gray-700);
  line-height: 1.6;
}

.program-card ul {
  margin-top: 16px;
  text-align: left;
}

.program-card ul li {
  padding: 3px 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--lh-gray-700);
  position: relative;
}

.program-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lh-teal);
  opacity: 0.5;
  transform: translateY(-50%);
}


/* --------------------------------------------------------------------------
   10. Features Section — simple icon + text list, no cards
   -------------------------------------------------------------------------- */
.features-section {
  background: var(--lh-white);
  padding: var(--lh-section-pad) 0;
}

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

.features-section .section-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--lh-black);
  letter-spacing: -0.025em;
  margin-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  padding: 20px 24px;
  border-radius: 0;
  border-bottom: 1px solid var(--lh-gray-100);
  transition: background 0.2s ease;
}

.feature-item:hover {
  background: var(--lh-gray-50);
  transform: none;
}

.feature-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin: 0;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-icon svg [stroke="#32b0a5"] { stroke: var(--lh-teal); }
.feature-icon svg [fill="#32b0a5"] { fill: var(--lh-teal); }

.feature-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--lh-black);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.feature-item p {
  font-size: 14px;
  color: var(--lh-gray-700);
  line-height: 1.5;
}


/* --------------------------------------------------------------------------
   12. Demo Section — white bg, teal-bordered form card
   -------------------------------------------------------------------------- */
.demo-section {
  background: var(--lh-teal);
  padding: var(--lh-section-pad) 0;
  border-top: none;
}

.demo-section .container {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.demo-info {
  flex: 0 1 45%;
  max-width: 45%;
  color: var(--lh-white);
}

.demo-info h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--lh-white);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.demo-info p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  opacity: 1;
}

.demo-info ul {
  margin-top: 24px;
}

.demo-info ul li {
  padding: 6px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-info ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lh-white);
  flex-shrink: 0;
  margin-right: 0;
}

.demo-form-wrapper {
  flex: 0 1 50%;
  max-width: 50%;
}

.demo-form-card {
  background: var(--lh-white);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.demo-form-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--lh-black);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--lh-gray-500);
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--lh-gray-200);
  border-radius: 6px;
  font-size: 15px;
  color: var(--lh-black);
  background: var(--lh-white);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--lh-teal);
  box-shadow: 0 0 0 3px rgba(50, 176, 165, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--lh-teal);
  color: var(--lh-white);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background: var(--lh-teal-dark);
}


/* --------------------------------------------------------------------------
   13. Footer — minimal
   -------------------------------------------------------------------------- */
.footer {
  background: var(--lh-teal-darker);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
  border-top: none;
}

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

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--lh-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--lh-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}


/* --------------------------------------------------------------------------
   14. Animations & Micro-interactions
   -------------------------------------------------------------------------- */

/* Hero staggered entrance */
.hero-content .alpha-badge.reveal.active {
  transition-delay: 0s;
}

.hero-content h1.reveal.active {
  transition-delay: 0.15s;
}

.hero-content .hero-subtitle.reveal.active {
  transition-delay: 0.3s;
}

.hero-content .hero-cta.reveal.active {
  transition-delay: 0.45s;
}

/* Hero visual reveal stagger */
.hero-visual.reveal.active {
  transition-delay: 0.3s;
}

/* Feature items hover — teal left border */
.feature-item {
  border-left: 3px solid transparent;
  transition: background 0.3s var(--lh-ease), border-color 0.3s var(--lh-ease);
}

.feature-item:hover {
  border-left-color: var(--lh-teal);
}

/* Benefit card hover — subtle shadow lift */
.benefit-card {
  transition: border-color 0.3s var(--lh-ease), box-shadow 0.3s var(--lh-ease);
}

.benefit-card:hover {
  box-shadow: 0 2px 12px rgba(50, 176, 165, 0.1);
  border-color: var(--lh-teal);
}

/* Button hover micro-interaction */
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(50, 176, 165, 0.2);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.6;
  animation: scroll-fade 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes scroll-fade {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(4px); }
}

/* Staggered reveal for grid children */
.programs-grid .program-card.reveal.active:nth-child(1) { transition-delay: 0s; }
.programs-grid .program-card.reveal.active:nth-child(2) { transition-delay: 0.1s; }
.programs-grid .program-card.reveal.active:nth-child(3) { transition-delay: 0.2s; }
.programs-grid .program-card.reveal.active:nth-child(4) { transition-delay: 0.3s; }

.benefit-grid .benefit-card.reveal.active:nth-child(1) { transition-delay: 0s; }
.benefit-grid .benefit-card.reveal.active:nth-child(2) { transition-delay: 0.1s; }
.benefit-grid .benefit-card.reveal.active:nth-child(3) { transition-delay: 0.2s; }
.benefit-grid .benefit-card.reveal.active:nth-child(4) { transition-delay: 0.3s; }


/* --------------------------------------------------------------------------
   15. Responsive — Tablet (768px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --lh-section-pad: 80px;
  }

  .hero h1 {
    font-size: 48px;
  }

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

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

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


/* --------------------------------------------------------------------------
   15. Responsive — Desktop (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
  }

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


/* --------------------------------------------------------------------------
   16. Responsive — Wide Desktop (1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .hero h1 {
    font-size: 72px;
  }

  .voice-content h2,
  .programs-section .section-header h2,
  .features-section .section-header h2,
  .demo-info h2 {
    font-size: 48px;
  }
}


/* --------------------------------------------------------------------------
   17. Responsive — Mobile (max-width: 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --lh-section-pad: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .nav-logo img,
  .nav-logo svg.logo-white {
    height: 36px;
  }

  .navbar .container {
    height: 64px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--lh-teal-dark);
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .navbar.scrolled .nav-links {
    background: var(--lh-white);
    border-bottom: 1px solid var(--lh-gray-200);
  }

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

  .nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
  }

  .navbar.scrolled .nav-links a {
    color: var(--lh-black);
  }

  /* Hero stacked */
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content,
  .hero-visual {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image {
    max-width: 260px;
  }

  .hero-float-card {
    display: none;
  }

  .hero .pulse-ring {
    display: none;
  }

  /* Flow diagram — stacked on mobile */
  .flow-diagram {
    flex-direction: column;
    gap: 0;
  }

  .flow-connector {
    width: 2px;
    height: 48px;
    max-width: none;
    margin: -4px 0;
    margin-bottom: 0;
  }

  .flow-connector-line {
    width: 2px;
    height: 100%;
    right: auto;
    bottom: 0;
  }

  .flow-connector-progress {
    width: 2px;
    height: 100%;
    transform-origin: top;
    transform: scaleY(0);
    animation: flow-progress-v 3s var(--lh-ease) infinite;
  }

  @keyframes flow-progress-v {
    0% { transform: scaleY(0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: scaleY(1); opacity: 1; }
    60% { transform: scaleY(1); opacity: 0; }
    100% { transform: scaleY(1); opacity: 0; }
  }

  .flow-dot {
    top: 0;
    left: -3px;
    animation: flow-dot-v 3s var(--lh-ease) infinite;
  }

  @keyframes flow-dot-v {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    50% { top: calc(100% - 8px); opacity: 1; }
    60% { opacity: 0; }
    100% { top: calc(100% - 8px); opacity: 0; }
  }

  /* Voice stacked */
  .voice-section .container {
    flex-direction: column;
  }

  .voice-illustration,
  .voice-content {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .voice-content {
    text-align: center;
  }

  .voice-content h2 {
    font-size: 28px;
  }

  .voice-content > p {
    margin-left: auto;
    margin-right: auto;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .riko-chat-mockup {
    width: 260px;
  }

  .riko-chat-body {
    min-height: 200px;
    padding: 16px 12px;
    gap: 12px;
  }


  /* Programs */
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .programs-section .section-header h2,
  .features-section .section-header h2 {
    font-size: 28px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Demo stacked */
  .demo-section .container {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .demo-info {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }

  .demo-info ul {
    display: inline-block;
    text-align: left;
  }

  .demo-form-wrapper {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100% !important;
    align-self: stretch !important;
  }

  .demo-info h2 {
    font-size: 28px;
  }

  .demo-form-card {
    padding: 24px;
    text-align: left;
  }

  /* Disable non-essential animations on mobile to save battery */
  .pulse-ring,
  .hero-float-card,
  .riko-wave-bar,
  .riko-dot {
    animation: none !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   18. Voice Section Typewriter
   -------------------------------------------------------------------------- */
.voice-content .hero-rotating-wrapper {
  display: inline-flex;
  position: relative;
  vertical-align: baseline;
}

.voice-content .hero-rotating-sizer {
  visibility: hidden;
  font-style: normal;
  white-space: pre;
}

.voice-content .hero-rotating-text-wrap {
  position: absolute;
  left: 0;
  top: 0;
  white-space: pre;
}

.voice-content .hero-rotating-text {
  color: var(--lh-teal);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-style: normal;
}

.voice-content .hero-cursor {
  color: var(--lh-teal);
  font-weight: 300;
  animation: blink-cursor 0.7s step-end infinite;
}


/* --------------------------------------------------------------------------
   19. Accessibility
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--lh-teal);
  color: var(--lh-white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lh-teal);
  outline-offset: 2px;
}

/* Mid-page CTA button */
.section-cta {
  text-align: center;
  margin-top: 48px;
}

.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--lh-teal);
  color: var(--lh-white);
  transition: all 0.2s ease;
}

.btn-teal:hover {
  background: var(--lh-teal-dark);
  color: var(--lh-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(50, 176, 165, 0.2);
}


/* --------------------------------------------------------------------------
   20. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
