/* devtyped.com — style */

:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --gray: #f5f5f7;
  --black: #000000;
  --card-dark: #1c1c1e;
  --line-dark: #2c2c2e;
  --on-dark: #f5f5f7;
  --on-dark-muted: #a1a1a6;
  --blue: #164194;
  --blue-brand: #164194;
  --blue-light: #8aa6e6;
  --blue-soft: #8aa6e6;
  --red: #e4032e;
  --red-brand: #e4032e;
  --pink-soft: #ff4d6a;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.page-dark { background: var(--black); }
img, svg { display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.dark { background: var(--black); color: var(--on-dark); }
.gray { background: var(--gray); }

/* ---------- Typography ---------- */
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }
.h-section { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1.04; }
.h-tile { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.03em; line-height: 1.05; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--muted); }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.2px; }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); }
.dark .lead { color: var(--on-dark-muted); }
.grad-text { background: linear-gradient(90deg, var(--blue-soft), var(--pink-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.more { font-size: 17px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.4px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo__b { color: var(--red-brand); }
.logo__d { color: var(--blue-brand); }
.logo--dark .logo__b { color: #ff4d6a; }
.logo--dark .logo__d { color: var(--blue-soft); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: 999px; font-size: 17px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #0f2f6e; }
.btn--ghost { color: var(--blue); border-color: var(--blue); background: transparent; }
.dark .btn--ghost, .btn--ghost-dark { color: var(--blue-light); border-color: var(--blue-light); background: transparent; }
.btn--sm { min-height: 32px; padding: 0 16px; font-size: 13px; font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Global nav (light) ---------- */
.gnav { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 252, 0.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.gnav__in { max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 52px; display: flex; align-items: center; gap: 28px; }
.gnav__links { display: flex; align-items: center; gap: 26px; font-size: 13px; flex: 1 1 auto; justify-content: center; }
.gnav__links a { color: var(--ink); }
.gnav__end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; align-items: center; justify-content: center; cursor: pointer; }
.mobile-menu { display: none; }
@media (max-width: 820px) {
  .gnav__links, .lnav__links, .topbar__links { display: none; }
  .menu-btn { display: inline-flex; }
  .lnav .btn--sm, .lnav__links + .btn--sm { margin-left: auto; }
  .mobile-menu.is-open { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 20px; border-top: 1px solid rgba(0,0,0,0.08); background: #fafafc; }
  .lnav .mobile-menu.is-open { background: #161617; border-top-color: rgba(255,255,255,0.12); }
  .mobile-menu a { padding: 12px 0; font-size: 19px; font-weight: 600; color: inherit; border-bottom: 1px solid rgba(127,127,127,0.18); }
}

.ribbon { background: var(--gray); text-align: center; padding: 14px 20px; font-size: 14px; }
.ribbon b { color: var(--red); font-weight: 600; margin-right: 6px; }

/* ---------- Product nav (dark) ---------- */
.topbar { background: #161617; border-bottom: 1px solid var(--line-dark); }
.topbar__in { max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 44px; display: flex; align-items: center; gap: 24px; font-size: 12px; }
.topbar__links { display: flex; gap: 24px; margin-left: auto; }
.topbar__links a { color: #d2d2d7; }
.lnav { position: sticky; top: 0; z-index: 50; background: rgba(22, 22, 23, 0.78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: var(--on-dark); }
.lnav__in { max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 52px; display: flex; align-items: center; gap: 24px; }
.lnav__title { font-size: 21px; font-weight: 600; letter-spacing: -0.3px; }
.lnav__links { margin-left: auto; display: flex; gap: 22px; font-size: 12px; }
.lnav__links a { color: #d2d2d7; }
.lnav__links a.is-active { color: var(--on-dark); }
.lnav .btn--sm { margin-left: auto; }
.lnav__links + .btn--sm { margin-left: 0; }
@media (max-width: 820px) {
  .topbar__links, .lnav__links { display: none; }
  .lnav .btn--sm { margin-left: auto; }
}
.progress { height: 2px; background: rgba(255, 255, 255, 0.06); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-soft), var(--pink-soft)); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(48px) scale(0.985); transition: opacity 0.9s ease var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .tiles .reveal { transform: translateY(48px); }
.js .tiles .reveal.is-in { transform: none; }

/* ---------- Pinned sections ---------- */
.pin { position: relative; height: calc(var(--len, 2.5) * 100vh); height: calc(var(--len, 2.5) * 100svh); }
.pin__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- Glow ---------- */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(30px); animation: glow 6s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.95; transform: scale(1.08); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee__track--rev { animation-name: marquee-rev; }
.marquee__item { flex: 0 0 auto; padding: 0 26px; font-family: var(--font-display); font-size: clamp(36px, 5.6vw, 84px); font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
.marquee__item--outline { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* =========================================================
   HOME
   ========================================================= */
.home-hero { --len: 2.3; background: var(--black); color: var(--on-dark); }
.home-hero .glow { left: 50%; top: 62%; width: 1200px; height: 760px; margin: -380px 0 0 -600px; background: radial-gradient(closest-side, rgba(22, 65, 148, 0.6), rgba(22, 65, 148, 0)); }
.hero-title { position: absolute; left: 0; right: 0; top: 9vh; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 0 20px; z-index: 2; will-change: transform, opacity; }
.hero-title .eyebrow { color: var(--on-dark); font-size: 21px; }
.hero-h1 { font-size: clamp(44px, 7.6vw, 108px); line-height: 1.02; letter-spacing: -0.04em; color: var(--on-dark); perspective: 800px; }
.hero-h1 .w { display: inline-block; white-space: pre; }
.js .intro { opacity: 0; transform: translateY(60px) rotateX(-50deg); filter: blur(8px); transition: opacity 0.9s ease var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms), filter 1s ease var(--d, 0ms); }
.js .intro--soft { transform: translateY(20px); filter: none; }
.js.is-loaded .intro { opacity: 1; transform: none; filter: none; }
.hero-title .lead { max-width: 640px; margin-top: 4px; }
.device { position: absolute; left: 50%; top: 50%; z-index: 1; transform-origin: 50% 20%; will-change: transform; }
.js .device { opacity: 0; transition: opacity 1.4s ease 0.5s; }
.js.is-loaded .device { opacity: 1; }
.hero-tabs { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 20px; z-index: 3; }
.pill { position: relative; overflow: hidden; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; background: rgba(255, 255, 255, 0.08); color: #d2d2d7; transition: background 0.4s, color 0.4s; }
.pill[aria-pressed="true"] { background: var(--on-dark); color: #000; }
.pill__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--blue); }

.tiles { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { min-height: 640px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 28px 48px; gap: 10px; overflow: hidden; color: var(--ink); background: var(--gray); }
.tile:hover { text-decoration: none; }
.tile p { font-size: 19px; color: var(--muted); max-width: 440px; }
.tile--dark { background: var(--black); color: var(--on-dark); }
.tile--dark p { color: var(--on-dark-muted); }
.tile--navy { background: #0b1a3d; color: var(--on-dark); }
.tile--navy p { color: #b8c4de; }
.tile--flush { padding-bottom: 0; }
.tile__visual { margin-top: auto; width: 100%; display: flex; justify-content: center; }

/* Invoice film */
.film-invoice { position: relative; width: min(100%, 420px); height: 250px; }
.invoice { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08); padding: 24px 24px 26px; text-align: left; display: flex; flex-direction: column; gap: 12px; color: var(--ink); transition: transform 0.8s var(--ease); }
.film-invoice.is-reset .invoice { transform: translateY(30px); }
.invoice__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.invoice__row span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.invoice__row--total { font-size: 16px; font-weight: 700; color: var(--ink); }
.invoice__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 17px; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; transition: background 0.4s, color 0.4s; background: #fff1e0; color: #9a4a00; }
.is-done .badge, .badge--ok { background: #e5f5ea; color: #1c7a3e; }
.bar { height: 6px; border-radius: 3px; background: #e8e8ed; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--blue); transition: width 0.9s var(--ease), background 0.4s; }
.is-done .bar span { background: #2a9d57; }

/* BOM film */
.film-bom { display: flex; align-items: center; justify-content: center; width: 100%; padding-top: 40px; }
.film-bom__line { flex: 0 1 60px; height: 3px; border-radius: 2px; background: #3a3a3c; transition: background 0.5s; }
.film-bom__node { flex: 0 0 auto; width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--card-dark); color: var(--on-dark-muted); border: 1px solid #333336; transition: background 0.5s, color 0.5s, transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s; }
.film-bom .is-lit.film-bom__node { background: var(--bom, #ff8a65); border-color: var(--bom, #ff8a65); color: #2b0e00; transform: scale(1.08); box-shadow: 0 0 34px rgba(255, 138, 101, 0.5); }
.film-bom .is-lit.film-bom__line { background: var(--bom, #ff8a65); }
.film-bom--sm .film-bom__node { width: 54px; height: 54px; font-size: 11px; }
.film-bom--sm .film-bom__line { flex: 1 1 0; }

/* PKI film */
.film-pki { position: relative; width: min(100%, 380px); height: 210px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); overflow: hidden; }
.film-pki__label { position: absolute; left: 20px; top: 18px; font-size: 13px; color: #b8c4de; }
.film-pki svg { position: absolute; left: 0; top: 40px; width: 100%; height: 130px; }
.film-pki path { stroke-dasharray: 520; stroke-dashoffset: 520; transition: none; }
.film-pki.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s ease-in-out; }
.stamp { position: absolute; right: 18px; bottom: 16px; padding: 7px 12px; border-radius: 8px; border: 2px solid #6fe0a8; color: #6fe0a8; font-size: 12px; font-weight: 800; letter-spacing: 1px; opacity: 0; transform: rotate(-8deg) scale(1.8); transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.3s; }
.is-stamped .stamp { opacity: 1; transform: rotate(-8deg) scale(1); }

/* Brand film */
.film-brand { width: min(100%, 400px); height: 230px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); overflow: hidden; display: flex; flex-direction: column; text-align: left; animation: float 5s ease-in-out infinite; --brand: #164194; }
.film-brand__bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; color: #fff; font-size: 14px; font-weight: 700; background: var(--brand); transition: background 0.7s; }
.film-brand__bar i { width: 16px; height: 16px; border-radius: 5px; background: rgba(255, 255, 255, 0.9); }
.film-brand__bar small { margin-left: auto; font-size: 11px; font-weight: 500; opacity: 0.85; }
.film-brand__row { display: flex; gap: 10px; padding: 14px 14px 0; }
.film-brand__row span { flex: 1 1 0; height: 70px; border-radius: 10px; background: #f2f2f5; transition: background 0.7s; }
.film-brand__row span.is-brand { background: var(--brand); }
.film-brand__row span.wide { flex: 2 1 0; }
.film-brand--dark { width: auto; height: auto; position: absolute; inset: 22px; animation: none; box-shadow: none; border-radius: 12px; }
.film-brand--dark .film-brand__bar { height: 38px; font-size: 13px; }
.film-brand--dark .film-brand__row span { height: 54px; }

/* Services */
.services { padding: 90px 0 110px; }
.services__head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 44px; }
.services__head p { font-size: 19px; line-height: 1.5; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.svc { background: var(--gray); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 230px; color: var(--ink); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.svc:hover { text-decoration: none; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }
.svc__icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; background: #fff; color: var(--blue-brand); transition: transform 0.9s var(--ease), background 0.6s, color 0.6s; }
.is-spin .svc__icon, .is-spin.mod__icon { transform: rotateY(360deg); background: var(--blue-brand); color: #fff; }
.svc__name { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; }
.svc__desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.svc__more { margin-top: auto; font-size: 15px; color: var(--blue); }

/* Process (horizontal) */
.process { --len: 3; background: var(--black); color: var(--on-dark); }
.process .pin__stage { display: flex; flex-direction: column; justify-content: center; gap: 50px; padding: 90px 0 40px; }
.process__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; width: 100%; }
.process__bar { width: 200px; height: 4px; border-radius: 2px; background: var(--line-dark); overflow: hidden; }
.process__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-soft), var(--pink-soft)); }
.process__vp { overflow: hidden; }
.process__track { list-style: none; margin: 0; display: flex; gap: 20px; width: max-content; padding: 0 max(20px, calc((100vw - 1040px) / 2)); will-change: transform; }
.step { flex: 0 0 min(78vw, 460px); min-height: 380px; border-radius: 28px; background: var(--card-dark); border: 1px solid var(--line-dark); padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.step__num { font-family: var(--font-display); font-size: 96px; font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; background: linear-gradient(160deg, var(--blue-soft), var(--blue) 60%, var(--pink-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step__t { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.step__d { font-size: 17px; line-height: 1.5; color: var(--on-dark-muted); }
.tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; padding: 6px 11px; border-radius: 999px; background: var(--line-dark); color: #d2d2d7; }
.tag--light { background: var(--gray); color: var(--ink-2); }

/* Logos */
.logos { padding: 80px 0; display: flex; flex-direction: column; align-items: center; gap: 28px; overflow: hidden; }
.logo-ph { flex: 0 0 auto; width: 190px; height: 70px; margin-right: 14px; border-radius: 14px; border: 1px dashed #c7c7cc; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }

/* CTA */
.cta { position: relative; overflow: hidden; padding: 130px 20px; text-align: center; }
.cta__spin { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(22, 65, 148, 0), rgba(22, 65, 148, 0.45), rgba(255, 77, 106, 0.35), rgba(22, 65, 148, 0)); filter: blur(80px); animation: spin 24s linear infinite; }
.cta__in { position: relative; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.js .cta__in.reveal { transform: scale(0.86); }
.js .cta__in.reveal.is-in { transform: none; }
.cta h2 { font-family: var(--font-display); font-size: clamp(44px, 7vw, 96px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.cta p { font-size: 19px; color: var(--on-dark-muted); max-width: 560px; }
.cta small { font-size: 15px; color: var(--on-dark-muted); }

/* Footer */
.footer { background: var(--gray); color: var(--muted); font-size: 12px; padding: 40px 20px 28px; }
.footer__in { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col b { font-weight: 600; color: var(--ink); }
.footer a, .footer__col span { color: var(--ink-2); }
.footer hr { border: 0; height: 1px; background: var(--line); margin: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer__bottom > span:last-child { display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   PRODUCT
   ========================================================= */
.p-hero { --len: 2.8; background: var(--black); }
.p-hero .glow { left: 50%; top: 55%; width: 1100px; height: 700px; margin: -350px 0 0 -550px; background: radial-gradient(closest-side, rgba(22, 65, 148, 0.55), rgba(22, 65, 148, 0)); }
.p-hero .hero-title { top: 10vh; gap: 14px; }
.p-hero__name { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.4px; }
.p-hero h1 { font-size: clamp(44px, 8.4vw, 120px); color: var(--on-dark); }
.p-hero__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 140px 24px 48px; text-align: center; font-size: clamp(19px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; color: var(--on-dark); z-index: 3; opacity: 0; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.92) 70%); }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--on-dark-muted); z-index: 3; }

.words { --len: 2.2; background: var(--black); }
.words .pin__stage { display: flex; align-items: center; justify-content: center; }
.words p { max-width: 980px; padding: 0 24px; font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 64px); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; text-align: center; color: var(--on-dark); }
.words .w { opacity: 0.14; transition: opacity 0.2s linear; }
.words .w--hi { color: var(--blue-soft); }

.mq-dark { background: var(--black); color: #48484a; padding: 30px 0 60px; border-top: 1px solid var(--card-dark); }
.mq-dark .marquee__item:not(.marquee__item--outline) { color: var(--line-dark); }

.story { --len: 4.4; background: var(--black); color: var(--on-dark); }
.story .pin__stage { box-sizing: border-box; padding: 70px 20px 20px; display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center; gap: 56px; }
.story__text { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.story__kicker { font-size: 17px; font-weight: 600; color: var(--pink-soft); }
.story__chapters { display: grid; }
.chapter { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translateY(30px); pointer-events: none; transition: opacity 0.6s ease, transform 0.8s var(--ease); }
.chapter.is-before { transform: translateY(-30px); }
.chapter.is-active { opacity: 1; transform: none; pointer-events: auto; }
.chapter h2 { font-family: var(--font-display); font-size: clamp(32px, 3.8vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.chapter p { font-size: 18px; line-height: 1.5; color: var(--on-dark-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { padding: 8px 12px; border-radius: 12px; background: var(--card-dark); border: 1px solid var(--line-dark); font-size: 14px; }
.dots { display: flex; gap: 8px; margin-top: 10px; }
.dot { position: relative; overflow: hidden; width: 22px; height: 6px; border: 0; padding: 0; border-radius: 3px; cursor: pointer; background: #3a3a3c; transition: width 0.5s var(--ease); }
.dot.is-active { width: 56px; }
.dot span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--on-dark); }
.story__device { flex: 0 0 auto; transform-origin: 0% 50%; will-change: transform; }
@media (max-width: 820px) { .story .pin__stage { gap: 24px; } }

/* Gallery */
.gallery { background: var(--black); color: var(--on-dark); padding: 110px 0 120px; }
.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 34px; }
.gallery__head h2 { font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.035em; }
.gallery__vp { overflow: hidden; }
.gallery__track { display: flex; gap: 20px; padding: 0 max(20px, calc((100vw - 1040px) / 2)); transition: transform 0.9s var(--ease); }
.hl { flex: 0 0 min(82vw, 400px); min-height: 500px; border-radius: 28px; padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 12px; opacity: 0.45; transform: scale(0.96); transition: opacity 0.6s, transform 0.8s var(--ease); }
.hl.is-active { opacity: 1; transform: none; }
.hl__kicker { font-size: 14px; font-weight: 600; color: var(--accent); }
.hl__title { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
.hl__desc { font-size: 15px; line-height: 1.5; color: #c7c7cc; }
.hl__film { margin-top: auto; position: relative; height: 190px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.controls { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 30px 20px 0; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card-dark); color: var(--on-dark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.round .i-play { display: none; }
.round.is-paused .i-play { display: block; }
.round.is-paused .i-pause { display: none; }
.gdots { display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 44px; border-radius: 999px; background: var(--card-dark); }
.gdot { position: relative; overflow: hidden; width: 8px; height: 8px; border: 0; padding: 0; border-radius: 4px; cursor: pointer; background: #48484a; transition: width 0.5s var(--ease); }
.gdot.is-active { width: 44px; }
.gdot span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--on-dark); }
.gdot.is-active.is-running span { width: 100%; transition: width 5s linear; }
.gdot.is-active.is-hold span { width: 100%; }

/* Login film */
.film-login__tile { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 13px; background: #1c2a4f; color: var(--blue-soft); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; transform: translateX(calc(var(--i) * 62px)); transition: transform 0.9s var(--ease), opacity 0.6s; }
.film-login__main { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 26px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 30px; box-shadow: 0 0 60px rgba(22, 65, 148, 0.7); opacity: 0; transform: scale(0.4) rotate(-90deg); transition: transform 0.9s var(--ease), opacity 0.6s; }
.film-login__main b { color: var(--pink-soft); font-weight: 800; }
.is-merged .film-login__tile { transform: scale(0.5); opacity: 0; }
.is-merged .film-login__main { opacity: 1; transform: none; }

/* KSeF film */
.film-ksef__doc { position: absolute; left: 28px; top: 40px; width: 82px; height: 108px; border-radius: 8px; background: #fff; padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; transition: transform 1.3s var(--ease), opacity 0.5s; }
.film-ksef__doc i { height: 6px; border-radius: 3px; background: #e5e5ea; }
.film-ksef__doc b { margin-top: auto; font-size: 11px; color: var(--ink); }
.film-ksef__box { position: absolute; right: 26px; top: 46px; width: 118px; height: 96px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--line-dark); color: var(--on-dark); transition: background 0.5s, box-shadow 0.5s, color 0.5s; }
.film-ksef__box strong { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.film-ksef__box small { font-size: 12px; font-weight: 700; opacity: 0; transition: opacity 0.4s; }
.film-ksef__line { position: absolute; left: 120px; right: 150px; top: 94px; height: 2px; background: repeating-linear-gradient(90deg, #ff4d6a 0 8px, transparent 8px 14px); opacity: 0.25; transition: opacity 0.4s; }
.is-moving .film-ksef__doc { transform: translateX(170px) scale(0.6); }
.is-flying .film-ksef__line { opacity: 1; }
.is-done .film-ksef__doc { opacity: 0; }
.is-done .film-ksef__box { background: #6fe0a8; color: #0b2a18; box-shadow: 0 0 40px rgba(111, 224, 168, 0.55); }
.is-done .film-ksef__box small { opacity: 1; }
.hl__film .film-bom { position: absolute; inset: 0; padding: 0 16px; }
.hl__film .film-pki { position: absolute; inset: 0; width: auto; height: auto; border: 0; background: transparent; border-radius: 0; }

/* Modules */
.modules { padding: 120px 0; }
.modules__head { display: flex; flex-direction: column; gap: 16px; text-align: center; align-items: center; margin-bottom: 48px; }
.modules__head h2 { font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -0.04em; line-height: 1.02; }
.modules__head p { max-width: 620px; font-size: 19px; line-height: 1.5; color: var(--muted); }
.mod { background: #fff; border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.mod__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mod__icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; background: var(--tint); color: var(--tint-ink); transition: transform 0.8s var(--ease); }
.is-spin.mod__icon { background: var(--tint); color: var(--tint-ink); }
.mod__name { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.mod__desc { font-size: 16px; line-height: 1.5; color: var(--muted); }
.soon { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; }

/* Numbers */
.numbers { padding: 120px 0; }
.numbers h2 { max-width: 760px; font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 56px; }
.num-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 40px 28px; }
.num { display: flex; flex-direction: column; gap: 8px; }
.num__line { display: block; height: 2px; margin-bottom: 18px; background: var(--blue-brand); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) calc(var(--d, 0ms) + 200ms); }
.num.is-in .num__line, .no-js .num__line { transform: none; }
.num__v { font-family: var(--font-display); font-size: clamp(64px, 7vw, 96px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--blue-brand); font-variant-numeric: tabular-nums; }
.num__l { font-size: 19px; font-weight: 600; }
.num__d { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* Security */
.security { --len: 2.4; background: var(--black); color: var(--on-dark); }
.security .pin__stage { display: flex; align-items: center; justify-content: center; }
.security__in { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; align-items: center; gap: 34px; }
.security__head { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.security__head .eyebrow { color: #8aa6e6; }
.security__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; width: 100%; }
.security__col { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 14px; }
.callout { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--card-dark); border: 1px solid var(--line-dark); }
.callout b { font-size: 17px; font-weight: 600; }
.callout span { font-size: 14px; color: var(--on-dark-muted); line-height: 1.45; }
.security__col--left .callout { text-align: right; }
@media (max-width: 820px) {
  .security__col--left .callout { text-align: left; }
  .security { height: auto; }
  .security .pin__stage { position: relative; height: auto; padding: 110px 0; }
  .shield-wrap { transform: scale(0.75); margin: -30px 0; }
}
.js .callout { opacity: 0; }
.shield-wrap { position: relative; width: 300px; height: 300px; flex: 0 0 300px; display: flex; align-items: center; justify-content: center; }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; }
.ring--1 { width: 296px; height: 296px; margin: -148px 0 0 -148px; border: 2px dashed rgba(138, 166, 230, 0.45); }
.ring--2 { width: 236px; height: 236px; margin: -118px 0 0 -118px; border: 2px dotted rgba(255, 77, 106, 0.6); }
.ring--3 { width: 176px; height: 176px; margin: -88px 0 0 -88px; border: 2px solid rgba(255, 255, 255, 0.12); }
.shield { width: 120px; height: 120px; border-radius: 34px; background: linear-gradient(160deg, var(--blue), #0b1a3d); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 50px rgba(22, 65, 148, 0.5); }

/* Specs */
.specs { padding: 120px 0; }
.specs .container { max-width: 980px; }
.specs h2 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 36px; }
.specs dl { margin: 0; }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px 32px; padding: 26px 0; border-top: 1px solid var(--line); }
.spec dt { font-size: 21px; font-weight: 700; letter-spacing: -0.2px; }
.spec dd { margin: 0; font-size: 17px; line-height: 1.55; }

/* Pricing */
.pricing { padding: 120px 0; }
.pricing__head { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; margin-bottom: 44px; }
.pricing__head h2 { letter-spacing: -0.04em; }
.pricing__head p { font-size: 19px; color: var(--muted); max-width: 560px; }
.plan { background: #fff; border-radius: 26px; padding: 34px 30px; display: flex; flex-direction: column; gap: 18px; }
.plan--best { box-shadow: 0 0 0 2px var(--blue), 0 30px 60px rgba(22, 65, 148, 0.18); }
.plan__flag { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: 0.3px; }
.plan__name { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.plan__for { font-size: 16px; color: var(--muted); line-height: 1.45; min-height: 48px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font-size: 26px; }
.plan__price span { font-size: 14px; color: var(--muted); }
.plan .btn { align-self: flex-start; font-size: 15px; font-weight: 600; min-height: 42px; padding: 0 20px; }
.plan hr { border: 0; height: 1px; background: #e8e8ed; margin: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; }
.plan li svg { flex: 0 0 16px; margin-top: 2px; }

/* Demo form */
.demo { position: relative; overflow: hidden; padding: 120px 20px; }
.demo .glow { right: -200px; top: -200px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(255, 77, 106, 0.28), rgba(255, 77, 106, 0)); filter: none; }
.demo__in { position: relative; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: start; }
.demo__copy { display: flex; flex-direction: column; gap: 18px; }
.demo__copy h2 { font-family: var(--font-display); font-size: clamp(40px, 5.6vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.demo__copy p { font-size: 19px; line-height: 1.5; color: var(--on-dark-muted); }
.demo__contact { display: flex; flex-direction: column; gap: 6px; font-size: 17px; margin-top: 10px; color: #d2d2d7; }
.demo__contact a { color: var(--blue-light); }
.form { display: flex; flex-direction: column; gap: 14px; background: var(--card-dark); border: 1px solid var(--line-dark); border-radius: 26px; padding: 30px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #c7c7cc; }
.form input { height: 46px; border-radius: 12px; border: 1px solid #3a3a3c; background: #000; color: var(--on-dark); padding: 0 14px; font: inherit; font-size: 16px; }
.form input:focus { border-color: var(--blue-light); outline: none; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { font-size: 13px; color: #c7c7cc; padding: 0 0 10px; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; cursor: pointer; background: transparent; color: #d2d2d7; border: 1px solid #48484a; transition: background 0.3s, color 0.3s; }
.toggle[aria-pressed="true"] { background: var(--on-dark); color: #000; border-color: var(--on-dark); font-weight: 600; }
.form .btn { margin-top: 8px; height: 50px; font-weight: 600; border: 0; }
.form small { font-size: 12px; color: var(--on-dark-muted); line-height: 1.5; }
.form__ok { display: none; padding: 14px 16px; border-radius: 12px; background: #e5f5ea; color: #1c7a3e; font-weight: 600; font-size: 15px; }
.form.is-sent .form__ok { display: block; }

/* =========================================================
   APP SCREEN (dt-app-screen)
   ========================================================= */
dt-app-screen { display: block; position: relative; width: 100%; max-width: 1200px; margin: 0 auto; height: 680px; font-family: var(--font); color: #1b2440; text-align: left; }
.as { position: absolute; left: 0; top: 0; width: 1200px; height: 680px; transform-origin: top left; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: 0 30px 80px rgba(8, 20, 60, 0.28), 0 6px 18px rgba(8, 20, 60, 0.12); display: flex; flex-direction: column; }
.as-chrome { height: 40px; flex: 0 0 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #eceef3; border-bottom: 1px solid #dde1ea; }
.as-chrome > i { width: 12px; height: 12px; border-radius: 50%; }
.as-url { margin: 0 auto; width: 360px; height: 24px; border-radius: 6px; background: #fff; border: 1px solid #dde1ea; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #4a5368; }
.as-body { flex: 1 1 auto; display: flex; min-height: 0; }
.as-side { width: 214px; flex: 0 0 214px; border-right: 1px solid #e3e8f2; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.as-side .logo { font-size: 18px; padding: 0 8px 14px; }
.as-sec { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; color: #5b6478; padding: 12px 8px 4px; }
.as-nav { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: 13px; color: #2b3450; transition: background 0.4s, color 0.4s, box-shadow 0.4s; }
.as-nav i { width: 7px; height: 7px; border-radius: 2px; background: #c3cad8; transition: background 0.4s; }
.as-nav.is-active { background: #eef2fb; color: #164194; font-weight: 600; box-shadow: inset 0 0 0 1px #c9d5f0; }
.as-nav.is-active i { background: #164194; }
.as-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: #f3f5fa; }
.as-head { height: 60px; flex: 0 0 60px; background: #164194; color: #fff; display: flex; align-items: center; gap: 14px; padding: 0 20px; }
.as-head__t { display: flex; align-items: baseline; gap: 12px; }
.as-head__t b { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
.as-head__t span, .as-head small { font-size: 13px; color: #c7d3f2; }
.as-head small { font-size: 11px; }
.as-head__end { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12px; }
.as-flag { width: 16px; height: 11px; border-radius: 2px; background: linear-gradient(#fff 50%, #dc143c 50%); }
.as-user { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 10px; padding: 5px 6px 5px 10px; font-weight: 600; }
.as-user i { width: 24px; height: 24px; border-radius: 50%; background: #e8eefc; color: #164194; display: flex; align-items: center; justify-content: center; font-size: 10px; font-style: normal; }
.as-content { flex: 1 1 auto; min-height: 0; padding: 18px 20px; overflow: hidden; transition: opacity 0.45s ease, transform 0.6s var(--ease); }
.as-content.is-pre { opacity: 0; transform: translateY(14px); }
.as-card { background: #fff; border: 1px solid #e3e8f2; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.as-card--hover { transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.as-card--hover.is-hover { transform: translateY(-4px); border-color: #9db3e6; box-shadow: 0 14px 30px rgba(22, 65, 148, 0.16); }
.as-label { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; color: #164194; }
.as-muted { font-size: 11px; color: #5b6478; }
.as-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.as-grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.as-ini { width: 32px; height: 32px; border-radius: 9px; background: #eef2fb; color: #164194; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.as-big { font-size: 26px; font-weight: 700; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
.as-kpi { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.as-stack { display: flex; height: 5px; border-radius: 3px; overflow: hidden; background: #e8ebf2; }
.as-w { width: var(--w); transition: width 0.9s var(--ease) var(--d, 0ms); }
.is-pre .as-w { width: 0 !important; }
.as-chiprow { display: flex; gap: 6px; font-size: 11px; font-weight: 600; }
.as-chip { padding: 3px 8px; border-radius: 999px; }
.c-red { background: #fde8ea; color: #b4142d; }
.c-orange { background: #fff1e0; color: #9a4a00; }
.c-green { background: #e5f5ea; color: #1c7a3e; }
.c-blue { background: #e8eefc; color: #164194; }
.c-gray { background: #eef0f4; color: #3d4559; }
.as-foot { display: flex; justify-content: space-between; font-size: 11px; color: #5b6478; border-top: 1px solid #eef1f6; padding-top: 8px; }
.as-chart { height: 250px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid #e3e8f2; padding: 0 4px; }
.as-chart > span { flex: 1 1 0; height: var(--h); border-radius: 6px 6px 0 0; background: #b9c8ec; transition: height 0.9s var(--ease) var(--d, 0ms); }
.as-chart > span.is-cur { background: #164194; }
.is-pre .as-chart > span { height: 1% !important; }
.as-months { display: flex; gap: 10px; padding: 0 4px; }
.as-months span { flex: 1 1 0; text-align: center; font-size: 10px; color: #5b6478; }
.as-list-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px solid #eef1f6; font-variant-numeric: tabular-nums; }
.as-ksef { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; background: #e5f5ea; color: #1c7a3e; transition: background 0.5s, color 0.5s, transform 0.5s var(--ease); }
.is-pre .as-ksef, .as-ksef.is-wait { background: #eef0f4; color: #5b6478; transform: scale(0.96); }
.as-table { background: #fff; border: 1px solid #e3e8f2; border-radius: 14px; padding: 6px 0; display: flex; flex-direction: column; }
.as-tr { display: grid; grid-template-columns: 130px 1fr 70px 130px 120px 90px; gap: 10px; padding: 13px 16px; font-size: 13px; align-items: center; border-bottom: 1px solid #eef1f6; }
.as-tr--h { padding: 10px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; color: #5b6478; border-bottom-color: #e3e8f2; }
.as-tr b { font-weight: 600; color: #164194; }
.as-track { height: 6px; border-radius: 3px; background: #e8ebf2; overflow: hidden; display: flex; }
.as-track > span { background: #164194; }
.as-track--green > span { background: #2a9d57; }
.as-tr .as-chip { justify-self: start; font-size: 11px; font-weight: 600; padding: 3px 9px; }
.as-lot { background: #164194; color: #fff; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.as-lot .as-label { color: #c7d3f2; }
.as-lot__steps { display: flex; gap: 6px; margin: 4px 0; }
.as-lot__steps i { flex: 1 1 0; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); transition: background 0.5s; }
.as-lot__steps i.is-on { background: #7fd1a1; }
.as-opt { border-radius: 12px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid #e3e8f2; background: #fff; transition: border-color 0.4s, background 0.4s, box-shadow 0.4s; }
.as-opt.is-on { border: 1.5px solid #164194; background: #f6f8fe; box-shadow: 0 0 0 4px rgba(22, 65, 148, 0.08); }
.as-input { border: 1px solid #dde1ea; border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.as-btn { align-self: flex-start; padding: 9px 16px; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 600; background: #164194; transition: background 0.4s; }
.as-btn.is-ok { background: #1c7a3e; }
.as-accept { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: #e5f5ea; color: #1c7a3e; transition: background 0.4s, color 0.4s; }
.as-accept.is-ok { background: #1c7a3e; color: #fff; }
.as-cursor { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; transition: transform 1s var(--ease); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }
.as-cursor svg { transition: transform 0.2s; }
.as-cursor.is-click svg { transform: scale(0.86); }
.as-ripple { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(22, 65, 148, 0.35); transform: scale(0.2); opacity: 0; }
.as-cursor.is-click .as-ripple { animation: ripple 0.8s ease-out; }
@keyframes ripple { from { transform: scale(0.2); opacity: 0.9; } to { transform: scale(1.4); opacity: 0; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pin { height: auto; }
  .pin__stage { position: relative; height: auto; min-height: 100vh; }
  .js .reveal, .js .tiles .reveal, .js .intro, .js .device, .js .callout { opacity: 1; transform: none; filter: none; }
  .words .w { opacity: 1; }
}

/* ---------- v2: logo, nowe ekrany panelu ---------- */
.as-logo { height: 22px; width: auto; align-self: flex-start; margin: 0 8px 14px; }
.as-tr--proc { grid-template-columns: 110px 1fr 100px 96px 54px 92px; }
.as-tr--sel { background: #f6f8fe; box-shadow: inset 3px 0 0 #164194; }
.as-tr--wh { grid-template-columns: 34px 1fr 96px 150px 72px; font-size: 12px; }
.as-thumb { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, #e8eefc, #c9d5f0); color: #164194; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.as-stock { position: relative; overflow: visible; }
.as-stock > span { background: #2a9d57; }
.as-stock > i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #5b6478; border-radius: 1px; }
.is-low .as-stock > span { background: #d92d3f; }
.is-low [data-qty] { color: #b4142d; }
.as-tr--wh { transition: background 0.4s; }
.as-tr--wh.is-low { background: #fff6f6; }
.as-order { display: none; align-self: flex-start; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #e8eefc; color: #164194; }
.is-ordered .as-order { display: inline-block; animation: pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.as-flow { display: flex; flex-direction: column; margin-top: 4px; }
.as-node { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.as-node > i { position: relative; z-index: 1; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; border: 2px solid #c3cad8; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-style: normal; font-weight: 700; color: #5b6478; transition: background 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s; }
.as-node:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 30px; bottom: -6px; width: 2px; background: #e3e8f2; transition: background 0.4s; }
.as-node.is-done > i { background: #2a9d57; border-color: #2a9d57; color: #fff; }
.as-node.is-done::after { background: #2a9d57; }
.as-node.is-active > i { background: #164194; border-color: #164194; color: #fff; box-shadow: 0 0 0 5px rgba(22, 65, 148, 0.15); }
