/* ================================================================
   TARIFÁRNA — pages.css
   Sekce 1: Homepage (hx- prefix, fresh redesign)
   Sekce 2: Sdílené komponenty podstránek (beze změn)
   ================================================================ */

/* ================================================================
   HOMEPAGE — hx-* classes
   ================================================================ */

/* ── HERO: wrapper ─────────────────────────────────────────────── */
.hx-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(640px, calc(100svh - 88px), 820px);
    display: flex;
    align-items: center;
    padding: clamp(1.1rem, 2vw, 2rem) 0 clamp(1.1rem, 2.2vw, 2.4rem);
    overflow: hidden;
}

/* Local hero tint — city bg is global on body:not(.admin-body) */
.hx-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(3, 7, 18, 0.72) 0%, rgba(3, 7, 18, 0.34) 36%, rgba(3, 7, 18, 0.12) 64%),
        linear-gradient(180deg, transparent 0%, rgba(3, 7, 18, 0.24) 68%, rgba(3, 7, 18, 0.7) 100%),
        radial-gradient(ellipse 72% 56% at 78% 42%, rgba(122, 75, 255, 0.13), transparent 58%),
        radial-gradient(ellipse 52% 34% at 33% 54%, rgba(25, 198, 255, 0.1), transparent 66%);
}

/* ── HERO: grid layout ─────────────────────────────────────────── */
.hx-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.88fr);
    gap: clamp(1rem, 2.2vw, 2.5rem);
    align-items: center;
    justify-content: center;
    padding-left: clamp(0.85rem, 2.6vw, 3rem);
    padding-right: clamp(0.35rem, 1.2vw, 1.4rem);
}

/* ── HERO LEFT ──────────────────────────────────────────────────── */
.hx-left {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    max-width: 650px;
}

.hx-left::before {
    content: "";
    position: absolute;
    inset: -1.2rem -1.6rem -1.1rem -1.6rem;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse 78% 64% at 36% 42%, rgba(3, 7, 18, 0.62), transparent 72%);
}

.hx-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.42rem;
    opacity: 0.85;
}

.hx-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan-glow);
    animation: hx-dot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes hx-dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan-glow); }
    50% { opacity: 0.55; box-shadow: 0 0 18px var(--cyan-glow); }
}

.hx-headline {
    font-size: clamp(2.45rem, 3vw + 0.45rem, 4.05rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.055em;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    max-width: min(760px, 56vw);
    text-shadow: 0 0 36px rgba(255, 255, 255, 0.08);
}

/* gradient text on "chytřejší tarif" */
.hx-accent {
    background: linear-gradient(96deg, var(--cyan) 0%, var(--blue) 27%, var(--violet) 57%, var(--magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    white-space: nowrap;
}

.hx-lead {
    font-size: clamp(0.92rem, 0.56vw + 0.78rem, 1.05rem);
    line-height: 1.48;
    color: rgba(226, 232, 240, 0.82);
    max-width: 38ch;
    margin-bottom: 0.72rem;
}

/* ── SCANNER PANEL ──────────────────────────────────────────────── */
.hx-scanner {
    position: relative;
    z-index: 1;
    background:
        linear-gradient(150deg, rgba(10, 21, 48, 0.76), rgba(4, 10, 27, 0.86)),
        rgba(7, 15, 34, 0.78);
    backdrop-filter: blur(22px) saturate(1.18);
    -webkit-backdrop-filter: blur(22px) saturate(1.18);
    border: 1px solid rgba(34, 211, 238, 0.34);
    border-radius: 20px;
    overflow: visible;
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.08),
        0 0 46px rgba(25, 198, 255, 0.1),
        0 0 60px rgba(255, 42, 163, 0.08),
        0 18px 54px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Scanner header bar */
.hx-sc-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 1rem 0.52rem;
    border-bottom: 1px solid rgba(34, 211, 238, 0.16);
    background: rgba(3, 7, 18, 0.24);
    border-radius: 20px 20px 0 0;
}

.hx-sc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan-glow);
    animation: hx-dot-pulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

.hx-sc-label-text {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    flex: 1;
}

.hx-sc-status {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(0, 212, 255, 0.6);
    text-transform: uppercase;
}

/* Scan zone (dashed border + corner brackets + sweep) */
.hx-sc-zone {
    position: relative;
    margin: 0.82rem 0.95rem;
    padding: 1rem 0.9rem 0.85rem;
    border: 1px dashed rgba(34, 211, 238, 0.36);
    border-radius: 14px;
    background:
        radial-gradient(ellipse 80% 70% at 50% 55%, rgba(47, 125, 255, 0.09), transparent 68%),
        rgba(3, 7, 18, 0.32);
    overflow: hidden;
}

/* Scanning sweep line */
.hx-sc-zone::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    top: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.55) 35%,
        rgba(0, 212, 255, 0.9) 50%,
        rgba(0, 212, 255, 0.55) 65%,
        transparent 100%
    );
    filter: blur(0.5px);
    animation: hx-sweep 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hx-sweep {
    0%   { top: 0;    opacity: 0; }
    4%   { opacity: 0.9; }
    94%  { opacity: 0.9; }
    100% { top: 100%; opacity: 0; }
}

/* Corner brackets — must not block taps on mobile */
.hx-c {
    position: absolute;
    width: 19px;
    height: 19px;
    pointer-events: none;
}

.hx-c--tl { top: -1px; left: -1px;
    border-top: 2px solid rgba(25, 198, 255, 0.95);
    border-left: 2px solid rgba(25, 198, 255, 0.95); }
.hx-c--tr { top: -1px; right: -1px;
    border-top: 2px solid rgba(255, 42, 163, 0.88);
    border-right: 2px solid rgba(255, 42, 163, 0.88); }
.hx-c--bl { bottom: -1px; left: -1px;
    border-bottom: 2px solid rgba(25, 198, 255, 0.9);
    border-left: 2px solid rgba(25, 198, 255, 0.9); }
.hx-c--br { bottom: -1px; right: -1px;
    border-bottom: 2px solid rgba(255, 42, 163, 0.86);
    border-right: 2px solid rgba(255, 42, 163, 0.86); }

/* Inner content */
.hx-sc-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.24rem;
    text-align: center;
}

.hx-sc-icon {
    color: var(--cyan);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    margin-bottom: 0.08rem;
    pointer-events: none;
}

.hx-sc-icon svg {
    width: 42px;
    height: 42px;
}

/* Visually hidden file input — label[for] opens picker on mobile reliably */
.hx-scanner input[type="file"] {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* The upload-label is updated by JS on file pick */
.upload-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    text-align: center;
}

.hx-sc-or {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.hx-sc-format {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: rgba(203, 213, 225, 0.76);
    margin-top: 0.1rem;
    margin-bottom: 0.3rem;
    padding: 0.34rem 0.62rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.58);
}

.upload-trigger {
    margin-top: 0.25rem;
    color: rgba(226, 232, 240, 0.94);
    background: rgba(12, 25, 54, 0.72);
    border-color: rgba(34, 211, 238, 0.32);
    cursor: pointer;
    position: relative;
    z-index: 2;
    touch-action: manipulation;
}

