/* Sign-in page (New look), v4. Figma: "Sign-in v3" was the starting point.
   Left: the form (username + password only). Right: a dark-green stage with a real product screenshot
   (static/eg_newui/login-app.webp, the Tanks page in the dark theme with sample data) that sits in perspective and
   runs off the right and bottom edges, plus two floating chips that repeat facts shown in the screenshot. */
:root {
  --brand-500: #3AB54A; --brand-600: #2A7F3B; --brand-700: #244729; --brand-50: #EAF6EC;
  /* same neutrals as newui.css, so sign-in matches the app it leads into */
  --bg: #FFFFFF; --text: #17211B; --text-2: #525D57; --text-3: #68736D;
  --border: #C8D0CB; --border-hover: #9AA59E; --input-bg: #FFFFFF; --line: #E2E7E4;
  --cta-1: #2F8944; --cta-2: #23703A; --cta-h1: #2A7E3E; --cta-h2: #1E6433; --link: #1D6B34; --ring: rgba(42,127,59,.2);
  --chip-bg: #F1F7F2; --chip-border: #D3E6D8; --chip-text: #1D6B34;
  --crit: #C4302B; --crit-bg: #FCEBEA; --crit-border: rgba(196,48,43,.3); --crit-text: #6E1C18;
  --warn: #8A5A00; --warn-bg: #FFF5DB;
  --wash: rgba(58,181,74,.07);
  /* stage */
  --hero-1: #0A2015; --hero-2: #050F09; --hero-text: #FFFFFF; --hero-2nd: rgba(255,255,255,.72);
  --mint-1: #6FE08A; --mint-2: #B9F3C6;
  --font: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2,.75,.2,1);
  color-scheme: light;
}
/* Dark: Settings → Appearance sets html[data-theme] from the eg_theme cookie (same rule as newui.css);
   with no choice the OS setting decides. */
html[data-theme="dark"] {
  --bg: #0B0F0D; --text: #E9EDEA; --text-2: #A9B2AC; --text-3: #8A948E;
  --border: #323C36; --border-hover: #4A564F; --input-bg: #121815; --line: #212924;
  --cta-1: #339549; --cta-2: #277A3B; --cta-h1: #3AA352; --cta-h2: #2C8642; --link: #6FD07E; --ring: rgba(76,199,91,.3);
  --chip-bg: rgba(111,208,126,.08); --chip-border: rgba(111,208,126,.22); --chip-text: #8FDD9C;
  --crit: #FF8A80; --crit-bg: rgba(255,90,80,.10); --crit-border: rgba(255,120,110,.35); --crit-text: #FFD2CE;
  --warn: #F5C451; --warn-bg: rgba(245,196,81,.12);
  --wash: rgba(58,181,74,.09);
  --hero-1: #08180F; --hero-2: #030906;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0B0F0D; --text: #E9EDEA; --text-2: #A9B2AC; --text-3: #8A948E;
    --border: #323C36; --border-hover: #4A564F; --input-bg: #121815; --line: #212924;
    --cta-1: #339549; --cta-2: #277A3B; --cta-h1: #3AA352; --cta-h2: #2C8642; --link: #6FD07E; --ring: rgba(76,199,91,.3);
    --chip-bg: rgba(111,208,126,.08); --chip-border: rgba(111,208,126,.22); --chip-text: #8FDD9C;
    --crit: #FF8A80; --crit-bg: rgba(255,90,80,.10); --crit-border: rgba(255,120,110,.35); --crit-text: #FFD2CE;
    --warn: #F5C451; --warn-bg: rgba(245,196,81,.12);
    --wash: rgba(58,181,74,.09);
    --hero-1: #08180F; --hero-2: #030906;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body.eg-login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font: 16px/1.5 var(--font); letter-spacing: -.003em; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.eg-login ::selection { background: rgba(58,181,74,.28); }
/* The nonprod "STAGING" banner is injected as body's first child; the shell takes the rest. */
.li-shell { flex: 1 0 auto; display: grid; grid-template-columns: minmax(460px, 38%) 1fr; min-height: 0; }
.li-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.li-dot { display: inline-block; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 0 rgba(58,181,74,.6); animation: li-pulse 2.4s ease-out infinite; }

/* ---------- form side ---------- */
.li-main { position: relative; display: flex; flex-direction: column; padding: 32px clamp(32px, 5vw, 76px) 26px; background: radial-gradient(70% 46% at 0% 0%, var(--wash), transparent 70%), var(--bg); }
.li-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.li-logo { border-radius: 6px; }
.li-logo img { display: block; height: 36px; width: auto; mix-blend-mode: multiply; }
/* the official logo PNG has a white background: blended into the page, as the app does (see newui.css) */
html[data-theme="dark"] .li-logo img { mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg) saturate(1.15) brightness(1.08); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .li-logo img { mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg) saturate(1.15) brightness(1.08); } }
.li-help { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.li-help svg { color: var(--text-3); }
.li-help a { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; border-radius: 4px; }
.li-help a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }

