/*
 * Lumenix.ai shared stylesheet, linked by every page.
 * Order: tokens > themes > reset and base (type scale) > layout helpers (mono label,
 * section intro) > buttons and icons > header > footer > legal pages. Page sections of
 * the landing page (hero, services, clients, forms, pricing) keep their own CSS
 * next to their markup and use only the tokens and components defined here.
 */

/* Tokens: light theme is the default. */
:root {
  --bg: #FAF8F4;
  --surface: #F2EEE6;
  --ink: #1C1A17;
  --muted: #5F5A52;
  --line: #E3DDD2;
  --accent: #7A3190;      /* logo purple */
  --deep: #2E1A5E;        /* logo indigo */
  --on-accent: #FFFFFF;   /* text on an --accent background */

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale: headings and lead text on every page */
  --step-display: clamp(2.5rem, 6.6vw, 5.75rem);   /* hero headline */
  --step-title: clamp(1.875rem, 4vw, 2.75rem);     /* section headings, legal page titles */
  --step-heading: 1.5rem;                          /* card titles, legal section headings */
  --step-subheading: 1.1875rem;
  --step-lead: 1.0625rem;                          /* paragraph under a section heading */

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --radius: 12px;
  color-scheme: light;
}

/* Dark theme follows the system setting; there is no manual toggle. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --surface: #1F1C19;
    --ink: #EDE8DF;
    --muted: #A39D92;
    --line: #2E2A25;
    --accent: #B98AD0;
    --deep: #2E1A5E;
    --on-accent: #161412;
    color-scheme: dark;
  }
}

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-size: var(--step-title); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--step-heading); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Layout helpers */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
/* Mono label recipe, shared by the labels below; each sets its own colour */
.mono, .menu summary, .site-footer h2, .toc h4, .channel-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mono { color: var(--muted); }

/* Section intro: optional mono eyebrow, heading, then a lead paragraph */
.section-intro { margin-bottom: 40px; }
.section-intro .mono { display: block; }
.section-intro h2 { margin-top: 12px; }
.section-intro p:last-child { margin-top: 14px; max-width: 60ch; color: var(--muted); font-size: var(--step-lead); }

/* Buttons: <a class="btn btn-primary"> and <a class="btn btn-ghost"> */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font: 500 0.9375rem/1 var(--sans);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); }

/* Inline SVG icons: <svg class="icon" aria-hidden="true"><use href="#i-name"/></svg> */
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.125em; }

/* Header: brand + section links; below 760px a no-JS <details> menu replaces the links. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em;
}
/* <picture> swaps in the on-dark logo files and adds no box of its own */
picture { display: contents; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; }
.brand-mark img { width: 30px; height: auto; }
.nav, .menu-list { list-style: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 0.9375rem; }
.nav a, .menu-list a { color: var(--muted); text-decoration: none; }
.nav a:hover, .menu-list a:hover { color: var(--ink); }
.menu { position: relative; display: none; }
.menu summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--surface); }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  display: grid; gap: 4px; padding: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 14%, transparent);
}
.menu-list a { display: block; padding: 10px 12px; border-radius: 8px; }
.menu-list a:hover { background: var(--surface); }
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* Footer: full stacked logo, company info, legal links, copyright */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px 28px; color: var(--muted); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-logo { display: inline-block; padding: 8px 12px; margin-bottom: 16px; }
.footer-logo img { width: 128px; height: auto; }
.site-footer h2 { color: var(--ink); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--accent); text-underline-offset: 3px; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

/* Legal pages (messaging terms, privacy policy): <main class="prose"> */
.prose { max-width: 900px; margin-inline: auto; padding: 56px var(--gutter) 80px; }
.prose h1 { margin-bottom: 12px; }
.prose .updated { color: var(--muted); font-size: 0.875rem; margin-bottom: 40px; }
.prose h2 { font-size: var(--step-heading); margin: 48px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: var(--step-subheading); margin: 28px 0 10px; }
.prose p, .prose li { margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose a { text-underline-offset: 3px; }
.callout { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 8px; padding: 20px 24px; margin: 24px 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 28px; margin: 24px 0 40px; }
.toc h4 { color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.channel-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin: 24px 0; }
.channel-block h3 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.channel-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 500;
  border: 1px solid var(--accent); color: var(--accent);
}
@media (max-width: 600px) { .channel-block { padding: 20px; } }