/* Scanner drag-over state */
.upload-box.is-dragover .hx-sc-zone {
    border-color: rgba(0, 212, 255, 0.7);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

/* Submit row */
.hx-sc-submit {
    padding: 0.62rem 0.95rem 0.58rem;
    border-top: 1px solid rgba(0, 212, 255, 0.12);
}

.hx-sc-submit .btn-upload-submit {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.55rem 0.9rem;
    min-height: 40px;
    border-radius: 15px;
}

/* Drag feedback */
.upload-drop-feedback {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
    color: var(--cyan);
    font-weight: 600;
}

.invoice-diagnostics {
    margin: 0.72rem 0 0;
    padding: 0.62rem 0.72rem;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(9, 18, 42, 0.74), rgba(3, 7, 18, 0.68)),
        rgba(2, 6, 23, 0.58);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-diagnostics-panel {
    width: min(100%, 455px);
}

.invoice-diagnostics[hidden] {
    display: none;
}

.invoice-diagnostics__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.46rem;
}

.invoice-diagnostics__eyebrow {
    margin: 0 0 0.1rem;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(34, 211, 238, 0.74);
}

.invoice-diagnostics h2 {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.18;
    color: rgba(248, 250, 252, 0.96);
}

.invoice-diagnostics__percent {
    flex: 0 0 auto;
    min-width: 42px;
    padding: 0.22rem 0.38rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;
    color: var(--cyan);
    font-size: 0.62rem;
    font-weight: 800;
    text-align: center;
    background: rgba(8, 13, 30, 0.72);
}

.invoice-diagnostics__bar {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.invoice-diagnostics__bar span {
    display: block;
    width: var(--progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), rgba(47, 125, 255, 0.95), rgba(255, 42, 163, 0.85));
    background-size: 180% 100%;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.34);
    transition: width 0.42s ease;
    animation: diagnosticProgressFlow 1.4s linear infinite;
}

.invoice-diagnostics.is-error .invoice-diagnostics__bar span {
    background: linear-gradient(90deg, var(--red-accent), rgba(255, 95, 124, 0.9));
    box-shadow: 0 0 18px rgba(255, 66, 88, 0.28);
    animation: none;
}

@keyframes diagnosticProgressFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 180% 50%; }
}

.invoice-diagnostics__state,
.invoice-diagnostics__result {
    margin: 0.42rem 0 0;
    font-size: 0.68rem;
    line-height: 1.4;
    color: rgba(226, 232, 240, 0.82);
}

.invoice-diagnostics__result {
    padding: 0;
    background: none;
    color: rgba(187, 247, 208, 0.9);
}

.invoice-diagnostics__steps,
.invoice-diagnostics__operators,
.invoice-diagnostics__tiles {
    display: none !important;
}

.invoice-diagnostics.is-error .invoice-diagnostics__result,
.invoice-diagnostics.is-error .invoice-diagnostics__state {
    color: rgba(254, 202, 202, 0.95);
}

.invoice-diagnostics__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.34rem 0.55rem;
    margin: 0.7rem 0 0;
    padding: 0;
    list-style: none;
}

.invoice-diagnostics__steps li {
    position: relative;
    min-height: 24px;
    padding-left: 1.1rem;
    font-size: 0.65rem;
    line-height: 1.25;
    color: rgba(148, 163, 184, 0.74);
}

.invoice-diagnostics__steps li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.16rem;
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.9);
}

.invoice-diagnostics__steps li.is-active {
    color: rgba(248, 250, 252, 0.95);
}

.invoice-diagnostics__steps li.is-active::before {
    border-color: var(--cyan);
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.58);
}

.invoice-diagnostics__steps li.is-done {
    color: rgba(187, 247, 208, 0.78);
}

.invoice-diagnostics__steps li.is-done::before {
    border-color: rgba(34, 197, 94, 0.82);
    background: rgba(34, 197, 94, 0.82);
}

.invoice-diagnostics__operators {
    margin-top: 0.72rem;
}

.invoice-diagnostics__operators > p {
    margin: 0 0 0.42rem;
    font-size: 0.68rem;
    color: rgba(226, 232, 240, 0.78);
    font-weight: 700;
}

.invoice-diagnostics__operator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
}

.invoice-diagnostics__operator {
    padding: 0.48rem 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.52);
}

.invoice-diagnostics__operator strong,
.invoice-diagnostics__operator span {
    display: block;
}

.invoice-diagnostics__operator strong {
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.94);
}

.invoice-diagnostics__operator span {
    margin-top: 0.16rem;
    font-size: 0.58rem;
    color: rgba(148, 163, 184, 0.78);
}

.invoice-diagnostics__operator[data-state="active"] {
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(8, 145, 178, 0.12);
}

.invoice-diagnostics__operator[data-state="ready"] {
    border-color: rgba(34, 197, 94, 0.34);
    background: rgba(22, 101, 52, 0.12);
}

.invoice-diagnostics__tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
    margin-top: 0.72rem;
}

.invoice-diagnostics__tiles[hidden] {
    display: none;
}

.invoice-diagnostics__tile {
    padding: 0.52rem 0.56rem;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 10px;
    background: rgba(8, 13, 30, 0.56);
}

.invoice-diagnostics__tile span,
.invoice-diagnostics__tile strong {
    display: block;
}

.invoice-diagnostics__tile span {
    font-size: 0.56rem;
    color: rgba(148, 163, 184, 0.82);
}

.invoice-diagnostics__tile strong {
    margin-top: 0.18rem;
    font-size: 0.72rem;
    color: rgba(248, 250, 252, 0.94);
}

.invoice-diagnostics__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.46rem;
    padding: 0.4rem 0.62rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), rgba(47, 125, 255, 0.95));
    color: rgba(2, 6, 23, 0.96);
    font-size: 0.64rem;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 520px) {
    .invoice-diagnostics__steps,
    .invoice-diagnostics__operator-grid,
    .invoice-diagnostics__tiles {
        grid-template-columns: 1fr;
    }
}

/* Security note */
.hx-sc-security {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.44rem 0.95rem 0.62rem;
    font-size: 0.68rem;
    color: rgba(148, 163, 184, 0.74);
    line-height: 1.35;
}

/* ── SCANNER WRAP ───────────────────────────────────────────────── */
.hx-scanner-wrap {
    position: relative;
    padding-bottom: 0;
    max-width: 455px;
}

/* Decentní CSS glow pod scannerem — žádný obrázek */
.hx-scanner-wrap::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: min(92%, 420px);
    height: 34px;
    background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(0, 180, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── HERO RIGHT: SIM render ve frame ───────────────────────────── */
.hx-right.hero-visual,
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    overflow: visible;
    min-width: 0;
    margin-left: clamp(-0.35rem, -0.6vw, 0);
}

.hero-visual-frame {
    position: relative;
    width: 100%;
    max-width: min(100%, 620px);
    border: none;
    border-radius: 0;
    background: none;
    overflow: visible;
    box-shadow: none;
}

