/* ═══════════════════════════════════════════════════════════════════════
   Sericana — main.css (design-system rebuild, 2026-07-03)
   Tokens + geometry follow the measured reference spec kept alongside
   the deploy scratch. legal.html still uses the old styles.css;
   this sheet is index.html only.
   ═══════════════════════════════════════════════════════════════════════ */

/* ---------- tokens ---------- */
:root {
  /* color roles */
  --bg:        #FFFBF0;   /* cream sheet */
  --ink:       #193969;   /* headings / primary text */
  --ink-soft:  #284A7E;   /* body text */
  --ghost:     #C3C7CF;   /* inactive accordion items */
  --paper:     #FFFDF9;   /* text on dark */
  --pill:      #DCE5DC;   /* sage pill button bg */
  --peach:     #FFC5A7;   /* announcement bar */
  --teal-pill: #A8E2DF;   /* announcement chips */
  --hairline:  #C4DAD9;   /* rules + corner ticks + light borders */
  --navy-bar:  #1B3055;   /* scrolled nav bar */
  --grad-a:    #4A7CC7;   /* CTA gradient start */
  --grad-b:    #8AD3D0;   /* CTA gradient end */

  /* type */
  --f-display: 'Outfit', 'Hanken Grotesk', sans-serif;
  --f-body:    'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-label:   'Space Grotesk', 'Hanken Grotesk', monospace, sans-serif;

  /* scale (rendered px @1440, per spec) */
  --fs-h1:      clamp(41.6px, 6vw, 86.4px);
  --fs-cta:     clamp(34px, 5.2vw, 75px);
  --fs-h2:      clamp(31px, 3.4vw, 48px);
  --fs-state:   clamp(24px, 2.6vw, 36px);
  --fs-item:    clamp(24px, 2.1vw, 30px);
  --fs-h3:      27px;
  --fs-quote:   clamp(20px, 1.9vw, 27px);
  --fs-body:    15px;
  --fs-btn:     12px;
  --fs-micro:   10.5px;

  /* layout */
  --sheet-inset: 24px;
  --sheet-radius: 16px;
  --gutter: 24px;
  --content-pad: clamp(24px, 8vw, 116px); /* inner padding of the sheet */
  --ann-h: 49px;
  --nav-h: 62px;
  --band-pad: clamp(56px, 7vw, 96px);
  --tab-w: 320px;
  --tab-h: 54px;

  --ease: cubic-bezier(.33,.02,.2,1);
}
html.ann-closed { --ann-h: 0px; }

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.3;
  color: var(--ink);
  background: #0E1E4B; /* behind the fixed canvas, matches hero deep blue */
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
[hidden] { display: none !important; }
.sr-only, .rh-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--grad-a); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: fixed; top: -60px; left: 16px; z-index: 3000;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 24px; font-size: var(--fs-btn);
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

::selection { background: var(--grad-a); color: var(--paper); }

/* slim floating scrollbar, reference-style */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(25,57,105,.4); border-radius: 24px; border: 2.5px solid transparent; background-clip: content-box; }
html { scrollbar-width: thin; scrollbar-color: rgba(25,57,105,.4) transparent; }

/* ---------- micro-label utility ---------- */
.label {
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.1;
}

/* ---------- loader splash ---------- */
.loader {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(178deg, #17224E 0%, #0E1E4B 55%, #070F33 100%);
  transition: opacity .5s var(--ease), visibility .5s;
}
.loader-word {
  font-family: var(--f-display); font-weight: 300;
  font-size: 30px; letter-spacing: .01em; color: var(--paper);
  display: flex; align-items: center; gap: 10px;
}
.loader-word svg { width: 30px; height: 30px; }
.loader-tag {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--paper); opacity: .75;
}
html.loaded .loader, html.no-js .loader { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- fixed hero canvas ---------- */
#hero-bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
html.loaded #hero-bg, html.no-js #hero-bg { opacity: 1; }

/* ---------- announcement bar ---------- */
.annbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  min-height: var(--ann-h);
  background: var(--peach); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 7px 48px 7px 16px;
  text-align: center;
}
html.ann-closed .annbar { display: none; }
.annbar-chips { display: flex; gap: 6px; flex: none; }
.annbar-chip {
  background: var(--teal-pill); border-radius: 24px;
  padding: 4px 9px; font-family: var(--f-label);
  font-size: var(--fs-micro); letter-spacing: .02em; white-space: nowrap;
}
.annbar-title { font-family: var(--f-label); font-weight: 500; font-size: 13.5px; line-height: 1.25; }
.annbar .pbtn { flex: none; }
.annbar-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; transition: background .2s;
}
.annbar-close:hover { background: rgba(25,57,105,.12); }

/* ---------- nav ---------- */
.rnav {
  position: fixed; top: var(--ann-h); left: 0; right: 0; z-index: 1002;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.rnav.scrolled { background: var(--navy-bar); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--paper); }
.brand .logo { width: 30px; height: 30px; }
.brand-word {
  font-family: var(--f-display); font-weight: 400;
  font-size: 21px; letter-spacing: .01em;
}
.rnav-right { display: flex; align-items: center; gap: 26px; }
.rnav-links { display: flex; align-items: center; gap: 26px; }
.rnav-link {
  color: var(--paper); font-size: var(--fs-btn); line-height: 18px;
  position: relative; padding: 4px 0;
}
.rnav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor; transition: right .28s var(--ease);
}
.rnav-link:hover::after { right: 0; }

/* language selector (components.js populates the menu) */
.langsel { position: relative; }
.langsel-trigger {
  display: flex; align-items: center; gap: 5px;
  color: var(--paper); font-size: var(--fs-btn); padding: 4px 2px;
}
.langsel-flag { font-size: 14px; line-height: 1; }
.langsel-chev { transition: transform .25s var(--ease); }
.langsel-trigger[aria-expanded="true"] .langsel-chev { transform: rotate(180deg); }
.langsel-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 168px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 14px;
  padding: 6px; box-shadow: 0 14px 40px rgba(14,30,75,.18);
  display: grid; gap: 2px;
}
.langsel-menu .langsel-opt {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border-radius: 9px; font-size: 13px; text-align: left;
}
.langsel-menu .langsel-opt:hover,
.langsel-menu .langsel-opt.is-focus { background: var(--pill); }
.langsel-opt .langsel-flag, .langsel-trigger .langsel-flag {
  width: 19px; height: 13px; border-radius: 2.5px; overflow: hidden; flex: none; display: block;
}
.langsel-opt .langsel-flag svg, .langsel-trigger .langsel-flag svg { width: 100%; height: 100%; }
.langsel-opt-name { flex: 1; }
.langsel-opt .langsel-check { opacity: 0; transition: opacity .15s; }
.langsel-opt[aria-selected="true"] .langsel-check { opacity: 1; }

