@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --bg: #0a0a0f;
  --s1: #13131c;
  --s2: #1b1b28;
  --s3: #262636;
  --s-elev: #1f1f2e;
  /* Deepest canvas used by kit/website shells behind the app surface */
  --bg-deep: #050507;
  --bg-strip: #08080c;

  /* Borders — always white-alpha, never colored */
  --border: rgba(255, 255, 255, 0.06);
  --border-hi: rgba(255, 255, 255, 0.12);
  --border-bright: rgba(255, 255, 255, 0.22);

  /* Brand accents */
  --violet: #8B5CF6;
  --violet-2: #A78BFA;
  --pink: #EC4899;
  --grad: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%); /* @kind color */
  --grad-soft: linear-gradient(135deg, rgba(139,92,246,0.18) 0%, rgba(236,72,153,0.18) 100%); /* @kind color */

  /* Semantic — muted by default, turned up only when the meaning matters */
  --green: #10B981;
  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --cyan: #06B6D4;
  --cyan-soft: rgba(6, 182, 212, 0.14);
  --green-soft: rgba(16, 185, 129, 0.14);
  --red: #EF4444;

  /* Text scale */
  --t1: #F3F4F6;
  --t2: #9CA3AF;
  --t3: #6B7280;
  --t4: #4B5563;

  /* Semantic aliases */
  --text-primary: var(--t1);
  --text-secondary: var(--t2);
  --text-muted: var(--t3);
  --text-faint: var(--t4);
  --surface-canvas: var(--bg);
  --surface-card: var(--s1);
  --surface-raised: var(--s2);
  --surface-elevated: var(--s-elev);
  --accent: var(--violet);
  --accent-gradient: var(--grad); /* @kind color */
  --status-ok: var(--green);
  --status-warn: var(--amber);
  --status-info: var(--cyan);
  --status-danger: var(--red);
  /* Chrome: translucent topbar fill (pair with blur-chrome) */
  --chrome-fill: rgba(19, 19, 28, 0.7);
  --hud-fill: rgba(0, 0, 0, 0.45);
}

/* Typography — three families, no fourth. */
:root {
  --fd: 'Space Grotesk', 'Inter', sans-serif; /* @kind font */   /* display: titles, hero numerals, wordmark */
  --fb: 'Inter', system-ui, sans-serif; /* @kind font */         /* body: captions, buttons, paragraphs */
  --fm: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; /* @kind font */ /* telemetry */

  --font-display: var(--fd);
  --font-body: var(--fb);
  --font-mono: var(--fm);

  /* Product type sizes (kiosk + customer app) */
  --fs-hero: 108px;
  --fs-cover: 96px;
  --fs-headline: 56px;
  --fs-h1: 48px;
  --fs-h2: 32px;
  --fs-h3: 22px;
  --fs-title: 19px;
  --fs-title-sm: 18px;
  --fs-lede: 18px;
  --fs-meta: 15px;
  --fs-body: 14px;
  --fs-caption: 13px;
  --fs-mono: 12px;
  --fs-eyebrow: 11px;

  /* Tracking */
  --tr-hero: -0.04em;
  --tr-tight: -0.03em;
  --tr-title: -0.02em;
  --tr-snug: -0.01em;
  --tr-eyebrow: 0.22em;
  --tr-eyebrow-wide: 0.30em;
  --tr-telemetry: 0.14em;
}

/* Spacing (4px base) and radii. */
:root {
  --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;

  /* Radii — 12px is the default */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-device: 28px;
  --r-pill: 999px;

  /* Fixed chrome heights (load-bearing on kiosk) */
  --h-topbar: 72px;
  --h-statusstrip: 36px;
  --hit-min: 44px;
}