.hero-visual-frame-glow {
    position: absolute;
    inset: -18% -8%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 52% 48% at 32% 62%, rgba(47, 125, 255, 0.16) 0%, transparent 58%),
        radial-gradient(ellipse 48% 44% at 52% 58%, rgba(122, 75, 255, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 42% 38% at 70% 64%, rgba(255, 42, 163, 0.1) 0%, transparent 58%);
    opacity: 0.85;
    animation: simGlowPulse 7s ease-in-out infinite;
    transition: opacity 0.35s ease;
}

.hero-visual-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: clamp(300px, 31vw, 450px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: visible;
    border: none;
    background: none;
    box-shadow: none;
}

/* Bez panelového rámečku — pouze jemné prolínání PNG do scény */
.hero-visual-edge-fade {
    display: none;
}

.hero-visual-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    border: 1px dashed rgba(0, 212, 255, 0.2);
    background:
        radial-gradient(ellipse 65% 55% at 50% 58%, rgba(72, 16, 195, 0.18) 0%, transparent 62%),
        rgba(5, 12, 32, 0.4);
}

.hero-visual-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    border: none;
    outline: none;
    box-shadow: none;
    background: none;
    -webkit-mask-image: radial-gradient(ellipse 102% 98% at 50% 52%, #000 88%, transparent 100%);
    mask-image: radial-gradient(ellipse 102% 98% at 50% 52%, #000 88%, transparent 100%);
    filter:
        saturate(1.08)
        contrast(1.02)
        drop-shadow(0 12px 28px rgba(47, 125, 255, 0.14))
        drop-shadow(0 0 42px rgba(255, 42, 163, 0.08));
    animation: simFloat 7s ease-in-out infinite;
    transition: transform 0.45s ease, filter 0.45s ease;
    will-change: transform;
}

@keyframes simFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes simGlowPulse {
    0%, 100% { opacity: 0.92; }
    50% { opacity: 1; }
}

.hero-visual-frame:hover .hero-visual-image {
    filter:
        saturate(1.1)
        contrast(1.03)
        drop-shadow(0 14px 32px rgba(47, 125, 255, 0.18))
        drop-shadow(0 0 48px rgba(255, 42, 163, 0.1));
}

.hero-visual-frame:hover .hero-visual-frame-glow {
    opacity: 1;
}

.hero-stat {
    position: absolute;
    z-index: 4;
    isolation: isolate;
    overflow: hidden;
    width: max-content;
    min-width: 104px;
    max-width: 188px;
    padding: 0.48rem 0.6rem;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 13px;
    background:
        linear-gradient(150deg, rgba(15, 30, 64, 0.76), rgba(6, 13, 32, 0.7));
    backdrop-filter: blur(16px) saturate(1.16);
    -webkit-backdrop-filter: blur(16px) saturate(1.16);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.32),
        0 0 24px rgba(25, 198, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-stat > *,
.hx-kpi-card > * {
    position: relative;
    z-index: 1;
}

.hero-stat::before,
.hx-kpi-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    padding: 1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 72deg,
            rgba(25, 198, 255, 0.18) 108deg,
            rgba(25, 198, 255, 0.95) 128deg,
            rgba(122, 75, 255, 0.88) 148deg,
            rgba(255, 42, 163, 0.72) 168deg,
            transparent 214deg,
            transparent 360deg
        );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.hero-stat:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.38);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(25, 198, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-stat.is-scanning {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(25, 198, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-stat.is-loading::before,
.hx-kpi-card.is-loading::before {
    opacity: 1;
    animation: diagnosticBorderOrbit 2.4s linear infinite;
}

.hero-stat.is-scanning strong,
.hx-kpi-card.is-scanning .hx-kpi-val {
    color: rgba(191, 245, 255, 0.96);
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.28);
}

.hero-stat.is-loaded,
.hx-kpi-card.is-loaded {
    border-color: rgba(34, 211, 238, 0.58);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(25, 198, 255, 0.18),
        0 0 38px rgba(122, 75, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-stat.is-loaded::before,
.hx-kpi-card.is-loaded::before {
    opacity: 0.78;
    background:
        linear-gradient(120deg, rgba(25, 198, 255, 0.84), rgba(122, 75, 255, 0.68), rgba(255, 42, 163, 0.52));
}

.hero-stat.is-manual-review,
.hx-kpi-card.is-manual-review {
    border-color: rgba(250, 204, 21, 0.34);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.3),
        0 0 22px rgba(250, 204, 21, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-stat.is-failed,
.hx-kpi-card.is-failed {
    border-color: rgba(255, 95, 124, 0.34);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 66, 88, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes diagnosticBorderOrbit {
    to { transform: rotate(360deg); }
}

.hero-stat span,
.hero-stat small {
    display: block;
}

.hero-stat span {
    margin-bottom: 0.24rem;
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.18;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.94);
}

.hero-stat strong {
    display: block;
    font-size: 0.88rem;
    line-height: 1.08;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-stat small {
    margin-top: 0.22rem;
    font-size: 0.58rem;
    line-height: 1.2;
    color: rgba(203, 213, 225, 0.72);
}

.hero-stat--regular {
    top: 10%;
    left: -2%;
}

.hero-stat--operators {
    top: 19%;
    right: -4%;
}

.hero-stat--saving {
    left: -1%;
    bottom: 16%;
}

.hero-stat--saving strong {
    color: var(--green);
}

.hero-stat--yearly {
    right: -2%;
    bottom: 12%;
}

.hero-stat--yearly strong {
    color: rgba(187, 247, 208, 0.96);
}

.hero-stat--hwb {
    left: 50%;
    bottom: -5%;
    min-width: 148px;
    transform: translateX(-50%);
    text-align: center;
    border-color: rgba(255, 196, 64, 0.28);
    background:
        linear-gradient(155deg, rgba(28, 22, 8, 0.82), rgba(10, 16, 38, 0.84)),
        radial-gradient(120% 120% at 100% 0%, rgba(255, 196, 64, 0.12), transparent 55%);
}

.hero-stat--hwb strong {
    color: #ffe08a;
    text-shadow: 0 0 18px rgba(255, 196, 64, 0.32);
}

.hero-stat--hwb:hover {
    transform: translateX(-50%) translateY(-1px);
}

.hx-kpi-card--status .hx-kpi-val {
    text-transform: lowercase;
}



/* ================================================================
   KPI SECTION
   ================================================================ */
.hx-kpi-section {
    padding: clamp(2.5rem, 6vw, 5.5rem) 0 0.85rem;
}

.hx-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
}

.hx-kpi-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 92px;
    padding: 0.86rem 1rem;
    background:
        linear-gradient(150deg, rgba(10, 21, 48, 0.76), rgba(5, 12, 30, 0.78));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.05),
        0 16px 40px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hx-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.32);
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.12),
        0 14px 38px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(0, 212, 255, 0.08);
}

.hx-kpi-card.is-scanning {
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.08),
        0 14px 34px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(25, 198, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Icon box */
.hx-kpi-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.hx-kpi-icon svg {
    width: 23px;
    height: 23px;
}

.hx-kpi-card--blue  .hx-kpi-icon { background: rgba(47, 125, 255, 0.18); color: #5abaff; border: 1px solid rgba(47, 125, 255, 0.34); box-shadow: 0 0 24px rgba(47, 125, 255, 0.22); }
.hx-kpi-card--mag   .hx-kpi-icon { background: rgba(122, 75, 255, 0.17); color: #d285ff; border: 1px solid rgba(255, 42, 163, 0.28); box-shadow: 0 0 24px rgba(255, 42, 163, 0.18); }
.hx-kpi-card--red   .hx-kpi-icon { background: rgba(255, 66, 88, 0.16);  color: #ff7b89; border: 1px solid rgba(255, 66, 88, 0.3); box-shadow: 0 0 24px rgba(255, 66, 88, 0.18); }
.hx-kpi-card--cyan  .hx-kpi-icon { background: rgba(25, 198, 255, 0.14);  color: var(--cyan); border: 1px solid rgba(25, 198, 255, 0.3); box-shadow: 0 0 24px rgba(25, 198, 255, 0.18); }
.hx-kpi-card--gold  .hx-kpi-icon { background: rgba(255, 196, 64, 0.16); color: #ffd978; border: 1px solid rgba(255, 196, 64, 0.34); box-shadow: 0 0 26px rgba(255, 196, 64, 0.2); }
.hx-kpi-card--hwb {
    border-color: rgba(255, 196, 64, 0.28);
    background:
        linear-gradient(155deg, rgba(28, 22, 8, 0.82), rgba(10, 16, 38, 0.84)),
        radial-gradient(120% 120% at 100% 0%, rgba(255, 196, 64, 0.12), transparent 55%);
}
.hx-kpi-card--hwb .hx-kpi-val--hw {
    color: #ffe08a;
    text-shadow: 0 0 22px rgba(255, 196, 64, 0.35);
}
.hx-kpi-example {
    display: block;
    margin-top: 0.35rem;
    color: rgba(255, 224, 138, 0.85);
    font-size: 0.72rem;
    line-height: 1.45;
}

.hx-kpi-body {
    min-width: 0;
}

.hx-kpi-lbl {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.22rem;
}

.hx-kpi-val {
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--text-main);
    line-height: 1.05;
    margin-bottom: 0.2rem;
}

.hx-kpi-val--pos { color: #fff; }

.hx-kpi-sub {
    font-size: 0.64rem;
    color: var(--text-muted);
    line-height: 1.35;
}


/* ================================================================
   JAK TO FUNGUJE
   ================================================================ */
.hx-how {
    padding: 0.55rem 0 1.65rem;
}

.hx-section-title {
    text-align: center;
    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 0.24rem;
    color: var(--text-main);
}

.hx-section-sub {
    text-align: center;
    font-size: clamp(0.82rem, 0.65vw + 0.68rem, 0.95rem);
    color: var(--text-muted);
    max-width: 55ch;
    margin: 0 auto 0.7rem;
    line-height: 1.45;
}

/* 4-step grid with connecting line */
.hx-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    position: relative;
    margin-bottom: 1.1rem;
}

/* Connecting line between step circles */
.hx-steps::before {
    content: "";
    position: absolute;
    top: 36px;
    left: calc(12.5% + 18px);
    right: calc(12.5% + 18px);
    height: 1.5px;
    background: linear-gradient(
        90deg,
        rgba(0, 212, 255, 0.28),
        rgba(100, 40, 220, 0.28),
        rgba(0, 212, 255, 0.28)
    );
    z-index: 0;
    pointer-events: none;
}

.hx-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.72rem 0.8rem 0.82rem;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid transparent;
    border-radius: 18px;
    box-shadow: none;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.hx-step:hover {
    border-color: rgba(0, 212, 255, 0.35);
    transform: translateY(-3px);
}

.hx-step-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.55rem;
}

.hx-step-num {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-weight: 900;
    font-size: 0.72rem;
    color: #fff;
    box-shadow: 0 0 16px rgba(25, 198, 255, 0.22);
    position: relative;
    z-index: 2;
}

.hx-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: radial-gradient(circle at 50% 50%, rgba(25, 198, 255, 0.15), rgba(15, 23, 42, 0.72));
    color: var(--cyan);
    opacity: 0.95;
    box-shadow: 0 0 24px rgba(25, 198, 255, 0.16);
}

.hx-step h3 {
    font-size: 0.94rem;
    font-weight: 800;
    margin-bottom: 0.28rem;
    color: var(--text-main);
}

.hx-step p {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.42;
}

.hx-how-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-bottom: 1.25rem;
}

.hx-how-card {
    background:
        linear-gradient(150deg, rgba(10, 21, 48, 0.78), rgba(5, 12, 30, 0.84));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 20px;
    padding: 1rem 1.15rem 1.1rem;
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.06),
        0 18px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hx-how-card--accent {
    background:
        radial-gradient(ellipse 65% 70% at 100% 100%, rgba(255, 42, 163, 0.12), transparent 60%),
        linear-gradient(150deg, rgba(10, 21, 48, 0.78), rgba(5, 12, 30, 0.84));
}

.hx-how-card--note {
    border-color: rgba(96, 165, 250, 0.16);
}

.hx-how-card-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.hx-how-card-list {
    list-style: none;
    display: grid;
    gap: 0.34rem;
}

.hx-how-card-list li {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.4;
}

.hx-how-card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='6' stroke='%2300d4ff' stroke-width='1.1'/%3E%3Cpath d='M5.5 8l1.8 1.8 3.5-3.5' stroke='%2300d4ff' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
}

.hx-how-card-list--plain li::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='6' stroke='%2394a3b8' stroke-width='1.1'/%3E%3Cpath d='M8 5.5v5M8 11.8h.01' stroke='%2394a3b8' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hx-how-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.hx-how-cta-btn {
    min-width: min(100%, 220px);
    justify-content: center;
    padding: 0.62rem 1.25rem;
    font-size: 0.88rem;
}


/* ================================================================
   DASHBOARD BOTTOM: reco + chart + why
   ================================================================ */
.hx-dash {
    padding: 0.45rem 0 1.65rem;
}

.hx-dash-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.85fr;
    gap: 1.1rem;
    align-items: start;
}

