/* OwlListen Official Landing Page Stylesheet (Vanilla CSS - Forest Light Green Theme) */

/* Modern Fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Color Variables and Root Setup */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Outfit', 'Inter', sans-serif;
  
  /* Curated Warm Forest Light Green Palette */
  --bg-light-start: #F5FAF6;
  --bg-light-end: #EBF5EE;
  --text-primary: #1F3323;     /* Deep forest black-green for peak readability */
  --text-secondary: #4A604F;   /* Soft slate green for descriptions */
  --text-muted: #7F9985;       /* Grayish green for captions */
  
  /* Accents based on the cute Owl Icon */
  --accent-green: #2B8A4C;     /* Main Forest Green */
  --accent-green-hover: #1E6B38;
  --accent-green-glow: rgba(43, 138, 76, 0.08);
  --accent-green-glow-strong: rgba(43, 138, 76, 0.25);
  
  --accent-amber: #D35400;     /* Beak/feet warm rust orange */
  --accent-amber-glow: rgba(211, 84, 0, 0.1);
  --accent-amber-glow-strong: rgba(211, 84, 0, 0.25);
  
  --accent-brown: #8D5E3A;     /* Body chocolate brown for warm labels */
  --accent-brown-light: #F7EFE9;
  
  /* Glassmorphism Cards in Light Mode */
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(43, 138, 76, 0.08);
  --card-border-hover: rgba(43, 138, 76, 0.22);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Document Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 0%, #DDF2E5 0%, var(--bg-light-start) 50%), var(--bg-light-end);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Glow Backdrops (Forest Green & Soft Owl Brown) */
.ambient-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 84, 0, 0.08) 0%, transparent 70%);
  top: -10vw;
  right: -10vw;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
}

.ambient-glow-2 {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 138, 76, 0.08) 0%, transparent 70%);
  top: 60vh;
  left: -20vw;
  z-index: 0;
  pointer-events: none;
  filter: blur(100px);
}

/* Grid & Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Custom Classes */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(245, 250, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.logo span {
  color: var(--accent-green);
}

.logo-icon-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 2px 6px rgba(43,138,76,0.15));
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-green);
}

.cta-nav {
  background: rgba(43, 138, 76, 0.08);
  border: 1px solid rgba(43, 138, 76, 0.25);
  color: var(--accent-green);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.cta-nav:hover {
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-green-glow-strong);
  transform: translateY(-1px);
}

.language-switcher {
  min-width: 112px;
  height: 38px;
  border: 1px solid rgba(43, 138, 76, 0.18);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  background-image: url("data:image/svg+xml;utf8,<svg fill='%234A604F' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: var(--text-secondary);
  padding: 0 28px 0 14px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.language-switcher:hover,
.language-switcher:focus {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%232B8A4C' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
}

.legal-page > .language-switcher {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(43, 138, 76, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Button & Controls Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-green), #3cb566);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(43, 138, 76, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(43, 138, 76, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--card-border-hover);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43,138,76,0.06);
}

/* QR Code Tooltip Hover Effect */
.qr-trigger-wrapper {
  position: relative;
  display: inline-block;
}

.qr-tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-green);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 180px;
  box-shadow: 0 10px 30px rgba(43, 138, 76, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 10;
}

.qr-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.98) transparent transparent transparent;
}

.qr-trigger-wrapper:hover .qr-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.qr-code-mock {
  width: 140px;
  height: 140px;
  background: white;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-tooltip-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* Section Header styling */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-green);
  background: rgba(43, 138, 76, 0.08);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(43, 138, 76, 0.15);
}

.section-title {
  font-size: 38px;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-secondary);
}

/* Motion system */
.hero-reveal {
  opacity: 0;
  animation: hero-rise 0.9s var(--ease-out-soft) 0.12s forwards;
}

.hero-reveal-late {
  animation-delay: 0.28s;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out-soft), transform 0.75s var(--ease-out-soft);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-stagger:nth-child(3) {
  transition-delay: 0.16s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 1. Hero Section */
.hero {
  padding: 160px 0 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 54px;
  line-height: 1.18;
  margin-bottom: 24px;
  color: var(--text-primary);
  white-space: pre-line;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.75;
}

.hero-proof-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.hero-proof-points span {
  color: var(--accent-green);
  background: rgba(43, 138, 76, 0.07);
  border: 1px solid rgba(43, 138, 76, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.hero-trust-note {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 14px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Breathing Backing Glow for Hero Mockup */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent-green-glow-strong) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: pulse-glow 6s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

/* Silver-White iPhone Mockup Frame to match clean Light Green theme */
.iphone-frame {
  width: 280px;
  height: 560px;
  background: #ffffff;
  border-radius: 40px;
  border: 10px solid #e0eae2;
  box-shadow: 0 20px 45px rgba(43, 138, 76, 0.12), inset 0 0 8px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: phone-float 7s ease-in-out infinite;
}

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

/* 2. Philosophy Section */
.philosophy {
  padding: 100px 0;
  position: relative;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* Glassmorphism Cards in Light Mode */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 8px 30px rgba(43, 138, 76, 0.03);
}

/* Card Glow backing on hover */
.glass-card::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent-green-glow) 0%, transparent 70%);
  top: -75px;
  right: -75px;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 0;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-hover);
  box-shadow: 0 15px 35px rgba(43, 138, 76, 0.08);
  background: #ffffff;
}

