@import url('components/_variables.css');
@import url('components/_base.css');
@import url('components/_glassmorphism.css');
@import url('components/_buttons.css');
@import url('components/_forms.css');
@import url('components/_navigation.css');
@import url('components/_animations.css');
@import url('components/_liquid-glass.css');
@import url('components/_clear-theme.css');

.site-body main {
    position: relative;
    z-index: 1;
}

.hero,
.hero-section {
    position: relative;
    padding-top: calc(var(--nav-height) + var(--space-4xl));
    padding-bottom: var(--space-4xl);
}

.hero.hero-compact {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-3xl));
    padding-bottom: var(--space-2xl);
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}

.hero-copy {
    max-width: 44rem;
}

.hero-kicker,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-kicker::before,
.section-label::before {
    content: '';
    width: 38px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold-soft), rgba(255, 255, 255, 0.45));
}

.hero-title {
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-title strong {
    color: var(--text-accent);
    font-weight: 600;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #fff2d2 42%, #F2D0A0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 32px rgba(255, 255, 255, 0.08);
}

.hero-subtitle {
    max-width: 42rem;
    margin-bottom: 1.65rem;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.hero-note span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-note .material-symbols-outlined {
    font-size: 1rem;
    color: var(--accent-strong);
}

.hero-visual {
    position: relative;
    isolation: isolate;
}

.hero-visual-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: clamp(1.2rem, 2vw, 1.6rem);
}

.hero-visual-card::after {
    content: '';
    position: absolute;
    inset: auto -10% -25% auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 222, 176, 0.24), rgba(196, 132, 47, 0.12) 42%, transparent 72%);
    filter: blur(10px);
}

.preview-shell {
    position: relative;
    overflow: hidden;
}

.preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: 1rem;
}

.preview-dots {
    display: inline-flex;
    gap: 0.45rem;
}

.preview-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.preview-dots span:first-child { background: rgba(255, 112, 125, 0.85); }
.preview-dots span:nth-child(2) { background: rgba(255, 191, 105, 0.9); }
.preview-dots span:nth-child(3) { background: rgba(50, 216, 143, 0.92); }

.preview-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.preview-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.preview-kpi {
    padding: 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-kpi strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.preview-kpi span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.preview-matrix {
    display: grid;
    gap: 0.8rem;
}

.preview-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(215, 178, 110, 0.12));
    color: var(--text-gold);
    flex-shrink: 0;
}

.preview-row strong {
    display: block;
    font-size: 0.9rem;
}

.preview-row small {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.trust-chip {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    min-height: 100%;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(215, 178, 110, 0.03));
    transition:
        border-color var(--transition-base),
        background-color var(--transition-base),
        transform var(--transition-base);
}

.trust-chip:hover {
    border-color: rgba(243, 222, 176, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(215, 178, 110, 0.05));
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.trust-chip .material-symbols-outlined {
    font-size: 1.15rem;
    color: var(--text-gold);
}

.trust-chip strong {
    display: block;
    font-size: 0.84rem;
    margin-bottom: 0.2rem;
}

.trust-chip span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ─── Nos Atouts ───────────────────────────────────────────────────────────── */
.section--atouts {
    padding: var(--space-4xl) 0 var(--space-5xl);
}

.atouts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
    margin-top: clamp(2rem, 3.5vw, 3rem);
}

.atout-card {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: clamp(1.9rem, 2.8vw, 2.5rem);
    border-radius: var(--radius-lg);
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.atout-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(196, 132, 47, 0.12);
}

.atout-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(196, 132, 47, 0.18), rgba(215, 178, 110, 0.10));
    color: var(--accent-strong);
    flex-shrink: 0;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.atout-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--text-primary);
}

.atout-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 1100px) {
    .atouts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1rem, 2vw, 1.75rem);
    }
}

@media (max-width: 580px) {
    .atouts-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
    .atout-card {
        padding: 1.65rem;
    }
}

