/* ==========================================================================
   LiveSlide.Pro — Core stylesheet
   WCAG 2.2 AAA targets:
   - Body text contrast >= 7:1
   - Large text contrast >= 4.5:1
   - Focus indicators >= 3px, >= 3:1 contrast
   - Touch targets >= 44x44 px
   - Reduced-motion friendly
   ========================================================================== */

:root {
  /* MIDNIGHT STUDIO — dark-first, cinematic, 2026 */

  /* Brand: warm cream — text-as-brand on dark */
  --brand-50:  #faf8f1;
  --brand-100: #f0ede4;
  --brand-200: #d9d4c3;
  --brand-300: #bdb7a5;
  --brand-400: #8a8676;
  --brand-500: #f0ede4;            /* primary brand = cream on dark */
  --brand-600: #ede9dc;
  --brand-700: #d9d4c3;
  --brand-800: #8a8676;
  --brand-900: #5e5b50;

  /* Accent: electric chartreuse — the iconic 2026 pop */
  --accent-500: #c4f04c;            /* chartreuse */
  --accent-600: #a6d12d;
  --accent-700: #7da82a;            /* AAA on dark */

  /* Highlight: coral spark — secondary pop for warnings/sparkle */
  --highlight-500: #ff7a5e;
  --highlight-600: #e85e44;

  /* Warm-tinted neutrals (calibrated for AAA contrast on dark ink) */
  --gray-50:  #faf8f1;
  --gray-100: #ede9dc;              /* AAA on dark */
  --gray-200: #bdb7a5;
  --gray-300: #8a8676;
  --gray-400: #5e5b50;
  --gray-500: #43413a;
  --gray-600: #2e2d28;
  --gray-700: #1a1a1c;
  --gray-800: #16161a;
  --gray-900: #0a0a0d;              /* deep ink */

  --success-500: #9be15d;            /* lime success */
  --warning-500: #f5b942;            /* warm amber */
  --danger-500:  #ff5a4a;            /* coral red */
  --info-500:    #6ec3ff;            /* sky info */

  /* Semantic — DARK by default (dark-first) */
  --bg:        #0a0a0d;              /* deep ink */
  --bg-alt:    #0f0f12;              /* one step lifted */
  --bg-card:   #16161a;              /* card surface */
  --text:      #ede9dc;              /* bone white */
  --text-soft: #bdb7a5;              /* warm soft */
  --text-muted:#8a8676;              /* warm muted */
  --heading:   #faf8f1;              /* bright cream */
  --link:      #c4f04c;              /* chartreuse links */
  --link-hover:#d8ff5e;
  --border:    #26252a;
  --border-strong: #36353c;
  --focus:     #ff7a5e;              /* coral spark for focus */

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-display: 'Fraunces', 'Inter', Georgia, serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow:    0 4px 12px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);

  --transition-fast: 120ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Dark is the DEFAULT. Light mode is a graceful fallback for users who explicitly prefer it. */
@media (prefers-color-scheme: light) {
  :root:not(.force-dark) {
    --bg:        #fafaf7;
    --bg-alt:    #f1ede2;
    --bg-card:   #ffffff;
    --text:      #1a1a1c;
    --text-soft: #43413a;
    --text-muted:#5e5b50;
    --heading:   #0a0a0d;
    --link:      #5e7d20;            /* darker chartreuse for light bg AAA */
    --link-hover:#3f5410;
    --border:    #e7e2d3;
    --border-strong: #cdc4ad;
    --focus:     #b53b27;
  }
}

/* ==========================================================================
   Resets & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;       /* 17px — comfortable reading */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}
a:hover { color: var(--link-hover); text-decoration-thickness: 0.16em; }

/* Visible focus — AAA */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.ld-skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gray-900);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}
.ld-skip-link:focus { top: 0; }

/* Container */
.container-xl, .container-md {
  width: 100%;
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}
.container-xl { max-width: 1280px; }
.container-md { max-width: 920px; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 { color: var(--heading); margin: 0 0 var(--space-4); line-height: 1.15; letter-spacing: -0.01em; }
.ld-h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.ld-h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
.ld-h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700; }
.ld-h4 { font-size: 1.125rem; font-weight: 700; }

.ld-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-500);
  margin: 0 0 var(--space-3);
}
.ld-eyebrow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(196, 240, 76, 0.20);
}

