/* ============================================================
   Corporate Check — Design System
   Identity: an institutional registry with the quiet authority
   of a certificate — navy + a restrained gold seal accent,
   warm paper background, serif headings, monospace data.
   ============================================================ */

:root {
    --ink:            #0E1B2E;
    --navy:           #14264A;
    --navy-2:         #1F3A66;
    --navy-tint:      #EEF2F8;
    --gold:           #B08A3E;
    --gold-light:     #F4E9D2;
    --paper:          #F7F5EF;
    --surface:        #FFFFFF;
    --line:           #E4E0D3;
    --line-soft:      #ECE9DE;
    --muted:          #6B7280;
    --muted-2:        #8B92A0;

    --status-active:      #1E7A4C;
    --status-active-bg:   #E6F4EC;
    --status-warn:        #B4691E;
    --status-warn-bg:     #FBEEDF;
    --status-expired:     #B23A3A;
    --status-expired-bg:  #FBE7E7;

    --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

    --radius: 10px;
    --radius-sm: 6px;
    --shadow-card: 0 1px 2px rgba(14,27,46,.04), 0 6px 20px rgba(14,27,46,.06);
    --shadow-card-hover: 0 2px 4px rgba(14,27,46,.06), 0 12px 28px rgba(14,27,46,.10);
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

* { box-sizing: border-box; }

html, body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .cc-serif {
    font-family: var(--font-display);
    color: var(--navy);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.text-monospace, .cc-mono, table td.cc-num { font-family: var(--font-mono); }

a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--gold); }

::selection { background: var(--gold-light); color: var(--ink); }

/* ---------- Top navigation ---------- */

.cc-nav {
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
}

