/* ============================================================
   Workforce — marketing.css
   Dark-first, terminal-forward design. White-label ready.
   --m-primary / --m-accent injected per-partner via <style>
   in layout.blade.php and cascade into --amber / brand vars.
   ============================================================ */

/* ───────────────────────────────────────────────────────────
   1. DESIGN TOKENS  (dark default)
──────────────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg:    #08090b;
  --bg-1:  #0c0e11;
  --bg-2:  #12151a;
  --bg-3:  #181c23;
  --line:  #1f242c;
  --line-2:#2a3038;
  --line-3:#3a4250;

  /* Text */
  --fg:   #ececee;
  --fg-1: #c8ccd2;
  --fg-2: #8b919b;
  --fg-3: #5b616b;
  --fg-4: #3d4250;

  /* Brand — white-label: --m-primary overrides --amber */
  --m-primary: #f5b042;
  --m-accent:  #ee5da6;

  --amber:      var(--m-primary);
  --amber-1:    #f9c976;
  --amber-glow: rgba(245, 176, 66, 0.18);

  --green:      #6ee7a0;
  --green-dim:  #2f6b48;
  --green-glow: rgba(110, 231, 160, 0.16);

  --magenta:      var(--m-accent);
  --magenta-glow: rgba(238, 93, 166, 0.18);

  --red:     #f97070;
  --red-glow:rgba(249, 112, 112, 0.16);

  --blue: #7aa7ff;

  /* Backward-compat --m-* aliases */
  --m-bg:        var(--bg);
  --m-surface:   var(--bg-1);
  --m-text:      var(--fg);
  --m-muted:     var(--fg-2);
  --m-border:    var(--line);
  --m-radius:    10px;
  --m-container: 1240px;
  --m-font:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Typography */
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  --serif: 'Iowan Old Style', Georgia, serif;

  /* Sizing */
  --maxw:      1240px;
  --gutter:    clamp(20px, 4vw, 48px);
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  /* Motion */
  --ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ───────────────────────────────────────────────────────────
   2. LIGHT MODE  [data-theme="light"]
──────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:    #f7f6f2;
  --bg-1:  #ffffff;
  --bg-2:  #f1efe9;
  --bg-3:  #e8e5dc;
  --line:  #d8d4c7;
  --line-2:#c4bfae;
  --line-3:#a8a293;

  --fg:   #14161a;
  --fg-1: #2a2d33;
  --fg-2: #5a5e68;
  --fg-3: #8a8d96;
  --fg-4: #b3b6bd;

  --amber:      #b87614;
  --amber-1:    #d18d2a;
  --amber-glow: rgba(184, 118, 20, 0.10);

  --green:      #1f7a4a;
  --green-dim:  #c1e3d0;
  --green-glow: rgba(31, 122, 74, 0.10);

  --magenta:      #b62a72;
  --magenta-glow: rgba(182, 42, 114, 0.10);

  --red:  #c0362a;
  --blue: #2855c2;

  /* Backward-compat aliases */
  --m-bg:      var(--bg);
  --m-surface: var(--bg-1);
  --m-text:    var(--fg);
  --m-muted:   var(--fg-2);
  --m-border:  var(--line);
}

