/* =========================================================================
   TrackLode public site (landing, contact, privacy, terms).
   Self-contained: these pages don't load MudBlazor or app.css.
   ========================================================================= */
:root {
    --bg: #ffffff;
    --soft: #f5f5fa;
    --ink: #1a1630;
    --muted: #5e5b73;
    --line: #e6e5ef;
    --primary: #5b47e0;
    --primary-d: #4532c4;
    --primary-l: #7c6cf0;
    --accent: #f59e0b;
    --teal: #14b8a6;
    --ok: #10b981;
    --navy: #17132d;
    --navy-2: #221c45;
    --radius: 16px;
    --shadow: 0 24px 60px -24px rgba(26, 22, 48, .35);
    --font: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--primary-l); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.container { width: min(1160px, 100% - 40px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); margin-inline: auto; }

/* ---------- header ---------- */
.lp-header { padding-top: env(safe-area-inset-top, 0px); position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.lp-header.scrolled { border-color: var(--line); }
.lp-header .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.lp-brand svg { width: 38px; height: 32px; } /* the mark is 62 x 52 units */
.lp-nav { display: flex; gap: 6px; margin-left: 12px; }
.lp-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.lp-nav a:hover { color: var(--ink); background: var(--soft); }
.lp-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: 12px; padding: 12px 22px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(91, 71, 224, .8); }
.btn-primary:hover { background: var(--primary-d); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 9px 16px; font-size: .92rem; border-radius: 10px; }

.lp-menu { display: none; margin-left: auto; position: relative; }
.lp-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); }
.lp-menu summary::-webkit-details-marker { display: none; }
.lp-menu nav { position: absolute; right: 0; top: 54px; width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: grid; }
.lp-menu nav a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.lp-menu nav a:hover { background: var(--soft); }

/* ---------- sections ---------- */
section { padding: clamp(56px, 7.5vw, 96px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; margin-top: 12px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px);
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(124, 108, 240, .55), transparent 60%),
        radial-gradient(700px 480px at -5% 105%, rgba(245, 158, 11, .30), transparent 55%),
        var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; font-weight: 500; color: #e9e6ff; }
