/* SEO.Cretorial AI — dashboard shell (Bootstrap 5 layer) */

:root {
    --crt-primary: #1f6feb;
    --crt-primary-soft: #e8f1ff;
    --crt-sidebar: #0f1729;
    --crt-sidebar-muted: #8ea2c0;
    --crt-border: #e5e9f0;
    --crt-surface: #f6f8fb;
}

body.app-body {
    background: var(--crt-surface);
    color: #172033;
}

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

/* ---------- Public marketing site ---------- */

body.marketing-body {
    background: #f6f8fb;
    color: #172033;
}

/* Marketing media never widens the page; overlapping cards are positioned, not sized, to fit. */
.marketing-body img { max-width: 100%; height: auto; }
.marketing-body .audience-photo { max-width: none; }

.marketing-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--crt-border);
}

.marketing-nav {
    min-height: 74px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.marketing-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.marketing-brand img {
    width: 180px;
    max-width: 42vw;
    height: auto;
    object-fit: contain;
}

.marketing-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.25rem;
    font-size: .925rem;
    font-weight: 600;
}

.marketing-links a,
.marketing-trust-row a,
.marketing-footer a {
    color: #334155;
    text-decoration: none;
}

.marketing-links a:hover,
.marketing-trust-row a:hover,
.marketing-footer a:hover {
    color: var(--crt-primary);
    text-decoration: underline;
}

.marketing-hero {
    position: relative;
    min-height: clamp(620px, 82vh, 760px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid var(--crt-border);
}

.marketing-hero-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 7vw;
    pointer-events: none;
    opacity: .11;
}

.marketing-hero-bg img {
    width: min(720px, 72vw);
    height: auto;
}

.marketing-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.marketing-kicker {
    margin: 0 0 .8rem;
    color: var(--crt-primary);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.marketing-hero h1 {
    max-width: 860px;
    margin: 0;
    color: #101828;
    font-size: clamp(3.2rem, 8vw, 7rem);
    line-height: .95;
    font-weight: 800;
    letter-spacing: 0;
}

.marketing-lead {
    max-width: 780px;
    margin: 1.35rem 0 0;
    color: #475569;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.55;
}

.marketing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

.marketing-actions .btn,
.marketing-cta .btn {
    border-radius: 8px;
}

.marketing-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: .9rem;
    font-weight: 600;
}

.marketing-section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background: #fff;
}

.marketing-band {
    background: #f6f8fb;
    border-top: 1px solid var(--crt-border);
    border-bottom: 1px solid var(--crt-border);
}

.marketing-section-head {
    max-width: 780px;
    margin-bottom: 2rem;
}

.marketing-section-head h2,
.marketing-two-col h2,
.marketing-cta h2 {
    margin: 0;
    color: #101828;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0;
}

.marketing-section-head p,
.marketing-two-col p,
.marketing-cta p {
    color: #536173;
    font-size: 1.05rem;
    line-height: 1.65;
}

.marketing-section-head p {
    margin: 1rem 0 0;
}

.marketing-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.marketing-feature-grid article,
.marketing-link-grid a,
.marketing-flow {
    border: 1px solid var(--crt-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .05);
}

.marketing-feature-grid article {
    min-height: 220px;
    padding: 1.35rem;
}

.marketing-feature-grid i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: var(--crt-primary-soft);
    color: var(--crt-primary);
    font-size: 1.25rem;
}

.marketing-feature-grid h3 {
    margin: 0 0 .55rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.marketing-feature-grid p,
.marketing-link-grid span,
.marketing-flow small {
    color: #64748b;
    line-height: 1.55;
}

.marketing-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 2rem;
    align-items: center;
}

.marketing-flow {
    display: grid;
    gap: .85rem;
    padding: 1rem;
}

.marketing-flow div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    padding: .9rem;
    border: 1px solid #edf1f7;
    border-radius: 8px;
}

.marketing-flow span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #172033;
    color: #fff;
    font-weight: 800;
}

.marketing-flow strong,
.marketing-flow small {
    display: block;
}

.marketing-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.marketing-link-grid a {
    display: block;
    min-height: 110px;
    padding: 1rem;
}

.marketing-link-grid strong,
.marketing-link-grid span {
    display: block;
}

.marketing-link-grid strong {
    margin-bottom: .45rem;
    color: #172033;
}

.marketing-cta-group {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
}

.marketing-cta-group .btn-link {
    color: #334155;
    font-weight: 600;
    text-decoration: none;
}

.marketing-cta-group .btn-link:hover { color: var(--crt-primary); }

