/* HashNet — Editorial 2026
   Two themes, one vocabulary:
     [data-theme="editorial"]      — warm paper, moss ink (default)
     [data-theme="editorial-dark"] — espresso paper, moss leaf
   Both share Fraunces italic + Inter Tight + JetBrains Mono and the same
   --e-* component tokens. Token swap at the root flips every existing
   styles.css rule that reads var(--bg|text|accent) to the editorial palette
   without per-element patching. */

/* ─── Cannabis leaf mark (data URI mask) ──────────────────────────────── */

:root {
  --leaf-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 30c-.6 0-1-.4-1-1v-3.5c-1.4.5-3 .3-4.3-.5-.4-.3-.5-.8-.2-1.2l1.4-2-3.4-.7c-.5-.1-.8-.6-.6-1.1.5-1.6 1.7-2.9 3.2-3.6-2-.4-3.7-1.5-5-3.1-.3-.4-.2-.9.2-1.2l1.6-1L4 9.6c-.4-.3-.5-.9-.2-1.3 1.5-1.9 3.7-3 6.1-3.1L9 3.7c-.2-.4 0-.9.4-1.1.4-.2.9 0 1.1.4l1.3 2.4-.6-2.9c-.1-.5.2-.9.7-1 .5-.1.9.2 1 .7l1.4 4.4 1.4-4.4c.1-.5.5-.8 1-.7.5.1.8.5.7 1l-.6 2.9 1.3-2.4c.2-.4.7-.6 1.1-.4.4.2.6.7.4 1.1l-.9 1.5c2.4.1 4.6 1.2 6.1 3.1.3.4.2 1-.2 1.3l-3.9 2.5 1.6 1c.4.3.5.8.2 1.2-1.3 1.6-3 2.7-5 3.1 1.5.7 2.7 2 3.2 3.6.2.5-.1 1-.6 1.1l-3.4.7 1.4 2c.3.4.2.9-.2 1.2-1.3.8-2.9 1-4.3.5V29c0 .6-.4 1-1 1z' fill='black'/%3E%3C/svg%3E");
}

/* ─── Root token overrides ────────────────────────────────────────────── */
:root {
  /* Editorial palette tokens (stable, used by e-* components) */
  --e-paper: oklch(97.8% 0.006 92);
  --e-paper-2: oklch(95.8% 0.008 92);
  --e-paper-3: oklch(93.5% 0.01 92);
  --e-paper-4: oklch(91% 0.012 92);
  --e-ink: oklch(16% 0.014 60);
  --e-ink-2: oklch(28% 0.012 60);
  --e-ink-3: oklch(46% 0.012 60);
  --e-ink-4: oklch(62% 0.012 60);
  --e-ink-5: oklch(78% 0.01 60);
  --e-rule: oklch(88% 0.008 90);
  --e-rule-2: oklch(82% 0.01 90);
  --e-rule-strong: oklch(70% 0.012 90);
  --e-moss: oklch(56% 0.13 150);
  --e-moss-2: oklch(48% 0.12 150);
  --e-moss-soft: oklch(91% 0.045 150);
  --e-moss-ink: oklch(34% 0.11 150);
  --e-plum: oklch(52% 0.15 345);
  --e-rust: oklch(58% 0.15 30);
  --e-ochre: oklch(68% 0.14 75);
  --e-steel: oklch(52% 0.06 240);
  --e-red: oklch(55% 0.2 25);
  --e-shadow-1: 0 1px 2px oklch(15% 0.02 60 / .05), 0 1px 1px oklch(15% 0.02 60 / .04);
  --e-shadow-2: 0 4px 14px oklch(15% 0.02 60 / .07), 0 1px 2px oklch(15% 0.02 60 / .05);
  --e-shadow-3: 0 32px 64px -16px oklch(15% 0.02 60 / .18), 0 4px 10px oklch(15% 0.02 60 / .06);
  --e-shadow-lift: 0 28px 60px -20px oklch(15% 0.02 60 / .24), 0 2px 6px oklch(15% 0.02 60 / .06);
  --e-shadow-glow: 0 0 0 4px color-mix(in oklch, var(--e-moss) 22%, transparent);
  --e-r-xs: 4px; --e-r-sm: 8px; --e-r: 12px; --e-r-lg: 18px; --e-r-xl: 26px; --e-r-full: 999px;
  --e-font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --e-font-sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --e-font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --e-ease-out: cubic-bezier(.22,.8,.32,1);
  --e-ease-spring: cubic-bezier(.34,1.3,.64,1);
  --e-dur-1: 160ms; --e-dur-2: 280ms; --e-dur-3: 460ms;
}

/* Nuclear swap: when editorial is active, redefine EVERY base token so the
   existing styles.css cascades flip in one move. */
[data-theme="editorial"] {
  --bg:         var(--e-paper);
  --bg-card:    oklch(100% 0 0);
  --bg-list:    var(--e-paper-2);
  --bg-hover:   var(--e-paper-3);
  --bg-input:   oklch(100% 0 0);
  --bg-glass:   color-mix(in oklch, var(--e-paper) 82%, transparent);
  --border:     var(--e-rule);
  --border-light: var(--e-rule-2);
  --border-glow: color-mix(in oklch, var(--e-moss) 18%, transparent);
  --text:       var(--e-ink);
  --text-dim:   var(--e-ink-3);
  --text-faint: var(--e-ink-4);
  --accent:       var(--e-moss);
  --accent-hover: var(--e-moss-2);
  --accent-glow:  color-mix(in oklch, var(--e-moss) 22%, transparent);
  --green:    var(--e-moss);
  --green-dim:color-mix(in oklch, var(--e-moss) 14%, transparent);
  --yellow:   var(--e-ochre);
  --red:      var(--e-red);
  --orange:   var(--e-rust);
  --purple:   var(--e-plum);
  --cyan:     oklch(55% 0.08 200);
  --blue:     var(--e-steel);
  --radius:    var(--e-r-sm);
  --radius-lg: var(--e-r-lg);
  --radius-xl: var(--e-r-xl);
  --shadow:      var(--e-shadow-1);
  --shadow-lg:   var(--e-shadow-3);
  --shadow-glow: var(--e-shadow-glow);
  --shadow-card: var(--e-shadow-1);
  --font: var(--e-font-sans);
  --mono: var(--e-font-mono);
  color-scheme: light;
}

html[data-theme="editorial"], html[data-theme="editorial"] body {
  background: var(--e-paper);
  color: var(--e-ink);
  font-family: var(--e-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  font-feature-settings: "ss01", "cv11";
  font-size: 15px;
}

/* ─── Editorial Dark — espresso paper, moss leaf ───────────────────────── */
[data-theme="editorial-dark"] {
  --e-paper: oklch(15% 0.018 60);
  --e-paper-2: oklch(18% 0.022 60);
  --e-paper-3: oklch(22% 0.026 60);
  --e-paper-4: oklch(26% 0.028 60);
  --e-ink: oklch(95% 0.008 92);
  --e-ink-2: oklch(86% 0.01 90);
  --e-ink-3: oklch(70% 0.012 90);
  --e-ink-4: oklch(54% 0.014 90);
  --e-ink-5: oklch(38% 0.014 90);
  --e-rule: oklch(28% 0.018 60);
  --e-rule-2: oklch(34% 0.02 60);
  --e-rule-strong: oklch(46% 0.022 60);
  --e-moss: oklch(72% 0.16 150);
  --e-moss-2: oklch(78% 0.14 150);
  --e-moss-soft: oklch(28% 0.08 150);
  --e-moss-ink: oklch(85% 0.13 150);
  --e-plum: oklch(68% 0.16 345);
  --e-rust: oklch(72% 0.16 30);
  --e-ochre: oklch(80% 0.14 75);
  --e-steel: oklch(68% 0.08 240);
  --e-red: oklch(70% 0.2 25);
  --e-shadow-1: 0 1px 2px rgba(0,0,0,.45);
  --e-shadow-2: 0 4px 14px rgba(0,0,0,.5);
  --e-shadow-3: 0 32px 64px -16px rgba(0,0,0,.6);
  --e-shadow-lift: 0 28px 60px -20px rgba(0,0,0,.7);
  --e-shadow-glow: 0 0 0 4px color-mix(in oklch, var(--e-moss) 30%, transparent);
  /* Map to existing styles.css tokens */
  --bg:         var(--e-paper);
  --bg-card:    var(--e-paper-2);
  --bg-list:    var(--e-paper-2);
  --bg-hover:   var(--e-paper-3);
  --bg-input:   oklch(13% 0.02 60);
  --bg-glass:   color-mix(in oklch, var(--e-paper) 80%, transparent);
  --border:     var(--e-rule);
  --border-light: var(--e-rule-2);
  --border-glow: color-mix(in oklch, var(--e-moss) 24%, transparent);
  --text:       var(--e-ink);
  --text-dim:   var(--e-ink-3);
  --text-faint: var(--e-ink-4);
  --accent:       var(--e-moss);
  --accent-hover: var(--e-moss-2);
  --accent-glow:  color-mix(in oklch, var(--e-moss) 28%, transparent);
  --green:    var(--e-moss);
  --green-dim:color-mix(in oklch, var(--e-moss) 20%, transparent);
  --yellow:   var(--e-ochre);
  --red:      var(--e-red);
  --orange:   var(--e-rust);
  --purple:   var(--e-plum);
  --cyan:     oklch(70% 0.1 200);
  --blue:     var(--e-steel);
  --radius:    var(--e-r-sm);
  --radius-lg: var(--e-r-lg);
  --radius-xl: var(--e-r-xl);
  --shadow:      var(--e-shadow-1);
  --shadow-lg:   var(--e-shadow-3);
  --shadow-glow: var(--e-shadow-glow);
  --shadow-card: var(--e-shadow-1);
  --font: var(--e-font-sans);
  --mono: var(--e-font-mono);
  color-scheme: dark;
}
html[data-theme="editorial-dark"], html[data-theme="editorial-dark"] body {
  background: var(--e-paper);
  color: var(--e-ink);
}

/* ─── Kill every dark-theme gradient / glow still hardcoded in styles.css ─── */
[data-theme="editorial"] #screen-auth {
  background: var(--e-paper) !important;
}
[data-theme="editorial"] #screen-auth::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 85% 15%, color-mix(in oklch, var(--e-moss) 22%, transparent) 0%, transparent 45%),
    radial-gradient(ellipse at 10% 90%, color-mix(in oklch, var(--e-plum) 14%, transparent) 0%, transparent 48%),
    radial-gradient(circle at 50% 40%, color-mix(in oklch, var(--e-ochre) 10%, transparent) 0%, transparent 55%);
}
[data-theme="editorial"] #screen-auth > * { position: relative; z-index: 1; }