/* mobile circle menu button */
.nav-burger {
  display: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  place-items: center;
}
.nav-drawer {
  position: fixed; inset: 0; z-index: 1400;
  background: linear-gradient(165deg, #17224E, #0E1E4B 60%, #0A1636);
  display: flex; align-items: center; justify-content: center;
}
.nav-drawer-inner { display: grid; gap: 26px; text-align: center; }
.nav-drawer-link {
  color: var(--paper); font-family: var(--f-display); font-weight: 300;
  font-size: clamp(28px, 6vw, 44px); line-height: 1.05;
}
.nav-drawer-cta { display: grid; gap: 14px; justify-items: center; margin-top: 12px; }
/* mobile/tablet language row — plain [data-lang] chips wired to the engine's
   click-delegation (no nested dropdown inside the overlay) */
.drawer-langs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; max-width: 320px; }
.drawer-lang {
  color: var(--paper); font-size: 13px; letter-spacing: .01em;
  border: 1px solid rgba(255,253,249,.25); border-radius: 24px; padding: 7px 14px;
  transition: background .2s, border-color .2s;
}
.drawer-lang:hover { background: rgba(255,253,249,.1); }
.drawer-lang[aria-current="true"], .drawer-lang.is-current { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- pill buttons ---------- */
.pbtn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 36px; border-radius: 24px;
  padding: 4.5px 18px 4.5px 4.5px;
  font-size: var(--fs-btn); line-height: 18px;
  letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; position: relative;
}
.pbtn-chip {
  width: 27px; height: 27px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.pbtn:hover .pbtn-chip { transform: rotate(90deg); }
.pbtn-label { position: relative; overflow: hidden; display: block; }
.pbtn-a, .pbtn-b { display: block; transition: transform .3s var(--ease); }
.pbtn-b { position: absolute; left: 0; top: 100%; }
.pbtn:hover .pbtn-a { transform: translateY(-100%); }
.pbtn:hover .pbtn-b { transform: translateY(-100%); }

.pbtn-dark  { background: var(--ink); color: var(--paper); }
.pbtn-dark  .pbtn-chip { background: var(--paper); color: var(--ink); }
.pbtn-light { background: var(--pill); color: var(--ink); }
.pbtn-light .pbtn-chip { background: var(--paper); color: var(--ink); }
.pbtn-paper { background: var(--paper); color: var(--ink); }
.pbtn-paper .pbtn-chip { background: var(--ink); color: var(--paper); }

/* small square-dot glyph used in chips */
.glyph-dots { width: 11px; height: 11px; }

/* circle icon buttons (carousel arrows, back-to-top) */
.cbtn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--hairline);
  display: grid; place-items: center; color: var(--ink);
  transition: background .25s, transform .25s var(--ease);
}
.cbtn:hover { background: var(--pill); }
.cbtn:active { transform: scale(.94); }
.cbtn[disabled] { opacity: .4; cursor: default; }
.cbtn[disabled]:hover { background: var(--paper); }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  height: max(560px, 61vh);
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--ann-h) + var(--nav-h)) var(--gutter) 40px;
}
.hero-h1 {
  font-family: var(--f-display); font-weight: 300;
  font-size: var(--fs-h1); line-height: .96; letter-spacing: -.01em;
  text-align: center; text-wrap: balance;
  background: linear-gradient(180deg, #FFFDF9 46%, #D8E5F7 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  will-change: opacity, transform;
}

/* ================= hero dashboard panel (qount-faithful, navy on blue) ========= */
.hero-panel { display: none; }
.hp-svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 980px) {
  .hero {
    justify-content: space-between; gap: clamp(20px, 2.4vw, 46px);
    height: auto; min-height: max(600px, 66vh);
    align-items: center;
  }
  .hero-copy { flex: 1 1 0; min-width: 0; }
  .hero-copy .hero-h1 { text-align: left; font-size: clamp(52px, 7.8vw, 116px); line-height: .96; }
  /* the system illustration still extends left, but leaves the big headline room */
  .hero-panel { display: block; flex: 0 0 clamp(480px, 41vw, 600px); max-width: 600px; }
}

