/* =============================================
   Couples Flirt — Shared Styles
   ============================================= */

/* ===== Brand Palette (from Ionic theme) ===== */
:root {
  --brand-primary: #9f1f2f;
  --brand-primary-rgb: 159, 31, 47;
  --brand-primary-tint: #a93544;
  --brand-primary-shade: #8c1b29;
  --brand-secondary: #5B38A6;
  --brand-secondary-rgb: 91, 56, 166;
  --brand-tertiary: #EDB690;
  --brand-tertiary-rgb: 237, 182, 144;
  --brand-light: #f0ebe7;
  --brand-dark: #2a2a2a;

  /* Shape tokens */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Typography */
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Animation */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* ===== Base Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans), serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ===== Utility Classes ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--brand-primary-rgb), 0.3); }
  50% { box-shadow: 0 0 40px rgba(var(--brand-primary-rgb), 0.5); }
}

/* Animation utility classes */
.animate-fade-in { animation: fadeIn var(--duration-normal) var(--ease-out) forwards; }
.animate-fade-in-up { animation: fadeInUp var(--duration-slow) var(--ease-out) forwards; }
.animate-fade-in-down { animation: fadeInDown var(--duration-slow) var(--ease-out) forwards; }
.animate-scale-in { animation: scaleIn var(--duration-normal) var(--ease-out) forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Staggered animations */
.stagger-1 { animation-delay: 0ms; }
.stagger-2 { animation-delay: 100ms; }
.stagger-3 { animation-delay: 200ms; }
.stagger-4 { animation-delay: 300ms; }
.stagger-5 { animation-delay: 400ms; }
.stagger-6 { animation-delay: 500ms; }

/* Initially hidden for animation */
[class*="animate-"] { opacity: 0; }
[class*="animate-"].animate-pulse,
[class*="animate-"].animate-float { opacity: 1; }


/* =============================================
   Legal Pages Theme (Light/Dark)
   ============================================= */
.theme-legal {
  /* Light mode defaults */
  --bg: var(--brand-light);
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: rgba(26, 26, 26, 0.72);
  --faint: rgba(26, 26, 26, 0.52);
  --border: rgba(26, 26, 26, 0.12);
  --shadow: 0 10px 24px rgba(18, 24, 38, 0.10);
  --link: var(--brand-primary);
  --link-hover: var(--brand-primary-shade);
  --focus: rgba(var(--brand-primary-rgb), 0.35);

  background:
    radial-gradient(900px 600px at 25% -10%, rgba(var(--brand-primary-rgb), 0.14), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(var(--brand-secondary-rgb), 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  .theme-legal {
    --bg: #0b0f14;
    --card: #0f1620;
    --text: #e8eef6;
    --muted: rgba(232, 238, 246, 0.72);
    --faint: rgba(232, 238, 246, 0.52);
    --border: rgba(232, 238, 246, 0.10);
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    --link: var(--brand-primary-tint);
    --link-hover: #ffffff;
    --focus: rgba(169, 53, 68, 0.35);
  }
}

/* Legal page link styles */
.theme-legal a { color: var(--link); }
.theme-legal a:hover { color: var(--link-hover); }
.theme-legal a:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Legal page layout */
.legal-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.legal-header { padding: 26px 16px 8px; }

.legal-hero {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(var(--brand-tertiary-rgb), 0.22), rgba(255, 255, 255, 0));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(400px 200px at 15% 20%, rgba(var(--brand-primary-rgb), 0.14), transparent 60%),
    radial-gradient(400px 200px at 80% 0%, rgba(var(--brand-secondary-rgb), 0.12), transparent 60%);
  pointer-events: none;
  opacity: 0.9;
}

.legal-hero > * { position: relative; z-index: 1; }

.legal-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.02em;
  color: var(--brand-primary);
}

@media (prefers-color-scheme: dark) {
  .legal-hero h1 { color: var(--brand-primary-tint); }
}

.legal-hero .sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Legal cards */
.legal-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  margin: 14px 0;
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--brand-primary);
}

