/* ==========================================================================
   InvoiceLink - public landing page
   Design system: deep-blue product palette, layered elevation, glass surfaces,
   bento grid. Self-contained; independent of the Vristo admin theme.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Neutrals */
    --ink: #0b1020;
    --ink-2: #1d2740;
    --muted: #5d6b87;
    --muted-2: #8795ad;
    --line: #e3e9f6;
    --line-strong: #cfd9ec;
    --surface: #ffffff;
    --surface-2: #f7f9ff;
    --bg: #f5f8ff;

    /* Blues */
    --navy-950: #060b1a;
    --navy-900: #0a1330;
    --navy-800: #112049;
    --blue-800: #15349c;
    --blue-700: #1b47d6;
    --blue-600: #2563ff;
    --blue-500: #4a7dff;
    --blue-400: #7ba1ff;
    --blue-200: #c3d5ff;
    --blue-100: #e5edff;
    --blue-50: #f1f5ff;

    /* Support */
    --cyan: #3ad7ef;
    --emerald: #16c79a;
    --amber: #ffb547;
    --danger: #e5484d;

    /* Elevation */
    --sh-xs: 0 1px 2px rgba(11, 16, 32, .05);
    --sh-sm: 0 1px 2px rgba(11, 16, 32, .05), 0 6px 16px -8px rgba(11, 16, 32, .14);
    --sh-md: 0 2px 4px rgba(11, 16, 32, .04), 0 18px 32px -18px rgba(17, 32, 73, .28);
    --sh-lg: 0 30px 60px -32px rgba(17, 32, 73, .42);
    --sh-blue: 0 18px 40px -20px rgba(37, 99, 255, .55);
    --sh-blue-sm: 0 10px 22px -12px rgba(37, 99, 255, .6);

    /* Geometry */
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;

    --maxw: 1180px;
    --gutter: clamp(18px, 5vw, 44px);
    --section-y: clamp(68px, 8vw, 116px);

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Sora", "Inter", "Segoe UI", Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --grad-blue: linear-gradient(135deg, #3b7bff 0%, #1b47d6 100%);
    --grad-dark: linear-gradient(165deg, #070e22 0%, #0d1b3f 55%, #0a1330 100%);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16.5px;
    line-height: 1.68;
    letter-spacing: -.005em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -.03em;
    margin: 0 0 .5em;
    font-weight: 600;
    color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4.3vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
p { margin: 0 0 1rem; }

::selection { background: var(--blue-200); color: var(--ink); }

:focus-visible {
    outline: 2px solid var(--blue-600);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.hp-field {
    position: absolute !important;
    left: -9999px;
    opacity: 0;
    height: 0; width: 0;
    pointer-events: none;
}

/* ---------- Layout ---------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.section--dark { background: var(--grad-dark); color: #e8edfa; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* faint grid texture on dark panels */
.section--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 75%);
    pointer-events: none;
}
.section--dark > * { position: relative; z-index: 1; }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 4.5vw, 58px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }
.section--dark .section-head p { color: #a7b4d0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 7px 14px 7px 11px;
    border-radius: 999px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--blue-700);
    margin-bottom: 18px;
}
.section--dark .eyebrow {
    background: rgba(74, 125, 255, .14);
    border-color: rgba(123, 161, 255, .32);
    color: #b7cdff;
}

.eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(37, 99, 255, .16);
}
.section--dark .eyebrow .dot { background: var(--cyan); box-shadow: 0 0 0 4px rgba(58, 215, 239, .18); }

.grad-text {
    background: linear-gradient(120deg, #6ea2ff 0%, #3ad7ef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    font-size: .97rem;
    letter-spacing: -.01em;
    white-space: nowrap;
    box-shadow: var(--sh-sm);
    transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--grad-blue);
    color: #fff;
    box-shadow: var(--sh-blue-sm);
}
.btn--primary:hover { box-shadow: var(--sh-blue); }

.btn--light { background: #fff; color: var(--blue-700); border-color: var(--line); }

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
    box-shadow: none;
}
.btn--ghost:hover { background: var(--surface); border-color: var(--blue-200); }

.section--dark .btn--ghost,
.hero .btn--ghost {
    color: #dce5fb;
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.04);
}
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.38); }

