/* ==========================================================================
   Veris brand system — website v3 (October 2026)

   The page ground is warm charcoal with Veris mint #2EFFD5 as the accent.
   Product moments use the Veris product palette: Deep Forest, Soft Off-White,
   Ink Black, Pale Mint and Muted Sage. Mint marks what matters (a pass, a
   primary action, the brand); everything else is neutral. No glows, no rainbow. Rounded display type
   at a measured weight; Inter for reading; JetBrains Mono for code.
   Tactile components press down.
   ========================================================================== */

:root {
  /* Ground */
  --bg:   #17181B;
  --bg-2: #1F2024;
  --bg-3: #28292E;
  --bg-4: #323339;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);

  /* Ink (warm white, by opacity-like steps; all AA on --bg) */
  --ink:   #F2F0EB;
  --ink-2: #B8B8B2;
  --ink-3: #8E8E88;

  /* Veris mint: block, its ink, its lip */
  --mint: #2EFFD5;  --mint-ink: #003A30;  --mint-lip: #12B897;  --mint-50: #D6FFF6;  --mint-50-ink: #00463A;

  /* Veris product palette: product sections, demos, diagrams, light cards */
  --forest:    #10251F;  /* Deep Forest: premium product demonstrations, dark product cards */
  --forest-2:  #15302A;
  --forest-3:  #1B3A33;
  --forest-4:  #22463D;
  --offwhite:  #F7FAF8;  /* Soft Off-White: in-product screens, light product cards */
  --inkblack:  #17211D;  /* Ink Black: text on light product surfaces */
  --palemint:  #E8F7F1;  /* Pale Mint: behind product features and diagrams */
  --sage:      #65736C;  /* Muted Sage: supporting text on light product surfaces */
  --hairline:  #DCE7E1;
  --paper: var(--offwhite); --paper-ink: var(--inkblack); --paper-mute: var(--sage);

  /* Functional status only (never decoration) */
  --warn: #FFBC2E; --error: #E05555;

  /* In-product light surface (phone screens) */
  --screen: var(--offwhite); --screen-ink: var(--inkblack); --screen-mute: var(--sage); --screen-line: var(--hairline);

  /* Type */
  --f-display: 'Parkinsans', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;
  --f-hand:    'Caveat', 'Comic Sans MS', cursive;

  /* Radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --rf: 999px;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1200px;

  /* Motion */
  /* Motion: strong ease-out for anything entering or responding; a restrained spring
     (about 0.2 bounce) only where a little life helps; iOS drawer curve for sheets and the dialog */
  --spring: cubic-bezier(.3, 1.22, .6, 1);
  --out:    cubic-bezier(.23, 1, .32, 1);
  --inout:  cubic-bezier(.77, 0, .175, 1);
  --drawer: cubic-bezier(.32, .72, 0, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; } /* we draw our own pressed states */
a, button, summary, [role="tab"] { touch-action: manipulation; } /* no double-tap zoom delay */
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--mint); color: var(--mint-ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: var(--r-sm); background: var(--mint); color: var(--mint-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* ---------- Logo (unchanged from the live site) ---------- */
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -0.03em; font-family: 'Outfit', sans-serif; }
.logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex-shrink: 0; animation: dot-pulse 3s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Display type ---------- */
.display { font: 700 clamp(42px, 6.2vw, 80px)/1 var(--f-display); letter-spacing: -.04em; }
.title   { font: 700 clamp(32px, 4vw, 52px)/1.05 var(--f-display); letter-spacing: -.035em; }
.hand    { font: 600 22px/1.1 var(--f-hand); letter-spacing: 0; }

/* ---------- Buttons: flat, a slight scale when pressed ---------- */
.btn {
  --b: var(--bg-3); --t: var(--ink); --lip: #0E0F11;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border: 0; border-radius: 12px;
  background: var(--b); color: var(--t); box-shadow: none;
  font: 650 15px/1 var(--f-body); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--out), filter 150ms var(--out), background-color 150ms var(--out);
}
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }
.btn--mint { --b: var(--mint); --t: var(--mint-ink); --lip: var(--mint-lip); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.1); }
  .btn:active { transform: scale(.97); }
}