.cc-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cc-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #fff;
    flex-shrink: 0;
}
.cc-brand:hover { color: #fff; }

.cc-brand-seal {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cc-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.cc-brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.cc-brand-tag { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #9FB0CC; }

.cc-nav-links { display: flex; gap: .25rem; flex: 1; }

.cc-nav-link {
    color: #C7D2E5;
    padding: .5rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .89rem;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.cc-nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.cc-nav-link.active { color: #fff; background: rgba(255,255,255,.10); }

.cc-nav-user { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

.cc-user-chip { display: flex; align-items: center; gap: .55rem; }

.cc-user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
}

.cc-user-meta { display: flex; flex-direction: column; line-height: 1.1; }
.cc-user-name { color: #fff; font-size: .82rem; font-weight: 500; }
.cc-user-role { color: #9FB0CC; font-size: .7rem; text-transform: capitalize; }

.cc-logout {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #C7D2E5;
    border: 1px solid rgba(255,255,255,.18);
    transition: all .15s ease;
}
.cc-logout:hover { color: #fff; border-color: var(--gold); background: rgba(255,255,255,.06); }

/* Guest nav (logged-out state) */
.cc-nav-guest { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
.cc-nav-cta {
    background: var(--gold); color: #14264A !important; border: none;
    font-weight: 600; padding: .5rem 1.1rem;
}
.cc-nav-cta:hover { background: #C69C4A; }

/* Mobile nav toggle (hidden on desktop) */
.cc-nav-toggle {
    display: none;
    margin-left: auto;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,.18);
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    align-items: center; justify-content: center;
}
.cc-nav-toggle:hover { border-color: var(--gold); }

/* On large screens the nav links/user menu should always be visible,
   not collapsed. Bootstrap's .collapse class sets display:none by
   default until JS adds .show — this overrides that at desktop width. */
@media (min-width: 992px) {
    .cc-nav-collapse.collapse:not(.show) {
        display: flex !important;
    }
    .cc-nav-collapse {
        display: flex;
        align-items: center;
        flex: 1;
        gap: 1.5rem;
    }
}

/* ---------- Layout shell ---------- */

.cc-main { max-width: 1180px; padding-top: 1.75rem; padding-bottom: 3rem; }
.cc-main-full { padding: 0; }
.cc-flash-mount { max-width: 1180px; margin: 0 auto; }

.cc-footer { border-top: 1px solid var(--line); margin-top: 2rem; }
.cc-footer-inner {
    max-width: 1180px; margin: 0 auto; padding: 1.25rem 1.5rem;
    color: var(--muted-2); font-size: .8rem; display: flex; gap: .5rem;
}
.cc-footer-dot { color: var(--line); }

/* ---------- Cards ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.card-title {
    font-family: var(--font-display);
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Stat cards — used on both dashboards */
.stat-card {
    border: 1px solid var(--line-soft);
    border-left: none;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    animation: cc-rise .35s ease both;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.stat-card::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--navy);
}
.stat-card .card-body { padding: 1.35rem 1.5rem; }
.stat-card .text-muted.small {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
    font-weight: 600; color: var(--muted) !important;
}
.stat-card .fs-3 {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--navy);
    margin-top: .35rem;
}
.stat-card[style*="fd7e14"]::before { background: var(--status-warn) !important; }
.stat-card[style*="dc3545"]::before { background: var(--status-expired) !important; }
.stat-card .text-warning { color: var(--status-warn) !important; }
.stat-card .text-danger { color: var(--status-expired) !important; }
.stat-card .text-success { color: var(--status-active) !important; }

@keyframes cc-rise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: .05s; }
.stat-card:nth-child(3) { animation-delay: .1s; }
.stat-card:nth-child(4) { animation-delay: .15s; }

/* ---------- Buttons ---------- */

.btn { font-weight: 500; border-radius: var(--radius-sm); font-size: .89rem; padding: .5rem 1.1rem; }

.btn-primary {
    background: var(--navy); border-color: var(--navy);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--navy-2); border-color: var(--navy-2);
}

.btn-outline-primary, .btn-outline-secondary {
    color: var(--navy); border-color: var(--line);
}
.btn-outline-primary:hover, .btn-outline-secondary:hover {
    background: var(--navy-tint); border-color: var(--navy); color: var(--navy);
}

.btn-outline-danger { color: var(--status-expired); border-color: var(--status-expired); }
.btn-outline-danger:hover { background: var(--status-expired); border-color: var(--status-expired); }

.btn-outline-success { color: var(--status-active); border-color: var(--status-active); }
.btn-outline-success:hover { background: var(--status-active); border-color: var(--status-active); }

.btn-outline-light { border-color: rgba(255,255,255,.35); }

.btn-link { color: var(--muted); }
.btn-link:hover { color: var(--navy); }

/* "Renew Now" — the small gold seal-style call to action */
a.btn-outline-primary[data-renew] {
    border-color: var(--gold);
    color: #8a6a2c;
    font-weight: 600;
}
a.btn-outline-primary[data-renew]:hover {
    background: var(--gold); border-color: var(--gold); color: #fff;
}

/* ---------- Forms ---------- */

.form-label { font-size: .84rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }

.form-control, .form-select {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .55rem .8rem;
    font-size: .92rem;
    background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(176,138,62,.15);
}

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

.table { font-size: .89rem; margin-bottom: 0; }
.table thead th {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--line);
    padding-bottom: .6rem;
}
.table td { border-color: var(--line-soft); vertical-align: middle; padding-top: .75rem; padding-bottom: .75rem; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: var(--navy-tint); }

/* ---------- Status seals (badges) ---------- */

.badge { font-weight: 600; font-size: .72rem; letter-spacing: .01em; padding: .4em .7em; border-radius: 999px; }

.status-active, .status-expiring_soon, .status-expired {
    display: inline-flex; align-items: center; gap: .35em;
    color: #fff !important;
    
}
.status-active { background: var(--status-active-bg) !important; color: var(--status-active) !important; border: 1px solid var(--status-active);     padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px; border-radius: 18px; }
.status-expiring_soon { background: var(--status-warn-bg) !important; color: var(--status-warn) !important; border: 1px solid var(--status-warn);     padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px; border-radius: 18px; }
.status-expired { background: var(--status-expired-bg) !important; color: var(--status-expired) !important; border: 1px solid var(--status-expired);     padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px; border-radius: 18px; }

.status-active::before { content: "\2713"; font-weight: 700; }
.status-expiring_soon::before { content: "!"; font-weight: 700; }
.status-expired::before { content: "\00D7"; font-weight: 700; }

.badge.bg-success { background: var(--status-active-bg) !important; color: var(--status-active) !important; border: 1px solid var(--status-active); }
.badge.bg-secondary { background: #EDEDED !important; color: var(--muted) !important; border: 1px solid var(--line); }

/* ---------- Alerts ---------- */

.alert-danger {
    background: var(--status-expired-bg); border: 1px solid #EAC4C4; color: #8a2c2c; border-radius: var(--radius-sm);
}

/* ---------- Auth pages (login / register) ---------- */

.cc-auth-shell {
    min-height: calc(100vh - 71px);
    display: flex;
    margin: -1.75rem -1.5rem 0;
}

.cc-auth-brand {
    flex: 1;
    background: var(--navy);
    color: #fff;
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}
.cc-auth-brand::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(176,138,62,.18), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(176,138,62,.10), transparent 40%);
    pointer-events: none;
}
.cc-auth-seal {
    width: 64px; height: 64px; border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--gold);
    margin-bottom: 1.75rem;
}
.cc-auth-brand h1 {
    color: #fff; font-size: 2.1rem; max-width: 380px; margin-bottom: 1rem;
}
.cc-auth-brand p { color: #B9C4D9; max-width: 360px; font-size: .95rem; line-height: 1.6; }
.cc-auth-list { list-style: none; padding: 0; margin-top: 2rem; }
.cc-auth-list li { display: flex; gap: .6rem; color: #C7D2E5; font-size: .87rem; margin-bottom: .65rem; }
.cc-auth-list i { color: var(--gold); }

.cc-auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--paper);
}

.cc-auth-card {
    width: 100%; max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2.25rem;
}
.cc-auth-card h4 { margin-bottom: .35rem; }
.cc-auth-sub { color: var(--muted); font-size: .87rem; margin-bottom: 1.5rem; }

@media (min-width: 992px) {
    .cc-auth-brand { display: flex; }
}

/* ---------- Buttons: loading state (JS toggles this class) ---------- */

.btn.cc-loading { pointer-events: none; opacity: .75; position: relative; color: transparent !important; }
.btn.cc-loading::after {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: 16px; height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cc-spin .6s linear infinite;
}
.btn-outline-primary.cc-loading::after,
.btn-outline-secondary.cc-loading::after,
.btn-link.cc-loading::after {
    border-color: rgba(20,38,74,.25); border-top-color: var(--navy);
}
@keyframes cc-spin { to { transform: rotate(360deg); } }

/* ---------- Misc ---------- */

hr { border-color: var(--line); opacity: 1; }
.text-muted { color: var(--muted) !important; }

/* ---------- SweetAlert2 theming ---------- */

.swal2-popup.cc-swal, .swal2-popup.cc-toast {
    font-family: var(--font-body) !important;
    border-radius: var(--radius) !important;
}
.swal2-popup.cc-swal .swal2-title { font-family: var(--font-display); color: var(--navy); }
.swal2-popup.cc-toast { box-shadow: var(--shadow-card-hover); }
.swal2-timer-progress-bar { background: var(--gold) !important; }

/* ---------- Notification bell ---------- */

.cc-bell-wrap { position: relative; }
.cc-bell {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    background: transparent;
    color: #C7D2E5;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transition: all .15s ease;
}
.cc-bell:hover { color: #fff; border-color: var(--gold); background: rgba(255,255,255,.06); }
.cc-bell-count {
    position: absolute; top: -4px; right: -4px;
    background: var(--gold);
    color: #14264A;
    font-size: .62rem; font-weight: 700;
    min-width: 17px; height: 17px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--navy);
}
.cc-bell-menu {
    width: 340px; max-height: 380px; overflow-y: auto;
    border-radius: var(--radius); border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-card-hover); padding: .5rem 0;
}
.cc-bell-title {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
    font-weight: 600; color: var(--muted); padding: .4rem 1rem .6rem;
}
.cc-bell-empty { padding: 1rem; color: var(--muted); font-size: .85rem; }
.cc-bell-item {
    display: flex; gap: .6rem; align-items: flex-start;
    padding: .55rem 1rem; border-top: 1px solid var(--line-soft);
}
.cc-bell-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: .35rem; flex-shrink: 0; }
.cc-bell-dot--warn { background: var(--status-warn); }
.cc-bell-dot--expired { background: var(--status-expired); }
.cc-bell-item-title { font-size: .83rem; font-weight: 500; color: var(--ink); }
.cc-bell-item-sub { font-size: .76rem; color: var(--muted); margin-top: .1rem; }

