/* GENERATED by `make bundle-css` — edit sources in tokens/*.css and page.css, not this file. */
/* ============================================================
   Homestocking — self-hosted webfonts (generated by
   tools/fetch-fonts.py). NO third-party CDN — DSGVO compliant.
   DM Sans (UI/body) · JetBrains Mono (data/IDs) · Space Grotesk
   (display). Subsets: latin + latin-ext.
   ============================================================ */

@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/dm-sans-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/dm-sans-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/dm-sans-600-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/dm-sans-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/dm-sans-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/dm-sans-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/jetbrains-mono-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/jetbrains-mono-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-600-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/space-grotesk-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/space-grotesk-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/space-grotesk-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/space-grotesk-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/space-grotesk-600-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/space-grotesk-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/space-grotesk-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/space-grotesk-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ============================================================
   Homestocking — Color tokens
   Light = "Bright checkout lane" · Dark = "Scanner HUD at night"
   Drop-in token API. Keep variable names stable.
   Light is the default (:root). Dark applies via [data-theme="dark"]
   or .dark on any ancestor. A prefers-color-scheme fallback is
   provided for unset roots.
   ============================================================ */

:root,
[data-theme="light"] {
  /* — Neutrals (Light: deliberately green-tinted, not plain white) — */
  --color-bg-page:      #E4F1EA;
  --color-bg-surface:   #FFFFFF;
  --color-bg-elevated:  #FFFFFF;
  --color-bg-hover:     #DDEEE5;

  --color-fg-primary:   #0B1A11;
  --color-fg-secondary: #35473D;
  --color-fg-muted:     #5B7167;
  --color-fg-faint:     #879D93;

  --color-border:        #CFE3D6;
  --color-border-subtle: #E2EFE7;
  --color-border-focus:  #1F9E5A;

  /* — Brand green — */
  --color-brand-primary:        #1F9E5A;  /* identity / accent green */
  --color-brand-primary-hover:  #157A45;
  --color-brand-accent:         #16A85E;
  --color-brand-primary-subtle: #EAF6EF;
  --color-brand-primary-muted:  #BDE6CE;

  /* — Logo mark (fixed in BOTH themes) — */
  --color-logo-1: #22A55B;
  --color-logo-2: #5FD18A;

  /* — Button fill (contrast-safe, distinct from brand-primary) — */
  --color-btn-primary:        #157A45;  /* white label passes AA */
  --color-btn-primary-hover:  #0F6238;
  --color-btn-primary-fg:     #FFFFFF;

  /* — Semantic: success (= brand green) — */
  --color-success:        #1F9E5A;
  --color-success-bg:     #EAF6EF;
  --color-success-border: #BDE6CE;

  /* — Semantic: warning (warm amber) — */
  --color-warning:        #E0900E;
  --color-warning-bg:     #FCF1DD;
  --color-warning-border: #F0CF92;

  /* — Semantic: error — */
  --color-error:        #D95C5C;
  --color-error-bg:     #FAEAEA;
  --color-error-border: #F4AAAA;

  /* — Accent: sky / info (ASSETS + "lent" state) — */
  --color-accent-sky:        #1F86C4;
  --color-accent-sky-bg:     #E4F1FA;
  --color-accent-sky-border: #ABD3EC;

  color-scheme: light;
}

/* ===================== DARK ===================== */
:root[data-theme="dark"],
[data-theme="dark"],
.dark {
  --color-bg-page:      #0A0E0C;
  --color-bg-surface:   #121A16;
  --color-bg-elevated:  #16201A;
  --color-bg-hover:     #1C2B23;

  --color-fg-primary:   #E8F2EC;
  --color-fg-secondary: #B3C6BB;
  --color-fg-muted:     #7D918A;
  --color-fg-faint:     #566860;

  --color-border:        #233A2F;
  --color-border-subtle: #18241E;
  --color-border-focus:  #34D77C;

  --color-brand-primary:        #34D77C;
  --color-brand-primary-hover:  #1F9E5A;
  --color-brand-accent:         #5CFF9E;
  --color-brand-primary-subtle: #11231A;
  --color-brand-primary-muted:  #1E3A2A;

  /* logo stays constant */
  --color-logo-1: #22A55B;
  --color-logo-2: #5FD18A;

  --color-btn-primary:        #34D77C;
  --color-btn-primary-hover:  #46E08A;
  --color-btn-primary-fg:     #04130B;

  --color-success:        #34D77C;
  --color-success-bg:     #11231A;
  --color-success-border: #1E3A2A;

  --color-warning:        #F5B942;
  --color-warning-bg:     #2A2010;
  --color-warning-border: #5A4418;

  --color-error:        #D95C5C;
  --color-error-bg:     #2D0F0F;
  --color-error-border: #5C1F1F;

  --color-accent-sky:        #54B6E6;
  --color-accent-sky-bg:     #102230;
  --color-accent-sky-border: #25425A;

  color-scheme: dark;
}