.hp-stage {
  position: relative;
  display: grid; grid-template-columns: 172px 40px minmax(0, 1fr); align-items: start; gap: 0 4px;
  padding: 24px; border-radius: 24px;
  font-family: var(--f-body); color: var(--paper);
  background: linear-gradient(162deg, #17181D 0%, #101015 55%, #0A0A0E 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 44px 108px -40px rgba(2, 4, 10, .88), inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* left column — stretches to the full stage height so the Platform list aligns with the right cluster */
.hp-left { display: flex; flex-direction: column; align-self: stretch; }
.hp-group { margin-bottom: 22px; }
.hp-left .hp-group:last-child { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin-bottom: 0; }
.hp-glabel {
  display: block; margin: 0 0 10px 2px;
  font-family: var(--f-label); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 253, 249, .46);
}
.hp-card {
  display: flex; align-items: center; gap: 13px; padding: 15px 15px;
  border-radius: 14px; background: rgba(255, 255, 255, .038); border: 1px solid rgba(255, 255, 255, .06);
}
.hp-ic { flex: none; width: 22px; height: 22px; color: var(--grad-b); }   /* bare line icon, no box — like the reference */
.hp-card-tx { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; gap: 3px; }
.hp-card-tx b { font-size: 17px; font-weight: 600; }
.hp-card-tx small { font-size: 12.5px; color: rgba(255, 253, 249, .5); line-height: 1.35; }
.hp-list-vp { position: relative; overflow: hidden; flex: 1 1 0; min-height: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
.hp-list { display: flex; flex-direction: column; gap: 10px; }
.hp-li { display: flex; align-items: center; gap: 14px; padding: 15px 15px; border-radius: 13px;
  font-size: 15px; font-weight: 500; background: rgba(255, 255, 255, .028); border: 1px solid rgba(255, 255, 255, .05); }
.hp-li svg { width: 19px; height: 19px; flex: none; color: var(--grad-b); }   /* accent line icon, like the reference */

/* connectors — perpendicular dashed lines with flowing dots (uniform, aligned) */
.hp-conn-wrap { position: relative; align-self: stretch; }
.hp-bus { position: absolute; top: 9%; bottom: 6%; left: 50%; width: 2px; margin-left: -1px;
  background-image: repeating-linear-gradient(to bottom, var(--grad-b) 0 2px, transparent 2px 7px);
  opacity: .5; animation: hp-flow-v 1.5s linear infinite; }
.hp-branch { position: absolute; top: var(--y); height: 2px; margin-top: -1px;
  background-image: repeating-linear-gradient(to right, var(--grad-b) 0 2px, transparent 2px 7px);
  opacity: .5; animation: hp-flow-h 1.5s linear infinite; }
.hp-branch--r { left: 50%; right: -8px; }
.hp-branch--l { left: -8px; right: 50%; }
.hp-cj { position: absolute; left: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  transform: rotate(45deg); background: var(--grad-b); border-radius: 1.5px;
  box-shadow: 0 0 6px rgba(138, 211, 208, .4); opacity: .85; }
@keyframes hp-flow-v { to { background-position: 0 7px; } }
@keyframes hp-flow-h { to { background-position: 7px 0; } }

/* right cluster */
.hp-right { display: flex; flex-direction: column; gap: 13px; padding-left: 6px; }

/* alert DECK — the front card slides in from the right; the previous one recedes into the backlog behind */
.hp-deck { position: relative; margin-top: 18px; }
.hp-alert {
  position: relative;
  background: var(--paper); color: var(--ink); border-radius: 16px; padding: 16px 17px;
  box-shadow: 0 26px 56px -22px rgba(2, 6, 16, .7);
  transition: transform .55s var(--ease), opacity .55s var(--ease), filter .55s var(--ease);
  will-change: transform, opacity;
}
.hp-alert.is-front { position: relative; z-index: 3; transform: none; opacity: 1; filter: none; }
.hp-alert.is-enter { position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  transform: translateX(58px) scale(.985); opacity: 0; transition: none; }
.hp-alert.is-back  { position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  transform: translateY(-16px) scale(.93); opacity: .5; filter: saturate(.35) brightness(.9); }
.hp-alert-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hp-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: #1E5C57; background: #C6EAE4; padding: 5px 11px; border-radius: 7px; }   /* Sericana teal — never qount lime */
.hp-badge b { font-family: var(--f-label); font-weight: 700; color: #14433D; }
.hp-date { font-size: 12px; color: var(--ink-soft); background: #EEF0EC; padding: 5px 11px; border-radius: 8px; }
.hp-alert-mid { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.hp-alert-who { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; gap: 3px; }
.hp-alert-who b { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-alert-who small { font-size: 13px; color: var(--ink-soft); }
.hp-bell { flex: none; width: 34px; height: 34px; padding: 9px; border-radius: 10px; color: var(--ink);
  background: #EEF0EC; }
.hp-alert-msg { margin-top: 14px; padding: 12px; border-radius: 10px; font-size: 13px; text-align: center;
  color: var(--ink-soft); background: transparent; border: 1px solid #E4E6E0; }
.hp-alert-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; }
.hp-chip { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: #EEF0EC; padding: 5px 11px; border-radius: 7px; }
.hp-review { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.hp-review svg { width: 15px; height: 15px; }

/* metric tiles */
.hp-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.hp-mt { padding: 15px 15px; border-radius: 14px; background: rgba(255, 255, 255, .038); border: 1px solid rgba(255, 255, 255, .06); }
.hp-mt-h { display: block; font-size: 12.5px; color: rgba(255, 253, 249, .62); margin-bottom: 12px; }
.hp-num, .hp-num2 { display: inline-block; font-family: var(--f-label); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.hp-num2 { margin-top: 13px; }
.hp-mt small { display: block; font-size: 12px; color: rgba(255, 253, 249, .5); margin-top: 4px; }

/* QAI analysis — animates skeleton (generating) → resolved insight bullets */
.hp-qai { padding: 16px 16px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); }
.hp-qai-h { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; }
.hp-spark { width: 19px; height: 19px; color: var(--grad-b); }
.hp-dots { font-family: var(--f-label); letter-spacing: 2px; color: var(--grad-b); min-width: 30px; }
.hp-qai-body { position: relative; margin-top: 14px; min-height: 70px; }
.hp-skel { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 11px; padding-top: 3px;
  opacity: 1; transition: opacity .35s var(--ease); }
.hp-skel span { height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgba(255,255,255,.07), rgba(255,255,255,.16), rgba(255,255,255,.07));
  background-size: 200% 100%; animation: hp-shimmer 1.6s linear infinite; }
.hp-skel span:nth-child(2) { width: 94%; } .hp-skel span:nth-child(3) { width: 78%; }
@keyframes hp-shimmer { to { background-position: -200% 0; } }
.hp-insights { position: absolute; inset: 0; list-style: none; margin: 0; padding: 1px 0 0; display: flex; flex-direction: column; gap: 11px; }
.hp-insights li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; line-height: 1.3; color: rgba(255, 253, 249, .84);
  opacity: 0; transform: translateY(4px); transition: opacity .34s var(--ease), transform .34s var(--ease); }
.hp-dia { flex: none; width: 9px; height: 9px; border-radius: 1px; transform: rotate(45deg);
  background: transparent; border: 1.5px solid var(--grad-b); }
.hp-qai.qai-resolved .hp-skel { opacity: 0; }
.hp-qai.qai-resolved .hp-insights li.show { opacity: 1; transform: none; }

/* stat tiles */
.hp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.hp-st { padding: 15px 15px; border-radius: 14px; background: rgba(255, 255, 255, .038); border: 1px solid rgba(255, 255, 255, .06); }
.hp-st b { font-family: var(--f-label); font-weight: 700; font-size: 25px; letter-spacing: -.01em; }
.hp-st small { display: block; font-size: 12px; color: rgba(255, 253, 249, .5); margin-top: 5px; }

/* staged entrance — JS adds .hp-play when the panel scrolls into view */
[data-hp-in] { opacity: 0; transform: translateY(12px); }
.hp-play [data-hp-in] { opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--d, 0) * 55ms); }

@media (prefers-reduced-motion: reduce) {
  .hp-skel span, .hp-bus, .hp-branch { animation: none !important; }
  .hp-alert { transition: none !important; }
  [data-hp-in] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hp-insights li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hp-list-vp { height: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- the cream sheet ---------- */
.sheet {
  position: relative; z-index: 2;
  margin: 0 var(--sheet-inset);
  background: var(--bg);
  border-radius: 0 var(--sheet-radius) 0 0;   /* top-left carries the folder tab */
  padding: 0 var(--content-pad);
  overflow: visible;
}
/* precision-grid canvas: above the cream fill, behind all content */
#sheet-grid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  border-radius: 0 var(--sheet-radius) 0 0;   /* clip grid to the sheet's rounded corner */
}

/* ---------- folder-tab top edge ---------- */
.sheet-tab {
  position: absolute; top: calc(-1 * var(--tab-h)); left: 0;
  width: var(--tab-w); height: var(--tab-h); z-index: 3;
  pointer-events: none;
}
.sheet-tab-shape { display: block; width: 100%; height: 100%; }
.sheet-tab-shape path { fill: var(--bg); }
.sheet-tab-label {
  position: absolute; left: 26px; top: 0; height: var(--tab-h);
  display: inline-flex; align-items: center; gap: 9px;
  padding-bottom: 8px;
  font-family: var(--f-label); font-size: 12px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.sheet-tab-ring {
  width: 9px; height: 9px; border: 1.5px solid var(--ink);
  border-radius: 50%; display: block; flex: none;
}

/* hairline rule with corner ticks */
.rule {
  position: relative; height: 1px; background: var(--hairline);
  margin: 0 calc(var(--content-pad) * -1 + 18px);
}
.rule::before, .rule::after {
  content: ""; position: absolute; top: -1.5px;
  width: 4px; height: 4px; background: var(--hairline);
}
.rule::before { left: 0; }
.rule::after { right: 0; }

/* generic band */
.band { padding: var(--band-pad) 0; }
.band-h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--fs-h2); line-height: 1; letter-spacing: -.01em;
}
.band-sub { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.4; color: var(--ink-soft); }

/* ---------- mission band ---------- */
.mission { padding: clamp(48px, 9vh, 88px) 0; display: flex; justify-content: center; }
.mission-txt {
  font-family: var(--f-display); font-weight: 300;
  font-size: var(--fs-state); line-height: 1.3;
  text-align: center; max-width: 900px;
}

/* ---------- story band (sticky accordion + dots canvas) ---------- */
.story { padding-top: var(--band-pad); }
.story-head { grid-column: 1; grid-row: 1; align-self: start; max-width: 470px; margin-top: clamp(6px, 1.6vh, 22px); }
.story-head .band-sub { margin-top: 13px; max-width: 470px; }
.story-scroll { position: relative; margin-top: clamp(28px, 5vh, 64px); height: 210vh; }
.story-stage {
  position: sticky; top: calc(var(--ann-h) + var(--nav-h));
  height: calc(100vh - var(--ann-h) - var(--nav-h));
  display: grid; grid-template-columns: minmax(300px, 470px) 1fr;
  grid-template-rows: auto 1fr;
  gap: clamp(14px, 3vh, 36px) clamp(24px, 4vw, 90px); align-items: center;
}
.story-items { grid-column: 1; grid-row: 2; display: grid; gap: 26px; align-content: center; }
.story-item-t {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--fs-item); line-height: 1;
  color: var(--ghost); transition: color .4s var(--ease);
}
.story-item.active .story-item-t { color: var(--ink); }
.story-item-body {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease);
}
.story-item.active .story-item-body { grid-template-rows: 1fr; }
.story-item-body > div { overflow: hidden; }
.story-item-body p {
  color: var(--ink-soft); line-height: 1.3; max-width: 380px;
  padding-top: 12px;
}
.story-item-body .pbtn { margin-top: 16px; margin-bottom: 4px; }
.story-item-body { opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .45s var(--ease) .1s; }
.story-item.active .story-item-body { opacity: 1; }
.story-visual { grid-column: 2; grid-row: 1 / 3; align-self: center; position: relative; height: min(84vh, 780px); }
.story-visual canvas { width: 100%; height: 100%; }

/* ---------- carousel band (use cases) ---------- */
.uc { padding: var(--band-pad) 0; display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: clamp(28px, 5vw, 90px); }
.uc-left .band-sub { margin-top: 16px; font-size: var(--fs-body); line-height: 1.3; max-width: 400px; }
.uc-right { padding-left: clamp(0px, 6vw, 96px); }
.uc-outro { margin-top: 26px; color: var(--ink-soft); font-size: var(--fs-body); }
.uc-counter {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--hairline); border-radius: 24px;
  padding: 4px 10px;
  font-family: var(--f-label); font-size: var(--fs-micro);
  letter-spacing: .08em; text-transform: uppercase;
}
.uc-counter .cur { color: var(--ink); }
.uc-counter .sep { color: var(--ghost); }
.uc-track { position: relative; margin-top: 24px; min-height: 300px; }
.uc-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.uc-slide.active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.uc-quote {
  font-family: var(--f-body); font-weight: 400;
  font-size: var(--fs-quote); line-height: 1.33; color: var(--ink);
  max-width: 560px;
}
.uc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.uc-chip {
  border: 1px solid var(--hairline); border-radius: 24px;
  padding: 5px 12px; font-family: var(--f-label);
  font-size: var(--fs-micro); letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft);
}
.uc-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 40px; gap: 16px; }
.uc-attr { display: flex; align-items: center; gap: 13px; }
.uc-attr-ic {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--ink); color: var(--peach);
  display: grid; place-items: center;
}
.uc-attr-ic svg { width: 30px; height: 30px; }
.uc-attr b { display: block; font-size: var(--fs-body); font-weight: 600; }
.uc-attr span { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.uc-attr .k { font-family: var(--f-label); font-size: var(--fs-micro); letter-spacing: .06em; text-transform: uppercase; }
.uc-nav { display: flex; gap: 6px; flex: none; }

/* ---------- trust band (compliance) ---------- */
.trust { padding: var(--band-pad) 0; text-align: center; }
.trust .band-h2 { max-width: 720px; margin: 0 auto; }
.trust .band-sub { max-width: 640px; margin: 18px auto 0; font-size: var(--fs-body); line-height: 1.35; }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 362px));
  justify-content: center; gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(36px, 6vh, 72px);
}
.trust-col { max-width: 362px; margin: 0 auto; }
.trust-col svg { width: 50px; height: 48px; margin: 0 auto 22px; }
.trust-col h3 {
  font-family: var(--f-body); font-weight: 400;
  font-size: var(--fs-h3); line-height: 1;
}
.trust-col p { margin-top: 14px; font-size: var(--fs-body); line-height: 1.25; color: var(--ink-soft); }
.trust-grid-2 { grid-template-columns: repeat(2, minmax(0, 362px)); margin-top: clamp(28px, 4vh, 48px); }
.trust-cta { margin-top: clamp(36px, 6vh, 64px); display: flex; justify-content: center; }

