/* ── Base ───────────────────────────────────────────────────────────────────── */
body { font-family: 'Inter', sans-serif; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.glass-nav { backdrop-filter: blur(12px); background-color: rgba(247, 245, 248, 0.8); }
.site-home-ordered-sections > section { margin-bottom: 0 !important; }
html { scroll-behavior: smooth; }

/* scroll-margin-top is set via --scroll-mt CSS variable injected inline by PHP */
section[id], footer[id] { scroll-margin-top: var(--scroll-mt, 80px); }

/* ── Logos carousel ─────────────────────────────────────────────────────────── */
.logos-carousel-outer    { position: relative; display: flex; align-items: center; gap: .5rem; }
.logos-carousel-viewport { overflow: hidden; flex: 1; min-width: 0; }
.logos-carousel-track    { display: flex; align-items: center; will-change: transform; }
.logos-carousel-item     { flex-shrink: 0; display: flex; justify-content: center; align-items: center; padding: 0 2rem; box-sizing: border-box; }
.logos-carousel-btn      { flex-shrink: 0; background: none; border: 1px solid #e2e8f0; border-radius: 50%; width: 2.25rem; height: 2.25rem; cursor: pointer; font-size: 1.3rem; line-height: 1; color: #94a3b8; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, border-color .2s; user-select: none; }
.logos-carousel-btn:hover { background: #f1f5f9; color: #1e293b; border-color: #cbd5e1; }

/* ── Security carousel ──────────────────────────────────────────────────────── */
.security-carousel-outer    { position: relative; display: flex; align-items: center; gap: 1rem; }
.security-carousel-viewport { overflow: hidden; flex: 1; min-width: 0; }
.security-carousel-track    { display: flex; align-items: stretch; will-change: transform; }
.security-carousel-item     { flex: 0 0 100%; box-sizing: border-box; padding-right: 1rem; }
.security-carousel-btn      { flex-shrink: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; width: 2.75rem; height: 2.75rem; cursor: pointer; font-size: 1.3rem; line-height: 1; color: #cbd5e1; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, border-color .2s; user-select: none; }
.security-carousel-btn:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.24); }

/* ── Footer grid ────────────────────────────────────────────────────────────── */
.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.25fr) repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    align-items: start;
}
.site-footer-brand { min-width: 0; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .site-footer-grid           { grid-template-columns: 1fr; gap: 2rem; }
    .hero-mockup-topbar         { padding: .75rem; gap: .5rem; justify-content: flex-start; }
    .hero-mockup-url-wrap       { min-width: 0; flex: 1 1 auto; }
    .hero-mockup-url            { padding-left: .75rem; padding-right: .75rem; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hero-mockup-spacer         { display: none; }
    .hero-mockup-body           { padding: 1rem; gap: 1rem; }
    .hero-mockup-content        { min-width: 0; row-gap: 1rem; }
    .hero-mockup-metrics        { grid-template-columns: 1fr; gap: .75rem; }
    .hero-mockup-chart          { height: 13rem; padding: .75rem; justify-content: space-between; gap: .25rem; }
    .hero-mockup-chart .hero-mockup-bar { width: 1.75rem; }
}

/* ── Draft mode ─────────────────────────────────────────────────────────────── */
/* NOTE: these rules only apply when #site-draft-bar exists in the DOM,
   so they are safe to ship always — no layout impact on non-draft pages. */
#site-draft-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    height: 36px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
#site-draft-bar .site-draft-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.85;
    animation: site-draft-blink 1.2s ease-in-out infinite;
    flex-shrink: 0;
}
#site-draft-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.2);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 10px;
    text-decoration: none;
    transition: background 0.15s;
    flex-shrink: 0;
}
#site-draft-back-btn:hover { background: rgba(0,0,0,0.35); color: #fff; }
.site-draft-status {
    background: rgba(0,0,0,0.22);
    border-radius: 6px;
    padding: 1px 9px;
    font-size: 11px;
    transition: opacity 0.4s;
}
@keyframes site-draft-blink {
    0%, 100% { opacity: 0.85; }
    50%       { opacity: 0.3; }
}
/* Push the fixed navbar below the draft bar */
body:has(#site-draft-bar) > nav { top: 36px !important; }
/* Keep draft mode aligned with normal hero spacing */
body:has(#site-draft-bar) { padding-top: 64px !important; }
[data-edit-section] {
    cursor: pointer;
    transition: outline 0.1s;
}
[data-edit-section]:hover {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
    border-radius: 4px;
}
.site-draft-section-focus {
    outline: 3px solid #f59e0b !important;
    outline-offset: 6px;
    border-radius: 12px;
    transition: outline 0.2s ease;
}