/* Theme is controlled explicitly via [data-theme] / .dark (set by the app).
   To opt into OS-preference auto-dark, add in your app CSS:
   @media (prefers-color-scheme: dark) { :root:not([data-theme]) { ... } } */
/* ============================================================
   Homestocking — Typography tokens
   DM Sans for UI/body, JetBrains Mono for data/IDs/SKUs.
   ============================================================ */

:root {
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  /* Type scale — UI-density oriented, 1.20-ish ratio at the body end */
  --text-2xs: 11px;   /* micro labels, table meta, mono tags */
  --text-xs:  12px;   /* captions, badges, hints */
  --text-sm:  13px;   /* dense table cells, secondary UI */
  --text-base:14px;   /* default body / UI */
  --text-md:  15px;   /* comfortable body */
  --text-lg:  17px;   /* card titles, emphasized */
  --text-xl:  20px;   /* section headings */
  --text-2xl: 24px;   /* page titles */
  --text-3xl: 30px;   /* stat numbers, hero-lite */
  --text-4xl: 38px;   /* marketing display */
  --text-5xl: 52px;   /* marketing hero */

  /* Weights */
  --font-weight-regular:  400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  /* Line heights */
  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  /* Letter spacing */
  --tracking-tight:  -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   0.02em;
  --tracking-caps:   0.06em;  /* uppercase mono labels */

  /* Semantic aliases */
  --text-body:        var(--text-base);
  --text-body-lh:     var(--leading-normal);
  --text-label:       var(--text-xs);
  --text-data:        var(--text-sm);  /* mono data cells */
}
/* ============================================================
   Homestocking — Spacing & density tokens
   4px base grid. Two density modes for tables/lists.
   ============================================================ */

:root {
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Comfortable density (default) */
  --row-py:        12px;
  --row-px:        16px;
  --control-h:     36px;   /* md control height */
  --control-h-sm:  28px;   /* sm control height */
  --field-px:      12px;
}

/* Compact density — opt in with [data-density="compact"] on a container */
[data-density="compact"] {
  --row-py:        6px;
  --row-px:        10px;
  --control-h:     30px;
  --control-h-sm:  24px;
  --field-px:      10px;
}
/* ============================================================
   Homestocking — Radii, elevation, motion, z-index
   Shadows are heavier in dark. Focus ring is brand-green.
   ============================================================ */

:root {
  /* Radii: 4 / 8 / 12 / 16 / full */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(11, 26, 17, 0.06), 0 1px 1px rgba(11, 26, 17, 0.04);
  --shadow-md: 0 2px 4px rgba(11, 26, 17, 0.06), 0 4px 12px rgba(11, 26, 17, 0.08);
  --shadow-lg: 0 8px 24px rgba(11, 26, 17, 0.12), 0 2px 6px rgba(11, 26, 17, 0.08);

  /* Brand-tinted shadow for primary buttons (solid + crisp, no glow) */
  --shadow-brand: 0 1px 2px rgba(11, 26, 17, 0.10), 0 2px 6px rgba(21, 122, 69, 0.22);

  /* Focus ring */
  --shadow-focus-ring: 0 0 0 3px rgba(31, 158, 90, 0.40);

  /* Motion — calm, precise. No bounce. */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1); /* @kind other */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --ease-in:       cubic-bezier(0.4, 0, 1, 1); /* @kind other */
  --duration-fast:   120ms; /* @kind other */
  --duration-normal: 180ms; /* @kind other */
  --duration-slow:   260ms; /* @kind other */
  --duration-scan:   1600ms; /* @kind other */

  /* Z-index scale */
  --z-dropdown: 1200; /* @kind other */
  --z-sticky:   1100; /* @kind other */
  --z-modal:    1300; /* @kind other */
  --z-popover:  1400; /* @kind other */
  --z-toast:    1500; /* @kind other */
  --z-tooltip:  1600; /* @kind other */
}

