/* ═══════════════════════════════════════════════════════════════
   EasyInvoice — landing page styles
   Tokens first; nothing below hardcodes a colour or a size that has
   a token. The page is light ("paper"); the two dark bands (the demo
   and the cloud section) reuse the app's own night palette so the
   screenshots sit in their native surroundings.
═══════════════════════════════════════════════════════════════ */

:root {
    /* paper */
    --paper:      #F5F7FC;
    --paper-2:    #ECF0F8;
    --paper-3:    #DCE3F1;
    --card:       #FFFFFF;
    /* ink */
    --ink:        #011338;
    --ink-2:      #2A3654;
    --muted:      #637091;
    --line:       rgba(1, 19, 56, .09);
    --line-2:     rgba(1, 19, 56, .17);
    /* accents — taken from the EasyInvoice logo */
    --blue:       #0053ED;
    --blue-2:     #2E74F5;
    --blue-soft:  #E3ECFD;
    --deep:       #03348C;
    --deep-2:     #1A4FB8;
    --deep-soft:  #E5EBF7;
    --sky:        #7FA9FA;
    /* night — the logo's navy */
    --night:      #030E28;
    --night-2:    #0A1838;
    --night-3:    #112147;
    --night-line: rgba(255, 255, 255, .08);
    --night-ink:  #E8E6E1;
    --night-mute: #8D9BBD;
    --app-blue:   #5B8DEF;
    --glow:       #8FB4FF;
    --ok:         #3FA06B;
    --warn:       #D9604F;

    /* type */
    --f-display:  'Outfit', 'Hanken Grotesk', system-ui, sans-serif;
    --f-body:     'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono:     ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --fs-xs:   .78rem;
    --fs-sm:   .9rem;
    --fs-base: 1.0625rem;
    --fs-lg:   1.2rem;
    --fs-xl:   clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
    --fs-2xl:  clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
    --fs-hero: clamp(2.4rem, 1.3rem + 3.2vw, 4.1rem);

    /* space */
    --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
    --s-5: 1.5rem; --s-6: 2rem;  --s-7: 3rem;   --s-8: 4.5rem; --s-9: 7rem;

    --gutter:  clamp(1rem, .5rem + 2.5vw, 2.5rem);
    --maxw:    1220px;
    --r-sm:    8px;
    --r:       14px;
    --r-lg:    22px;
    --shadow:  0 1px 2px rgba(1,19,56,.05), 0 8px 24px -8px rgba(1,19,56,.12);
    --shadow-lg: 0 2px 6px rgba(1,19,56,.06), 0 30px 80px -24px rgba(1,19,56,.35);
    --ease:    cubic-bezier(.2, .7, .2, 1);
}