.li-form { width: 100%; max-width: 400px; margin: auto; padding-block: 44px; display: flex; flex-direction: column; gap: 18px; }
.li-form > * { animation: li-in .6s var(--ease) backwards; }
.li-form > *:nth-child(3) { animation-delay: .05s; } .li-form > *:nth-child(4) { animation-delay: .1s; } .li-form > *:nth-child(5) { animation-delay: .15s; } .li-form > *:nth-child(n+6) { animation-delay: .2s; }
.li-head { margin-bottom: 10px; }
.li-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--chip-bg); border: 1px solid var(--chip-border); color: var(--chip-text); font-size: 13px; font-weight: 500; }
.li-form h1 { margin: 0; font-size: clamp(36px, 3.1vw, 44px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; }
.li-sub { margin: 14px 0 0; color: var(--text-2); font-size: 16.5px; line-height: 1.55; text-wrap: pretty; }

.li-field { display: flex; flex-direction: column; gap: 7px; }
.li-lab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.li-lab label { font-size: 14px; font-weight: 600; }
.li-forgot { padding: 0; border: 0; background: none; color: var(--link); font: 500 14px var(--font); cursor: pointer; border-radius: 4px; }
.li-forgot:hover { text-decoration: underline; text-underline-offset: 3px; }
.li-reset { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--chip-bg); border: 1px solid var(--chip-border); font-size: 14px; color: var(--text); animation: li-in .3s var(--ease); }
.li-reset[hidden] { display: none; }
.li-reset a { color: var(--link); font-weight: 600; white-space: nowrap; }
.li-box { position: relative; }
.li-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; transition: color .15s; }
.li-box:focus-within .li-ico { color: var(--brand-600); }
html[data-theme="dark"] .li-box:focus-within .li-ico { color: var(--link); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .li-box:focus-within .li-ico { color: var(--link); } }
.li-input { width: 100%; height: 50px; padding: 0 16px 0 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--input-bg); color: var(--text); font: inherit; font-size: 16px; caret-color: var(--brand-600);
  box-shadow: 0 1px 2px rgba(16,24,20,.05); transition: border-color .15s, box-shadow .15s, background .15s; }
.li-input:hover { border-color: var(--border-hover); }
.li-input:focus { outline: 0; border-color: var(--brand-600); box-shadow: 0 0 0 4px var(--ring), 0 1px 2px rgba(16,24,20,.05); }
.li-input[aria-invalid="true"] { border-color: var(--crit); }
.li-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(196,48,43,.16); }
.li-input:-webkit-autofill, .li-input:-webkit-autofill:hover, .li-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset; transition: background-color 9999s 0s; }
.li-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset, 0 0 0 4px var(--ring); }
.li-input-pw { padding-right: 76px; }
.li-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 38px; min-width: 60px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font: 500 14px var(--font); cursor: pointer; transition: background .15s, color .15s; }
.li-show:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.li-caps { margin: 0; }
.li-caps span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 500; }
.li-caps span[hidden] { display: none; }

