/* Drop Design System - Landing Page Styles */
/* Inspired by Chromatic's Storybook page */

/* CSS Variables */
:root {
  --color-bg-dark: #0d1117;
  --color-bg-medium: #161b22;
  --color-bg-light: #21262d;
  --color-bg-card: rgba(22, 27, 34, 0.8);
  --color-bg-card-hover: rgba(33, 38, 45, 0.9);

  --color-text-primary: #ffffff;
  --color-text-secondary: #8b949e;
  --color-text-muted: #6e7681;

  --color-accent: #f5c542;
  --color-accent-hover: #f6d365;
  --color-accent-glow: rgba(245, 197, 66, 0.4);
  --color-accent-subtle: rgba(245, 197, 66, 0.1);

  --color-success: #3fb950;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(255, 255, 255, 0.2);

  /* Decorative gradients - inspired by akanoodles.com */
  --gradient-orange: #fe4a23;
  --gradient-coral: #ff6b4a;
  --gradient-pink: #ff4785;
  --gradient-blue: #1abcfe;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-display: 'DM Serif Display', Georgia, serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 5rem;
  --spacing-3xl: 7rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --max-width: 1200px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--color-accent-glow);
}

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

html {
  scroll-behavior: smooth;
  /* Fixed nav is ~80px tall (46px logo + 1rem padding top/bottom + border);
     offset anchor jumps so the target heading isn't hidden underneath it
     when arriving via /#problem etc. */
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

/* Inline-SVG wordmark — continuous scroll-driven crossfade + scale.
   The nav has a CSS custom property --p (0..1) updated by JS on scroll.
   At p=0 the large 178x46 wordmark is fully visible; at p=1 the compact
   82x22 wordmark is. Slot dimensions and SVG opacities interpolate
   linearly across the range so the transition tracks the user's scroll
   position rather than snapping at a threshold. */
.nav { --p: 0; }

.logo {
  position: relative;
  display: block;
  flex: none;
  /* Slot interpolates from 178x46 to 82x22 across --p. Both SVGs anchor
     at the top-left, so as the slot collapses the bottom-right edge moves
     toward the top-left while the top-left stays put. */
  width: calc(178px - 96px * var(--p));
  height: calc(46px - 24px * var(--p));
}
.logo .logo-svg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  transform-origin: 0 0;
}
/* Large wordmark scales from 1 down to ~0.46 (= 82/178) toward the
   top-left as the user scrolls, while fading out. */
.logo .logo-default {
  opacity: calc(1 - var(--p));
  transform: scale(calc(1 - 0.54 * var(--p)));
}
/* Small wordmark already at native 82x22 — stays pinned to the top-left
   and fades in. */
.logo .logo-scrolled { opacity: var(--p); }

/* Nav padding shrinks with scroll progress — top of page padding-sm,
   fully scrolled tightens to half. */
.nav-container {
  padding-top:    calc(1rem - 0.5rem * var(--p));
  padding-bottom: calc(1rem - 0.5rem * var(--p));
}

/* Background transition still uses the .is-scrolled class as a coarse
   "settled" signal — the script flips it past 50px. */
.nav { transition: background 0.22s ease; }

@media (prefers-reduced-motion: reduce) {
  /* JS clamps to 0 or 1 only — preserves the binary swap without animation. */
  .nav { --p: 0; }
  .nav.is-scrolled { --p: 1; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-links a:not(.btn) {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--color-text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #000000;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-hover);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-text-secondary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 12rem 0 8rem;
  text-align: center;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent-subtle);
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--spacing-lg);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-family: var(--font-family-display);
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--gradient-coral) 50%, var(--gradient-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--color-text-secondary);
  max-width: 680px;
  margin: 0 auto var(--spacing-xl);
  line-height: 1.7;
  text-wrap: balance;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Hero decorative gradients */
.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-glow::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: var(--gradient-orange);
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
}

.hero-glow::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 20%;
  width: 350px;
  height: 350px;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-sm);
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Problem Section */
.problem {
  padding: var(--spacing-3xl) 0;
  background: var(--color-bg-medium);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.problem-card {
  text-align: center;
  padding: var(--spacing-lg);
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  filter: grayscale(100%);
  opacity: 0.8;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-primary);
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Features Section */
.features {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

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

.feature-icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: var(--spacing-md);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.01em;
}

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

/* Workflow Section */
.workflow {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-medium) 50%, var(--color-bg-dark) 100%);
}

.workflow-diagram {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-xl);
  overflow-x: auto;
  padding: var(--spacing-md) 0;
}

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