/* ─── Benefits Grid ───────────────────────────────────────────────────────── */
.section--benefits {
    padding: var(--space-5xl) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
    margin-top: clamp(2rem, 3.5vw, 3rem);
}

.benefit-card {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: clamp(1.9rem, 2.8vw, 2.5rem);
    border-radius: var(--radius-lg);
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(196, 132, 47, 0.12);
}

.benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(196, 132, 47, 0.18), rgba(215, 178, 110, 0.10));
    color: var(--accent-strong);
    flex-shrink: 0;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--text-primary);
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 1100px) {
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1rem, 2vw, 1.75rem);
    }
}

@media (max-width: 580px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
    .benefit-card {
        padding: 1.65rem;
    }
}

/* ─── Dashboard Section ──────────────────────────────────────────────────── */
.section--dashboard {
    padding: var(--space-5xl) 0;
}

.dashboard-preview {
    width: 100%;
}

/* ─── Pricing on Homepage ────────────────────────────────────────────────── */
.section--pricing {
    padding: var(--space-5xl) 0;
}

.section {
    position: relative;
    padding: var(--space-5xl) 0;
}

.section--dense {
    padding: var(--space-3xl) 0;
}

.section-header {
    display: grid;
    gap: 0.9rem;
    margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.section-title {
    max-width: 36ch;
    font-family: var(--font-display);
}

.section-subtitle {
    max-width: 46rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-eyebrow::before {
    content: '';
    width: 30px;
    height: 1px;
    background: currentColor;
}

.feature-grid,
.process-grid,
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
}

.feature-card,
.process-card,
.proof-card,
.metric-card,
.contact-info-card,
.faq-item,
.stat-card {
    position: relative;
    height: 100%;
}

.feature-card .material-symbols-outlined,
.process-card .material-symbols-outlined,
.proof-card .material-symbols-outlined {
    color: var(--accent-strong);
}

.feature-icon,
.process-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 132, 47, 0.12);
}

.feature-card h3,
.process-card h3,
.proof-card h3,
.metric-card h3 {
    margin-bottom: 0.65rem;
    font-size: 1.2rem;
}

.feature-card p,
.process-card p,
.proof-card p,
.metric-card p {
    font-size: 0.97rem;
    color: var(--text-secondary);
}

.story-grid,
.contact-grid,
.faq-layout,
.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.story-panel,
.story-stack {
    display: grid;
    gap: var(--space-lg);
}

.story-card,
.surface-list,
.comparison-card {
    padding: 1.65rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color var(--transition-base), background-color var(--transition-base);
}

.story-card:hover,
.comparison-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
}

.surface-list {
    display: grid;
    gap: 0.95rem;
}

.surface-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.surface-list-item .material-symbols-outlined {
    margin-top: 0.15rem;
    color: var(--accent-strong);
    font-size: 1.1rem;
}

.surface-list-item strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.94rem;
}

.surface-list-item span {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.5rem;
}

.metric-value,
.stat-value {
    font-size: clamp(1.85rem, 3vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.metric-label,
.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.metric-copy {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    max-width: 1080px;
    margin: 0 auto;
}

.pricing-grid-single {
    grid-template-columns: 1fr;
    max-width: 480px;
}

.pricing-risk-inline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: var(--space-xl) auto 0;
    text-align: left;
    line-height: 1.45;
    opacity: 0.7;
}

.pricing-risk-inline .material-symbols-outlined {
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.08rem;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    min-height: 100%;
    overflow: hidden;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card-featured:hover {
    box-shadow: var(--shadow-glow-strong), var(--shadow-md);
}

.pricing-card-featured {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow), var(--shadow-sm);
}

.pricing-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
}

.pricing-label {
    display: grid;
    gap: 0.4rem;
}

.pricing-label p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.pricing-amount {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
}