/* ── Recommendation card ─── */
.hx-reco {
    background:
        radial-gradient(ellipse 65% 70% at 100% 100%, rgba(255, 42, 163, 0.14), transparent 60%),
        linear-gradient(150deg, rgba(10, 21, 48, 0.78), rgba(5, 12, 30, 0.84));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 20px;
    padding: 1rem 1.15rem 1.15rem;
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.06),
        0 18px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hx-reco-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.hx-reco-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hx-reco-badge {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lime);
    border: 1px solid rgba(180, 255, 74, 0.45);
    background: rgba(180, 255, 74, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    white-space: nowrap;
}

.hx-reco-plan-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.58rem;
}

.hx-reco-plan {
    font-size: 1.12rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.hx-reco-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.hx-tag {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.18rem 0.5rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-muted);
}
.hx-tag--cyan {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.35);
    color: var(--cyan);
}
.hx-tag--lime {
    background: rgba(180, 255, 74, 0.08);
    border-color: rgba(180, 255, 74, 0.4);
    color: var(--lime);
}

.hx-reco-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.hx-reco-price {
    font-size: 1.42rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.hx-reco-period {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hx-reco-save {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--lime);
    background: rgba(180, 255, 74, 0.1);
    border: 1px solid rgba(180, 255, 74, 0.35);
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
}

.hx-reco-list {
    list-style: none;
    display: grid;
    gap: 0.34rem;
    margin-bottom: 0.8rem;
}

.hx-reco-list li {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.4;
}

/* SVG checkmark via background image */
.hx-reco-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='6' stroke='%2300d4ff' stroke-width='1.1'/%3E%3Cpath d='M5.5 8l1.8 1.8 3.5-3.5' stroke='%2300d4ff' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
}