/* ───────────────────────────────────────────────────────────
   2b. SYSTEM MODE  [data-theme="system"]
   Follows the OS preference. The :root defaults above are dark,
   so system only needs light tokens when the OS prefers light.
   Mirrors the [data-theme="light"] block above — keep in sync.
──────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    --bg:    #f7f6f2;
    --bg-1:  #ffffff;
    --bg-2:  #f1efe9;
    --bg-3:  #e8e5dc;
    --line:  #d8d4c7;
    --line-2:#c4bfae;
    --line-3:#a8a293;

    --fg:   #14161a;
    --fg-1: #2a2d33;
    --fg-2: #5a5e68;
    --fg-3: #8a8d96;
    --fg-4: #b3b6bd;

    --amber:      #b87614;
    --amber-1:    #d18d2a;
    --amber-glow: rgba(184, 118, 20, 0.10);

    --green:      #1f7a4a;
    --green-dim:  #c1e3d0;
    --green-glow: rgba(31, 122, 74, 0.10);

    --magenta:      #b62a72;
    --magenta-glow: rgba(182, 42, 114, 0.10);

    --red:  #c0362a;
    --blue: #2855c2;

    --m-bg:      var(--bg);
    --m-surface: var(--bg-1);
    --m-text:    var(--fg);
    --m-muted:   var(--fg-2);
    --m-border:  var(--line);
  }

  [data-theme="system"] body {
    background:
      radial-gradient(1000px 500px at 80% -10%, var(--amber-glow), transparent 70%),
      var(--bg);
    background-attachment: fixed;
  }

  [data-theme="system"] .m-header {
    background: rgba(247, 246, 242, 0.80);
  }
}

/* ───────────────────────────────────────────────────────────
   3. RESET + BASE
──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 80% -10%, var(--amber-glow), transparent 70%),
    radial-gradient(900px 500px at 0% 100%, var(--green-glow), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

[data-theme="light"] body {
  background:
    radial-gradient(1000px 500px at 80% -10%, var(--amber-glow), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }
button   { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a        { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol   { list-style: none; }

::selection { background: var(--amber); color: #000; }

/* ───────────────────────────────────────────────────────────
   4. ACCESSIBILITY
──────────────────────────────────────────────────────────── */
.m-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--amber);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
}
.m-skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ───────────────────────────────────────────────────────────
   5. TYPOGRAPHY
──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 4vw, 44px);   letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.015em; }
h4 { font-size: 17px; letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }

.mono { font-family: var(--mono); font-feature-settings: "ss01", "cv11"; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.kicker.amber { color: var(--amber); }
.kicker .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 12px var(--amber-glow);
}

/* Cursor blink */
.cursor::after {
  content: "▋";
  display: inline-block;
  margin-left: 1px;
  color: var(--amber);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ───────────────────────────────────────────────────────────
   6. LAYOUT
──────────────────────────────────────────────────────────── */
.wrap,
.m-container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.section       { padding-block: clamp(72px, 10vw, 140px); }
.section-tight { padding-block: clamp(48px, 7vw, 96px); }

.divider { height: 1px; background: var(--line); margin: 0; }

/* Grid system */
.grid   { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: 1fr; }
.cols-3 { grid-template-columns: 1fr; }
.cols-4 { grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ───────────────────────────────────────────────────────────
   7. NAVIGATION
──────────────────────────────────────────────────────────── */
.m-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 11, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

[data-theme="light"] .m-header {
  background: rgba(247, 246, 242, 0.80);
}

.m-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  color: var(--fg);
}
.m-brand-img  { height: 2rem; width: auto; }
.m-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--amber);
  color: #000;
  font-weight: 800;
  font-size: 0.9rem;
}

.m-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
}
.m-nav a {
  color: var(--fg-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 160ms var(--ease);
}
.m-nav a:hover { color: var(--fg); }

.m-cta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Mobile hamburger (checkbox trick) */
.m-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.25rem;
}
.m-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 220ms var(--ease);
}

.m-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

@media (max-width: 768px) {
  .m-nav-toggle  { display: flex; }
  .m-nav-backdrop { display: block; }

  #m-nav-cb:checked ~ .m-nav-backdrop { opacity: 1; pointer-events: auto; }

  .m-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: 4rem;
    right: 0;
    bottom: 0;
    width: 17rem;
    background: var(--bg-1);
    border-left: 1px solid var(--line);
    padding: 1.5rem;
    z-index: 99;
    overflow-y: auto;
  }
  .m-nav a { padding: 0.625rem 0; font-size: 1rem; width: 100%; }

  #m-nav-cb:checked ~ * .m-nav,
  #m-nav-cb:checked + * + * .m-nav { display: flex; }
}

