/* ============================================================================
   INFI — Restaurant Growth Platform · core design system
   Bold, blue-forward, Apple/Square-caliber. Dual light + dark.
   Type: Clash Display (display) + General Sans (body), self-hosted.
   ========================================================================== */

/* ---------- TOKENS ---------- */
:root{
  /* brand blue — matches the real INFI kiosk hardware (cobalt + white) */
  --blue-50:#eef3ff; --blue-100:#dbe6ff; --blue-200:#b8ccff; --blue-300:#8aa9ff;
  --blue-400:#5c83ff; --blue-500:#2f5dff;   /* primary */
  --blue-600:#1f43e6; --blue-700:#1733b4; --blue-800:#142a8c; --blue-900:#0f1f5e;
  --blue:var(--blue-500);
  /* secondary accent — kept neutral within the Black/White/Gray/Blue palette
     (the old amber accent was dropped; these aliases now resolve to blue so any
     legacy .btn--amber / .amber-ink / amber bloom renders on-palette). */
  --amber-400:#8aa9ff; --amber:#5c83ff; --amber-600:#1f43e6;
  /* ink / paper */
  --ink:#0a0e1a; --ink-2:#141a2e;
  --paper:#ffffff; --paper-2:#f4f7fd; --paper-3:#e9effb;

  /* semantic — LIGHT */
  --bg:var(--paper);
  --bg-soft:var(--paper-2);
  --surface:#ffffff;
  --text:#0a0e1a;
  --text-2:#41496a;
  --text-3:#4f5a78;
  --line:rgba(16,32,94,.12);
  --line-2:rgba(16,32,94,.07);
  --brand:var(--blue-500);
  --brand-text:var(--blue-700);          /* brand color used as small text — darker for stronger AA on glass */
  --on-brand:#ffffff;
  --ring:rgba(47,93,255,.35);
  --shadow-sm:0 1px 2px rgba(13,24,72,.07), 0 2px 8px rgba(13,24,72,.06);
  /* crisper + a touch darker: cards must clearly lift off the toned-gray field */
  --shadow:0 4px 12px -4px rgba(13,24,72,.16), 0 18px 38px -14px rgba(13,24,72,.27);
  --shadow-lg:0 8px 22px -8px rgba(13,24,72,.2), 0 46px 88px -34px rgba(13,24,72,.42);
  --glow:0 0 0 1px rgba(47,93,255,.14), 0 30px 80px -30px rgba(47,93,255,.45);

  /* type */
  --display:'Clash Display','General Sans',system-ui,sans-serif;
  --body:'General Sans',system-ui,-apple-system,sans-serif;
  --fw-disp:700; --fw-disp-2:600;

  /* shape + space */
  --r-sm:12px; --r:18px; --r-lg:26px; --r-xl:34px; --r-pill:999px;
  --maxw:1240px; --gut:clamp(20px,5vw,72px);

  /* motion */
  --ease:cubic-bezier(.16,1,.3,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
  --dur:.6s;

  color-scheme:light;
}

@media (prefers-color-scheme: dark){html:not([data-theme="light"]){
    --bg:#06080f;
    --bg-soft:#0a0e1a;
    --surface:#101627;
    --text:#f3f6ff;
    --text-2:#aeb9da;
    --text-3:#7e88ad;
    --line:rgba(255,255,255,.12);
    --line-2:rgba(255,255,255,.06);
    --brand:#5c83ff;
    --brand-text:#b3c6ff;
    --ring:rgba(120,150,255,.45);
    --shadow-sm:0 1px 2px rgba(0,0,0,.4);
    --shadow:0 14px 40px -14px rgba(0,0,0,.6);
    --shadow-lg:0 50px 110px -36px rgba(0,0,0,.75);
    --glow:0 0 0 1px rgba(120,150,255,.18), 0 36px 90px -30px rgba(60,100,255,.5);
    color-scheme:dark;
  }}
html[data-theme="dark"]{
    --bg:#06080f;
    --bg-soft:#0a0e1a;
    --surface:#101627;
    --text:#f3f6ff;
    --text-2:#aeb9da;
    --text-3:#7e88ad;
    --line:rgba(255,255,255,.12);
    --line-2:rgba(255,255,255,.06);
    --brand:#5c83ff;
    --brand-text:#b3c6ff;
    --ring:rgba(120,150,255,.45);
    --shadow-sm:0 1px 2px rgba(0,0,0,.4);
    --shadow:0 14px 40px -14px rgba(0,0,0,.6);
    --shadow-lg:0 50px 110px -36px rgba(0,0,0,.75);
    --glow:0 0 0 1px rgba(120,150,255,.18), 0 36px 90px -30px rgba(60,100,255,.5);
    color-scheme:dark;
  }


/* ---------- RESET ---------- */
*,*::before,*::after{box-sizing:border-box}
*{margin:0}
/* overflow-x:clip on the ROOT (not just body) kills the horizontal scroll a phone
   gets on first paint: every [data-rise="left"|"right"] reveal parks its element at
   translateX(∓48px) off-screen until the IntersectionObserver fires, so any below-fold
   slide-in element overhangs the viewport edge and the page pans sideways until you
   scroll it into view. body{overflow-x:clip} alone does NOT propagate to the viewport on
   iOS Safari, so the pan survived; clipping at html contains it cross-browser. `clip`
   (not hidden) creates no scroll container, so sticky/fixed nav + smooth-scroll are intact. */
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:clip}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}
body{
  font-family:var(--body);
  background:transparent; color:var(--text);   /* transparent so the .amb toned field shows through (gives white glass its contrast) */
  line-height:1.6; font-weight:400;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:clip;
}
img,video,svg{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
::selection{background:var(--blue-500);color:#fff}

/* ---------- TYPE SCALE (editorial, confident) ---------- */
/* word-spacing compensates Clash Display's very narrow space glyph (700 wt ≈ .14em),
   which the negative letter-spacing below otherwise collapses into word-jamming.
   overflow-wrap guards every display heading from clipping off the right edge on
   narrow mobile viewports (long words break instead of overflowing the viewport). */
.h-display{font-family:var(--display);font-weight:var(--fw-disp);line-height:.96;letter-spacing:-.03em;word-spacing:.12em;
  overflow-wrap:break-word;font-size:clamp(2.4rem,7.4vw,6.6rem)}
.h1{font-family:var(--display);font-weight:var(--fw-disp);line-height:1;letter-spacing:-.028em;word-spacing:.12em;
  overflow-wrap:break-word;font-size:clamp(2.1rem,5.2vw,4.4rem)}
.h2{font-family:var(--display);font-weight:var(--fw-disp);line-height:1.02;letter-spacing:-.025em;word-spacing:.12em;
  overflow-wrap:break-word;font-size:clamp(1.8rem,4vw,3.4rem)}
.h3{font-family:var(--display);font-weight:var(--fw-disp-2);line-height:1.08;letter-spacing:-.02em;word-spacing:.05em;
  overflow-wrap:break-word;font-size:clamp(1.4rem,2.4vw,2.1rem)}
/* Visually-hidden (screen-reader-only): used for bridge section headings that keep the
   heading outline sequential (h1→h2→h3, no skips) without altering the visual design. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.lead{font-size:clamp(1.12rem,1.7vw,1.45rem);line-height:1.5;color:var(--text-2);font-weight:450;max-width:60ch;overflow-wrap:break-word}
.eyebrow{font-family:var(--body);font-weight:600;font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--brand-text);display:inline-flex;align-items:center;gap:.6em}
.eyebrow::before{content:"";width:1.6em;height:1px;background:currentColor;opacity:.6}
.muted{color:var(--text-3)}
.amber-ink{color:var(--blue-600)}
@media (prefers-color-scheme: dark){html:not([data-theme="light"]) .amber-ink{color:var(--blue-300)}}
html[data-theme="dark"] .amber-ink{color:var(--blue-300)}


/* gradient/clipped display accent word — all-blue (no warm stop) */
.grad{background:linear-gradient(108deg,var(--blue-600),var(--blue-400) 55%,var(--blue-300) 120%);
  -webkit-background-clip:text;background-clip:text;color:transparent}

/* ---------- LAYOUT ---------- */
.wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gut)}
.section{padding-block:clamp(60px,7vw,108px)}
.section--tight{padding-block:clamp(40px,5vw,76px)}