/* Mobile vertical workflow — same flow, top-to-bottom. Hidden by default
   so the desktop SVG shows; flipped on at the same 768px breakpoint
   that the rest of the site collapses at. */
.workflow-mobile {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 768px) {
  .workflow-desktop { display: none; }
  .workflow-diagram { overflow: visible; padding: 0; }
  .workflow-mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 0.5rem;
  }
  .wfm-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border: 1px solid #374151;
    border-radius: 12px;
    color: #fff;
  }
  .wfm-card.wfm-active {
    border-color: #f5c542;
    box-shadow: 0 0 14px rgba(245, 197, 66, 0.25);
  }
  .wfm-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .wfm-icon-stripes {
    gap: 2px;
  }
  .wfm-icon-stripes span {
    display: block;
    width: 5px;
    height: 26px;
    border-radius: 2px;
  }
  .wfm-icon-npm svg { width: 36px; height: auto; }
  .wfm-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
  }
  .wfm-name { font-weight: 700; font-size: 0.95rem; color: #fff; }
  .wfm-card.wfm-active .wfm-name { color: #f5c542; }
  .wfm-sub  { font-size: 0.72rem; color: #9ca3af; }
  .wfm-arrow {
    align-self: center;
    color: #f5c542;
    font-size: 1.25rem;
    line-height: 1;
    margin: -0.15rem 0;
  }
}

/* Screenshots Section */
.screenshots {
  padding: var(--spacing-3xl) 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.screenshot-card {
  text-align: center;
}

.screenshot-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: var(--spacing-md) 0 var(--spacing-xs);
}

.screenshot-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.screenshot-placeholder {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.screenshot-placeholder:hover {
  border-color: var(--color-border-hover);
}

.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

/* How it Works */
.how-it-works {
  padding: var(--spacing-3xl) 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.step {
  flex: 1;
  max-width: 320px;
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all 0.3s;
}

.step:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: #000000;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.step p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--color-accent);
  padding-top: 3rem;
}

/* Privacy Section */
/* Designer-voice section — warm, designer-facing block placed before
   the InfoSec-facing privacy block. Deliberately a different tone:
   serif heading, generous padding, no tech jargon. */
.designer-voice {
  padding: var(--spacing-3xl) 0;
  background: var(--color-bg-dark);
  text-align: center;
}
.designer-voice-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}
.designer-voice-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0.75rem 0 1.25rem;
  color: var(--color-text-primary);
}
.designer-voice-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

.privacy {
  padding: var(--spacing-2xl) 0;
  background: var(--color-bg-medium);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.privacy-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  max-width: 800px;
  margin: 0 auto;
}

.privacy-icon-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.privacy-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.privacy-text p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Social Proof / Logos Section */
.social-proof {
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.social-proof-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-lg);
}

.logo-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2xl);
  flex-wrap: wrap;
  opacity: 0.6;
}

.logo-grid img {
  height: 28px;
  filter: grayscale(100%) brightness(2);
  transition: all 0.3s;
}

.logo-grid img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Signup Section */
.signup {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.signup::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: var(--color-accent);
  filter: blur(200px);
  opacity: 0.08;
  pointer-events: none;
}

.signup-form {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.required {
  color: var(--color-accent);
}

.form-group input,
.form-group select {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg-medium);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  outline: none;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.form-group input::placeholder {
  color: var(--color-text-muted);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b949e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--color-bg-medium);
}

.signup-form .btn {
  width: 100%;
  margin-top: var(--spacing-sm);
  padding: 1rem;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--spacing-md);
}

/* Success Message */
.success-message {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-xl);
  max-width: 480px;
  margin: 0 auto;
}

.success-message.hidden {
  display: none;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.success-message h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-success);
}

.success-message p {
  color: var(--color-text-secondary);
}

/* Footer */
.footer {
  padding: var(--spacing-xl) 0;
  background: #101014;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-parent {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-parent a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-parent a:hover {
  color: var(--gradient-orange);
}

/* Responsive */
@media (max-width: 1024px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  /* On tablet-down, tighten nav links instead of hiding them so the
     subpage CTAs to /#problem etc. remain reachable. Hidden entirely
     only at the smallest widths where they'd wrap awkwardly. */
  .nav-links {
    gap: 0.75rem;
  }
  .nav-links a:not(.btn) {
    font-size: 0.85rem;
  }

  .hero {
    padding: 10rem 0 6rem;
  }

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

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

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
  }

  .step-arrow {
    display: none;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 520px) {
  /* Below ~520px, the three text links wrap and crowd the Join Waitlist
     button; hide them and rely on the in-page anchors for navigation. */
  .nav-links a:not(.btn) {
    display: none;
  }
}

