/* Public marketing / landing — complements site.css tokens */

html {
    scroll-behavior: smooth;
}

.marketing-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 4.75rem;
    overflow-x: clip;
    background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 88, 33, 0.18), transparent 55%),
        var(--bg-primary);
}

.marketing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    backdrop-filter: blur(12px);
    background: rgba(26, 26, 26, 0.92);
    border-bottom: 1px solid var(--border-color);
}

.marketing-main {
    flex: 1 0 auto;
}

.marketing-body--auth .marketing-main--auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 3rem;
}

#hero,
.marketing-section {
    scroll-margin-top: 5.25rem;
}

.marketing-nav {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.marketing-container {
    max-width: 1140px;
}

.marketing-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.marketing-brand .accent,
.marketing-brand-inline .accent {
    color: var(--accent-primary);
}

.marketing-brand i,
.marketing-brand-inline i {
    color: var(--accent-primary);
    margin-right: 0.25rem;
}

.marketing-menu .nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.5rem 0.65rem !important;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.marketing-menu .nav-link:hover {
    color: var(--accent-primary) !important;
    background: var(--accent-soft);
}

.marketing-toggler {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.35rem 0.6rem;
}

.marketing-btn-primary {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff !important;
    font-weight: 600;
}

.marketing-btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff !important;
}

.marketing-hero {
    position: relative;
    padding: 4rem 0 5rem;
    overflow: hidden;
}

.marketing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 88, 33, 0.12), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(68, 153, 255, 0.06), transparent 45%);
    pointer-events: none;
}

.marketing-hero-inner {
    position: relative;
    z-index: 1;
}

.marketing-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.marketing-hero .lead {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 36rem;
    line-height: 1.55;
}

.marketing-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.marketing-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.marketing-pill i {
    color: var(--accent-primary);
}

.marketing-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.marketing-section.alt {
    background: linear-gradient(180deg, rgba(49, 48, 48, 0.35) 0%, transparent 100%);
}

.marketing-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.marketing-section-title i {
    color: var(--accent-primary);
}

.marketing-section-intro {
    color: var(--text-muted);
    max-width: 42rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.marketing-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.marketing-chart-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.marketing-chart-wrap {
    position: relative;
    height: 220px;
}

.marketing-chart-wrap.tall {
    height: 280px;
}

.marketing-chart-wrap--monitor30 {
    height: 320px;
}

.marketing-chart-wrap--trend {
    height: 280px;
}

.marketing-chart-wrap--hbar {
    min-height: 240px;
    height: 260px;
}

.marketing-chart-wrap--hour {
    min-height: 220px;
    height: 240px;
}

.marketing-chart-wrap--backup30 {
    min-height: 260px;
    height: 300px;
}

/* SEO overview preview (marketing home — matches in-app SeoOverview layout) */
.marketing-seo-preview__table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.marketing-seo-preview__kpis {
    margin-bottom: 1.25rem !important;
}

.marketing-seo-preview .table-container {
    margin: 0;
}

.marketing-seo-score-wrap {
    display: inline-block;
    cursor: default;
}

.marketing-seo-score-bar {
    width: 100px;
    height: 20px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.marketing-seo-score-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.2s ease;
}

.marketing-seo-score-fill.success {
    background: var(--success);
}

.marketing-seo-score-fill.warning {
    background: var(--warning);
}

.marketing-seo-score-fill.error {
    background: var(--error);
}

/* Demo SEO table: score strip not red/orange */
.marketing-seo-preview .marketing-seo-score-fill.warning {
    background: rgba(168, 162, 150, 0.85);
}

.marketing-seo-preview .marketing-seo-score-fill.error {
    background: rgba(120, 120, 120, 0.9);
}

.marketing-seo-score-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.85);
    pointer-events: none;
    line-height: 1;
}

.tooltip.marketing-tooltip {
    --bs-tooltip-bg: rgba(30, 30, 30, 0.97);
    --bs-tooltip-color: #f0f0f0;
}

.tooltip.marketing-tooltip .tooltip-inner {
    max-width: min(320px, 90vw);
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.35;
    padding: 0.5rem 0.65rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* Leaflet on marketing home — same dark basemap idea as in-app traffic analytics */
.marketing-geo-map {
    height: 360px;
    width: 100%;
    border-radius: 8px;
    z-index: 0;
    background: var(--bg-tertiary);
}

.marketing-map-split {
    align-items: stretch;
}

.marketing-map-cities-col {
    min-height: 280px;
}

@media (min-width: 992px) {
    .marketing-map-cities-col {
        min-height: 360px;
    }
}

.marketing-top-cities-head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.65rem;
    margin-bottom: 0.5rem;
}