/* ---------- Compliance score gauge ---------- */

.cc-score-card {
    background: var(--navy);
    border-radius: var(--radius);
    color: #fff;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
}
.cc-score-ring {
    width: 84px; height: 84px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: conic-gradient(var(--gold) calc(var(--pct) * 1%), rgba(255,255,255,.15) 0);
    position: relative;
}
.cc-score-ring::before {
    content: ""; position: absolute; inset: 7px;
    background: var(--navy); border-radius: 50%;
}
.cc-score-num {
    position: relative; font-family: var(--font-mono); font-size: 1.35rem; font-weight: 600;
}
.cc-score-body h3 { color: #fff; margin-bottom: .2rem; font-size: 1.1rem; }
.cc-score-summary { color: #C7D2E5; font-size: .88rem; margin: 0; line-height: 1.5; }
.cc-score-badge {
    display: inline-block; margin-top: .5rem;
    font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
    padding: .25em .65em; border-radius: 999px;
}
.cc-score-badge--active { background: var(--status-active-bg); color: var(--status-active); }
.cc-score-badge--warn { background: var(--status-warn-bg); color: var(--status-warn); }
.cc-score-badge--expired { background: var(--status-expired-bg); color: var(--status-expired); }

/* Fixed-height wrapper for Chart.js canvases (admin/reports.php).
   Chart.js can't size a canvas dropped into an unconstrained
   Bootstrap card-body — it needs an ancestor with a real height. */
.cc-chart-box { position: relative; height: 220px; width: 100%; }

/* Team member role badge (team.php, own row where the role isn't editable) */
.cc-role-badge {
    background: #EEF1F7; color: var(--navy-2);
    border: 1px solid var(--line);
    font-weight: 600; font-size: .72rem; letter-spacing: .01em; padding: .4em .7em; border-radius: 999px;
}

/* ============================================================
   Landing page
   ============================================================ */

.cc-lp-hero {
    background: var(--navy);
    background-image:
        radial-gradient(circle at 88% 8%, rgba(176,138,62,.22), transparent 45%),
        radial-gradient(circle at 6% 95%, rgba(176,138,62,.14), transparent 40%);
    color: #fff;
    padding: 4.5rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}
.cc-lp-hero-inner {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem;
    align-items: center;
}
.cc-lp-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    border: 1px solid rgba(255,255,255,.22);
    color: var(--gold-light);
    font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
    padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.cc-lp-hero h1 {
    color: #fff; font-size: 2.75rem; line-height: 1.15; max-width: 560px; margin-bottom: 1.15rem;
}
.cc-lp-hero p.cc-lp-lead {
    color: #C7D2E5; font-size: 1.08rem; line-height: 1.65; max-width: 500px; margin-bottom: 2rem;
}
.cc-lp-hero-ctas { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.cc-lp-hero-ctas .btn { padding: .7rem 1.4rem; font-size: .95rem; }
.cc-lp-hero-note { color: #8FA0C0; font-size: .82rem; display: flex; align-items: center; gap: .4rem; }

.cc-lp-hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.cc-lp-stat-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: #fff; }
.cc-lp-stat-label { font-size: .74rem; color: #9FB0CC; text-transform: uppercase; letter-spacing: .05em; }

/* Hero preview card (mock registry snapshot) */
.cc-lp-preview {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    padding: 1.5rem;
    position: relative;
}
.cc-lp-preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cc-lp-preview-head h5 { margin: 0; font-size: .95rem; color: var(--navy); }
.cc-lp-preview-row {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .65rem 0; border-top: 1px solid var(--line-soft);
    font-size: .84rem;
}
.cc-lp-preview-row:first-of-type { border-top: none; }
.cc-lp-preview-agency { font-weight: 600; color: var(--ink); }
.cc-lp-preview-sub { color: var(--muted); font-size: .76rem; }

/* Agency strip */
.cc-lp-agencies {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem;
}
.cc-lp-agencies-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
}
.cc-lp-agencies-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.cc-lp-chip {
    border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem;
    font-size: .8rem; font-weight: 600; color: var(--navy-2); background: var(--navy-tint);
}

/* Generic section shell */
.cc-lp-section { padding: 4.5rem 1.5rem; }
.cc-lp-section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cc-lp-section-inner { max-width: 1180px; margin: 0 auto; }
.cc-lp-section-head { max-width: 620px; margin: 0 auto 3rem; text-align: center; }
.cc-lp-kicker {
    font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
    color: var(--gold); margin-bottom: .6rem; display: block;
}
.cc-lp-section-head h2 { font-size: 2rem; margin-bottom: .75rem; }
.cc-lp-section-head p { color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* Problem / pain points */
.cc-lp-pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cc-lp-pain-card {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow-card);
}
.cc-lp-pain-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--status-expired-bg); color: var(--status-expired);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1rem;
}
.cc-lp-pain-card h4 { font-size: 1.02rem; margin-bottom: .5rem; }
.cc-lp-pain-card p { color: var(--muted); font-size: .89rem; line-height: 1.55; margin: 0; }

/* Feature grid */
.cc-lp-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cc-lp-feature-card {
    background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: 1.75rem; transition: transform .15s ease, box-shadow .15s ease;
}
.cc-lp-feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); background: var(--surface); }
.cc-lp-feature-icon {
    width: 46px; height: 46px; border-radius: 10px;
    background: var(--navy); color: var(--gold-light);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1.1rem;
}
.cc-lp-feature-card h4 { font-size: 1.04rem; margin-bottom: .5rem; }
.cc-lp-feature-card p { color: var(--muted); font-size: .89rem; line-height: 1.55; margin: 0; }

