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

:root {
    --white: #FFFFFF;
    --black: #000000;
    --grey-900: #111827;
    --grey-700: #374151;
    --grey-500: #6B7280;
    --grey-400: #6B7280;
    --grey-300: #D1D5DB;
    --grey-200: #E5E7EB;
    --grey-100: #F3F4F6;
    --grey-50: #F9FAFB;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--grey-500);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ── TOP BAR ── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: none;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-brand strong {
    font-size: 15px;
    font-weight: 900;
    color: var(--black);
    letter-spacing: 0.04em;
}

.topbar-brand .divider {
    width: 1px;
    height: 20px;
    background: var(--grey-300);
}

.topbar-brand span {
    font-size: 13px;
    font-weight: 400;
    color: var(--grey-500);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    background: var(--white);
    color: var(--black) !important;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--black);
    transition: 0.2s;
}

.btn-login:hover {
    border-color: #6891b3;
}

/* Hamburger */
.hamburger {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--black);
    transition: 0.2s;
}

.hamburger:hover span { background: var(--grey-500); }

/* Dropdown menu */
.menu-dropdown {
    display: none;
    position: absolute;
    top: 64px;
    right: 48px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 320px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 200;
}

.menu-dropdown.open { display: block; }

.menu-dropdown a, .menu-dropdown button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-700);
    text-decoration: none;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: 0.15s;
}

.menu-dropdown a:hover, .menu-dropdown button:hover {
    background: var(--grey-50);
    color: var(--black);
}

.menu-dropdown .menu-divider {
    height: 1px;
    background: var(--grey-200);
    margin: 8px 0;
}

.menu-dropdown .menu-btn-cta {
    display: block;
    margin: 8px 16px;
    padding: 8px 20px;
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--black);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
    width: auto;
}

.menu-dropdown .menu-btn-cta:hover {
    background: var(--black);
    color: var(--white);
}