.ld-grad-text {
  background: linear-gradient(120deg, var(--heading), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.ld-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 13, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: light) {
  :root:not(.force-dark) .ld-header { background: rgba(250, 250, 247, 0.85); }
}

.ld-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  min-height: 64px;
}

.ld-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--heading);
  font-weight: 700;
}
.ld-logo:hover { text-decoration: none; }
.ld-logo-text { font-size: 1.125rem; }
.ld-logo-text em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-500);
}

.ld-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: var(--space-3);
  cursor: pointer;
  width: 44px; height: 44px; /* 44px touch target — WCAG 2.2 */
}
.ld-nav-toggle-bar {
  display: block;
  width: 24px; height: 2px;
  background: var(--heading);
  margin: 5px auto;
  transition: transform var(--transition);
}

.ld-nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ld-nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-2) var(--space-1);
}
.ld-nav-menu a:hover { color: var(--link); }
.ld-nav-menu li:last-child a { padding: 0; }

@media (max-width: 760px) {
  .ld-nav-toggle { display: inline-block; }
  .ld-nav-menu {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-5);
    gap: var(--space-4);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .ld-nav-menu.is-open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.4rem;
  min-height: 44px;            /* WCAG 2.2 target size */
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.ld-btn:disabled, .ld-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.ld-btn:hover:not(:disabled) { text-decoration: none; transform: translateY(-1px); }
.ld-btn:active:not(:disabled) { transform: translateY(0); }

.ld-btn-primary {
  background: var(--accent-500);
  color: #0a0a0d;
  box-shadow: 0 6px 22px rgba(196, 240, 76, 0.28), 0 1px 0 rgba(255,255,255,0.05) inset;
}
.ld-btn-primary:hover { background: #d8ff5e; color: #0a0a0d; box-shadow: 0 8px 28px rgba(196, 240, 76, 0.4); }

.ld-btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border-strong);
}
.ld-btn-ghost:hover { background: var(--bg-alt); border-color: var(--accent-500); color: var(--accent-500); }

.ld-btn-google {
  background: #fff;
  color: #1f1f1f;
  border-color: var(--gray-300);
}
.ld-btn-google:hover { background: var(--gray-50); color: #1f1f1f; }

.ld-btn-success {
  background: var(--success-500);
  color: #fff;
}
.ld-btn-success:hover { background: #128a3a; color: #fff; }

.ld-btn-danger {
  background: var(--danger-500);
  color: #fff;
}
.ld-btn-danger:hover { background: #b91c1c; color: #fff; }

.ld-btn-warning {
  background: var(--warning-500);
  color: #1a1a1a;
}
.ld-btn-warning:hover { background: #d99a2c; color: #1a1a1a; }

.ld-btn-sm { padding: 0.5rem 0.875rem; min-height: 36px; font-size: 0.875rem; }
.ld-btn-lg { padding: 1.05rem 1.7rem; font-size: 1rem; }
.ld-btn-block { display: flex; width: 100%; }

/* Live-build status banner inside the actions card */
.ld-build-status {
  margin: 0 0 var(--space-3) 0;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  font-size: 0.9rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.04);
}
.ld-build-status.is-pending,
.ld-build-status.is-running {
  border-color: var(--accent-500);
  background: rgba(196, 240, 76, 0.08);
}
.ld-build-status.is-failed {
  border-color: var(--danger-500);
  background: rgba(220, 38, 38, 0.08);
  color: #fecaca;
}
:root:not(.force-dark) .ld-build-status.is-failed {
  background: #fef2f2; color: #7f1d1d;
}

.ld-actions-divider {
  border: 0;
  border-top: 1px solid var(--gray-300);
  margin: var(--space-4) 0;
  opacity: 0.45;
}

.ld-help-text {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.ld-hero {
  position: relative;
  padding: var(--space-9) 0;
  overflow: hidden;
}
.ld-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ld-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.ld-hero-orb-a { top: -120px; left: -100px; width: 520px; height: 520px; background: radial-gradient(circle, var(--accent-500), transparent 70%); opacity: 0.18; }
.ld-hero-orb-b { bottom: -160px; right: -120px; width: 600px; height: 600px; background: radial-gradient(circle, var(--highlight-500), transparent 70%); opacity: 0.14; }

.ld-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
  position: relative;
}
@media (max-width: 980px) {
  .ld-hero-grid { grid-template-columns: 1fr; gap: var(--space-7); }
}
.ld-hero-sub { font-size: 1.125rem; color: var(--text-soft); margin: var(--space-5) 0; max-width: 540px; }
.ld-hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.ld-hero-trust {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.ld-hero-trust li { display: inline-flex; align-items: center; gap: var(--space-2); }

/* Mock deck */
.ld-mock-deck {
  position: relative;
  aspect-ratio: 4 / 3;
  perspective: 1200px;
}
.ld-mock-slide {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.ld-mock-slide-back  { transform: translate(8%, -8%) rotate(4deg); opacity: 0.85; }
.ld-mock-slide-mid   { transform: translate(4%, -4%) rotate(2deg); opacity: 0.92; }
.ld-mock-slide-front { transform: rotate(-1deg); }
.ld-mock-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-500);
  margin-bottom: var(--space-3);
}
.ld-mock-slide h3 { font-size: 1.45rem; margin: 0 0 var(--space-3); color: var(--heading); }
.ld-mock-bullets { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.ld-mock-bullets span { font-size: 0.9rem; color: var(--text-soft); padding-left: 1.2rem; position: relative; }
.ld-mock-bullets span::before { content: '✓'; position: absolute; left: 0; color: var(--accent-500); font-weight: 700; }

/* ==========================================================================
   Sections / metrics
   ========================================================================== */
.ld-section { padding: var(--space-9) 0; }
.ld-section-head { max-width: 760px; margin-bottom: var(--space-7); }
.ld-section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.ld-section-sub { font-size: 1.0625rem; color: var(--text-soft); }

.ld-metrics { background: var(--bg-alt); padding: var(--space-7) 0; }
.ld-metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-6); list-style: none; margin: 0; padding: 0; text-align: center; }
.ld-metric-num { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4.8vw, 3.4rem); font-weight: 700; color: var(--heading); }
.ld-metric-unit { font-size: 0.6em; color: var(--text-muted); }
.ld-metric-label { color: var(--text-soft); font-size: 0.95rem; }

/* Feature grid */
.ld-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.ld-feature {
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.ld-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent-500); }
.ld-feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(196, 240, 76, 0.10), rgba(255, 122, 94, 0.06));
  border: 1px solid var(--border);
  color: var(--accent-500);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.ld-feature h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.ld-feature p { color: var(--text-soft); margin: 0; }

