/* ============================================
   KIara Landing Page — style.css
   Standalone styles (no dependency on public/)
   ============================================ */

/* --- Self-hosted Fonts (DSGVO-konform) --- */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Chewy';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/chewy-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playwrite DE Grund';
  font-style: normal;
  font-weight: 100 400;
  font-display: swap;
  src: url('fonts/playwrite-de-grund.woff2') format('woff2');
}

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --color-primary: #667eea;
  --color-secondary: #764ba2;
  --color-accent-pink: #f093fb;
  --color-accent-blue: #4facfe;
  --gradient-primary: linear-gradient(135deg, #667eea, #764ba2);
  --gradient-bg: linear-gradient(135deg, #fae8ff 0%, #fef3c7 100%);
  --gradient-brand: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #667eea 100%);

  /* Text */
  --color-text: #333;
  --color-text-light: #555;
  --color-text-muted: #94a3b8;
  --color-heading: #1e293b;

  /* Surfaces */
  --color-surface: #ffffff;
  --color-surface-warm: #fef9f3;
  --color-footer-bg: #1e293b;

  /* Feedback */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-error: #ef4444;
  --color-error-bg: #fef2f2;
  --color-info: #667eea;
  --color-info-bg: #eef2ff;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 36px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 30px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 4px 20px rgba(102, 126, 234, 0.25);

  /* Layout */
  --max-width: 1100px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background: var(--gradient-bg);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-secondary);
}

/* --- Animations --- */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes hippo-float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-success {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes badge-shine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* --- KI Highlight Text --- */
.highlight-ai {
  background: var(--gradient-brand);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease infinite;
  text-shadow: none;
}

/* --- Navigation --- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-hippo {
  width: 40px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.brand-name {
  font-family: 'Chewy', cursive;
  font-size: 1.6rem;
  color: var(--color-secondary);
  letter-spacing: 0.5px;
}

.nav-cta-btn {
  background: var(--gradient-primary);
  color: white !important;
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* --- Sections Shared --- */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-title {
  font-family: 'Chewy', cursive;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--color-heading);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-family: 'Chewy', cursive;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.hero-tagline {
  font-family: 'Playwrite DE Grund', cursive;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
  font-weight: 300;
}

.hero-pitch {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-text-light);
  max-width: 500px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-links {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-md);
  font-size: 0.95rem;
}

.hero-links a {
  color: var(--color-primary);
  font-weight: 600;
  transition: color 0.2s;
}

.hero-links a:hover {
  color: var(--color-secondary);
}

.hero-links-sep {
  color: var(--color-text-muted);
}

.hero-image {
  flex: 0 0 auto;
}

.hero-hippo {
  width: clamp(220px, 30vw, 380px);
  animation: hippo-float 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(102, 126, 234, 0.3));
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-xl);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  color: white;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f0f0ff;
  color: var(--color-primary);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* --- Features Section --- */
.features {
  padding: var(--space-4xl) var(--space-lg);
}

.features-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  background-image:
    linear-gradient(white, white),
    var(--gradient-brand);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-size: 100%, 300% 300%;
  transition: transform 0.3s, box-shadow 0.3s;

  /* Scroll animation: start hidden */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.feature-card.visible:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  font-family: 'Chewy', cursive;
  font-size: 1.3rem;
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.feature-card a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-primary, #4a90d9);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.feature-card a:hover {
  text-decoration-color: currentColor;
}

/* --- Screenshots Scroll --- */
.screenshots {
  padding: var(--space-4xl) 0;
}

.screenshots .section-title {
  padding: 0 var(--space-lg);
}