.marketing-top-cities-pin {
    color: var(--accent-primary, #ff8521);
    font-size: 1.05rem;
}

.marketing-top-cities-all {
    font-size: 0.8rem;
    font-weight: 600;
    border-width: 1px;
    flex-shrink: 0;
}

.marketing-chart-wrap--mapCities {
    min-height: 240px;
    width: 100%;
}

@media (min-width: 992px) {
    .marketing-chart-wrap--mapCities {
        min-height: 0;
    }
}

.marketing-map-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.marketing-role-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.35rem;
    transition: border-color 0.2s, transform 0.2s;
}

.marketing-role-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.marketing-role-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.marketing-role-card .role-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--accent-soft);
    color: var(--accent-primary);
}

.marketing-role-card ul {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.marketing-matrix-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}

.marketing-matrix__heading-icon {
    color: var(--accent-primary);
    margin-right: 0.35rem;
    vertical-align: -0.1em;
}

.marketing-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
    margin-bottom: 0;
    border: none;
}

.marketing-matrix th,
.marketing-matrix td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.marketing-matrix thead > tr:first-child > th {
    background: var(--bg-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.marketing-matrix thead > tr:first-child > th:not(:first-child),
.marketing-matrix tbody td {
    text-align: center;
}

.marketing-matrix thead > tr:first-child > th:first-child,
.marketing-matrix tbody th[scope="row"] {
    text-align: left;
}

.marketing-matrix tbody tr {
    transition: background-color 0.15s ease;
}

.marketing-matrix tbody tr:hover {
    background: rgba(255, 88, 33, 0.07);
}

.marketing-matrix tbody th[scope="row"] {
    background: transparent;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.85rem;
}

.marketing-matrix thead tr.marketing-matrix-subhead th {
    background: var(--bg-card);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.marketing-matrix thead tr.marketing-matrix-subhead th:not(.marketing-matrix-subhead__feature) {
    color: var(--accent-primary);
    text-align: center;
}

.marketing-matrix thead tr.marketing-matrix-subhead .marketing-matrix-subhead__feature {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    text-align: left;
}

.marketing-matrix tbody tr:last-child th,
.marketing-matrix tbody tr:last-child td {
    border-bottom: none;
}

.marketing-matrix .marketing-matrix__mark {
    font-size: 1rem;
    line-height: 1;
}

.marketing-matrix .yes {
    color: var(--success);
    font-weight: 700;
}

.marketing-matrix .no {
    color: var(--text-muted);
}

.marketing-matrix .partial {
    color: var(--text-muted);
    font-weight: 600;
}

.marketing-matrix .marketing-matrix__dash {
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* SEO preview matrix: squircle status icons (warning = orange frame, error = red frame) */
.marketing-seo-preview__table .marketing-seo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 1.7rem;
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 8px;
    border: 1px solid transparent;
    vertical-align: middle;
    cursor: default;
}

.marketing-seo-preview__table .marketing-seo-icon--value {
    width: auto;
    min-width: 2.35rem;
    padding: 0 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.marketing-seo-preview__table .marketing-seo-icon--success {
    color: #7bed9a;
    border-color: #5ddf7a;
    background: rgba(22, 48, 32, 0.92);
}

.marketing-seo-preview__table .marketing-seo-icon--warning {
    color: #ffb347;
    border-color: #f39c12;
    background: rgba(42, 32, 22, 0.95);
}

.marketing-seo-preview__table .marketing-seo-icon--error {
    color: #ff6b6b;
    border-color: #ff4d4d;
    background: rgba(48, 18, 22, 0.92);
}

.marketing-seo-preview__table .marketing-seo-icon--info {
    color: #7eb8ff;
    border-color: #5b9fff;
    background: rgba(22, 36, 58, 0.92);
    font-size: 0.68rem;
}

.marketing-seo-preview__table .marketing-seo-icon-note {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.2rem;
    vertical-align: middle;
}

.marketing-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.marketing-footer-extended .marketing-footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.marketing-footer-extended .marketing-footer-brand {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.marketing-footer-extended .marketing-footer-brand i {
    color: var(--accent-primary);
    margin-right: 0.25rem;
}

.marketing-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.marketing-footer-list li {
    margin-bottom: 0.4rem;
}

.marketing-footer-list a,
.marketing-footer-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.marketing-footer-list a:hover,
.marketing-footer-link:hover {
    color: var(--accent-primary);
}

.marketing-footer-hr {
    border-color: var(--border-color);
    opacity: 1;
}

.marketing-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 1.35rem;
}

.marketing-social a {
    color: var(--text-secondary);
}

.marketing-social a:hover {
    color: var(--accent-primary);
}

/* Auth forms on public layout */
.marketing-auth-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-primary);
    border-radius: 0;
    padding: 2rem 1.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.marketing-auth-card .marketing-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.marketing-auth-card .marketing-auth-logo i {
    color: var(--accent-primary);
}

.marketing-auth-card .marketing-auth-logo .accent {
    color: var(--accent-primary);
}

.marketing-auth-card .marketing-auth-lead {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.marketing-auth-card .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.marketing-auth-card .form-control {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.marketing-auth-card .form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.15rem rgba(255, 88, 33, 0.25);
}

.marketing-auth-card .form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.marketing-auth-card .input-icon {
    position: relative;
}

.marketing-auth-card .input-icon i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.marketing-auth-card .input-icon .form-control {
    padding-left: 2.5rem;
}

.marketing-auth-card .btn-auth-submit {
    width: 100%;
    padding: 0.65rem;
    font-weight: 600;
    background: var(--accent-primary);
    border: none;
    color: #fff;
}

.marketing-auth-card .btn-auth-submit:hover {
    background: var(--accent-hover);
    color: #fff;
}

.marketing-auth-card .alert-auth-error {
    background: rgba(255, 68, 68, 0.12);
    border: 1px solid #c62828;
    color: #ef9a9a;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.marketing-auth-card .alert-auth-info {
    background: rgba(33, 150, 243, 0.12);
    border: 1px solid #1565c0;
    color: #90caf9;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.marketing-auth-card .field-validation-error {
    color: #ef9a9a;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.marketing-auth-card .form-check-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.marketing-auth-card .marketing-auth-footer-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

.marketing-auth-card .marketing-auth-footer-link a {
    color: var(--accent-primary);
    text-decoration: none;
}

.marketing-auth-card .marketing-auth-footer-link a:hover {
    text-decoration: underline;
}

.marketing-auth-card .btn-resend {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.marketing-auth-card .form-control.code-input {
    font-size: 1.15rem;
    letter-spacing: 0.35em;
    text-align: center;
}

.marketing-legal-page {
    padding-top: 2rem;
    padding-bottom: 4rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.marketing-legal-page h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.marketing-legal-page h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.marketing-legal-page h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.marketing-legal-page ul,
.marketing-legal-page ol {
    padding-left: 1.2rem;
}

.marketing-legal-page li {
    margin-bottom: 0.35rem;
}

.marketing-legal-page .marketing-legal-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.marketing-brand-inline {
    font-weight: 700;
    color: var(--text-primary);
}

.marketing-mini-stat {
    text-align: center;
    padding: 1rem;
}

.marketing-mini-stat .val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1.2;
}

.marketing-mini-stat .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Match login / register / language control height (global .btn padding varies) */
.marketing-cta .btn {
    min-height: 2.5rem;
    padding: 0.4rem 0.85rem !important;
    justify-content: center;
}

/* Language switcher (single button → dropdown) in public header */
.marketing-cta .lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}

.marketing-cta .lang-switcher-btn:hover,
.marketing-cta .lang-switcher-btn:focus,
.marketing-cta .lang-switcher-btn.show {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-primary);
}

.marketing-cta .lang-switcher-btn .bi {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
}

.marketing-cta .lang-switcher-btn.dropdown-toggle::after {
    border-top-color: rgba(255, 255, 255, 0.85);
    vertical-align: 0.15em;
}

.marketing-cta .lang-switcher-code {
    color: #ffc8a8;
    min-width: 1.25rem;
    text-align: center;
}

.marketing-cta .lang-switcher-menu {
    z-index: 1060;
    min-width: 10rem;
}

.marketing-cta .lang-switcher-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.95);
}

.marketing-cta .lang-switcher-menu .dropdown-item:hover,
.marketing-cta .lang-switcher-menu .dropdown-item:focus {
    color: #fff;
}

.marketing-cta .lang-switcher-menu .dropdown-item.active {
    color: #fff;
    font-weight: 600;
}

/* Header outline: site.css .btn { border: none } — restore frame for btn-outline-light */
.marketing-cta .btn.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: rgba(255, 255, 255, 0.95) !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.marketing-cta .btn.btn-outline-light:hover,
.marketing-cta .btn.btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: #fff !important;
}

/* Hero “Create account”: white fill, orange text */
.marketing-hero .btn.btn-outline-light {
    border: 1px solid #fff;
    background: #fff;
    color: var(--accent-primary) !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: inherit;
    letter-spacing: 0.03em;
}

.marketing-hero .btn.btn-outline-light:hover,
.marketing-hero .btn.btn-outline-light:focus {
    background: #f2f2f2;
    border-color: #f2f2f2;
    color: var(--accent-hover) !important;
}

@media (max-width: 991px) {
    .marketing-menu {
        padding: 1rem 0;
        text-align: center;
    }

    .marketing-cta {
        justify-content: center;
        padding-bottom: 0.5rem;
    }

    .marketing-menu .nav-link {
        padding: 0.65rem 1rem !important;
    }

    .marketing-container {
        max-width: 100%;
    }

    .marketing-hero .lead {
        font-size: 1.02rem;
    }

    .marketing-pill {
        font-size: 0.68rem;
    }
}

/* Collapsed nav: scroll when many links (small phones only) */
@media (max-width: 991.98px) {
    .marketing-nav-collapse.show,
    .marketing-nav-collapse.collapsing {
        max-height: min(72vh, 28rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.marketing-main {
    min-width: 0;
}

/* ---- Marketing home: phones ------------------------------------------------ */
@media (max-width: 575.98px) {
    #hero,
    .marketing-section {
        scroll-margin-top: 4.5rem;
    }

    .marketing-hero {
        padding: 2.25rem 0 2.75rem;
    }

    .marketing-section {
        padding: 2.25rem 0;
    }

    .marketing-section-title {
        font-size: 1.3rem;
        flex-wrap: wrap;
        line-height: 1.28;
    }

    .marketing-section-intro {
        font-size: 0.92rem;
        margin-bottom: 1.25rem;
    }

    .marketing-chart-card {
        padding: 1rem 0.9rem 0.85rem;
    }

    .marketing-chart-wrap.tall {
        height: 240px;
    }

    .marketing-chart-wrap--trend {
        height: 230px;
    }

    .marketing-chart-wrap--monitor30 {
        height: 260px;
    }

    .marketing-chart-wrap--backup30 {
        min-height: 220px;
        height: 260px;
    }

    .marketing-chart-wrap--hbar {
        min-height: 200px;
        height: 220px;
    }

    .marketing-chart-wrap--hour {
        min-height: 200px;
        height: 220px;
    }

    .marketing-geo-map {
        height: 260px;
    }

    .marketing-mini-stat {
        padding: 0.65rem 0.35rem;
    }

    .marketing-mini-stat .val {
        font-size: 1.35rem;
    }

    .marketing-mini-stat .lbl {
        font-size: 0.68rem;
    }

    .marketing-hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .marketing-hero-cta .btn-link {
        text-align: center;
    }

    .marketing-seo-preview .stats-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .marketing-seo-table-scroll {
        -webkit-overflow-scrolling: touch;
        border-radius: 0 0 12px 12px;
    }

    .marketing-seo-preview__table {
        min-width: 720px;
    }

    .marketing-seo-preview__table th,
    .marketing-seo-preview__table td {
        padding: 0.45rem 0.35rem;
        font-size: 0.72rem;
    }

    .marketing-seo-preview__table .marketing-seo-icon {
        min-width: 1.45rem;
        width: 1.45rem;
        height: 1.45rem;
        font-size: 0.68rem;
        border-radius: 6px;
    }

    .marketing-seo-preview__table .marketing-seo-icon--value {
        min-width: 2rem;
        font-size: 0.58rem;
        padding: 0 0.25rem;
    }

    .marketing-seo-preview__table .marketing-seo-score-bar {
        width: 72px;
        height: 18px;
    }

    .marketing-matrix th,
    .marketing-matrix td {
        padding: 0.5rem 0.4rem;
        font-size: 0.72rem;
    }

    .marketing-matrix thead > tr:first-child > th {
        font-size: 0.58rem;
        letter-spacing: 0.03em;
    }

    .marketing-matrix thead tr.marketing-matrix-subhead th {
        font-size: 0.65rem;
    }

    .marketing-footer-extended .container.py-5 {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }

    .marketing-role-card {
        padding: 1.1rem;
    }
}

@media (max-width: 380px) {
    .marketing-hero h1 {
        font-size: 1.65rem;
        letter-spacing: -0.015em;
    }

    .marketing-badge-row {
        gap: 0.35rem;
    }

    .marketing-pill {
        padding: 0.28rem 0.55rem;
        font-size: 0.62rem;
    }
}