.hx-reco-cta {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.55rem 0.85rem;
    min-height: 38px;
    color: #00101f;
}

/* ── Bar chart card ─── */
.hx-chart-card {
    background:
        linear-gradient(150deg, rgba(10, 21, 48, 0.76), rgba(5, 12, 30, 0.84));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 20px;
    padding: 1rem 1.1rem 1rem;
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.05),
        0 18px 50px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hx-chart-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.hx-chart {
    display: flex;
    gap: 1.2rem;
    align-items: flex-end;
    height: 124px;
}

.hx-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.hx-chart-val {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.hx-chart-bar-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    min-height: 0;
}

.hx-bar {
    width: 100%;
    height: var(--bh);
    border-radius: 5px 5px 2px 2px;
    transition: opacity 0.2s ease;
}
.hx-bar:hover { opacity: 0.85; }

.hx-bar--reco {
    background: linear-gradient(to top, #005acc, #4ab0ff);
    box-shadow: 0 0 16px rgba(74, 176, 255, 0.3);
}
.hx-bar--op1 {
    background: linear-gradient(to top, #5a0088, #cc44ff);
    box-shadow: 0 0 16px rgba(204, 68, 255, 0.25);
}
.hx-bar--op2 {
    background: linear-gradient(to top, #880000, #ff5050);
    box-shadow: 0 0 16px rgba(255, 80, 80, 0.22);
}

.hx-chart-lbl {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.55rem;
    text-align: center;
    font-weight: 600;
}

/* ── Why Tarifárna card ─── */
.hx-why-card {
    background:
        linear-gradient(150deg, rgba(10, 21, 48, 0.76), rgba(5, 12, 30, 0.84));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 20px;
    padding: 1rem 1.1rem 1.1rem;
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.05),
        0 18px 50px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hx-why-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.hx-why-list {
    list-style: none;
    display: grid;
    gap: 0.58rem;
}

.hx-why-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.hx-why-icon {
    flex-shrink: 0;
    color: var(--cyan);
    margin-top: 1px;
}

.hx-why-item span:last-child {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.34;
}


/* ================================================================
   CTA SECTION
   ================================================================ */
.hx-cta-section {
    padding: 0.75rem 0 2.6rem;
}

.hx-cta-panel {
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem) 1.5rem;
    background: linear-gradient(150deg, rgba(10, 21, 48, 0.76), rgba(5, 12, 30, 0.84));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 22px;
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.08),
        0 0 80px rgba(0, 212, 255, 0.08),
        0 30px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hx-cta-panel h2 {
    font-size: clamp(1.55rem, 2.2vw, 2.1rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.7rem;
}

.hx-cta-panel p {
    font-size: clamp(0.92rem, 1vw + 0.7rem, 1.05rem);
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
}

.hx-cta-btn {
    padding: 0.85rem 2.5rem;
    min-height: 52px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}


/* ================================================================
   PREFERS REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    .hx-eyebrow-dot,
    .hx-sc-dot,
    .hero-visual-image,
    .hero-visual-frame-glow,
    .invoice-diagnostics__bar span,
    .hero-stat.is-loading::before,
    .hx-kpi-card.is-loading::before { animation: none !important; }

    .hx-sc-zone::after { animation: none; opacity: 0; }

    .hero-visual-image,
    .hero-visual-inner,
    .hero-visual-frame,
    .hero-stat {
        transition: none !important;
    }
}


/* ================================================================
   PODSTRÁNKY — sdílené layout komponenty
   ================================================================ */

.page-main {
    padding-bottom: 0.5rem;
}

.sub-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(1.85rem, 3.5vw, 2.75rem) 0 clamp(1.35rem, 2.5vw, 2rem);
    border-bottom: 1px solid rgba(96, 165, 250, 0.12);
    overflow: hidden;
}

.sub-hero-glow {
    position: absolute;
    inset: -25% -10% auto;
    height: 110%;
    background:
        radial-gradient(ellipse 50% 42% at 12% 0%, rgba(25, 198, 255, 0.16), transparent 58%),
        radial-gradient(ellipse 38% 32% at 88% 15%, rgba(255, 42, 163, 0.1), transparent 52%);
    pointer-events: none;
    z-index: 0;
}

.sub-hero .container {
    position: relative;
    z-index: 1;
}

.sub-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.sub-hero-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan-glow);
    flex-shrink: 0;
}