.screenshot-scroll {
  /* Scroll animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.screenshot-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-sm) var(--space-2xl) var(--space-lg);

  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.screenshot-track::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  flex: 0 0 calc(33.333% - var(--space-lg) * 2 / 3);
  min-width: 280px;
  scroll-snap-align: start;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.screenshot-card picture,
.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-card {
  cursor: pointer;
}

.screenshot-card p {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: var(--space-lg);
}

.lightbox-overlay.active {
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: white;
  color: var(--color-text);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

@media (max-width: 767px) {
  .lightbox-close {
    top: -12px;
    right: -4px;
    width: 36px;
    height: 36px;
  }
}

/* Tablet: 2 cards visible */
@media (max-width: 1023px) {
  .screenshot-card {
    flex: 0 0 calc(50% - var(--space-lg) / 2);
    min-width: 260px;
  }
}

/* Mobile: ~1.2 cards visible (peek next) */
@media (max-width: 767px) {
  .screenshot-track {
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-lg) var(--space-md);
  }

  .screenshot-card {
    flex: 0 0 85%;
    min-width: 240px;
  }

  .screenshot-card p {
    font-size: 0.85rem;
    padding: var(--space-sm) var(--space-md);
  }
}

/* --- CTA Sections (Newsletter & Beta) --- */
.cta-section {
  padding: var(--space-3xl) var(--space-lg);
}

.cta-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;

  /* Scroll animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-card h2 {
  font-family: 'Chewy', cursive;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.cta-card > p {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  font-size: 1rem;
}

/* --- Beta Card Special --- */
.beta-card {
  border: 2px solid transparent;
  background-image:
    linear-gradient(white, white),
    var(--gradient-primary);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
}

.beta-badge {
  position: absolute;
  top: -14px;
  right: var(--space-lg);
  background: var(--gradient-primary);
  color: white;
  font-family: 'Chewy', cursive;
  font-size: 0.85rem;
  padding: 4px var(--space-md);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transform: rotate(3deg);
}

.perks-list {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-xl);
}

.perks-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 1rem;
  color: var(--color-text);
}

.perk-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Signup Forms --- */
.signup-form {
  margin-top: var(--space-md);
}

.input-group {
  display: flex;
  gap: var(--space-sm);
}

.input-group input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.input-group input[type="email"]:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.input-group input[type="email"]::placeholder {
  color: var(--color-text-muted);
}

.input-group .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Form Feedback --- */
.form-feedback {
  display: none;
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

.feedback-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  animation: pulse-success 0.4s ease;
}

.feedback-error {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.feedback-info {
  background: var(--color-info-bg);
  color: var(--color-info);
}

/* --- Footer --- */
.landing-footer {
  background: var(--color-footer-bg);
  color: white;
  padding: var(--space-2xl) var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-brand .brand-name {
  font-size: 1.4rem;
  color: white;
}

.footer-tagline {
  font-family: 'Playwrite DE Grund', cursive;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 300;
}

.footer-links {
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- Legal Pages (Impressum, Datenschutz) --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-4xl)) var(--space-lg) var(--space-3xl);
}

.legal-back {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
  transition: color 0.2s;
}

.legal-back:hover {
  color: var(--color-secondary);
}

.legal-content h1 {
  font-family: 'Chewy', cursive;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.legal-content .legal-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-2xl);
}

.legal-content h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.legal-content p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.legal-content ul {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
  line-height: 1.8;
}

.legal-content ul li {
  margin-bottom: var(--space-xs);
}

.legal-content code {
  background: rgba(102, 126, 234, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  text-align: left;
  color: var(--color-text-light);
}

.legal-table th {
  background: rgba(102, 126, 234, 0.06);
  font-weight: 700;
  color: var(--color-heading);
}

/* ============================================
   Responsive — Tablet-first
   ============================================ */

/* Desktop (≥1024px) */
@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
  }

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

  .cta-card {
    max-width: 650px;
  }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-xl));
    padding-bottom: var(--space-2xl);
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-hippo {
    width: 200px;
  }

  .hero-pitch {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

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

  .nav-cta-btn {
    display: none;
  }

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

  .cta-card {
    padding: var(--space-xl) var(--space-lg);
  }

  .input-group {
    flex-direction: column;
  }

  .input-group .btn {
    width: 100%;
  }

  .section-title {
    margin-bottom: var(--space-xl);
  }
}

/* Small mobile (≤400px) */
@media (max-width: 400px) {
  .landing-nav {
    padding: 0 var(--space-md);
  }

  .hero-hippo {
    width: 160px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}
