/* ============================================================
   FileGru — Public site polish (Phase 1)
   Loaded only on public pages, after application.css. Uses the
   design tokens from colors.css / foundation.css.
   ============================================================ */

/* ---------- Navbar: glass, readable over hero + light sections ---------- */
.header .nav-bar {
    background: #232464;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    /* thickness lives in foundation.css GLOBAL CHROME */
    transition: background .25s ease;
}
.header .nav-bar .nav-bar-link {
    font-weight: 500;
    opacity: .9;
    transition: opacity .15s ease, color .15s ease;
}
.header .nav-bar .nav-bar-link:hover { opacity: 1; color: #fff; }
.header .nav-bar .btn { border-radius: 999px; font-weight: 600; padding: .5rem 1.15rem; }
/* Header CTAs must stay high-contrast on the navy bar. The theme's btn-white /
   btn-outline-white otherwise render indigo (invisible on #232464): Sign In had
   indigo text/border, Sign Up an indigo fill. Force a white solid + white outline. */
.header .nav-bar .nav-bar-links .nav-bar-link.btn.btn-white {
    background: #fff !important;
    border-color: #fff !important;
    color: #1e2233 !important;
    opacity: 1;
}
.header .nav-bar .nav-bar-links .nav-bar-link.btn.btn-white:hover { background: rgba(255, 255, 255, .88) !important; color: #1e2233 !important; }
.header .nav-bar .nav-bar-links .nav-bar-link.btn.btn-outline-white {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, .75) !important;
    color: #fff !important;
    opacity: 1;
}
.header .nav-bar .nav-bar-links .nav-bar-link.btn.btn-outline-white:hover { background: rgba(255, 255, 255, .14) !important; color: #fff !important; }

/* ---------- Consistent indigo header on ALL public pages ----------
   Home has the .page-slider indigo hero; the interior pages (features /
   pricing / contact / legal) used a transparent header over a light body,
   and the theme's JS flips .nav-bar.active to a WHITE bar on scroll. Give
   those pages the same indigo band and keep the nav blue in every state so
   it never "bays out" to white. */
/* Interior header + nav = one solid dark-indigo (#232464 ≈ the home glass-nav
   shade), identical in every state (top and scrolled), so the bar never
   "bays out" to white and there's no two-tone strip. Home is untouched (it
   keeps its glass nav over the bright indigo hero).
   The <header> is only a spacer for the fixed <nav>; pin BOTH to the same
   height so there's no leftover strip below the bar (it read as a doubled,
   nested header). */
body.only-nav .header {
    background-color: #232464;
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 !important;
}
body.only-nav .nav-bar { height: 54px !important; }
.header.v2 .nav-bar,
.header.v3 .nav-bar,
.header.v2 .nav-bar.active,
.header.v3 .nav-bar.active,
.header .nav-bar.active,
.nav-bar.active {
    background: #232464 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .12) !important;
}
/* Home glass-nav (page-slider) also stays indigo when scrolled — never white */
body.home-upload .nav-bar.active .nav-bar-menu .nav-bar-links .nav-bar-link:not(.btn),
body.home-upload .nav-bar.active .nav-bar-link:not(.btn) { color: #fff !important; }
/* Top-bar controls stay white on the indigo header (were dark on interior) */
.only-nav .header .nav-bar .user-menu,
.only-nav .header .nav-bar .user-name,
.only-nav .header .nav-bar .language button,
.only-nav .header .nav-bar .language button span,
.only-nav .header .nav-bar .language button i,
.only-nav .header .nav-bar .nav-bar-menu-icon i { color: #fff !important; }
/* Desktop nav links white in every state (mobile drawer keeps its dark text) */
@media (min-width: 992px) {
    .header .nav-bar .nav-bar-menu .nav-bar-links .nav-bar-link:not(.btn),
    .header .nav-bar.active .nav-bar-menu .nav-bar-links .nav-bar-link:not(.btn) { color: #fff !important; }
    .header .nav-bar .nav-bar-menu .nav-bar-links .nav-bar-link:not(.btn):hover { color: #fff !important; opacity: .7; }
}

/* ---------- Home is upload-only: hero fills viewport down to footer,
   card centered, no empty gap, no page scroll ---------- */
body.home-upload { min-height: 100dvh; display: flex; flex-direction: column; }
body.home-upload .page-slider { flex: 1 1 auto; display: flex; flex-direction: column; }
body.home-upload .page-slider .header {
    height: auto !important;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
body.home-upload .page-slider .header .header-content {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.header .header-content .h2,
.header .header-content h1 {
    font-size: clamp(2.1rem, 5.2vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.08;
    text-wrap: balance;
}
.header .header-content .lead {
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.65;
    opacity: .92;
}
.header .header-content-img .icon {
    width: 84px;
    height: 84px;
    color: #fff;
    filter: drop-shadow(0 8px 24px rgba(35, 36, 100, .42));
}
.header .header-content .btn-lg {
    border-radius: 999px;
    padding: .85rem 2.4rem;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(35, 36, 100, .32);
}
.header .header-content .btn-lg:hover { transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section-content { padding-top: 96px; padding-bottom: 104px; }
.section-content.bg { background: var(--surface-2); }
.section-content-header { margin-bottom: 52px; }
.section-content-title {
    font-size: clamp(1.7rem, 3.2vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -.02em;
}
.section-content-title::before {
    background-color: var(--primaryColor) !important;
    height: 3px !important;
    border-radius: 999px;
}
.section-content-header .text-muted { font-size: 1.02rem; line-height: 1.7; }

/* ---------- Feature cards ---------- */
.feat-card {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 30px 26px;
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}
.feature .feature-img {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r);
    background: var(--primary-soft);
    margin-bottom: 20px;
}
.feature .feature-img img { max-width: 38px; max-height: 38px; }
.feature-title { font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.feature-text { line-height: 1.65; }

/* ---------- Pricing interval toggle ---------- */
.plans-nav, .pricing-toggle, .nav-pills {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    /* thickness lives in foundation.css GLOBAL CHROME */
}
.footer .footer-link a { color: var(--text-muted); transition: color .15s ease; }
.footer .footer-link a:hover { color: var(--primaryColor); }

/* ---------- Empty section states (graceful when no data) ---------- */
.section-content .row:empty { display: none; }

/* ---------- Home inline upload box (framed dropzone, not an overlay) ---------- */
.uploadbox.uploadbox-inline {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    z-index: auto;
    visibility: visible;
    opacity: 1;
    display: block;
}
.uploadbox-inline .overlay,
.uploadbox-inline .uploadbox-header { display: none !important; }
.uploadbox-inline .uploadbox-content {
    position: relative;
    transform: none !important;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    max-height: none;
    overflow: hidden;
}
.uploadbox-inline .uploadbox-body { padding: 14px; }
.uploadbox-inline .uploadbox-body-header { margin-bottom: 8px; }
.uploadbox-inline .uploadbox-drag {
    min-height: 140px !important;
    padding: 22px 18px !important;
    border: 2px dashed var(--border-strong);
    border-radius: var(--r);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.uploadbox-inline .uploadbox-drag:hover {
    border-color: var(--primaryColor);
    background: var(--primary-soft);
}
.uploadbox-inline .uploadbox-drag .fa-cloud-upload-alt,
.uploadbox-inline .uploadbox-drag i,
.uploadbox-inline .uploadbox-drag svg { font-size: 34px !important; width: auto; max-height: 44px; color: var(--primaryColor); }
.uploadbox-inline .uploadbox-drag h3 { font-size: .95rem; font-weight: 600; color: var(--text); margin: 8px 0 2px; }
.uploadbox-inline .uploadbox-drag p { color: var(--text-muted); margin-bottom: 0; font-size: .85rem; }

/* Many files: the list scrolls inside the box; the Upload button stays visible */
.uploadbox .dropzone.dz-list {
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}
.uploadbox .dropzone.dz-list::-webkit-scrollbar { width: 6px; }
.uploadbox .dropzone.dz-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.uploadbox .dropzone.dz-list::-webkit-scrollbar-track { background: transparent; }
.uploadbox-inline .uploadbox-wrapper-form { margin-top: 12px !important; }
.uploadbox-inline .uploadbox-wrapper-form .form-label { font-size: .85rem; margin-bottom: 4px; }

/* ---------- Upload previews: compact list rows + real progress bar ---------- */
.uploadbox .dz-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.uploadbox .dz-list .dz-preview.dz-row {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: none;
    padding: 12px 16px;
    min-height: 0;
    text-align: left;
}
/* Beat the legacy card rules (4-class specificity in application.css) */
.uploadbox .dropzone .dz-preview.dz-row {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
    /* Don't let the scrolling flex column squash rows below content height */
    flex: 0 0 auto;
}
.uploadbox .dropzone .dz-preview.dz-row .dz-preview-container {
    padding: 0;
    height: auto;
    background: transparent;
    box-shadow: none;
    border: 0;
}
.uploadbox .dropzone .dz-preview.dz-row .dz-name {
    text-align: left;
    padding: 0;
    margin: 0;
}
.uploadbox .dropzone .dz-preview.dz-row .dz-row-actions .dz-edit,
.uploadbox .dropzone .dz-preview.dz-row .dz-row-actions .dz-remove {
    position: static;
    width: 28px;
    height: 28px;
    font-size: 13px;
    color: var(--text-muted);
    background: transparent;
}
.uploadbox .dropzone .dz-preview.dz-row .dz-row-actions .dz-edit:hover { background: var(--surface-2); color: var(--text); }
.uploadbox .dropzone .dz-preview.dz-row .dz-row-actions .dz-remove:hover { background: #fef2f2; color: #dc2626; }

.uploadbox .dz-row-main { display: flex; align-items: flex-start; gap: 12px; }
.uploadbox .dz-ext {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    background: var(--primary-soft);
    color: var(--primaryColor);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    overflow: hidden;
}
.uploadbox .dz-ext::after { content: attr(data-type); }
.uploadbox .dz-row-info { flex: 1 1 auto; min-width: 0; }
.uploadbox .dz-row-top { display: flex; align-items: center; gap: 10px; }
.uploadbox .dz-row .dz-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.uploadbox .dz-row-actions { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; }
.uploadbox .dz-row-actions a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    transition: background .12s ease, color .12s ease;
}
.uploadbox .dz-row-actions a:hover { background: var(--surface-2); color: var(--text); }
.uploadbox .dz-row-actions .dz-remove:hover { background: #fef2f2; color: #dc2626; }
.uploadbox .dz-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 6px;
}
.uploadbox .dz-row .dz-size { margin: 0; }
.uploadbox .dz-upload-precent { font-weight: 600; color: var(--primaryColor); }

/* Progress bar */
.uploadbox .dz-bar {
    height: 5px;
    border-radius: 999px;
    background: var(--surface-3);
    overflow: hidden;
}
.uploadbox .dz-bar-fill {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: var(--primaryColor);
    transition: width .25s ease;
}
.uploadbox .dz-preview.dz-success .dz-bar-fill { background: #1a9f5c; }
.uploadbox .dz-preview.dz-success .dz-upload-precent { color: #1a7f4b; }
.uploadbox .dz-preview.dz-error .dz-bar-fill { background: #dc2626; width: 100%; }
.uploadbox .dz-preview.dz-error .dz-upload-precent { color: #c0362c; }
.uploadbox .dz-preview.dz-error { border-color: #fecaca; }

/* Interrupted-upload "ghost" preview: waiting for the user to re-select the file */
.dz-ghost {
    opacity: .55;
    outline: 2px dashed var(--border-strong);
    outline-offset: -2px;
}
.dz-error { cursor: pointer; }

/* ============================================================
   Legal pages (privacy / terms / dmca / refund): clean doc layout
   ============================================================ */
.legal-card {
    max-width: 860px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 34px 40px 40px;
}
.legal-head { margin-bottom: 14px; }
.legal-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin: 0 0 6px; }
.legal-sub { color: var(--text-muted); margin: 0; font-size: .95rem; }
.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}
.legal-nav-link {
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface-2);
    transition: background .12s ease, color .12s ease;
}
.legal-nav-link:hover { background: var(--primary-soft); color: var(--primaryColor); }
.legal-nav-link.active { background: var(--primaryColor); color: #fff; }
.legal-body { color: var(--text); line-height: 1.75; font-size: 15px; }
.legal-body .legal-updated {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-2);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 14px;
}
.legal-body h2 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--text);
    margin: 26px 0 8px;
}
.legal-body p { margin-bottom: 12px; color: var(--text); }
.legal-body ul { padding-left: 22px; margin-bottom: 14px; }
.legal-body li { margin-bottom: 7px; }
.legal-body a { color: var(--primaryColor); font-weight: 500; }
.legal-body strong { color: var(--text); }
@media (max-width: 575.98px) {
    .legal-card { padding: 22px 16px 26px; }
}

/* ============================================================
   Download page (dlp): compact centered file card framed by ads
   — 4 blocks top, 4 bottom, 2 per side rail.
   ============================================================ */
/* The whole ad frame fits one screen: a 3-row grid (top strip | middle | bottom
   strip) sized to the viewport so the page doesn't scroll. Cells stretch to fill
   the space (neat, no dead whitespace); each ad is centered inside at its own
   size. Responsive: on ≤991px the rails drop and it flows (mobile can scroll). */
.dlp { padding-top: 10px !important; padding-bottom: 10px !important; }
/* DEFAULT (no ads — paid users, or no ad slots configured): just center the
   download card in the viewport. The old fixed 3-row grid left the card stranded
   at the top whenever the ad strips/rails weren't rendered. */
.dlp .contain {
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100dvh - 54px - 48px - 20px); /* nav + footer + section padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.dlp-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    width: 100%;
}
.dlp-strip:empty { display: none; }
.dlp-strip .dl-unit { min-height: 0 !important; width: 100% !important; }
.dlp-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
}
.dlp-rail {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dlp-rail:empty { display: none; }
.dlp-rail .dl-unit { min-height: 0 !important; width: 100% !important; }
.dlp-main { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; }

/* WHEN at least one ad actually renders, switch to the viewport-fill 3-row grid so
   the ad frame fills the screen without scrolling and the card is framed centre. */
.dlp .contain:has(.dl-unit) {
    height: calc(100dvh - 54px - 48px - 20px);
    display: grid;
    grid-template-rows: minmax(64px, 1fr) minmax(0, 2.3fr) minmax(64px, 1fr);
    align-items: stretch;
}
.dlp .contain:has(.dl-unit) .dlp-strip .dl-unit { height: 100% !important; }
.dlp .contain:has(.dl-unit) .dlp-layout { align-items: stretch; }
.dlp .contain:has(.dl-unit) .dlp-rail .dl-unit { height: auto !important; flex: 1 1 0; }

/* Unit shell: center whatever the slot renders; the inline width/height from
   the render layer clips oversized network scripts to the declared slot size. */
.dl-unit {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    margin: 0 auto;
}
.dl-unit img { max-width: 100%; height: auto; display: block; }

/* Timed rotator: stack creatives, show one at a time (JS toggles .is-on) */
.dl-rot { position: relative; display: flex; align-items: center; justify-content: center; }
.dl-rot-item { display: none; }
.dl-rot-item.is-on { display: block; }

/* The file card — centered hero card framed by the ad grid (or viewport-centred
   when no ads render). Single source of truth for the card visuals; do not
   re-declare these properties later in the file. */
.dlp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 30px 72px -36px rgba(35, 36, 100, .42);
    padding: 30px 28px;
    text-align: center;
    width: 100%;
    max-width: 480px;
}
.dlp-name {
    font-family: 'Geist', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: #232464;
    margin: 0 0 10px;
    /* Wrap long filenames instead of truncating mid-word; clamp at 2 lines. */
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dlp-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0 0 4px;
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: .82rem;
    color: var(--text-muted);
}
.dlp-stats span { display: inline-flex; align-items: center; gap: 5px; }
.dlp-download { margin: 18px 0 14px; }
.dlp-download .download-link,
.dlp-download .download-counter,
.dlp-download .downloading-btn,
.dlp-download .reDownload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .72rem 1.4rem;
    border: 0;
    border-radius: var(--r-sm);
    font-weight: 700;
}
.dlp-download .download-link {
    background: var(--signal, #22c55e);
    color: #fff;
}
.dlp-download .download-link:hover { filter: brightness(.94); color: #fff; }
.dlp-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 13px;
}
.dlp-actions a { color: var(--text-muted); cursor: pointer; transition: color .12s ease; }
.dlp-actions a:hover { color: var(--primaryColor); }
.dlp-actions .dlp-report:hover { color: #dc2626; }

@media (max-width: 991.98px) {
    /* Flow the download page normally on mobile even WITH ads — the desktop
       :has(.dl-unit) grid rules are higher specificity, so the mobile reset must
       match that specificity (and loads later) to win, or the page stays a
       viewport-locked grid cramming 8 ads + card onto a phone screen. */
    .dlp .contain,
    .dlp .contain:has(.dl-unit) { height: auto; min-height: 0; display: block; }
    .dlp-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 10px; }
    .dlp-strip-bottom { margin: 10px 0 0; }
    .dlp-strip .dl-unit,
    .dlp .contain:has(.dl-unit) .dlp-strip .dl-unit { height: 90px !important; }
    .dlp-rail { display: none; } /* side ads are desktop-only */
    .dlp-layout,
    .dlp .contain:has(.dl-unit) .dlp-layout { display: block; }
    .dlp-main { padding: 10px 0; }
}
@media (max-width: 575.98px) {
    .dlp-card { padding: 20px 14px; }
    .dlp-strip { gap: 8px; }
}

/* ---------- Download page: token card + real buttons ---------- */
.filebox {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px 22px;
}
.filebox-info { align-items: center; }
.filebox-title { font-weight: 600; color: var(--text); }
.filebox-actions a {
    width: 34px; height: 34px; border-radius: var(--r-sm);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-2); color: var(--text-muted);
    transition: background .12s ease, color .12s ease;
}
.filebox-actions a:hover { background: var(--primary-soft); color: var(--primaryColor); }
.download-link,
.download-counter {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 220px; padding: .78rem 1.6rem;
    border: 0; border-radius: var(--r-sm); font-weight: 600;
    transition: background .12s ease, color .12s ease;
}
.download-link { background: var(--primaryColor); color: #fff; }
.download-link:hover { background: var(--secondaryColor); color: #fff; }
.download-counter { background: var(--surface-2); color: var(--text-muted); }

/* Download-page stats card (Downloads / Views) */
.filebox ~ .row .card .list-group-item {
    border-color: var(--border);
    color: var(--text);
    padding: 12px 16px;
}
.filebox ~ .row .card {
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
}
.uploadbox-inline .uploadbox-drag .link { color: var(--primaryColor); font-weight: 600; }

/* ============================================================
   Compact scale: the public site rendered too large overall.
   Shrink the rem base ~6% and trim hero/section spacing.
   ============================================================ */
html { font-size: 15px; }

/* Hero */
.header .header-content { padding-top: 24px; padding-bottom: 48px; }
.header .header-content-img .icon { width: 84px; height: 84px; }

/* Sections */
.section-content { padding-top: 56px; padding-bottom: 56px; }
.section-content .section-content-title.h2 { font-size: 1.6rem; }
.section-content-header { margin-bottom: 28px !important; }

/* Buttons: slightly denser large buttons */
.btn-lg { padding: .62rem 1.4rem; font-size: 1rem; }

/* ============================================================
   Home hero — file-transfer thesis (navy + amber signal)
   ============================================================ */
:root { --signal: #22c55e; --signal-soft: rgba(34, 197, 94, .14); }

.home-upload .header .header-content { padding-top: 40px; padding-bottom: 64px; }

.hero-lead { max-width: 700px; margin: 0 auto 34px; }
.hero-eyebrow {
    display: inline-block;
    font-family: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
    font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--signal);
    padding: .34em .8em; border: 1px solid rgba(34, 197, 94, .38); border-radius: 999px;
    margin-bottom: 22px;
}
.hero-title {
    font-family: 'Geist', system-ui, -apple-system, sans-serif;
    font-weight: 700; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.03;
    letter-spacing: -.025em; color: #fff; margin: 0 0 16px;
}
.hero-title-accent { color: var(--signal); }
.hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.18rem); line-height: 1.6;
    color: rgba(255, 255, 255, .72); max-width: 32em; margin: 0 auto;
}

.hero-drop { max-width: 560px; margin: 0 auto; }

/* Tactile dropzone */
.home-upload .uploadbox-inline { border-radius: 18px; box-shadow: 0 26px 64px -30px rgba(0, 0, 0, .6); }
.home-upload .uploadbox-drag { transition: border-color .18s ease, background-color .18s ease; }
.home-upload .uploadbox-drag:hover,
.home-upload .uploadbox-drag.dragover {
    border-color: var(--signal) !important;
    background-color: var(--signal-soft);
}
.home-upload .uploadbox-drag .fa-cloud-upload-alt { color: var(--signal); }

/* Spec chips — technical artifacts, in mono */
.hero-specs {
    list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px 24px; padding: 0; margin: 28px auto 0;
    font-family: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
    font-size: .8rem; color: rgba(255, 255, 255, .6);
}
.hero-specs li { position: relative; }
.hero-specs li + li::before {
    content: ''; position: absolute; left: -13px; top: 50%;
    width: 4px; height: 4px; border-radius: 50%;
    background: rgba(255, 255, 255, .28); transform: translateY(-50%);
}
.hero-specs-k { color: var(--signal); }

@media (max-width: 575.98px) {
    .home-upload .header .header-content { padding-bottom: 44px; }
    .hero-lead { margin-bottom: 26px; }
    .hero-specs { gap: 8px 18px; font-size: .72rem; }
    .hero-specs li + li::before { left: -10px; }
}

/* ============================================================
   Marketing pages — shared eyebrow + display title
   ============================================================ */
.eyebrow {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
    font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
    color: #7a7f9c; margin-bottom: 14px;
}
.eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--signal, #22c55e);
}
.section-content .section-content-title.h2 {
    font-family: 'Geist', system-ui, -apple-system, sans-serif;
    font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.5rem);
    letter-spacing: -.02em; line-height: 1.12; color: #232464;
}
.section-content-header .text-muted { font-size: 1.05rem; line-height: 1.6; }

/* Featured plan — amber signal (the one place boldness is spent) */
.plan.plan-featured {
    border: 1.5px solid var(--signal, #22c55e) !important;
    box-shadow: 0 22px 54px -30px rgba(34, 197, 94, .55);
}
.plan-featured .plan-badge { background: var(--signal, #22c55e) !important; }
.plan-featured .plan-badge span { color: #232464 !important; font-weight: 700; }
.plan-featured .btn-primary {
    background: var(--signal, #22c55e) !important;
    border-color: var(--signal, #22c55e) !important;
    color: #232464 !important;
}
.plan-featured .btn-primary:hover { filter: brightness(.95); }

/* Frontend forms (contact, report) — amber focus signal */
.legal-card .form-control:focus,
.legal-card .form-select:focus,
.section-content .form-control:focus,
.section-content .form-select:focus {
    border-color: var(--signal, #22c55e) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18) !important;
}