/* Shadows, blur, motion. */
:root {
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lift: 0 1px 0 rgba(255,255,255,0.06) inset, 0 8px 24px rgba(0,0,0,0.4);
  --shadow-card-img: 0 1px 0 rgba(255,255,255,0.08) inset, 0 20px 60px rgba(0,0,0,0.55), 0 40px 80px rgba(139,92,246,0.18);
  --shadow-primary: 0 8px 24px rgba(139,92,246,0.25), 0 1px 0 rgba(255,255,255,0.15) inset;
  --shadow-device: 0 30px 80px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.06) inset;

  /* The signature "lit edge" — on every elevated surface */
  --inner-lit: inset 0 1px 0 rgba(255,255,255,0.04); /* @kind shadow */
  --inner-lit-strong: inset 0 1px 0 rgba(255,255,255,0.15); /* @kind shadow */

  --blur-chrome: blur(12px); /* @kind other */
  --blur-hud: blur(4px); /* @kind other */

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1); /* @kind other */
  --dur-fast: 120ms; /* @kind other */   /* button press, chip toggle */
  --dur-mid: 160ms; /* @kind other */    /* modal fade */
  --dur-slow: 240ms; /* @kind other */   /* drawer slide-in */
  --dur-tick: 80ms; /* @kind other */    /* progress bar */
}

/* Website layer — prism.notanevillab.com.
   The marketing site keeps every PRISM color and family, but borrows the
   large-scale rhythm of a modern hardware-product site: a narrow centered
   content column, a thin translucent sticky nav, pill CTAs, oversized centered
   display headlines and very generous vertical air. */
:root {
  --web-content: 980px;   /* centered copy + card column */
  --web-wide: 1440px;     /* full-bleed media shell */
  --web-gutter: 32px;

  --web-nav-h: 48px;
  --web-nav-fill: rgba(10, 10, 15, 0.72); /* @kind color */

  /* Section rhythm */
  --web-section-y: 140px;
  --web-section-y-sm: 96px;
  --web-block-gap: 72px;

  /* Web type scale (larger than product; centered, tight) */
  --web-fs-hero: 88px;
  --web-fs-h1: 64px;
  --web-fs-h2: 44px;
  --web-fs-h3: 28px;
  --web-fs-lede: 21px;
  --web-fs-body: 17px;
  --web-fs-caption: 14px;

  /* Web surfaces */
  --web-radius: 18px;
  --web-radius-lg: 28px;
  --web-cta-radius: var(--r-pill); /* @kind radius */
  --web-halo: radial-gradient(60% 60% at 50% 0%, rgba(139,92,246,0.22) 0%, rgba(139,92,246,0) 70%); /* @kind color */
}

/* Base reset + semantic type classes. Ported from PRISM `colors_and_type.css`. */
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--t1);
  font-family: var(--fb);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--violet-2); text-decoration: none; }
a:hover { color: var(--t1); }