/* Use cases */
.ld-usecase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.ld-usecase {
  padding: var(--space-6);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.ld-usecase h3 { font-size: 1.15rem; }

/* Testimonials */
.ld-testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-5); }
.ld-testimonial {
  padding: var(--space-6);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 0;
  position: relative;
}
.ld-testimonial blockquote { margin: 0 0 var(--space-4); font-size: 1.0625rem; color: var(--heading); line-height: 1.5; }
.ld-testimonial figcaption { font-size: 0.95rem; color: var(--text-soft); }
.ld-testimonial figcaption strong { display: block; color: var(--heading); }

/* CTA band */
.ld-cta-band { background: linear-gradient(135deg, #0a0a0d 0%, #1a1a1c 100%); position: relative; overflow: hidden; }
.ld-cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 80% 100%, rgba(196, 240, 76, 0.18), transparent 60%),
              radial-gradient(700px 350px at 0% 0%, rgba(255, 122, 94, 0.12), transparent 60%);
  pointer-events: none;
}
.ld-cta-band > * { position: relative; }
.ld-cta-card { color: #fff; text-align: center; max-width: 800px; margin: 0 auto; padding: var(--space-7); }
.ld-cta-card h2 { color: #fff; }
.ld-cta-sub { font-size: 1.125rem; color: rgba(255,255,255,0.85); margin: var(--space-4) 0 var(--space-6); }
.ld-cta-actions { display: inline-flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.ld-cta-band .ld-btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.ld-cta-band .ld-btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* FAQ */
.ld-faq-list { display: grid; gap: var(--space-3); max-width: 800px; }
.ld-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
}
.ld-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.ld-faq-item summary::-webkit-details-marker { display: none; }
.ld-faq-item summary::after {
  content: '+';
  position: absolute; right: 0; top: 0;
  font-size: 1.5rem; line-height: 1; color: var(--brand-600);
  transition: transform var(--transition);
}
.ld-faq-item[open] summary::after { content: '−'; }
.ld-faq-body { padding-top: var(--space-3); color: var(--text-soft); }

/* ==========================================================================
   Forms
   ========================================================================== */
.ld-form { display: grid; gap: var(--space-4); }
.ld-form-inline { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: end; }

.ld-field { display: grid; gap: var(--space-2); }
.ld-field-checkbox { grid-template-columns: auto 1fr; align-items: start; gap: var(--space-3); }

.ld-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading);
}
.ld-label-hint { font-weight: 400; color: var(--text-muted); }
.ld-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.ld-link-sm { font-size: 0.85rem; }

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