/* ── base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 var(--fs-base)/1.6 var(--f-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* film grain */
body::after {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: .05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; margin: 0; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--blue); background: linear-gradient(100deg, var(--deep) 0%, var(--blue) 55%, var(--blue-2) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dark h2 em, .t-dark h3 em, .cta h2 em { background: linear-gradient(100deg, #A9C6FF, var(--glow) 60%, #fff); -webkit-background-clip: text; background-clip: text; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-4); z-index: 200; }
.skip:focus { left: var(--s-4); }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--blue);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.section { padding: var(--s-9) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head h2 { font-size: var(--fs-2xl); margin-top: var(--s-4); }
.section-head p { color: var(--muted); font-size: var(--fs-lg); margin-top: var(--s-4); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ''; width: 22px; height: 1px; background: currentColor; }

/* ── buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    padding: .85rem 1.4rem; border-radius: 999px;
    font: 600 var(--fs-sm)/1 var(--f-body); letter-spacing: .01em;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px -10px rgba(1,19,56,.6); }
.btn-primary { background: linear-gradient(135deg, var(--deep), var(--blue)); }
.btn-primary:hover { background: linear-gradient(135deg, var(--ink), var(--deep)); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn svg { width: 16px; height: 16px; }

/* ── nav ────────────────────────────────────────────────────── */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(245, 247, 252, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: var(--s-5); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 38px; height: auto; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; color: var(--ink); }
.brand-name b { font-weight: 700; }
.brand-name i { font-style: normal; color: var(--blue); }
.nav-links { display: flex; gap: var(--s-5); margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: var(--s-4); }
.nav-cta .btn { padding: .65rem 1.1rem; }
.cta-short { display: none; }
.lang-sw { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; text-decoration: none; color: var(--muted); }
.lang-btn img { width: 16px; height: auto; border-radius: 2px; }
.lang-btn.active { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: var(--s-2); cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }

/* ── hero ───────────────────────────────────────────────────── */
.hero { padding: calc(72px + var(--s-8)) 0 var(--s-8); position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
    background: radial-gradient(closest-side, rgba(0,83,237,.13), transparent 70%), radial-gradient(closest-side at 30% 70%, rgba(3,52,140,.10), transparent 70%);
    pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--s-7); align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: var(--s-2);
    padding: .4rem .85rem .4rem .45rem; border-radius: 999px;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
    font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2);
}
.hero-badge .dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--deep-soft); }
.hero-badge .dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--deep); box-shadow: 0 0 0 0 rgba(0,83,237,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,83,237,.45); } 70% { box-shadow: 0 0 0 9px rgba(0,83,237,0); } 100% { box-shadow: 0 0 0 0 rgba(0,83,237,0); } }
.hero h1 { font-size: var(--fs-hero); margin-top: var(--s-5); }
.hero-lead { font-size: var(--fs-lg); color: var(--ink-2); margin-top: var(--s-5); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); margin-top: var(--s-5); }
.hero-price b { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-lg); color: var(--ink); }
.hero-price span { font-size: var(--fs-sm); color: var(--muted); }
.hero-proof { display: flex; gap: var(--s-2); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); max-width: 34em; }
.hero-proof svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--deep); }
.hero-proof a { color: var(--deep); font-weight: 600; white-space: nowrap; }

.hero-visual { position: relative; perspective: 1600px; }
.frame {
    border-radius: var(--r); overflow: hidden; background: var(--night);
    box-shadow: var(--shadow-lg); border: 1px solid rgba(1,19,56,.25);
}
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #1A1E26; border-bottom: 1px solid var(--night-line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3F4A; }
.frame-bar i:nth-child(1) { background: #E5675A; } .frame-bar i:nth-child(2) { background: #E8B54A; } .frame-bar i:nth-child(3) { background: #5DBB63; }
.frame-url { margin-left: 10px; flex: 1; max-width: 300px; height: 18px; border-radius: 6px; background: #252A34; color: var(--night-mute); font: 500 10px/18px var(--f-body); padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
/* Nearly front-on, so the interface text stays legible. */
.hero-frame { transform: rotateY(-2deg); transform-origin: left center; }
.hero-pdf {
    position: absolute; width: 30%; right: -3%; bottom: -14%;
    border-radius: 6px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg);
    transform: rotate(3deg);
}
.hero-pdf img { width: 100%; height: auto; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; }
.chip {
    position: absolute; display: inline-flex; align-items: center; gap: .55rem;
    padding: .6rem .9rem; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-lg);
    font-size: var(--fs-xs); font-weight: 600; color: var(--ink); white-space: nowrap;
}
.chip small { display: block; font-weight: 500; color: var(--muted); font-size: .7rem; }
.chip .ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--deep-soft); color: var(--deep); flex: none; }
.chip .ic svg { width: 16px; height: 16px; }
.chip-a { left: -4%; bottom: -6%; }

/* ── three benefits ───────────────────────────────────────── */
.benefits { padding-top: var(--s-7); }
.ben-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.ben { padding: var(--s-6); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.ben .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.ben .ic svg { width: 22px; height: 22px; }
.ben h2 { font-size: var(--fs-xl); margin-top: var(--s-4); }
.ben p { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s-3); }

/* ── fiskalizacija ─────────────────────────────────────────── */
.fisk-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--s-8); align-items: start; }
.fisk-copy p.lead { font-size: var(--fs-lg); color: var(--ink-2); margin-top: var(--s-4); }
.fisk-dates { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.fisk-date { display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.fisk-date b { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--blue); line-height: 1.25; }
.fisk-date span { font-size: var(--fs-sm); color: var(--ink-2); }
.fisk-date.next { border-style: dashed; background: transparent; }
.fisk-src { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--muted); }
.fisk-src a { color: var(--deep); }
.section.soft { background: var(--paper-2); }