/* ---------- pricing cards band ---------- */
.plans { padding: var(--band-pad) 0; }
.plans-head { text-align: center; }
.plans-head .band-sub { max-width: 640px; margin: 18px auto 0; font-size: var(--fs-body); line-height: 1.35; }
.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: clamp(36px, 6vh, 64px);
}
.plan {
  position: relative; border: 1px solid var(--hairline);
  padding: 26px 26px 22px; display: flex; flex-direction: column;
  background: transparent;
  transition: border-color .3s;
}
.plan:hover { border-color: var(--ink); }
.plan::before, .plan::after,
.plan .tick::before, .plan .tick::after {
  content: ""; position: absolute; width: 4px; height: 4px; background: var(--hairline);
}
.plan::before { top: -2.5px; left: -2.5px; }
.plan::after { top: -2.5px; right: -2.5px; }
.plan .tick::before { bottom: -2.5px; left: -2.5px; }
.plan .tick::after { bottom: -2.5px; right: -2.5px; }
.plan-chiprow { display: flex; gap: 6px; align-items: center; min-height: 22px; }
.plan-chip {
  background: var(--teal-pill); border-radius: 24px; padding: 4px 9px;
  font-family: var(--f-label); font-size: var(--fs-micro); letter-spacing: .03em;
}
.plan-chip-hot { background: var(--peach); }
.plan h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 30px; line-height: 1; margin-top: 16px;
}
.plan-blurb { margin-top: 12px; color: var(--ink-soft); font-size: var(--fs-body); line-height: 1.3; }
.plan-rule { height: 1px; background: var(--hairline); margin: 18px 0 14px; }
.plan-f { display: grid; gap: 8px; margin-bottom: 22px; }
.plan-f li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.3; color: var(--ink-soft); }
.plan-f li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 4px; height: 4px; background: var(--ink); opacity: .55;
}
.plan .pbtn { margin-top: auto; align-self: start; }
.plans-note { margin-top: 28px; text-align: center; color: var(--ink-soft); font-size: 12px; max-width: 620px; margin-inline: auto; line-height: 1.4; }

