/* ============================================
   MJC Job Manager - Marketing Site Styles
   Dark-first (MJC IT brand), mobile-first,
   accessible, maintainable
   ============================================ */

/* ============================================
   CSS Reset & Base
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
  position: relative;
}

h1, h2, h3, p, a { overflow-wrap: anywhere; }

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

a {
  color: rgb(31, 143, 255);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: rgb(249, 116, 21);
}

a:focus {
  outline: 2px solid rgb(31, 143, 255);
  outline-offset: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

button:focus {
  outline: 2px solid rgb(31, 143, 255);
  outline-offset: 2px;
}

/* ============================================
   Color Variables — Dark-first (MJC IT brand)
   ============================================ */
:root {
  /* Dark palette is the default */
  --bg-primary: rgb(11, 18, 32);
  --bg-alt:     rgb(16, 24, 40);
  --bg-elev:    rgb(20, 29, 46);
  --bg-muted:   rgb(20, 29, 46);
  --fg-primary: rgb(236, 240, 247);
  --fg-muted:   rgb(156, 168, 186);
  --color-primary:   rgb(96, 165, 250);
  --color-primary-2: rgb(59, 130, 246);
  --color-secondary: rgb(251, 146, 60);
  --color-accent:    rgb(251, 146, 60);
  --border:     rgb(38, 49, 69);
  --destructive: rgb(248, 113, 113);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.55);

  --radius:    14px;
  --radius-lg: 22px;

  --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Light mode override */
[data-theme="light"] {
  --bg-primary: rgb(255, 255, 255);
  --bg-alt:     rgb(245, 247, 250);
  --bg-elev:    rgb(255, 255, 255);
  --bg-muted:   rgb(245, 247, 250);
  --fg-primary: rgb(17, 24, 39);
  --fg-muted:   rgb(90, 100, 116);
  --color-primary:   rgb(31, 143, 255);
  --color-primary-2: rgb(59, 130, 246);
  --color-secondary: rgb(249, 116, 21);
  --color-accent:    rgb(249, 116, 21);
  --border:     rgb(224, 228, 234);
  --destructive: rgb(239, 67, 67);

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 6px 18px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 24px 48px rgba(17, 24, 39, 0.12);
  --shadow-xl: 0 32px 64px rgba(17, 24, 39, 0.14);
}

/* Apply transitions to themed elements */
body,
.nav,
.feature-card,
.callout,
.footer,
.btn,
.workflow-step,
input,
textarea,
select {
  transition: var(--theme-transition);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
  color: var(--fg-primary);
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}

p {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding: 3.5rem 0;
}

@media (min-width: 760px) {
  .section {
    padding: 5.5rem 0;
  }
}

/* Gradient backgrounds that respond to theme */
.section-gradient {
  background: linear-gradient(to bottom,
    var(--bg-primary),
    color-mix(in srgb, var(--color-primary) 6%, var(--bg-alt)));
}

.section-muted {
  background: var(--bg-alt);
}

.cta-gradient {
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--color-primary) 12%, var(--bg-primary)),
    color-mix(in srgb, var(--color-accent) 10%, var(--bg-primary)));
}

/* Eyebrow + accent text */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

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

/* ============================================
   Parallax orb backdrop (MJC IT brand)
   ============================================ */
.parallax-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.parallax-bg .orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
  transition: transform 0.05s linear;
}

.parallax-bg .orb-1 { width: 380px; height: 380px; top: 8%;  left: -8%;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%); }
.parallax-bg .orb-2 { width: 300px; height: 300px; top: 38%; right: -10%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%); opacity: 0.45; }
.parallax-bg .orb-3 { width: 480px; height: 480px; top: 70%; left: 30%;
  background: radial-gradient(circle, var(--color-primary-2) 0%, transparent 70%); opacity: 0.35; }
.parallax-bg .orb-4 { width: 260px; height: 260px; top: 110%; right: 10%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%); opacity: 0.4; }

[data-theme="light"] .parallax-bg .orb { opacity: 0.35; }

.nav, main, .hero, .section, .footer, .demo-page { position: relative; z-index: 1; }

@media (max-width: 759px) {
  .parallax-bg .orb { filter: blur(50px); opacity: 0.35; }
  .parallax-bg .orb-1 { width: 240px; height: 240px; }
  .parallax-bg .orb-2 { width: 200px; height: 200px; }
  .parallax-bg .orb-3 { width: 280px; height: 280px; }
  .parallax-bg .orb-4 { width: 180px; height: 180px; }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  background: color-mix(in srgb, var(--bg-primary) 85%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fg-primary);
}

.nav-logo img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
}

.nav-links a {
  color: var(--fg-muted);
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--fg-primary);
}

.nav-links a.btn-primary {
  color: #fff;
}

@media (min-width: 1024px) {
  .nav-container {
    flex-wrap: nowrap;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg-primary);
  cursor: pointer;
  transition: var(--theme-transition);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--bg-muted);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
}

.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Theme toggle tooltip */
.theme-toggle::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg-primary);
  color: var(--bg-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.theme-toggle:hover::after {
  opacity: 1;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  border: none;
  font-size: 1rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: #fff;
  box-shadow: var(--shadow-md);
  border: 0;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-elev);
  color: var(--fg-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  color: var(--fg-primary);
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--border));
}

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

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background:
    radial-gradient(60% 80% at 80% 0%, color-mix(in srgb, var(--color-primary) 18%, transparent) 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--color-accent) 14%, transparent) 0%, transparent 60%),
    var(--bg-primary);
  padding: 3rem 0 4rem;
}