.li-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--crit-border); border-radius: 12px; background: var(--crit-bg); color: var(--crit); font-size: 14px; line-height: 1.45; }
.li-error svg { flex-shrink: 0; }
.li-error div { color: var(--crit-text); }
.li-error b { font-weight: 600; display: block; }
.li-error a { color: inherit; font-weight: 600; white-space: nowrap; }

.li-submit { position: relative; overflow: hidden; margin-top: 6px; height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(13,40,20,.3); border-radius: 12px; background: linear-gradient(180deg, var(--cta-1), var(--cta-2)); color: #fff; font: 600 16.5px var(--font); letter-spacing: -.008em; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(16,24,20,.2), 0 12px 26px -12px rgba(31,107,52,.75); transition: box-shadow .2s, transform .08s, filter .2s; }
.li-submit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none; }
.li-submit:hover { background: linear-gradient(180deg, var(--cta-h1), var(--cta-h2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(16,24,20,.24), 0 16px 30px -12px rgba(31,107,52,.85); }
.li-submit:hover::after { transform: translateX(120%); }
.li-submit:active { transform: translateY(1px); }
.li-arrow { transition: transform .2s var(--ease); }
.li-submit:hover .li-arrow { transform: translateX(3px); }
.li-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; }
.li-busy .li-submit { cursor: progress; }
.li-busy .li-spin { display: inline-block; animation: li-spin .7s linear infinite; }
.li-busy .li-arrow { display: none; }
.li-shake { animation: li-shake .4s var(--ease); }

/* one focus style for everything clickable */
.li-show:focus-visible, .li-submit:focus-visible, .li-logo:focus-visible, .li-forgot:focus-visible, .li-reset a:focus-visible, .li-error a:focus-visible, .li-foot a:focus-visible, .li-help a:focus-visible {
  outline: 2px solid var(--brand-600); outline-offset: 3px; }
.li-submit:focus-visible { outline-color: var(--text); }
html[data-theme="dark"] .li-show:focus-visible, html[data-theme="dark"] .li-logo:focus-visible, html[data-theme="dark"] .li-forgot:focus-visible, html[data-theme="dark"] .li-reset a:focus-visible, html[data-theme="dark"] .li-error a:focus-visible, html[data-theme="dark"] .li-foot a:focus-visible, html[data-theme="dark"] .li-help a:focus-visible { outline-color: var(--link); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .li-show:focus-visible, html:not([data-theme="light"]) .li-logo:focus-visible, html:not([data-theme="light"]) .li-forgot:focus-visible, html:not([data-theme="light"]) .li-reset a:focus-visible, html:not([data-theme="light"]) .li-error a:focus-visible, html:not([data-theme="light"]) .li-foot a:focus-visible, html:not([data-theme="light"]) .li-help a:focus-visible { outline-color: var(--link); } }

/* footer (inside the form column) */
.li-foot { width: 100%; max-width: 400px; align-self: center; border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--text-3); }
.li-foot p { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.li-tag { display: inline-flex; align-items: center; gap: 6px; }
.li-foot a { color: var(--text-2); font-weight: 500; text-decoration: none; border-radius: 4px; }
.li-foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- stage ---------- */
.li-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; color: var(--hero-text); background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); }
/* slow aurora: two blurred green lights drifting behind everything */
.li-aurora { position: absolute; z-index: -2; border-radius: 50%; pointer-events: none; filter: blur(70px); will-change: transform; }
.li-aurora.a1 { width: 52%; aspect-ratio: 1; right: -10%; top: -22%; background: radial-gradient(circle, rgba(58,181,74,.5), transparent 68%); animation: li-drift-a 22s ease-in-out infinite alternate; }
.li-aurora.a2 { width: 46%; aspect-ratio: 1; left: -14%; bottom: -24%; background: radial-gradient(circle, rgba(38,160,110,.34), transparent 68%); animation: li-drift-b 28s ease-in-out infinite alternate; }
.li-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .75;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 85%); mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 85%); }
.li-hero-in { position: relative; z-index: 2; max-width: 1100px; padding: clamp(32px, 6.5vh, 76px) clamp(32px, 4.4vw, 80px) 0; animation: li-in .8s var(--ease) .05s backwards; }
.li-eyebrow { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 clamp(18px, 3vh, 28px); padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(111,224,138,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13.5px; color: rgba(255,255,255,.82); }
.li-eyebrow b { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--mint-1); }
.li-sep { width: 1px; height: 14px; background: rgba(255,255,255,.22); }
.li-hero h2 { margin: 0; font-size: clamp(40px, min(3.7vw, 6.4vh), 72px); line-height: 1; letter-spacing: -.048em; font-weight: 700; text-wrap: balance; }
.li-hero h2 span { display: block; padding-bottom: .08em; background: linear-gradient(92deg, var(--mint-1), var(--mint-2) 60%, #E5FBEA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.li-lede { margin: clamp(14px, 2.4vh, 22px) 0 0; max-width: 33em; font-size: clamp(16px, 1.22vw, 18.5px); line-height: 1.55; color: var(--hero-2nd); text-wrap: pretty; }
.li-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: clamp(16px, 2.6vh, 24px) 0 0; padding: 0; list-style: none; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.88); }
.li-points li { display: inline-flex; align-items: center; gap: 8px; }
.li-points svg { color: var(--mint-1); flex-shrink: 0; }