/* ---------- final CTA ---------- */
.final { margin: clamp(56px, 9vh, 92px) 0; text-align: center; }
.final-h2 {
  font-family: var(--f-display); font-weight: 300;
  font-size: var(--fs-cta); line-height: .92; letter-spacing: -.01em;
}
.final-h2 .l2 {
  display: block;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.final-sub { max-width: 480px; margin: 26px auto 0; color: var(--ink-soft); line-height: 1.35; }
.final-btns { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.foot { padding-bottom: 30px; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(40px, 6vh, 64px) 0 clamp(48px, 8vh, 84px);
}
.foot-brand { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); }
.foot-brand .logo { width: 34px; height: 34px; }
.foot-brand .brand-word { font-size: 24px; color: var(--ink); }
.foot-col h4 { font-family: var(--f-body); font-weight: 500; font-size: var(--fs-body); letter-spacing: .02em; }
.foot-col ul { margin-top: 16px; display: grid; gap: 9px; }
.foot-col a, .foot-col span.tx {
  font-family: var(--f-label); font-size: var(--fs-micro);
  letter-spacing: .02em; color: var(--ink);
}
.foot-col a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.foot-col a:hover { border-color: var(--ink); }
.foot-note { margin-top: 18px; font-size: 11px; line-height: 1.45; color: var(--ink-soft); max-width: 230px; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 26px; flex-wrap: wrap;
}
.foot-copy { font-size: 12px; }
.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-legal a {
  font-family: var(--f-label); font-size: var(--fs-micro); letter-spacing: .02em;
  border-bottom: 1px solid transparent;
}
.foot-legal a:hover { border-color: var(--ink); }
.totop { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; }
.totop .cbtn { pointer-events: none; }

/* ---------- reveals (components.js adds .in) ---------- */
.rev { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rev.in { opacity: 1; transform: none; }
.rev-d1.in { transition-delay: .08s; }
.rev-d2.in { transition-delay: .16s; }
.rev-d3.in { transition-delay: .24s; }
html.no-js .rev { opacity: 1; transform: none; }

/* the auth overlay must sit above the announcement bar + nav */
#acces.slx { z-index: 4000; }

/* ═══════════ auth overlay (#acces) compatibility tokens ═══════════
   The .slx skin below is carried over from the previous Sericana build
   (our own code); these vars re-map its palette to the new system. */
:root {
  --font-sans: var(--f-body);
  --font-mono: var(--f-label);
  --fs-label: 11px;
  --fs-body-sm: 13.5px;
  --t-body: #DCE4F5;
  --t-grey: #93A5C8;
  --t-label: #8FA3C9;
  --t-nav: #B9C6E2;
  --t-white: #FFFDF9;
  --bg-panel: #101E45;
  --bg-chip: rgba(255,253,249,.07);
  --hairline-x: rgba(255,253,249,.14);
  --acc: #4A7CC7;
  --acc-hot: #5E90DB;
  --acc-dot: #8AD3D0;
  --acc-ring: #4A7CC7;
  --acc-star: #8AD3D0;
  --acc-trace-2: #2C4470;
  --err: #E5484D;
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --slx-ink: #0B1638;
  --slx-amber: #FFC5A7;
  --slx-serif: var(--f-display);
  --slx-ang: 164deg;
  --slx-char-scale: 1;
  --slx-char-dark: #16294F;
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  :root { --nav-h: 78px; --content-pad: clamp(20px, 5vw, 48px); }
  /* announcement docks to the bottom */
  .annbar {
    top: auto; bottom: 0; flex-direction: column; gap: 8px;
    padding: 12px 44px 12px 16px;
  }
  .rnav { top: 0; }
  .hero { padding-top: var(--nav-h); }
  .rnav-links, .langsel-desktop { display: none; }
  .nav-burger { display: grid; }
  .story-stage { grid-template-columns: 1fr; grid-template-rows: none; align-content: start; gap: 12px; padding-top: 4vh; }
  .story-head { grid-column: auto; grid-row: auto; order: -2; max-width: none; margin-top: 0; }
  .story-visual { grid-column: auto; grid-row: auto; order: -1; height: 30vh; }
  .story-items { grid-column: auto; grid-row: auto; gap: 18px; }
  .uc { grid-template-columns: 1fr; gap: 34px; }
  .uc-right { padding-left: 0; }
  .plans-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .trust-grid, .trust-grid-2 { grid-template-columns: minmax(0, 460px); }
}
@media (max-width: 639px) {
  :root { --sheet-inset: 12px; --sheet-radius: 12px; --gutter: 14px; --nav-h: 66px; --tab-w: 236px; --tab-h: 42px; }
  .nav-burger { width: 42px; height: 42px; }
  .rnav-cta { display: none; }
  .sheet-tab-label { font-size: 10.5px; left: 20px; gap: 7px; }
  .annbar-title { font-size: 12.5px; }
  .hero { height: max(480px, 56vh); }
  .uc-foot { flex-direction: column; align-items: flex-start; }
  .uc-nav { align-self: flex-end; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rev, .rev.in { opacity: 1; transform: none; transition: none; }
  .loader { transition: none; }
  .pbtn-a, .pbtn-b, .pbtn-chip { transition: none; }
  .pbtn:hover .pbtn-a { transform: none; }
  .pbtn:hover .pbtn-b { transform: translateY(0); visibility: hidden; }
  .story-item-body, .uc-slide { transition: none; }
  .hero-h1 { opacity: 1 !important; transform: none !important; }
  #hero-bg { opacity: 1; transition: none; }
}

/* ═══════════ auth overlay skin — carried over from previous Sericana build ═══════════ */
.slx .slx-brand {
  position: absolute; top: 22px; left: clamp(20px, 3.8vw, 48px);
  display: flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 500; letter-spacing: .01em; z-index: 3;
}

.slx a.slx-brand {
  color: var(--t-white); text-decoration: none; cursor: pointer;
  border-radius: 8px; padding: 4px 6px; margin: -4px -6px;
  transition: opacity .18s var(--ease);
}

.slx a.slx-brand:hover { opacity: .76; }

.slx a.slx-brand:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.slx .slx-logo-ring { stroke: var(--acc-ring); }

.slx .slx-logo-star { fill: var(--acc-star); }

.slx .slx-close {
  position: absolute; top: 20px; right: clamp(20px, 3.8vw, 48px);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; z-index: 3;
  color: var(--t-body); background: rgba(255,255,255,.05);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color .2s, background .2s, transform .2s var(--ease);
}

.slx .slx-close:hover { color: var(--t-white); background: rgba(255,255,255,.1); transform: rotate(90deg); }

.slx .slx-left { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }

.slx .slx-chars {
  display: flex; align-items: flex-end; gap: clamp(12px, 1.4vw, 26px); padding: 0 24px; position: relative;
  --slx-char-scale: .88;
  transform: scale(var(--slx-char-scale)); transform-origin: bottom center;
}

.slx .slx-chars::after {
  content:''; position: absolute; left: 4%; right: 4%; bottom: -4px; height: 64px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(74,124,199,.30), transparent 70%);
  filter: blur(10px); z-index: -1;
}

@media (max-width: 1380px) {
.slx .slx-chars { --slx-char-scale: .85; }
}

@media (max-height: 760px) {
.slx .slx-chars { --slx-char-scale: .72; }
}

@media (max-width: 1023px) {
.slx .slx-left { display: none; }
}

.slx .slx-char { position: relative; transform-origin: 50% 100%; will-change: transform; flex: none; cursor: pointer; }

.slx .slx-char-violet {
  width: 180px; height: 400px; z-index: 4;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #7FA8E8 0%, var(--acc) 42%, #2C4470 100%);
  box-shadow: inset -14px 0 28px rgba(0,0,0,.22), inset 10px 0 22px rgba(255,255,255,.07);
}

.slx .slx-char-dark {
  width: 120px; height: 310px; z-index: 3;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #38334B 0%, var(--slx-char-dark) 60%, #201C2E 100%);
  box-shadow: inset -10px 0 22px rgba(0,0,0,.3), inset 8px 0 18px rgba(255,255,255,.04);
}

.slx .slx-char-dome-a {
  width: 240px; height: 200px; z-index: 2;
  border-radius: 120px 120px 0 0;
  background: linear-gradient(180deg, #EFC678 0%, var(--slx-amber) 55%, #A8762F 100%);
  box-shadow: inset -16px 0 30px rgba(0,0,0,.22), inset 12px 6px 24px rgba(255,255,255,.16);
}

.slx .slx-char-dome-b {
  width: 140px; height: 230px; z-index: 1;
  border-radius: 70px 70px 0 0;
  background: linear-gradient(180deg, #B59AF6 0%, var(--acc-dot) 55%, #6A4FBF 100%);
  box-shadow: inset -12px 0 24px rgba(0,0,0,.26), inset 8px 4px 18px rgba(255,255,255,.12);
}

.slx .slx-eye {
  position: absolute; width: 34px; height: 34px; background: #fff; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.18);
  transition: height .09s ease;
}

.slx .slx-eye-sm { width: 26px; height: 26px; }

.slx .slx-pupil { background: var(--slx-ink); border-radius: 50%; will-change: transform; }

.slx .slx-pupil-bare {
  position: absolute; width: 13px; height: 13px; background: var(--slx-ink);
  border-radius: 7px; will-change: transform; transition: height .09s ease;
}

.slx .slx-pupil-xs { width: 11px; height: 11px; }

.slx .slx-blink { height: 2px !important; }

.slx .slx-right {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 4vh, 48px) clamp(20px, 3.5vw, 56px); overflow-y: auto;
}

.slx .slx-card {
  width: min(100%, 430px); position: relative;
  padding: clamp(28px, 4vh, 40px) clamp(24px, 2.6vw, 36px);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 38%),
              rgba(13, 9, 32, .55);
  border: 1px solid rgba(255,255,255,.09);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -1px 0 rgba(0,0,0,.3),
              0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(74,124,199,.10);
}

.slx .slx-eyebrow {
  margin: 0 0 10px; font: 500 11px/1 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase; color: var(--t-label);
}

.slx .slx-h {
  margin: 0 0 10px; font-family: var(--slx-serif); font-weight: 500;
  font-size: clamp(30px, 3vw, 40px); line-height: 1.1; letter-spacing: -.01em;
  color: var(--t-white); outline: none;
}

.slx .slx-sub { margin: 0 0 24px; font-size: 14.5px; line-height: 1.55; color: var(--t-body); }

.slx .slx-btn {
  width: 100%; height: 50px; margin: 0 0 12px;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 600 15px var(--font-sans); color: var(--t-white);
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(0,0,0,.28),
              0 10px 30px rgba(0,0,0,.35);
  /* pop-lite: same overshoot family as the sp-pill spring in this dialog,
     subtler than the page-side 2.2 bezier; no radius/padding morph (pills) */
  transition: background .2s, border-color .2s, box-shadow .2s, transform .45s var(--ease-spring);
}

.slx .slx-btn:hover { transform: translateY(-1px) scale(1.015); }

.slx .slx-btn:active { transform: scale(.98); transition-duration: .15s; }

.slx .slx-google {
  background: linear-gradient(180deg, #FFFFFF, #ECEAF6);
  color: var(--slx-ink); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -2px 6px rgba(124,91,214,.28),
              0 12px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
}

.slx .slx-google:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(124,91,214,.38),
              0 14px 36px rgba(0,0,0,.5), 0 0 24px rgba(74,124,199,.30); }

.slx .slx-label { display:block; font:500 11px/1.2 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--t-grey); margin:2px 0 7px 2px; }

.slx .slx-btn-ghost { font-weight: 500; color: var(--t-body); }

.slx .slx-btn-ghost:hover { color: var(--t-white); background: rgba(255,255,255,.09); }

.slx .slx-btn-acc {
  background: linear-gradient(180deg, var(--acc), var(--acc-hot));
  color:#1a0c02;
  border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 -2px 8px rgba(0,0,0,.28),
              0 10px 30px rgba(124,91,214,.35);
}

.slx .slx-btn-acc:hover { background: linear-gradient(180deg, var(--acc-hot), var(--acc-hot)); }

.slx .slx-btn[disabled] { opacity: .55; cursor: progress; transform: none; }

.slx .slx-or {
  display:flex; align-items:center; gap:14px; margin:2px 0 12px;
  font: 500 11px/1 var(--font-mono); letter-spacing:.1em; text-transform:uppercase;
  color: var(--t-label);
}

.slx .slx-or::before, .slx .slx-or::after {
  content:''; flex:1; height:1px; background: var(--hairline);
}

.slx .slx-field { position: relative; border-radius: 999px; margin: 0 0 12px; }

.slx .slx-field:has(textarea) { border-radius: 22px; }

.slx .slx-field::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--slx-ang, 0deg),
    transparent 0%, var(--acc) 10%, var(--acc-star) 18%, transparent 32%,
    transparent 52%, rgba(94,144,219,.75) 62%, transparent 76%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}