[data-theme="editorial"] .sidebar {
  background: oklch(100% 0 0) !important;
  border-right-color: var(--e-rule) !important;
}
[data-theme="editorial"] .page-header {
  background: color-mix(in oklch, var(--e-paper) 88%, transparent) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--e-rule) !important;
}
[data-theme="editorial"] .page-body {
  background: var(--e-paper) !important;
}

/* Hero gradient buttons → solid ink pills */
[data-theme="editorial"] .btn {
  border-radius: var(--e-r-full) !important;
  box-shadow: none !important;
  font-weight: 500;
  letter-spacing: -0.01em;
}
[data-theme="editorial"] .btn-primary {
  background: var(--e-ink) !important;
  color: var(--e-paper) !important;
  box-shadow: none !important;
}
[data-theme="editorial"] .btn-primary:hover {
  background: var(--e-ink-2) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}
[data-theme="editorial"] .btn-ghost {
  border-color: var(--e-rule-2) !important;
  color: var(--e-ink-2) !important;
}
[data-theme="editorial"] .btn-ghost:hover {
  background: var(--e-paper-3) !important;
  border-color: var(--e-rule-strong) !important;
  color: var(--e-ink) !important;
}

/* Auth brand icon (the big gold/green circle) → ink tile + paper leaf */
[data-theme="editorial"] .brand-icon,
[data-theme="editorial-dark"] .brand-icon {
  background: var(--e-ink) !important;
  box-shadow: 0 8px 24px -8px color-mix(in oklch, var(--e-ink) 32%, transparent) !important;
  color: transparent !important;
  font-size: 0 !important;
  position: relative;
  border-radius: 16px !important;
}
[data-theme="editorial"] .brand-icon::before,
[data-theme="editorial-dark"] .brand-icon::before {
  content: "";
  position: absolute;
  inset: 14%;
  background: var(--e-paper);
  -webkit-mask: var(--leaf-mask) center/contain no-repeat;
          mask: var(--leaf-mask) center/contain no-repeat;
}
[data-theme="editorial"] .auth-brand h1,
[data-theme="editorial-dark"] .auth-brand h1 {
  font-family: var(--e-font-display) !important;
  font-weight: 500 !important;
  font-style: italic;
  background: none !important;
  -webkit-text-fill-color: var(--e-ink) !important;
  color: var(--e-ink) !important;
  letter-spacing: -0.02em;
}

/* Sidebar HN gold logo → ink tile + paper cannabis leaf */
[data-theme="editorial"] .brand-icon-sm,
[data-theme="editorial-dark"] .brand-icon-sm,
[data-theme="editorial"] .hn-mark,
[data-theme="editorial-dark"] .hn-mark {
  background: var(--e-ink) !important;
  color: transparent !important;
  font-size: 0 !important;
  border-radius: 9px !important;
  width: 34px !important;
  height: 34px !important;
  box-shadow: none !important;
  position: relative !important;
  overflow: hidden;
}
[data-theme="editorial"] .brand-icon-sm svg,
[data-theme="editorial-dark"] .brand-icon-sm svg,
[data-theme="editorial"] .hn-mark svg,
[data-theme="editorial-dark"] .hn-mark svg {
  display: none !important;
}
[data-theme="editorial"] .brand-icon-sm::before,
[data-theme="editorial-dark"] .brand-icon-sm::before,
[data-theme="editorial"] .hn-mark::before,
[data-theme="editorial-dark"] .hn-mark::before {
  content: "";
  position: absolute;
  inset: 14%;
  background: var(--e-paper);
  -webkit-mask: var(--leaf-mask) center/contain no-repeat;
          mask: var(--leaf-mask) center/contain no-repeat;
}
[data-theme="editorial"] .hn-wordmark,
[data-theme="editorial-dark"] .hn-wordmark {
  font-family: var(--e-font-sans) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  color: var(--e-ink) !important;
  background: none !important;
  -webkit-text-fill-color: var(--e-ink) !important;
}

/* Editorial e-brand-mark in landing nav and POS topbar — same leaf */
.e-brand-mark {
  background: var(--e-ink) !important;
  color: transparent !important;
  font-size: 0 !important;
  position: relative;
  overflow: hidden;
}
.e-brand-mark::before {
  content: "";
  position: absolute;
  inset: 14%;
  background: var(--e-paper);
  -webkit-mask: var(--leaf-mask) center/contain no-repeat;
          mask: var(--leaf-mask) center/contain no-repeat;
}

/* Page title — serif italic flourish in the app */
[data-theme="editorial"] #page-title {
  font-family: var(--e-font-sans);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.025em;
  color: var(--e-ink);
}
[data-theme="editorial"] #page-title em,
[data-theme="editorial"] h1 em,
[data-theme="editorial"] h2 em,
[data-theme="editorial"] h3 em {
  font-family: var(--e-font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--e-moss);
}

/* Use-type toggle — JS controls display:none/inline-flex; we only restyle.
   IMPORTANT: never override the display property here, the parent JS
   (updateUseTypeToggleVisibility in app.js) decides per-route. */
[data-theme="editorial"] .use-type-toggle,
[data-theme="editorial-dark"] .use-type-toggle {
  background: var(--e-paper-2) !important;
  border: 1px solid var(--e-rule) !important;
  border-radius: var(--e-r-full) !important;
  padding: 3px !important;
}
[data-theme="editorial"] .use-type-toggle::before { display: none !important; }
[data-theme="editorial"] .use-type-toggle.filter-medical,
[data-theme="editorial"] .use-type-toggle.filter-adult_use,
[data-theme="editorial"] .use-type-toggle.filter-all {
  border-color: var(--e-rule) !important;
}
[data-theme="editorial"] .use-toggle-btn {
  background: none !important;
  color: var(--e-ink-3) !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 7px 14px !important;
  border-radius: var(--e-r-full) !important;
}
[data-theme="editorial"] .use-toggle-btn:hover:not(:disabled) {
  background: var(--e-paper-3) !important;
  color: var(--e-ink) !important;
}
[data-theme="editorial"] .use-toggle-btn.active,
[data-theme="editorial"] .use-toggle-btn.active[data-use-type="all"],
[data-theme="editorial"] .use-toggle-btn.active[data-use-type="medical"],
[data-theme="editorial"] .use-toggle-btn.active[data-use-type="adult_use"] {
  background: oklch(100% 0 0) !important;
  color: var(--e-ink) !important;
  box-shadow: var(--e-shadow-1) !important;
  font-weight: 600 !important;
}
[data-theme="editorial"] .use-toggle-btn[data-use-type="medical"]::before {
  background: var(--e-plum) !important;
}
[data-theme="editorial"] .use-toggle-btn[data-use-type="adult_use"]::before {
  background: var(--e-moss) !important;
}
[data-theme="editorial"] .use-toggle-btn.active[data-use-type="medical"]::before {
  background: var(--e-plum) !important;
}
[data-theme="editorial"] .use-toggle-btn.active[data-use-type="adult_use"]::before {
  background: var(--e-moss) !important;
}