.glass-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(43, 138, 76, 0.06);
  border: 1px solid rgba(43, 138, 76, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--accent-green);
}

.card-title {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 3. Workflow Steps Section */
.workflow {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(43, 138, 76, 0.025) 50%, transparent 100%);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.workflow-card {
  position: relative;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0,0,0,0.01);
  overflow: hidden;
}

.workflow-card:hover {
  border-color: var(--card-border-hover);
  background: #ffffff;
  transform: translateY(-3px);
}

.workflow-number {
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(43, 138, 76, 0.4) 0%, transparent 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 20px;
}

.workflow-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.workflow-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 5. Community Section */
.community {
  padding: 20px 0 80px;
}

.community-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 34px 38px;
  box-shadow: 0 10px 34px rgba(43, 138, 76, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.community-card .section-tag {
  margin-bottom: 12px;
}

.community-card h2 {
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.community-card p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 620px;
}

/* 6. FAQ Section styling details summary */
.faq {
  padding: 100px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Collapsible Details styling */
details {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

details[open] {
  border-color: rgba(43, 138, 76, 0.35);
  box-shadow: 0 8px 20px rgba(43,138,76,0.04), inset 0 0 15px var(--accent-green-glow);
  background: #ffffff;
}

summary {
  list-style: none;
  outline: none;
  padding: 24px 30px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: var(--transition-fast);
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  color: var(--accent-green);
  background: rgba(43,138,76,0.01);
}

/* Chevron indicator */
.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

details[open] summary .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-green);
}

.faq-answer {
  padding: 0 30px 24px 30px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid rgba(0,0,0,0.02);
  padding-top: 16px;
}

/* Footer Section */
footer {
  background: #f0f7f2;
  border-top: 1px solid var(--card-border);
  padding: 60px 0 40px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

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

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-green);
}

.footer-bottom {
  border-top: 1px solid rgba(43, 138, 76, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-badge span {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--accent-green);
}

/* Mobile-first Media Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 44px;
  }
  
  .hero-ctas {
    justify-content: center;
  }

  .hero-proof-points {
    justify-content: center;
  }
  
  .iphone-frame {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  header {
    height: 84px;
  }

  .header-container {
    padding: 0 28px;
  }

  nav {
    display: none;
  }
  
  .section-title {
    font-size: 30px;
  }
  
  .logo-text {
    display: none;
  }

  .logo-icon-img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    filter: drop-shadow(0 8px 18px rgba(43,138,76,0.14));
  }

  .cta-nav {
    padding: 9px 20px;
    border-radius: 24px;
    font-size: 15px;
  }

  .header-container .language-switcher {
    min-width: 84px;
    width: 84px;
    padding: 0 8px;
  }
  
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .community {
    padding-bottom: 60px;
  }

  .community-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .community-card .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   High-Fidelity App Interactive Mockup Style Rules
   ========================================================================== */

.real-app-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: var(--font-sans);
  padding: 0;
  user-select: none;
}

/* Status Bar */
.real-app-statusbar {
  height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 16px 4px 16px;
  font-size: 10px;
  font-weight: 700;
  color: #000000;
}

.real-app-statusbar .status-time {
  letter-spacing: -0.1px;
}

.real-app-statusbar .status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.real-app-statusbar .icon-cellular,
.real-app-statusbar .icon-wifi {
  display: inline-flex;
  align-items: flex-end;
}

.real-app-statusbar .icon-cellular svg,
.real-app-statusbar .icon-wifi svg {
  display: block;
}

.real-app-statusbar .icon-battery {
  display: inline-flex;
  align-items: center;
  border: 1px solid #2b8a4c;
  background: rgba(43, 138, 76, 0.1);
  color: #2b8a4c;
  padding: 0px 3px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 800;
  height: 11px;
  line-height: 9px;
  box-sizing: border-box;
}

/* Header bar */
.real-app-header {
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  color: #1f3323;
}

.real-app-header .header-back {
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #1f3323;
}

.real-app-header .header-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
  text-align: center;
}

.real-app-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.real-app-header .header-actions svg {
  cursor: pointer;
  color: #1f3323;
  transition: opacity 0.2s ease;
}

.real-app-header .header-actions svg:hover {
  opacity: 0.7;
}