.btn--lg { padding: 16px 30px; font-size: 1.02rem; border-radius: 14px; }
.btn--block { width: 100%; }
.btn svg { flex: none; }

/* ---------- Scroll progress ---------- */
.progress {
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    z-index: 120;
    background: transparent;
    pointer-events: none;
}
.progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--blue-600), var(--cyan));
    transition: width .1s linear;
}

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nav.is-stuck {
    background: rgba(255, 255, 255, .9);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px -26px rgba(17, 32, 73, .8);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--grad-blue);
    color: #fff;
    border-radius: 11px;
    box-shadow: var(--sh-blue-sm);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.04em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.035em; }
.brand__by { white-space: nowrap; font-size: .66rem; color: var(--muted-2); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
    position: relative;
    font-weight: 500;
    font-size: .94rem;
    color: var(--muted);
    padding: 8px 13px;
    border-radius: 9px;
    transition: color .16s ease, background .16s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--blue-50); }
.nav__links a.is-active { color: var(--blue-700); background: var(--blue-50); font-weight: 600; }

.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__cta .label-short { display: none; }

.nav__toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 10px;
    box-shadow: var(--sh-xs);
}
.nav__toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); margin: 4px 0; transition: transform .22s ease, opacity .18s ease; }
.nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--grad-dark);
    color: #fff;
    overflow: hidden;
    padding-block: clamp(60px, 7vw, 104px) clamp(72px, 9vw, 120px);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(640px 420px at 78% 8%, rgba(59, 123, 255, .42), transparent 68%),
        radial-gradient(520px 360px at 8% 92%, rgba(58, 215, 239, .18), transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 72%);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: clamp(36px, 5vw, 70px);
    align-items: center;
}