@media (prefers-color-scheme: dark) {
  .legal-card h2 { color: var(--brand-primary-tint); }
}

.legal-card h3 {
  margin: 14px 0 6px;
  font-size: 15px;
  color: var(--text);
}

.legal-card p { margin: 8px 0; }
.legal-card ul { margin: 8px 0 0 18px; padding: 0; }
.legal-card li { margin: 6px 0; }

/* Legal callout */
.legal-callout {
  border-left: 4px solid var(--brand-primary);
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.08), transparent);
  border-radius: var(--radius-sm);
}

.legal-callout.secondary {
  border-left-color: var(--brand-secondary);
  background: linear-gradient(180deg, rgba(var(--brand-secondary-rgb), 0.08), transparent);
}

@media (prefers-color-scheme: dark) {
  .legal-callout {
    border-left-color: var(--brand-primary-tint);
    background: linear-gradient(180deg, rgba(169, 53, 68, 0.10), transparent);
  }
  .legal-callout.secondary {
    background: linear-gradient(180deg, rgba(var(--brand-secondary-rgb), 0.12), transparent);
  }
}

/* Legal TOC */
.legal-toc a {
  display: block;
  padding: 6px 0;
  transition: color var(--duration-fast) var(--ease-out);
}

/* Legal grid */
.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .legal-grid { grid-template-columns: 1fr 1fr; }
}

/* Legal steps */
.legal-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

.legal-steps li {
  counter-increment: step;
  margin: 10px 0;
  padding: 12px 12px 12px 46px;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--brand-primary);
}

@media (prefers-color-scheme: dark) {
  .legal-steps li::before { background: var(--brand-primary-tint); }
}

/* Legal pill */
.legal-pill {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted);
  margin-left: 8px;
  vertical-align: middle;
  background: rgba(var(--brand-tertiary-rgb), 0.18);
}

/* Legal code */
.legal-card code {
  font-family: var(--mono), serif;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

/* Legal divider */
.legal-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* Legal footer */
.legal-footer {
  margin-top: 18px;
  padding: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-small { font-size: 13px; color: var(--muted); }

/* Legal navigation */
.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.legal-brand:hover {
  opacity: 0.8;
  text-decoration: none;
}

.legal-brand .logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary), var(--brand-tertiary));
}