.pill b { color: var(--accent); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; margin-top: 22px; }
.grad { background: linear-gradient(95deg, #ffd27a 0%, #f59e0b 45%, #ff7a59 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d4d0ee; max-width: 560px; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.micro { margin-top: 16px; font-size: .9rem; color: #b9b4dd; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); }
.trust li { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: #d4d0ee; }
.trust svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- product mock-ups (decorative, built from HTML so they stay sharp and on-brand) ---------- */
.mock { position: relative; background: #f5f5fa; color: var(--ink); border-radius: 18px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; font-size: 13px; line-height: 1.4; text-align: left; user-select: none; }
.mock-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line); color: #8a87a0; font-size: 12px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e1e0ea; }
.mock-bar i:nth-child(1) { background: #ff6159; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 10px; }
.mock-body { display: grid; grid-template-columns: 148px 1fr; min-height: 380px; }
.mock-side { background: var(--navy); color: #c8c4e6; padding: 16px 12px; display: grid; align-content: start; gap: 4px; }
.mock-side .mb { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 14px; padding: 0 8px 14px; }
.mock-side .mb svg { width: 26px; height: 22px; }
.mock-side span { padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.mock-side span.on { background: rgba(124, 108, 240, .28); color: #fff; }
.mock-main { padding: 18px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.mock-h { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.mock-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mock-timer { color: #fff; border-radius: 14px; padding: 16px 18px; background: radial-gradient(circle at 85% -20%, rgba(255, 255, 255, .28), transparent 45%), linear-gradient(135deg, #f59e0b, #e1621d); display: grid; gap: 6px; box-shadow: 0 16px 34px -18px rgba(225, 98, 29, .8); }
.mock-timer .tag { display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: .9; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-out infinite; }
.mock-time { font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.mock-task { opacity: .95; }
.mock-stop { justify-self: start; margin-top: 4px; background: #fff; color: #c2410c; font-weight: 700; padding: 6px 14px; border-radius: 9px; font-size: 12px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat small { display: block; color: #8a87a0; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.mock-stat b { font-size: 16px; letter-spacing: -0.02em; }
.mock-list { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid #efeef6; }
.mock-row:first-child { border-top: 0; }
.mock-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--primary)); flex: none; }
.mock-row .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mock-row small { color: #8a87a0; font-weight: 400; margin-left: 4px; }
.mock-row b { font-family: var(--mono); font-size: 12px; }
.mock-row.head { background: #f5f5fa; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.chip.ok { background: #d7f5ea; color: #0b7a55; }
.chip.info { background: #dbeafe; color: #1d4ed8; }
.chip.draft { background: #fef3c7; color: #92600a; }

.cb { width: 16px; height: 16px; border-radius: 5px; border: 2px solid #c9c7d9; position: relative; flex: none; background: #fff; }
.cb.on { background: var(--primary); border-color: var(--primary); }
.cb.on::after, .cb.tick::after { content: ""; position: absolute; left: 3px; top: 0; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cb.tick::after { opacity: 0; }
/* ticks itself in one by one when its scene starts (--d = delay in ms) */
.is-active .cb.tick { animation: cbfill .2s both; animation-delay: calc(var(--d, 0) * 1ms); }
.is-active .cb.tick::after { animation: show .2s both; animation-delay: calc(var(--d, 0) * 1ms); }
[data-tour]:not(.tour-js) .cb.tick { background: var(--primary); border-color: var(--primary); }
[data-tour]:not(.tour-js) .cb.tick::after { opacity: 1; }

.hero-visual { position: relative; }
.float { position: absolute; z-index: 2; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55); padding: 12px 14px; font-size: 12.5px; }
.float-invoice { left: -46px; bottom: 30px; width: 210px; animation: float 6s ease-in-out infinite; }
.float-invoice .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.float-invoice b { font-size: 16px; letter-spacing: -0.02em; }
.float-vat { right: -14px; top: 74px; max-width: 218px; animation: float 7s ease-in-out -2s infinite; display: flex; gap: 9px; align-items: flex-start; }
.float-vat svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 1px; }

/* ---------- problem ---------- */
.problem { background: var(--soft); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.card p { color: var(--muted); margin-top: 8px; }

.calc { margin-top: 20px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; background: var(--navy); color: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 40px); position: relative; overflow: hidden; }
.calc::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(124, 108, 240, .55), transparent 65%); }
.calc > * { position: relative; }
.calc h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
.calc p { color: #cbc7e8; margin-top: 8px; }
.calc form { display: grid; gap: 18px; }
.calc label { display: grid; gap: 6px; font-size: .9rem; color: #d4d0ee; font-weight: 500; }
.calc label span { display: flex; justify-content: space-between; }
.calc output { color: #fff; font-weight: 700; font-family: var(--mono); }
.calc input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.calc .result { margin-top: 6px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .15); }
.calc .result small { color: #cbc7e8; display: block; }
.calc .result strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.04em; color: #ffd27a; line-height: 1.1; }

/* ---------- how ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-l), var(--primary)); color: #fff; font-weight: 800; box-shadow: 0 10px 20px -8px rgba(91, 71, 224, .7); }
.step h3 { font-size: 1.25rem; font-weight: 700; }
.step p { color: var(--muted); margin-top: 8px; }

/* ---------- tour ---------- */
.tour { background: linear-gradient(180deg, #fff, var(--soft)); }
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tour-tab { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 600; padding: 11px 18px; border-radius: 12px; cursor: pointer; }
.tour-tab[aria-selected=true] { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, #fff); background: color-mix(in srgb, var(--primary) 7%, #fff); }
.tour-tab .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--primary); }
.tour-tab[aria-selected=true] .bar.run { animation: bar var(--tour-ms, 7000ms) linear forwards; }
.tour-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.tour-js .tour-panel { display: none; }
.tour-js .tour-panel.is-active { display: contents; }
.tour-panel .copy h3 { font-size: 1.6rem; font-weight: 800; }
.tour-panel .copy p { color: var(--muted); margin-top: 10px; }
.tour-panel .copy ul { margin-top: 16px; display: grid; gap: 10px; }
.tour-panel .copy li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.tour-panel .copy li svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 2px; }
.tour-panel .stage { min-width: 0; }
.tour-panel .mock { box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.tour-js .tour-panel:not(.is-active) { display: none; }
[data-tour]:not(.tour-js) .tour-panel { display: contents; }
[data-tour]:not(.tour-js) .tour-grid { margin-bottom: 40px; }
.mock-nosidebar { min-height: 0; }
.mock-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.mock-nosidebar { grid-template-columns: 1fr; }
.mock-invoice-card .ln { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #e6e5ef; }
.mock-invoice-card .ln small { display: block; color: #8a87a0; }
.mock-invoice-card .sub { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.mock-invoice-card .sub b { font-size: 20px; letter-spacing: -0.03em; }
.mock-btn { display: block; text-align: center; background: var(--primary); color: #fff; font-weight: 700; border-radius: 10px; padding: 9px; margin-top: 10px; }
.is-active .mock-btn.pulse-btn { animation: glow 1.6s ease-in-out 2.2s infinite; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 8px; }
.doc .top { display: flex; justify-content: space-between; align-items: flex-start; }
.doc .title { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; text-align: right; }
.doc .lines .ln { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #efeef6; }
.doc .tot { display: flex; justify-content: space-between; font-weight: 800; padding-top: 4px; }
.legend { background: #f5f5fa; border-radius: 10px; padding: 10px 12px; color: #3d3a55; font-size: 12px; }
.legend small { display: block; font-weight: 700; letter-spacing: .07em; color: #8a87a0; margin-bottom: 3px; }
.typing { display: block; overflow: hidden; white-space: nowrap; width: 0; }
.is-active .typing { animation: type 1.8s steps(48) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
[data-tour]:not(.tour-js) .typing, .no-motion .typing { width: auto; animation: none; white-space: normal; }
.dialog { position: absolute; right: 16px; bottom: 16px; width: min(300px, 78%); background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(26, 22, 48, .5), 0 0 0 1px var(--line); padding: 14px; display: grid; gap: 8px; opacity: 0; transform: translateY(14px) scale(.98); }
.is-active .dialog { animation: pop .5s cubic-bezier(.2, .8, .2, 1) 1.2s forwards; }
[data-tour]:not(.tour-js) .dialog { position: static; opacity: 1; transform: none; margin-top: 10px; width: auto; }
.dialog .fld { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; color: #3d3a55; }
.dialog .fld small { display: block; color: #8a87a0; font-size: 10px; }
.file { display: inline-flex; align-items: center; gap: 6px; background: #eef2ff; color: #3730a3; border-radius: 8px; padding: 5px 9px; font-weight: 600; }
.toast { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -20px); background: var(--ok); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 999px; opacity: 0; box-shadow: 0 14px 30px -12px rgba(16, 185, 129, .8); white-space: nowrap; }
.is-active .toast { animation: toast 3.2s ease 3.3s forwards; }
[data-tour]:not(.tour-js) .toast { display: none; }
.stamp { position: absolute; right: 18px; top: 60px; border: 3px solid var(--ok); color: var(--ok); font-weight: 800; letter-spacing: .12em; padding: 3px 12px; border-radius: 8px; transform: rotate(-9deg) scale(1.6); opacity: 0; }
.is-active .stamp { animation: stamp .45s cubic-bezier(.2, .9, .3, 1.2) 2.6s forwards; }
.select { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; font-weight: 600; }
.stagger > * { opacity: 0; transform: translateY(10px); }
.is-active .stagger > * { animation: rise .5s ease both; animation-delay: calc(var(--i, 0) * 160ms + 250ms); }
[data-tour]:not(.tour-js) .stagger > * { opacity: 1; transform: none; }

/* ---------- features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 30%, #fff); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; color: var(--c, var(--primary)); background: color-mix(in srgb, var(--c, var(--primary)) 13%, #fff); }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.feature p { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ---------- vat ---------- */
.vat { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.vat::before { content: ""; position: absolute; width: 700px; height: 700px; left: -260px; bottom: -380px; background: radial-gradient(circle, rgba(20, 184, 166, .28), transparent 62%); }
.vat .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.vat .eyebrow { color: #ffd27a; }
.vat h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; margin-top: 12px; }
.vat p { color: #cbc7e8; margin-top: 14px; font-size: 1.08rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.chips li { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .9rem; color: #ece9ff; }
.disclaimer { font-size: .85rem !important; color: #a9a4cf !important; margin-top: 18px !important; }
.vat .doc { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); color: var(--ink); }

/* ---------- comparison ---------- */
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--soft); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.compare thead th:last-child { color: var(--primary); }
.compare tbody th { font-weight: 600; width: 24%; }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:last-child { font-weight: 600; }
.compare tr:last-child > * { border-bottom: 0; }
.x, .v { display: inline-block; width: 18px; margin-right: 8px; font-weight: 800; }
.x { color: #d6455d; }
.v { color: var(--ok); }

/* ---------- faq ---------- */
.faq { background: var(--soft); }
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 1.05rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--primary); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); }

/* ---------- final cta ---------- */
.cta { color: #fff; text-align: center; background: radial-gradient(800px 420px at 50% 120%, rgba(245, 158, 11, .35), transparent 60%), radial-gradient(700px 420px at 90% -20%, rgba(124, 108, 240, .55), transparent 60%), var(--navy); }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; max-width: 760px; margin-inline: auto; }
.cta p { color: #cbc7e8; margin: 16px auto 0; max-width: 560px; font-size: 1.1rem; }
.cta .btn { margin-top: 30px; }

/* ---------- footer ---------- */
.lp-footer { background: #100d20; color: #aaa5cb; padding: 56px 0 calc(36px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.lp-footer .container { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.lp-footer .lp-brand { color: #fff; }
.lp-footer p { margin-top: 14px; max-width: 320px; }
.lp-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.lp-footer a { color: #aaa5cb; text-decoration: none; }
.lp-footer a:hover { color: #fff; text-decoration: underline; }
.lp-footer li + li { margin-top: 8px; }
.lp-footer .legal { grid-column: 1 / -1; padding-top: 24px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- inner pages (contact, privacy, terms) ---------- */
.page-head { background: var(--soft); padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 12px; font-size: 1.1rem; max-width: 640px; }
.prose { max-width: 760px; padding: clamp(36px, 5vw, 64px) 0; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3d3a55; }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 10px; }
/* The Terms and the Privacy Policy: long documents with sub-headings, anchors and tables that scroll on a phone. */
.prose.legal h3 { font-size: 1.15rem; font-weight: 800; margin: 28px 0 10px; }
.prose.legal h2, .prose.legal h3 { scroll-margin-top: 88px; overflow-wrap: anywhere; }
.prose.legal p, .prose.legal li { overflow-wrap: break-word; }
.prose.legal p + ul, .prose.legal ul + p, .prose.legal .table-wrap + p, .prose.legal p + .table-wrap { margin-top: 12px; }
.prose.legal hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); color: #3d3a55; }
.prose thead th { background: #f6f5fb; color: var(--ink); font-weight: 700; }
.prose tbody th { font-weight: 700; color: var(--ink); width: 30%; }
.prose tr:last-child td, .prose tr:last-child th { border-bottom: 0; }
.prose code { font-family: var(--mono); font-size: .85em; overflow-wrap: anywhere; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); align-items: start; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input[type=text], .form input[type=email], .form textarea { font: inherit; width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid #cfcde0; background: #fff; color: var(--ink); }
.form textarea { min-height: 170px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid color-mix(in srgb, var(--primary-l) 45%, transparent); border-color: var(--primary); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.notice.ok { background: #d7f5ea; color: #0b6b4a; }
.notice.err { background: #fde2e7; color: #9d1c38; }
.notice.info { background: #eef2ff; color: #3730a3; }
.validation-message { color: #b4233f; font-size: .88rem; font-weight: 500; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--soft); }
.side-card h2 { font-size: 1.1rem; }
.side-card p { color: var(--muted); margin-top: 8px; }

/* ---------- pricing (Components/Shared/PricingTable.razor) ---------- */
.pricing { position: relative; }
.pi-radio { position: absolute; opacity: 0; pointer-events: none; }
.pricing-switch { display: flex; width: max-content; max-width: 100%; margin: 0 auto 32px; padding: 5px; gap: 4px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.pricing-switch label { cursor: pointer; padding: 9px 20px; border-radius: 999px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.pricing-switch .save { font-size: .75rem; font-weight: 700; color: #0b6b4a; background: #d7f5ea; padding: 2px 8px; border-radius: 999px; }
.pi-m:checked ~ .pricing-switch .pl-m, .pi-y:checked ~ .pricing-switch .pl-y { background: #fff; color: var(--ink); box-shadow: 0 4px 14px -6px rgba(26, 22, 48, .35); }
.pi-m:focus-visible ~ .pricing-switch .pl-m, .pi-y:focus-visible ~ .pricing-switch .pl-y { outline: 3px solid var(--primary-l); outline-offset: 2px; }
.pi-m:checked ~ .plans .py, .pi-y:checked ~ .plans .pm { display: none; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 22px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.plan.pro { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -13px; right: 24px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; font-weight: 800; }
.plan-tag { color: var(--muted); margin-top: 6px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 18px; }
.plan .price span { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan .price small { color: var(--muted); font-size: 1rem; }
.plan ul { display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 3px; }
.plan .btn { width: 100%; }
.btn.is-disabled { opacity: .55; cursor: default; box-shadow: none; transform: none; }
.pricing-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 24px; }

/* ---------- motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }
.no-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 100% { box-shadow: 0 0 0 11px rgba(255, 255, 255, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bar { from { width: 0; } to { width: 100%; } }
@keyframes show { to { opacity: 1; } }
@keyframes cbfill { to { background: var(--primary); border-color: var(--primary); } }
@keyframes type { to { width: 100%; } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -20px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -20px); } }
@keyframes stamp { to { opacity: 1; transform: rotate(-9deg) scale(1); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(91, 71, 224, .5); } 50% { box-shadow: 0 0 0 9px rgba(91, 71, 224, 0); } }

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

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero .container, .vat .container, .tour-grid, .calc, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 600px; margin-inline: auto; width: 100%; }
    .tour-panel .copy { margin-bottom: 4px; }
    .lp-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .lp-nav, .lp-actions .btn-ghost { display: none; }
    .lp-menu { display: block; }
    .lp-actions { margin-left: 0; }
    .lp-menu { margin-left: 8px; }
    .lp-header .container { gap: 12px; }
    .lp-actions { margin-left: auto; }
    .cards3, .steps { grid-template-columns: 1fr; }
    .steps { gap: 34px; }
    .float-invoice { left: 8px; bottom: -22px; }
    .float-vat { right: 8px; top: auto; bottom: 90px; }
    .mock-body { grid-template-columns: 1fr; }
    .mock-side { display: none; }
    .mock-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .features-grid { grid-template-columns: 1fr; }
    .plans { grid-template-columns: minmax(0, 1fr); }
    .plan { padding: 24px; }
    .pricing-switch label { padding: 9px 14px; }
    .lp-footer .container { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
    .float-vat { display: none; }
    .mock-stats { grid-template-columns: repeat(3, 1fr); }
    .mock-time { font-size: 28px; }
}
@media print {
    .lp-header, .lp-footer, .cta, .hero-visual, .tour-tabs { display: none; }
}

/* ---------- Not found, error and status pages ---------- */
.lp-problem { padding: clamp(56px, 12vw, 120px) 0; text-align: center; }
.lp-problem-code { margin: 0; font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--indigo, #594ae2); opacity: .9; }
.lp-problem h1 { margin: 12px 0 8px; }
.lp-problem-text { max-width: 46ch; margin: 0 auto 24px; color: var(--muted, #5b5873); }
.lp-problem-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-problem-id { margin-top: 28px; font-size: .85rem; color: var(--muted, #5b5873); }

/* Text for screen readers only (e.g. the empty corner cell of the comparison table). */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