/* ---------- BUTTONS ---------- */
.btn{display:inline-flex;align-items:center;gap:.55em;font-family:var(--body);font-weight:600;
  font-size:1rem;line-height:1;padding:1.05em 1.7em;border-radius:var(--r-pill);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease),background .25s,color .25s;
  white-space:nowrap;will-change:transform}
.btn:active{transform:translateY(1px) scale(.99)}
.btn--primary{background:var(--blue-500);color:#fff;box-shadow:0 12px 30px -10px var(--ring)}
.btn--primary:hover{background:var(--blue-600);transform:translateY(-2px);box-shadow:0 20px 44px -14px var(--ring)}
.btn--amber{background:var(--blue-700);color:#fff;box-shadow:0 12px 30px -10px var(--ring)}
.btn--amber:hover{background:var(--blue-800);transform:translateY(-2px)}
.btn--ghost{background:color-mix(in srgb,var(--text) 6%,transparent);color:var(--text);border:1px solid var(--line)}
.btn--ghost:hover{background:color-mix(in srgb,var(--text) 11%,transparent);transform:translateY(-2px)}
.btn--lg{font-size:1.06rem;padding:1.15em 2em}
.btn .ico{width:1.05em;height:1.05em;transition:transform .25s var(--ease)}
.btn:hover .ico{transform:translateX(3px)}

/* ---------- NAV — solid initially, frosted glass on scroll (Apple pattern) ---------- */
.nav{position:fixed;inset:0 0 auto;z-index:90;
  background:var(--bg);
  border-bottom:1px solid var(--line-2);
  transition:background .4s,backdrop-filter .4s,border-color .35s,box-shadow .35s}
.nav.is-stuck{
  background:color-mix(in srgb,var(--bg) 76%,transparent);
  -webkit-backdrop-filter:saturate(200%) blur(20px);backdrop-filter:saturate(200%) blur(20px);
  border-bottom-color:var(--line-2);
  box-shadow:0 1px 0 var(--line-2),var(--glass-hi)}
@media (prefers-color-scheme: dark){html:not([data-theme="light"]) .nav{background:var(--bg)}html:not([data-theme="light"]) .nav.is-stuck{background:color-mix(in srgb,var(--bg) 70%,transparent)}}
html[data-theme="dark"] .nav{background:var(--bg)}html[data-theme="dark"] .nav.is-stuck{background:color-mix(in srgb,var(--bg) 70%,transparent)}

.nav__in{display:flex;align-items:center;gap:30px;height:70px}
.nav__logo{font-family:var(--display);font-weight:700;font-size:1.45rem;letter-spacing:.02em}
.nav__links{display:flex;gap:6px;margin-left:14px}
.nav__links a, .nav__has > button{display:inline-flex;align-items:center;gap:.3em;padding:.55em .8em;border-radius:10px;white-space:nowrap;
  font-weight:500;font-size:.97rem;color:var(--text-2);transition:color .2s,background .2s}
.nav__links a:hover,.nav__has:hover > button{color:var(--text);background:color-mix(in srgb,var(--text) 6%,transparent)}
.nav__has{position:relative}
.nav__drop{position:absolute;top:calc(100% + 8px);left:0;min-width:274px;padding:8px;border-radius:18px;
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-lg);
  opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s var(--ease)}
.nav__has:hover .nav__drop,.nav__has:focus-within .nav__drop{opacity:1;visibility:visible;transform:none}
.nav__drop a{display:block;padding:.6em .8em;border-radius:11px;color:var(--text-2);font-size:.94rem}
.nav__drop a:hover{background:var(--bg-soft);color:var(--brand-text)}
.nav__drop--right{left:auto;right:0;min-width:248px}
.nav__drop a small{display:block;font-size:.74rem;color:var(--text-3);font-weight:500;margin-top:1px}
.nav__has--login>button{cursor:pointer;background:none;border:0;font:inherit}
.nav__cta{margin-left:auto;display:flex;align-items:center;gap:12px}
.nav__login{font-weight:500;color:var(--text-2);padding:.55em .7em}
.nav__login:hover{color:var(--text)}
/* ---------- THEME TOGGLE BUTTON ---------- */
/* Auto/Light/Dark segmented theme control (footer + mobile drawer) */
.themebox{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.themebox__lbl{font-size:.78rem;font-weight:600;color:var(--text-3)}
.themeseg{display:inline-flex;gap:3px;padding:3px;border-radius:var(--r-pill);border:1px solid var(--line);background:color-mix(in srgb,var(--text) 5%,transparent)}
.themeseg button{appearance:none;-webkit-appearance:none;border:0;background:transparent;cursor:pointer;font-family:inherit;font-size:.76rem;font-weight:600;color:var(--text-3);padding:.36em .85em;border-radius:var(--r-pill);transition:color .2s,background .2s}
.themeseg button:hover{color:var(--text)}
.themeseg button[aria-pressed="true"]{background:var(--blue-500);color:#fff}
.foot .themebox__lbl{color:#9aa7c4}
.foot .themeseg{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.05)}
.foot .themeseg button{color:#aeb9d4}.foot .themeseg button:hover{color:#fff}
.foot .themeseg button[aria-pressed="true"]{background:var(--blue-500);color:#fff}
.mnav__theme{margin-top:16px}

@media (max-width:900px){.nav__links,.nav__login,.nav__has--login{display:none}}
/* MOBILE NAV FIT — the logo <img> was the only shrinkable flex item in a too-wide
   row (big gap + Book-a-Demo button), so it got squeezed to ~50px wide while its
   height stayed 23px → the wordmark looked STRETCHED. Lock the logo to its natural
   aspect (never shrink, ignore the global img max-width:100%) and tighten the row. */
@media (max-width:900px){
  .nav__in{gap:14px}
  .nav__logo{flex:0 0 auto}
  .nav__logo img{max-width:none;width:auto}
}
@media (max-width:380px){
  /* tightest phones: trim the CTA so logo + toggle + CTA + burger still fit cleanly */
  .nav__in{gap:10px}
  .nav .nav__cta .btn--primary{padding:.85em 1.05em;font-size:.92rem}
}

/* ---------- FOOTER ---------- */
.foot{background:var(--ink);color:#c7cfe6;padding-block:clamp(56px,7vw,96px) 34px;
  border-top:1px solid rgba(255,255,255,.08)}
@media (prefers-color-scheme: dark){html:not([data-theme="light"]) .foot{background:#04060c}}
html[data-theme="dark"] .foot{background:#04060c}

.foot__grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:40px}
.foot__brand .nav__logo{color:#fff;font-size:1.6rem}
.foot__tag{margin-top:14px;max-width:34ch;color:#8c97b8;font-size:.95rem}
.foot h4{color:#fff;font-size:.82rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:14px;font-weight:600}
.foot a{color:#aab4d2;font-size:.94rem;display:block;padding:5px 0;transition:color .2s}
.foot a:hover{color:#fff}
.foot__bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;
  margin-top:46px;padding-top:26px;border-top:1px solid rgba(255,255,255,.1);color:#7e88ad;font-size:.88rem}
.foot__legal{display:flex;gap:18px;flex-wrap:wrap}
.foot__legal a{display:inline;padding:0;color:#7e88ad;font-size:.88rem}
.foot__legal a:hover{color:#fff}
@media (max-width:760px){.foot__grid{grid-template-columns:1fr 1fr}.foot__brand{grid-column:1/-1}}

/* ---------- MOTION UTILITIES (reveal-once, JS-gated, reduced-motion safe) ---------- */
@media (prefers-reduced-motion: no-preference){
  html.js [data-reveal]{opacity:0;transform:translateY(30px);
    transition:opacity 1.6s var(--ease),transform 1.6s var(--ease)}
  html.js [data-reveal].in{opacity:1;transform:none}
  html.js [data-reveal="scale"]{transform:translateY(24px) scale(.96)}
  html.js [data-reveal] [data-stagger]{opacity:0;transform:translateY(20px);
    transition:opacity 1.4s var(--ease),transform 1.4s var(--ease)}
  html.js [data-reveal].in [data-stagger]{opacity:1;transform:none}
}
.focus-ring:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:8px}

/* ============================================================================
   LIQUID GLASS LAYER — Apple Liquid Glass reference (8.02.02) + Dribbble refs.
   Key: 2px bright top-edge refraction, gradient fill, strong blur (40px),
   saturated ambient field that shows through the glass. Thick glass, not film.
   ========================================================================== */
:root{
  /* glass fill: lighter on top (refracted light) → translucent on bottom */
  --glass:rgba(255,255,255,.36);            /* clearer glass — the field/atmosphere refracts through */
  --glass-strong:rgba(255,255,255,.6);
  --glass-brd:rgba(255,255,255,0);          /* FRAMELESS — no border (user removed it) */
  --glass-brd-soft:rgba(255,255,255,0);
  /* THE SIGNATURE (frameless thick glass): bright TOP specular edge + a soft
     COOL INNER REFRACTION GLOW (light bending inside the slab) + a DARK
     BOTTOM-INNER BEVEL. No full-perimeter outline. Consumed by every card
     sitewide (.glass, .pcard, .stat, .poschip, .velo__c, .comp.glass …). */
  --glass-hi:
    inset 0 1.5px 0 rgba(255,255,255,.95),
    inset 0 16px 36px -18px rgba(120,160,255,.32),
    inset 0 -22px 34px -22px rgba(14,28,66,.48),
    inset 0 -3px 2px -1px rgba(14,28,66,.12);
  /* stronger frosted blur so the refraction reads clearly — atmosphere shows through */
  --glass-blur: saturate(235%) blur(48px) brightness(1.03);
  /* convex top sheen layer for .glass panels (curved glass face) */
  --glass-sheen:radial-gradient(155% 110% at 30% -22%, rgba(255,255,255,.55), rgba(255,255,255,.1) 38%, rgba(255,255,255,0) 60%);
  /* ambient field: TONED gray (not near-white) so white glass pops, + an edge
     vignette so even centre panels sit against a gradient. */
  --amb-base:#dce3ee;
  --amb-1:rgba(120,90,235,.17);  /* cyan-blue — left bloom (cooled to kill any violet cast) */
  --amb-2:rgba(55,185,225,.15);  /* cyan-blue — top-right, soft */
  --amb-3:rgba(228,100,190,.13);  /* slate echo (was amber) */
  --amb-4:rgba(70,120,255,.15);  /* bottom-right corner */
  --amb-vignette:rgba(18,34,76,.17);
}
@media (prefers-color-scheme: dark){html:not([data-theme="light"]){
    --glass:rgba(22,32,72,.4);
    --glass-strong:rgba(30,46,100,.6);
    --glass-brd:rgba(255,255,255,0);
    --glass-brd-soft:rgba(255,255,255,0);
    --glass-hi:
      inset 0 1.5px 0 rgba(255,255,255,.3),
      inset 0 16px 38px -18px rgba(90,140,255,.34),
      inset 0 -18px 30px -22px rgba(0,0,0,.58),
      inset 0 -2px 1px rgba(0,0,0,.4);
    --glass-blur: saturate(220%) blur(48px) brightness(1.05);
    --glass-sheen:radial-gradient(155% 110% at 30% -22%, rgba(255,255,255,.22), rgba(255,255,255,.05) 38%, rgba(255,255,255,0) 58%);
    --amb-base:#04060e;
    --amb-1:rgba(130,80,255,.44);
    --amb-2:rgba(40,165,225,.40);
    --amb-3:rgba(215,85,185,.26);   /* slate (was amber) */
    --amb-4:rgba(70,120,255,.34);
    --amb-vignette:rgba(0,0,0,.6);
  }}
html[data-theme="dark"]{
    --glass:rgba(22,32,72,.4);
    --glass-strong:rgba(30,46,100,.6);
    --glass-brd:rgba(255,255,255,0);
    --glass-brd-soft:rgba(255,255,255,0);
    --glass-hi:
      inset 0 1.5px 0 rgba(255,255,255,.3),
      inset 0 16px 38px -18px rgba(90,140,255,.34),
      inset 0 -18px 30px -22px rgba(0,0,0,.58),
      inset 0 -2px 1px rgba(0,0,0,.4);
    --glass-blur: saturate(220%) blur(48px) brightness(1.05);
    --glass-sheen:radial-gradient(155% 110% at 30% -22%, rgba(255,255,255,.22), rgba(255,255,255,.05) 38%, rgba(255,255,255,0) 58%);
    --amb-base:#04060e;
    --amb-1:rgba(130,80,255,.44);
    --amb-2:rgba(40,165,225,.40);
    --amb-3:rgba(215,85,185,.26);   /* slate (was amber) */
    --amb-4:rgba(70,120,255,.34);
    --amb-vignette:rgba(0,0,0,.6);
  }

/* fixed ambient field — must be VIVID to show through glass */
html{background:var(--amb-base)}
.amb{position:fixed;inset:0;z-index:-2;pointer-events:none;overflow:hidden;
  background:
    radial-gradient(125% 115% at 50% 32%, transparent 44%, var(--amb-vignette) 100%),
    radial-gradient(56vmax 50vmax at 8% -4%,  var(--amb-1), transparent 58%),
    radial-gradient(48vmax 44vmax at 96% 8%,  var(--amb-2), transparent 60%),
    radial-gradient(58vmax 52vmax at 82% 96%, var(--amb-4), transparent 58%),
    radial-gradient(42vmax 38vmax at 14% 98%, var(--amb-3), transparent 56%),
    var(--amb-base)}

/* ===== AMBIENT ATMOSPHERE — drifting geo blobs + slow light beams on EVERY page
   (the home hero's signature flow effect, made reusable). Gives the now-clearer
   glass colourful motion to refract. Pure transform/opacity, reduced-motion safe. */
.amb__geo{position:absolute;border-radius:50%;pointer-events:none;will-change:transform}
.amb__g1{width:42vw;height:42vw;right:-10vw;top:-12vw;
  background:radial-gradient(circle at 42% 40%,rgba(47,93,255,.30),rgba(47,93,255,0) 64%);filter:blur(12px);animation:ambflow1 26s var(--ease-io) infinite alternate}
.amb__g2{width:34vw;height:34vw;left:-12vw;top:32vh;
  background:radial-gradient(circle at 50% 50%,rgba(40,170,255,.22),transparent 62%);filter:blur(14px);animation:ambflow2 32s var(--ease-io) infinite alternate}
.amb__g3{width:30vw;height:30vw;right:6vw;bottom:-12vw;
  background:radial-gradient(circle at 50% 50%,rgba(96,150,255,.20),transparent 64%);filter:blur(14px);animation:ambflow3 30s var(--ease-io) infinite alternate}
.amb__ring{position:absolute;left:-8vw;top:6vh;width:32vw;height:32vw;border-radius:50%;
  border:1px solid rgba(47,93,255,.13);
  -webkit-mask:radial-gradient(circle,transparent 57%,#000 59%);mask:radial-gradient(circle,transparent 57%,#000 59%);
  animation:ambspin 80s linear infinite}
.amb__beam{position:absolute;height:1.5px;width:160%;left:-30%;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(120,160,255,.55),transparent);filter:blur(.5px)}
.amb__b1{top:28%;transform:rotate(-10deg);animation:ambbeam 11s linear infinite}
.amb__b2{top:74%;transform:rotate(-10deg);animation:ambbeam 15s linear infinite 4s}
@keyframes ambflow1{to{transform:translate3d(6%,5%,0) scale(1.12)}}
@keyframes ambflow2{to{transform:translate3d(-5%,7%,0) scale(1.15)}}
@keyframes ambflow3{to{transform:translate3d(5%,-6%,0) scale(1.1)}}
@keyframes ambspin{to{transform:rotate(360deg)}}
@keyframes ambbeam{0%{opacity:0;transform:translateX(-14%) rotate(-10deg)}12%{opacity:.7}84%{opacity:.5}100%{opacity:0;transform:translateX(14%) rotate(-10deg)}}
@media (prefers-color-scheme: dark){html:not([data-theme="light"]) .amb__g1{background:radial-gradient(circle at 42% 40%,rgba(55,100,255,.5),transparent 64%)}html:not([data-theme="light"]) .amb__g2{background:radial-gradient(circle at 50% 50%,rgba(40,150,255,.36),transparent 62%)}html:not([data-theme="light"]) .amb__g3{background:radial-gradient(circle at 50% 50%,rgba(96,150,255,.34),transparent 64%)}html:not([data-theme="light"]) .amb__beam{background:linear-gradient(90deg,transparent,rgba(140,180,255,.85),transparent)}html:not([data-theme="light"]) .amb__ring{border-color:rgba(120,150,255,.2)}}
html[data-theme="dark"] .amb__g1{background:radial-gradient(circle at 42% 40%,rgba(55,100,255,.5),transparent 64%)}html[data-theme="dark"] .amb__g2{background:radial-gradient(circle at 50% 50%,rgba(40,150,255,.36),transparent 62%)}html[data-theme="dark"] .amb__g3{background:radial-gradient(circle at 50% 50%,rgba(96,150,255,.34),transparent 64%)}html[data-theme="dark"] .amb__beam{background:linear-gradient(90deg,transparent,rgba(140,180,255,.85),transparent)}html[data-theme="dark"] .amb__ring{border-color:rgba(120,150,255,.2)}

@media (prefers-reduced-motion:reduce){.amb__geo,.amb__ring{animation:none}.amb__beam{display:none}}

/* frosted glass panel — convex sheen + gradient fill = Apple thick-glass look.
   The sheen radial sits on top of the fill (curved top face catching light);
   --glass-hi paints the bright-top + dark-bottom bevel that sells thickness. */
.glass{
  background:
    var(--glass-sheen),
    radial-gradient(120% 130% at 112% 116%, rgba(70,140,255,.16), transparent 52%),
    radial-gradient(120% 120% at -12% -8%, rgba(150,200,255,.12), transparent 50%),
    linear-gradient(168deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.16) 100%);
  -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-brd-soft);
  box-shadow:var(--glass-hi), 0 24px 64px -18px rgba(20,50,160,.2), var(--shadow);
}
.glass--strong{
  background:
    var(--glass-sheen),
    linear-gradient(168deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.46) 100%);
  border-color:var(--glass-brd);
  box-shadow:
    inset 0 2.5px 0 rgba(255,255,255,1),
    inset 0 0 0 2px rgba(255,255,255,.66),
    inset 0 -18px 30px -22px rgba(14,28,66,.5),
    inset 0 -2px 1px rgba(14,28,66,.14),
    0 34px 82px -20px rgba(20,50,160,.28),
    var(--shadow-lg);
}
@media (prefers-color-scheme: dark){html:not([data-theme="light"]) .glass{
    background:
      var(--glass-sheen),
      linear-gradient(168deg, rgba(40,64,160,.52) 0%, rgba(18,34,90,.34) 100%);
    box-shadow:var(--glass-hi), 0 24px 64px -18px rgba(0,0,0,.56), var(--shadow);
  }html:not([data-theme="light"]) .glass--strong{
    background:
      var(--glass-sheen),
      linear-gradient(168deg, rgba(52,80,180,.62) 0%, rgba(24,44,110,.44) 100%);
    box-shadow:
      inset 0 2.5px 0 rgba(255,255,255,.4),
      inset 0 0 0 2px rgba(255,255,255,.2),
      inset 0 -20px 32px -22px rgba(0,0,0,.62),
      inset 0 -2px 1px rgba(0,0,0,.42),
      0 34px 82px -20px rgba(0,0,0,.72),
      var(--shadow-lg);
  }}
html[data-theme="dark"] .glass{
    background:
      var(--glass-sheen),
      linear-gradient(168deg, rgba(40,64,160,.52) 0%, rgba(18,34,90,.34) 100%);
    box-shadow:var(--glass-hi), 0 24px 64px -18px rgba(0,0,0,.56), var(--shadow);
  }html[data-theme="dark"] .glass--strong{
    background:
      var(--glass-sheen),
      linear-gradient(168deg, rgba(52,80,180,.62) 0%, rgba(24,44,110,.44) 100%);
    box-shadow:
      inset 0 2.5px 0 rgba(255,255,255,.4),
      inset 0 0 0 2px rgba(255,255,255,.2),
      inset 0 -20px 32px -22px rgba(0,0,0,.62),
      inset 0 -2px 1px rgba(0,0,0,.42),
      0 34px 82px -20px rgba(0,0,0,.72),
      var(--shadow-lg);
  }


/* nav becomes a floating glass capsule */
.nav__in{margin-top:0}
.nav.is-stuck{
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.78) 100%);
  border-bottom-color:rgba(255,255,255,.85);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 2px 0 rgba(255,255,255,1),0 8px 32px -8px rgba(20,50,160,.14);
}
@media (prefers-color-scheme: dark){html:not([data-theme="light"]) .nav.is-stuck{
    background: linear-gradient(180deg, rgba(28,42,100,.86) 0%, rgba(18,28,72,.70) 100%);
    border-bottom-color:rgba(255,255,255,.14);
    box-shadow:inset 0 1.5px 0 rgba(255,255,255,.24),0 8px 32px -8px rgba(0,0,0,.5);
  }}
html[data-theme="dark"] .nav.is-stuck{
    background: linear-gradient(180deg, rgba(28,42,100,.86) 0%, rgba(18,28,72,.70) 100%);
    border-bottom-color:rgba(255,255,255,.14);
    box-shadow:inset 0 1.5px 0 rgba(255,255,255,.24),0 8px 32px -8px rgba(0,0,0,.5);
  }


/* card sheen on hover — more luminous refraction sweep */
.sheen{position:relative;overflow:hidden}
.sheen::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;
  background:linear-gradient(115deg,
    transparent 28%,
    rgba(255,255,255,.15) 38%,
    rgba(255,255,255,.75) 47%,
    rgba(255,255,255,.90) 50%,
    rgba(255,255,255,.75) 53%,
    rgba(255,255,255,.15) 62%,
    transparent 72%);
  transform:translateX(-35%);transition:opacity .45s,transform .85s var(--ease)}
.sheen:hover::before{opacity:1;transform:translateX(35%)}
@media (prefers-color-scheme: dark){html:not([data-theme="light"]) .sheen::before{background:linear-gradient(115deg,transparent 28%,rgba(255,255,255,.04) 38%,rgba(255,255,255,.22) 50%,rgba(255,255,255,.04) 62%,transparent 72%)}}
html[data-theme="dark"] .sheen::before{background:linear-gradient(115deg,transparent 28%,rgba(255,255,255,.04) 38%,rgba(255,255,255,.22) 50%,rgba(255,255,255,.04) 62%,transparent 72%)}


/* ===== UNIFIED GLASS-CARD HOVER — ONE consistent lift + cool rim-glow on every
   glass surface sitewide. body-prefixed so it beats per-page inline `.card:hover`
   rules by specificity (0,2,1 > 0,2,0), giving identical hover behaviour everywhere. */
body :is(.glass,.glass--strong,.pcard,.stat,.fcard,.hwc,.poschip,.velo__c,.spec-card,.merch-card,.repcard,.syncc,.qcard,.tcard,.vcard,.sol,.fc,.eco-hub__node--peer){
  transition:transform .45s var(--ease),box-shadow .45s var(--ease),background .4s var(--ease)}
@media (prefers-reduced-motion:no-preference){
  body :is(.glass,.pcard,.stat,.fcard,.hwc,.poschip,.velo__c,.spec-card,.merch-card,.repcard,.syncc,.qcard,.tcard,.vcard,.fc,.eco-hub__node--peer):hover{
    transform:translateY(-6px);
    box-shadow:var(--glass-hi), inset 0 0 0 1px rgba(150,190,255,.22), 0 0 30px -8px rgba(80,140,255,.32), 0 28px 64px -24px rgba(20,50,160,.42), var(--shadow-lg)}
  body :is(.sol):hover{transform:translateY(-6px) scale(1.012)}
}
@media (prefers-reduced-transparency: reduce){
  :root{--glass:#fff;--glass-strong:#fff;--glass-blur:none}
  @media (prefers-color-scheme: dark){:root{--glass:#121a2e;--glass-strong:#16203a}}
}

.foot__h{font-size:.95rem;letter-spacing:.04em;text-transform:uppercase;font-weight:700;color:rgba(255,255,255,.9);margin:0 0 14px}

/* ============================================================================
   MAGIC MOVE — cross-document View Transitions (Keynote-style shared-element morph)
   Pages behave like slides. Any element that carries the SAME `view-transition-name`
   on two pages morphs from its position/size/appearance on the page you leave into
   the one you arrive at. Native + progressive: browsers without support just navigate.
   Shared names are assigned per page (home product cards ↔ product-page heroes, home
   industry tiles ↔ solution-page heroes). nav + footer persist so the frame holds still.
   ========================================================================== */
@view-transition{ navigation:auto; }

@media (prefers-reduced-motion: no-preference){
  /* every morphing pair travels + eases like Magic Move */
  ::view-transition-group(*){ animation-duration:.62s; animation-timing-function:var(--ease); }
  ::view-transition-image-pair(*){ animation-duration:.62s; animation-timing-function:var(--ease); }
  /* unmatched page content: gentle lift + fade so it reads as intentional, not a flash */
  ::view-transition-old(root){ animation:mm-out .40s var(--ease) both; }
  ::view-transition-new(root){ animation:mm-in .52s var(--ease) both; }
}
@keyframes mm-out{ to{ opacity:0; transform:scale(.99) translateY(-8px); } }
@keyframes mm-in{ from{ opacity:0; transform:scale(1.01) translateY(12px); } }

@media (prefers-reduced-motion: reduce){
  ::view-transition-group(*),::view-transition-image-pair(*),::view-transition-old(*),::view-transition-new(*){ animation:none !important; }
}

/* persistent chrome — identical name on every page → nav & footer stay put (the slide
   frame) while the shared object morphs between them */
.nav{ view-transition-name:vt-nav; }
.foot{ view-transition-name:vt-foot; }

/* ============================================================================
   MOBILE OPTIMIZATION — performance-first glass + touch-native motion (≤760px)
   The phone experience was "much worse" for two reasons screenshots can't show:
   (1) backdrop-filter:blur(48px) re-samples the backdrop EVERY scroll frame on
       20-34 glass cards per page → severe scroll jank on real phones; and
   (2) the rich desktop motion (hover sheen, card lift) is pointer-only, so touch
       got a flat, lifeless surface.
   Fixes: the blur radius is the dominant GPU cost, so it's cut hard — the frosted
   look is carried by the gradient fill + bright top edge, which stay; touch gets
   its own press + reveal-shimmer vocabulary. `html:root` (0,1,1) placed AFTER the
   dark [data-theme] blocks wins the token-override specificity war in every theme.
   ========================================================================== */
@media (max-width:760px){
  html:root{
    /* frosted, but ~3x cheaper to sample — visually near-identical at phone DPR */
    --glass-blur:saturate(170%) blur(18px);
    --gut:clamp(17px,5.2vw,72px);
  }
  /* the nav/mobile-menu frost can stay a touch heavier (one element, not per-card) */
  .mnav{-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}
  /* trim the giant blob blur a notch — fixed field, cheaper raster, same colour */
  .amb__g1,.amb__g3{filter:blur(10px)}
  .amb__g2{filter:blur(11px)}
  /* SCROLL-PROGRESS BAR — a phone-only signature flourish. Pure CSS via body::before
     + a scroll-driven timeline (GPU-composited, runs off the main thread = buttery).
     @supports-gated so browsers without scroll-driven animation simply never paint it
     (zero cost, no JS, no markup). The blue gradient echoes the changelog spine. */
  @supports (animation-timeline:scroll()){
    body::before{content:"";position:fixed;top:0;left:0;right:0;height:3px;z-index:200;
      transform:scaleX(0);transform-origin:0 50%;pointer-events:none;
      background:linear-gradient(90deg,var(--blue-400),var(--blue-600) 55%,var(--blue-400));
      box-shadow:0 0 12px -1px rgba(47,93,255,.55);
      animation:scrollprog linear both;animation-timeline:scroll(root)}
  }
}
@keyframes scrollprog{to{transform:scaleX(1)}}

/* TOUCH-NATIVE PRESS — tactile feedback that replaces the hover-lift on phones.
   Cards/links/buttons give a quick, springy push-in when tapped (iOS-like). */
@media (hover:none){
  body :is(.glass,.glass--strong,.pcard,.stat,.fcard,.hwc,.poschip,.velo__c,.spec-card,
    .merch-card,.repcard,.syncc,.qcard,.tcard,.vcard,.sol,.fc,.quote,.eco-hub__node--peer,
    .hub-m__n,.pos-logo):active{
    transform:scale(.972);
    transition:transform .11s var(--ease);
  }
  .btn:active{transform:scale(.96)}
  /* kill the sticky-hover lift that otherwise gets stuck "up" after a tap on touch */
  @media (prefers-reduced-motion:no-preference){
    body :is(.glass,.pcard,.stat,.fcard,.hwc,.poschip,.velo__c,.spec-card,.merch-card,
      .repcard,.syncc,.qcard,.tcard,.vcard,.fc,.eco-hub__node--peer):hover{transform:none}
    body :is(.sol):hover{transform:none}
    .sol:hover img{transform:none}
  }
}

/* REVEAL-SHIMMER — the .sheen light-sweep is hover-driven, so it never fires on
   touch. Replay it ONCE, gently, as each sheen card scrolls into view: the phone
   gets the signature liquid-glass light pass instead of a dead surface. */
@media (hover:none) and (prefers-reduced-motion:no-preference){
  html.js [data-rise].in .sheen::before,
  html.js [data-rise].in.sheen::before{
    animation:sheen-reveal 2.3s var(--ease) .24s 1 both;
  }
}
@keyframes sheen-reveal{
  0%{opacity:0;transform:translateX(-40%)}
  34%{opacity:.62}
  100%{opacity:0;transform:translateX(40%)}
}

/* MOBILE MENU MUST SCROLL — the full-screen menu's content (8 products + sections +
   sign-in + the Book-a-Demo CTA) is taller than a phone viewport, but it shipped with
   overflow:visible, so the bottom items (the CTA included) were clipped and unreachable
   on shorter phones. `.mnav.mnav` (0,2,0) outranks the per-page inline `.mnav` (0,1,0)
   in every theme, so this fixes home + all built pages from the one shared sheet. */
.mnav.mnav{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
/* a little extra bottom breathing room so the CTA clears any phone home-indicator */
.mnav{padding-bottom:max(40px,env(safe-area-inset-bottom,0px))}

/* ============================================================================
   MOBILE AUDIT FIXES (multi-agent audit, adversarially verified)
   ========================================================================== */
/* iOS FOCUS-ZOOM GUARD — any form field <16px makes iOS Safari zoom the viewport on
   focus (worst on the /demo/ request form, the primary conversion path). The page's
   `.form-field input` rule is (0,1,1); `html:root :is(...)` is (0,1,2) so it wins in
   every theme regardless of source order. :is() (not a comma list) elevates all three. */
@media (max-width:760px){
  html:root :is(input,select,textarea){font-size:16px}
}
/* TOUCH TARGETS — footer links were 34px tall (≈10px between ~10 stacked links → mis-taps);
   the theme toggle was 40px. Apple's min is 44. */
@media (max-width:760px){ .foot a{padding-top:9px;padding-bottom:9px} }   /* → ~42px tall + 18px gap */
@media (max-width:900px){  }            /* nav row has slack; icon stays 19px */
/* PERF — flatten small decorative glass chips on mobile. After the blur-radius cut they
   still pay per-frame backdrop sampling for frost that's invisible at chip size over the
   near-uniform field. Drop the backdrop-filter, keep the bevel+shadow so they still read
   as raised glass. `body :is()` (0,1,1) beats the per-page inline chip rules (0,1,0). */
@media (max-width:760px){
  body :is(.poschip,.valstat,.sqbadge){
    -webkit-backdrop-filter:none;backdrop-filter:none;
    background:var(--bg-soft);
  }
}

/* mobile fold removed — content kept visible; copy simplified instead */
.foldbtn{display:none!important}


/* infi-scrollbar — INFI-branded scrollbar, dual light/dark */
html{scrollbar-width:thin;scrollbar-color:var(--blue-500,#2f5dff) transparent}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background-color:var(--blue-500,#2f5dff);border-radius:999px}
::-webkit-scrollbar-thumb:hover{background-color:var(--blue-600,#1f43e6)}
::-webkit-scrollbar-corner{background:transparent}
html[data-theme="dark"]{scrollbar-color:var(--blue-400,#5c83ff) transparent}
html[data-theme="dark"] ::-webkit-scrollbar-thumb{background-color:var(--blue-400,#5c83ff)}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover{background-color:var(--blue-300,#8aa9ff)}
@media(prefers-color-scheme:dark){html:not([data-theme="light"]){scrollbar-color:var(--blue-400,#5c83ff) transparent}
html:not([data-theme="light"]) ::-webkit-scrollbar-thumb{background-color:var(--blue-400,#5c83ff)}
html:not([data-theme="light"]) ::-webkit-scrollbar-thumb:hover{background-color:var(--blue-300,#8aa9ff)}}