/* Sidebar nav buttons → pill with left rule for active */
[data-theme="editorial"] .nav-btn {
  border-radius: var(--e-r-sm);
  font-weight: 450;
  color: var(--e-ink-2);
}
[data-theme="editorial"] .nav-btn:hover {
  background: var(--e-paper-3);
  color: var(--e-ink);
}
[data-theme="editorial"] .nav-btn.active {
  background: var(--e-paper-3);
  color: var(--e-ink);
  font-weight: 600;
  position: relative;
}
[data-theme="editorial"] .nav-btn.active::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--e-moss);
  border-radius: 2px;
}
[data-theme="editorial"] .nav-section-label {
  font-family: var(--e-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--e-ink-4);
  font-weight: 500;
}

/* Cards, modals, tables */
[data-theme="editorial"] .card,
[data-theme="editorial"] .stat-card,
[data-theme="editorial"] .panel,
[data-theme="editorial"] .modal-sheet,
[data-theme="editorial"] .toast {
  background: oklch(100% 0 0);
  border: 1px solid var(--e-rule);
  border-radius: var(--e-r-lg);
  box-shadow: var(--e-shadow-1);
  color: var(--e-ink);
}
[data-theme="editorial"] .modal-backdrop {
  background: oklch(15% 0.02 60 / 0.36) !important;
  backdrop-filter: blur(6px);
}
[data-theme="editorial"] table th {
  background: var(--e-paper-2);
  font-family: var(--e-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--e-ink-4);
  border-bottom: 1px solid var(--e-rule);
}
[data-theme="editorial"] table td { color: var(--e-ink-2); }
[data-theme="editorial"] table tbody tr:hover { background: var(--e-paper-3); }

/* Badges */
[data-theme="editorial"] .badge,
[data-theme="editorial"] .pill {
  font-family: var(--e-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--e-r-full);
}
[data-theme="editorial"] .badge-green { background: var(--e-moss-soft); color: var(--e-moss-ink); border-color: color-mix(in oklch, var(--e-moss) 22%, transparent); }
[data-theme="editorial"] .badge-blue  { background: color-mix(in oklch, var(--e-steel) 14%, transparent); color: oklch(40% 0.1 240); border-color: transparent; }
[data-theme="editorial"] .badge-purple{ background: color-mix(in oklch, var(--e-plum) 14%, transparent); color: oklch(40% 0.14 345); border-color: transparent; }
[data-theme="editorial"] .badge-yellow{ background: color-mix(in oklch, var(--e-ochre) 20%, transparent); color: oklch(38% 0.12 70); border-color: transparent; }
[data-theme="editorial"] .badge-orange{ background: color-mix(in oklch, var(--e-rust) 16%, transparent); color: oklch(40% 0.13 30); border-color: transparent; }
[data-theme="editorial"] .badge-red   { background: color-mix(in oklch, var(--e-red) 12%, transparent); color: oklch(40% 0.17 25); border-color: transparent; }
[data-theme="editorial"] .badge-cyan  { background: color-mix(in oklch, var(--e-moss) 10%, transparent); color: oklch(36% 0.1 180); border-color: transparent; }

/* App footer + sidebar footer */
[data-theme="editorial"] .app-footer,
[data-theme="editorial"] .sidebar-footer {
  background: var(--e-paper-2);
  border-top: 1px solid var(--e-rule);
  color: var(--e-ink-3);
}
[data-theme="editorial"] .footer-brand {
  font-family: var(--e-font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--e-ink);
  background: none !important;
  -webkit-text-fill-color: var(--e-ink) !important;
}

/* Form focus ring uses editorial green */
[data-theme="editorial"] input:focus,
[data-theme="editorial"] select:focus,
[data-theme="editorial"] textarea:focus {
  border-color: var(--e-moss) !important;
  box-shadow: var(--e-shadow-glow) !important;
}

/* Skip link */
[data-theme="editorial"] .skip-link {
  background: var(--e-ink);
  color: var(--e-paper);
  border-radius: var(--e-r-sm);
  font-family: var(--e-font-mono);
}

/* Grain overlay for subtle paper texture (only when #screen-auth is active) */
[data-theme="editorial"] #screen-auth.active::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(oklch(15% 0.02 60 / 0.015) 1px, transparent 1px),
    radial-gradient(oklch(15% 0.02 60 / 0.01) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

/* ═════════════════════════════════════════════════════════════════════
   EDITORIAL LANDING COMPONENTS  (e-*)
   Lives inside #screen-auth.active — cascades from data-theme="editorial".
   ═════════════════════════════════════════════════════════════════════ */

[data-theme="editorial"] .lp-header, [data-theme="editorial"] .e-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 44px;
  background: color-mix(in oklch, var(--e-paper) 85%, transparent);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--e-rule);
}
.e-brand { display: flex; align-items: center; gap: 11px; font-family: var(--e-font-sans); font-size: 19px; letter-spacing: -0.03em; font-weight: 700; color: var(--e-ink); }
.e-brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--e-ink); color: var(--e-paper); display: grid; place-items: center; font-family: var(--e-font-mono); font-size: 14px; font-weight: 700; letter-spacing: -0.03em; }
.e-nav-links { display: flex; gap: 2px; }
.e-nav-links a { padding: 8px 14px; border-radius: var(--e-r-full); font-size: 14px; color: var(--e-ink-3); font-weight: 500; transition: all var(--e-dur-1) var(--e-ease-out); text-decoration: none; }
.e-nav-links a:hover { color: var(--e-ink); background: var(--e-paper-3); }
.e-nav-actions { display: flex; gap: 8px; align-items: center; }

.e-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--e-r-full); font-size: 14px; font-weight: 500; white-space: nowrap; transition: all var(--e-dur-1) var(--e-ease-out); border: 1px solid transparent; font-family: var(--e-font-sans); cursor: pointer; color: var(--e-ink); text-decoration: none; line-height: 1; }
.e-btn:focus-visible { outline: none; box-shadow: var(--e-shadow-glow); }
.e-btn-primary { background: var(--e-ink); color: var(--e-paper); }
.e-btn-primary:hover { background: var(--e-ink-2); transform: translateY(-1px); }
.e-btn-ghost { background: transparent; color: var(--e-ink-2); border-color: var(--e-rule-2); }
.e-btn-ghost:hover { background: var(--e-paper-3); color: var(--e-ink); border-color: var(--e-rule-strong); }
.e-btn-lg { padding: 15px 26px; font-size: 15px; }
.e-btn-sm { padding: 6px 12px; font-size: 13px; }
.e-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.e-icon-btn { width: 36px; height: 36px; border-radius: var(--e-r-sm); display: grid; place-items: center; color: var(--e-ink-3); background: transparent; border: 0; cursor: pointer; }
.e-icon-btn:hover { background: var(--e-paper-3); color: var(--e-ink); }

/* ─── Hero 3D stage ──────────────────────────────────────────────── */
.e-landing { min-height: 100vh; position: relative; }
.e-hero { padding: 80px 44px 110px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; min-height: calc(100vh - 73px); }
.e-hero-glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; background:
  radial-gradient(circle at 78% 38%, color-mix(in oklch, var(--e-moss) 22%, transparent) 0%, transparent 42%),
  radial-gradient(circle at 22% 72%, color-mix(in oklch, var(--e-plum) 15%, transparent) 0%, transparent 48%),
  radial-gradient(circle at 50% 8%, color-mix(in oklch, var(--e-ochre) 10%, transparent) 0%, transparent 60%); }
.e-hero-l { position: relative; z-index: 5; max-width: 640px; }
.e-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: var(--e-r-full); background: oklch(100% 0 0); color: var(--e-moss-ink); font-family: var(--e-font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; margin-bottom: 28px; border: 1px solid var(--e-rule); box-shadow: var(--e-shadow-1); }
.e-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--e-moss); box-shadow: 0 0 0 0 var(--e-moss); animation: e-pulse 2.2s var(--e-ease-out) infinite; }
@keyframes e-pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--e-moss) 60%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }

.e-hero h1 { font-family: var(--e-font-sans); font-size: clamp(52px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 800; color: var(--e-ink); margin-bottom: 28px; }
.e-hero h1 em, .e-italic { font-family: var(--e-font-display) !important; font-style: italic !important; color: var(--e-moss) !important; font-weight: 400 !important; display: inline-block; letter-spacing: -0.01em; }
.e-hero p { font-size: 19px; line-height: 1.5; color: var(--e-ink-3); max-width: 52ch; margin-bottom: 36px; }
.e-hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.e-hero-meta { margin-top: 56px; display: grid; grid-template-columns: repeat(3, auto); gap: 36px; padding-top: 28px; border-top: 1px solid var(--e-rule); }
.e-hero-meta-item .v { font-family: var(--e-font-sans); font-size: 28px; line-height: 1; color: var(--e-ink); letter-spacing: -0.025em; font-weight: 700; font-variant-numeric: tabular-nums; }
.e-hero-meta-item .v small { font-size: 20px; color: var(--e-ink-3); font-family: var(--e-font-display); font-style: italic; font-weight: 400; }
.e-hero-meta-item .k { font-family: var(--e-font-mono); font-size: 11px; color: var(--e-ink-4); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }

/* 3D stage */
.e-hero-r { position: relative; height: 680px; perspective: 2000px; perspective-origin: 50% 45%; }
.e-hero-stage { position: absolute; inset: 0; transform-style: preserve-3d; animation: e-drift 30s linear infinite; }
@keyframes e-drift { 0% { transform: rotateX(10deg) rotateY(-18deg); } 50% { transform: rotateX(14deg) rotateY(-8deg); } 100% { transform: rotateX(10deg) rotateY(-18deg); } }
.e-hero-card { position: absolute; background: oklch(100% 0 0); border: 1px solid var(--e-rule); border-radius: var(--e-r-lg); box-shadow: var(--e-shadow-lift); transform-style: preserve-3d; overflow: hidden; }
.e-hero-card-1 { width: 400px; height: 280px; top: 18px; left: 70px; transform: translateZ(120px) rotateY(-8deg); animation: e-float-1 9s ease-in-out infinite; padding: 22px; }
.e-hero-card-2 { width: 340px; height: 200px; top: 300px; left: -30px; transform: translateZ(40px) rotateY(8deg); animation: e-float-2 11s ease-in-out infinite; padding: 18px; }
.e-hero-card-3 { width: 320px; height: 220px; top: 400px; right: 10px; transform: translateZ(180px) rotateY(-14deg); animation: e-float-3 13s ease-in-out infinite; padding: 20px; }
.e-hero-card-4 { width: 270px; height: 140px; top: 50px; right: -10px; transform: translateZ(220px) rotateY(-20deg); animation: e-float-4 8s ease-in-out infinite; padding: 18px; }
@keyframes e-float-1 { 0%,100% { transform: translateZ(120px) rotateY(-8deg) translateY(0); } 50% { transform: translateZ(145px) rotateY(-8deg) translateY(-14px); } }
@keyframes e-float-2 { 0%,100% { transform: translateZ(40px) rotateY(8deg) translateY(0); } 50% { transform: translateZ(65px) rotateY(8deg) translateY(12px); } }
@keyframes e-float-3 { 0%,100% { transform: translateZ(180px) rotateY(-14deg) translateY(0); } 50% { transform: translateZ(205px) rotateY(-14deg) translateY(-10px); } }
@keyframes e-float-4 { 0%,100% { transform: translateZ(220px) rotateY(-20deg) translateY(0); } 50% { transform: translateZ(245px) rotateY(-20deg) translateY(8px); } }
.hc-eye { font-family: var(--e-font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--e-ink-4); text-transform: uppercase; }
.hc-big { font-family: var(--e-font-sans); font-size: 34px; letter-spacing: -0.03em; color: var(--e-ink); line-height: 1; margin-top: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hc-big em { color: var(--e-moss); font-family: var(--e-font-display); font-style: italic; font-weight: 400; }
.hc-big small { font-size: 20px; color: var(--e-ink-3); font-family: var(--e-font-display); font-style: italic; font-weight: 400; }
.hc-sub { font-size: 12.5px; color: var(--e-ink-3); margin-top: 4px; font-family: var(--e-font-mono); }
.hc-bars { display: flex; align-items: flex-end; gap: 4px; margin-top: 20px; height: 88px; }
.hc-bar { flex: 1; background: linear-gradient(180deg, var(--e-moss), color-mix(in oklch, var(--e-moss) 30%, transparent)); border-radius: 3px 3px 0 0; animation: e-bar-grow 1.2s var(--e-ease-spring) backwards; }
@keyframes e-bar-grow { from { height: 0; } }
.hc-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--e-rule); font-size: 12.5px; }
.hc-row:last-child { border-bottom: 0; }
.hc-row .k { font-family: var(--e-font-mono); color: var(--e-ink-4); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.hc-row .v { color: var(--e-ink); font-weight: 500; }
.hc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--e-moss-soft); color: var(--e-moss-ink); border-radius: var(--e-r-full); font-size: 11px; font-family: var(--e-font-mono); font-weight: 500; }
.hc-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--e-moss); }
.hc-pill.plum { background: color-mix(in oklch, var(--e-plum) 14%, transparent); color: oklch(38% 0.14 345); }
.hc-pill.plum .dot { background: var(--e-plum); }

.e-hero-orbit { position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; transform: translate(-50%, -50%); border: 1px solid var(--e-rule); border-radius: 50%; opacity: 0.55; pointer-events: none; }
.e-hero-orbit::before, .e-hero-orbit::after { content: ""; position: absolute; inset: 46px; border: 1px dashed var(--e-rule-2); border-radius: 50%; }
.e-hero-orbit::after { inset: 130px; border-style: dotted; }

/* ─── Marquee ─────────────────────────────────────────────────────── */
.e-marquee { border-top: 1px solid var(--e-rule); border-bottom: 1px solid var(--e-rule); padding: 22px 0; overflow: hidden; background: var(--e-paper-2); }
.e-marquee-track { display: flex; gap: 60px; white-space: nowrap; animation: e-marquee 44s linear infinite; font-family: var(--e-font-display); font-style: italic; font-weight: 400; font-size: 22px; color: var(--e-ink-2); letter-spacing: -0.01em; padding-left: 60px; }
.e-marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.e-marquee-track span::after { content: "※"; color: var(--e-moss); font-family: var(--e-font-sans); font-style: normal; font-size: 16px; }
@keyframes e-marquee { to { transform: translateX(-50%); } }