.legal-brand strong {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.legal-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.legal-nav a:hover {
  background: rgba(var(--brand-primary-rgb), 0.08);
  color: var(--text);
  text-decoration: none;
}

.legal-nav a.active {
  color: var(--brand-primary);
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .legal-nav a.active {
    color: var(--brand-primary-tint);
  }
}

/* Legal site footer (bottom of page) */
.legal-site-footer {
  max-width: 880px;
  margin: 40px auto 0;
  padding: 20px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.legal-site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-site-footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-site-footer-links a {
  color: var(--muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.legal-site-footer-links a:hover {
  color: var(--text);
}

@media (max-width: 600px) {
  .legal-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .legal-nav {
    justify-content: center;
  }

  .legal-brand {
    justify-content: center;
  }

  .legal-site-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .legal-site-footer-links {
    justify-content: center;
  }
}


/* =============================================
   Landing Page Theme (Dark only)
   ============================================= */
.theme-landing {
  --bg: #0b0b10;
  --card: rgba(240, 235, 231, 0.07);
  --card-hover: rgba(240, 235, 231, 0.10);
  --text: rgba(240, 235, 231, 0.94);
  --muted: rgba(240, 235, 231, 0.72);
  --faint: rgba(240, 235, 231, 0.52);
  --border: rgba(240, 235, 231, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --ring: rgba(var(--brand-primary-rgb), 0.35);

  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(var(--brand-secondary-rgb), 0.22), transparent 55%),
    radial-gradient(900px 600px at 80% 20%, rgba(var(--brand-primary-rgb), 0.18), transparent 55%),
    linear-gradient(to bottom, transparent 85%, rgba(var(--brand-tertiary-rgb), 0.06) 100%),
    var(--bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  letter-spacing: 0.5px;
}

/* Container */
.landing-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

/* Top bar */
.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 18px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.landing-brand .logo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary), var(--brand-tertiary));
  box-shadow: 0 0 0 6px rgba(var(--brand-primary-rgb), 0.12);
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.landing-brand:hover .logo {
  transform: scale(1.05);
  box-shadow: 0 0 0 8px rgba(var(--brand-primary-rgb), 0.18);
}

.landing-brand strong { font-size: 15px; letter-spacing: 1px; }
.landing-brand span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }

.landing-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.landing-nav a:hover {
  background: rgba(240, 235, 231, 0.06);
  text-decoration: none;
  color: var(--text);
}

/* Hero */
.landing-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
  align-items: stretch;
  padding: 18px 0 8px;
}

@media (max-width: 920px) {
  .landing-hero { grid-template-columns: 1fr; }
}

/* Panels */
.landing-panel {
  background: linear-gradient(180deg, var(--card-hover), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
  position: relative;
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.landing-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(600px 250px at 10% 0%, rgba(var(--brand-primary-rgb), 0.18), transparent 60%),
    radial-gradient(600px 250px at 90% 0%, rgba(var(--brand-secondary-rgb), 0.18), transparent 60%),
    radial-gradient(600px 250px at 50% 0%, rgba(var(--brand-tertiary-rgb), 0.14), transparent 60%);
  pointer-events: none;
  opacity: 0.9;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.landing-panel:hover::before { opacity: 1; }

.landing-panel > * { position: relative; z-index: 1; }

/* Kicker */
.landing-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: rgba(240, 235, 231, 0.06);
  border: 1px solid rgba(240, 235, 231, 0.12);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 13px;
}

.landing-kicker .dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--brand-primary);
  box-shadow: 0 0 0 8px var(--ring);
  animation: pulse 2s ease-in-out infinite;
}

/* Typography */
.landing-h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -1px;
}

.landing-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
}

.landing-h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

/* CTA Row */
.landing-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 12px 0 4px;
}

/* Buttons */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 235, 231, 0.14);
  background: rgba(240, 235, 231, 0.06);
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: transform var(--duration-fast) var(--ease-out), filter var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.landing-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  text-decoration: none;
}

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

.landing-btn-primary {
  border: 1px solid rgba(var(--brand-primary-rgb), 0.45);
  background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.95), rgba(var(--brand-secondary-rgb), 0.92));
  box-shadow: 0 4px 20px rgba(var(--brand-primary-rgb), 0.3);
}

.landing-btn-primary:hover {
  box-shadow: 0 6px 30px rgba(var(--brand-primary-rgb), 0.4);
}

.landing-btn:focus,
.landing-btn-primary:focus {
  outline: 2px solid rgba(var(--brand-primary-rgb), 0.5);
  outline-offset: 2px;
}

/* Pills */
.landing-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(240, 235, 231, 0.06);
  border: 1px solid rgba(240, 235, 231, 0.12);
  color: var(--muted);
  font-size: 12px;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.landing-pill:hover {
  background: rgba(240, 235, 231, 0.10);
  color: var(--text);
  text-decoration: none;
}

/* Fineprint */
.landing-fineprint {
  color: var(--faint);
  font-size: 13px;
  margin-top: 10px;
}

/* Sections */
.landing-section { margin-top: 22px; }

/* Grids */
.landing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 920px) {
  .landing-grid-3 { grid-template-columns: 1fr; }
}

.landing-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 920px) {
  .landing-grid-2 { grid-template-columns: 1fr; }
}

/* Cards */
.landing-card {
  background: rgba(240, 235, 231, 0.05);
  border: 1px solid rgba(240, 235, 231, 0.12);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: transform var(--duration-normal) var(--ease-out), background var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}

