/* ==========================================================================
   Danav — landing page
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --violet-50: #f4f0ff;
  --violet-100: #e9e1ff;
  --violet-300: #b79cff;
  --violet-500: #6d3cf0;
  --violet-600: #5b2be0;
  --violet-700: #4318d1;
  --violet-900: #1d0b63;
  --orange: #ff8a00;
  --orange-2: #ffb02e;
  --pink: #ff4d8d;

  --ink: #17113a;
  --ink-2: #3c3766;
  --muted: #6d6992;
  --line: #e7e3f6;
  --bg: #faf9ff;
  --surface: #ffffff;

  --ok: #0ea371;
  --ok-bg: #e3f8ef;
  --warn: #c27803;
  --warn-bg: #fff4dc;
  --err: #e0343f;
  --err-bg: #ffe8ea;
  --info: #2563eb;
  --info-bg: #e6eeff;

  --grad-brand: linear-gradient(135deg, #8a5cff 0%, #5b2be0 45%, #3a14b8 100%);
  --grad-accent: linear-gradient(135deg, #ffb02e 0%, #ff7a00 100%);
  --grad-text: linear-gradient(90deg, #ff7a00 0%, #ff4d8d 50%, #6d3cf0 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(35, 16, 110, .06);
  --shadow: 0 12px 40px -12px rgba(35, 16, 110, .22);
  --shadow-lg: 0 30px 80px -20px rgba(29, 11, 99, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.ic--logo { stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.5em;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: .95rem; line-height: 1.4;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  position: relative; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { padding: .55em 1.15em; font-size: .88rem; }
.btn--lg { padding: .95em 1.8em; font-size: 1.02rem; }

.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px -8px rgba(91, 43, 224, .7); }
.btn--primary:hover { box-shadow: 0 14px 30px -10px rgba(91, 43, 224, .85); }

.btn--accent { background: var(--grad-accent); color: #2a1400; box-shadow: 0 10px 28px -8px rgba(255, 122, 0, .7); }
.btn--accent:hover { box-shadow: 0 16px 36px -10px rgba(255, 122, 0, .9); }
.btn--accent .ic { transition: transform .3s var(--ease); }
.btn--accent:hover .ic { transform: translateX(-4px); }

.btn--glass {
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .2); }

.btn--ghost { background: var(--violet-50); color: var(--violet-700); }
.btn--ghost:hover { background: var(--violet-100); }

.link-btn {
  display: inline-flex; align-items: center; gap: .4em;
  background: none; border: 0; padding: 4px 8px; border-radius: 8px;
  color: var(--violet-600); font-weight: 700; font-size: .88rem;
}
.link-btn:hover { background: var(--violet-50); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .2em .8em; border-radius: 999px;
  font-size: .8rem; font-weight: 700; white-space: nowrap;
  transition: background .35s, color .35s;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--muted { background: #eeedf5; color: #5f5b80; }
.pill--info { background: var(--info-bg); color: var(--info); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--err { background: var(--err-bg); color: var(--err); }
.pill--warn::before { animation: blink 1s infinite; }

@keyframes blink { 50% { opacity: .25; } }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s, height .3s;
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav.is-scrolled {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand__mark { width: 38px; height: 38px; filter: drop-shadow(0 6px 12px rgba(29, 11, 99, .35)); }
.brand__name { font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; }
.brand__logo { height: 30px; width: auto; aspect-ratio: 490.55 / 110.86; fill: currentColor; transition: fill .3s; }
.nav.is-scrolled .brand { color: var(--ink); }

.nav__links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px;
  color: rgba(255, 255, 255, .85); font-size: .94rem; font-weight: 700;
  transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; background: rgba(255, 255, 255, .14); }
.nav.is-scrolled .nav__links a { color: var(--ink-2); }
.nav.is-scrolled .nav__links a:hover,
.nav.is-scrolled .nav__links a.is-active { color: var(--violet-700); background: var(--violet-50); }
.nav__links .nav__cta-mobile { display: none; }
.nav__cta .ic { transition: transform .3s var(--ease); }
.nav__cta:hover .ic { transform: translateX(-3px); }

.nav__toggle {
  display: none; margin-inline-start: auto;
  width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: rgba(255, 255, 255, .14);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span { width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.nav.is-scrolled .nav__toggle { background: var(--violet-50); }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__progress {
  position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--grad-text);
  transform-origin: right; transform: scaleX(0);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 56px) 0 0;
  background: radial-gradient(120% 90% at 85% 0%, #7a49ff 0%, #4a1ccf 38%, #250c86 72%, #170758 100%);
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob--1 { width: 420px; height: 420px; background: #ff4d8d; top: -120px; left: -80px; animation: drift 16s ease-in-out infinite; }
.blob--2 { width: 360px; height: 360px; background: #ff8a00; bottom: 40px; left: 30%; opacity: .35; animation: drift 20s ease-in-out infinite reverse; }
.blob--3 { width: 300px; height: 300px; background: #22d3ee; top: 30%; right: -120px; opacity: .25; animation: drift 18s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(.95); }
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero__watermark {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  font-size: clamp(90px, 18vw, 260px); font-weight: 700; letter-spacing: .05em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  font-family: system-ui, sans-serif; white-space: nowrap; direction: ltr;
}

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px;
  padding-bottom: 88px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-size: .88rem; font-weight: 700; color: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: #3df5a7; box-shadow: 0 0 0 0 rgba(61, 245, 167, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 245, 167, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 245, 167, 0); } }

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.32; letter-spacing: -.015em;
}
.rotator {
  display: inline-block; position: relative;
  padding: 0 .12em;
  color: var(--orange-2);
  vertical-align: bottom;
  transition: width .45s var(--ease);
}
.rotator__word { display: inline-block; white-space: nowrap; }
.rotator__word.is-out { animation: wordOut .35s var(--ease) forwards; }
.rotator__word.is-in { animation: wordIn .5s var(--ease) both; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-60%); filter: blur(4px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(60%); filter: blur(4px); } }
.rotator::after {
  content: ""; position: absolute; inset: auto 0 .12em 0; height: .16em; border-radius: 4px;
  background: var(--grad-accent); opacity: .5; z-index: -1;
}

.hero__lead { margin-top: 20px; max-width: 34em; font-size: 1.08rem; color: rgba(255, 255, 255, .8); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.hero__chips li { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: rgba(255, 255, 255, .78); }
.hero__chips .ic { color: #3df5a7; width: 1.05em; height: 1.05em; }

/* hero invoice */
.hero__visual { position: relative; perspective: 1200px; }
.inv {
  position: relative; z-index: 2;
  max-width: 440px; margin-inline: auto;
  background: #fff; color: var(--ink);
  border-radius: 22px; padding: 22px 22px 18px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .5) inset;
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY { 50% { translate: 0 -10px; } }
.inv__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.inv__head small { display: block; color: var(--muted); font-size: .76rem; }
.inv__head strong { font-size: 1.05rem; }
.inv__logo { width: 40px; height: 40px; }
.inv__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 0; }
.inv__meta small { display: block; color: var(--muted); font-size: .7rem; }
.inv__meta span { font-size: .82rem; font-weight: 700; }
.inv__items { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.inv__row { display: grid; grid-template-columns: 1.6fr .6fr 1fr; gap: 6px; padding: 8px 12px; font-size: .8rem; }
.inv__row span:last-child { text-align: left; font-variant-numeric: tabular-nums; }
.inv__row span:nth-child(2) { text-align: center; }
.inv__row + .inv__row { border-top: 1px solid var(--line); }
.inv__row--head { background: var(--violet-50); color: var(--violet-700); font-weight: 700; font-size: .74rem; }
.inv__totals { padding: 10px 4px 0; font-size: .82rem; }
.inv__totals div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--ink-2); }
.inv__grand { margin-top: 4px; padding-top: 8px !important; border-top: 1px solid var(--line); color: var(--ink) !important; font-weight: 700; font-size: .95rem; }
.inv__grand span:last-child { color: var(--violet-600); }