/* the four-step e-invoice overview (static) */
.flow { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow); }
.flow-title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-4); }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.flow li { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--s-3); align-items: start; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.flow li:last-child { border-bottom: 0; }
.flow .fn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 700; font-size: var(--fs-sm); }
.flow li.todo .fn { background: var(--paper-2); color: var(--muted); border: 1px dashed var(--line-2); }
.flow h3 { font-family: var(--f-body); font-size: var(--fs-base); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.flow p { font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
.flow .fs { font-size: var(--fs-xs); font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: var(--deep-soft); color: var(--deep); white-space: nowrap; }
.flow li.todo .fs { background: var(--paper-2); color: var(--ink-2); }
.flow-note { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--ink-2); }
.tech { margin-top: var(--s-4); border-top: 1px dashed var(--line-2); padding-top: var(--s-4); }
.tech summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--deep); }
.tech ul { margin: var(--s-3) 0 0; padding-left: 1.1em; display: grid; gap: var(--s-2); font-size: var(--fs-xs); color: var(--ink-2); overflow-wrap: anywhere; }
.fcard-ex { display: inline-block; margin-top: var(--s-3); font: 500 var(--fs-xs) var(--f-mono); padding: .3rem .55rem; border-radius: 6px; background: #FDECEA; color: #9B2C1F; }

.fisk-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-top: var(--s-8); }
.fcard { padding: var(--s-5); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fcard .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); margin-bottom: var(--s-4); }
.fcard .ic svg { width: 20px; height: 20px; }
.fcard h3 { font-family: var(--f-body); font-size: var(--fs-base); font-weight: 600; letter-spacing: 0; }
.fcard p { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-2); }