/* ─── Features ────────────────────────────────────────────────────── */
.e-features { padding: 110px 44px; background: var(--e-paper); }
.e-features-head { max-width: 860px; margin-bottom: 60px; }
.e-features-head h2 { font-family: var(--e-font-sans); font-size: clamp(38px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.035em; font-weight: 800; color: var(--e-ink); }
.e-features-head h2 em { font-family: var(--e-font-display); font-style: italic; color: var(--e-moss); font-weight: 400; }
.e-features-head p { font-size: 18px; color: var(--e-ink-3); margin-top: 22px; max-width: 56ch; line-height: 1.5; }
.e-feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.e-feature { grid-column: span 4; background: oklch(100% 0 0); border: 1px solid var(--e-rule); border-radius: var(--e-r-lg); padding: 28px; transition: all var(--e-dur-2) var(--e-ease-out); position: relative; overflow: hidden; min-height: 280px; display: flex; flex-direction: column; }
.e-feature:hover { transform: translateY(-3px); box-shadow: var(--e-shadow-2); border-color: var(--e-rule-2); }
.e-feature.wide { grid-column: span 8; }
.e-feature.tall { grid-row: span 2; min-height: 588px; }
.e-feature-num { font-family: var(--e-font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; color: var(--e-moss); }
.e-feature h3 { font-family: var(--e-font-sans); font-size: 24px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; color: var(--e-ink); margin-bottom: 10px; }
.e-feature h3 em { font-family: var(--e-font-display); font-style: italic; color: var(--e-moss); font-weight: 400; }
.e-feature p { color: var(--e-ink-3); font-size: 14.5px; line-height: 1.55; }
.e-feature-visual { margin-top: auto; padding-top: 24px; }
.e-pipe-step { padding: 14px 10px; border-radius: 10px; background: var(--e-paper-2); border: 1px solid var(--e-rule); }
.e-pipe-step.on { background: var(--e-moss-soft); }
.e-pipe-step.now { background: var(--e-ink); border-color: var(--e-ink); }
.e-pipe-step .n { font-family: var(--e-font-mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--e-ink-4); text-transform: uppercase; }
.e-pipe-step.on .n { color: var(--e-moss-ink); }
.e-pipe-step.now .n { color: color-mix(in oklch, var(--e-paper) 70%, transparent); }
.e-pipe-step .lbl { font-family: var(--e-font-display); font-size: 19px; font-style: italic; color: var(--e-ink); margin-top: 6px; letter-spacing: -0.01em; }
.e-pipe-step.now .lbl { color: var(--e-paper); }

/* ─── Pricing ─────────────────────────────────────────────────────── */
.e-pricing { padding: 110px 44px; background: var(--e-paper-2); border-top: 1px solid var(--e-rule); border-bottom: 1px solid var(--e-rule); }
.e-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1240px; margin: 0 auto; }
.e-tier { background: oklch(100% 0 0); border: 1px solid var(--e-rule); border-radius: var(--e-r-lg); padding: 34px; transition: all var(--e-dur-2) var(--e-ease-out); }
.e-tier.featured { border-color: var(--e-ink); box-shadow: 0 0 0 4px color-mix(in oklch, var(--e-ink) 8%, transparent); position: relative; }
.e-tier.featured::before { content: "Most picked"; position: absolute; top: -11px; left: 34px; background: var(--e-ink); color: var(--e-paper); padding: 3px 10px; font-family: var(--e-font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; border-radius: var(--e-r-full); }
.e-tier h4 { font-family: var(--e-font-sans); font-size: 13px; font-weight: 600; color: var(--e-ink-3); text-transform: uppercase; letter-spacing: 0.14em; }
.e-tier .e-price { font-family: var(--e-font-sans); font-size: 56px; line-height: 1; letter-spacing: -0.04em; color: var(--e-ink); margin: 16px 0 8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.e-tier .e-price small { font-size: 14px; color: var(--e-ink-4); font-family: var(--e-font-mono); font-weight: 400; }
.e-tier .e-price em { font-family: var(--e-font-display); font-style: italic; color: var(--e-moss); font-weight: 400; font-size: 50px; letter-spacing: -0.02em; }
.e-tier p { color: var(--e-ink-3); font-size: 14px; line-height: 1.5; }
.e-tier ul { list-style: none; margin-top: 22px; padding: 22px 0 0; border-top: 1px solid var(--e-rule); }
.e-tier li { padding: 7px 0; font-size: 14px; color: var(--e-ink-2); display: flex; gap: 10px; align-items: flex-start; }
.e-tier li::before { content: "+"; color: var(--e-moss); font-weight: 700; margin-top: 1px; font-family: var(--e-font-mono); }

/* ─── Footer ──────────────────────────────────────────────────────── */
.e-foot { padding: 70px 44px 44px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; background: var(--e-paper); border-top: 1px solid var(--e-rule); color: var(--e-ink-3); }
.e-foot h5 { font-family: var(--e-font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--e-ink-4); text-transform: uppercase; margin-bottom: 18px; font-weight: 500; }
.e-foot a { display: block; padding: 5px 0; color: var(--e-ink-3); font-size: 14px; text-decoration: none; }
.e-foot a:hover { color: var(--e-ink); }
.e-foot .e-brand-block { font-family: var(--e-font-sans); font-weight: 700; font-size: 26px; color: var(--e-ink); letter-spacing: -0.03em; }
.e-foot .e-brand-block span { font-family: var(--e-font-mono); font-style: normal; color: var(--e-moss); }
.e-foot .e-brand-block p { margin-top: 14px; font-family: var(--e-font-display); font-style: italic; font-size: 15.5px; color: var(--e-ink-3); max-width: 36ch; font-weight: 400; line-height: 1.45; letter-spacing: -0.005em; }

/* ═════════════════════════════════════════════════════════════════════
   POS FULLSCREEN DEMO (/pos-demo.html)
   ═════════════════════════════════════════════════════════════════════ */
.e-pos-root { position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; background: var(--e-paper); color: var(--e-ink); overflow: hidden; touch-action: manipulation; user-select: none; font-family: var(--e-font-sans); }
.e-pos-topbar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--e-rule); background: oklch(100% 0 0); flex-shrink: 0; height: 72px; }
.e-pos-topbar .e-brand { flex-shrink: 0; font-size: 18px; }
.e-pos-tag { padding: 4px 10px; border-radius: var(--e-r-full); background: var(--e-moss-soft); color: var(--e-moss-ink); font-family: var(--e-font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; flex-shrink: 0; }
.e-pos-session { display: flex; gap: 18px; align-items: center; padding: 6px 16px; background: var(--e-paper-2); border-radius: var(--e-r-full); font-size: 13px; flex-shrink: 0; border: 1px solid var(--e-rule); }
.e-pos-session .k { font-family: var(--e-font-mono); font-size: 10.5px; color: var(--e-ink-4); letter-spacing: 0.08em; text-transform: uppercase; margin-right: 4px; }
.e-pos-session .v { font-weight: 600; color: var(--e-ink); }
.e-pos-session .sep { width: 1px; height: 14px; background: var(--e-rule-2); }
.e-pos-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--e-paper-2); border: 1px solid var(--e-rule); border-radius: var(--e-r-full); transition: all var(--e-dur-1) var(--e-ease-out); }
.e-pos-search:focus-within { border-color: var(--e-moss); box-shadow: var(--e-shadow-glow); background: oklch(100% 0 0); }
.e-pos-search input { background: transparent; border: 0; outline: 0; font-size: 15px; color: var(--e-ink); flex: 1; font-family: inherit; }
.e-pos-search input::placeholder { color: var(--e-ink-4); }
.e-pos-search svg { width: 18px; height: 18px; stroke: var(--e-ink-4); fill: none; stroke-width: 2; }
.e-pos-search .hotkey { font-family: var(--e-font-mono); font-size: 10.5px; color: var(--e-ink-4); padding: 3px 7px; background: oklch(100% 0 0); border: 1px solid var(--e-rule); border-radius: 5px; }
.e-pos-scanner { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--e-r-full); background: var(--e-ink); color: var(--e-paper); font-size: 13px; font-weight: 500; border: 0; cursor: pointer; font-family: inherit; }
.e-pos-scanner .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--e-moss); animation: e-pulse-ring 1.6s ease-in-out infinite; }
@keyframes e-pulse-ring { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(0.7); } }
.e-pos-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 440px; }
.e-pos-catalog { display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--e-rule); }
.e-pos-rails { display: flex; gap: 6px; overflow-x: auto; padding: 14px 24px; border-bottom: 1px solid var(--e-rule); flex-shrink: 0; scrollbar-width: none; background: var(--e-paper); }
.e-pos-rails::-webkit-scrollbar { display: none; }
.e-pos-rail { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 18px; border-radius: var(--e-r); border: 1px solid var(--e-rule); background: oklch(100% 0 0); min-width: 96px; flex-shrink: 0; cursor: pointer; transition: all var(--e-dur-1) var(--e-ease-out); font-family: inherit; }
.e-pos-rail:hover { border-color: var(--e-rule-strong); }
.e-pos-rail.active { background: var(--e-ink); border-color: var(--e-ink); }
.e-pos-rail .c { font-family: var(--e-font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--e-ink-4); }
.e-pos-rail.active .c { color: color-mix(in oklch, var(--e-paper) 70%, transparent); }
.e-pos-rail .lbl { font-size: 15px; font-weight: 600; color: var(--e-ink); font-family: var(--e-font-sans); }
.e-pos-rail.active .lbl { color: var(--e-paper); }
.e-pos-chips { display: flex; gap: 8px; padding: 14px 24px 0; overflow-x: auto; flex-shrink: 0; scrollbar-width: none; background: var(--e-paper); }
.e-pos-chips::-webkit-scrollbar { display: none; }
.e-pos-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: var(--e-r-full); border: 1px solid var(--e-rule); background: oklch(100% 0 0); font-size: 13px; color: var(--e-ink-2); cursor: pointer; flex-shrink: 0; font-family: inherit; }
.e-pos-chip:hover { border-color: var(--e-rule-strong); }
.e-pos-chip.active { background: var(--e-ink); color: var(--e-paper); border-color: var(--e-ink); }
.e-pos-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--e-moss); }
.e-pos-chip[data-type="I"] .dot { background: var(--e-plum); }
.e-pos-chip[data-type="S"] .dot { background: var(--e-ochre); }
.e-pos-chip[data-type="H"] .dot { background: var(--e-steel); }
.e-pos-chip[data-type="CBD"] .dot { background: var(--e-moss); }
.e-pos-products-wrap { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 24px 24px; background: var(--e-paper); }
.e-pos-featured-tag { padding: 8px 12px; background: var(--e-moss-soft); color: var(--e-moss-ink); border-radius: var(--e-r-full); font-family: var(--e-font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; display: inline-block; margin-bottom: 18px; }
.e-pos-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.e-pos-tile { background: oklch(100% 0 0); border: 1px solid var(--e-rule); border-radius: var(--e-r); overflow: hidden; display: flex; flex-direction: column; transition: all var(--e-dur-2) var(--e-ease-out); cursor: pointer; position: relative; min-height: 252px; }
.e-pos-tile:hover { transform: translateY(-2px); border-color: var(--e-rule-strong); box-shadow: var(--e-shadow-2); }
.e-pos-tile-img { aspect-ratio: 1.3 / 1; background: var(--e-paper-2); position: relative; overflow: hidden; display: grid; place-items: center; }
.e-pos-tile-img .placeholder { width: 100%; height: 100%; background-image: repeating-linear-gradient(135deg, var(--e-paper-2) 0 10px, var(--e-paper-3) 10px 20px); display: flex; align-items: center; justify-content: center; font-family: var(--e-font-display); font-style: italic; font-size: 22px; color: var(--e-ink-4); }
.e-pos-tile-dot { position: absolute; top: 10px; left: 10px; width: 10px; height: 10px; border-radius: 50%; }
.e-pos-tile-dot[data-type="I"] { background: var(--e-plum); }
.e-pos-tile-dot[data-type="S"] { background: var(--e-ochre); }
.e-pos-tile-dot[data-type="H"] { background: var(--e-steel); }
.e-pos-tile-dot[data-type="CBD"] { background: var(--e-moss); }
.e-pos-tile-thc { position: absolute; bottom: 10px; left: 10px; padding: 3px 8px; border-radius: var(--e-r-full); background: var(--e-ink); color: var(--e-paper); font-family: var(--e-font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.05em; }
.e-pos-tile-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.e-pos-tile-brand { font-family: var(--e-font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--e-ink-4); text-transform: uppercase; }
.e-pos-tile-name { font-size: 15px; font-weight: 600; color: var(--e-ink); line-height: 1.2; letter-spacing: -0.015em; }
.e-pos-tile-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.e-pos-tile-price { font-family: var(--e-font-sans); font-size: 20px; font-weight: 700; letter-spacing: -0.025em; color: var(--e-ink); font-variant-numeric: tabular-nums; }
.e-pos-tile-stock { font-family: var(--e-font-mono); font-size: 11px; color: var(--e-ink-4); }
.e-pos-tile-stock.low { color: var(--e-rust); }

.e-pos-cart { display: flex; flex-direction: column; background: oklch(100% 0 0); overflow: hidden; min-width: 0; }
.e-pos-cart-head { padding: 20px 22px; border-bottom: 1px solid var(--e-rule); display: flex; align-items: center; justify-content: space-between; }
.e-pos-cart-head h3 { font-family: var(--e-font-sans); font-size: 20px; font-weight: 700; color: var(--e-ink); letter-spacing: -0.025em; }
.e-pos-cart-head .k { font-family: var(--e-font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--e-ink-4); text-transform: uppercase; }
.e-pos-cart-customer { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 14px 22px; background: var(--e-paper-2); border-radius: var(--e-r); border: 1px dashed var(--e-rule-2); font-size: 13px; color: var(--e-ink-3); cursor: pointer; transition: all var(--e-dur-1) var(--e-ease-out); }
.e-pos-cart-customer:hover { border-color: var(--e-moss); color: var(--e-ink); border-style: solid; }
.e-pos-cart-customer .ava { width: 34px; height: 34px; border-radius: 50%; background: var(--e-ink); color: var(--e-paper); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.e-pos-cart-customer .who b { color: var(--e-ink); font-weight: 600; }
.e-pos-cart-customer .who span { color: var(--e-ink-4); font-family: var(--e-font-mono); font-size: 11px; }
.e-pos-cart-customer svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; margin-left: auto; }
.e-pos-cart-lines { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 22px 14px; }
.e-pos-cart-empty { text-align: center; padding: 60px 24px; color: var(--e-ink-4); }
.e-pos-cart-empty h4 { font-family: var(--e-font-sans); font-size: 20px; color: var(--e-ink-3); font-weight: 600; letter-spacing: -0.015em; }
.e-pos-cart-empty .e-italic { font-family: var(--e-font-display); font-style: italic; color: var(--e-ink); font-weight: 400; }
.e-pos-cart-empty p { margin-top: 8px; font-size: 13px; font-family: var(--e-font-mono); }
.e-pos-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 13px 0; align-items: center; border-bottom: 1px solid var(--e-rule); animation: e-line-in var(--e-dur-2) var(--e-ease-spring); }
@keyframes e-line-in { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
.e-pos-line-thumb { width: 44px; height: 44px; border-radius: var(--e-r-sm); background: var(--e-paper-2); display: grid; place-items: center; font-family: var(--e-font-display); font-style: italic; font-size: 16px; color: var(--e-ink-3); }
.e-pos-line-main { min-width: 0; }
.e-pos-line-name { font-size: 14.5px; font-weight: 600; color: var(--e-ink); line-height: 1.2; }
.e-pos-line-meta { font-family: var(--e-font-mono); font-size: 11px; color: var(--e-ink-4); margin-top: 2px; }
.e-pos-line-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.e-pos-line-price { font-family: var(--e-font-sans); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--e-ink); font-variant-numeric: tabular-nums; }
.e-pos-qty { display: inline-flex; align-items: center; background: var(--e-paper-2); border-radius: var(--e-r-full); padding: 2px; }
.e-pos-qty button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--e-ink-3); font-size: 16px; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit; }
.e-pos-qty button:hover { background: oklch(100% 0 0); color: var(--e-ink); }
.e-pos-qty .n { min-width: 28px; text-align: center; font-family: var(--e-font-mono); font-size: 13px; font-weight: 600; color: var(--e-ink); }
.e-pos-compliance { padding: 14px 22px; border-top: 1px solid var(--e-rule); background: var(--e-paper-2); }
.e-pos-compliance-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--e-font-mono); font-size: 11px; color: var(--e-ink-3); letter-spacing: 0.05em; margin-bottom: 8px; text-transform: uppercase; }
.e-pos-compliance-row strong { color: var(--e-ink); font-weight: 600; }
.e-pos-compliance-bar { height: 4px; background: var(--e-rule); border-radius: 2px; overflow: hidden; }
.e-pos-compliance-bar .fill { height: 100%; background: var(--e-moss); border-radius: 2px; transition: width var(--e-dur-3) var(--e-ease-spring); }
.e-pos-compliance-bar .fill.warn { background: var(--e-ochre); }
.e-pos-totals { padding: 16px 22px; border-top: 1px solid var(--e-rule); }
.e-pos-total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: 14px; color: var(--e-ink-3); }
.e-pos-total-row.sum { font-family: var(--e-font-sans); font-size: 40px; font-weight: 800; letter-spacing: -0.035em; color: var(--e-ink); line-height: 1; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--e-rule); font-variant-numeric: tabular-nums; align-items: center; }
.e-pos-total-row.sum span:first-child { font-family: var(--e-font-mono); font-size: 12px; color: var(--e-ink-4); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; }
.e-pos-tender { padding: 16px 22px 20px; border-top: 1px solid var(--e-rule); background: var(--e-paper-2); display: flex; flex-direction: column; gap: 10px; }
.e-pos-tender-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.e-pos-tender-quick button { padding: 14px 0; border-radius: var(--e-r); background: oklch(100% 0 0); border: 1px solid var(--e-rule); color: var(--e-ink-2); font-size: 14px; font-weight: 550; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 66px; cursor: pointer; font-family: inherit; }
.e-pos-tender-quick button:hover { border-color: var(--e-rule-strong); background: var(--e-paper-3); }
.e-pos-tender-quick button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; color: var(--e-ink-3); }
.e-pos-tender-quick button .lbl { font-size: 11px; color: var(--e-ink-4); font-family: var(--e-font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.e-pos-charge { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; border-radius: var(--e-r); background: var(--e-ink); color: var(--e-paper); font-family: var(--e-font-sans); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; min-height: 66px; box-shadow: 0 4px 16px -4px oklch(15% 0.02 60 / .3); border: 0; cursor: pointer; }
.e-pos-charge:hover:not(:disabled) { background: var(--e-ink-2); transform: translateY(-1px); }
.e-pos-charge:disabled { opacity: 0.35; cursor: not-allowed; }
.e-pos-charge .amount { font-family: var(--e-font-sans); font-size: 22px; font-weight: 800; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.e-pos-charge svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.e-pos-charge em { font-family: var(--e-font-display); font-style: italic; font-weight: 400; color: var(--e-moss); }

/* ═════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .e-hero { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px 80px; }
  .e-hero-r { height: 480px; }
  .e-hero-card-1 { width: 320px; left: 40px; }
  .e-hero-card-2 { width: 290px; left: -20px; top: 200px; }
  .e-hero-card-3 { width: 270px; top: 280px; }
  .e-hero-card-4 { width: 230px; }
  .e-pricing-grid { grid-template-columns: 1fr; }
  .e-feature.wide, .e-feature, .e-feature.tall { grid-column: span 12; min-height: 200px; }
  .e-feature.tall { min-height: 320px; grid-row: auto; }
  .e-foot { grid-template-columns: 1fr 1fr; gap: 32px; padding: 50px 24px 32px; }
}
@media (max-width: 900px) {
  .e-pos-main { grid-template-columns: 1fr; }
  .e-pos-cart { position: fixed; bottom: 0; left: 0; right: 0; border-left: 0; border-top: 1px solid var(--e-rule); max-height: 55vh; box-shadow: var(--e-shadow-3); }
  [data-theme="editorial"] .lp-header, [data-theme="editorial"] .e-nav { padding: 14px 20px; }
  .e-nav-links { display: none; }
  .e-hero-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .e-features { padding: 70px 20px; }
  .e-pricing { padding: 70px 20px; }
  .e-foot { padding: 40px 20px 28px; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .e-hero-stage, .e-hero-card-1, .e-hero-card-2, .e-hero-card-3, .e-hero-card-4,
  .e-marquee-track, .e-eyebrow .dot, .e-pos-scanner .pulse, .hc-bar,
  .e-reveal-scrim { animation: none !important; }
}

/* ═════════════════════════════════════════════════════════════════════
   COLD STORAGE / FREEZER BOARD — full editorial overhaul
   Covers .freezer-col, .freezer-col-header, .freezer-col-title,
   .dropoff-card, .pkg-card, drag states.
   Apply to BOTH editorial themes via compound selector.
   ═════════════════════════════════════════════════════════════════════ */
[data-theme="editorial"] .freezer-board,
[data-theme="editorial-dark"] .freezer-board {
  background: transparent;
}
[data-theme="editorial"] .freezer-col,
[data-theme="editorial-dark"] .freezer-col {
  background: var(--e-paper-2) !important;
  border: 1px solid var(--e-rule) !important;
  border-radius: var(--e-r-lg) !important;
  box-shadow: var(--e-shadow-1) !important;
  overflow: hidden;
  min-width: 300px;
  max-width: 360px;
  flex: 0 0 320px;
  transition: border-color var(--e-dur-1) var(--e-ease-out);
}
[data-theme="editorial"] .freezer-col:hover,
[data-theme="editorial-dark"] .freezer-col:hover {
  border-color: var(--e-rule-strong) !important;
}
[data-theme="editorial"] .freezer-col.drag-over,
[data-theme="editorial-dark"] .freezer-col.drag-over {
  border-color: var(--e-moss) !important;
  background: color-mix(in oklch, var(--e-moss) 8%, var(--e-paper-2)) !important;
  box-shadow: 0 0 0 3px var(--e-moss-soft), var(--e-shadow-2) !important;
}
[data-theme="editorial"] .freezer-col-unassigned,
[data-theme="editorial-dark"] .freezer-col-unassigned {
  border-color: var(--e-ochre) !important;
  background: color-mix(in oklch, var(--e-ochre) 6%, var(--e-paper-2)) !important;
}
[data-theme="editorial"] .freezer-col-header,
[data-theme="editorial-dark"] .freezer-col-header {
  padding: 18px 20px 14px !important;
  border-bottom: 1px solid var(--e-rule) !important;
  background: oklch(100% 0 0);
  position: relative;
  overflow: hidden;
}
[data-theme="editorial-dark"] .freezer-col-header {
  background: var(--e-paper-3);
}
/* Kill the hard rainbow gradient stripe — replace with a subtle moss rail */
[data-theme="editorial"] .freezer-col-header::before,
[data-theme="editorial-dark"] .freezer-col-header::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: var(--e-moss) !important;
  opacity: 0.75;
}
[data-theme="editorial"] .freezer-col-unassigned .freezer-col-header::before,
[data-theme="editorial-dark"] .freezer-col-unassigned .freezer-col-header::before {
  background: var(--e-ochre) !important;
}
[data-theme="editorial"] .freezer-col-title,
[data-theme="editorial-dark"] .freezer-col-title {
  color: var(--e-ink) !important;
  font-family: var(--e-font-sans) !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 3px !important;
}
[data-theme="editorial"] .freezer-col-unassigned .freezer-col-title,
[data-theme="editorial-dark"] .freezer-col-unassigned .freezer-col-title {
  color: var(--e-ink) !important;
}
[data-theme="editorial"] .freezer-col-title em,
[data-theme="editorial-dark"] .freezer-col-title em {
  font-family: var(--e-font-display) !important;
  font-style: italic !important;
  color: var(--e-moss) !important;
  font-weight: 400 !important;
}
[data-theme="editorial"] .freezer-col-sub,
[data-theme="editorial-dark"] .freezer-col-sub {
  font-family: var(--e-font-mono) !important;
  font-size: 10.5px !important;
  letter-spacing: 0.08em !important;
  color: var(--e-ink-4) !important;
  text-transform: uppercase;
}
[data-theme="editorial"] .freezer-col-stats,
[data-theme="editorial-dark"] .freezer-col-stats {
  font-family: var(--e-font-mono);
  font-size: 11px;
  color: var(--e-ink-4);
  margin-top: 10px;
  gap: 14px;
}
[data-theme="editorial"] .freezer-col-stats strong,
[data-theme="editorial-dark"] .freezer-col-stats strong {
  color: var(--e-ink);
  font-weight: 600;
}
[data-theme="editorial"] .freezer-col-actions button,
[data-theme="editorial-dark"] .freezer-col-actions button {
  background: transparent !important;
  border: 1px solid var(--e-rule) !important;
  border-radius: var(--e-r-sm) !important;
  color: var(--e-ink-3) !important;
  padding: 4px 8px !important;
  font-family: var(--e-font-mono);
  font-size: 11px;
}
[data-theme="editorial"] .freezer-col-actions button:hover,
[data-theme="editorial-dark"] .freezer-col-actions button:hover {
  background: var(--e-paper-3) !important;
  color: var(--e-ink) !important;
  border-color: var(--e-rule-strong) !important;
}
[data-theme="editorial"] .freezer-col-body,
[data-theme="editorial-dark"] .freezer-col-body {
  padding: 10px !important;
  gap: 8px !important;
  background: var(--e-paper-2);
}
[data-theme="editorial-dark"] .freezer-col-body {
  background: var(--e-paper);
}
[data-theme="editorial"] .freezer-col-empty,
[data-theme="editorial-dark"] .freezer-col-empty {
  font-family: var(--e-font-display);
  font-style: italic;
  color: var(--e-ink-4);
  font-size: 14px;
  padding: 28px 12px;
}

/* Drop-off / package cards inside freezer columns */
[data-theme="editorial"] .dropoff-card,
[data-theme="editorial-dark"] .dropoff-card {
  background: oklch(100% 0 0) !important;
  border: 1px solid var(--e-rule) !important;
  border-radius: var(--e-r) !important;
  box-shadow: none !important;
  transition: all var(--e-dur-1) var(--e-ease-out) !important;
  overflow: hidden !important;
}
[data-theme="editorial-dark"] .dropoff-card {
  background: var(--e-paper-2) !important;
}
[data-theme="editorial"] .dropoff-card:hover,
[data-theme="editorial-dark"] .dropoff-card:hover {
  border-color: var(--e-rule-strong) !important;
  box-shadow: var(--e-shadow-1) !important;
  transform: translateY(-1px);
}
[data-theme="editorial"] .dropoff-card.dragging,
[data-theme="editorial-dark"] .dropoff-card.dragging {
  opacity: 0.5 !important;
  border-color: var(--e-moss) !important;
  box-shadow: 0 0 0 2px var(--e-moss-soft) !important;
}
[data-theme="editorial"] .dropoff-card-header,
[data-theme="editorial-dark"] .dropoff-card-header {
  padding: 11px 12px 8px !important;
  cursor: pointer;
  transition: background var(--e-dur-1) var(--e-ease-out);
}
[data-theme="editorial"] .dropoff-card-header:hover,
[data-theme="editorial-dark"] .dropoff-card-header:hover {
  background: var(--e-paper-3) !important;
}
[data-theme="editorial"] .dropoff-card-label,
[data-theme="editorial-dark"] .dropoff-card-label {
  font-family: var(--e-font-mono) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  color: var(--e-moss-ink) !important;
  text-transform: uppercase;
}
[data-theme="editorial-dark"] .dropoff-card-label {
  color: var(--e-moss) !important;
}
[data-theme="editorial"] .dropoff-card-source,
[data-theme="editorial-dark"] .dropoff-card-source {
  font-family: var(--e-font-sans) !important;
  font-weight: 600 !important;
  color: var(--e-ink) !important;
  font-size: 12.5px !important;
  letter-spacing: -0.01em;
  margin-left: 8px !important;
}
[data-theme="editorial"] .dropoff-card-meta,
[data-theme="editorial-dark"] .dropoff-card-meta {
  font-family: var(--e-font-mono) !important;
  font-size: 10.5px !important;
  color: var(--e-ink-4) !important;
}
[data-theme="editorial"] .dropoff-card-body,
[data-theme="editorial-dark"] .dropoff-card-body {
  padding: 0 10px 10px !important;
}
/* Medical/adult-use accent rails on package cards */
[data-theme="editorial"] .dropoff-card[data-use-type="medical"],
[data-theme="editorial-dark"] .dropoff-card[data-use-type="medical"] {
  border-left: 3px solid var(--e-plum) !important;
}
[data-theme="editorial"] .dropoff-card[data-use-type="adult_use"],
[data-theme="editorial-dark"] .dropoff-card[data-use-type="adult_use"] {
  border-left: 3px solid var(--e-moss) !important;
}
[data-theme="editorial"] .freezer-col[data-use-type="medical"],
[data-theme="editorial-dark"] .freezer-col[data-use-type="medical"] {
  border-top: 3px solid var(--e-plum) !important;
}
[data-theme="editorial"] .freezer-col[data-use-type="adult_use"],
[data-theme="editorial-dark"] .freezer-col[data-use-type="adult_use"] {
  border-top: 3px solid var(--e-moss) !important;
}

/* ═════════════════════════════════════════════════════════════════════
   Extend remaining editorial rules to the dark variant in one stroke.
   Any selector that currently targets ONLY [data-theme="editorial"] also
   applies to editorial-dark automatically because both themes share the
   --e-* tokens. The token values differ; the selectors don't need to.
   ═════════════════════════════════════════════════════════════════════ */

/* Hero login dropdown — pinned to viewport so the 3D card stage and any
   other stacking context downstream cannot occlude it. Click-inside is
   prevented by stopPropagation in app.js (set in initApp). */
[data-theme="editorial"] .lp-login-dropdown,
[data-theme="editorial-dark"] .lp-login-dropdown {
  position: fixed !important;
  top: 78px !important;
  right: 44px !important;
  width: 340px !important;
  background: var(--e-paper) !important;
  border: 1px solid var(--e-rule) !important;
  border-radius: var(--e-r-lg) !important;
  padding: 24px !important;
  box-shadow: var(--e-shadow-3) !important;
  z-index: 9999 !important;
  animation: e-dropdown-in 220ms cubic-bezier(.22,.8,.32,1);
}
[data-theme="editorial-dark"] .lp-login-dropdown {
  background: var(--e-paper-2) !important;
}
@keyframes e-dropdown-in {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: none; }
}
[data-theme="editorial"] .lp-login-dropdown .form-group,
[data-theme="editorial-dark"] .lp-login-dropdown .form-group { margin-bottom: 14px; }
[data-theme="editorial"] .lp-login-dropdown label,
[data-theme="editorial-dark"] .lp-login-dropdown label {
  font-family: var(--e-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--e-ink-4);
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}
[data-theme="editorial"] .lp-login-dropdown input,
[data-theme="editorial-dark"] .lp-login-dropdown input {
  background: oklch(100% 0 0) !important;
  border: 1px solid var(--e-rule) !important;
  color: var(--e-ink) !important;
  border-radius: var(--e-r-sm) !important;
  padding: 10px 14px !important;
  width: 100%;
  font-family: var(--e-font-sans);
  font-size: 14px;
}
[data-theme="editorial-dark"] .lp-login-dropdown input {
  background: var(--e-paper) !important;
}
[data-theme="editorial"] .lp-login-dropdown input:focus,
[data-theme="editorial-dark"] .lp-login-dropdown input:focus {
  border-color: var(--e-moss) !important;
  outline: none;
  box-shadow: var(--e-shadow-glow) !important;
}
[data-theme="editorial"] .lp-login-dropdown .btn-primary,
[data-theme="editorial-dark"] .lp-login-dropdown .btn-primary {
  background: var(--e-ink) !important;
  background-image: none !important;
  color: var(--e-paper) !important;
  border-radius: var(--e-r-full) !important;
  padding: 11px 16px !important;
  width: 100%;
  font-weight: 500;
  margin-top: 6px;
  border: 0 !important;
  font-family: var(--e-font-sans);
  cursor: pointer;
  box-shadow: none !important;
}
[data-theme="editorial-dark"] .lp-login-dropdown .btn-primary {
  background: var(--e-moss) !important;
}
[data-theme="editorial"] .lp-login-dropdown .btn-primary:hover,
[data-theme="editorial-dark"] .lp-login-dropdown .btn-primary:hover {
  filter: brightness(1.06);
}
[data-theme="editorial"] .lp-login-dropdown .alert-error,
[data-theme="editorial-dark"] .lp-login-dropdown .alert-error {
  background: color-mix(in oklch, var(--e-red) 12%, transparent) !important;
  color: oklch(38% 0.18 25) !important;
  border: 1px solid color-mix(in oklch, var(--e-red) 24%, transparent) !important;
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  border-radius: var(--e-r-sm);
}
[data-theme="editorial-dark"] .lp-login-dropdown .alert-error {
  color: oklch(78% 0.16 25) !important;
}

/* Kill the 3D stage pointer-events so it never intercepts clicks meant for
   the nav or login dropdown. The cards are decorative. */
.e-hero-r,
.e-hero-stage,
.e-hero-card,
.e-hero-orbit,
.e-hero-glow {
  pointer-events: none !important;
}

/* Editorial dark: adjust a few surfaces that styles.css hardcodes */
[data-theme="editorial-dark"] #screen-auth {
  background: var(--e-paper) !important;
}
[data-theme="editorial-dark"] #screen-auth::before {
  background:
    radial-gradient(ellipse at 85% 15%, color-mix(in oklch, var(--e-moss) 16%, transparent) 0%, transparent 45%),
    radial-gradient(ellipse at 10% 90%, color-mix(in oklch, var(--e-plum) 12%, transparent) 0%, transparent 48%);
}
[data-theme="editorial-dark"] .sidebar {
  background: var(--e-paper-2) !important;
}
[data-theme="editorial-dark"] .page-header {
  background: color-mix(in oklch, var(--e-paper) 90%, transparent) !important;
}
[data-theme="editorial-dark"] .page-body {
  background: var(--e-paper) !important;
}
[data-theme="editorial-dark"] .card,
[data-theme="editorial-dark"] .stat-card,
[data-theme="editorial-dark"] .panel,
[data-theme="editorial-dark"] .modal-sheet,
[data-theme="editorial-dark"] .toast {
  background: var(--e-paper-2);
}
[data-theme="editorial-dark"] table th {
  background: var(--e-paper-3);
}
[data-theme="editorial-dark"] table tbody tr:hover {
  background: var(--e-paper-3);
}
[data-theme="editorial-dark"] .btn-primary {
  background: var(--e-moss) !important;
  color: var(--e-paper) !important;
}
[data-theme="editorial-dark"] .btn-primary:hover {
  background: var(--e-moss-2) !important;
}
[data-theme="editorial-dark"] .e-btn-primary {
  background: var(--e-moss);
  color: var(--e-paper);
}
[data-theme="editorial-dark"] .e-btn-primary:hover {
  background: var(--e-moss-2);
}
[data-theme="editorial-dark"] .e-feature,
[data-theme="editorial-dark"] .e-tier,
[data-theme="editorial-dark"] .e-hero-card,
[data-theme="editorial-dark"] .e-pos-cart,
[data-theme="editorial-dark"] .e-pos-topbar,
[data-theme="editorial-dark"] .e-pos-tile,
[data-theme="editorial-dark"] .e-pos-rail,
[data-theme="editorial-dark"] .e-pos-chip,
[data-theme="editorial-dark"] .e-tender-quick button {
  background: var(--e-paper-2);
}
[data-theme="editorial-dark"] .e-pos-rail.active,
[data-theme="editorial-dark"] .e-pos-chip.active {
  background: var(--e-moss) !important;
  color: var(--e-paper) !important;
  border-color: var(--e-moss) !important;
}
[data-theme="editorial-dark"] .e-pos-charge {
  background: var(--e-moss);
  color: var(--e-paper);
}
[data-theme="editorial-dark"] .e-eyebrow {
  background: var(--e-paper-2);
  color: var(--e-moss);
}
[data-theme="editorial-dark"] .e-hero h1 em,
[data-theme="editorial-dark"] .e-features-head h2 em,
[data-theme="editorial-dark"] .e-feature h3 em,
[data-theme="editorial-dark"] .hc-big em,
[data-theme="editorial-dark"] #page-title em,
[data-theme="editorial-dark"] h1 em, [data-theme="editorial-dark"] h2 em {
  color: var(--e-moss) !important;
}
[data-theme="editorial-dark"] .e-pipe-step.now {
  background: var(--e-moss) !important;
  border-color: var(--e-moss) !important;
}
[data-theme="editorial-dark"] .e-pipe-step.now .lbl,
[data-theme="editorial-dark"] .e-pipe-step.now .n {
  color: var(--e-paper) !important;
}
[data-theme="editorial-dark"] .e-tier.featured {
  border-color: var(--e-moss) !important;
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--e-moss) 14%, transparent) !important;
}
[data-theme="editorial-dark"] .e-tier.featured::before {
  background: var(--e-moss) !important;
  color: var(--e-paper) !important;
}