/* Tabs */
.real-app-tabs-container {
  display: flex;
  justify-content: center;
  padding: 4px 16px;
}

.real-app-tabs {
  display: flex;
  background: #f1f6f2;
  border-radius: 20px;
  padding: 3px;
  width: 100%;
}

.real-app-tab {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 0;
  border-radius: 17px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #7f9985;
}

.real-app-tab:hover {
  color: #2b8a4c;
}

.real-app-tab.active {
  background: #ffffff;
  color: #2b8a4c;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(43, 138, 76, 0.08);
}

/* Transcript content */
.real-app-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* Custom thin scrollbar */
.real-app-content::-webkit-scrollbar {
  width: 3px;
}

.real-app-content::-webkit-scrollbar-track {
  background: transparent;
}

.real-app-content::-webkit-scrollbar-thumb {
  background: #2b8a4c;
  border-radius: 2.5px;
}

.real-app-row {
  display: flex;
  gap: 10px;
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px;
  transition: all 0.2s ease;
}

.real-app-row:hover {
  background: rgba(43, 138, 76, 0.02);
}

.real-app-row.active {
  background: rgba(43, 138, 76, 0.05);
}

.real-app-row-num {
  font-size: 11px;
  font-weight: 700;
  color: #2b8a4c;
  font-family: monospace;
  width: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.real-app-row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.real-app-row-eng {
  font-size: 11px;
  line-height: 1.5;
  color: #1f3323;
  font-weight: 400;
  transition: color 0.2s ease;
}

.real-app-row.active .real-app-row-eng {
  color: #2b8a4c;
  font-weight: 500;
}

.real-app-row-chn {
  font-size: 9.5px;
  line-height: 1.4;
  color: #7f9985;
}

/* Row Star icon */
.real-app-row-star {
  align-self: flex-start;
  margin-top: 2px;
  color: #2b8a4c;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
}

/* Bottom Player controls */
.real-app-player {
  background: #ffffff;
  padding: 8px 16px 16px 16px;
  border-top: 1px solid #f0f4f1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Slider */
.real-app-slider-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.real-app-time {
  font-size: 9px;
  color: #7f9985;
  font-family: monospace;
  width: 28px;
}

.real-app-time.right {
  text-align: right;
}

.real-app-slider {
  flex: 1;
  height: 4px;
  background: #e6eee8;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.real-app-slider-progress {
  height: 100%;
  background: #2b8a4c;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.real-app-slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b8a4c;
  left: 0%;
  transition: left 0.1s linear;
}

/* Buttons */
.real-app-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.real-app-speed {
  font-size: 11px;
  font-weight: 700;
  color: #1f3323;
  cursor: pointer;
  width: 28px;
  text-align: left;
}

.real-app-btn-prev,
.real-app-btn-next {
  color: #1f3323;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: opacity 0.2s ease;
}

.real-app-btn-prev:hover,
.real-app-btn-next:hover {
  opacity: 0.7;
}

.real-app-btn-play {
  width: 36px;
  height: 36px;
  background: #2b8a4c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(43, 138, 76, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.real-app-btn-play:hover {
  transform: scale(1.08);
  background: #247540;
}

.real-app-btn-play svg {
  fill: currentColor;
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */

.legal-page {
  min-height: 100vh;
}

.legal-back-button {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--card-border);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(43, 138, 76, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-fast);
}

.legal-back-button:hover {
  color: var(--accent-green);
  border-color: var(--card-border-hover);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.legal-main {
  padding-top: 0;
}

.legal-hero {
  padding: 96px 0 36px;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  margin-top: 14px;
  margin-bottom: 16px;
}

.legal-hero p {
  color: var(--text-secondary);
  font-size: 16px;
}

.legal-card {
  max-width: 920px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 48px;
  margin-bottom: 96px;
  box-shadow: 0 16px 44px rgba(43, 138, 76, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.legal-card h2 {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 38px;
  margin-bottom: 12px;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.85;
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-card ul {
  margin: 12px 0 0 20px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card a {
  color: var(--accent-green);
  font-weight: 700;
  text-decoration: none;
}

.legal-card a:hover {
  text-decoration: underline;
}

.legal-note {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(43, 138, 76, 0.05);
  border: 1px solid rgba(43, 138, 76, 0.1);
  margin-bottom: 34px;
}

@media (max-width: 768px) {
  .legal-main {
    padding-top: 0;
  }

  .legal-hero {
    padding: 88px 0 28px;
  }

  .legal-back-button {
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }

  .legal-card {
    padding: 28px 22px;
    border-radius: 22px;
    margin-bottom: 56px;
  }

  .legal-card h2 {
    font-size: 21px;
  }

  .legal-card p,
  .legal-card li {
    font-size: 15px;
  }
}