.sub-hero-title {
    font-size: clamp(1.75rem, 2.4vw + 0.65rem, 2.65rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.08;
    max-width: min(34ch, 100%);
    margin-bottom: 0.65rem;
    color: var(--text-main);
    text-shadow: 0 0 28px rgba(255, 255, 255, 0.06);
}

.sub-hero-accent,
.sub-hero-title .text-gradient {
    background: linear-gradient(96deg, var(--cyan) 0%, var(--blue) 27%, var(--violet) 57%, var(--magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub-hero-lead {
    color: var(--muted);
    font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.08rem);
    line-height: 1.58;
    max-width: 58ch;
}

.page-section {
    padding-top: clamp(2rem, 3.5vw, 3rem);
    padding-bottom: clamp(2rem, 3.5vw, 3rem);
}

.page-section-muted {
    background: linear-gradient(180deg, rgba(25, 198, 255, 0.04), transparent);
    border-top: 1px solid rgba(96, 165, 250, 0.1);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}

.page-section-title {
    text-align: center;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.page-section-title-left {
    text-align: left;
    margin-bottom: 0.65rem;
}

.page-prose {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 1.02rem;
}

.page-prose-narrow {
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
}

.page-prose-center {
    text-align: center;
    margin-bottom: 1.5rem;
}

.process-cards {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.process-cards-5 {
    grid-template-columns: repeat(5, 1fr);
}

.process-card {
    padding: 1.15rem 1rem 1.2rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.process-card:hover {
    border-color: var(--border-strong);
    box-shadow:
        var(--shadow-panel),
        0 0 28px rgba(25, 198, 255, 0.12),
        0 0 36px rgba(255, 42, 163, 0.08);
    transform: translateY(-2px);
}

.process-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.45);
    background: rgba(25, 198, 255, 0.1);
    margin-bottom: 0.75rem;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(25, 198, 255, 0.2);
}

.process-card-title {
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.process-card-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.info-card-grid {
    display: grid;
    gap: 1rem;
}

.info-card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.info-card-grid-9 {
    grid-template-columns: repeat(3, 1fr);
}

.info-card {
    padding: 1.15rem 1.05rem;
    min-height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.info-card:hover {
    border-color: var(--border-strong);
    box-shadow:
        var(--shadow-panel),
        0 0 24px rgba(25, 198, 255, 0.1),
        0 0 32px rgba(255, 42, 163, 0.06);
    transform: translateY(-2px);
}

.info-card h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
    color: var(--text-main);
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.operator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.page-operator-grid {
    margin-top: 0.5rem;
}

.operator-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.15rem 1.2rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.operator-card:hover {
    border-color: var(--border-strong);
    box-shadow:
        var(--shadow-panel),
        0 0 28px rgba(25, 198, 255, 0.12);
    transform: translateY(-2px);
}

.operator-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.operator-card ul {
    list-style: none;
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
    flex: 1;
}

.operator-card li {
    font-size: 0.86rem;
    color: var(--muted);
    padding-left: 1rem;
    position: relative;
}

.operator-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan-glow);
}

.operator-price {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.85rem;
}

.operator-price strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0.2rem;
    letter-spacing: -0.02em;
}

.operator-card .btn {
    margin-bottom: 0.75rem;
}

.offer-strength {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: auto;
}

.strength-dots {
    display: inline-block;
    width: 4.5rem;
    height: 6px;
    margin-left: 0.35rem;
    vertical-align: middle;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    position: relative;
    overflow: hidden;
}

.strength-dots::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.strength-medium::after { width: 55%; }
.strength-good::after { width: 75%; }
.strength-high::after { width: 95%; }

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    max-width: 52rem;
    margin: 0 auto;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: lowercase;
    border: 1px solid rgba(34, 211, 238, 0.32);
    color: rgba(226, 232, 240, 0.92);
    background: rgba(7, 15, 34, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    letter-spacing: 0.02em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tag-pill:hover {
    border-color: var(--border-strong);
    box-shadow: 0 0 16px rgba(25, 198, 255, 0.12);
}

.model-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.model-card {
    padding: 1.15rem 1rem 1.2rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.model-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow:
        var(--shadow-panel),
        0 0 24px rgba(25, 198, 255, 0.1);
}

.model-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lime);
    border: 1px solid rgba(180, 255, 74, 0.45);
    padding: 0.2rem 0.45rem;
    margin-bottom: 0.65rem;
    border-radius: 2px;
    background: rgba(180, 255, 74, 0.06);
}

.model-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.model-stats {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.model-stats li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.model-stats strong {
    color: var(--text-main);
    font-weight: 700;
    text-align: right;
}

.model-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.about-servisak-panel {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.35rem 1.25rem;
    border-color: var(--border-strong);
}

.about-servisak-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-tech);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.contact-aside {
    padding: 1.35rem 1.2rem;
}

.contact-aside-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-aside-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-aside-list a {
    color: var(--cyan);
    font-weight: 600;
}

.contact-aside-list a:hover {
    text-decoration: underline;
}

.contact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-placeholder-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-form-panel {
    padding: 1.35rem 1.25rem 1.5rem;
}

.form-alert {
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-tech);
    border: 1px solid transparent;
}

.form-alert-success {
    background: rgba(180, 255, 74, 0.08);
    border-color: rgba(180, 255, 74, 0.35);
    color: var(--lime);
}

.form-alert-error {
    background: rgba(255, 95, 124, 0.08);
    border-color: rgba(255, 95, 124, 0.35);
    color: #ffb4c0;
}

.contact-form-tech {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    gap: 0.35rem;
}

.form-row label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-row .req {
    color: var(--cyan);
}

.contact-form-tech input,
.contact-form-tech textarea {
    width: 100%;
    padding: 0.68rem 0.8rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background: rgba(3, 7, 18, 0.55);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-tech input::placeholder,
.contact-form-tech textarea::placeholder {
    color: rgba(148, 163, 184, 0.65);
}

.contact-form-tech input:focus,
.contact-form-tech textarea:focus {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2), 0 0 22px rgba(25, 198, 255, 0.14);
}

.contact-form-tech textarea {
    resize: vertical;
    min-height: 140px;
}

.section-cta-inline {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.cta-inline-panel {
    text-align: center;
    padding: clamp(1.35rem, 2.5vw, 2rem);
    border-color: var(--border-strong);
}

.cta-inline-panel h2 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
    margin-bottom: 1.1rem;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.cta-inline-panel-split {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem 1.5rem;
    align-items: center;
    text-align: left;
}

.cta-inline-panel-split h2 {
    margin-left: 0;
    margin-bottom: 0.35rem;
}

.cta-inline-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.page-dekujeme-note {
    margin-top: 1.25rem;
    max-width: 52ch;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.page-dekujeme-actions {
    margin-top: 1.75rem;
}

.dekujeme-diagnostics {
    margin-top: 1.75rem;
    max-width: 640px;
}

.dekujeme-diagnostics__title {
    font-size: 1.05rem;
    margin: 0;
}

body.lead-capture-open,
body.tarifarna-float-open {
    overflow: hidden;
}

/* Floating panel (anonymní nabídka + kontaktní formulář) */
.tarifarna-float.lead-capture {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tarifarna-float[hidden] {
    display: none !important;
}

.tarifarna-float__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 22, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tarifarna-float__panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(88vh, 720px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: clamp(1.15rem, 3vw, 1.5rem);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background:
        linear-gradient(155deg, rgba(14, 26, 54, 0.88), rgba(8, 14, 34, 0.92));
    box-shadow:
        0 0 0 1px rgba(25, 198, 255, 0.12),
        0 0 32px rgba(25, 198, 255, 0.14),
        0 20px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tarifarna-float__close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 999px;
    background: rgba(8, 16, 36, 0.75);
    color: #e2e8f0;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tarifarna-float__close:hover {
    border-color: rgba(0, 212, 255, 0.55);
    box-shadow: 0 0 12px rgba(25, 198, 255, 0.25);
}

.lead-capture[hidden] {
    display: none !important;
}

.lead-capture__dialog {
    width: min(520px, 100%);
    max-height: min(88vh, 820px);
}

.lead-capture__eyebrow {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin: 0 0 0.35rem;
}

.lead-capture__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1.2;
}

.lead-capture__intro,
.lead-capture__pending,
.lead-capture__form-lead,
.lead-capture__fineprint {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 0.85rem;
}

.lead-capture__pending {
    color: #9fdcff;
    border-left: 3px solid rgba(25, 198, 255, 0.55);
    padding-left: 0.75rem;
}

.lead-capture__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1rem 0 1.25rem;
}

.lead-capture__metrics.is-pending .lead-capture__metric-value {
    opacity: 0.55;
}

.lead-capture__metric {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    background: rgba(8, 18, 40, 0.55);
}

.lead-capture__metric--hw {
    grid-column: 1 / -1;
    border-color: rgba(255, 196, 64, 0.32);
    background:
        linear-gradient(145deg, rgba(32, 24, 6, 0.55), rgba(8, 18, 40, 0.65));
}

.lead-capture__metric-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.lead-capture__metric-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.lead-capture__metric-value--save {
    color: #7dffb2;
}

.lead-capture__metric-value--hw {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #ffe08a;
    text-shadow: 0 0 24px rgba(255, 196, 64, 0.28);
}

.lead-capture__metric-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.lead-capture__form {
    border-top: 1px solid rgba(96, 165, 250, 0.18);
    padding-top: 1rem;
}

.lead-capture__form-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.lead-capture__field {
    display: block;
    margin-bottom: 0.75rem;
}

.lead-capture__field span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
}

.lead-capture__field input,
.lead-capture__field textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: rgba(6, 14, 34, 0.85);
    color: #f8fafc;
    font: inherit;
}