.pricing-currency {
    padding-bottom: 0.45rem;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.pricing-value {
    font-size: clamp(3rem, 8vw, 4.4rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-weight: 500;
}

.pricing-cents {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 600;
    align-self: flex-start;
    margin-top: 0.15rem;
    letter-spacing: -0.02em;
    color: var(--text-muted);
}

.pricing-period {
    padding-bottom: 0.45rem;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pricing-description {
    color: var(--text-secondary);
    font-size: 0.97rem;
}

.pricing-features {
    display: grid;
    gap: 0.8rem;
    list-style: none;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.pricing-features .material-symbols-outlined {
    font-size: 1rem;
    color: var(--success);
    margin-top: 0.18rem;
}

.pricing-footer {
    display: grid;
    gap: 0.8rem;
    margin-top: auto;
}

.pricing-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
}

/* ─── Pricing page layout (text left, card right) ─── */
.hero--pricing {
    padding-bottom: var(--space-3xl);
}

.hero--pricing .story-grid {
    align-items: start;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.pricing-cards-col {
    display: grid;
    gap: 1.25rem;
}

.pricing-cards-col .pricing-card {
    min-height: auto;
    gap: 1.1rem;
}

.hero--pricing .pricing-risk-inline {
    margin-top: var(--space-4xl);
    max-width: 640px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-top: var(--space-2xl);
}

.comparison-list {
    display: grid;
    gap: 0.9rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.6fr));
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.comparison-row:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.1);
}

.comparison-row strong {
    font-size: 0.9rem;
}

.comparison-row span {
    justify-self: center;
    font-size: 0.82rem;
}

.faq-shell {
    display: grid;
    gap: 1rem;
}

.faq-item {
    overflow: hidden;
    border-radius: 20px;
    transition: border-color var(--transition-base);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1.5rem;
    list-style: none;
    cursor: pointer;
}

.faq-question span:first-child {
    color: var(--text-primary);
    font-size: 0.97rem;
    font-weight: 500;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    color: var(--accent-strong);
    transition: transform var(--transition-base);
}

details[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.3rem;
    animation: faqReveal 280ms ease;
}

@keyframes faqReveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
    color: var(--text-secondary);
}

.contact-grid {
    align-items: stretch;
}

.contact-card,
.contact-info-card {
    display: grid;
    gap: 1rem;
}

.contact-info-card .surface-list {
    gap: 1rem;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--space-3xl) + 1rem) 1rem var(--space-3xl);
}

.auth-card {
    width: min(100%, 1060px);
}

.auth-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.auth-brand-panel {
    padding: clamp(1.4rem, 3vw, 2.4rem);
}

.auth-brand-panel h2 {
    margin: 0.8rem 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 0.94;
}

.auth-brand-panel p {
    max-width: 32rem;
}

.auth-proof-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.auth-proof-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.auth-proof-item .material-symbols-outlined {
    color: var(--accent-strong);
}

.auth-panel {
    padding: clamp(1.3rem, 3vw, 2rem);
}

.auth-logo {
    margin-bottom: 1rem;
    text-align: left;
}

.auth-logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.auth-intro {
    margin-bottom: 1rem;
}

.auth-title {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 5vw, 3.8rem);
    line-height: 0.94;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 26px rgba(255, 255, 255, 0.06);
}