.h-hero { font-family: var(--fd); font-size: var(--fs-hero); font-weight: 700; letter-spacing: var(--tr-hero); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.h-cover { font-family: var(--fd); font-size: var(--fs-cover); font-weight: 700; letter-spacing: var(--tr-hero); line-height: 1; }
.h-headline { font-family: var(--fd); font-size: var(--fs-headline); font-weight: 600; letter-spacing: var(--tr-title); line-height: 1.05; }
h1, .h1 { font-family: var(--fd); font-size: var(--fs-h1); font-weight: 700; letter-spacing: var(--tr-tight); line-height: 1.05; margin: 0; }
h2, .h2 { font-family: var(--fd); font-size: var(--fs-h2); font-weight: 600; letter-spacing: var(--tr-title); line-height: 1.1; margin: 0; }
h3, .h3 { font-family: var(--fd); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
.lede { font-family: var(--fb); font-size: var(--fs-lede); font-weight: 400; color: var(--t2); line-height: 1.55; }
p, .p { font-family: var(--fb); font-size: var(--fs-body); font-weight: 400; color: var(--t1); line-height: 1.55; margin: 0 0 12px; }
.meta-value { font-family: var(--fd); font-size: var(--fs-meta); font-weight: 600; letter-spacing: var(--tr-snug); }
.body-strong, button, .btn { font-family: var(--fb); font-size: var(--fs-body); font-weight: 600; letter-spacing: var(--tr-snug); }
.caption { font-family: var(--fb); font-size: var(--fs-caption); font-weight: 400; color: var(--t2); line-height: 1.5; }
.eyebrow { font-family: var(--fm); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--t3); }
.eyebrow-cover { font-family: var(--fm); font-size: 12px; font-weight: 500; letter-spacing: var(--tr-eyebrow-wide); text-transform: uppercase; color: var(--t3); }
code, kbd, .mono { font-family: var(--fm); font-size: var(--fs-mono); font-weight: 500; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* Website scale — centered, oversized, airy */
.w-hero { font-family: var(--fd); font-size: var(--web-fs-hero); font-weight: 700; letter-spacing: var(--tr-hero); line-height: 0.98; margin: 0; }
.w-h1 { font-family: var(--fd); font-size: var(--web-fs-h1); font-weight: 700; letter-spacing: var(--tr-hero); line-height: 1.02; margin: 0; }
.w-h2 { font-family: var(--fd); font-size: var(--web-fs-h2); font-weight: 600; letter-spacing: var(--tr-tight); line-height: 1.08; margin: 0; }
.w-h3 { font-family: var(--fd); font-size: var(--web-fs-h3); font-weight: 600; letter-spacing: var(--tr-title); line-height: 1.2; margin: 0; }
.w-lede { font-family: var(--fb); font-size: var(--web-fs-lede); font-weight: 400; color: var(--t2); line-height: 1.5; }
.w-body { font-family: var(--fb); font-size: var(--web-fs-body); font-weight: 400; color: var(--t2); line-height: 1.6; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media print { *, *::before, *::after { animation: none !important; transition: none !important; } }


a{color:var(--violet-2);text-decoration:none}
a:hover{color:var(--pink)}
input,textarea,select{outline:none}
footer img{width:auto;max-width:100%;align-self:flex-start}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
@media print{*,*::before,*::after{animation:none!important;transition:none!important}}

/* Web shell responsiveness — the marketing scale shrinks with the viewport. */
@media (max-width: 900px){ :root{ --web-fs-hero:52px; --web-fs-h1:40px; --web-fs-h2:30px; --web-fs-h3:23px; --web-fs-lede:18px; --web-gutter:24px; --web-section-y:96px } }
@media (max-width: 560px){ :root{ --web-fs-hero:38px; --web-fs-h1:31px; --web-fs-h2:25px; --web-gutter:18px } }
/* Wider shell for grids and hero rows; copy stays on --web-content. */
:root {
  --web-shell: 1180px;
  --web-fs-hero: clamp(38px,5.4vw,82px);
  --web-fs-h1: clamp(31px,4.2vw,60px);
  --web-fs-h2: clamp(25px,3.2vw,42px);
  --web-fs-h3: clamp(21px,2vw,27px);
  --web-fs-lede: clamp(16px,1.5vw,20px);
  --web-fs-body: clamp(15px,1.2vw,17px);
}
@media (max-width: 900px){ :root{ --web-shell: 100% } }

@keyframes prism-sweep { 0% { transform: translateY(-8%); opacity: 0 } 12% { opacity: 1 } 88% { opacity: 1 } 100% { transform: translateY(108%); opacity: 0 } }
@keyframes prism-dot { 0%, 100% { opacity: 1 } 50% { opacity: 0.35 } }
@keyframes prism-glow-c { 0%, 100% { opacity: 0.25; transform: translate(-50%,-50%) scale(0.94) } 50% { opacity: 0.9; transform: translate(-50%,-50%) scale(1.06) } }
@keyframes prism-strip-move { 0% { left: var(--a); opacity: 0 } 8% { opacity: 1 } 92% { opacity: 1 } 100% { left: var(--b); opacity: 0 } }
@keyframes prism-strip-pre { 0%, 47% { opacity: 1 } 53%, 100% { opacity: 0 } }
@keyframes prism-strip-post { 0%, 49% { opacity: 0 } 56%, 100% { opacity: 1 } }
@keyframes prism-node-pulse { 0% { box-shadow: 0 0 0 0 var(--acc) } 100% { box-shadow: 0 0 0 10px transparent } }
@keyframes prism-row-in { 0% { opacity: 0; transform: translateY(-6px); background: rgba(168,85,247,0.18) } 100% { opacity: 1; transform: none; background: transparent } }
@keyframes prism-fly { 0% { left: var(--x0); top: var(--y0); opacity: 0; transform: scale(0.7) } 8% { opacity: 1; transform: scale(1) } 55% { left: var(--x1); top: var(--y1); opacity: 1; transform: rotate(var(--r, 0deg)) } 85% { left: var(--x1); top: var(--y1); opacity: 1; transform: rotate(var(--r, 0deg)) } 100% { left: var(--x1); top: var(--y1); opacity: 0; transform: rotate(var(--r, 0deg)) } }
@keyframes prism-card-drop { 0% { top: 0; opacity: 0 } 15% { opacity: 1 } 85% { opacity: 1 } 100% { top: calc(100% - 20px); opacity: 0 } }
@keyframes prism-card-move { 0% { left: 0; opacity: 0 } 12% { opacity: 1 } 88% { opacity: 1 } 100% { left: calc(100% - 14px); opacity: 0 } }
@keyframes prism-tap-dot { 0% { transform: scale(1.5); opacity: 0 } 30% { transform: scale(0.82); opacity: 1 } 60% { transform: scale(0.95); opacity: 1 } 100% { transform: scale(1); opacity: 0 } }
@keyframes prism-tap-ring { 0% { transform: scale(0.8); opacity: 0.9 } 100% { transform: scale(2.4); opacity: 0 } }
@keyframes prism-led-glow { 0%, 100% { opacity: 0.2 } 50% { opacity: 1 } }
@keyframes prism-screen-glow { 0%, 100% { opacity: 0.25; transform: scale(0.94) } 50% { opacity: 0.9; transform: scale(1.06) } }

input[type=range] { accent-color: var(--violet); }

nav > div { overflow-x: auto; scrollbar-width: none; }
nav > div::-webkit-scrollbar { display: none; }

.prism-rail{scrollbar-width:none}
.prism-rail::-webkit-scrollbar{display:none}

/* Overview micro-motion */
.prism-reveal.is-armed { opacity: 0; transform: translateY(16px); }
.prism-reveal.is-armed.is-in { opacity: 1; transform: none; transition: opacity 520ms cubic-bezier(.2,.8,.2,1), transform 520ms cubic-bezier(.2,.8,.2,1); }
.prism-lift { transition: border-color 120ms ease-out, background-color 120ms ease-out, box-shadow 220ms ease-out; }
.prism-lift:hover { border-color: var(--border-hi) !important; box-shadow: var(--shadow-lift) !important; }
.prism-lift .prism-well { transition: box-shadow 220ms ease-out; }
.prism-lift:hover .prism-well { box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 6px 18px rgba(139,92,246,0.22); }
.prism-hero-in { animation: prism-rise 700ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes prism-rise { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) {
  .prism-reveal, .prism-reveal.is-armed, .prism-reveal.is-in, .prism-hero-in { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* Hide the footer version telemetry mark (PRISM ◆ 0.1.0) */
footer > div > div:last-child > span:first-child { display: none; }

@media (min-width: 860px) { [data-flip="1"] > div:first-child { order: 2; } }

/* Footer logo size */
footer img[alt="PRISM"] { height: 40px !important; width: auto !important; max-width: none !important; }

/* Header right group never wraps */
nav button{white-space:nowrap}
button{white-space:nowrap}
/* Long card/tile buttons keep wrapping their text */
button.prism-lift, button.prism-lift *, button[style*="grid-template-columns"], button[style*="grid-template-columns"] *{white-space:normal}
nav > div > div:last-child > *{flex-shrink:0}

/* Comparison table — compact mobile layout */
@media (max-width: 640px){
  .cmp-title{white-space:normal!important;font-size:30px!important;text-wrap:balance}
  .cmp-wrap{overflow-x:visible!important;margin:0 calc(var(--web-gutter) * -0.5)}
  .cmp-table{min-width:0!important}
  .cmp-table > div, .cmp-table > sc-for > div, .cmp-table div[class~="prism-reveal"]{grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,0.62fr))!important;gap:6px!important;padding-left:8px!important;padding-right:8px!important}
  .cmp-table > div:first-child{font-size:10px!important;letter-spacing:0.08em!important;line-height:1.2}
  .cmp-table > div:first-child > span:nth-child(3){font-size:11px!important}
  .cmp-table div.prism-reveal{padding-top:14px!important;padding-bottom:14px!important}
  .cmp-table div.prism-reveal > span:first-child{font-size:13.5px!important;line-height:1.35;text-wrap:pretty}
  .cmp-table div.prism-reveal > span:not(:first-child){font-size:18px!important}
  .cmp-table div.prism-reveal > span:nth-child(3){margin:-14px 0 -15px!important}
}

@media (max-width: 640px){
  [aria-label^="Items moving"] span[style*="nowrap"]{font-size:9px!important;letter-spacing:.04em!important;left:8px!important;right:6px!important;white-space:normal!important;line-height:1.2}
}