.lead-capture__field textarea {
    resize: vertical;
    min-height: 4.5rem;
}

.lead-capture__submit {
    width: 100%;
    margin-top: 0.25rem;
}

.lead-capture__error {
    color: #ff8da0;
    font-size: 0.88rem;
    margin: 0 0 0.75rem;
}

.lead-capture__success {
    color: #7dffb2;
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
}

.consent-field--upload {
    margin: 0.85rem 0 0;
    padding: 0 0.15rem;
}

.consent-checkbox {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.92);
    cursor: pointer;
}

.consent-checkbox input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    accent-color: var(--cyan, #19c6ff);
}

.consent-checkbox a {
    color: var(--cyan, #19c6ff);
    text-decoration: underline;
}

.lead-capture__consents {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(96, 165, 250, 0.18);
}

.lead-capture__consent {
    margin-bottom: 0.75rem;
}

.lead-capture__consent-save {
    width: 100%;
    margin-top: 0.35rem;
}

.lead-capture__consent-status {
    font-size: 0.88rem;
    margin: 0.65rem 0 0;
    color: #7dffb2;
}

.lead-capture__consent-status.is-error {
    color: #ff8da0;
}

.lead-capture__partner-transfer {
    margin-top: 0.85rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(6, 14, 34, 0.55);
    border: 1px dashed rgba(96, 165, 250, 0.22);
}

.lead-capture__dialog--contact {
    max-width: 28rem;
}

.lead-capture__consent--required input {
    outline-offset: 2px;
}

.offer-cta {
    position: relative;
    margin: 0;
    padding: 1rem 1.1rem 1rem;
    padding-right: 2.75rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.28);
    background: rgba(8, 16, 36, 0.92);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(25, 198, 255, 0.1);
    pointer-events: auto;
}

.offer-cta--dock {
    position: fixed;
    left: 50%;
    top: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 950;
}

.offer-cta.is-contact-submitted {
    border-color: rgba(125, 255, 180, 0.38);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(125, 255, 180, 0.12);
}

.offer-cta[hidden] {
    display: none !important;
}

.offer-cta__title {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    color: #f8fafc;
}

.offer-cta__text {
    margin: 0 0 0.7rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.88);
}

.offer-cta__button {
    width: 100%;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
}

.offer-cta__prompt[hidden] {
    display: none !important;
}

.offer-cta__close {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(5, 12, 28, 0.75);
    color: #e2e8f0;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.offer-cta__close:hover {
    border-color: rgba(0, 212, 255, 0.45);
    background: rgba(8, 20, 44, 0.9);
}

.offer-cta__success {
    margin: 0;
    padding: 0.25rem 0 0;
    text-align: center;
}

.offer-cta__success[hidden] {
    display: none !important;
}

.offer-cta__success-text {
    margin: 0;
    font-size: clamp(0.92rem, 2vw, 1.02rem);
    font-weight: 600;
    line-height: 1.45;
    color: #9dffc8;
}

.lead-capture__consent--optional {
    opacity: 0.88;
    font-size: 0.8rem;
}

.lead-capture__consent--optional span {
    line-height: 1.4;
}

@media (max-width: 768px) {
    .offer-cta--dock {
        width: min(520px, calc(100vw - 24px));
        max-height: calc(100vh - 24px);
    }

    .offer-cta {
        padding: 0.85rem 0.95rem;
        padding-right: 2.5rem;
    }

    .offer-cta__title {
        font-size: 0.92rem;
    }

    .offer-cta__text {
        font-size: 0.76rem;
        margin-bottom: 0.55rem;
    }
}

.tarifarna-toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 1300;
    transform: translateX(-50%);
    max-width: min(520px, calc(100% - 2rem));
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(8, 16, 36, 0.94);
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(25, 198, 255, 0.12);
}

.tarifarna-toast[hidden] {
    display: none !important;
}

.tarifarna-toast.is-error {
    border-color: rgba(255, 120, 140, 0.45);
    color: #ffc8d0;
}

.legal-prose h2 {
    margin-top: 1.75rem;
}

/* Srovnani operatoru page */
.page-srovnani .sub-hero-actions {
    margin-top: 1.35rem;
}

.page-srovnani .srovnani-watch-grid {
    grid-template-columns: repeat(5, 1fr);
}

.page-srovnani .srovnani-operators-intro {
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
}

.page-srovnani .srovnani-operator-card {
    min-height: 100%;
}

.page-srovnani .srovnani-operator-card h3 {
    margin-bottom: 0.65rem;
}

.page-srovnani .srovnani-operator-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.58;
    margin: 0;
}

.page-srovnani .srovnani-gain-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 1.25rem;
    max-width: 52rem;
    margin: 0 auto;
}

.page-srovnani .srovnani-gain-list li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.page-srovnani .srovnani-gain-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan-glow);
}

.page-srovnani .srovnani-faq-wrap {
    max-width: 44rem;
}

.page-srovnani .srovnani-faq {
    display: grid;
    gap: 0.65rem;
}

.page-srovnani .srovnani-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(3, 7, 18, 0.35);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-srovnani .srovnani-faq-item[open] {
    border-color: var(--border-strong);
    box-shadow: 0 0 24px rgba(25, 198, 255, 0.08);
}

.page-srovnani .srovnani-faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.95rem 1rem;
    color: var(--text-main);
}

.page-srovnani .srovnani-faq-item summary::-webkit-details-marker {
    display: none;
}

.page-srovnani .srovnani-faq-item summary::after {
    content: "+";
    float: right;
    color: var(--cyan);
    font-weight: 700;
}

.page-srovnani .srovnani-faq-item[open] summary::after {
    content: "−";
}

.page-srovnani .srovnani-faq-item p {
    margin: 0;
    padding: 0 1rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.58;
}