.auth-subtitle {
    max-width: 34ch;
    font-size: 0.97rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.2rem 0;
    color: var(--text-muted);
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.oauth-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.oauth-buttons .btn {
    justify-content: center;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.auth-link-inline {
    font-size: 0.78rem;
    color: var(--accent-strong);
}

.auth-switch {
    margin-top: 1rem;
    font-size: 0.94rem;
}

.auth-footer {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.auth-legal-note {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.step-number {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.85rem;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-accent);
}

.footer {
    position: relative;
    margin-top: var(--space-4xl);
    padding: var(--space-3xl) 0 calc(var(--space-xl) + var(--safe-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
    gap: clamp(1.25rem, 4vw, 2.5rem);
    padding-bottom: var(--space-2xl);
}

.footer-brand {
    display: grid;
    gap: 1rem;
    max-width: 32rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 0.94rem;
    color: var(--text-secondary);
}

.footer-title {
    margin-bottom: 0.8rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.90rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    gap: 1.25rem;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-meta {
    display: grid;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 0.65rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.footer-socials a:hover {
    color: var(--text-primary);
    border-color: var(--border-accent);
    background: rgba(196, 132, 47, 0.08);
}

.footer-risk {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
}

.data-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.data-table th {
    padding: 0.9rem 1rem;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.9rem;
    vertical-align: top;
}

.data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.inline-form {
    margin: 0;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.table-secondary {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.table-mono {
    font-family: var(--font-mono);
}

.table-truncate {
    display: inline-block;
    max-width: min(280px, 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-card {
    display: grid;
    gap: 1.35rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(215, 178, 110, 0.02));
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

@media (max-width: 768px) {
    .panel-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    .panel-header .hero-actions {
        width: 100%;
    }
    .panel-header .hero-actions .btn {
        width: 100%;
    }
}

.panel-header h3 {
    margin-bottom: 0.3rem;
    font-size: 1.15rem;
}

/* ─── CTA block (landing page bottom section) ─────────────────────────────── */
.cta-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: clamp(2rem, 4vw, 3rem);
}

.cta-block-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    max-width: 36rem;
}

.cta-block-sub {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 44rem;
    line-height: 1.65;
}

.cta-block-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .cta-block-actions {
        flex-direction: column;
        width: 100%;
    }
    .cta-block-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.panel-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.empty-state {
    display: grid;
    justify-items: start;
    gap: 0.75rem;
    padding: 2rem 1.75rem;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.empty-state.centered {
    justify-items: center;
    text-align: center;
}

.empty-state .material-symbols-outlined {
    font-size: 2.2rem;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.pagination a,
.pagination span {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text-primary);
}

.pagination .active {
    background: rgba(196, 132, 47, 0.14);
    color: var(--text-primary);
    border-color: rgba(196, 132, 47, 0.2);
}

.legal-wrapper {
    padding: calc(var(--nav-height) + var(--space-3xl)) 1rem var(--space-4xl);
}

.legal-shell {
    width: min(100%, 980px);
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.legal-header {
    display: grid;
    gap: 0.9rem;
}

.legal-header h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 0.96;
}

.legal-meta {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.legal-summary {
    display: grid;
    gap: 0.9rem;
}

.legal-callout {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 191, 105, 0.18);
    background: rgba(255, 191, 105, 0.08);
    color: var(--text-secondary);
}

.legal-content {
    display: grid;
    gap: 1.4rem;
}

.legal-article {
    display: grid;
    gap: 0.8rem;
}

.legal-article h2 {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.legal-article h3 {
    font-size: 1rem;
}

.legal-content ul,
.legal-content ol {
    display: grid;
    gap: 0.55rem;
    padding-left: 1.15rem;
}

.legal-content li {
    color: var(--text-secondary);
}

.legal-definition {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-locale-note {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.error-shell {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-copy {
    display: grid;
    justify-items: center;
    gap: 1rem;
}

.error-code {
    font-size: clamp(4.6rem, 12vw, 7rem);
    line-height: 0.9;
    font-weight: 700;
    color: var(--accent-strong);
}

.flash-container {
    position: fixed;
    top: calc(var(--nav-height) + 1rem);
    right: 1rem;
    z-index: 140;
    width: min(340px, calc(100vw - 2rem));
    display: grid;
    gap: 0.75rem;
}

.flash {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-md);
}

.flash-success { border-color: rgba(50, 216, 143, 0.22); }
.flash-error { border-color: rgba(255, 112, 125, 0.22); }
.flash-warning { border-color: rgba(255, 191, 105, 0.22); }
.flash-info { border-color: rgba(108, 201, 255, 0.22); }

.flash-icon {
    font-size: 1.15rem;
    margin-top: 0.1rem;
}

.flash-success .flash-icon { color: var(--success); }
.flash-error .flash-icon { color: var(--danger); }
.flash-warning .flash-icon { color: var(--warning); }
.flash-info .flash-icon { color: var(--info); }

.flash-text {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.4;
}

.flash-close {
    border: 0;
    background: none;
    color: var(--text-muted);
    padding: 0;
}

.flash-close .material-symbols-outlined {
    font-size: 1rem;
}

/* ─── Blog ──────────────────────────────────────────── */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    color: inherit;
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 132, 47, 0.06);
    color: var(--accent-muted);
    font-size: 2rem;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    flex: 1;
}

.blog-card-body h2 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0;
}

.blog-card-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.blog-card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.76rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.blog-card-link {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
}

/* Blog article */
.blog-article {
    padding-top: calc(var(--nav-height) + var(--space-4xl));
    padding-bottom: var(--space-4xl);
}

.blog-container {
    max-width: 720px;
    margin: 0 auto;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.blog-breadcrumb a {
    color: var(--text-secondary);
}

.blog-header {
    margin-bottom: var(--space-xl);
}

.blog-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
    margin: 0.75rem 0 0;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-post-excerpt {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-cover {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.blog-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-content h2 {
    font-size: 1.4rem;
    margin: 2.5rem 0 0.75rem;
    color: var(--text-primary);
}

.blog-content h3 {
    font-size: 1.15rem;
    margin: 2rem 0 0.5rem;
    color: var(--text-primary);
}

.blog-content p {
    margin-bottom: 1.25rem;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.4rem;
}

.blog-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.blog-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

.blog-content pre {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.88rem;
    margin: 1.5rem 0;
}

.blog-content code {
    font-family: var(--font-mono);
    font-size: 0.88em;
}

.blog-content a {
    color: var(--accent);
    text-decoration: underline;
}

.blog-footer {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

/* Blog language toggle */
.blog-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.blog-lang-current {
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: var(--accent);
    color: var(--bg);
}

.blog-lang-link {
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.blog-lang-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Clear mode blog overrides */
[data-theme="clear"] .blog-card-placeholder {
    background: rgba(196, 132, 47, 0.04);
}

[data-theme="clear"] .blog-content pre {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--border-medium);
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-card-img {
        height: 180px;
    }
}

.cookie-root {
    position: relative;
}

.cookie-backdrop {
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(4, 4, 8, 0.56);
    backdrop-filter: blur(4px);
}

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + var(--safe-bottom));
    width: min(520px, calc(100vw - 2rem));
    display: grid;
    gap: 1rem;
    z-index: 132;
}

.cookie-banner-copy {
    display: grid;
    gap: 0.7rem;
}

.cookie-banner-copy h3,
.cookie-panel-head h3 {
    margin-bottom: 0;
    font-family: var(--font-ui);
    font-size: 1.25rem;
}

.cookie-banner-copy p,
.cookie-panel-text {
    font-size: 0.9rem;
}

.cookie-policy-link {
    font-size: 0.82rem;
    color: var(--text-accent);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-panel {
    position: fixed;
    inset: 50% auto auto 50%;
    width: min(720px, calc(100vw - 2rem));
    max-height: min(80vh, 760px);
    transform: translate(-50%, -50%);
    overflow: auto;
    z-index: 133;
    display: grid;
    gap: 1rem;
}

.cookie-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-preferences {
    display: grid;
    gap: 0.85rem;
}

.cookie-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-pref strong {
    display: block;
    font-size: 0.94rem;
}

.cookie-pref small {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.cookie-switch.is-locked {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cookie-actions-panel {
    justify-content: flex-end;
}

@media (max-width: 1180px) {
    .hero-shell,
    .story-grid,
    .contact-grid,
    .faq-layout,
    .auth-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: none;
    }

    .trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hero,
    .hero-section {
        padding-top: calc(var(--nav-height) + var(--space-3xl));
        padding-bottom: var(--space-3xl);
    }

    .hero.hero-compact {
        padding-top: calc(var(--nav-height) + var(--space-2xl));
        padding-bottom: var(--space-xl);
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-actions,
    .cookie-actions,
    .footer-socials {
        width: 100%;
    }

    .hero-actions .btn,
    .cookie-actions .btn {
        width: 100%;
    }

    .preview-kpis,
    .feature-grid,
    .process-grid,
    .stats-row,
    .trust-strip,
    .pricing-grid,
    .footer-top,
    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .auth-wrapper {
        padding-top: calc(var(--space-2xl) + 1rem);
        padding-bottom: var(--space-2xl);
    }

    .oauth-buttons {
        grid-template-columns: 1fr;
    }

    .cookie-panel {
        inset: auto 1rem calc(1rem + var(--safe-bottom)) 1rem;
        transform: none;
        width: auto;
        max-height: min(76vh, 720px);
    }
}

@media (max-width: 480px) {
    .flash-container {
        right: 0.75rem;
        left: auto;
        width: min(300px, calc(100vw - 1.5rem));
        top: calc(var(--nav-height) + 0.75rem);
    }

    .cookie-banner {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        bottom: calc(0.75rem + var(--safe-bottom));
    }

    .faq-question,
    .faq-answer,
    .cookie-pref {
        padding-inline: 1rem;
    }

    .cookie-banner-copy h3 {
        font-size: 1.05rem;
    }

    .cookie-actions {
        gap: 0.5rem;
    }

    .cookie-actions .btn {
        font-size: 0.72rem;
        padding: 0.65rem 0.9rem;
        min-height: 44px;
    }

    .cookie-panel {
        inset: auto 0.75rem calc(0.75rem + var(--safe-bottom)) 0.75rem;
        max-height: min(82vh, 680px);
    }
}

/* ─── RTL Support (Arabic) ────────────────────────────── */
html[dir="rtl"] { direction: rtl; text-align: right; }
html[dir="rtl"] .nav-links { direction: ltr; }
html[dir="rtl"] .hero-content { text-align: right; }
html[dir="rtl"] .footer-grid { direction: rtl; }
html[dir="rtl"] .process-steps { direction: rtl; }
html[dir="rtl"] .atouts-grid { direction: rtl; }
html[dir="rtl"] .features-grid { direction: rtl; }
html[dir="rtl"] .faq-item summary::after { left: 0; right: auto; }
html[dir="rtl"] .auth-form { text-align: right; }
html[dir="rtl"] .form-group label { text-align: right; }
html[dir="rtl"] .lang-dropdown { left: 0; right: auto; }
html[dir="rtl"] .sidebar-link:hover { transform: translateX(-3px); }

/* ─── Additional Responsive Fixes ─────────────────────── */

/* Prevent horizontal overflow globally */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Safe area padding for modern iPhones */
:root { --safe-bottom: env(safe-area-inset-bottom, 0px); --safe-top: env(safe-area-inset-top, 0px); }

/* Language dropdown - handle 15 languages */
.lang-dropdown { max-height: min(70vh, 400px); overflow-y: auto; min-width: 140px; }
.lang-dropdown a { white-space: nowrap; padding: 0.5rem 1rem; }

/* Fix tables on small screens */
.data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Min touch target 44px */
.btn, button, a.btn, .nav-link, .lang-selector-btn { min-height: 44px; }

/* 320px ultra-small screen fixes */
@media (max-width: 360px) {
    .hero-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
    .hero-subtitle { font-size: 0.95rem; }
    .section-title { font-size: 1.5rem; }
    .pricing-card { padding: 1.4rem; }
    .nav-brand { font-size: 1.1rem; }
    .topbar-title { max-width: 8rem; font-size: 0.85rem; }
}

/* Fix potential text overflow in CJK languages */
html[lang="ja"] .hero-title,
html[lang="ko"] .hero-title,
html[lang="zh"] .hero-title,
html[lang="zh_TW"] .hero-title { word-break: keep-all; }

/* RTL dashboard layout (Arabic, Hebrew) */
html[dir="rtl"] .sidebar { right: 0; left: auto; border-right: none; border-left: 1px solid rgba(255, 255, 255, 0.07); }
html[dir="rtl"] .topbar { left: 0; right: var(--sidebar-width); }
html[dir="rtl"] .dashboard-content { margin-left: 0; margin-right: var(--sidebar-width); }
@media (max-width: 1024px) {
    html[dir="rtl"] .sidebar { transform: translateX(100%); }
    html[dir="rtl"] .sidebar.open { transform: translateX(0); }
    html[dir="rtl"] .topbar, html[dir="rtl"] .dashboard-content { right: 0; margin-right: 0; }
}

/* Pricing terms checkbox spacing */
.pricing-terms{margin:12px 0 4px;display:flex;align-items:flex-start;gap:8px}
.pricing-terms .form-check-label{font-size:.78rem;line-height:1.45;color:var(--text-secondary,#A0A0A8)}
.pricing-terms .form-check-label a{color:#C4842F;text-decoration:underline}


/* ── Site Banner ─────────────────────────────── */
:root { --banner-height: 34px; }

.site-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--banner-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3rem;
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .01em;
    text-align: center;
    z-index: 110;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(8, 8, 10, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Quand le banner est présent → décaler la nav vers le bas */
body:has(.site-banner) .nav-public {
    top: var(--banner-height);
}

/* Ajuster le padding-top du hero/contenu pour compenser banner + nav */
body:has(.site-banner) .hero,
body:has(.site-banner) .hero.hero-compact {
    padding-top: calc(var(--nav-height) + var(--banner-height) + var(--space-4xl));
}
body:has(.site-banner) .hero.hero-compact {
    padding-top: calc(var(--nav-height) + var(--banner-height) + var(--space-3xl));
}
body:has(.site-banner) .legal-wrapper,
body:has(.site-banner) .auth-wrapper {
    padding-top: calc(var(--nav-height) + var(--banner-height) + var(--space-3xl) + 1rem);
}
body:has(.site-banner) .blog-article {
    padding-top: calc(var(--nav-height) + var(--banner-height) + var(--space-4xl));
}

.site-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
}
.site-banner-link {
    font-weight: 600;
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.site-banner-link:hover { color: var(--accent-gold-soft); }
.site-banner-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-muted);
    opacity: .6;
    line-height: 1;
    padding: 0 .25rem;
    min-height: auto;
}
.site-banner-close:hover { opacity: 1; color: var(--text-primary); }

/* Type variants */
.site-banner-info { border-bottom-color: rgba(108, 184, 230, 0.15); }
.site-banner-info .site-banner-content { color: var(--text-secondary); }

.site-banner-promo {
    border-bottom-color: var(--border-accent);
    background: linear-gradient(90deg, rgba(196,132,47,.09), rgba(8,8,10,.90) 55%, rgba(196,132,47,.09));
}
.site-banner-promo .site-banner-content { color: var(--text-accent); }
.site-banner-promo .site-banner-link { color: var(--accent-gold-soft); }

.site-banner-warning { border-bottom-color: rgba(255, 184, 85, .18); }
.site-banner-warning .site-banner-content { color: rgba(255, 184, 85, .88); }
.site-banner-warning .site-banner-link { color: var(--warning); }

.site-banner-success { border-bottom-color: rgba(50, 216, 143, .14); }
.site-banner-success .site-banner-content { color: rgba(50, 216, 143, .82); }
.site-banner-success .site-banner-link { color: var(--success); }