/* ── demo (dark band) ──────────────────────────────────────── */
.dark { background: var(--night); color: var(--night-ink); }
.dark .eyebrow { color: var(--glow); }
.dark h2 em { color: var(--glow); }
.dark .section-head p { color: var(--night-mute); }
.demo-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.step { position: relative; border-radius: var(--r); border: 1px solid transparent; transition: background .3s, border-color .3s; }
.step button { display: block; width: 100%; padding: var(--s-4) var(--s-5); background: none; border: 0; border-radius: inherit; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.step:hover { background: rgba(255,255,255,.03); }
.step.active { background: var(--night-2); border-color: var(--night-line); }
.step-n { display: block; font: 500 var(--fs-xs) var(--f-mono); color: var(--night-mute); }
.step-t { display: block; font-family: var(--f-body); font-weight: 600; font-size: var(--fs-base); margin-top: 2px; color: var(--night-mute); transition: color .3s; }
.step.active .step-t { color: #fff; }
/* Inactive descriptions are hidden visually but stay readable to
   screen readers — the steps are the text version of the demo. */
.step-p { display: block; font-size: var(--fs-sm); color: var(--night-mute); margin-top: var(--s-2); }
.step:not(.active) .step-p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.step.active .step-p { animation: fadeUp .5s var(--ease); }
.mock-note { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--night-mute); text-align: center; }
.step-bar { position: absolute; left: var(--s-5); right: var(--s-5); bottom: 8px; height: 2px; background: var(--night-line); border-radius: 2px; overflow: hidden; display: none; }
.step.active .step-bar { display: block; }
.step-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--deep-2), var(--glow)); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* the scripted app mock */
.mock { position: relative; border-radius: var(--r); background: var(--night-2); border: 1px solid var(--night-line); box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); overflow: hidden; font-size: 13px; }
.mock-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 470px; }
.mock-side { background: var(--night); border-right: 1px solid var(--night-line); padding: 14px 10px; }
.mock-side .mb { display: flex; align-items: center; gap: 7px; font-weight: 600; color: #fff; margin-bottom: 16px; font-size: 12px; }
.mock-side .mb img { width: 20px; height: 20px; }
.mock-side .mi { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; color: var(--night-mute); font-size: 12px; }
.mock-side .mi.on { background: #1F2A3D; color: #fff; }
.mock-side .mi::before { content: ''; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .7; }
.mock-main { position: relative; padding: 20px 22px; }
.mock-h { display: flex; justify-content: space-between; align-items: center; }
.mock-h h4 { margin: 0; font-family: var(--f-body); font-size: 19px; font-weight: 700; color: #fff; }
.mock-num { font: 600 12px var(--f-mono); padding: 5px 10px; border-radius: 7px; background: var(--night-3); color: var(--night-mute); border-left: 3px solid var(--app-blue); transition: all .4s; }
.mock-num.claimed { color: #fff; background: #1F2A3D; }
.mock-row { display: grid; grid-template-columns: minmax(0, 1fr) 172px; gap: 16px; margin-top: 16px; }
.mock-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--night-mute); margin-bottom: 6px; }
.mock-field { position: relative; height: 34px; border-radius: 8px; background: var(--night-3); border: 1px solid var(--night-line); padding: 0 11px; display: flex; align-items: center; color: #fff; transition: border-color .3s; }
.mock-field.focus { border-color: var(--app-blue); box-shadow: 0 0 0 3px rgba(91,141,239,.18); }
.mock-field .caret { width: 1.5px; height: 15px; background: var(--app-blue); margin-left: 1px; animation: blink 1s steps(1) infinite; opacity: 0; }
.mock-field.focus .caret { opacity: 1; }
@keyframes blink { 50% { visibility: hidden; } }
.mock-card { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: var(--night-3); border-left: 3px solid var(--app-blue); color: var(--night-mute); font-size: 11.5px; line-height: 1.5; opacity: 0; transform: translateY(-4px); transition: all .45s var(--ease); }
.mock-card b { color: #fff; font-size: 12.5px; }
.mock-card.show { opacity: 1; transform: none; }
.mock-lines { margin-top: 16px; border: 1px solid var(--night-line); border-radius: 9px; overflow: hidden; }
.mock-lh, .mock-l { display: grid; grid-template-columns: minmax(0, 1fr) 66px 28px 82px; gap: 8px; padding: 8px 12px; align-items: center; }
.mock-lh span:nth-child(4), .mock-l span:nth-child(4) { display: none; }
.mock-l span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-lh { background: var(--night-3); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--night-mute); }
.mock-lh span:nth-child(n+3), .mock-l span:nth-child(n+3) { text-align: right; }
.mock-l { border-top: 1px solid var(--night-line); color: #fff; opacity: 0; transform: translateX(-10px); transition: all .45s var(--ease); }
.mock-l.show { opacity: 1; transform: none; }
.mock-l .kpd { font: 500 10px var(--f-mono); padding: 2px 6px; border-radius: 5px; background: rgba(0,83,237,.2); color: #8FB4FF; justify-self: start; }
.mock-l .amt { font-variant-numeric: tabular-nums; }
.mock-empty { padding: 14px 12px; color: var(--night-mute); font-size: 11.5px; border-top: 1px solid var(--night-line); }
.mock-sum { padding: 12px 14px; border-radius: 10px; background: var(--night-3); border: 1px solid var(--night-line); }
.mock-sum div { display: flex; justify-content: space-between; color: var(--night-mute); font-size: 11.5px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.mock-sum .tot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--night-line); color: #fff; font-weight: 700; font-size: 14px; }
.mock-sum .tot span:last-child { color: #8DB2F7; }
.mock-btn { position: relative; margin-top: 10px; height: 34px; border-radius: 8px; background: var(--app-blue); color: #fff; font-weight: 700; display: grid; place-items: center; overflow: hidden; transition: transform .15s, background .3s; }
.mock-btn.press { transform: scale(.96); }
.mock-btn.done { background: var(--ok); }
.mock-btn::after { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); opacity: 0; }
.mock-btn.press::after { animation: ripple .6s ease-out; }
@keyframes ripple { from { opacity: 1; transform: scale(0); } to { opacity: 0; transform: scale(30); } }
.mock-btn2 { margin-top: 6px; height: 30px; border-radius: 8px; border: 1px solid var(--night-line); color: var(--night-mute); display: grid; place-items: center; font-size: 12px; }
.cursor { position: absolute; z-index: 5; width: 20px; height: 20px; left: 60%; top: 30%; pointer-events: none; transition: left .9s var(--ease), top .9s var(--ease); filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }

/* the output panel that slides over the form */
.mock-out { position: absolute; inset: 0; background: rgba(15,18,24,.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: center; padding: 22px 30px; opacity: 0; pointer-events: none; transition: opacity .5s; }
.mock-out.show { opacity: 1; }
.paper { background: #fff; color: #222; border-radius: 4px; padding: 14px 14px 12px; font-size: 7.5px; line-height: 1.45; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); transform: translateY(30px) rotate(-3deg) scale(.92); opacity: 0; transition: all .7s var(--ease); position: relative; }
.mock-out.show .paper { transform: rotate(-2deg); opacity: 1; }
.paper .ph { display: flex; justify-content: space-between; }
.paper .ph b { font-size: 9px; }
.paper .pt { font-size: 14px; font-weight: 800; color: var(--blue); letter-spacing: .02em; text-align: right; }
.paper .pbar { margin: 9px 0 4px; height: 9px; background: var(--blue); border-radius: 1px; }
.paper .pl { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding: 2px 0; }
.paper .ptot { display: flex; justify-content: space-between; margin-top: 6px; padding: 3px 5px; background: var(--blue); color: #fff; font-weight: 700; font-size: 8.5px; }
.paper .pfoot { display: flex; justify-content: space-between; align-items: end; margin-top: 10px; }
.paper .hub3 { width: 105px; height: 26px; background: repeating-linear-gradient(90deg, #111 0 1px, #fff 1px 2px, #111 2px 4px, #fff 4px 5px, #111 5px 6px, #fff 6px 8px); }
.paper .qr { width: 30px; height: 30px; background: conic-gradient(#111 25%, #fff 0 50%, #111 0 75%, #fff 0) 0 0 / 6px 6px; border: 2px solid #111; }
.stamp { position: absolute; right: 10px; top: 52px; padding: 4px 10px; border: 2px solid var(--ok); color: var(--ok); font: 800 11px var(--f-body); letter-spacing: .12em; border-radius: 4px; transform: rotate(-12deg) scale(2); opacity: 0; transition: all .4s cubic-bezier(.3, 1.6, .5, 1); background: rgba(255,255,255,.85); }
.stamp.show { opacity: 1; transform: rotate(-12deg) scale(1); }
.outs { display: grid; gap: 10px; }
.out { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; background: var(--night-2); border: 1px solid var(--night-line); color: #fff; opacity: 0; transform: translateX(16px); transition: all .5s var(--ease); }
.out.show { opacity: 1; transform: none; }
.out .ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(91,141,239,.15); color: #8DB2F7; flex: none; }
.out .ic svg { width: 16px; height: 16px; }
.out.ok .ic { background: rgba(63,160,107,.16); color: #6FD39A; }
.out.wine .ic { background: rgba(143,180,255,.14); color: var(--glow); }
.out b { display: block; font-size: 12.5px; }
.out small { color: var(--night-mute); font-size: 11px; }
.out .tick { margin-left: auto; color: #6FD39A; opacity: 0; transition: opacity .3s .3s; }
.out.show .tick { opacity: 1; }
.out .tick svg { width: 16px; height: 16px; }

/* ── features (bento) ─────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
.tile { position: relative; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); padding: var(--s-6); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile h3 { font-size: var(--fs-xl); }
.tile p { color: var(--muted); margin-top: var(--s-3); font-size: var(--fs-sm); max-width: 36em; }
.tile ul { margin: var(--s-4) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); font-size: var(--fs-sm); color: var(--ink-2); }
.tile li { display: flex; gap: var(--s-2); }
.tile li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--blue); }
.tile .shot { margin-top: var(--s-5); border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.tile .shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.tile:hover .shot img { transform: scale(1.03); }
.t-a { grid-column: span 4; } .t-b { grid-column: span 2; } .t-c { grid-column: span 2; } .t-d { grid-column: span 2; } .t-e { grid-column: span 2; } .t-f { grid-column: span 3; } .t-g { grid-column: span 3; }
.t-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.t-dark p, .t-dark li { color: #A9B6D3; }
.t-dark h3 em { color: var(--glow); }
.tile .big { font-family: var(--f-display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--blue); margin-top: var(--s-4); }
.t-dark .big { color: var(--glow); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-4); }
.tags span { padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.t-dark .tags span { border-color: rgba(255,255,255,.18); color: #D3DCF0; }

/* ── gallery ──────────────────────────────────────────────── */
.gal-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-bottom: var(--s-6); }
.gal-tab { padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 600 var(--fs-sm) var(--f-body); cursor: pointer; transition: all .25s; }
.gal-tab:hover { border-color: var(--ink); }
.gal-tab.primary { padding: .7rem 1.25rem; font-size: var(--fs-base); }
.gal-tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gal-sep { flex: none; width: 1px; align-self: stretch; margin: 0 var(--s-2); background: var(--line-2); }
.gal-stage { position: relative; max-width: 1080px; margin: 0 auto; }
.gal-zoom { display: block; width: 100%; padding: 0; cursor: zoom-in; font: inherit; text-align: left; position: relative; }
.gal-zoom .frame-url { display: block; }
.gal-stage .frame img { transition: opacity .45s ease; }
.gal-stage .frame img.fade { opacity: 0; }
.zoom-ic { position: absolute; right: var(--s-4); bottom: var(--s-4); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(1,19,56,.75); color: #fff; }
.zoom-ic svg { width: 20px; height: 20px; }
.gal-dialog { width: min(96vw, 1600px); max-height: 94vh; padding: 0; border: 0; border-radius: var(--r); background: var(--night); overflow: auto; }
.gal-dialog::backdrop { background: rgba(3,14,40,.82); }
.gal-dialog img { width: 100%; height: auto; }
.dlg-close { position: sticky; top: 0; float: right; margin: var(--s-2); width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 1; }

/* the full feature list */
.all-feat { max-width: 820px; margin: var(--s-6) auto 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.all-feat summary { cursor: pointer; padding: var(--s-4) var(--s-5); font-weight: 600; }
.all-feat ul { margin: 0; padding: 0 var(--s-5) var(--s-5); list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); color: var(--ink-2); }
.all-feat li { display: flex; gap: var(--s-2); }
.all-feat li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--blue); }
.gal-cap { text-align: center; margin-top: var(--s-5); color: var(--muted); font-size: var(--fs-sm); min-height: 1.6em; }

/* ── cloud ────────────────────────────────────────────────── */
.cloud-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.cloud-list { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.cloud-item { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); }
.cloud-item .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--night-2); border: 1px solid var(--night-line); color: var(--glow); }
.cloud-item .ic svg { width: 20px; height: 20px; }
.cloud-item h3 { font-family: var(--f-body); font-size: var(--fs-base); font-weight: 600; letter-spacing: 0; color: #fff; }
.cloud-item p { font-size: var(--fs-sm); color: var(--night-mute); margin-top: 2px; }
.orbit { position: relative; aspect-ratio: 1; max-width: 460px; margin: 0 auto; width: 100%; }
.orbit .ring { position: absolute; inset: 0; border: 1px dashed rgba(255,255,255,.12); border-radius: 50%; animation: spin 60s linear infinite; }
.orbit .ring.r2 { inset: 16%; animation-duration: 40s; animation-direction: reverse; }
.orbit .ring.r3 { inset: 32%; border-style: solid; border-color: rgba(255,255,255,.06); animation: none; }
.orbit .core { position: absolute; inset: 38%; border-radius: 28%; background: linear-gradient(145deg, #232935, #12151C); border: 1px solid var(--night-line); display: grid; place-items: center; box-shadow: 0 0 80px rgba(0,83,237,.35); }
.orbit .core { background: linear-gradient(145deg, #ffffff, #E3ECFD); box-shadow: 0 0 90px rgba(0,83,237,.45); }
.orbit .core img { width: 70%; }
.orbit .sat { position: absolute; top: -18px; left: 50%; margin-left: -18px; width: 36px; height: 36px; border-radius: 11px; background: var(--night-3); border: 1px solid var(--night-line); display: grid; place-items: center; color: var(--glow); animation: spin 60s linear infinite reverse; }
.orbit .r2 .sat { animation-duration: 40s; animation-direction: normal; color: #8FB4FF; }
.orbit .sat svg { width: 16px; height: 16px; }
.orbit .sat.s2 { top: auto; bottom: -18px; }
.orbit .sat.s3 { top: 50%; left: -18px; margin: -18px 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.no-self { margin-top: var(--s-6); padding: var(--s-4) var(--s-5); border-radius: var(--r); border: 1px solid rgba(143,180,255,.3); background: rgba(143,180,255,.06); font-size: var(--fs-sm); color: #CFDCFA; }

/* ── pricing ──────────────────────────────────────────────── */
.price-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--s-5); max-width: 980px; margin: 0 auto; align-items: stretch; }
.price { position: relative; padding: var(--s-7) var(--s-6); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.price::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--deep), var(--blue), var(--sky)); }
.price-name { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.price-amt { display: flex; align-items: baseline; gap: var(--s-2); margin-top: var(--s-4); }
.price-amt b { font-family: var(--f-display); font-weight: 600; font-size: clamp(3.6rem, 2.6rem + 4vw, 5.6rem); line-height: 1; letter-spacing: -.04em; }
.price-amt span { font-size: var(--fs-lg); color: var(--muted); }
.price-vat { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--deep); font-weight: 600; }
.price ul { list-style: none; padding: 0; margin: var(--s-6) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-5); }
.price li { display: flex; gap: var(--s-2); font-size: var(--fs-sm); color: var(--ink-2); }
.price li svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--deep); }
.price-side { display: grid; gap: var(--s-5); }
.addon { padding: var(--s-6); border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line); }
.addon h3 { font-size: var(--fs-xl); }
.addon .amt { font-family: var(--f-display); font-weight: 600; font-size: 2.6rem; line-height: 1; margin-top: var(--s-4); }
.addon .amt small { font-family: var(--f-body); font-size: var(--fs-sm); color: var(--muted); }
.addon p { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-3); }
.addon.dark-addon { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.addon.dark-addon p { color: #A9B6D3; }
.price-legal { text-align: center; margin-top: var(--s-5); font-size: var(--fs-xs); color: var(--muted); }

/* ── faq ──────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) 0; font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--f-body); font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: 46em; }

/* ── cta + footer ─────────────────────────────────────────── */
.cta { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; border-radius: var(--r-lg); overflow: hidden; padding: var(--s-8) var(--s-7); background: var(--ink); color: var(--paper); }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 15% 0%, rgba(0,83,237,.45), transparent 60%), radial-gradient(50% 70% at 90% 100%, rgba(3,52,140,.55), transparent 60%); }
.cta > * { position: relative; }
.cta .eyebrow { color: var(--sky); }
.cta h2 { font-size: var(--fs-2xl); margin-top: var(--s-4); }
.cta h2 em { color: var(--glow); }
.cta-copy p { color: var(--night-ink); margin-top: var(--s-4); max-width: 30em; }
.cta-mail { font-size: var(--fs-sm); }
.cta-mail a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; user-select: all; }

/* the demo-request form */
.cform { display: grid; gap: var(--s-4); }
.field { display: grid; gap: var(--s-1); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.field .req { color: var(--sky); }
.field .opt { font-weight: 400; color: var(--night-mute); }
.field input, .field textarea {
    width: 100%; padding: .75rem .9rem; border-radius: var(--r-sm);
    border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff;
    font: 400 var(--fs-base)/1.4 var(--f-body);
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--glow); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--warn); }
.field-err { min-height: 0; font-size: var(--fs-xs); color: #FFB4A8; }
.field-err:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-privacy { font-size: var(--fs-xs); color: var(--night-mute); }
.cform .btn { justify-self: start; }
.cform .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-status { font-size: var(--fs-sm); min-height: 1.4em; outline: none; }
.form-status.ok { color: #9BE3B9; font-weight: 600; }
.form-status.err { color: #FFB4A8; font-weight: 600; }
.form-status.busy { color: var(--night-mute); }
/* contact.php's no-JavaScript result page */
.form-result { padding: var(--s-9) var(--gutter); display: grid; gap: var(--s-5); justify-items: start; font-size: var(--fs-lg); }
.footer { padding: var(--s-7) 0 var(--s-6); font-size: var(--fs-sm); color: var(--muted); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-6); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: var(--s-5); }

/* ── reveal ────────────────────────────────────────────────
   html.reveal-on is added by main.js only after it has set up the
   observer, so a missing or broken script leaves everything visible. */
.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-on .reveal.in { opacity: 1; transform: none; }
.reveal-on .reveal.d1 { transition-delay: .1s; } .reveal-on .reveal.d2 { transition-delay: .2s; } .reveal-on .reveal.d3 { transition-delay: .3s; }

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

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 1080px) {
    .nav-links { display: none; }
    .menu-btn { display: block; margin-left: 0; }
    .nav-cta { margin-left: auto; }
    .nav.open .nav-links { display: grid; position: absolute; top: 72px; left: 0; right: 0; padding: var(--s-5) var(--gutter); gap: var(--s-4); background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .hero-grid, .fisk-grid, .cloud-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 720px; margin: var(--s-5) auto 0; width: 100%; }
    .fisk-cards { grid-template-columns: 1fr 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .step button { padding: var(--s-3); }
    .step .step-p, .step.active .step-p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .step-t { font-size: var(--fs-sm); }
    .bento { grid-template-columns: 1fr 1fr; }
    .t-a, .t-f, .t-g { grid-column: span 2; } .t-b, .t-c, .t-d, .t-e { grid-column: span 1; }
    .price-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .section { padding: var(--s-8) 0; }
    /* The main action stays in the header on phones, just shorter. */
    .nav-in { gap: var(--s-3); }
    .nav-cta { gap: var(--s-2); }
    .nav-cta .btn { padding: .55rem .9rem; }
    .cta-long { display: none; }
    .cta-short { display: inline; }
    .brand-name { font-size: 1.15rem; }
    .lang-btn img { display: none; }
    .hero { padding-top: calc(72px + var(--s-6)); }
    .chip-a { left: 0; top: -8%; }
    .hero-pdf { right: 0; bottom: -10%; width: 30%; }
    .ben-grid { grid-template-columns: 1fr; }
    .gal-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--s-2); scrollbar-width: thin; }
    .gal-tab { flex: none; }
    .cta { grid-template-columns: 1fr; padding: var(--s-6) var(--s-5); }
    .all-feat ul { grid-template-columns: 1fr; }
    .fisk-cards { grid-template-columns: 1fr; }
    .flow { padding: var(--s-5); }
    .flow li { grid-template-columns: 32px 1fr; }
    .flow .fs { grid-column: 2; justify-self: start; }
    .steps { grid-template-columns: 1fr; }
    .step.active .step-p { position: static; width: auto; height: auto; clip: auto; white-space: normal; }
    .mock-body { grid-template-columns: 1fr; }
    .mock-side { display: none; }
    .mock-row { grid-template-columns: 1fr; }
    .mock-lh, .mock-l { grid-template-columns: minmax(0, 1fr) 28px 82px; }
    .mock-lh span:nth-child(2), .mock-l span:nth-child(2) { display: none; }
    .mock-out { grid-template-columns: 1fr; padding: 16px; overflow: auto; }
    .mock-out .paper { display: none; }
    .bento { grid-template-columns: 1fr; }
    .t-a, .t-b, .t-c, .t-d, .t-e, .t-f, .t-g { grid-column: span 1; }
    .price ul { grid-template-columns: 1fr; }
    .price { padding: var(--s-6) var(--s-5); }
    .footer-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
    .brand-name { display: none; }
}

/* the full logo (mark + wordmark) in the footer */
.footer-logo img { width: auto; height: 64px; }
.mock-side .mb img { width: 22px; height: auto; }