/* Pricing Section */
.pricing {
  padding: var(--spacing-3xl) 0;
  background: var(--color-bg-medium);
}

.beta-notice {
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  background: rgba(245, 197, 66, 0.1);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
}

.beta-notice-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.beta-notice-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.beta-notice h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--color-text-primary);
}

.beta-notice p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.beta-notice a {
  color: var(--color-accent);
  text-decoration: underline;
}

.beta-notice a:hover {
  color: var(--color-accent-hover);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  background: var(--color-bg-card-hover);
}

.pricing-card-featured {
  border-color: var(--color-accent);
  border-width: 2px;
  position: relative;
  transform: scale(1.02);
}

.pricing-card-featured:hover {
  border-color: var(--color-accent-hover);
  transform: scale(1.02) translateY(-4px);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-bg-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.plan-price {
  margin-bottom: var(--spacing-sm);
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-left: 0.25rem;
}

.plan-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  font-size: 0.95rem;
}

.plan-features {
  list-style: none;
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
}

.plan-features li {
  padding: 0.6rem 0;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.feature-icon {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-bg-light);
  color: var(--color-text-secondary);
}

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

.hero-content > * {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.hero-badge { animation-delay: 0s; }
.hero-title { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.2s; }
.hero-cta { animation-delay: 0.3s; }
.hero-note { animation-delay: 0.4s; }

/* ---------------------------------------------------------------- */
/* Billing-cycle toggle (inline pricing on home page)               */
/* ---------------------------------------------------------------- */
.billing-toggle {
  display: inline-flex;
  margin: 0 auto var(--spacing-xl);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}
.billing-toggle-btn {
  background: transparent;
  border: 0;
  color: var(--color-text-secondary);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.billing-toggle-btn:hover { color: var(--color-text-primary); }
.billing-toggle-btn.is-active {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  font-weight: 600;
}
.billing-toggle-save {
  font-size: 0.75rem;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.billing-toggle-btn.is-active .billing-toggle-save {
  background: rgba(13, 17, 23, 0.15);
  color: var(--color-bg-dark);
}
.pricing .billing-toggle { display: flex; justify-content: center; max-width: max-content; }

/* Wrap toggle for centring above the grid */
section.pricing > .container > .billing-toggle {
  display: flex;
  justify-content: center;
}

/* Inline checkout error banner */
.checkout-error {
  max-width: 720px;
  margin: 0 auto var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid #f87171;
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  text-align: center;
}

/* ===========================================================================
   Legal pages — shared layout for /privacy, /terms, /cookies, /refunds, /dpa
   ============================================================================ */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem;
  color: var(--color-text-primary);
  line-height: 1.7;
}
.legal-page h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--color-text-primary);
}
.legal-page .legal-meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0 0 2.5rem;
}
.legal-page h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-bg-light);
  padding-bottom: 0.5rem;
}
.legal-page h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 1.75rem 0 0.5rem;
  color: var(--color-text-primary);
}
.legal-page p, .legal-page li {
  color: var(--color-text-secondary);
}
.legal-page strong {
  color: var(--color-text-primary);
}
.legal-page a {
  color: var(--color-accent);
}
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.legal-page th, .legal-page td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-bg-light);
  vertical-align: top;
}
.legal-page th {
  color: var(--color-text-primary);
  font-weight: 600;
}
.legal-page code {
  background: var(--color-bg-light);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.88em;
}

/* ===========================================================================
   Site footer (used on every page)
   ============================================================================ */
.site-footer {
  background: var(--color-bg-medium);
  border-top: 1px solid var(--color-bg-light);
  padding: 3rem 1.5rem 2rem;
  margin-top: 6rem;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.site-footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) {
  .site-footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.site-footer h4 {
  color: var(--color-text-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.4rem; }
.site-footer a {
  color: var(--color-text-secondary);
  text-decoration: none;
}
.site-footer a:hover { color: var(--color-text-primary); }
.site-footer-legal {
  border-top: 1px solid var(--color-bg-light);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===========================================================================
   Enterprise card — full-width, two-column layout (lede left, features right)
   ============================================================================ */
.pricing-card-enterprise {
  padding: 2rem;
}
.pricing-card-enterprise-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.pricing-card-enterprise-lede .plan-name {
  margin-bottom: 0.5rem;
}
.pricing-card-enterprise-lede .plan-description {
  margin-bottom: 1.25rem;
}
.pricing-card-enterprise-features {
  margin: 0;
  padding: 0;
}
@media (max-width: 720px) {
  .pricing-card-enterprise-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