/* Steps */
.cc-lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: cc-step; }
.cc-lp-step { position: relative; padding-left: 3.25rem; }
.cc-lp-step::before {
    counter-increment: cc-step; content: counter(cc-step);
    position: absolute; left: 0; top: 0;
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    background: var(--navy); color: var(--gold-light);
    font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
    display: flex; align-items: center; justify-content: center;
}
.cc-lp-step h4 { font-size: 1rem; margin-bottom: .4rem; }
.cc-lp-step p { color: var(--muted); font-size: .88rem; line-height: 1.55; margin: 0; }

/* Audience cards */
.cc-lp-audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cc-lp-audience-card {
    border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.75rem;
    background: var(--surface); box-shadow: var(--shadow-card); text-align: center;
}
.cc-lp-audience-card i { font-size: 1.6rem; color: var(--gold); margin-bottom: .9rem; display: block; }
.cc-lp-audience-card h4 { font-size: 1rem; margin-bottom: .5rem; }
.cc-lp-audience-card p { color: var(--muted); font-size: .87rem; line-height: 1.55; margin: 0; }

/* CTA band */
.cc-lp-cta-band {
    background: var(--navy);
    background-image: radial-gradient(circle at 90% 20%, rgba(176,138,62,.2), transparent 45%);
    color: #fff; text-align: center; padding: 4rem 1.5rem;
}
.cc-lp-cta-band h2 { color: #fff; font-size: 1.9rem; max-width: 560px; margin: 0 auto .9rem; }
.cc-lp-cta-band p { color: #C7D2E5; max-width: 480px; margin: 0 auto 2rem; font-size: 1rem; }
.cc-lp-cta-band .btn { padding: .75rem 1.6rem; font-size: .96rem; }

/* ============================================================
   Responsive — tablet & mobile
   ============================================================ */

@media (max-width: 991.98px) {
    .cc-nav-inner { padding: 0 1rem; gap: 1rem; }
    .cc-nav-toggle { display: flex; }

    .cc-nav-collapse {
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: var(--navy);
        border-bottom: 3px solid var(--gold);
        padding: .75rem 1rem 1.25rem;
        box-shadow: 0 12px 24px rgba(14,27,46,.18);
        z-index: 1030;
    }
    .cc-nav-collapse .cc-nav-links { flex-direction: column; gap: .15rem; }
    .cc-nav-collapse .cc-nav-link { padding: .7rem .75rem; }
    .cc-nav-collapse .cc-nav-user {
        margin: .75rem 0 0; padding-top: .9rem;
        border-top: 1px solid rgba(255,255,255,.12);
        justify-content: space-between;
    }

    .cc-score-card { flex-wrap: wrap; text-align: center; justify-content: center; }
    .cc-score-body { text-align: left; }

    .cc-lp-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .cc-lp-hero h1, .cc-lp-hero p.cc-lp-lead { max-width: 100%; margin-left: auto; margin-right: auto; }
    .cc-lp-hero-ctas, .cc-lp-hero-note { justify-content: center; }
    .cc-lp-hero-stats { justify-content: center; }
    .cc-lp-preview { max-width: 460px; margin: 0 auto; }

    .cc-lp-pain-grid, .cc-lp-feature-grid, .cc-lp-steps, .cc-lp-audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .cc-main { padding-left: .5rem; padding-right: .5rem; }
    .cc-brand-tag { display: none; }
    .cc-auth-card { padding: 1.5rem; }
    .cc-auth-form-side { padding: 2rem 1rem; }
    .cc-score-card { padding: 1.25rem; }
    .cc-footer-inner { flex-direction: column; gap: .15rem; text-align: center; }
    .stat-card .card-body { padding: 1.1rem 1.2rem; }
    .cc-bell-menu { width: min(340px, 88vw); }

    .cc-lp-hero { padding: 3.25rem 1.25rem 3.5rem; }
    .cc-lp-hero h1 { font-size: 2.1rem; }
    .cc-lp-section { padding: 3rem 1.25rem; }
    .cc-lp-section-head h2 { font-size: 1.6rem; }
    .cc-lp-pain-grid, .cc-lp-feature-grid, .cc-lp-steps, .cc-lp-audience-grid {
        grid-template-columns: 1fr;
    }
    .cc-lp-agencies-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; }
    .cc-lp-cta-band h2 { font-size: 1.5rem; }
}

@media (max-width: 575.98px) {
    html, body { font-size: 14.5px; }
    .cc-nav-inner { height: 60px; }
    .cc-nav-collapse { top: 60px; }
    .cc-auth-card { padding: 1.25rem; }
}