.slx .slx-field:focus-within::before { opacity: 1; }

.slx .slx-input {
  width: 100%; height: 50px; padding: 0 22px; border-radius: 999px;
  font: 400 15px var(--font-sans); color: var(--t-white);
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 6px 18px rgba(0,0,0,.18);
  outline: none; transition: border-color .2s, background .2s;
}

.slx .slx-input:focus { border-color: rgba(94,144,219,.45); background: rgba(255,255,255,.06); }

.slx .slx-input::placeholder { color: var(--t-label); }

.slx .slx-input.sp-bad { border-color: color-mix(in srgb, var(--err) 65%, transparent); }

.slx textarea.slx-input { height: auto; min-height: 96px; padding: 14px 22px; border-radius: 22px; resize: vertical; }

.slx .slx-select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 48px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239E9AAD' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 20px center;
}

.slx .slx-select option { background: #141026; color: #F6F7FF; }

.slx .sp-progress {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;                       /* dot pitch 36px → pill widths 24/60/96 */
  height: 12px;
  width: 80px;
  margin: 4px 8px 24px;
}

.slx .sp-pill {
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  height: 12px;
  width: 24px;
  border-radius: 999px;            /* indicator, not a button */
  background: var(--acc);
  box-shadow: 0 0 12px rgba(94, 144, 219, .5);
  /* base (= stepping BACK) is a plain settle — a retreat that bounces
     reads off; the spring lives on the larger (forward) states below */
  transition: width .45s var(--ease);
  z-index: 0;
}

.slx .sp-progress[data-step="2"] .sp-pill,
.slx .sp-progress[data-step="3"] .sp-pill { transition: width .6s var(--ease-spring); }

.slx .sp-progress[data-step="2"] .sp-pill { width: 60px; }

.slx .sp-progress[data-step="3"] .sp-pill { width: 96px; }

.slx .sp-dot {
  position: relative;
  z-index: 1;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acc-trace-2);
  transition: background .25s var(--ease) .15s;
}