:root[data-theme="dark"],
[data-theme="dark"],
.dark {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.40), 0 1px 1px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.45), 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.60), 0 4px 10px rgba(0, 0, 0, 0.50);
  --shadow-brand: 0 1px 2px rgba(0, 0, 0, 0.50), 0 2px 10px rgba(52, 215, 124, 0.20);
  --shadow-focus-ring: 0 0 0 3px rgba(52, 215, 124, 0.40);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms; /* @kind other */
    --duration-normal: 0ms; /* @kind other */
    --duration-slow: 0ms; /* @kind other */
  }
}
/* ============================================================
   Homestocking — Base element defaults
   Sets the page background, body type, and antialiasing so any
   surface that links styles.css renders on-brand immediately.
   ============================================================ */

:root {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--color-bg-page);
  color: var(--color-fg-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  font-feature-settings: "cv05" 1, "ss01" 1;
}

*, *::before, *::after { box-sizing: border-box; }

/* Mono utility for SKUs / IDs / counts */
.hs-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* Tabular figures helper for any data column */
.hs-tnum { font-variant-numeric: tabular-nums; }

::selection {
  background: var(--color-brand-primary-muted);
  color: var(--color-fg-primary);
}

/* ============================================================
   Custom scrollbars — thin, branded, calm.
   Applies to any scroll container that links the system; opt a
   specific element in explicitly with .hs-scrollbar if needed.
   ============================================================ */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--color-fg-faint); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }
:root{
  --radius:var(--radius-xl); --maxw:1180px;
  --display:"Space Grotesk",var(--font-sans); --body:var(--font-sans); --mono:var(--font-mono);
  --logo-green:#22A55B; --logo-green-soft:#5FD18A;
}
/* ===== DARK — "Scanner HUD at night" ===== */
:root[data-theme="dark"]{
  --bg:var(--color-bg-page); --bg-2:#0f1512; --surface:var(--color-bg-surface); --surface-2:var(--color-bg-elevated);
  --line:rgba(52,211,124,.16); --line-2:rgba(220,235,226,.08);
  --fg:var(--color-fg-primary); --fg-soft:var(--color-fg-secondary); --fg-mut:var(--color-fg-muted); --fg-faint:var(--color-fg-faint);
  --beam:var(--color-brand-primary); --beam-2:var(--color-brand-accent); --green:var(--color-brand-primary); --green-deep:var(--color-brand-primary-hover);
  --amber:var(--color-warning); --sky:var(--color-accent-sky);
  --btn-fg:var(--color-btn-primary-fg); --btn-bg:var(--color-btn-primary); --btn-bg-hover:var(--color-btn-primary-hover);
  --barcode:#cfe3d6;
  --glow-green:rgba(52,211,124,.16); --glow-sky:rgba(84,182,230,.08); --glow-amber:rgba(245,185,66,.07);
  --grain-opacity:.05;
  --tag-green-bg:rgba(52,211,124,.08);
  --green-bg:rgba(52,211,124,.08); --green-line:rgba(52,211,124,.24);
  --green-hover-line:rgba(52,211,124,.46); --green-chk-bg:rgba(52,211,124,.14);
  --ghost-bg:rgba(220,235,226,.03); --ghost-bg-hover:rgba(220,235,226,.06); --ghost-line-hover:rgba(220,235,226,.2);
  --btn-shadow:rgba(52,211,124,.55); --btn-shadow-hover:rgba(52,211,124,.7);
  --card-shadow:rgba(0,0,0,.75);
  --nav-bg-top:rgba(10,14,12,.84); --nav-bg-bottom:rgba(10,14,12,.5);
  --scan-glow:rgba(52,211,124,.5); --reticle:rgba(92,255,158,.85);
  --view-bg:radial-gradient(120% 120% at 50% 0%,#13201a,#0a0f0c 70%);
  --input-bg:rgba(220,235,226,.04);
}
/* ===== LIGHT — "Bright checkout lane" ===== */
:root[data-theme="light"]{
  --bg:var(--color-bg-page); --bg-2:#f1f8f3; --surface:var(--color-bg-surface); --surface-2:var(--color-bg-hover);
  --line:rgba(31,158,90,.34); --line-2:rgba(20,60,40,.15);
  --fg:var(--color-fg-primary); --fg-soft:var(--color-fg-secondary); --fg-mut:var(--color-fg-muted); --fg-faint:var(--color-fg-faint);
  --beam:var(--color-brand-primary); --beam-2:var(--color-brand-accent); --green:var(--color-brand-primary); --green-deep:var(--color-brand-primary-hover);
  --amber:var(--color-warning); --sky:var(--color-accent-sky);
  --btn-fg:var(--color-btn-primary-fg); --btn-bg:var(--color-btn-primary); --btn-bg-hover:var(--color-btn-primary-hover);
  --barcode:#0e2a1c;
  --glow-green:rgba(31,158,90,.3); --glow-sky:rgba(31,134,196,.2); --glow-amber:rgba(224,144,14,.16);
  --grain-opacity:.025;
  --tag-green-bg:rgba(31,158,90,.18);
  --green-bg:rgba(31,158,90,.18); --green-line:rgba(31,158,90,.45);
  --green-hover-line:rgba(31,158,90,.66); --green-chk-bg:rgba(31,158,90,.24);
  --ghost-bg:rgba(20,60,40,.06); --ghost-bg-hover:rgba(20,60,40,.1); --ghost-line-hover:rgba(20,60,40,.34);
  --btn-shadow:rgba(21,122,69,.4); --btn-shadow-hover:rgba(21,122,69,.55);
  --card-shadow:rgba(16,46,32,.2);
  --nav-bg-top:rgba(228,241,234,.92); --nav-bg-bottom:rgba(228,241,234,.62);
  --scan-glow:rgba(31,158,90,.45); --reticle:rgba(31,134,72,.85);
  --view-bg:radial-gradient(120% 120% at 50% 0%,#daeee3,#c2e2cf 78%);
  --input-bg:rgba(255,255,255,.7);
}
.icon{width:1em;height:1em;display:inline-block;vertical-align:-.125em;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.icon-spin{animation:hs-spin 1s linear infinite}
@keyframes hs-spin{to{transform:rotate(360deg)}}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{
  margin:0; min-height:100vh; display:flex; flex-direction:column;
  background:var(--bg); color:var(--fg);
  font-family:var(--body); font-size:17px; line-height:1.6; letter-spacing:.005em;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
  transition:background-color .3s, color .3s;
}
@media (prefers-reduced-motion: reduce){ body{transition:none} }
body::before{
  content:""; position:fixed; inset:0; z-index:-2; pointer-events:none;
  background:
    radial-gradient(720px 460px at 50% -6%, var(--glow-green), transparent 60%),
    radial-gradient(680px 520px at 92% 8%, var(--glow-sky), transparent 62%),
    radial-gradient(900px 700px at 12% 108%, var(--glow-amber), transparent 60%);
}
body::after{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:var(--grain-opacity);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a{color:inherit;text-decoration:none}
.wrap{width:100%; max-width:var(--maxw); margin:0 auto; padding:0 28px}
:focus-visible{outline:2px solid var(--beam);outline-offset:2px;border-radius:6px}

/* ---- nav ---- */
.nav{position:relative; z-index:5}
.nav-in{display:flex;align-items:center;justify-content:space-between;height:78px}
.brand{display:flex;align-items:center;gap:11px;font-family:var(--display);font-weight:700;font-size:20px;letter-spacing:-.01em}
.brand .ing{font-family:var(--mono);font-weight:600;color:var(--green);font-size:18px}
.brand img{width:30px;height:30px;flex:0 0 auto}
.nav-cta{display:flex;align-items:center;gap:12px}
.theme-toggle{width:40px;height:40px;border-radius:11px;border:1px solid var(--line);background:var(--ghost-bg);
  color:var(--fg-soft);cursor:pointer;display:grid;place-items:center;transition:background .2s,border-color .2s}
.theme-toggle:hover{background:var(--ghost-bg-hover);border-color:var(--ghost-line-hover)}
.theme-toggle svg{width:18px;height:18px}
.theme-toggle .sun{display:none} .theme-toggle .moon{display:block}
:root[data-theme="light"] .theme-toggle .sun{display:block}
:root[data-theme="light"] .theme-toggle .moon{display:none}
.ghost-link{display:inline-flex;align-items:center;gap:.5em;font-size:14.5px;font-weight:600;color:var(--green-deep);
  background:var(--green-bg);border:1px solid var(--green-line);border-radius:11px;padding:9px 15px;transition:border-color .2s,background .2s}
:root[data-theme="dark"] .ghost-link{color:var(--beam-2)}
.ghost-link:hover{border-color:var(--green-hover-line);background:var(--green-chk-bg)}

/* ---- main ---- */
main{flex:1 0 auto;display:flex;align-items:center;padding:36px 0 64px}
.grid{display:grid;grid-template-columns:1.05fr .95fr;gap:60px;align-items:center;width:100%}
@media(max-width:920px){.grid{grid-template-columns:1fr;gap:40px} main{padding:20px 0 48px}}

.tag{
  display:inline-flex; align-items:center; gap:.55em; font-family:var(--mono);
  font-size:11.5px; font-weight:500; letter-spacing:.16em; text-transform:uppercase;
  color:var(--beam-2); background:var(--tag-green-bg);
  border:1px solid var(--line); border-radius:999px; padding:6px 12px;
}
:root[data-theme="light"] .tag{color:var(--green-deep)}
.tag .blip{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 8px var(--scan-glow);animation:blip 1.4s ease-in-out infinite}
@keyframes blip{0%,100%{opacity:1}50%{opacity:.3}}

h1{font-family:var(--display);font-weight:700;letter-spacing:-.03em;line-height:1.04;
  font-size:clamp(40px,6vw,68px);margin:22px 0 0}
h1 .accent{color:var(--green)}
.sub{color:var(--fg-soft);font-size:19px;max-width:52ch;margin:20px 0 0;text-wrap:pretty}
.sub em{color:var(--fg);font-style:normal;font-weight:600}

/* ---- signup ---- */
.signup{margin-top:34px;max-width:480px}
.signup-row{display:flex;gap:10px}
@media(max-width:480px){.signup-row{flex-direction:column}}
.field{position:relative;flex:1}
.field .icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--fg-faint);font-size:18px}
.field input{
  width:100%;height:50px;padding:0 14px 0 42px;border-radius:12px;
  background:var(--input-bg);border:1px solid var(--line);color:var(--fg);
  font-family:var(--mono);font-size:14.5px;letter-spacing:.01em;transition:border-color .2s,box-shadow .2s,background .2s;
}
.field input::placeholder{color:var(--fg-faint)}
.field input:focus{outline:none;border-color:var(--beam);box-shadow:var(--shadow-focus-ring);background:var(--surface)}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55em;font-family:var(--body);font-weight:600;
  font-size:15px;height:50px;padding:0 22px;border-radius:12px;border:1px solid transparent;cursor:pointer;white-space:nowrap;
  transition:transform .18s ease, box-shadow .25s ease, background .2s ease;
}
.btn-primary{color:var(--btn-fg);background:var(--btn-bg);box-shadow:0 1px 2px rgba(0,0,0,.16), 0 6px 16px -8px var(--btn-shadow)}
.btn-primary:hover{background:var(--btn-bg-hover);transform:translateY(-1px);box-shadow:0 2px 5px rgba(0,0,0,.18), 0 10px 22px -8px var(--btn-shadow-hover)}
.btn-primary:active{transform:translateY(0)}
.btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}
.form-note{margin:13px 2px 0;font-size:13px;color:var(--fg-mut);display:flex;align-items:center;gap:7px}
.form-note .icon{font-size:15px;color:var(--green)}
/* success state */
.signup.done .signup-row,.signup.done .form-note,.signup.done .consent-note{display:none}
.done-msg{display:none;align-items:center;gap:12px;padding:15px 17px;border-radius:14px;
  background:var(--green-bg);border:1px solid var(--green-line)}