.landing-card:hover {
  background: rgba(240, 235, 231, 0.08);
  border-color: rgba(240, 235, 231, 0.18);
  transform: translateY(-2px);
}

.landing-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Card header (flex layout for title + pill) */
.landing-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Card icons */
.landing-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.25), rgba(var(--brand-secondary-rgb), 0.20));
  border: 1px solid rgba(var(--brand-primary-rgb), 0.3);
  transition: transform var(--duration-normal) var(--ease-out);
}

.landing-card:hover .landing-card-icon { transform: scale(1.1); }

/* Icon color variants */
.landing-card-icon.secondary {
  background: linear-gradient(135deg, rgba(var(--brand-secondary-rgb), 0.25), rgba(var(--brand-tertiary-rgb), 0.20));
  border-color: rgba(var(--brand-secondary-rgb), 0.3);
}

.landing-card-icon.tertiary {
  background: linear-gradient(135deg, rgba(var(--brand-tertiary-rgb), 0.30), rgba(var(--brand-primary-rgb), 0.15));
  border-color: rgba(var(--brand-tertiary-rgb), 0.4);
}

/* FAQ */
.landing-faq details {
  border: 1px solid rgba(240, 235, 231, 0.12);
  background: rgba(240, 235, 231, 0.04);
  border-radius: 14px;
  padding: 12px 14px;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.landing-faq details:hover {
  background: rgba(240, 235, 231, 0.06);
  border-color: rgba(240, 235, 231, 0.16);
}

.landing-faq details + details { margin-top: 10px; }
.landing-faq summary {
  cursor: pointer;
  font-weight: 650;
  transition: color var(--duration-fast) var(--ease-out);
}
.landing-faq summary:hover { color: var(--brand-tertiary); }
.landing-faq details p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* Waitlist form */
.landing-waitlist h2 { margin: 2px 0 8px; font-size: 18px; }
.landing-waitlist p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.landing-waitlist form { display: grid; gap: 10px; }
.landing-waitlist label { font-size: 12px; color: var(--muted); }

.landing-input {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(240, 235, 231, 0.16);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.landing-input:focus {
  outline: none;
  border-color: rgba(var(--brand-primary-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.15);
}

.landing-input::placeholder { color: var(--faint); }

.landing-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .landing-form-row { grid-template-columns: 1fr; }
}

.landing-form-helper {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
}

/* Footer */
.landing-footer {
  margin-top: 26px;
  padding: 20px 0 10px;
  color: var(--faint);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(240, 235, 231, 0.1);
}

.landing-footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-footer-links a {
  color: var(--faint);
  transition: color var(--duration-fast) var(--ease-out);
}

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

/* Mockup section */
.landing-mockup-section {
  margin-top: 32px;
  padding: 24px 0;
}

.landing-mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .landing-mockup-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

.landing-mockup {
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.landing-mockup:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.landing-mockup-placeholder {
  position: absolute;
  inset: 40px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  gap: 8px;
}

.landing-mockup-placeholder .icon {
  font-size: 32px;
  opacity: 0.6;
}

.landing-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}

/* ===== Article/Guide Content Styles ===== */

/* Article sections */
.article-section {
  margin-top: 40px;
}

.article-section-sm {
  margin-top: 24px;
}

/* Article paragraphs */
.article-text {
  margin-top: 16px;
}

/* Article card header for flex layouts */
.article-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Article card with custom h3 styling for guide content */
.article-card {
  margin-top: 16px;
}

.article-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(240, 235, 231, 0.94);
}

.article-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* Article lists inside cards */
.article-list {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.8;
}

/* FAQ cards in articles */
.article-faq h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(240, 235, 231, 0.94);
}

.article-faq p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* Related guides grid */
.article-related {
  margin-top: 16px;
}

.article-related a {
  text-decoration: none;
  color: inherit;
}