.slx .sp-progress[data-step="1"] [data-dot="1"],
.slx .sp-progress[data-step="2"] [data-dot="1"],
.slx .sp-progress[data-step="2"] [data-dot="2"],
.slx .sp-progress[data-step="3"] .sp-dot {
  background: var(--t-white);
}

.slx .sp-check {
  width: 18px; flex: 0 0 auto;
}

.slx .slx-legend {
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--t-label); padding: 0; margin-bottom: 14px;
}

.slx .slx-summary { margin: 0 0 14px; }

.slx .slx-summary > div {
  display: flex; gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
}

.slx .slx-summary dt {
  flex: 0 0 118px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--t-label); padding-top: 2px;
}

.slx .slx-summary dd {
  margin: 0; font-size: var(--fs-body-sm);
  color: var(--t-white); overflow-wrap: anywhere;
}

.slx .slx-pane { border: 0; margin: 0; padding: 0; min-width: 0; }

.slx .slx-pane[hidden], .slx .slx-view[hidden] { display: none !important; }

.slx .slx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.slx .slx-consent {
  display: flex; gap: 10px; align-items: flex-start; margin: 2px 2px 16px;
  font-size: 13px; line-height: 1.5; color: var(--t-body); cursor: pointer;
}

.slx .slx-consent input {
  width: 17px; height: 17px; margin-top: 1px; flex: none;
  accent-color: var(--acc); cursor: pointer;
}