.signup.done .done-msg{display:flex}
.done-msg .icon{font-size:24px;color:var(--green)}
.done-msg b{font-family:var(--display);font-weight:600;display:block;color:var(--fg)}
.done-msg span{font-size:14px;color:var(--fg-soft)}
/* error state */
.signup.error .signup-row,.signup.error .form-note,.signup.error .consent-note{display:flex}
.err-msg{display:none;align-items:center;gap:12px;padding:12px 15px;border-radius:14px;
  background:var(--color-error-bg);border:1px solid var(--color-error-border);margin-top:12px}
.signup.error .err-msg{display:flex}
.err-msg .icon{font-size:20px;color:var(--color-error)}
.err-msg span{font-size:14px;color:var(--color-error)}
/* consent note */
.consent-note{margin:10px 2px 0;font-size:12px;color:var(--fg-mut)}
.consent-note a{color:var(--green);text-decoration:underline;text-underline-offset:2px}

/* ---- state banner (confirm/unsub redirect) ---- */
#state-banner{margin-bottom:18px}
#state-banner:empty{display:none}
.banner-msg{display:flex;align-items:center;gap:12px;padding:14px 17px;border-radius:14px;
  background:var(--green-bg);border:1px solid var(--green-line)}
.banner-msg .icon{font-size:22px;color:var(--green)}
.banner-msg span{font-size:15px;color:var(--fg-soft)}