/* product shot: in perspective, larger than the stage, cut off by its right and bottom edges */
.pv { position: relative; z-index: 1; flex: 1 1 auto; min-height: 300px; margin-top: clamp(28px, 5vh, 56px); perspective: 2000px; perspective-origin: 30% 20%; animation: li-up 1.1s var(--ease) .2s backwards; }
.pv-tilt { position: absolute; left: clamp(32px, 4.4vw, 80px); top: 0; width: max(108%, 940px); transform-style: preserve-3d; transform-origin: 0 0;
  transform: rotateX(calc(5deg + var(--tx, 0deg))) rotateY(calc(-11deg + var(--ty, 0deg))) rotateZ(.6deg); transition: transform .5s var(--ease); }
.pv-tilt::before { content: ""; position: absolute; inset: -6% -4% 20% -6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(58,181,74,.38), transparent); filter: blur(40px); transform: translateZ(-60px); }
.pv-card { border-radius: 16px; overflow: hidden; background: #0B0F0D; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 6px rgba(255,255,255,.04), 0 2px 0 rgba(255,255,255,.08) inset, 0 60px 120px -30px rgba(0,0,0,.85), 0 30px 60px -30px rgba(0,0,0,.7); }
.pv-shot { display: block; width: 100%; height: auto; }
.pv-card::after { content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 26%), linear-gradient(180deg, transparent 62%, rgba(4,12,7,.5)); }
.pv-chip { position: absolute; z-index: 2; margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 14px; white-space: nowrap;
  background: rgba(10,26,17,.78); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(111,224,138,.34);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 18px 40px -14px rgba(0,0,0,.8); font-size: 14px; color: #fff; }
.pv-chip i { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(111,224,138,.14); color: var(--mint-1); }
.pv-chip i.amber { background: rgba(245,181,68,.16); color: #F5C451; }
.pv-chip span { display: flex; flex-direction: column; line-height: 1.25; }
.pv-chip small { font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.pv-chip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-chip-a { left: 38%; top: -24px; transform: translateZ(70px); animation: li-pop .7s var(--ease) 1.3s backwards, li-float 7s ease-in-out 2s infinite alternate; }
/* the second chip is not tilted: it floats flat over the lower left of the stage, in front of the screenshot */
.pv-chip-b { left: clamp(20px, 3vw, 52px); bottom: clamp(22px, 5vh, 52px); z-index: 3; animation: li-pop .7s var(--ease) 1.6s backwards, li-float 8s ease-in-out 2.4s infinite alternate-reverse; }

/* signing in cross-fades into the app (browsers with cross-document view transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
@keyframes li-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes li-up { from { opacity: 0; transform: translateY(48px); } }
@keyframes li-pop { from { opacity: 0; scale: .92; } }
@keyframes li-float { from { translate: 0 -5px; } to { translate: 0 5px; } }
@keyframes li-spin { to { transform: rotate(360deg); } }
@keyframes li-pulse { 0% { box-shadow: 0 0 0 0 rgba(58,181,74,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(58,181,74,0); } }
@keyframes li-shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes li-drift-a { to { transform: translate(-14%, 16%) scale(1.15); } }
@keyframes li-drift-b { to { transform: translate(18%, -12%) scale(1.1); } }

/* short laptop screens: keep the headline and the top of the screenshot above the fold */
@media (min-width: 961px) and (max-height: 760px) { .li-lede { display: none; } .li-form { padding-block: 28px; } .li-head { margin-bottom: 4px; } .li-chip { margin-bottom: 14px; } }

/* ---------- tablet & phone: form first, stage below ---------- */
@media (max-width: 1100px) and (min-width: 961px) {
  .li-shell { grid-template-columns: minmax(420px, 44%) 1fr; }
}
@media (max-width: 960px) {
  .li-shell { grid-template-columns: 1fr; }
  .li-main { align-items: center; padding: 24px 24px 28px; }
  .li-top { align-self: stretch; }
  .li-form { max-width: 440px; margin: 0 auto; padding-block: 52px 40px; }
  .li-foot { width: 100%; max-width: 440px; }
  .li-hero-in { max-width: none; padding: 56px 40px 0; }
  .li-hero h2 { font-size: clamp(36px, 7vw, 56px); }
  .pv { flex: none; min-height: 0; margin: 44px 0 0; padding: 0 0 0 40px; perspective: none; }
  .pv-tilt { position: relative; left: auto; width: 150%; transform: none; }
  .pv-chip-a { left: 38%; top: -22px; }
  .pv-chip-b { display: none; }
}
@media (max-width: 600px) {
  .li-main { padding: 18px 20px 22px; }
  .li-logo img { height: 30px; }
  .li-help span { display: none; }
  .li-form { padding-block: 36px 28px; gap: 16px; }
  .li-chip { margin-bottom: 14px; }
  .li-form h1 { font-size: 34px; }
  .li-sub { font-size: 16px; }
  .li-hero-in { padding: 40px 20px 0; }
  .li-eyebrow { font-size: 12.5px; gap: 8px; }
  .li-sep, .li-sensors { display: none; }
  .li-hero h2 { font-size: 38px; letter-spacing: -.04em; }
  .li-lede { font-size: 16px; }
  .pv { margin-top: 40px; padding-left: 20px; }
  .pv-tilt { width: 190%; }
  .pv-chip { font-size: 13px; padding: 8px 12px 8px 9px; }
  .pv-chip-a { left: 16px; }
  .li-foot { padding-bottom: env(safe-area-inset-bottom); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media (forced-colors: active) {
  .li-submit { border: 1px solid ButtonText; }
  .li-hero h2 span { color: CanvasText; background: none; }
}

/* Grid that lights up under the mouse: a brighter copy of the stage grid shows in a soft circle around the pointer,
   and the cell under it flashes and fades (a short trail). Mouse/trackpad only; off with reduced motion. */
.li-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background-image: linear-gradient(rgba(111,224,138,.42) 1px, transparent 1px), linear-gradient(90deg, rgba(111,224,138,.42) 1px, transparent 1px),
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(58,181,74,.16), transparent 70%);
  background-size: 48px 48px, 48px 48px, 100% 100%; background-position: -1px -1px, -1px -1px, 0 0;
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 100%);
  mask-image: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 100%); }
.li-hero.li-lit::after { opacity: 1; }
.li-cell { position: absolute; z-index: -1; width: 49px; height: 49px; pointer-events: none;
  background: rgba(111,224,138,.12); box-shadow: inset 0 0 0 1px rgba(111,224,138,.55); animation: li-cell 1.2s ease-out forwards; }
@keyframes li-cell { from { opacity: 1; } to { opacity: 0; } }