.ld-input, .ld-form input[type="text"], .ld-form input[type="email"], .ld-form input[type="password"], .ld-form input[type="number"], .ld-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--heading);
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}
.ld-input:focus, .ld-form input:focus, .ld-form textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(196, 240, 76, 0.25);
}
.ld-input-lg { padding: 1.05rem 1.2rem; font-size: 1.05rem; }
.ld-form textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

.ld-checkbox { width: 22px; height: 22px; accent-color: var(--brand-600); margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.ld-checkbox-label { font-size: 0.95rem; line-height: 1.5; }

.ld-radio {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  margin-right: var(--space-2);
  margin-bottom: var(--space-2);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.ld-radio:has(input:checked) { background: rgba(196, 240, 76, 0.10); border-color: var(--accent-500); color: var(--accent-500); }
.ld-radio input { accent-color: var(--brand-600); }

.ld-fieldset { border: 0; padding: 0; margin: 0; }
.ld-fieldset legend { padding: 0 0 var(--space-2); font-weight: 600; }

.ld-form-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }

/* Auth pages */
.ld-auth-section { padding: var(--space-8) 0; min-height: calc(100vh - 220px); display: flex; align-items: center; }
.ld-auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.ld-auth-head { text-align: center; margin-bottom: var(--space-5); }
.ld-auth-title { font-size: 1.75rem; font-family: var(--font-display); }
.ld-auth-sub { color: var(--text-soft); margin-top: var(--space-2); }
.ld-auth-or {
  display: flex; align-items: center; gap: var(--space-3);
  margin: var(--space-5) 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.ld-auth-or::before, .ld-auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.ld-auth-alt { text-align: center; color: var(--text-soft); margin-top: var(--space-5); }

/* Alerts */
.ld-alert {
  padding: var(--space-4);
  border-radius: var(--radius);
  border-left: 4px solid;
  margin: 0 0 var(--space-5);
  font-size: 0.95rem;
}
.ld-alert ul { margin: 0; padding-left: 1.2rem; }
.ld-alert-error   { background: rgba(255, 90, 74, 0.10);  border-color: var(--danger-500);  color: #ffa093; }
.ld-alert-success { background: rgba(155, 225, 93, 0.10); border-color: var(--success-500); color: #b9eb8a; }
.ld-alert-warning { background: rgba(245, 185, 66, 0.10); border-color: var(--warning-500); color: #fcd494; }
.ld-alert-info    { background: rgba(110, 195, 255, 0.10);border-color: var(--info-500);    color: #a8d8ff; }

@media (prefers-color-scheme: light) {
  :root:not(.force-dark) .ld-alert-error   { background: #fef2f2; color: #7f1d1d; }
  :root:not(.force-dark) .ld-alert-success { background: #f0fdf4; color: #14532d; }
  :root:not(.force-dark) .ld-alert-warning { background: #fffbeb; color: #78350f; }
  :root:not(.force-dark) .ld-alert-info    { background: #eff6ff; color: #1e3a8a; }
}

/* Flash region */
.ld-flash-region { padding-top: var(--space-3); }
.ld-flash {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  border-left: 4px solid;
}
.ld-flash-success { background: rgba(155, 225, 93, 0.10); border-color: var(--success-500); color: #b9eb8a; }
.ld-flash-error   { background: rgba(255, 90, 74, 0.10);  border-color: var(--danger-500);  color: #ffa093; }
.ld-flash-warning { background: rgba(245, 185, 66, 0.10); border-color: var(--warning-500); color: #fcd494; }
.ld-flash-info    { background: rgba(110, 195, 255, 0.10);border-color: var(--info-500);    color: #a8d8ff; }
.ld-flash-icon {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(0,0,0,0.07);
  font-weight: 700;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.ld-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.ld-price-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.ld-price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ld-price-card-featured {
  border-color: var(--accent-500);
  box-shadow: 0 24px 60px rgba(196, 240, 76, 0.18);
}
.ld-price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent-500);
  color: #0a0a0d;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.ld-price-head { margin-bottom: var(--space-4); }
.ld-price-title { font-size: 1.15rem; }
.ld-price-sub { color: var(--text-soft); font-size: 0.9rem; margin: var(--space-2) 0 0; }
.ld-price-amount { margin: var(--space-4) 0; }
.ld-price-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--heading); }
.ld-price-per { color: var(--text-muted); margin-left: var(--space-2); }
.ld-price-features { list-style: none; padding: 0; margin: 0 0 var(--space-5); flex-grow: 1; }
.ld-price-features li {
  position: relative; padding: var(--space-2) 0 var(--space-2) 1.6rem;
  color: var(--text-soft); border-bottom: 1px solid var(--border);
}
.ld-price-features li:last-child { border-bottom: 0; }
.ld-price-features li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 16px; height: 9px;
  border: solid var(--brand-600);
  border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg);
}
.ld-price-foot { font-size: 0.85rem; color: var(--text-muted); margin-top: var(--space-3); text-align: center; }
.ld-price-fineprint { margin-top: var(--space-7); text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ld-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-9);
}
.ld-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
}
@media (max-width: 760px) { .ld-footer-grid { grid-template-columns: 1fr 1fr; } }
.ld-footer-tagline { color: var(--text-soft); margin-top: var(--space-3); max-width: 280px; }
.ld-footer-h { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin: 0 0 var(--space-4); }
.ld-footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.ld-footer-nav a { color: var(--text-soft); text-decoration: none; }
.ld-footer-nav a:hover { color: var(--link); text-decoration: underline; }
.ld-footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
  color: var(--text-muted); font-size: 0.9rem;
}

/* ==========================================================================
   Join (participant) page
   ========================================================================== */
.ld-join-body { background: var(--bg-alt); }
.ld-join-section { padding: var(--space-7) 0 var(--space-9); }
.ld-join-head { text-align: center; margin-bottom: var(--space-6); }
.ld-join-title { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.6rem); }
.ld-join-audience { color: var(--text-soft); }
.ld-join-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow); }
.ld-form-foot { color: var(--text-muted); font-size: 0.85rem; text-align: center; margin: var(--space-3) 0 0; }
.ld-consent { background: var(--bg-alt); padding: var(--space-3) var(--space-4); border-radius: var(--radius); border: 1px solid var(--border); }
.ld-join-thanks { text-align: center; padding: var(--space-7); background: var(--bg-card); border-radius: var(--radius-xl); border: 1px solid var(--border); }
.ld-join-thanks-icon { color: var(--success-500); margin: 0 auto var(--space-4); display: inline-block; }
.ld-join-followup { color: var(--text-muted); font-size: 0.9rem; margin-top: var(--space-4); }

/* Follow-up page */
.ld-followup-head { text-align: center; margin-bottom: var(--space-7); }
.ld-followup-meta { color: var(--text-muted); }
.ld-followup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}
.ld-followup-caution { border-left: 4px solid var(--warning-500); }
.ld-prompts { padding-left: 1.5rem; }
.ld-prompts pre {
  background: var(--bg-alt);
  padding: var(--space-3);
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ld-plan-list { list-style: none; padding: 0; }
.ld-plan-list li {
  padding: var(--space-3) 0 var(--space-3) 2rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.ld-plan-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--brand-600); font-weight: 700;
}
.ld-followup-foot { text-align: center; margin-top: var(--space-7); color: var(--text-muted); font-size: 0.9rem; }

/* Errors / utility */
.ld-section-error { padding: var(--space-9) 0; }
.ld-error-card { text-align: center; padding: var(--space-7); background: var(--bg-card); border-radius: var(--radius-xl); border: 1px solid var(--border); }

/* Prose */
.ld-prose { max-width: 760px; }
.ld-prose p { margin: 0 0 var(--space-4); }
.ld-prose h2 { margin-top: var(--space-6); }

/* HIW steps */
.ld-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-6); }
.ld-step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start; }
.ld-step-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2rem;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-500);
  color: #0a0a0d;
  box-shadow: 0 8px 28px rgba(196, 240, 76, 0.25);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ld-safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.ld-safety {
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Contact */
.ld-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
@media (max-width: 760px) { .ld-contact-grid { grid-template-columns: 1fr; } }
.ld-contact-list { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-4); }
.ld-contact-list li { background: var(--bg-card); padding: var(--space-4); border-radius: var(--radius); border: 1px solid var(--border); }
.ld-contact-list strong { display: block; color: var(--heading); }
.ld-contact-list span { display: block; color: var(--text-soft); font-size: 0.95rem; margin-top: var(--space-1); }