.page-srovnani .srovnani-final-cta h2 {
    max-width: none;
    margin-left: 0;
}

@media (max-width: 980px) {
    .page-srovnani .srovnani-watch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .page-srovnani .srovnani-gain-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-srovnani .srovnani-watch-grid {
        grid-template-columns: 1fr;
    }
}

/* Pro firmy page */
.page-firmy .firmy-hero-actions {
    margin-top: 1.15rem;
}

.page-firmy .firmy-audience-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0.25rem;
}

.page-firmy .firmy-coverage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.25rem;
}

.page-firmy .firmy-coverage-item h3 {
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--text-main);
    text-transform: none;
    letter-spacing: 0;
}

.page-firmy .firmy-coverage-item p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0;
}

.page-firmy .firmy-problems-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.page-firmy .firmy-problem-item {
    padding: 1rem 1.05rem;
    margin: 0;
}

.page-firmy .firmy-problem-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.page-firmy .firmy-invoice-panel {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.page-firmy .firmy-invoice-steps {
    list-style: none;
    display: grid;
    gap: 0.85rem;
    margin-top: 1.35rem;
    padding: 0;
}

.page-firmy .firmy-invoice-steps li {
    padding: 1rem 1.05rem;
    border: 1px solid var(--border);
    background: rgba(7, 15, 34, 0.45);
    border-radius: var(--radius);
}

.page-firmy .firmy-invoice-steps strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.page-firmy .firmy-invoice-steps span {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.page-firmy .firmy-beyond-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.25rem;
}

.page-firmy .firmy-faq-wrap {
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.page-firmy .firmy-faq {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.page-firmy .firmy-faq-item {
    border: 1px solid var(--border);
    background: rgba(7, 15, 34, 0.45);
    border-radius: var(--radius);
    padding: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-firmy .firmy-faq-item[open] {
    border-color: var(--border-strong);
    box-shadow: 0 0 20px rgba(25, 198, 255, 0.08);
}

.page-firmy .firmy-faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.35;
    padding: 0.95rem 1.05rem;
    color: var(--text-main);
}

.page-firmy .firmy-faq-item summary::-webkit-details-marker {
    display: none;
}

.page-firmy .firmy-faq-item summary::after {
    content: "+";
    float: right;
    color: var(--cyan);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}

.page-firmy .firmy-faq-item[open] summary::after {
    content: "−";
}

.page-firmy .firmy-faq-item p {
    margin: 0;
    padding: 0 1.05rem 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Jak to funguje page */

.page-jak .sub-hero-lead {
    max-width: 62ch;
}

.page-jak .sub-hero-actions {
    margin-top: 1.35rem;
}

.info-card-grid-jtf {
    grid-template-columns: repeat(5, 1fr);
}

.page-jak .jtf-prose-panel {
    padding: clamp(1.15rem, 2vw, 1.5rem) clamp(1.1rem, 2.5vw, 1.65rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(155deg, var(--panel-2), rgba(4, 10, 27, 0.88)),
        var(--panel);
    box-shadow: var(--shadow-panel);
}

.page-jak .jtf-prose-panel p + p {
    margin-top: 0.85rem;
}

.jtf-outcomes {
    list-style: none;
    display: grid;
    gap: 0.85rem;
    max-width: 52rem;
    margin: 0 auto;
}

.jtf-outcomes li {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    column-gap: 0.85rem;
    row-gap: 0.28rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(155deg, var(--panel-2), rgba(4, 10, 27, 0.88)),
        var(--panel);
    box-shadow: var(--shadow-panel);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.jtf-outcomes li::before {
    content: "";
    grid-row: 1 / -1;
    grid-column: 1;
    align-self: center;
    justify-self: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6.2l2 2 5.2-4.8' stroke='%23b4ff4a' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / 0.72rem no-repeat,
        rgba(180, 255, 74, 0.1);
    border: 1px solid rgba(180, 255, 74, 0.38);
    box-shadow: 0 0 14px rgba(163, 230, 53, 0.18);
}

.jtf-outcomes li:hover {
    border-color: var(--border-strong);
    box-shadow:
        var(--shadow-panel),
        0 0 24px rgba(25, 198, 255, 0.1);
    transform: translateY(-2px);
}

.jtf-outcomes strong {
    grid-column: 2;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
}

.jtf-outcomes span {
    grid-column: 2;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.jtf-faq {
    max-width: 52rem;
    margin: 0 auto;
    display: grid;
    gap: 0.65rem;
}

.jtf-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(155deg, var(--panel-2), rgba(4, 10, 27, 0.88)),
        var(--panel);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jtf-faq-item[open] {
    border-color: var(--border-strong);
    box-shadow:
        var(--shadow-panel),
        0 0 22px rgba(25, 198, 255, 0.1);
}

.jtf-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 2.5rem 1rem 1.05rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
}

.jtf-faq-item summary::-webkit-details-marker {
    display: none;
}

.jtf-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
}

.jtf-faq-item[open] summary::after {
    content: "−";
}

.jtf-faq-item p {
    padding: 0 1.05rem 1rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.page-jak .cta-inline-text {
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.15rem;
}

@media (max-width: 1100px) {
    .info-card-grid-jtf {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 980px) {
    .info-card-grid-jtf {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .info-card-grid-jtf {
        grid-template-columns: 1fr;
    }
}

/* O nas page */

body.page-about .about-why-prose p + p {
    margin-top: 1rem;
}

body.page-about .about-diff-grid {
    grid-template-columns: repeat(3, 1fr);
}

body.page-about .about-servisak-lead {
    font-size: 1.08rem;
    color: var(--text-main);
    margin-bottom: 0.85rem;
}

body.page-about .about-servisak-panel .page-prose + .page-prose {
    margin-top: 0.75rem;
}

body.page-about .about-topic-list,
body.page-about .about-audience-list {
    list-style: none;
    display: grid;
    gap: 0.55rem 1rem;
    max-width: 52rem;
    margin: 0 auto;
    padding: 0;
}

body.page-about .about-topic-list {
    grid-template-columns: repeat(3, 1fr);
}

body.page-about .about-audience-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: 40rem;
}

body.page-about .about-topic-list li,
body.page-about .about-audience-list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

body.page-about .about-topic-list li::before,
body.page-about .about-audience-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan-glow);
}

body.page-about .about-data-panel {
    max-width: 68ch;
    margin: 0 auto;
    padding: 1.25rem 1.2rem;
}

body.page-about .about-data-panel .page-prose + .page-prose {
    margin-top: 0.85rem;
}

body.page-about .cta-inline-panel-split h2 {
    max-width: none;
}

body.page-about .cta-inline-panel-split .cta-inline-text {
    max-width: 52ch;
}

@media (max-width: 980px) {
    body.page-about .about-diff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.page-about .about-topic-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    body.page-about .about-servisak-panel {
        flex-direction: column;
    }

    body.page-about .about-topic-list,
    body.page-about .about-audience-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body.page-about .about-diff-grid {
        grid-template-columns: 1fr;
    }
}