/* ---------- Marketing: hero layout & product preview ---------- */

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 3rem;
    align-items: center;
}

.marketing-hero h1 {
    font-size: clamp(2.5rem, 4.6vw, 4rem);
    line-height: 1.04;
}

.hero-note {
    margin: 1.5rem 0 0;
    color: #64748b;
    font-size: .9rem;
    font-weight: 600;
}

.hero-note i { color: #12b76a; }

.app-preview {
    border: 1px solid var(--crt-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(16, 24, 40, .14);
    overflow: hidden;
}

.app-preview-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem .9rem;
    background: #f1f4f9;
    border-bottom: 1px solid var(--crt-border);
}

.app-preview-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d3dae5;
}

.app-preview-bar em {
    margin-left: .6rem;
    color: #8a97a8;
    font-size: .72rem;
    font-style: normal;
}

.app-preview-body { display: grid; grid-template-columns: 52px minmax(0, 1fr); }

.app-preview-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 0;
    background: var(--crt-sidebar);
    color: var(--crt-sidebar-muted);
}

.app-preview-rail .active { color: #fff; }

.app-preview-main { padding: 1rem; }

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

.app-preview-tiles div {
    padding: .6rem .7rem;
    border: 1px solid var(--crt-border);
    border-radius: 8px;
}

.app-preview-tiles small { display: block; color: #8a97a8; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.app-preview-tiles strong { font-size: 1.3rem; font-weight: 800; }
.app-preview-tiles .up { margin-left: .3rem; color: #12b76a; font-size: .72rem; font-weight: 700; }

.app-preview-review {
    padding: .85rem;
    border: 1px solid var(--crt-border);
    border-radius: 8px;
}

.app-preview-stars { color: #f0a202; font-size: .85rem; letter-spacing: .1em; }
.app-preview-review > p { margin: .35rem 0 .7rem; color: #475569; font-size: .82rem; line-height: 1.45; }

.app-preview-reply {
    padding: .7rem;
    border-radius: 8px;
    background: var(--crt-primary-soft);
}

.app-preview-reply p { margin: .45rem 0 .6rem; color: #24425f; font-size: .8rem; line-height: 1.45; }

.badge-ai {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--crt-primary);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.app-preview-buttons { display: flex; align-items: center; gap: .6rem; }

.app-preview-buttons b {
    padding: .28rem .6rem;
    border-radius: 6px;
    background: var(--crt-primary);
    color: #fff;
    font-size: .72rem;
}

.app-preview-buttons i { color: #64748b; font-size: .72rem; font-style: normal; }

/* ---------- Marketing: stats band ---------- */

.marketing-stats {
    padding: 2.25rem 0;
    background: #172033;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stats-grid strong { display: block; font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; }
.stats-grid span { color: #b9c6d8; font-size: .875rem; }

/* ---------- Marketing: alternating feature rows ---------- */

.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    padding: clamp(2rem, 4vw, 3.25rem) 0;
}

.feature-row + .feature-row { border-top: 1px solid var(--crt-border); }
.feature-row.reverse .feature-visual { order: -1; }

.feature-row h2 { font-size: clamp(1.65rem, 2.8vw, 2.35rem); }
.feature-row > div > p { color: #536173; font-size: 1.02rem; line-height: 1.65; }

.feature-list { margin: 1.15rem 0 0; padding: 0; list-style: none; }

.feature-list li {
    position: relative;
    padding: .3rem 0 .3rem 1.7rem;
    color: #475569;
    font-size: .95rem;
}

.feature-list li::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: #12b76a;
}

/* Photo with the data card overlapping its lower corner. */
.feature-visual { position: relative; padding-bottom: 3.5rem; }

.feature-photo {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .16);
}

.feature-photo img {
    display: block;
    width: 100%;
    height: clamp(260px, 32vw, 380px);
    object-fit: cover;
}

.feature-visual .mini-card {
    position: absolute;
    left: 1.5rem;
    bottom: 0;
    width: min(330px, 80%);
}

.feature-row.reverse .feature-visual .mini-card { left: auto; right: 1.5rem; }

.mini-card {
    padding: 1.1rem;
    border: 1px solid var(--crt-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .08);
}

.mini-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .85rem;
}

.pill {
    padding: .18rem .55rem;
    border-radius: 999px;
    background: var(--crt-primary-soft);
    color: var(--crt-primary);
    font-size: .72rem;
    font-weight: 700;
}

.pill.good { background: #e6f7ee; color: #067647; }

.mini-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 0;
    border-top: 1px solid #eef1f6;
    font-size: .85rem;
}

.mini-row b { flex: 1; font-weight: 600; }
.mini-row em { color: #8a97a8; font-style: normal; font-size: .78rem; }
.mini-row i { color: var(--crt-primary); }

.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.pos { background: #12b76a; }
.dot.neu { background: #f0a202; }
.dot.neg { background: #e5484d; }

.mini-bar {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .45rem 0;
}

.mini-bar span {
    height: 8px;
    border-radius: 999px;
    background: var(--crt-primary);
}

.mini-bar em { color: #64748b; font-style: normal; font-size: .78rem; white-space: nowrap; }

/* ---------- Marketing: steps, audience, pricing, FAQ ---------- */

.step-grid,
.audience-grid {
    display: grid;
    gap: 1.25rem;
}

.step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.step-grid article,
.audience-grid article {
    padding: 1.5rem;
    border: 1px solid var(--crt-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .05);
}

.audience-grid article { padding: 0 1.5rem 1.5rem; overflow: hidden; }

.audience-photo {
    display: block;
    width: calc(100% + 3rem);
    max-width: none;
    height: 200px;
    margin: 0 -1.5rem 1.25rem;
    object-fit: cover;
}

.audience-grid i { margin-top: .25rem; }

.step-grid span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem;
    border-radius: 10px;
    background: #172033;
    color: #fff;
    font-weight: 800;
}

.audience-grid i {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem;
    border-radius: 10px;
    background: var(--crt-primary-soft);
    color: var(--crt-primary);
    font-size: 1.3rem;
}

.step-grid h3,
.audience-grid h3 { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 800; }
.step-grid p,
.audience-grid p { margin: 0; color: #64748b; line-height: 1.6; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.pricing-grid article {
    position: relative;
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--crt-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .05);
}

.pricing-grid article.featured {
    border-color: var(--crt-primary);
    box-shadow: 0 24px 60px rgba(31, 111, 235, .18);
}

.pricing-flag {
    position: absolute;
    top: -12px;
    left: 1.5rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: var(--crt-primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.pricing-grid h3 { margin: 0 0 .35rem; font-size: 1.2rem; font-weight: 800; }

.pricing-price { margin: 0; font-size: 2.5rem; font-weight: 800; line-height: 1.1; }
.pricing-price small { font-size: .95rem; font-weight: 600; color: #64748b; }
.pricing-yearly { margin: .2rem 0 0; color: #64748b; font-size: .875rem; }
.pricing-grid .feature-list { margin-bottom: 1.35rem; }

.pricing-note { margin: 1.5rem 0 0; color: #64748b; font-size: .95rem; }

.faq-accordion .accordion-item {
    margin-bottom: .6rem;
    border: 1px solid var(--crt-border);
    border-radius: 10px !important;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 700;
    color: #101828;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--crt-primary-soft);
    color: var(--crt-primary);
    box-shadow: none;
}

.faq-accordion .accordion-body { color: #536173; line-height: 1.65; }

.cta-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.25rem;
    margin: 1.75rem 0 0;
    font-size: .875rem;
}

.cta-trust a { color: #b9c6d8; text-decoration: none; }
.cta-trust a:hover { color: #fff; text-decoration: underline; }

.marketing-cta {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    color: #fff;
    background: #172033;
    text-align: center;
}

.marketing-cta h2 {
    color: #fff;
}

.marketing-cta p {
    max-width: 620px;
    margin: 1rem auto 1.6rem;
    color: #d6dee9;
}

.marketing-footer {
    padding: 2.5rem 0 1.25rem;
    background: #fff;
    border-top: 1px solid var(--crt-border);
}

.marketing-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 2rem;
}

.marketing-footer-logo {
    width: 164px;
    max-width: 100%;
    height: auto;
    margin-bottom: .85rem;
}

.marketing-footer p,
.marketing-footer-bottom {
    color: #64748b;
}

.marketing-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-content: start;
    justify-content: flex-end;
}

.marketing-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--crt-border);
    font-size: .875rem;
}

/* ---------- Shell ---------- */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 256px;
    flex: 0 0 256px;
    background: var(--crt-sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-content {
    padding: 1.5rem;
    flex: 1 1 auto;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--crt-border);
    font-size: .8125rem;
    color: #6b7a90;
    background: #fff;
}

/* ---------- Sidebar ---------- */

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--crt-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-mark-lg {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
    border-radius: 16px;
}

.brand-logo {
    width: 180px;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    padding: 8px 10px;
    flex: 0 1 auto;
}

.brand-text strong { display: block; line-height: 1.1; }
.brand-text small { color: var(--crt-sidebar-muted); font-size: .75rem; }

.sidebar-nav { padding: 1rem .75rem 2rem; }

.nav-section {
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--crt-sidebar-muted);
    padding: .75rem .5rem .25rem;
    margin: 0;
}

.app-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: .625rem;
    color: #cbd6e6;
    border-radius: 8px;
    padding: .5rem .625rem;
    font-size: .9rem;
}

.app-sidebar .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.app-sidebar .nav-link.active { background: var(--crt-primary); color: #fff; }
.app-sidebar .nav-link.disabled { color: #5c6b85; cursor: default; }
.app-sidebar .nav-link i { width: 1.1rem; }

/* ---------- Topbar ---------- */

.app-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .875rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--crt-border);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-title { flex: 1 1 auto; min-width: 0; }
.topbar-title h1 { font-size: 1.125rem; margin: 0; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--crt-primary-soft);
    color: var(--crt-primary);
    font-size: .75rem;
    font-weight: 700;
    flex: 0 0 32px;
}

.avatar-lg { width: 64px; height: 64px; font-size: 1.25rem; flex-basis: 64px; }

.notification-menu { width: 320px; max-height: 420px; overflow-y: auto; }
.notification-item { white-space: normal; border-left: 3px solid transparent; }
.notification-item.unread { border-left-color: var(--crt-primary); background: var(--crt-primary-soft); }

/* ---------- Cards & tiles ---------- */

.card {
    border: 1px solid var(--crt-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.stat-card .stat-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7a90;
    margin: 0 0 .25rem;
}

.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; margin: 0 0 .25rem; }

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--crt-primary-soft);
    color: var(--crt-primary);
}

.module-tile {
    position: relative;
    border: 1px solid var(--crt-border);
    border-radius: 10px;
    padding: .875rem;
    height: 100%;
    background: #fff;
}

.module-tile .module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--crt-surface);
    color: #46536b;
}

.module-badge { background: #eef1f6; color: #55637a; font-weight: 500; }
.module-tile.status-live { border-color: #b9dfc4; }
.module-tile.status-live .module-icon { background: #e7f6ec; color: #1a7f37; }
.module-tile.status-live .module-badge { background: #e7f6ec; color: #1a7f37; }
.module-tile.status-partial .module-icon { background: #fff5e0; color: #9a6700; }
.module-tile.status-partial .module-badge { background: #fff5e0; color: #9a6700; }
.module-tile.status-planned { opacity: .82; }

.setup-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border: 1px solid var(--crt-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-size: .875rem;
}

.setup-step:hover { border-color: var(--crt-primary); }
.setup-step.done { color: #1a7f37; border-color: #b9dfc4; background: #f2fbf5; }

/* ---------- Tables ---------- */

.table thead th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7a90;
    font-weight: 600;
    border-bottom-width: 1px;
}

.matrix-table .sticky-col {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    min-width: 240px;
}

.matrix-table tr.table-light .sticky-col { background: #f2f4f8; }

.permission-picker { max-height: 320px; overflow-y: auto; padding-right: .5rem; }

.settings-nav .list-group-item { border-radius: 8px; margin-bottom: .25rem; border: 1px solid var(--crt-border); }

.notification-row.unread { background: var(--crt-primary-soft); }

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: .4rem;
    flex: 0 0 10px;
    display: inline-block;
}

.notification-dot.bg-info { background: #0dcaf0; }
.notification-dot.bg-success { background: #198754; }
.notification-dot.bg-warning { background: #ffc107; }
.notification-dot.bg-danger { background: #dc3545; }

.review-stars {
    color: #d97706;
    letter-spacing: .05rem;
    white-space: nowrap;
}

.review-copy-cell {
    min-width: 320px;
    max-width: 520px;
}

.review-body {
    line-height: 1.65;
    white-space: normal;
}

.gbp-location-cell {
    min-width: 280px;
    max-width: 480px;
}

.seo-url-cell {
    min-width: 280px;
    max-width: 520px;
}

.seo-score-badge,
.seo-score-panel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.seo-score-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: .95rem;
}

.seo-score-panel {
    flex-direction: column;
    width: 112px;
    height: 112px;
    border-radius: 16px;
    border: 1px solid var(--crt-border);
}

.seo-score-panel span { font-size: 2rem; line-height: 1; }
.seo-score-panel small { margin-top: .35rem; color: #5f6f86; font-weight: 500; }
.score-good { background: #e7f6ec; color: #1a7f37; border-color: #b9dfc4; }
.score-warn { background: #fff5e0; color: #9a6700; border-color: #f1d392; }
.score-bad { background: #fdecea; color: #b42318; border-color: #f3b8b3; }
.score-empty { background: #eef1f6; color: #55637a; border-color: #d9dee8; }
.seo-issue-row { min-width: 0; }

.seo-report-hero {
    border: 1px solid var(--crt-border);
    border-radius: 8px;
    background: #fff;
    padding: 1.25rem;
}

.seo-report-title {
    max-width: 760px;
}

.seo-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.seo-category-meter {
    border: 1px solid var(--crt-border);
    border-radius: 8px;
    padding: .85rem;
    background: #fbfcfe;
}

.seo-category-meter .progress {
    height: .45rem;
    margin-bottom: .45rem;
    background: #e7ecf3;
}

.seo-category-meter .progress-bar {
    background: #276ef1;
}

.seo-priority-item,
.seo-issue-detail {
    line-height: 1.55;
}

.seo-action-phase {
    border: 1px solid var(--crt-border);
    border-radius: 8px;
    padding: .95rem;
    background: #fbfcfe;
}

.seo-action-item {
    display: flex;
    gap: .45rem;
    align-items: flex-start;
    font-size: .86rem;
    line-height: 1.45;
    margin-top: .45rem;
}

.seo-action-item i {
    color: #1a7f37;
    margin-top: .08rem;
}

.seo-check-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.seo-check-pill {
    display: inline-flex;
    align-items: center;
    gap: .22rem;
    border: 1px solid;
    border-radius: 999px;
    padding: .16rem .48rem;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.seo-check-pass {
    color: #1a7f37;
    background: #e7f6ec;
    border-color: #b9dfc4;
}

.seo-check-warn {
    color: #9a6700;
    background: #fff5e0;
    border-color: #f1d392;
}

.seo-check-fail {
    color: #b42318;
    background: #fdecea;
    border-color: #f3b8b3;
}

.seo-report-table td {
    vertical-align: top;
}

.seo-issue-detail {
    padding: 1rem;
    border-top: 1px solid var(--crt-border);
}

.seo-issue-detail:first-child {
    border-top: 0;
}

@media (max-width: 767.98px) {
    .seo-category-grid {
        grid-template-columns: 1fr;
    }

    .seo-check-pill {
        max-width: 100%;
        white-space: normal;
    }
}

@media print {
    .sidebar,
    .topbar,
    .seo-print-actions,
    .app-sidebar,
    .app-topbar {
        display: none !important;
    }

    .app-shell,
    .app-main,
    .content-shell {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .card,
    .seo-report-hero,
    .seo-action-phase,
    .seo-category-meter {
        break-inside: avoid;
        box-shadow: none !important;
    }
}

.social-copy-cell {
    min-width: 320px;
    max-width: 560px;
}

.social-thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: cover;
    border: 1px solid var(--crt-border);
    border-radius: 8px;
    background: #fff;
}

.social-preview {
    line-height: 1.65;
    white-space: normal;
}

.social-media-preview {
    border: 1px solid var(--crt-border);
    border-radius: 8px;
    background: #fff;
    padding: .5rem;
}

.social-media-preview img {
    display: block;
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 6px;
}

.analytics-meter {
    border: 1px solid var(--crt-border);
    border-radius: 10px;
    padding: 1rem;
    height: 100%;
    background: #fff;
}

.analytics-meter-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.analytics-meter-label {
    color: #5f6f86;
    font-size: .875rem;
}

/* ---------- Marketing: site navigation ---------- */

.skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 100;
    padding: .5rem .9rem;
    border-radius: 8px;
    background: var(--crt-primary);
    color: #fff;
}

.site-nav { padding: 0; }
.site-nav .container { min-height: 74px; gap: 1rem; }

.site-nav .navbar-nav { gap: .15rem; }

.site-nav .nav-link {
    color: #334155;
    font-size: .95rem;
    font-weight: 600;
    padding: .45rem .8rem;
    border-radius: 8px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus { color: var(--crt-primary); background: var(--crt-primary-soft); }
.site-nav .nav-link.active { color: var(--crt-primary); }

.site-dropdown {
    min-width: 340px;
    padding: .5rem;
    border: 1px solid var(--crt-border);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .14);
}

.site-dropdown .dropdown-header {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a97a8;
}

.site-dropdown .dropdown-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .6rem .65rem;
    border-radius: 8px;
    white-space: normal;
}

.site-dropdown .dropdown-item:hover { background: var(--crt-primary-soft); }

.site-dropdown .dropdown-item > i {
    flex-shrink: 0;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--crt-primary-soft);
    color: var(--crt-primary);
}

.site-dropdown .dropdown-item strong { display: block; font-size: .9rem; }
.site-dropdown .dropdown-item small { display: block; color: #64748b; font-size: .78rem; line-height: 1.4; }
.site-dropdown .dropdown-item-plain { justify-content: center; font-weight: 700; color: var(--crt-primary); }

/* ---------- Marketing: interior page hero ---------- */

.page-hero {
    padding: clamp(3rem, 6vw, 4.75rem) 0;
    background: #fff;
    border-bottom: 1px solid var(--crt-border);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 3rem;
    align-items: center;
}

.page-hero h1 {
    max-width: 20ch;
    margin: 0;
    color: #101828;
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    line-height: 1.08;
    font-weight: 800;
}

.page-hero-plain h1 { max-width: 24ch; }
.page-hero .marketing-lead { max-width: 62ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); }

.page-hero-photo {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .16);
}

.page-hero-photo img {
    display: block;
    width: 100%;
    height: clamp(240px, 30vw, 340px);
    object-fit: cover;
}

.page-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
    font-size: .82rem;
    font-weight: 600;
    color: #94a3b8;
}

.page-crumbs a { color: #64748b; text-decoration: none; }
.page-crumbs a:hover { color: var(--crt-primary); }

/* ---------- Marketing: content blocks ---------- */

.split-narrow {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 2.5rem;
}

.split-narrow h2 {
    margin: 0;
    color: #101828;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    line-height: 1.15;
    font-weight: 800;
}

.lead-body {
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.75;
}

.lead-body + .lead-body { margin-top: 1rem; }

.cross-list { margin: 1.25rem 0 0; padding: 0; list-style: none; }

.cross-list li {
    position: relative;
    padding: .35rem 0 .35rem 1.7rem;
    color: #64748b;
    font-size: .95rem;
}

.cross-list li::before {
    content: "\F62A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: #e5484d;
}

.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li { padding: .35rem 0; color: #64748b; font-size: .95rem; }

.section-footnote { margin: 2rem 0 0; }

.text-link {
    color: var(--crt-primary);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover { text-decoration: underline; }
.text-link i { font-size: .85em; }

/* ---------- Marketing: module and capability grids ---------- */

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.module-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--crt-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .05);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.module-card:hover {
    transform: translateY(-2px);
    border-color: var(--crt-primary);
    box-shadow: 0 18px 44px rgba(31, 111, 235, .14);
}

.module-card > i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: var(--crt-primary-soft);
    color: var(--crt-primary);
    font-size: 1.2rem;
}

.module-card h3 { margin: 0 0 .5rem; color: #101828; font-size: 1.05rem; font-weight: 800; }
.module-card p { margin: 0 0 1rem; color: #64748b; font-size: .92rem; line-height: 1.6; }

.module-link { color: var(--crt-primary); font-size: .85rem; font-weight: 700; }
.module-card-muted > i { background: #eef1f6; color: #64748b; }

.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.capability-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.capability-grid article {
    padding: 1.5rem;
    border: 1px solid var(--crt-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .05);
}

.capability-grid i {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem;
    border-radius: 10px;
    background: var(--crt-primary-soft);
    color: var(--crt-primary);
    font-size: 1.15rem;
}

.capability-grid h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 800; }
.capability-grid p { margin: 0; color: #64748b; line-height: 1.65; font-size: .95rem; }

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.pain-grid article {
    padding: 1.35rem;
    border-left: 3px solid #e5484d;
    border-radius: 0 10px 10px 0;
    background: #fff;
}

.pain-grid h3 { margin: 0 0 .45rem; font-size: 1rem; font-weight: 800; }
.pain-grid p { margin: 0; color: #64748b; font-size: .93rem; line-height: 1.6; }

/* ---------- Marketing: workflow and stages ---------- */

.flow-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: flow;
}

.flow-list li {
    display: flex;
    gap: .9rem;
    padding: 1.35rem;
    border: 1px solid var(--crt-border);
    border-radius: 12px;
    background: #fff;
}

.flow-number {
    flex-shrink: 0;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #172033;
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
}

.flow-list h3 { margin: 0 0 .35rem; font-size: 1rem; font-weight: 800; }
.flow-list p { margin: 0; color: #64748b; font-size: .92rem; line-height: 1.6; }

.stage-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1.5rem;
    padding-bottom: 2.5rem;
}

.stage-marker { display: flex; flex-direction: column; align-items: center; }

.stage-marker span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--crt-primary);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.stage-line {
    flex: 1;
    width: 2px;
    margin-top: .75rem;
    background: linear-gradient(#dbe3ee, rgba(219, 227, 238, 0));
}

.stage-body h2 {
    margin: .35rem 0 .75rem;
    color: #101828;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 800;
}

/* ---------- Marketing: spec lists ---------- */

.spec-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 2.5rem;
    align-items: start;
}

.spec-layout h2 {
    margin: 0 0 .75rem;
    color: #101828;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    font-weight: 800;
}

.spec-list { margin: 0; }

.spec-list > div {
    display: grid;
    grid-template-columns: minmax(120px, .4fr) minmax(0, 1fr);
    gap: 1rem;
    padding: .85rem 0;
    border-top: 1px solid var(--crt-border);
}

.spec-list > div:first-child { border-top: 0; }
.spec-list dt { color: #101828; font-size: .9rem; font-weight: 700; }
.spec-list dd { margin: 0; color: #64748b; font-size: .93rem; line-height: 1.55; }
.spec-list-compact { margin-top: 1rem; }

.feature-visual-plain { padding-bottom: 0; }

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: .4rem .85rem;
    border: 1px solid var(--crt-border);
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: .88rem;
    font-weight: 600;
}

/* ---------- Marketing: pricing matrix ---------- */

.pricing-section .pricing-grid { align-items: stretch; }
.pricing-grid h2 { margin: 0 0 .35rem; font-size: 1.2rem; font-weight: 800; }

.pricing-save {
    display: inline-block;
    margin-left: .35rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: #e6f7ee;
    color: #067647;
    font-size: .72rem;
    font-weight: 700;
}

.matrix-wrap {
    overflow-x: auto;
    border: 1px solid var(--crt-border);
    border-radius: 12px;
    background: #fff;
}

.matrix-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.matrix-table th,
.matrix-table td {
    padding: .85rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eef1f6;
    font-size: .92rem;
}

.matrix-table thead th {
    position: sticky;
    top: 0;
    background: #f6f8fb;
    color: #101828;
    font-weight: 800;
}

.matrix-table thead th small {
    display: block;
    color: #64748b;
    font-size: .78rem;
    font-weight: 600;
}

.matrix-table tbody th { color: #475569; font-weight: 600; }
.matrix-table td { text-align: center; }

.matrix-group th {
    background: #f6f8fb;
    color: #101828;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.matrix-yes { color: #12b76a; font-size: 1.1rem; }
.matrix-no { color: #cbd5e1; }
.matrix-text { color: #475569; font-weight: 600; font-size: .88rem; }

/* ---------- Marketing: contact and FAQ pages ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.contact-card {
    padding: 1.6rem;
    border: 1px solid var(--crt-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .05);
}

.contact-card i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem;
    border-radius: 10px;
    background: var(--crt-primary-soft);
    color: var(--crt-primary);
    font-size: 1.2rem;
}

.contact-card h2 { margin: 0 0 .5rem; font-size: 1.1rem; font-weight: 800; }
.contact-card p { color: #64748b; font-size: .93rem; line-height: 1.6; }
.contact-link { color: var(--crt-primary); font-weight: 700; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }

.faq-layout {
    display: grid;
    grid-template-columns: minmax(200px, .3fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.faq-nav { position: sticky; top: 100px; }

.faq-nav-title {
    margin: 0 0 .6rem;
    color: #8a97a8;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.faq-nav ul { margin: 0; padding: 0; list-style: none; }
.faq-nav li { padding: .3rem 0; }

.faq-nav a {
    color: #475569;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
}

.faq-nav a:hover { color: var(--crt-primary); }

.faq-group { padding-bottom: 2.5rem; }

.faq-group h2 {
    margin: 0 0 1rem;
    color: #101828;
    font-size: 1.4rem;
    font-weight: 800;
}

/* ---------- Marketing: footer columns ---------- */

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.footer-brand p { max-width: 38ch; margin-bottom: 1.25rem; font-size: .93rem; line-height: 1.65; }

.footer-heading {
    margin: 0 0 .85rem;
    color: #101828;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { padding: .28rem 0; }

.footer-links a {
    color: #64748b;
    font-size: .9rem;
    text-decoration: none;
}

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

/* ---------- Super admin console ---------- */

.admin-nav {
    gap: .25rem;
    border-bottom: 1px solid var(--crt-border);
    padding-bottom: .75rem;
}

.admin-nav .nav-link {
    color: #4a5a72;
    font-size: .875rem;
    font-weight: 600;
    padding: .35rem .75rem;
    border-radius: 8px;
}

.admin-nav .nav-link:hover { background: var(--crt-primary-soft); color: var(--crt-primary); }

.admin-nav .nav-link.active { background: var(--crt-primary); color: #fff; }

/* ---------- Legal pages ---------- */

.legal-header {
    background: #fff;
    border-bottom: 1px solid var(--crt-border);
    padding: .875rem 0;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    color: #172033;
    font-weight: 700;
    text-decoration: none;
}

.legal-brand img {
    width: 176px;
    max-width: 44vw;
    height: auto;
    object-fit: contain;
}

.legal-nav {
    max-width: 760px;
}

.legal-nav a {
    color: #334155;
    text-decoration: none;
}

.legal-nav a:hover {
    color: var(--crt-primary);
    text-decoration: underline;
}

.legal-document {
    max-width: 820px;
    background: #fff;
    border: 1px solid var(--crt-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 18px rgba(16, 24, 40, .05);
}

.legal-document h1 {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.legal-document h2 {
    font-size: 1.125rem;
    margin-top: 1.75rem;
}

.legal-document p,
.legal-document li {
    line-height: 1.7;
}

/* ---------- Auth screens ---------- */

body.auth-body { background: var(--crt-surface); }

.auth-wrapper { display: flex; min-height: 100vh; }

.auth-pitch {
    flex: 1 1 50%;
    background: linear-gradient(160deg, #0f1729 0%, #14315e 100%);
    color: #fff;
    align-items: center;
    padding: 4rem;
}

.auth-pitch h2 { font-weight: 700; max-width: 22ch; }
.auth-pitch .lead { color: #b9c8de; max-width: 46ch; }
.auth-points { list-style: none; padding: 0; margin-top: 2rem; color: #cddaeb; }
.auth-points li { margin-bottom: .5rem; }
.auth-points i { color: #58c98a; margin-right: .5rem; }

.auth-logo {
    width: 240px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 10px 12px;
}

.auth-logo-sm {
    width: 190px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.auth-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border: 1px solid var(--crt-border);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(16, 24, 40, .06);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0;
    color: var(--bs-secondary-color);
    font-size: .875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--crt-border);
}

.auth-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--crt-border);
    font-size: .8125rem;
}

.auth-legal-links a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.auth-legal-links a:hover {
    color: var(--crt-primary);
    text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    .marketing-nav {
        min-height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .marketing-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .marketing-hero {
        min-height: auto;
    }

    .marketing-hero-bg {
        align-items: flex-start;
        justify-content: center;
        padding: 8rem 1rem 0;
        opacity: .08;
    }

    .marketing-feature-grid,
    .marketing-link-grid,
    .marketing-two-col,
    .marketing-footer-grid,
    .hero-grid,
    .feature-row,
    .step-grid,
    .audience-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .75rem; }

    .page-hero-grid,
    .split-narrow,
    .spec-layout,
    .faq-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-nav .navbar-collapse { padding-bottom: 1rem; }
    .site-nav .marketing-cta-group { margin: .75rem 0 0; }
    .site-dropdown { min-width: 0; box-shadow: none; }

    .faq-nav { position: static; }

    .stage-row { grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; }
    .stage-marker span { width: 40px; height: 40px; font-size: 1rem; }

    .footer-grid { gap: 1.75rem; }

    .marketing-hero h1 { font-size: clamp(2.1rem, 8vw, 3rem); }

    .marketing-hero-inner { padding-top: 3rem; padding-bottom: 3rem; }

    /* Keep the copy above its illustration on every feature row. */
    .feature-row.reverse .feature-visual { order: 0; }

    .feature-row { gap: 1.75rem; }

    /* Stack the data card under the photo instead of overlapping it. */
    .feature-visual { padding-bottom: 0; }

    .feature-visual .mini-card,
    .feature-row.reverse .feature-visual .mini-card {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }

    .marketing-feature-grid article {
        min-height: 0;
    }

    .marketing-footer nav {
        justify-content: flex-start;
    }

    .marketing-footer-bottom {
        display: block;
    }

    .marketing-footer-bottom span {
        display: block;
        margin-top: .45rem;
    }

    .marketing-cta-group { margin-left: auto; }

    .app-sidebar {
        position: fixed;
        z-index: 1040;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

    .app-sidebar.open { transform: translateX(0); }
    .app-content { padding: 1rem; }
}