.article-related h3 {
  margin: 0 0 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-related p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* CTA card styling for articles */
.article-cta {
  margin-top: 40px;
  text-align: center;
  background: rgba(159, 31, 47, 0.08);
  border-color: rgba(159, 31, 47, 0.2);
}

.article-cta h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.article-cta p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta .landing-cta-row {
  justify-content: center;
}

/* TL;DR summary card */
.article-tldr {
  margin-top: 20px;
  background: rgba(159, 31, 47, 0.08);
  border-color: rgba(159, 31, 47, 0.2);
}

.article-tldr-title {
  margin: 0 0 10px;
  color: rgba(240, 235, 231, 0.94);
}

.article-tldr-content {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.article-tldr-list {
  margin: 0 0 12px;
  padding-left: 20px;
}

.article-tldr-note {
  margin: 0;
  font-style: italic;
  font-size: 13px;
}

/* Table of contents */
.article-toc {
  margin-top: 24px;
}

.article-toc-title {
  margin: 0 0 12px;
  font-weight: 600;
  color: rgba(240, 235, 231, 0.94);
}

.article-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.article-toc-list a {
  text-decoration: none;
}

/* Article byline */
.article-byline {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

.article-byline strong {
  color: var(--brand-primary);
}

.article-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0.8;
}

/* Article hero layout for full-width articles */
.article-hero {
  padding-top: 100px;
}

.article-panel {
  max-width: 720px;
  margin: 0 auto;
}

/* Article H1 styling */
.article-h1 {
  font-size: clamp(28px, 5vw, 36px);
}

.article-h1-subtitle {
  font-weight: 400;
  font-size: 0.75em;
  color: var(--muted);
}

/* Text highlight utility classes */
.text-highlight {
  color: rgba(240, 235, 231, 0.94);
}

.text-highlight-soft {
  color: rgba(240, 235, 231, 0.85);
}

/* Article section header with flex layout */
.article-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Article card header (title + pill layout) */
.article-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Article card content wrapper */
.article-card-content {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Article card title */
.article-card-title {
  margin: 0 0 10px;
  font-size: 16px;
}

/* Article card subtitle */
.article-card-subtitle {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Article step title */
.article-step-title {
  margin: 0 0 8px;
}

.article-step-title strong {
  color: rgba(240, 235, 231, 0.94);
}

/* Article CTA title and text */
.article-cta-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.article-cta-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Article card callout box */
.article-card-callout {
  margin-top: 14px;
  padding: 12px;
  background: rgba(91, 56, 166, 0.1);
  border-radius: 8px;
}

/* Article footer spacing */
.article-footer {
  padding-top: 48px;
}

/* Feature screenshot placeholder */
.feature-screenshot {
  margin: 24px auto;
  max-width: 280px;
}

.feature-screenshot-duo {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 24px auto;
  max-width: 600px;
}

.feature-screenshot-duo .feature-screenshot {
  margin: 0;
  flex: 1;
  max-width: 280px;
}

@media (max-width: 600px) {
  .feature-screenshot-duo {
    flex-direction: column;
    align-items: center;
  }

  .feature-screenshot-duo .feature-screenshot {
    width: 100%;
  }
}

.feature-screenshot-mockup {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(var(--brand-primary-rgb), 0.12) 0%,
    rgba(var(--brand-secondary-rgb), 0.08) 50%,
    rgba(var(--brand-tertiary-rgb), 0.06) 100%
  );
  border: 2px solid rgba(240, 235, 231, 0.12);
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.feature-screenshot-mockup:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-screenshot-mockup img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}

.feature-screenshot-placeholder {
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  gap: 12px;
  padding: 20px;
}

.feature-screenshot-placeholder .icon {
  font-size: 48px;
  opacity: 0.6;
}

.feature-screenshot-caption {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--faint);
}

/* Feature showcase: side-by-side layout */
.feature-showcase {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  margin: 32px 0;
}

.feature-showcase .feature-screenshot {
  margin: 0;
  max-width: none;
}

.feature-showcase-content {
  padding-top: 8px;
}

.feature-showcase-content h2 {
  margin: 0 0 16px;
  font-size: 20px;
  color: var(--text);
}

.feature-showcase-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-showcase-content li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.feature-showcase-content li .icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.2;
}

.feature-showcase-content li strong {
  color: var(--text);
}

@media (max-width: 700px) {
  .feature-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-showcase .feature-screenshot {
    max-width: 260px;
    margin: 0 auto;
  }

  .feature-showcase-content {
    padding-top: 0;
  }
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(11, 11, 16, 0.98);
  border-top: 1px solid rgba(240, 235, 231, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 24px;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--duration-slow) var(--ease-out),
              opacity var(--duration-slow) var(--ease-out),
              visibility var(--duration-slow) var(--ease-out);
}

.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-consent-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 280px;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-consent-text a {
  color: var(--brand-tertiary);
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: var(--text);
}

.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-consent-btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              filter var(--duration-fast) var(--ease-out);
}