/* ───────────────────────────────────────────────────────────
   8. BUTTONS
──────────────────────────────────────────────────────────── */
.btn,
.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform  160ms var(--ease),
    background 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}
.btn:hover,
.m-btn:hover { transform: translateY(-1px); }

.btn-primary,
.m-btn-primary {
  background: var(--amber);
  color: #181100;
  box-shadow: 0 8px 26px -10px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-primary:hover,
.m-btn-primary:hover { background: var(--amber-1); }

.btn-ghost,
.m-btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn-ghost:hover,
.m-btn-ghost:hover { border-color: var(--line-3); background: var(--bg-2); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg,
.m-btn-lg { padding: 14px 28px; font-size: 16px; }

/* ───────────────────────────────────────────────────────────
   9. CARDS
──────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition:
    border-color 200ms var(--ease),
    background   200ms var(--ease),
    transform    200ms var(--ease);
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.card-p { padding: clamp(20px, 3vw, 32px); }

/* ───────────────────────────────────────────────────────────
   10. CHIPS / PILLS
──────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--fg-1);
}
.chip.green  { color: var(--green);  border-color: var(--green-dim);              background: var(--green-glow); }
.chip.amber  { color: var(--amber);  border-color: rgba(245, 176, 66, 0.3);       background: var(--amber-glow); }
.chip.dim    { color: var(--fg-2);   border-color: var(--line); }

/* ───────────────────────────────────────────────────────────
   11. HERO
──────────────────────────────────────────────────────────── */
.hero,
.m-hero {
  padding-block: clamp(80px, 12vw, 160px) clamp(64px, 9vw, 120px);
}

.page-hero {
  padding-block: clamp(60px, 9vw, 120px);
  background:
    radial-gradient(900px 500px at 60% 0%, var(--amber-glow), transparent 70%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--fg-2);
  max-width: 38rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1.5rem;
  font-size: 13px;
  color: var(--fg-3);
}

.m-lede {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: var(--fg-2);
  max-width: 40rem;
  margin-inline: auto;
}

/* ───────────────────────────────────────────────────────────
   12. TERMINAL CARD
──────────────────────────────────────────────────────────── */
.terminal {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}

.term-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.term-dots {
  display: flex;
  gap: 6px;
}
.term-dots span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.term-dots span:nth-child(1) { background: #ff5f57; }
.term-dots span:nth-child(2) { background: #febc2e; }
.term-dots span:nth-child(3) { background: #28c840; }

.term-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

.term-body  { padding: 18px 20px; display: flex; flex-direction: column; gap: 3px; }
.term-row   { display: flex; gap: 10px; opacity: 0; animation: term-in 300ms var(--ease-out) forwards; }

.term-prefix { color: var(--green);  flex-shrink: 0; }
.term-text   { color: var(--fg-1); }

/* Row color variants */
.term-amber   { color: var(--amber); }
.term-green   { color: var(--green); }
.term-muted   { color: var(--fg-3); }
.term-dim     { color: var(--fg-4); }
.term-white   { color: var(--fg); }
.term-blue    { color: var(--blue); }
.term-magenta { color: var(--magenta); }
.term-red     { color: var(--red); }

.term-foot {
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 11px;
  color: var(--fg-4);
}

@keyframes term-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* Stagger delays for terminal rows */
.term-row:nth-child(1)  { animation-delay: 0.05s; }
.term-row:nth-child(2)  { animation-delay: 0.20s; }
.term-row:nth-child(3)  { animation-delay: 0.40s; }
.term-row:nth-child(4)  { animation-delay: 0.60s; }
.term-row:nth-child(5)  { animation-delay: 0.80s; }
.term-row:nth-child(6)  { animation-delay: 1.00s; }
.term-row:nth-child(7)  { animation-delay: 1.20s; }
.term-row:nth-child(8)  { animation-delay: 1.40s; }
.term-row:nth-child(9)  { animation-delay: 1.60s; }
.term-row:nth-child(10) { animation-delay: 1.80s; }

/* ───────────────────────────────────────────────────────────
   13. SECTION HEAD
──────────────────────────────────────────────────────────── */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 48px;
  max-width: 720px;
}
.section-head h2 { font-weight: 500; }
.section-head p  { color: var(--fg-2); font-size: 17px; line-height: 1.6; }
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }

/* ───────────────────────────────────────────────────────────
   14. FEATURE / STEP CARDS
──────────────────────────────────────────────────────────── */
.step {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.step:hover { border-color: var(--line-2); transform: translateY(-2px); }

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--amber-glow);
  border: 1px solid rgba(245, 176, 66, 0.25);
  margin-bottom: 16px;
  color: var(--amber);
  font-size: 20px;
}

.step[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.06em;
}

.step-mono {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* ───────────────────────────────────────────────────────────
   15. AGENT CARDS
──────────────────────────────────────────────────────────── */
.agent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 28px);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.agent:hover { border-color: var(--line-2); transform: translateY(-2px); }

.agent-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--line-2);
  font-size: 20px;
  flex-shrink: 0;
}

