/* ==========================================
   loopr - Smart Theme Park Tracker Landing Page
   Harmonious & Cohesive Light Design System
   ========================================== */

/* Fonts are preconnected + linked in the HTML <head> for faster, non-blocking loading */

:root {
  /* Brand Palette */
  --primary: #fc7700;
  --primary-hover: #e56a00;
  --primary-light: rgba(252, 119, 0, 0.09);
  --primary-border: rgba(252, 119, 0, 0.22);

  /* Brand gradient — mirrors the in-app CTA buttons (red -> orange) */
  --gradient-brand: linear-gradient(95deg, #f5451d 0%, #fc7700 55%, #ff9412 100%);

  /* "Live" status accent (green, animated dot) used on all badges/tags */
  --accent-green: #12a150;
  --accent-green-light: rgba(18, 161, 80, 0.12);

  /* Neutral grays — matched to the loopr app UI (light gray canvas, white cards) */
  --bg-app: #f3f4f6;
  --bg-card: #ffffff;
  --bg-subtle: #eceef1;
  --bg-dark: #1b1c1f;

  --text-main: #1e2024;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --text-white: #ffffff;

  --border-color: #e6e8ec;
  --border-card: rgba(230, 232, 236, 0.9);

  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Soft neutral shadows to match the app's gentle card elevation */
  --shadow-card: 0 4px 16px rgba(23, 25, 28, 0.05);
  --shadow-hover: 0 10px 30px rgba(23, 25, 28, 0.09);
  --shadow-btn: 0 4px 14px rgba(23, 25, 28, 0.10);

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-app);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* Offset anchor jumps so the fixed navbar never overlaps section headings */
section[id] {
  scroll-margin-top: 100px;
}

/* Section divider — a line with the loopr logo centered on it */
.section-divider {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-divider .divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.section-divider .divider-logo {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}

.section-divider--spaced {
  margin-top: 56px;
  margin-bottom: 56px;
}

/* Scroll reveal — sections fade up and build in progressively.
   Pre-hidden only when JS is active (html.js) to avoid a no-JS blank page. */
.js .hero-inner,
.js .parks-logos,
.js .trademark-notice,
.js .section-header,
.js .feature-carousel,
.js .premium-layout,
.js .stats-row,
.js .timeline-item,
.js .contact-form-box {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.js .is-visible {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-inner,
  .js .parks-logos,
  .js .trademark-notice,
  .js .section-header,
  .js .feature-carousel,
  .js .premium-layout,
  .js .stats-row,
  .js .timeline-item,
  .js .contact-form-box {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px auto;
}

/* Section kicker — plain editorial label with a short line on each side */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-tag::before,
.section-tag::after {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(23, 25, 28, 0.16);
  filter: saturate(1.04);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-dark);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-store:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-store svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.25;
}

.btn-store-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.btn-store-main {
  font-size: 0.95rem;
  font-weight: 700;
}

.input-field {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.input-field {
  resize: vertical;
  min-height: 120px;
}

/* Header & Navigation */
/* Floating pill navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  background: transparent;
  display: flex;
  justify-content: center;
  transition: padding var(--transition-normal);
}

.navbar.scrolled {
  padding: 10px 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  gap: 34px;
  width: auto;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 12px 14px 12px 26px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 24px rgba(23, 25, 28, 0.08);
  transition: padding var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled .navbar-container {
  padding: 8px 12px 8px 24px;
  box-shadow: 0 4px 16px rgba(23, 25, 28, 0.12);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  background: var(--bg-dark);
  color: #ffffff;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn-download:hover {
  transform: translateY(-2px);
  background: #000000;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: height var(--transition-normal);
}

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

.nav-link {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
  border-radius: var(--radius-pill);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero — centered, inside a soft rounded shell */
.hero {
  padding: 150px 24px 20px;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-headline span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary); /* fallback */
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 auto 32px;
  max-width: 560px;
  line-height: 1.7;
}

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

/* Hero image — placeholder device render, centered, flush to the shell bottom */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 48px;
}

.standalone-image {
  width: 100%;
  max-width: 330px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 34px rgba(23, 25, 28, 0.16));
}

/* Theme Park Logos */
.parks-section {
  padding: 28px 0 84px;
}

.parks-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.parks-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 52px;
}

.park-logo {
  height: 76px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.park-logo:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* "& many more" — sits at the end of the logo row, same height as a logo.
   The ampersand spans both lines; "many" / "more" stack beside it. */
.park-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 76px;
  opacity: 0.9;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.park-more:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.park-more-amp {
  font-size: 76px;
  line-height: 1;
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.park-more-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-muted);
  text-transform: lowercase;
}

.trademark-notice {
  max-width: 820px;
  margin: 36px auto 0 auto;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--text-dim);
}

/* Features — auto-advancing carousel (card + screenshot) */
#features > .container {
  max-width: 1100px;
}

.feature-carousel {
  position: relative;
}

.feature-viewport {
  overflow: hidden;
}

.feature-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 14px 12px;
}

.feature-slide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 48px 44px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-slide-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.14;
  color: var(--text-main);
  margin-bottom: 16px;
}