.cookie-consent-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

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

.cookie-consent-btn-accept {
  background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.95), rgba(var(--brand-secondary-rgb), 0.92));
  border: 1px solid rgba(var(--brand-primary-rgb), 0.45);
  color: #fff;
}

.cookie-consent-btn-decline {
  background: rgba(240, 235, 231, 0.08);
  border: 1px solid rgba(240, 235, 231, 0.15);
  color: var(--muted);
}

@media (max-width: 600px) {
  .cookie-consent {
    padding: 14px 16px;
  }

  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-consent-buttons {
    justify-content: center;
  }
}

/* Light theme support for legal pages */
.theme-legal .cookie-consent {
  background: rgba(255, 255, 255, 0.98);
  border-top-color: var(--border);
}

@media (prefers-color-scheme: dark) {
  .theme-legal .cookie-consent {
    background: rgba(15, 22, 32, 0.98);
  }
}

.theme-legal .cookie-consent-text p {
  color: var(--muted);
}

.theme-legal .cookie-consent-btn-decline {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--border);
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  .theme-legal .cookie-consent-btn-decline {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* ===== Mobile Navigation ===== */

/* Hamburger button - always hidden on desktop */
.landing-hamburger {
  display: none !important;
}

/* Mobile styles - 920px matches other breakpoints */
@media (max-width: 920px) {
  /* Show hamburger on mobile */
  .landing-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(240, 235, 231, 0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    z-index: 1001;
    transition: background var(--duration-fast) var(--ease-out);
  }

  .landing-hamburger:hover {
    background: rgba(240, 235, 231, 0.08);
  }

  .landing-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--duration-normal) var(--ease-out), opacity var(--duration-normal) var(--ease-out);
  }

  /* Hamburger to X animation when open */
  .landing-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .landing-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .landing-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hide tagline on mobile */
  .landing-brand span {
    display: none;
  }

  /* Reduce brand min-width on mobile */
  .landing-brand {
    min-width: auto;
  }

  /* Make topbar positioned with high z-index */
  .landing-topbar {
    position: relative;
    z-index: 9999;
  }

  /* Mobile nav - hidden by default, shown when open */
  .landing-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0b0b10;
    border: 1px solid rgba(240, 235, 231, 0.15);
    border-radius: var(--radius);
    padding: 8px;
    margin-top: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--duration-normal) var(--ease-out),
                visibility var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
    z-index: 9999;
  }

  .landing-nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .landing-nav a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  .landing-nav a:hover {
    background: rgba(240, 235, 231, 0.08);
  }

  .landing-nav .landing-pill {
    margin-top: 8px;
    padding: 14px 16px;
    text-align: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.25), rgba(var(--brand-secondary-rgb), 0.20));
    border-color: rgba(var(--brand-primary-rgb), 0.3);
  }
}