@media (min-width: 980px) {
  .hero {
    padding: 6rem 0 7rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.15rem;
  max-width: 56ch;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

.hero-content.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.hero-image {
  position: relative;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transform: scale(1.05) rotate(-1.5deg);
}

/* ============================================
   Feature Grid
   ============================================ */
.feature-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--border));
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--fg-primary);
  font-weight: 700;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  margin-bottom: 0;
}

/* Checkmark list inside cards */
.checklist {
  list-style: none;
  padding-left: 0;
  color: var(--fg-muted);
}

.checklist li {
  margin-bottom: 0.5rem;
}

/* Feature groups (features page) */
.feature-group {
  margin-top: 3.5rem;
}

.feature-group > p {
  max-width: 640px;
}

/* ============================================
   Workflow Section
   ============================================ */
.workflow-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.workflow-step {
  text-align: center;
  background: transparent;
  padding: 1.25rem 0.5rem;
}

.workflow-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: var(--shadow-md);
}

.workflow-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.workflow-step p {
  color: var(--fg-muted);
  margin-bottom: 0;
}

/* Split layout: steps + image (purchase order section) */
.split-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 641px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.split-grid-media {
  text-align: center;
}

@media (max-width: 640px) {
  .split-grid-media {
    order: -1;
  }
}

.split-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.split-steps .workflow-step {
  margin: 0;
}

.phone-screenshot {
  max-width: 180px;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  margin: 0 auto;
}

/* ============================================
   Callout Box
   ============================================ */
.callout {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.callout h3 {
  color: var(--fg-primary);
  margin-bottom: 1rem;
}

.callout ul {
  list-style: none;
  padding-left: 0;
}

.callout li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.callout li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

.pricing-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  min-width: 0; /* allow inner .table-scroll to handle overflow instead of blowing out the grid */
}

.pricing-card h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  font-weight: 600;
  background: var(--bg-muted);
  color: var(--fg-primary);
}

.pricing-table td:nth-child(2) {
  text-align: right;
  font-weight: 600;
  color: var(--color-primary);
}

.pricing-table tfoot {
  border-top: 2px solid var(--border);
}

.pricing-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* Horizontal scroll wrapper for tables on narrow screens
   (same mechanism as the homepage comparison table) */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile responsiveness for pricing table */
@media (max-width: 767px) {
  .pricing-card {
    padding: 1rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  .pricing-table th:first-child,
  .pricing-table td:first-child {
    min-width: 140px;
  }

  .pricing-table th:nth-child(2),
  .pricing-table td:nth-child(2) {
    min-width: 90px;
  }

  .pricing-table th:nth-child(3),
  .pricing-table td:nth-child(3) {
    min-width: 150px;
  }
}

/* Info box (e.g. "Not sure which option?") */
.info-box {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-elev);
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.info-box h3 {
  margin-bottom: 0.5rem;
}

.info-box p {
  margin-bottom: 1.5rem;
}

/* Pricing table cell helpers */
.spec-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.pricing-table .cell-strong {
  font-weight: 700;
}

.pricing-table .cell-price {
  font-weight: 700;
  color: var(--color-primary);
}

.pricing-table .cell-note {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ============================================
   Comparison Table (homepage)
   ============================================ */
.compare-wrap {
  max-width: 800px;
  margin: 2rem auto 0;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table thead th {
  background: var(--bg-muted);
  font-weight: 700;
}

.compare-table thead th.compare-mjc {
  color: var(--color-primary);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--fg-primary);
}

.compare-table td.compare-no {
  color: var(--fg-muted);
}

.compare-table .mark-yes {
  color: #22c55e;
  font-weight: 700;
  margin-right: 0.5rem;
}

.compare-table .mark-no {
  color: var(--fg-muted);
  margin-right: 0.5rem;
}

/* ============================================
   Social Proof
   ============================================ */
.logo-badge {
  display: inline-block;
  background: #1a1a2e;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.logo-badge:hover {
  opacity: 1;
}

.logo-badge img {
  height: 50px;
  width: auto;
  display: block;
  opacity: 1;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
  margin: 2rem 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  background: var(--bg-muted);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--border);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  color: var(--fg-muted);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  margin-bottom: 0.5rem;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fg-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-elev);
  color: var(--fg-primary);
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

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

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

.form-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.form-status {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: none;
}

.form-status[data-state="error"] {
  background: rgba(239, 67, 67, 0.1);
  border: 1px solid var(--destructive);
  color: var(--destructive);
}

.form-status[data-state="success"] {
  background: rgba(31, 143, 255, 0.1);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.form-status[data-state="pending"] {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--fg-muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-alt);
  color: var(--fg-primary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h4 {
  color: var(--fg-primary);
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--fg-muted);
  font-size: 0.875rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--fg-muted);
}

.footer-links a:hover {
  color: var(--fg-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.875rem;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 50;
  transition: all 0.2s ease;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: rgb(20, 120, 220);
  transform: translateY(-2px);
}

/* ============================================
   Demo / blurred background pages
   ============================================ */
.demo-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0 0 0;
  position: relative;
  overflow: hidden;
}

.demo-page::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: url('../images/get-started-needs-to-be-blurred.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(1.5rem);
  z-index: 0;
}

.demo-page::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--bg-primary) 65%, transparent);
  pointer-events: none;
  z-index: 1;
}

.demo-card {
  background: var(--bg-elev);
  color: var(--fg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.demo-card h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.demo-card > p {
  text-align: center;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Centered narrow content wrappers */
.wrap-600 { max-width: 600px; margin-left: auto; margin-right: auto; }
.wrap-700 { max-width: 700px; margin-left: auto; margin-right: auto; }
.wrap-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

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

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 200;
}

.skip-to-content:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Legal Pages
   ============================================ */

.legal-content {
  max-width: 800px;
}

.legal-content h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}