.feature-slide-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.feature-slide-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.feature-slide-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
}

.feature-slide-shot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-slide-shot img {
  width: 100%;
  max-width: 440px;
  height: auto;
}

/* Carousel controls */
.feature-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.carousel-arrow:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: background var(--transition-fast), width var(--transition-fast), border-radius var(--transition-fast);
}

.carousel-dot.active {
  width: 26px;
  border-radius: 5px;
  background: var(--gradient-brand);
}

/* Checkmark badge — soft tinted rounded square with a green tick */
.feature-slide-points svg,
.premium-features-list svg {
  width: 24px;
  height: 24px;
  padding: 5px;
  box-sizing: border-box;
  fill: var(--accent-green);
  background: var(--accent-green-light);
  border-radius: 8px;
  flex-shrink: 0;
}

@media (max-width: 899px) {
  .feature-slide {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* Context (text) first, then the graphic, then the controls */
  .feature-slide-shot img { max-width: 300px; }
  .feature-slide-title { font-size: 1.5rem; }
  .feature-slide-card { padding: 28px 24px; min-height: 0; }
  .feature-controls { margin-top: 20px; }
}

/* Premium */
.premium-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.premium-features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.premium-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-size: 1.02rem;
  font-weight: 500;
}

.premium-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.premium-cta-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.premium-cta-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Stats / facts row */
.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 56px;
  max-width: 900px;
  margin: -8px auto 56px;
  text-align: center;
}

.stat {
  flex: 1 1 200px;
  max-width: 260px;
}

.stat-num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary); /* fallback */
}

.stat-label {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Changelog Timeline */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 32px;
}

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

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid var(--primary);
  z-index: 1;
}

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.timeline-item.is-upcoming .timeline-content:hover {
  box-shadow: none;
  border-color: var(--text-dim);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.version-badge {
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.2px;
}

/* Roadmap status variants */
.version-badge.status-progress {
  background: rgba(252, 119, 0, 0.14);
  color: var(--primary);
}

.version-badge.status-planned {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* Upcoming items read as work-in-progress, not shipped */
.timeline-item.is-upcoming .timeline-content {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-color);
  box-shadow: none;
}

.timeline-item.is-upcoming .timeline-title {
  color: var(--text-muted);
}

.timeline-item[data-status="planned"] .timeline-dot {
  border-style: dashed;
  border-color: var(--text-dim);
}

.timeline-item[data-status="progress"] .timeline-dot {
  box-shadow: 0 0 0 4px rgba(252, 119, 0, 0.14);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(252, 119, 0, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(252, 119, 0, 0.05); }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-item[data-status="progress"] .timeline-dot { animation: none; }
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.timeline-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact Section */
.contact-grid {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.form-consent a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}

.contact-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

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

.info-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.info-text h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.info-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding-top: 64px;
  padding-bottom: 28px;
}

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

.footer-brand .logo-img {
  height: 34px;
}

.footer-brand p {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.65;
  max-width: 340px;
}

.footer-partner {
  margin-top: 20px;
  font-size: 0.85rem;
}

.footer-partner a {
  color: var(--primary);
  font-weight: 500;
}

.footer-partner a:hover {
  color: #ff9412;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-links a.footer-email {
  color: var(--primary);
  font-weight: 500;
}

.footer-links a.footer-email:hover {
  color: #ff9412;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 24px;
  text-align: center;
  font-size: 0.83rem;
  color: #6b717c;
}

/* Markdown Legal Prose Layout (Rendered API Output) */
.legal-page-header {
  padding-top: 130px;
  padding-bottom: 40px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.back-link:hover {
  text-decoration: underline;
}

.prose-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 40px 48px;
  box-shadow: var(--shadow-card);
  margin-bottom: 80px;
  min-height: 350px;
}

.prose h1 { font-size: 2.2rem; font-weight: 900; color: var(--text-main); margin-bottom: 16px; }
.prose h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-main); margin: 32px 0 12px 0; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.prose h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-main); margin: 20px 0 10px 0; }
.prose p { font-size: 1rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 20px; color: var(--text-muted); }
.prose li { margin-bottom: 8px; line-height: 1.6; }
.prose code { background: var(--bg-app); padding: 2px 8px; border-radius: var(--radius-sm); font-family: monospace; font-size: 0.9rem; color: var(--primary); }

/* Legal API loading state */
.legal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  z-index: 1500;
  transform: translateY(120%);
  transition: transform var(--transition-normal);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions .btn {
  font-size: 0.85rem;
  padding: 10px 16px;
  flex: 1;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-headline {
    font-size: 2.6rem;
  }

  .premium-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .prose-container {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 84px;
    left: 16px;
    right: 16px;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: 0 12px 30px rgba(23, 25, 28, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu .nav-link {
    width: 100%;
    padding: 10px 4px;
  }

  .mobile-toggle {
    display: block;
  }

  .btn-download {
    display: none;
  }

  .navbar-container {
    width: calc(100% - 32px);
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px 10px 22px;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 108px;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    max-width: none;
    bottom: 16px;
  }
}