.agent-name  { font-weight: 600; font-size: 15px; color: var(--fg); }
.agent-tasks { font-size: 13px; color: var(--fg-2); line-height: 1.5; }

/* ───────────────────────────────────────────────────────────
   16. PRICING CARDS
──────────────────────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.pricing-card:hover { border-color: var(--line-2); }

.pricing-card.featured {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 20px 60px -20px var(--amber-glow);
}
.pricing-card.featured:hover {
  box-shadow: 0 0 0 1px var(--amber-1), 0 24px 70px -18px var(--amber-glow);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pricing-price .amount {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.pricing-price .period { font-size: 14px; color: var(--fg-3); }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-1);
  line-height: 1.5;
}
.pricing-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ───────────────────────────────────────────────────────────
   17. PARTNER REGISTRATION FORM
──────────────────────────────────────────────────────────── */
.partner-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-1);
  letter-spacing: 0.01em;
}

.form-input {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--fg);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
  width: 100%;
}
.form-input::placeholder { color: var(--fg-3); }
.form-input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.form-error   { font-size: 12px; color: var(--red);   margin-top: 2px; }
.form-success { font-size: 12px; color: var(--green);  margin-top: 2px; }

/* ───────────────────────────────────────────────────────────
   18. RECEIPTS / ACTIVITY FEED
──────────────────────────────────────────────────────────── */
.receipts-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
}

.receipt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-1);
  transition: background 120ms var(--ease);
}
.receipt-item:last-child { border-bottom: none; }
.receipt-item:hover      { background: var(--bg-2); }

.receipt-item .receipt-icon { flex-shrink: 0; color: var(--amber); font-size: 15px; }
.receipt-item .receipt-label { flex: 1; }
.receipt-item .receipt-time  { color: var(--fg-3); font-family: var(--mono); font-size: 11px; }
.receipt-item .receipt-badge { margin-left: auto; }

/* ───────────────────────────────────────────────────────────
   19. LOGO STRIP
──────────────────────────────────────────────────────────── */
.logos {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  animation: logos-scroll 30s linear infinite;
  width: max-content;
}
.logos-track:hover { animation-play-state: paused; }

.logos-track img {
  height: 28px;
  width: auto;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity 200ms, filter 200ms;
}
.logos-track img:hover { opacity: 0.8; filter: grayscale(0); }

@keyframes logos-scroll {
  to { transform: translateX(-50%); }
}