/* ---------- Chips (neutral; mint dot on hover) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px; border-radius: var(--rf);
  background: var(--bg-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  font: 600 14px/1 var(--f-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--out), box-shadow 160ms var(--out), color 150ms;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); transition: background-color 150ms, box-shadow 150ms; }
.chip:active { transform: scale(.97) !important; }
.chip--ghost { background: transparent; color: var(--ink-2); box-shadow: none; padding: 0 6px; }
.chip--ghost::before { display: none; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
  .chip:hover::before { background: var(--mint); box-shadow: 0 0 0 3px rgba(46,255,213,.15); }
  .chip--ghost:hover { color: var(--ink); box-shadow: none; }
}

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(23,24,27,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 250ms; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__links > a, .nav__drop > button {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--rf);
  background: none; font: 600 14.5px/1 var(--f-body); color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color 150ms;
}
.nav__links > a:hover, .nav__drop > button:hover, .nav__drop > button[aria-expanded="true"] { background: var(--bg-3); }
.nav__drop { position: relative; }
.nav__drop > button svg { width: 10px; height: 10px; transition: transform 250ms var(--out); }
.nav__drop > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 10px); right: -40px; width: 320px; padding: 8px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 48px -16px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.97); transform-origin: calc(100% - 72px) top; /* grows from the Products button */
  transition: opacity 150ms var(--out), transform 200ms var(--out), visibility 0s linear 200ms;
}
.nav__drop > button[aria-expanded="true"] + .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__menu a { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); text-decoration: none; line-height: 1.3; transition: background-color 150ms; }
.nav__menu a:hover { background: var(--bg-3); }
.nav__menu .ic { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.nav__menu .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav__menu b { font: 700 15px/1.25 var(--f-display); letter-spacing: -.01em; }
.nav__menu small { font-size: 13px; color: var(--ink-2); }
.nav__menu .ic { background: rgba(46,255,213,.10); color: var(--mint); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__signin { font: 600 14.5px/1 var(--f-body); color: var(--ink-2); text-decoration: none; padding: 0 8px; transition: color 150ms; }
.nav__signin:hover { color: var(--ink); }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: var(--rf); border: 0; background: var(--bg-3); cursor: pointer; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.nav__burger span, .nav__burger span::before, .nav__burger span::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 250ms var(--out), background-color 150ms; }
.nav__burger span { position: relative; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; }
.nav__burger span::before { top: -5px; } .nav__burger span::after { top: 5px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.sheet { position: fixed; inset: 72px 0 0; z-index: 99; padding: 8px var(--gutter) calc(48px + env(safe-area-inset-bottom)); overflow-y: auto; background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 220ms, transform 300ms var(--out), visibility 0s linear 300ms; }
.sheet.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sheet h6 { margin: 24px 0 4px; font: 600 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sheet a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font: 800 24px/1.2 var(--f-display); letter-spacing: -.03em; text-decoration: none; }
.sheet .btn { display: flex; width: 100%; margin-top: 28px; }

@media (max-width: 960px) {
  .nav__links, .nav__signin, .nav__cta .btn { display: none; }
  .nav__burger { display: grid; }
  .nav__cta { margin-left: auto; }
}

/* Reduced motion: no movement, but keep short fades and colour changes that help comprehension */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important;
    transition-property: opacity, color, background-color, border-color, box-shadow, visibility !important; transition-duration: 160ms !important; transition-delay: 0s !important; }
}

/* ---------- Forest scope: re-tones any component for a Deep Forest product surface ---------- */
.on-forest {
  --bg-2: var(--forest); --bg-3: var(--forest-3); --bg-4: var(--forest-4);
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --ink: #F7FAF8; --ink-2: #B9CCC4; --ink-3: #8FA59C;
}