.slx .slx-alt { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--t-label); }

.slx .slx-alt a { color: var(--acc-star); text-decoration: none; border-bottom: 1px solid rgba(201,191,255,.35); }

.slx .slx-alt a:hover { color: #fff; border-color: #fff; }

.slx .slx-linklike {
  display: block; margin: 4px auto 0; padding: 6px 10px;
  background: none; border: 0; cursor: pointer;
  font: 500 13px var(--font-sans); color: var(--t-label);
}

.slx .slx-linklike:hover { color: var(--t-white); }

.slx .slx-status { min-height: 18px; margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--t-body); }

.slx .slx-status.err { color: #FF7A7A; }

.slx .slx-private {
  margin: 22px 0 0; display: flex; justify-content: center;
}

.slx .slx-view-success { text-align: center; }

.slx .slx-mail { margin: 6px auto 14px; width: 88px; }

.slx .slx-mail-body { fill: rgba(74,124,199,.12); stroke: var(--acc-star); stroke-width: 2; }

.slx .slx-mail-flap { fill: none; stroke: var(--acc-star); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.slx .slx-mail-badge { fill: var(--acc); }

.slx .slx-check {
  fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 22; stroke-dashoffset: 0;
}

.slx .slx-h-success { font-size: clamp(24px, 2.4vw, 32px); }

.slx :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--acc); outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
.slx.is-open { animation: slxFade .25s ease; }
.slx.is-open .slx-card { animation: slxViewIn .35s var(--ease); }
.slx .slx-view.slx-out, .slx .slx-pane.slx-out { animation: slxViewOut .3s var(--ease) forwards; }
.slx .slx-view.slx-in,  .slx .slx-pane.slx-in {  animation: slxViewIn  .3s var(--ease); }
.slx .slx-field:focus-within::before { animation: slxSpin 2.4s linear infinite; }
.slx .slx-mail { animation: slxPop .45s cubic-bezier(.34,1.56,.64,1) both; }
.slx .slx-check { stroke-dashoffset: 22; animation: slxCheck .35s ease .32s forwards; }
.slx .sp-check { animation: sp-pop .4s var(--ease-spring) both; }
}

@keyframes slxFade { from{ opacity: 0; } }

@keyframes slxViewOut { to{ opacity: 0; transform: translateY(-20px); filter: blur(8px); } }

@keyframes slxViewIn { from{ opacity: 0; transform: translateY(20px); filter: blur(8px); } }

@keyframes slxSpin { to{ --slx-ang: 360deg; } }

@keyframes slxPop { from{ transform: scale(.4); opacity: 0; } 60%{ transform: scale(1.08); } to{ transform: scale(1); } }

@keyframes slxCheck { to{ stroke-dashoffset: 0; } }

@keyframes sp-pop {
  0%  { transform: scale(0); }
  60% { transform: scale(1.18); }
  100%{ transform: scale(1); }
}

@media (prefers-reduced-transparency: reduce) {
.slx .slx-card { background: var(--bg-panel); -webkit-backdrop-filter: none; backdrop-filter: none; }
.slx .slx-input, .slx .slx-btn, .slx .slx-close { -webkit-backdrop-filter: none; backdrop-filter: none; }
.slx .slx-input { background: #141026; }
.slx .slx-btn { background: var(--bg-chip); }
.slx .slx-google { background: #fff; }
.slx .slx-btn-acc { background: var(--acc); }
}

.slx-policy { display:inline-block; margin-top:6px; font-size:12px; color:var(--t-nav); text-decoration:underline; }

.slx-policy:hover,
.slx-policy:focus-visible { color:var(--t-white); }

@media (pointer:coarse) {
.slx-close::after { content:''; position:absolute; inset:-2px; }
.slx .slx-linklike { position:relative; }
.slx .slx-linklike::after { content:''; position:absolute; inset:-8px; }
}
/* ═══════════ auth overlay base (#acces) — recolored to the new system ═══ */
@property --slx-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
#acces.slx{
  --slx-char-dark:#16294F;
  --slx-amber:    #FFC5A7;
  --slx-char-scale: 1;
  --slx-ink:      #0B1638;
  --slx-serif:    var(--f-display);
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  font-family: var(--font-sans);
  color: var(--t-white);
  background:
    radial-gradient(60% 50% at 78% 38%, rgba(74,124,199,.14), transparent 70%),
    radial-gradient(55% 45% at 22% 100%, rgba(138,211,208,.12), transparent 70%),
    #0E1E4B;
}
#acces.slx.is-open{ display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 1023px){
  #acces.slx.is-open{ grid-template-columns: 1fr; }
  .slx .slx-left{ display: none; }
}

/* ── Sericana logo mark — bare gold-outline moth, no background tile ─────────
   The shared #i-moth symbol draws the outline moth via stroke=currentColor;
   these lockups paint it gold with no tile behind it. */
.brand .logo,
.foot-brand .logo,
.loader-word svg,
.slx-brand svg { color: #D4B978; }
.brand .logo      { width: 33px; height: 33px; }
.foot-brand .logo { width: 32px; height: 32px; }
.loader-word svg  { width: 34px; height: 34px; }
.slx-brand svg    { width: 28px; height: 28px; }