/* ---- trust line ---- */
.trust{display:flex;gap:22px;margin-top:30px;flex-wrap:wrap;color:var(--fg-mut);font-size:13px;font-family:var(--mono)}
.trust span{display:inline-flex;align-items:center;gap:8px}
.trust .icon{font-size:16px;color:var(--green)}

/* ---- scanner art ---- */
.stage{display:flex;justify-content:center}
.scanner{position:relative;width:100%;max-width:420px;aspect-ratio:5/4;border-radius:24px;
  background:var(--view-bg);border:1px solid var(--line);overflow:hidden;
  box-shadow:0 40px 90px -50px var(--card-shadow), inset 0 0 0 1px var(--line-2)}
.hud{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;
  padding:14px 16px;font-family:var(--mono);font-size:11px;letter-spacing:.08em;z-index:3}
.hud .live{display:inline-flex;align-items:center;gap:7px;color:var(--green);font-weight:600}
.hud .live .blip{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 8px var(--scan-glow);animation:blip 1.4s ease-in-out infinite}
.hud .mode{color:var(--fg-faint)}
.target{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:0 18%}
.target svg{width:100%;height:84px;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25))}
.sku{font-family:var(--mono);font-size:13px;letter-spacing:.34em;color:var(--barcode);opacity:.85}
.reticle i{position:absolute;width:26px;height:26px;border:2px solid var(--reticle);opacity:.9}
.reticle .tl{top:54px;left:42px;border-right:0;border-bottom:0;border-radius:6px 0 0 0}
.reticle .tr{top:54px;right:42px;border-left:0;border-bottom:0;border-radius:0 6px 0 0}
.reticle .bl{bottom:54px;left:42px;border-right:0;border-top:0;border-radius:0 0 0 6px}
.reticle .br{bottom:54px;right:42px;border-left:0;border-top:0;border-radius:0 0 6px 0}
.beam{position:absolute;left:42px;right:42px;height:2px;top:54px;border-radius:2px;z-index:2;
  background:linear-gradient(90deg,transparent,var(--beam),transparent);
  box-shadow:0 0 14px 3px var(--scan-glow);
  animation:sweep 2.6s cubic-bezier(.5,0,.5,1) infinite}
@keyframes sweep{0%{top:54px}48%{top:calc(100% - 56px)}52%{top:calc(100% - 56px)}100%{top:54px}}
@media (prefers-reduced-motion: reduce){.beam{animation:none;top:50%}}
.chips{position:absolute;left:0;right:0;bottom:0;display:flex;gap:8px;justify-content:center;padding:16px;z-index:3}
.chip{display:inline-flex;align-items:center;gap:7px;font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;
  text-transform:uppercase;padding:6px 11px;border-radius:999px;background:var(--surface);border:1px solid var(--line-2);color:var(--fg-soft)}
.chip .d{width:7px;height:7px;border-radius:50%}
.chip .d.green{background:var(--green)} .chip .d.sky{background:var(--sky)}

/* ---- footer ---- */
footer{flex-shrink:0;border-top:1px solid var(--line-2);padding:22px 0}
.foot-in{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  font-family:var(--mono);font-size:12px;color:var(--fg-faint);letter-spacing:.03em}
.foot-in .self{display:inline-flex;align-items:center;gap:8px}
.foot-in .self .icon{color:var(--green);font-size:14px}
.foot-links{display:flex;gap:14px}
.foot-links a{color:var(--fg-faint);text-decoration:underline;text-underline-offset:2px}
.foot-links a:hover{color:var(--fg-mut)}

/* entrance */
@keyframes rise{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
.rise{opacity:1}
@media (prefers-reduced-motion: no-preference){
  .rise{animation:rise .75s cubic-bezier(.2,.7,.2,1) both}
}