.hero h1 { color: #fff; margin-bottom: 20px; max-width: 19ch; }
.hero h1 .hl {
    white-space: nowrap;
    background: linear-gradient(115deg, #7fb0ff 0%, #3ad7ef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead { font-size: clamp(1.04rem, 1.45vw, 1.18rem); color: #aebbd8; max-width: 54ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 11px; }
.hero__points li { display: flex; gap: 11px; align-items: flex-start; color: #c3cee8; font-size: .95rem; }
.hero__points .check {
    flex: none;
    width: 20px; height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(58, 215, 239, .14);
    border: 1px solid rgba(58, 215, 239, .4);
    color: var(--cyan);
}

/* Glass stat panel */
.glass {
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
}

.hero__panel { padding: clamp(20px, 2.6vw, 28px); }
.hero__panel-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.hero__panel-head strong { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }

.pill {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(22, 199, 154, .14);
    border: 1px solid rgba(22, 199, 154, .38);
    color: #6ef0c8;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.stat {
    background: rgba(8, 14, 32, .5);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--r-md);
    padding: 15px 16px;
    transition: border-color .18s ease, transform .18s ease;
}
.stat:hover { border-color: rgba(123, 161, 255, .42); transform: translateY(-2px); }
.stat__num {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.1;
    color: #fff;
}
.stat__num span { color: var(--cyan); }
.stat__label { font-size: .78rem; color: #93a2c2; line-height: 1.4; margin-top: 3px; }

.hero__panel-note { margin: 16px 0 0; font-size: .84rem; color: #93a2c2; }

/* ---------- Client strip ---------- */
.clients {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding-block: 26px;
    overflow: hidden;
}
.clients__label {
    text-align: center;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 18px;
}
.marquee__mask {
    position: relative;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee { display: flex; gap: 10px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.client-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 18px 9px 14px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink-2);
    letter-spacing: -.015em;
    white-space: nowrap;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.client-chip::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--blue-400);
    flex: none;
}
.client-chip:hover { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue-700); }

/* ---------- Bento grid ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(14px, 1.5vw, 18px);
}

.bento__card {
    grid-column: span 2;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(22px, 2.4vw, 30px);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.bento__card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--blue-200); }
.bento__card--wide { grid-column: span 3; }
.bento__card--hero {
    grid-column: span 4;
    background: var(--grad-blue);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--sh-blue);
}
.bento__card--hero::after {
    content: "";
    position: absolute;
    width: 300px; height: 300px;
    right: -90px; top: -120px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}
.bento__card--ink {
    grid-column: span 2;
    background: var(--grad-dark);
    border-color: rgba(255,255,255,.1);
    color: #fff;
}
.bento__card--accent { background: var(--blue-50); border-color: var(--blue-100); }

.bento__card h3 { margin-bottom: 8px; }
.bento__card p { margin: 0; color: var(--muted); font-size: .95rem; }
.bento__card--hero h3, .bento__card--ink h3 { color: #fff; }
.bento__card--hero p, .bento__card--ink p { color: rgba(255,255,255,.85); }
.bento__card--hero *, .bento__card--ink * { position: relative; z-index: 1; }

.card-icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--blue-700);
    margin-bottom: 16px;
}
.bento__card--hero .card-icon,
.bento__card--ink .card-icon {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.22);
    color: #fff;
}

.bento__metric {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--blue-700);
}

/* ---------- Value cards ---------- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: clamp(16px, 1.8vw, 22px);
}

.value-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(24px, 2.4vw, 32px);
    box-shadow: var(--sh-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.value-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--grad-blue);
    opacity: 0;
    transition: opacity .2s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--blue-200); }
.value-card:hover::before { opacity: 1; }

.value-card__tag {
    align-self: flex-start;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--blue-700);
}
.value-card h3 { margin: 0; }
.value-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.value-card__proof {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    font-weight: 600;
    font-size: .9rem;
    color: var(--blue-700);
    display: flex;
    align-items: center;
    gap: 8px;
}
.value-card__proof::before {
    content: "";
    width: 16px; height: 2px;
    border-radius: 2px;
    background: var(--blue-500);
}

/* ---------- Interactive product canvas ---------- */
.canvas {
    background: rgba(7, 13, 31, .72);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.canvas__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.1);
    flex-wrap: wrap;
}
.canvas__dots { display: flex; gap: 6px; }
.canvas__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.22); }
.canvas__dots i:first-child { background: #ff6058; }
.canvas__dots i:nth-child(2) { background: #ffbd2e; }
.canvas__dots i:nth-child(3) { background: #28ca42; }
.canvas__title { font-family: var(--font-mono); font-size: .78rem; color: #8fa0c4; }

.canvas__mode { margin-left: auto; display: flex; gap: 4px; background: rgba(0,0,0,.34); padding: 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); }
.canvas__mode button {
    border: 0; background: transparent; color: #93a2c2;
    font-size: .78rem; font-weight: 600; padding: 6px 15px; border-radius: 999px;
    transition: background .16s ease, color .16s ease;
}
.canvas__mode button:hover { color: #fff; }
.canvas__mode button[aria-pressed="true"] { background: var(--grad-blue); color: #fff; box-shadow: var(--sh-blue-sm); }

.canvas__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 470px;
}

.canvas__form { padding: clamp(20px, 2.4vw, 28px); border-right: 1px solid rgba(255,255,255,.1); }
.canvas__out { padding: clamp(20px, 2.4vw, 28px); background: rgba(255,255,255,.025); }
.canvas__out h3 { font-size: .88rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #93a2c2; margin-bottom: 10px; }

.canvas__steps { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.canvas__step {
    font-size: .72rem;
    font-weight: 600;
    color: #8697ba;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: 5px 12px;
    transition: all .2s ease;
}
.canvas__step.is-active { color: #fff; background: var(--grad-blue); border-color: transparent; }
.canvas__step.is-done { color: #6ef0c8; border-color: rgba(22, 199, 154, .45); background: rgba(22, 199, 154, .1); }

.field { margin-bottom: 15px; }
.field label {
    display: block;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #93a2c2;
    margin-bottom: 7px;
}
.field input, .field select {
    width: 100%;
    padding: 11px 13px;
    background: rgba(6, 11, 26, .66);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: .94rem;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(74, 125, 255, .22);
    outline: none;
}
.field select option { color: #0b1020; background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.totals { border-top: 1px solid rgba(255,255,255,.12); margin-top: 18px; padding-top: 16px; display: grid; gap: 9px; }
.totals__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .92rem; color: #a7b4d0; }
.totals__row strong { font-family: var(--font-mono); font-weight: 500; color: #e8edfa; }
.totals__row--grand { padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.16); font-size: 1rem; color: #fff; font-weight: 600; }
.totals__row--grand strong { color: var(--cyan); font-size: 1.16rem; font-weight: 700; }

.canvas__cta { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

.terminal {
    font-family: var(--font-mono);
    font-size: .78rem;
    line-height: 1.62;
    background: rgba(3, 7, 20, .68);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-md);
    padding: 15px;
    color: #c6d2ee;
    max-height: 236px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}
.terminal::-webkit-scrollbar { width: 8px; }
.terminal::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; }
.terminal .k { color: #7ba1ff; }
.terminal .s { color: #6ef0c8; }
.terminal .n { color: #ffc46b; }

.log { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.log li { display: flex; gap: 11px; align-items: center; font-size: .87rem; color: #8697ba; transition: color .2s ease; }
.log li .tick {
    width: 21px; height: 21px; flex: none;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    display: grid; place-items: center;
    font-size: .68rem;
    font-weight: 600;
    transition: all .2s ease;
}
.log li.is-done { color: #dbe3f6; }
.log li.is-done .tick { background: var(--emerald); border-color: var(--emerald); color: #04231a; }
.log li.is-active { color: #fff; }
.log li.is-active .tick { border-color: var(--blue-400); color: var(--blue-400); box-shadow: 0 0 0 4px rgba(74,125,255,.16); }

.receipt {
    background: #fff;
    color: var(--ink);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    padding: 20px;
    margin-top: 18px;
    display: none;
}
.receipt.is-visible { display: block; animation: rise .38s cubic-bezier(.2,.7,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.receipt__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px solid var(--line); }
.receipt__label { font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.receipt__irn { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; word-break: break-all; color: var(--blue-700); }
.receipt__badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    background: rgba(22, 199, 154, .12);
    color: #0b8f6e;
    border: 1px solid rgba(22, 199, 154, .34);
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
}
.receipt__meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; font-size: .78rem; color: var(--muted-2); }
.receipt__meta b { display: block; color: var(--ink); font-family: var(--font-mono); font-size: .88rem; font-weight: 600; margin-top: 2px; }
.receipt__qr { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.receipt__qr .qr { width: 82px; height: 82px; flex: none; border: 1px solid var(--line); border-radius: 10px; }
.receipt__qr p { margin: 0; font-size: .8rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 1.8vw, 22px); counter-reset: step; position: relative; }
.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(22px, 2.2vw, 28px);
    box-shadow: var(--sh-sm);
    transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--blue-200); }
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--blue-700);
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 1.8vw, 22px); }
.compare__col {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(24px, 2.4vw, 32px);
    background: var(--surface);
    box-shadow: var(--sh-sm);
}
.compare__col--win {
    background: var(--grad-dark);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--sh-lg);
}
.compare__col--win h3 { color: #fff; }
.compare__col h3 { margin-bottom: 18px; }
.compare__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.compare__list li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.compare__col--win .compare__list li { color: #c3cee8; }
.compare__list .mark {
    flex: none; width: 21px; height: 21px; margin-top: 2px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700; font-size: .72rem;
}
.mark--no { background: rgba(229, 72, 77, .1); color: #d93b40; border: 1px solid rgba(229, 72, 77, .28); }
.mark--yes { background: rgba(58, 215, 239, .14); color: var(--cyan); border: 1px solid rgba(58, 215, 239, .36); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq__item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-xs);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.faq__item[data-open="true"] { border-color: var(--blue-200); box-shadow: var(--sh-sm); }
.faq__q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 19px 21px;
    background: transparent;
    border: 0;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.01rem;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ink);
    transition: color .16s ease;
}
.faq__q:hover { color: var(--blue-700); }
.faq__q .chev {
    flex: none; width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--blue-700);
    font-weight: 700;
    font-size: .9rem;
    transition: transform .24s ease, background .2s ease, color .2s ease;
}
.faq__item[data-open="true"] .chev { transform: rotate(45deg); background: var(--grad-blue); border-color: transparent; color: #fff; }
.faq__a { padding: 0 21px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq__item[data-open="true"] .faq__a { padding: 0 21px 21px; max-height: 560px; }
.faq__a p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 2.6vw, 40px); align-items: start; }

.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: clamp(24px, 2.8vw, 36px);
    box-shadow: var(--sh-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }

.form-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.form-field label .req { color: var(--danger); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: var(--surface-2);
    font-family: inherit;
    font-size: .95rem;
    color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #9aa7bf; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(74, 125, 255, .14);
}
.form-field textarea { min-height: 124px; resize: vertical; }
.form-field .err { display: block; color: var(--danger); font-size: .8rem; margin-top: 5px; min-height: 1em; }
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(229, 72, 77, .1); }

.form-note { font-size: .83rem; color: var(--muted); margin: 13px 0 0; }

.form-status { margin-top: 15px; padding: 13px 16px; border-radius: 11px; font-weight: 500; font-size: .92rem; display: none; border: 1px solid transparent; }
.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(22, 199, 154, .09); border-color: rgba(22, 199, 154, .3); color: #0b7d60; }
.form-status--err { background: rgba(229, 72, 77, .08); border-color: rgba(229, 72, 77, .28); color: #c0333a; }

.contact-panel { display: grid; gap: 13px; }
.contact-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px 20px;
    box-shadow: var(--sh-xs);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.contact-item:hover { border-color: var(--blue-200); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.contact-item__icon {
    width: 40px; height: 40px; flex: none;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--blue-700);
}
.contact-item h3 { font-size: .92rem; margin: 0 0 3px; }
.contact-item p { margin: 0; font-size: .93rem; color: var(--muted); word-break: break-word; }
.contact-item a { color: var(--ink-2); font-weight: 500; }
.contact-item a:hover { color: var(--blue-700); text-decoration: underline; }
.contact-item .sub { font-size: .83rem; color: var(--muted-2); }

.contact-map { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-xs); background: var(--blue-50); min-height: 170px; display: grid; place-items: center; text-align: center; padding: 22px; }
.contact-map iframe { width: 100%; height: 230px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    background: var(--grad-blue);
    color: #fff;
    padding-block: clamp(52px, 6vw, 84px);
    text-align: center;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 50% 0%, rgba(255,255,255,.2), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 58ch; margin-inline: auto; }
.cta-band .btn { margin-top: 22px; }
.cta-band .btn--light:hover { background: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--grad-dark); color: #93a2c2; padding-block: clamp(48px, 5vw, 72px) 26px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: clamp(22px, 2.6vw, 40px); }
.footer h4 { font-family: var(--font-display); color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .9rem; }
.footer a { transition: color .16s ease; }
.footer a:hover { color: #fff; }
.footer p { font-size: .91rem; line-height: 1.7; }
.footer .brand__name { color: #fff; }
.footer .brand__by { color: #6f7fa3; }
.footer__bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: #6f7fa3;
}

/* ---------- Floating actions ---------- */
.float-stack { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; justify-items: center; }

.float-wa {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 12px 26px -10px rgba(37, 211, 102, .8);
    display: grid;
    place-items: center;
    transition: transform .18s ease, box-shadow .18s ease;
}
.float-wa:hover { transform: translateY(-3px) scale(1.04); }

.to-top {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--blue-700);
    display: grid;
    place-items: center;
    box-shadow: var(--sh-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--blue-200); background: var(--blue-50); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; }
    .canvas__body { grid-template-columns: 1fr; }
    .canvas__form { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .bento__card, .bento__card--wide, .bento__card--hero, .bento__card--ink { grid-column: span 3; }
}

@media (max-width: 400px) {
    .brand__by { display: none; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }

    .nav__toggle { display: block; }
    .nav__links {
        position: fixed;
        inset: 72px 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -30px rgba(17,32,73,.7);
        padding: 12px var(--gutter) 20px;
        transform: translateY(-130%);
        transition: transform .3s cubic-bezier(.2,.7,.3,1);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .nav[data-open="true"] .nav__links { transform: none; }
    .nav__links a { padding: 13px 12px; font-size: 1rem; }

    .nav__cta .btn { padding: 10px 16px; font-size: .88rem; }
    .nav__cta .label-full { display: none; }
    .nav__cta .label-short { display: inline; }

    .bento { grid-template-columns: 1fr; }
    .bento__card, .bento__card--wide, .bento__card--hero, .bento__card--ink { grid-column: span 1; }
    .field-row, .form-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .receipt__meta { grid-template-columns: 1fr; }

    .hero__actions .btn, .cta-band .btn { width: 100%; }
    .float-stack { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .nav, .float-stack, .cta-band, .canvas__cta, .progress { display: none !important; }
    body { background: #fff; }
}