/* ───────────────────────────────────────────────────────────
   20. CTA BAND
──────────────────────────────────────────────────────────── */
.cta-band {
  background:
    radial-gradient(900px 500px at 50% 50%, var(--amber-glow), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(64px, 9vw, 120px);
  text-align: center;
}
.cta-band h2 { color: var(--fg); }
.cta-band p  { color: var(--fg-2); margin-top: 12px; font-size: 17px; }
.cta-band .hero-cta { justify-content: center; }

/* ───────────────────────────────────────────────────────────
   21. FOOTER
──────────────────────────────────────────────────────────── */
.m-footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 80px) 0 clamp(24px, 4vw, 40px);
  background: var(--bg);
  margin-top: 0;
}

.m-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.m-footer h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  margin-bottom: 14px;
  font-family: var(--mono);
}
.m-footer ul { display: flex; flex-direction: column; gap: 8px; }
.m-footer a  { color: var(--fg-2); font-size: 0.875rem; transition: color 140ms var(--ease); }
.m-footer a:hover { color: var(--fg); }

.m-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--fg-3);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.m-footer-bar a { color: var(--fg-3); }
.m-footer-bar a:hover { color: var(--fg-2); }

.m-footer-address {
  font-size: 0.8rem;
  color: var(--fg-3);
  margin-top: 10px;
  line-height: 1.6;
}

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

/* ───────────────────────────────────────────────────────────
   22. THEME TOGGLE
──────────────────────────────────────────────────────────── */
.m-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  color: var(--fg-2);
  font-size: 15px;
  transition: border-color 140ms var(--ease), color 140ms var(--ease), background 140ms var(--ease);
}
.m-theme-toggle:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-glow);
}

.m-theme-icon { display: inline-flex; align-items: center; }

[data-theme="dark"]   .m-theme-icon--light { display: none; }
[data-theme="light"]  .m-theme-icon--dark  { display: none; }
[data-theme="system"] .m-theme-icon--dark  { display: none; }

/* System mode reflects the OS preference in the toggle icon too. */
@media (prefers-color-scheme: dark) {
  [data-theme="system"] .m-theme-icon--light { display: none; }
  [data-theme="system"] .m-theme-icon--dark  { display: inline-flex; }
}

/* ───────────────────────────────────────────────────────────
   23. REVEAL ANIMATION
──────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: none; }

/* Stagger delays for sibling reveals */
[data-reveal]:nth-child(2) { transition-delay: 80ms; }
[data-reveal]:nth-child(3) { transition-delay: 160ms; }
[data-reveal]:nth-child(4) { transition-delay: 240ms; }
[data-reveal]:nth-child(5) { transition-delay: 320ms; }
[data-reveal]:nth-child(6) { transition-delay: 400ms; }

/* ───────────────────────────────────────────────────────────
   24. REDUCED MOTION
──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .logos-track  { animation: none; }
  .cursor::after { animation: none; }
  .term-row { animation: none; opacity: 1; }
}

/* ───────────────────────────────────────────────────────────
   25. MISCELLANEOUS UTILITIES
──────────────────────────────────────────────────────────── */

/* Text helpers */
.text-amber   { color: var(--amber); }
.text-green   { color: var(--green); }
.text-muted   { color: var(--fg-2); }
.text-dim     { color: var(--fg-3); }
.text-center  { text-align: center; }

/* Flex utilities */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-sm       { gap: 8px; }
.gap-md       { gap: 16px; }
.gap-lg       { gap: 24px; }

/* Spacing utilities */
.mt-sm  { margin-top: 8px; }
.mt-md  { margin-top: 16px; }
.mt-lg  { margin-top: 32px; }
.mb-sm  { margin-bottom: 8px; }
.mb-md  { margin-bottom: 16px; }
.mb-lg  { margin-bottom: 32px; }

/* Amber highlight on text */
.highlight {
  color: var(--amber);
  position: relative;
  display: inline;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-1) 60%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Inline code */
code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  color: var(--green);
}

/* Horizontal rule */
hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin-block: 0;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}