.inv__status { margin-top: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #f7f4ff, #fff); border: 1px solid var(--line); }
.stepper { display: flex; justify-content: space-between; position: relative; }
.stepper::before, .stepper::after {
  content: ""; position: absolute; top: 9px; right: 12%; left: 12%; height: 3px; border-radius: 3px;
  background: var(--line);
}
.stepper::after {
  background: var(--grad-brand);
  transform-origin: right; transform: scaleX(var(--p, 0));
  transition: transform .6s var(--ease);
}
.stepper li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 25%; }
.stepper i {
  width: 21px; height: 21px; border-radius: 50%;
  background: #fff; border: 3px solid var(--line);
  transition: all .4s var(--ease);
}
.stepper span { font-size: .72rem; color: var(--muted); font-weight: 700; transition: color .3s; }
.stepper li.is-done i { background: var(--violet-600); border-color: var(--violet-600); box-shadow: inset 0 0 0 3px #fff; }
.stepper li.is-active i { border-color: var(--violet-600); box-shadow: 0 0 0 6px rgba(91, 43, 224, .15); }
.stepper li.is-done span, .stepper li.is-active span { color: var(--violet-700); }
.stepper.is-ok li i { background: var(--ok); border-color: var(--ok); }
.stepper.is-ok::after { background: var(--ok); }
.stepper.is-ok li span { color: var(--ok); }

.inv__taxid { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inv__taxid small { font-size: .72rem; color: var(--muted); }
.inv__taxid code {
  font-size: .76rem; letter-spacing: .04em; color: var(--ink);
  background: #fff; border: 1px solid var(--line); padding: 3px 8px; border-radius: 8px;
  min-width: 13.5em; text-align: center;
}
.inv__taxid code.is-typing::after { content: "▍"; color: var(--violet-600); animation: blink .8s infinite; }

.float {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  font-size: .84rem; font-weight: 700;
  box-shadow: var(--shadow);
  animation: floatY 6s ease-in-out infinite;
}
.float .ic { color: var(--violet-600); }
.float--1 { top: -22px; right: 6%; animation-delay: -2s; }
.float--1 .ic { color: var(--ok); }
.float--2 { top: 44%; left: -8%; animation-delay: -4s; padding: 10px 12px; }
.float--3 { bottom: -24px; left: 8%; animation-delay: -1s; }
.float--3 .ic { color: var(--orange); }

/* marquee */
.marquee {
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(10, 2, 40, .25);
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; gap: 44px; animation: marquee 38s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 44px; color: rgba(255, 255, 255, .7); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.marquee__track span::after { content: "✦"; color: var(--orange-2); font-size: .8em; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { position: relative; z-index: 2; margin-top: -1px; padding: 40px 0 0; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-radius: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 8px;
}
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 12px; }
.stat + .stat { border-inline-start: 1px dashed var(--line); }
.stat strong {
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat > span { font-size: .92rem; color: var(--muted); font-weight: 700; }

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */
.section { padding: 110px 0; position: relative; }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.01em; margin-top: 12px; }
.section__head p { margin-top: 14px; color: var(--muted); font-size: 1.04rem; }
.section__head--light h2 { color: #fff; }
.section__head--light p { color: rgba(255, 255, 255, .72); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .86rem; font-weight: 700; color: var(--violet-600);
  padding: 4px 14px; border-radius: 999px; background: var(--violet-50);
}
.kicker--light { color: #fff; background: rgba(255, 255, 255, .12); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   NO-KEY ADVANTAGE
   ========================================================================== */
.hero__chips li.is-hot {
  padding: 3px 12px; border-radius: 999px; color: #2a1400; font-weight: 700;
  background: var(--grad-accent); box-shadow: 0 6px 18px -6px rgba(255, 122, 0, .7);
}
.hero__chips li.is-hot .ic { color: #2a1400; }

.nokey { padding: 90px 0 20px; }
.nokey__box {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 64px 40px 40px; border-radius: 32px; color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, #2c0f94, #1d0b63 55%, #12053f);
  box-shadow: var(--shadow-lg);
}
.nokey__bg span { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); }
.nokey__bg span:first-child { width: 340px; height: 340px; background: #ff8a00; opacity: .3; top: -140px; left: -60px; animation: drift 16s infinite; }
.nokey__bg span:last-child { width: 320px; height: 320px; background: #6d3cf0; opacity: .5; bottom: -150px; right: -60px; animation: drift 19s infinite reverse; }

.nokey__head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.nokey__head h2 { margin-top: 16px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.4; }
.nokey__grad { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nokey__head p { margin-top: 16px; color: rgba(255, 255, 255, .78); font-size: 1.05rem; }

.nokey__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.nokey__col {
  position: relative; padding: 28px; border-radius: 22px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}
.nokey__col h3 { font-size: 1.2rem; margin-bottom: 16px; }
.nokey__col--other h3 { color: rgba(255, 255, 255, .7); }
.nokey__steps { display: grid; gap: 10px; }
.nokey__steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: .95rem; }
.nokey__steps li > span {
  display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); font-size: .82rem; font-weight: 700;
}
.nokey__col--other .nokey__steps li { color: rgba(255, 255, 255, .72); }
.nokey__steps li.is-pain {
  background: rgba(255, 77, 141, .16); border: 1px dashed rgba(255, 120, 170, .6); color: #ffd3e3;
}
.nokey__steps li.is-pain > span { background: var(--pink); color: #fff; }
.nokey__foot { margin-top: 18px; font-size: .88rem; font-weight: 700; color: rgba(255, 255, 255, .6); }

.nokey__col--danav {
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
  border-color: rgba(255, 176, 46, .65);
  box-shadow: 0 0 0 1px rgba(255, 176, 46, .25), 0 24px 60px -20px rgba(255, 122, 0, .55);
}
.nokey__ribbon {
  position: absolute; top: -13px; left: 24px; padding: 3px 16px; border-radius: 999px;
  background: var(--grad-accent); color: #2a1400; font-weight: 700; font-size: .82rem;
}
.nokey__steps li.is-gain { background: rgba(14, 163, 113, .22); border: 1px solid rgba(61, 245, 167, .55); font-size: 1.02rem; }
.nokey__steps li.is-gain > span { background: #1fd08f; color: #05281b; }
.nokey__steps li.is-gain .ic { width: 16px; height: 16px; stroke-width: 3; }
.nokey__col--danav .nokey__foot { color: #3df5a7; }

.nokey__mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.nokey__mid small { font-weight: 700; font-size: .82rem; color: var(--orange-2); text-align: center; max-width: 7em; }
.nokey__key {
  position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
}
/* the icon's key points up-right, parallel to the strike-through and hidden beneath it;
   turning it 90° makes it cross the red line instead */
.nokey__key .ic { width: 40px; height: 40px; color: rgba(255, 255, 255, .92); transform: rotate(90deg); }
.nokey__key i { position: absolute; inset: 50% 8px auto; height: 4px; border-radius: 4px; background: var(--pink); transform: rotate(-35deg) scaleX(0); box-shadow: 0 0 14px var(--pink); transition: transform .7s var(--ease) .5s; }
.nokey__box.is-in .nokey__key i { transform: rotate(-35deg) scaleX(1); }

.nokey__perks { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding-top: 28px; border-top: 1px dashed rgba(255, 255, 255, .2); }
.nokey__perks li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .93rem; color: rgba(255, 255, 255, .88); }
.nokey__perks .ic { color: var(--orange-2); }

@media (max-width: 860px) {
  .nokey { padding-top: 70px; }
  .nokey__box { padding: 48px 20px 28px; border-radius: 24px; }
  .nokey__grid { grid-template-columns: 1fr; }
  .nokey__mid { flex-direction: row; }
  .nokey__mid small { max-width: none; }
  .nokey__key { width: 64px; height: 64px; }
}

/* ==========================================================================
   COMPARE
   ========================================================================== */
.compare__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.compare__card {
  border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--line); background: var(--surface);
}
.compare__card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin-bottom: 18px; }
.compare__badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.compare__card li { position: relative; padding: 9px 26px 9px 0; color: var(--ink-2); }
.compare__card li::before { content: ""; position: absolute; right: 2px; top: 19px; width: 8px; height: 8px; border-radius: 50%; }
.compare__card li + li { border-top: 1px dashed var(--line); }
.compare__card--before { background: linear-gradient(180deg, #fff, #fff7f8); }
.compare__card--before .compare__badge { background: var(--err-bg); color: var(--err); }
.compare__card--before li { color: var(--muted); }
.compare__card--before li::before { background: #f5b4ba; }
.compare__card--after {
  background: linear-gradient(160deg, #fff 30%, #f2ecff);
  border-color: var(--violet-100);
  box-shadow: var(--shadow);
}
.compare__card--after .compare__badge { background: var(--ok-bg); color: var(--ok); }
.compare__card--after li::before { background: var(--violet-500); }
.compare__vs {
  align-self: center; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad-accent); color: #fff; font-weight: 700; font-family: system-ui, sans-serif;
  box-shadow: 0 10px 24px -8px rgba(255, 122, 0, .7);
}

/* ==========================================================================
   HOW — steps
   ========================================================================== */
.how { background: linear-gradient(180deg, var(--bg), #f1ecff 60%, var(--bg)); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps::before, .steps__fill {
  content: ""; position: absolute; top: 44px; right: 12.5%; left: 12.5%; height: 4px; border-radius: 4px;
  background: var(--violet-100);
}
.steps__fill {
  background: var(--grad-text);
  transform-origin: right; transform: scaleX(0);
  transition: transform 2.6s cubic-bezier(.65, 0, .35, 1);
}
.steps.is-run .steps__fill { transform: scaleX(1); }

.step {
  position: relative; text-align: center;
  padding: 0 8px;
}
.step__icon {
  position: relative; z-index: 1;
  display: grid; place-items: center; margin: 0 auto 22px;
  width: 92px; height: 92px; border-radius: 28px;
  background: #fff; color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all .6s var(--ease);
}
.step__icon .ic { width: 38px; height: 38px; }
.step__num {
  position: absolute; z-index: 2; top: -8px; left: calc(50% - 56px);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: .85rem; font-weight: 700;
  transition: background .6s;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; }
.step.is-active .step__icon {
  background: var(--grad-brand); color: #fff; border-color: transparent;
  transform: translateY(-6px) rotate(-4deg);
  box-shadow: 0 18px 36px -12px rgba(91, 43, 224, .65);
}
.step.is-active .step__num { background: var(--orange); }

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s, opacity .8s var(--ease);
}
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(109, 60, 240, .11), transparent 45%);
  transition: opacity .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--violet-100); }
.feature:hover::before { opacity: 1; }
.feature__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; margin-bottom: 18px;
  transition: transform .5s var(--ease);
}
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.08); }
.feature__icon .ic { width: 26px; height: 26px; }
.fi--violet { background: #efe9ff; color: #5b2be0; }
.fi--orange { background: #fff1e0; color: #e46c00; }
.fi--pink { background: #ffe8f1; color: #e0266d; }
.fi--teal { background: #dff8f6; color: #0b8f86; }
.fi--blue { background: #e4efff; color: #1f62d6; }
.fi--green { background: #e2f7ec; color: #0a8a5e; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .93rem; }

.extras {
  margin-top: 40px; padding: 30px 32px; border-radius: 22px;
  background: var(--ink); color: #fff;
  background-image: radial-gradient(60% 120% at 0% 0%, rgba(109, 60, 240, .55), transparent 60%),
                    radial-gradient(40% 100% at 100% 100%, rgba(255, 122, 0, .3), transparent 60%);
}
.extras h3 { font-size: 1.15rem; margin-bottom: 18px; color: var(--orange-2); }
.extras__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.extras__list li { display: flex; align-items: center; gap: 10px; font-size: .93rem; color: rgba(255, 255, 255, .86); }
.extras__list .ic { color: var(--violet-300); }

/* ==========================================================================
   DEMO
   ========================================================================== */
.demo {
  background: radial-gradient(90% 70% at 50% 0%, #4a1ccf 0%, #23097e 55%, #140551 100%);
  color: #fff; overflow: hidden;
}
.demo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
}

.tabs {
  position: relative; display: flex; gap: 4px; width: max-content; max-width: 100%;
  margin: 0 auto 28px; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 0; border-radius: 999px; background: none;
  color: rgba(255, 255, 255, .72); font-weight: 700; font-size: .93rem; white-space: nowrap;
  transition: color .3s;
}
.tabs__btn.is-active { color: var(--ink); }
.tabs__ink {
  position: absolute; top: 6px; bottom: 6px; border-radius: 999px; background: #fff;
  transition: left .45s var(--ease), width .45s var(--ease);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .4);
}

.demo__stage {
  position: relative; z-index: 1;
  background: var(--surface); color: var(--ink);
  border-radius: 26px; padding: 32px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6);
  min-height: 460px;
}
.demo__note {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px; text-align: center;
  font-size: .82rem; line-height: 1.7; color: rgba(255, 255, 255, .6);
}
.demo__note .ic { width: 1.1em; height: 1.1em; opacity: .8; }
.panel[hidden] { display: none; }
.panel.is-active { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.panel__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }

/* form fields */
.field { margin-top: 16px; }
.field > label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.field__len { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--violet-600); background: var(--violet-50); padding: 0 8px; border-radius: 6px; }
.field__wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.field input[type="text"] {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fbfaff;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input[type="text"]:focus { outline: none; border-color: var(--violet-500); background: #fff; box-shadow: 0 0 0 4px rgba(109, 60, 240, .14); }
.field input[dir="ltr"] { letter-spacing: .08em; font-variant-numeric: tabular-nums; text-align: left; }
.field input[readonly] { background: var(--violet-50); color: var(--violet-700); border-style: dashed; }
.field--num .field__wrap input { padding-right: 70px; }
.field__count {
  position: absolute; right: 10px; font-size: .78rem; font-weight: 700; color: var(--muted);
  background: #eeecf7; padding: 2px 8px; border-radius: 6px; transition: all .2s;
}
.field__msg { display: block; min-height: 1.4em; margin-top: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.field.is-ok input { border-color: var(--ok); }
.field.is-ok .field__count { background: var(--ok-bg); color: var(--ok); }
.field.is-ok .field__msg { color: var(--ok); }
.field.is-err input { border-color: var(--err); }
.field.is-err .field__count { background: var(--err-bg); color: var(--err); }
.field.is-err .field__msg { color: var(--err); }
.field.is-err input { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(4px); } 75% { transform: translateX(-4px); } }
.field.is-hidden { display: none; }
.field__hint { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }

.buyer__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.buyer h3, .calc h3 { font-size: 1.15rem; }

.seg { margin: 18px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #f2f0fa; border-radius: 14px; padding: 5px; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: block; text-align: center; padding: 9px 6px; border-radius: 10px;
  font-weight: 700; font-size: .88rem; color: var(--muted);
  transition: all .25s var(--ease);
}
.seg input:checked + span { background: #fff; color: var(--violet-700); box-shadow: 0 4px 12px -4px rgba(35, 16, 110, .25); }
.seg input:focus-visible + span { outline: 3px solid var(--orange); }

/* summary card */
.summary {
  position: sticky; top: calc(var(--nav-h) + 16px);
  border-radius: 20px; padding: 24px;
  background: linear-gradient(170deg, #f7f4ff, #fff 60%);
  border: 1px solid var(--line);
}
.summary__status {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: #eeedf5; color: #5f5b80;
  transition: background .3s, color .3s;
}
.summary__dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.summary__status.is-ok { background: var(--ok-bg); color: var(--ok); }
.summary__status.is-ok .summary__dot { box-shadow: 0 0 0 0 rgba(14, 163, 113, .6); animation: ping 1.6s infinite; }
.summary__status.is-err { background: var(--err-bg); color: var(--err); }
.summary__list { margin: 18px 0 0; }
.summary__list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary__list dt { color: var(--muted); font-size: .88rem; }
.summary__list dd { margin: 0; font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; text-align: left; }
.summary__list dd.is-auto { color: var(--violet-600); }
.summary__note {
  margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  background: var(--warn-bg); color: #7a4d00; font-size: .85rem;
  border-inline-start: 4px solid var(--orange);
}
.summary__note.is-alert { background: var(--err-bg); color: #8f1720; border-color: var(--err); }

/* calc */
.mini-seg { display: inline-flex; flex-shrink: 0; background: #f2f0fa; border-radius: 12px; padding: 4px; gap: 2px; }
.mini-seg button {
  border: 0; background: none; padding: 8px 14px; border-radius: 9px;
  font-weight: 700; font-size: .85rem; color: var(--muted); transition: all .25s;
}
.mini-seg button.is-on { background: #fff; color: var(--violet-700); box-shadow: 0 4px 12px -4px rgba(35, 16, 110, .25); }
.mini-seg--wide button { padding: 9px 20px; }

.stepper-input { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fbfaff; }
.stepper-input button { width: 48px; height: 48px; border: 0; background: none; font-size: 1.3rem; color: var(--violet-600); transition: background .2s; }
.stepper-input button:hover { background: var(--violet-50); }
.stepper-input input[type="text"] { width: 80px; height: 48px; border: 0; border-radius: 0; text-align: center !important; background: transparent; }
.stepper-input input[type="text"]:focus { box-shadow: none; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px;
  background: linear-gradient(to left, var(--violet-600) var(--fill, 33%), #ebe8f6 var(--fill, 33%));
  direction: rtl;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 4px solid var(--violet-600); box-shadow: var(--shadow-sm); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 4px solid var(--violet-600); cursor: grab;
}

.checkout {
  border-radius: 20px; padding: 24px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.checkout__title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.checkout__title .ic { color: var(--violet-600); }
.checkout__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; font-size: .93rem; border-bottom: 1px dashed var(--line); }
.checkout__row span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.checkout__row small { color: var(--muted); }
.checkout__row--vat span:last-child { color: var(--orange); }
.checkout__row--total { border-bottom: 0; font-size: 1.1rem; font-weight: 700; }
.checkout__row--total span:last-child { color: var(--violet-600); }
.checkout__bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; margin: 12px 0 4px; background: #f2f0fa; }
.checkout__bar span { transition: width .5s var(--ease); }
#oBarSub { background: var(--violet-600); }
#oBarVat { background: var(--orange); }
.checkout__api { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #f7f5ff; }
.checkout__api-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--violet-700); margin-bottom: 4px; }
.checkout__api .checkout__row { font-size: .86rem; padding: 6px 0; }
.checkout__api .checkout__row:last-child { border: 0; }
.checkout__foot { margin-top: 14px; font-size: .8rem; color: var(--muted); }

.flash { animation: flash .6s var(--ease); }
@keyframes flash { 0% { background: rgba(255, 176, 46, .45); } 100% { background: transparent; } }

/* wp admin mock */
.wp { display: grid; grid-template-columns: 200px 1fr; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.wp__side { background: #1d2327; padding: 14px 0; display: flex; flex-direction: column; }
.wp__item, .wp__sub { display: flex; align-items: center; gap: 8px; padding: 8px 18px; font-size: .86rem; color: #c3c4c7; }
.wp__item .ic { width: 18px; height: 18px; }
.wp__item.is-on { background: var(--violet-600); color: #fff; font-weight: 700; }
.wp__sub { background: #2c3338; padding-inline-start: 30px; font-size: .8rem; }
.wp__sub.is-on { color: #fff; font-weight: 700; }
.wp__main { padding: 22px; min-width: 0; background: #fcfcfe; }
.wp__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.wp__bar h3 { font-size: 1.12rem; }
.wp__actions { display: flex; gap: 8px; flex-wrap: wrap; }
#listRefresh.is-loading .ic { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.chips button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  transition: all .2s;
}
.chips button b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-inline-start: 4px; border-radius: 10px; background: #f2f0fa; font-size: .72rem; }
.chips button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips button.is-on b { background: rgba(255, 255, 255, .18); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .88rem; }
.table th { text-align: right; padding: 12px 14px; background: #f7f6fc; color: var(--muted); font-size: .8rem; font-weight: 700; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table td.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.table tr { transition: background .2s; }
.table tbody tr:hover { background: #faf8ff; }
.table tr.row-in { animation: rowIn .45s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-12px); } }
.table .buyer-type { display: block; font-size: .74rem; color: var(--muted); }
.table .err-line { display: block; margin-top: 4px; font-size: .74rem; color: var(--err); font-weight: 700; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: all .2s;
}
.icon-btn:hover { background: var(--violet-50); color: var(--violet-700); border-color: var(--violet-100); }
.icon-btn .ic { width: 17px; height: 17px; }
.send-btn { border: 0; padding: 6px 12px; border-radius: 10px; background: var(--grad-brand); color: #fff; font-weight: 700; font-size: .78rem; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 30px !important; }

/* ==========================================================================
   TEMPLATES
   ========================================================================== */
.templates__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.templates__copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 12px; }
.templates__copy > p { margin-top: 14px; color: var(--muted); font-size: 1.04rem; }
.tpl-ctrl { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tpl-ctrl__label { width: 48px; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff;
  background: var(--c); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.swatches button:hover { transform: scale(1.12); }
.swatches button.is-on { box-shadow: 0 0 0 2px var(--c), var(--shadow-sm); transform: scale(1.12); }
.tpl-inputs { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; margin: 6px 0 24px; }

.templates__preview { position: relative; }
.templates__preview::before {
  content: ""; position: absolute; inset: 8% -4% -6% 8%; border-radius: 32px;
  background: var(--grad-brand); opacity: .12; transform: rotate(-3deg);
}

/* invoice template preview */
.tpl {
  --tc: #5b2be0;
  position: relative;
  background: #fff; border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow-lg);
  font-size: .86rem;
  transition: border-radius .4s;
}
.tpl * { transition: background .4s, color .4s, border-color .4s, border-radius .4s; }
.tpl__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; }
.tpl__brand { display: flex; align-items: center; gap: 12px; }
.tpl__logo { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--tc); color: #fff; font-weight: 700; font-size: 1.3rem; }
.tpl h4 { font-size: 1.1rem; }
.tpl__brand small { color: var(--muted); font-size: .76rem; }
.tpl__no { text-align: left; display: flex; flex-direction: column; }
.tpl__no small { color: var(--muted); font-size: .72rem; }
.tpl__no b { font-size: 1.05rem; color: var(--tc); font-family: ui-monospace, Consolas, monospace; }
.tpl__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.tpl__parties > div { padding: 12px 14px; border-radius: 12px; background: #f7f6fb; }
.tpl__parties h5 { font-size: .8rem; color: var(--tc); margin-bottom: 2px; }
.tpl__parties p { font-size: .78rem; color: var(--ink-2); line-height: 1.7; }
.tpl__table { width: 100%; border-collapse: collapse; }
.tpl__table th { background: var(--tc); color: #fff; padding: 9px 12px; text-align: right; font-size: .78rem; }
.tpl__table th:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.tpl__table th:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; text-align: left; }
.tpl__table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.tpl__table td:last-child { text-align: left; font-variant-numeric: tabular-nums; }
.tpl__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: 16px; }
.tpl__qr { display: grid; grid-template-columns: repeat(11, 1fr); width: 82px; height: 82px; gap: 1px; padding: 5px; border-radius: 8px; border: 1px solid var(--line); flex-shrink: 0; }
.tpl__qr i { background: var(--ink); border-radius: 1px; }
.tpl__qr i.o { background: transparent; }
.tpl__sum { flex: 1; max-width: 270px; }
.tpl__sum div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-2); }
.tpl__grand { margin-top: 6px; padding: 9px 12px !important; border-radius: 10px; background: color-mix(in srgb, var(--tc) 12%, #fff); color: var(--tc) !important; font-weight: 700; }
.tpl__foot { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .76rem; color: var(--muted); }
.tpl__foot code { color: var(--ink); font-size: .74rem; }

/* classic */
.tpl--classic { border-radius: 4px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--tc), var(--shadow); }
.tpl--classic .tpl__head { border-bottom: 2px solid var(--ink); margin-bottom: 16px; }
.tpl--classic .tpl__logo { border-radius: 4px; background: #fff; color: var(--tc); border: 2px solid var(--tc); }
.tpl--classic .tpl__parties > div { border-radius: 0; background: none; border: 1px solid var(--ink); }
.tpl--classic .tpl__table th { background: #f3f3f3; color: var(--ink); border: 1px solid var(--ink); border-radius: 0 !important; }
.tpl--classic .tpl__table td { border: 1px solid var(--ink); }
.tpl--classic .tpl__grand { border-radius: 0; background: var(--tc); color: #fff !important; }

/* modern */
.tpl--modern { padding-top: 0; overflow: hidden; }
.tpl--modern .tpl__head {
  margin: 0 -28px 18px; padding: 22px 28px;
  background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 55%, #000));
  color: #fff;
}
.tpl--modern .tpl__head small, .tpl--modern .tpl__no small { color: rgba(255, 255, 255, .75); }
.tpl--modern .tpl__no b { color: #fff; }
.tpl--modern .tpl__logo { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); }

/* simple */
.tpl--simple { box-shadow: var(--shadow); }
.tpl--simple .tpl__head { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tpl--simple .tpl__logo { width: 10px; height: 44px; border-radius: 6px; font-size: 0; }
.tpl--simple .tpl__parties > div { background: none; padding: 0; }
.tpl--simple .tpl__table th { background: none; color: var(--muted); border-bottom: 2px solid var(--tc); border-radius: 0 !important; }
.tpl--simple .tpl__grand { background: none; border-top: 2px solid var(--tc); border-radius: 0; padding-inline: 0 !important; }

.tpl.is-swap { animation: tplSwap .5s var(--ease); }
@keyframes tplSwap { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(8px) scale(.98); opacity: .6; } 100% { transform: none; opacity: 1; } }

/* ==========================================================================
   AUDIENCE / TECH
   ========================================================================== */
.audience { padding-top: 40px; }
.audience__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aud {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s, opacity .8s var(--ease);
}
.aud:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.aud > .ic {
  width: 52px; height: 52px; padding: 13px; border-radius: 16px; margin-bottom: 16px;
  background: var(--grad-brand); color: #fff; box-shadow: 0 10px 20px -8px rgba(91, 43, 224, .6);
}
.aud:nth-child(2) > .ic { background: var(--grad-accent); box-shadow: 0 10px 20px -8px rgba(255, 122, 0, .6); }
.aud:nth-child(3) > .ic { background: linear-gradient(135deg, #2dd4bf, #0d9488); box-shadow: 0 10px 20px -8px rgba(13, 148, 136, .6); }
.aud:nth-child(4) > .ic { background: linear-gradient(135deg, #ff7aa8, #e11d74); box-shadow: 0 10px 20px -8px rgba(225, 29, 116, .6); }
.aud h3 { font-size: 1.08rem; margin-bottom: 8px; }
.aud p { color: var(--muted); font-size: .92rem; }

.tech { padding-top: 40px; }
.tech__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.tech__copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 12px; }
.tech__copy > p { margin-top: 14px; color: var(--muted); }
.tech__list { margin-top: 20px; display: grid; gap: 10px; }
.tech__list li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.tech__list .ic { color: #fff; background: var(--ok); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.tech__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req {
  display: flex; flex-direction: column; gap: 4px;
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.req span { color: var(--muted); font-weight: 700; font-size: .9rem; }
.req b { font-size: 1.9rem; color: var(--violet-700); }
.req--accent { background: var(--grad-brand); border-color: transparent; }
.req--accent span { color: rgba(255, 255, 255, .75); }
.req--accent b { color: #fff; font-size: 1.5rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__wrap { max-width: 860px; }
.faq__list { display: grid; gap: 12px; }
.qa {
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  transition: box-shadow .3s, border-color .3s, opacity .8s var(--ease), transform .8s var(--ease);
}
.qa[open] { border-color: var(--violet-100); box-shadow: var(--shadow); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic {
  width: 32px; height: 32px; padding: 6px; border-radius: 50%;
  background: var(--violet-50); color: var(--violet-600);
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.qa[open] summary .ic { transform: rotate(180deg); background: var(--violet-600); color: #fff; }
.qa__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.qa__body > p { overflow: hidden; padding: 0 22px; color: var(--muted); }
.qa.is-open .qa__body { grid-template-rows: 1fr; }
.qa.is-open .qa__body > p { padding-bottom: 20px; }

/* ==========================================================================
   CTA / FOOTER
   ========================================================================== */
.finale {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 70px; color: #fff;
  background: radial-gradient(120% 100% at 100% 0%, #7a49ff, #3a14b8 50%, #1d0b63 85%, #12053f);
}
.finale__bg span { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); }
.finale__bg span:first-child { width: 480px; height: 480px; background: #ff8a00; opacity: .4; bottom: -220px; left: -80px; animation: drift 14s infinite; }
.finale__bg span:last-child { width: 420px; height: 420px; background: #ff4d8d; opacity: .35; top: -200px; right: 8%; animation: drift 18s infinite reverse; }
.cta { padding: 100px 0 72px; }
.cta__box { text-align: center; }
.cta__box.is-arrived { animation: arrive 1s var(--ease); }
@keyframes arrive {
  0% { transform: scale(.96); opacity: .6; }
  60% { transform: scale(1.015); opacity: 1; }
  100% { transform: none; }
}
.cta__logo { width: 72px; height: 72px; margin: 0 auto 22px; animation: floatY 5s ease-in-out infinite; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35)); }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta p { max-width: 640px; margin: 16px auto 0; color: rgba(255, 255, 255, .8); font-size: 1.05rem; }
.cta__actions { margin-top: 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.footer { border-top: 1px solid rgba(255, 255, 255, .16); padding: 28px 0; background: rgba(10, 2, 40, .25); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.brand--footer { color: #fff; }
.brand--footer .brand__mark { width: 32px; height: 32px; }
.brand--footer .brand__name { font-size: 1.15rem; }
.footer p { color: rgba(255, 255, 255, .68); font-size: .9rem; }
.footer a:hover { color: var(--orange-2); }

.to-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--grad-brand); color: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.to-top .ic { transform: rotate(180deg); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 150;
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  padding: 12px 22px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem;
  box-shadow: var(--shadow-lg);
  transition: transform .45s var(--ease), visibility 0s .45s;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 64px; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__chips { justify-content: center; }
  .float--2 { left: 0; }
  .float--1 { right: 0; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .extras__list { grid-template-columns: repeat(2, 1fr); }
  .audience__grid { grid-template-columns: repeat(2, 1fr); }
  .templates__grid, .tech__grid { grid-template-columns: 1fr; gap: 48px; }
  .panel__grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: calc(var(--nav-h) - 4px); right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px; border-radius: 18px;
    background: #fff; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none;
    transition: opacity .25s, transform .3s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a, .nav.is-scrolled .nav__links a { color: var(--ink-2); padding: 12px 16px; }
  .nav__links a:hover, .nav__links a.is-active { background: var(--violet-50); color: var(--violet-700); }
  .nav__links .nav__cta-mobile { display: flex; margin-top: 8px; color: #fff !important; background: var(--grad-brand); }
  .nav.is-open { background: rgba(255, 255, 255, .95); backdrop-filter: blur(16px); }
  .nav.is-open .brand { color: var(--ink); }
  .nav.is-open .nav__toggle { background: var(--violet-50); }
  .nav.is-open .nav__toggle span { background: var(--ink); }

  .section { padding: 80px 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px dashed var(--line); }
  .compare__grid { grid-template-columns: 1fr; }
  .compare__vs { justify-self: center; margin: -8px 0; }

  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before, .steps__fill { top: 0; bottom: 0; right: 45px; left: auto; width: 4px; height: auto; }
  .steps__fill { transform-origin: top; transform: scaleY(0); }
  .steps.is-run .steps__fill { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 92px 1fr; column-gap: 20px; text-align: right; padding: 0; }
  .step__icon { grid-row: span 2; margin: 0; }
  .step__num { left: auto; right: 70px; top: -6px; }
  .step h3 { align-self: end; margin: 0; }

  .wp { grid-template-columns: 1fr; }
  .wp__side { display: none; }
  .demo__stage { padding: 20px; border-radius: 20px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  body { font-size: 15px; }
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero__inner { padding-bottom: 64px; }
  .btn--lg { width: 100%; }
  .inv { padding: 16px; transform: none !important; }
  .inv__meta { grid-template-columns: 1fr 1fr; }
  .inv__meta div:last-child { display: none; }
  .float { font-size: .75rem; padding: 8px 12px; }
  .float--2 { top: -22px; left: 6%; }
  .float--1 { right: 4%; }
  .features__grid, .audience__grid, .extras__list { grid-template-columns: 1fr; }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .tpl { padding: 18px; font-size: .78rem; }
  .tpl--modern .tpl__head { margin: 0 -18px 16px; padding: 18px; }
  .tpl__head { flex-direction: column; align-items: flex-start; }
  .tpl__no { text-align: right; }
  .tpl__parties { grid-template-columns: 1fr; }
  .tpl__qr { width: 64px; height: 64px; }
  .tpl-inputs { grid-template-columns: 1fr; }
  .tech__cards { gap: 10px; }
  .req { padding: 18px; }
  .req b { font-size: 1.5rem; }
  .cta { padding: 72px 0 52px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .tabs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 18px; }
  .tabs__btn { justify-content: center; padding: 9px 6px; font-size: .8rem; white-space: normal; text-align: center; line-height: 1.5; border-radius: 13px; }
  .tabs__btn .ic { display: none; }
  .tabs__ink { border-radius: 13px; }
  .compare__card { padding: 24px; }
}

/* ==========================================================================
   MOTION / PRINT
   ========================================================================== */
/* ==========================================================================
   INTERACTION POLISH — hover / focus / press feedback
   ========================================================================== */
.btn { overflow: hidden; }
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%);
  transform: translateX(130%);
  transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(-130%); }
.btn--ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(109, 60, 240, .14) 50%, transparent 70%); }

.brand { transition: transform .35s var(--ease), opacity .25s; }
.brand:hover { transform: scale(1.05); }
.nav__toggle { transition: background .25s, transform .25s var(--ease); }
.nav__toggle:hover { transform: scale(1.06); }
.nav__toggle:active { transform: scale(.94); }

.hero__chips li { transition: transform .3s var(--ease), color .25s; }
.hero__chips li:hover { transform: translateY(-2px); color: #fff; }
.float { transition: transform .35s var(--ease), box-shadow .35s; }
.float:hover { transform: scale(1.07); box-shadow: var(--shadow-lg); }

.stat { transition: transform .4s var(--ease); }
.stat:hover { transform: translateY(-5px); }
.stat strong { display: inline-block; transition: transform .4s var(--ease); }
.stat:hover strong { transform: scale(1.1); }

.compare__card { transition: transform .4s var(--ease), box-shadow .4s, border-color .4s, opacity .8s var(--ease); }
.compare__card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.compare__card li { transition: transform .3s var(--ease), color .25s; }
.compare__card li:hover { transform: translateX(-5px); color: var(--ink); }
.compare__vs { transition: transform .5s var(--ease); }
.compare__grid:hover .compare__vs { transform: rotate(360deg) scale(1.08); }

.step { transition: transform .4s var(--ease); }
.step:hover .step__icon { transform: translateY(-8px) rotate(-5deg) scale(1.05); box-shadow: 0 20px 36px -14px rgba(91, 43, 224, .5); color: var(--violet-600); }
.step.is-active:hover .step__icon { color: #fff; }

.extras__list li { transition: transform .3s var(--ease), color .25s; }
.extras__list li:hover { transform: translateX(-6px); color: #fff; }
.extras__list .ic { transition: transform .35s var(--ease), color .25s; }
.extras__list li:hover .ic { transform: scale(1.25) rotate(-8deg); color: var(--orange-2); }

.nokey__col { transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.nokey__col:hover { transform: translateY(-6px); }
.nokey__steps li { transition: transform .3s var(--ease), background .3s; }
.nokey__steps li:hover { transform: translateX(-6px); background: rgba(255, 255, 255, .13); }
.nokey__steps li.is-pain:hover { background: rgba(255, 77, 141, .26); }
.nokey__steps li.is-gain:hover { background: rgba(14, 163, 113, .34); }
.nokey__key { transition: transform .5s var(--ease), background .3s; }
.nokey__mid:hover .nokey__key { transform: rotate(-14deg) scale(1.1); background: rgba(255, 255, 255, .18); }
.nokey__perks li { transition: transform .3s var(--ease), color .25s; }
.nokey__perks li:hover { transform: translateY(-3px); color: #fff; }

.tabs__btn { transition: color .3s, transform .25s var(--ease); }
.tabs__btn:not(.is-active):hover { color: #fff; transform: translateY(-2px); }
.tabs__btn:active { transform: scale(.96); }

.seg span:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.seg input:checked + span:hover { background: #fff; }
.seg label:active span { transform: scale(.96); }
.mini-seg button:not(.is-on):hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.mini-seg button:active { transform: scale(.95); }
.link-btn { transition: background .25s, transform .25s var(--ease); }
.link-btn:hover { transform: translateY(-1px); }
.link-btn:active { transform: scale(.96); }

.field input[type="text"]:hover:not(:focus):not([readonly]) { border-color: var(--violet-300); background: #fff; }
.stepper-input button:active { transform: scale(.88); background: var(--violet-100); }
input[type="range"]::-webkit-slider-thumb { transition: transform .25s var(--ease), box-shadow .25s; }
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.18); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.3); cursor: grabbing; box-shadow: 0 0 0 8px rgba(109, 60, 240, .18); }

.chips button { transition: all .25s var(--ease); }
.chips button:not(.is-on):hover { border-color: var(--violet-300); color: var(--violet-700); transform: translateY(-2px); box-shadow: 0 6px 14px -8px rgba(91, 43, 224, .5); }
.chips button:active { transform: scale(.95); }
.icon-btn { transition: all .25s var(--ease); }
.icon-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 16px -8px rgba(91, 43, 224, .55); }
.icon-btn:active { transform: scale(.92); }
.send-btn { transition: transform .25s var(--ease), box-shadow .25s; }
.send-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -6px rgba(91, 43, 224, .7); }
.send-btn:active { transform: scale(.95); }
.swatches button:active { transform: scale(.9); }

.req { transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.req:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--violet-100); }
.tech__list li { transition: transform .3s var(--ease), color .25s; }
.tech__list li:hover { transform: translateX(-6px); color: var(--violet-700); }

.qa summary { border-radius: 16px; transition: background .3s, color .3s; }
.qa summary:hover { background: var(--violet-50); color: var(--violet-700); }
.qa summary:active { background: var(--violet-100); }

.footer a { transition: color .25s; }
.to-top { transition: opacity .3s, transform .3s var(--ease), box-shadow .3s; }
.to-top.is-on:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -10px rgba(91, 43, 224, .7); }
.to-top.is-on:active { transform: scale(.92); }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Motion is intentionally NOT switched off for prefers-reduced-motion (owner's explicit
   request — that OS setting was killing every hover transition on their machine).
   To honour it again, wrap the animations/transitions above in
   @media (prefers-reduced-motion: no-preference) or add a reduce block here. */

@media print {
  @page { size: A4; margin: 12mm; }
  /* Everything except the cloned invoice is removed from layout (not just hidden),
     otherwise the page's full height still paginates into dozens of blank sheets. */
  body.print-tpl > *:not(#printRoot) { display: none !important; }
  body.print-tpl { background: #fff; overflow: visible; }
  body.print-tpl #printRoot { display: block; max-width: 180mm; margin: 0 auto; }
  body.print-tpl #printRoot .tpl {
    box-shadow: none; animation: none; break-inside: avoid;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  body.print-tpl #printRoot .tpl * { transition: none !important; }
}
#printRoot { display: none; }