/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 48px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}
.hero-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.hero-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4B5563;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    color: var(--black);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto;
    padding: 0 12px 12px;
    background: rgba(255, 255, 255, 0.5);
}
.hero-sub:last-of-type {
    padding-bottom: 0;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

button, a.btn-login, .hero-btn, .cta-btn { box-shadow: 0 1px 0 0 #94A3B8; }

.hero-btn {
    display: inline-block;
    background: transparent;
    color: var(--black);
    padding: 5px 16px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--black);
    transition: 0.2s;
}

.hero-btn:hover {
    border-width: 1px;
}

.hero-btn-cta {
    font-size: 16px;
    padding: 4px 14px;
    background: rgba(233, 238, 243, 0.5);
    border-radius: 20px;
}
.hero-btn-scout, .hero-btn-counsel {
    padding: 3px 12px;
    font-size: 11px;
    color: var(--grey-400);
    border-color: var(--grey-400);
    border-radius: 20px;
}
.hero-btn-cta:hover { border-color: #6891b3; }
.hero-btn-scout,
.hero-btn-counsel {
    align-self: flex-start;
    font-size: 15px;
}
.hero-btn-scout:hover { border-color: #7e9f74; }
.hero-btn-counsel:hover { border-color: #a966a2; }
.hero-btn-sample { background: rgba(255, 255, 255, 0.75); }

.hero-free-note {
    margin-top: 4px;
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.mobile-br { display: none; }

.hero-samples {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
    gap: 12px;
    margin-top: 32px;
}

/* ── SECTIONS ── */
.section {
    padding: 100px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-intro {
    text-align: left;
    padding: 100px 48px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-intro h2 {
    font-size: 36px;
    font-weight: 900;
    color: var(--black);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-intro p {
    font-size: 14px;
    color: var(--grey-500);
    max-width: 600px;
    line-height: 1.6;
}

/* ── AGENT BLOCK ── */
.agent-block {
    padding: 40px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.agent-header {
    margin-bottom: 24px;
}

.agent-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.agent-title span {
    font-size: 32px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.02em;
}

.agent-title .agent-word {
    color: #6891b3;
}

.agent-title-counsel .agent-word {
    color: #a966a2;
}

.agent-title {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    display: inline-flex;
    padding-bottom: 4px;
    transition: border-color 0.2s;
}

.agent-title:hover {
    border-bottom-color: #6891b3;
}

.agent-title-counsel:hover {
    border-bottom-color: #a966a2;
}

.agent-header p {
    font-size: 14px;
    color: var(--grey-500);
    max-width: 560px;
    line-height: 1.6;
}

.agent-divider {
    width: 100%;
    height: 1px;
    background: var(--grey-200);
    margin: 0 48px 0;
    max-width: 1104px;
    margin-left: auto;
    margin-right: auto;
}

/* ── PILLAR GRID ── */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 20px;
}
@media (max-width: 1024px) {
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pillar-grid { grid-template-columns: 1fr; }
}

.pillar-card {
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    padding: 16px 24px;
    background: var(--white);
    transition: border-color 0.2s;
    /* Off-screen karty přeskoč při paintu — klíčové pro rychlé scrolování
       na mobilu. Bez toho Chrome/Safari renderují všech 59 pillar-card
       na každý frame → bílé tiles během rychlého scrollu. */
    content-visibility: auto;
    contain-intrinsic-size: auto 260px;
}

.pillar-card:hover {
    border-color: var(--grey-400);
}

.pillar-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pillar-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--grey-400);
    font-variant-numeric: tabular-nums;
    transition: color 0.2s;
    margin-bottom: 4px;
}

#scout .pillar-num { color: #6891b3; }
#counsel .pillar-num { color: #a966a2; }

.pillar-card:nth-child(1):hover  { border-color: #6891b3; }
.pillar-card:nth-child(2):hover  { border-color: #cb8989; }
.pillar-card:nth-child(3):hover  { border-color: #a966a2; }
.pillar-card:nth-child(4):hover  { border-color: #c8b27a; }
.pillar-card:nth-child(5):hover  { border-color: #7e9f74; }
.pillar-card:nth-child(6):hover  { border-color: #a966a2; }
.pillar-card:nth-child(7):hover  { border-color: #c8b27a; }
.pillar-card:nth-child(8):hover  { border-color: #7e9f74; }
.pillar-card:nth-child(9):hover  { border-color: #a966a2; }
.pillar-card:nth-child(10):hover { border-color: #cb8989; }
.pillar-card:nth-child(11):hover { border-color: #6891b3; }


.pillar-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--grey-900);
    line-height: 1.3;
}

.pillar-source {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grey-400);
}

.pillar-desc {
    font-size: 14px;
    color: var(--grey-500);
    line-height: 1.6;
    margin-bottom: 4px;
}

.pillar-output {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--grey-500);
    background: var(--grey-100);
    padding: 3px 10px;
    border-radius: 3px;
}

/* ── FOOTER ── */
/* ── PILLAR DETAIL (EXPANDABLE) ── */
.pillar-card { cursor: pointer; transition: border-color 0.2s; }

.pillar-detail {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    font-size: 14px;
    color: var(--grey-700);
    line-height: 1.7;
}

.master-card {
    grid-column: 1 / -1;
}

.pillar-card.expanded .pillar-detail {
    display: block;
}

.pillar-card.expanded .pillar-detail { display: block; }

.pillar-detail h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    margin: 14px 0 6px;
    padding-bottom: 0;
    border-bottom: none;
    display: inline-block;
}

.pillar-detail h3::after {
    content: '';
    display: block;
    margin-top: 4px;
    border-bottom: 1px solid var(--grey-200);
}

.pillar-card:nth-child(1).expanded .pillar-detail h3::after  { border-bottom-color: #6891b3; }
.pillar-card:nth-child(2).expanded .pillar-detail h3::after  { border-bottom-color: #cb8989; }
.pillar-card:nth-child(3).expanded .pillar-detail h3::after  { border-bottom-color: #a966a2; }
.pillar-card:nth-child(4).expanded .pillar-detail h3::after  { border-bottom-color: #c8b27a; }
.pillar-card:nth-child(5).expanded .pillar-detail h3::after  { border-bottom-color: #7e9f74; }
.pillar-card:nth-child(6).expanded .pillar-detail h3::after  { border-bottom-color: #a966a2; }
.pillar-card:nth-child(7).expanded .pillar-detail h3::after  { border-bottom-color: #c8b27a; }
.pillar-card:nth-child(8).expanded .pillar-detail h3::after  { border-bottom-color: #7e9f74; }
.pillar-card:nth-child(9).expanded .pillar-detail h3::after  { border-bottom-color: #a966a2; }
.pillar-card:nth-child(10).expanded .pillar-detail h3::after { border-bottom-color: #cb8989; }
.pillar-card:nth-child(11).expanded .pillar-detail h3::after { border-bottom-color: #6891b3; }

.pillar-card {
    align-self: stretch;
}
.pillar-card.expanded {
    border-color: var(--grey-300);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    grid-column: span 2;
    grid-row: span 3;
}
.master-card.expanded { grid-column: 1 / -1; }
@media (min-width: 1025px) {
    .pillar-card.expanded-from-last-col { grid-column: 2 / 4; }
    .pillar-card.is-displaced-before-expanded { grid-column: 1 / 2; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .pillar-card.expanded-from-last-col { grid-column: 1 / 3; }
    .pillar-card.is-displaced-before-expanded { grid-column: 1 / 2; }
}
@media (max-width: 640px) {
    .pillar-card.expanded { grid-column: span 1; }
}

.pillar-detail ul {
    margin: 0 0 10px;
    padding-left: 16px;
}

.pillar-detail li { margin-bottom: 4px; }

.pillar-detail p { margin: 0 0 8px; }

.pillar-detail .detail-formats {
    margin-top: 12px;
    font-size: 12px;
    color: var(--grey-400);
}

.footer {
    border-top: 1px solid var(--grey-200);
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1296px;
    margin: 40px auto 0;
}

.footer span {
    font-size: 13px;
    color: var(--grey-400);
}

.footer a {
    font-size: 13px;
    color: var(--grey-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover { color: var(--grey-700); }

.footer-payment-logos {
    width: 260px;
    max-width: 100%;
    height: auto;
}

.og-preview-probe {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.is-hidden {
    display: none !important;
}

.sample-pdf-frame {
    display: none;
    max-width: 640px;
    margin: -100px auto 40px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.sample-pdf-frame.is-visible {
    display: block;
}

.sample-pdf-container {
    background: #e5e7eb;
    border: 1px solid var(--black);
    border-radius: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 700px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 8px 0;
}

.sample-pdf-page {
    display: block;
    width: calc(100% - 16px);
    height: auto;
    margin: 6px auto;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.software-heading-wrap {
    padding: 24px 48px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.agent-title.no-title-rule {
    border-bottom: none;
}

.scout-master-wrap {
    margin-top: 20px;
    border-top: 1px solid var(--grey-200);
    padding-top: 20px;
}

.scout-report-accent {
    color: #6891b3;
}

.data-sources {
    max-width: none;
    color: var(--black);
    line-height: 2.2;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0 8px;
}

.data-source-name {
    color: var(--grey-400);
}

.landing-cta-bottom {
    text-align: center;
    margin: 40px 0;
}

.feedback-copy {
    max-width: 600px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--grey-500);
    margin: 0 0 16px;
}

.feedback-form {
    max-width: 600px;
}

.feedback-login-msg,
.feedback-real-form,
.feedback-status {
    display: none;
}

.feedback-login-msg.is-visible,
.feedback-real-form.is-visible,
.feedback-status.is-visible {
    display: block;
}

.feedback-login-msg {
    font-size: 14px;
    color: var(--grey-500);
    padding: 20px;
    background: var(--grey-50);
    border-radius: 8px;
    border: 1px solid var(--grey-200);
}

.feedback-login-link {
    color: #6891b3;
    font-weight: 600;
}

.feedback-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 12px;
    outline: none;
}

.feedback-textarea:focus {
    border-color: #6891b3;
}

.feedback-submit {
    background: white;
    color: var(--grey-900);
    border: 1px solid var(--grey-900);
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: 0.2s;
}

.feedback-submit:hover {
    border-color: #6891b3;
}

.feedback-status {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--black);
    padding: 12px 14px;
    background: #f4f0e4;
    border: 1px solid #c8b27a;
    border-radius: 8px;
}

.feedback-status--success {
    color: var(--black);
    background: #f4f0e4;
    border-color: #c8b27a;
}

.feedback-status--error {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fecaca;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .topbar {
        padding: 0 16px;
    }

    .topbar-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .topbar-brand .divider { display: none; }

    .topbar-brand span {
        font-size: 10px;
    }

    .menu-dropdown { right: 16px; }

    .hero h1 { font-size: 32px; }
    .hero-sub, .hero-free-note { font-size: 13px; }
    .hero-btn-scout, .hero-btn-counsel { font-size: 13px; }
    .hero-btn-cta { font-size: 13px; padding: 4px 14px; }
    .mobile-br { display: inline; }
    .hero { padding: 60px 24px; }
    .hero-buttons { margin-left: 24px; }

    .section, .section-intro, .agent-block {
        padding-left: 24px;
        padding-right: 24px;
    }

    .section-intro h2 { font-size: 28px; }
    .agent-title span { font-size: 26px; }
    .agent-title { flex-wrap: wrap; gap: 0 12px; }

    .footer {
        padding: 24px;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .topbar-brand span { display: none; }
    .hero h1 { font-size: 28px; }
}