/* Theme-toggle icon set — show moon/sun based on state */
[data-theme="editorial"] #theme-icon-moon { display: inline-block !important; }
[data-theme="editorial"] #theme-icon-sun { display: none !important; }
[data-theme="editorial-dark"] #theme-icon-moon { display: none !important; }
[data-theme="editorial-dark"] #theme-icon-sun { display: inline-block !important; }

/* ═════════════════════════════════════════════════════════════════════
   INTRO REVEAL — dark scrim fades out on first paint of the landing.
   This preserves the "cool dark flash" effect the user liked, now as a
   deliberate 1.2s reveal rather than an accidental FOUC.
   ═════════════════════════════════════════════════════════════════════ */
.e-reveal-scrim {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, oklch(22% 0.03 60) 0%, oklch(12% 0.02 60) 75%);
  animation: e-reveal 1200ms cubic-bezier(.22,.8,.32,1) forwards;
}
.e-reveal-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 38%, color-mix(in oklch, var(--e-moss) 28%, transparent) 0%, transparent 40%),
    radial-gradient(circle at 22% 72%, color-mix(in oklch, var(--e-plum) 20%, transparent) 0%, transparent 45%);
  opacity: 0.9;
  animation: e-reveal-glow 1200ms cubic-bezier(.22,.8,.32,1) forwards;
}
@keyframes e-reveal {
  0%   { opacity: 1; }
  55%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes e-reveal-glow {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
/* Stagger the hero elements after the reveal */
.e-hero-l > * {
  animation: e-rise 720ms cubic-bezier(.22,.8,.32,1) backwards;
}
.e-eyebrow { animation-delay: 650ms; }
.e-hero h1 { animation-delay: 780ms; }
.e-hero p { animation-delay: 900ms; }
.e-hero-cta { animation-delay: 1020ms; }
.e-hero-meta { animation-delay: 1140ms; }
@keyframes e-rise {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: none; }
}
.e-hero-r {
  animation: e-rise-right 1200ms cubic-bezier(.22,.8,.32,1) 700ms backwards;
}
@keyframes e-rise-right {
  0% { opacity: 0; transform: translateX(28px); }
  100% { opacity: 1; transform: none; }
}
