/* CaseGuard design tokens — ported 1:1 from the cloud-app design system
   (webapp/apps/cloud-app/src/styles/globals.css light theme). HSL triplets so
   they can be consumed via hsl(var(--token)) exactly like the React app. */
:root {
    --cg-background: 0 0% 100%;
    --cg-foreground: 222.2 47.4% 11.2%;
    --cg-card: 210 40% 99.2%;
    --cg-primary: 216 100% 50%; /* caseguard.com brand blue #0066ff */
    --cg-primary-hover: 220 100% 45%; /* deeper CTA blue ~#0050ff */
    --cg-primary-foreground: 0 0% 100%;
    --cg-secondary: 210 40% 95%;
    --cg-secondary-hover: 210 40% 90%;
    --cg-secondary-foreground: 222.2 47.4% 11.2%;
    --cg-muted: 210 40% 93%;
    --cg-muted-foreground: 215.4 16.3% 35%;
    --cg-border: 214.3 31.8% 88%;
    --cg-destructive: 0 84% 60%;
    --cg-destructive-hover: 0 84% 50%;
    --cg-success: 148.24 50.21% 35%;
    --cg-success-hover: 148.24 50.21% 28%;
    --cg-surface: 210 40% 98%;
    --cg-radius: 0.75rem;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif !important;
    color: hsl(var(--cg-foreground)) !important;
    background-color: hsl(var(--cg-surface));
    font-size: 16px !important;
    min-height: 100vh;
    margin: 0;
    padding-top: 68px;
    display: flex;
    flex-direction: column;
}

.cm-content-wrap {
    flex: 1 0 auto;
}

.cm-content {
    min-height: 100%;
    margin-bottom: 20px;
}

.cm-top-nav-bar {
    background-color: hsl(var(--cg-background)) !important;
    margin-bottom: 0;
    border: 0;
    border-bottom: 1px solid hsl(var(--cg-border));
    height: 68px;
    border-radius: 0;
    box-shadow: 0 1px 2px hsl(var(--cg-foreground) / 0.04);
    padding: 0;
}

.cm-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 68px;
    gap: 16px;
}

.cm-nav-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Vertical divider between brand and breadcrumb */
.cm-nav-divider {
    align-self: center;
    flex: 0 0 auto;
    width: 1px;
    height: 28px;
    margin: 0 16px;
    background: hsl(var(--cg-border));
}

.cm-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Gear / icon button (e.g. manage subscriptions) */
.cm-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: hsl(var(--cg-muted-foreground));
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .cm-icon-btn i {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .cm-icon-btn:hover {
        background-color: hsl(var(--cg-secondary));
        color: hsl(var(--cg-primary));
    }

.cm-brand {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.cm-brand-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1;
    margin-left: 11px;
}

.cm-brand-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: hsl(var(--cg-foreground));
}

.cm-brand-sub {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0;
    color: hsl(var(--cg-muted-foreground));
    margin-top: 3px;
}

/* Breadcrumb merged into the top bar */
.cm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

    .cm-breadcrumb a {
        color: hsl(var(--cg-muted-foreground));
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
        line-height: 1;
    }

        .cm-breadcrumb a:hover {
            color: hsl(var(--cg-primary));
        }

.cm-bc-sep {
    color: hsl(var(--cg-muted-foreground));
    font-size: 16px;
    line-height: 1;
}

.cm-bc-current {
    color: hsl(var(--cg-foreground));
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

/* Sign-in button (unauthenticated) */
.cm-signin-btn {
    display: inline-block;
    background-color: hsl(var(--cg-primary));
    color: hsl(var(--cg-primary-foreground)) !important;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 18px;
    border-radius: var(--cg-radius);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

    .cm-signin-btn:hover {
        background-color: hsl(var(--cg-primary-hover));
        color: hsl(var(--cg-primary-foreground)) !important;
        box-shadow: 0 2px 8px hsl(var(--cg-primary) / 0.35);
    }

/* Account avatar + dropdown (authenticated) */
.cm-avatar-btn {
    background: transparent;
    border: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

    .cm-avatar-btn.dropdown-toggle::after {
        margin-left: 8px;
        color: hsl(var(--cg-muted-foreground));
    }

.cm-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: hsl(var(--cg-primary));
    color: hsl(var(--cg-primary-foreground));
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.3px;
}

.cm-avatar-btn {
    height: 38px;
}

.cm-account-menu {
    border: 1px solid hsl(var(--cg-border));
    border-radius: var(--cg-radius);
    box-shadow: 0 8px 24px hsl(var(--cg-foreground) / 0.12);
    padding: 6px;
    min-width: 220px;
}

.cm-account-name {
    padding: 8px 12px;
    font-weight: 600;
    color: hsl(var(--cg-foreground));
    font-size: 14px;
    word-break: break-word;
}

.cm-account-menu .dropdown-item {
    border-radius: calc(var(--cg-radius) - 4px);
    padding: 8px 12px;
    color: hsl(var(--cg-foreground));
}

    .cm-account-menu .dropdown-item:hover,
    .cm-account-menu .dropdown-item:focus {
        background-color: hsl(var(--cg-secondary));
        color: hsl(var(--cg-foreground));
    }

@media (max-width: 575.98px) {
    .cm-breadcrumb {
        display: none;
    }

    .cm-brand-name {
        font-size: 18px;
    }
}

.placeholder {
    width: 160px !important;
}

.text-white {
    color: white !important;
}

.cm-menu-item {
    color: hsl(var(--cg-foreground)) !important;
    padding: 0px !important;
}

.cm-menu-item-active {
    background-color: hsl(var(--cg-secondary));
}

.cm-logo {
    border-style: none;
    height: 38px;
    width: auto;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.cm-panel-default {
    background: hsl(var(--cg-card)) !important;
    border: 1px solid hsl(var(--cg-border));
    border-radius: var(--cg-radius);
    box-shadow: 0 1px 2px hsl(var(--cg-foreground) / 0.04);
    padding: 24px;
}

.cm-section-heading {
    font-size: 22px;
    font-weight: 600;
    background-color: transparent;
    border-bottom: 2px solid hsl(var(--cg-primary));
    padding-bottom: 8px;
    margin-bottom: 20px;
    line-height: 32px;
    color: hsl(var(--cg-foreground));
}

.p10 {
    padding: 10px;
}

.w286 {
    width: 286px;
}

.w120 {
    width: 120px;
}

.w200 {
    width: 200px;
}

.mr250 {
    margin-right: 250px;
}

.mt100 {
    margin-top: 100px;
}

.mt200 {
    margin-top: 200px;
}

.mt20 {
    margin-top: 20px;
}

.mt40 {
    margin-top: 40px;
}

/* Shared button shape — flat, rounded, stable on hover (no size jump). */
.cm-button-default,
.cm-button-error,
.cm-button-success,
.cm-button-danger {
    color: hsl(var(--cg-primary-foreground)) !important;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    padding: 11px 22px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.43;
    border-radius: var(--cg-radius);
    user-select: none;
    margin-top: 25px;
    margin-bottom: 20px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.cm-button-default {
    background-color: hsl(var(--cg-primary));
}

    .cm-button-default:hover {
        background-color: hsl(var(--cg-primary-hover));
        color: hsl(var(--cg-primary-foreground));
        box-shadow: 0 2px 8px hsl(var(--cg-primary) / 0.35);
    }

.cm-button-error {
    background-color: hsl(var(--cg-secondary)) !important;
    color: hsl(var(--cg-secondary-foreground)) !important;
}

    .cm-button-error:hover {
        background-color: hsl(var(--cg-secondary-hover)) !important;
        color: hsl(var(--cg-secondary-foreground)) !important;
    }

.cm-button-success {
    background-color: hsl(var(--cg-success));
}

    .cm-button-success:hover {
        background-color: hsl(var(--cg-success-hover));
        color: hsl(var(--cg-primary-foreground));
        box-shadow: 0 2px 8px hsl(var(--cg-success) / 0.35);
    }

.cm-button-danger {
    background-color: hsl(var(--cg-destructive));
}

    .cm-button-danger:hover {
        background-color: hsl(var(--cg-destructive-hover));
        color: hsl(var(--cg-primary-foreground));
        box-shadow: 0 2px 8px hsl(var(--cg-destructive) / 0.35);
    }

/* Bootstrap primary + links aligned to brand */
.btn-primary {
    color: hsl(var(--cg-primary-foreground)) !important;
    background-color: hsl(var(--cg-primary)) !important;
    border-color: hsl(var(--cg-primary)) !important;
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: hsl(var(--cg-primary-hover)) !important;
        border-color: hsl(var(--cg-primary-hover)) !important;
    }

a {
    color: hsl(var(--cg-primary));
}

    a:hover {
        color: hsl(var(--cg-primary-hover));
    }

/* Welcome screen card (Bootstrap .card in _LandingPage.cshtml) */
.card {
    background: hsl(var(--cg-card));
    border: 1px solid hsl(var(--cg-border));
    border-radius: var(--cg-radius);
    box-shadow: 0 1px 3px hsl(var(--cg-foreground) / 0.06);
}

.cm-table {
    background: hsl(var(--cg-background)) !important;
    font-size: 16px;
}

    .cm-table th {
        padding: 10px !important;
    }

    .cm-table td {
        padding: 10px !important;
    }

.cm-table-head th {
    text-align: center;
    background: hsl(var(--cg-secondary)) !important;
    font-size: 14px;
}

.cm-ellipsis {
    text-align: center !important;
}

    .cm-ellipsis a {
        color: hsl(var(--cg-foreground)) !important;
    }

.cm-minus-circle {
    text-align: center;
}

    .cm-minus-circle a {
        color: hsl(var(--cg-foreground)) !important;
    }

.cm-link-button {
    cursor: pointer;
}

    .cm-link-button:hover {
        cursor: pointer;
        color: hsl(var(--cg-primary)) !important;
    }

.cm-container {
    margin-left: 80px;
}

.cm-footer, .cm-push {
    flex-shrink: 0;
    width: 100%;
    background-color: hsl(var(--cg-background));
    border-top: 1px solid hsl(var(--cg-border));
    font-size: 13px !important;
    color: hsl(var(--cg-muted-foreground)) !important;
    padding: 10px 0;
    line-height: 1.4;
}

.cm-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.cm-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

    .cm-footer-links a {
        color: hsl(var(--cg-muted-foreground));
        text-decoration: none;
    }

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

.cm-footer-copy {
    color: hsl(var(--cg-muted-foreground));
    white-space: nowrap;
    text-decoration: none;
}

    .cm-footer-copy:hover {
        color: hsl(var(--cg-primary));
    }

a.cm-dropdown-option {
    background: transparent !important;
    color: hsl(var(--cg-foreground));
    cursor: pointer;
}

    a.cm-dropdown-option:hover {
        background: transparent !important;
        color: hsl(var(--cg-primary)) !important;
        cursor: pointer;
    }

.mrtop {
    margin-top: 25px !important;
}

.maxwidth {
    width: 1300px !important;
}

.mr420 {
    margin-right: !important;
}

.red-star {
    color: hsl(var(--cg-destructive));
}

/* ===================== Landing page (marketing) ===================== */
.cg-eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: hsl(var(--cg-primary));
}

.cg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: hsl(var(--cg-primary) / 0.08);
    border: 1px solid hsl(var(--cg-primary) / 0.22);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--cg-primary));
}

/* Hero */
.cg-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    padding: 64px 0 72px;
    border-bottom: 1px solid hsl(var(--cg-border));
}

.cg-hero-title {
    margin: 0;
    font-size: 48px;
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: hsl(var(--cg-foreground));
}

/* Single-line hero headline — scales with viewport, with a min so it never gets too small */
h1.cg-hero-title-oneline {
    white-space: nowrap;
    font-size: clamp(20px, 2.2vw, 27px);
    letter-spacing: -0.02em;
}

/* On small phones, allow it to wrap rather than overflow at the minimum size */
@media (max-width: 540px) {
    h1.cg-hero-title-oneline {
        white-space: normal;
    }
}

.cg-hero-lead {
    margin: 22px 0 0;
    font-size: 18px;
    line-height: 1.55;
    color: hsl(var(--cg-muted-foreground));
    max-width: 540px;
}

.cg-cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.cg-btn-primary, .cg-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: var(--cg-radius);
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cg-btn-primary {
    background: hsl(var(--cg-primary));
    color: hsl(var(--cg-primary-foreground));
    border-color: hsl(var(--cg-primary));
}

    .cg-btn-primary:hover {
        background: hsl(var(--cg-primary-hover));
        color: hsl(var(--cg-primary-foreground));
        box-shadow: 0 2px 10px hsl(var(--cg-primary) / 0.35);
    }

.cg-btn-secondary {
    background: hsl(var(--cg-background));
    color: hsl(var(--cg-foreground));
    border-color: hsl(var(--cg-border));
}

    .cg-btn-secondary:hover {
        background: hsl(var(--cg-secondary));
        color: hsl(var(--cg-foreground));
    }

.cg-fineprint {
    margin: 18px 0 0;
    font-size: 12.5px;
    color: hsl(var(--cg-muted-foreground));
}

/* Hero demo card */
.cg-demo {
    background: hsl(var(--cg-card));
    border: 1px solid hsl(var(--cg-border));
    border-radius: var(--cg-radius);
    padding: 14px;
}

.cg-demo-head, .cg-demo-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cg-demo-head {
    padding: 4px 6px 12px;
}

.cg-demo-foot {
    padding: 13px 6px 4px;
}

.cg-demo-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: hsl(var(--cg-muted-foreground));
}

.cg-demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: hsl(190 100% 38%);
    box-shadow: 0 0 0 3px hsl(190 100% 38% / 0.18);
}

.cg-demo-status {
    font-size: 11px;
    font-weight: 500;
    color: hsl(var(--cg-muted-foreground));
    background: hsl(var(--cg-secondary));
    border-radius: 4px;
    padding: 3px 8px;
}

.cg-demo-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    background: repeating-linear-gradient(115deg, hsl(210 12% 86%) 0 22px, hsl(210 12% 83%) 22px 44px);
    border-radius: 6px;
    overflow: hidden;
}

.cg-redact {
    position: absolute;
    border-radius: 4px;
    display: flex;
}

    .cg-redact > span {
        font-size: 9px;
        font-weight: 600;
        color: #fff;
        background: rgba(255, 255, 255, 0.18);
        border-radius: 2px;
        padding: 1px 5px;
        align-self: flex-end;
        margin: 5px;
    }

.cg-redact-face {
    top: 16%;
    left: 18%;
    width: 22%;
    height: 30%;
    background: #201f1e;
}

.cg-redact-plate {
    bottom: 22%;
    right: 14%;
    width: 26%;
    height: 13%;
    background: hsl(var(--cg-primary));
    align-items: center;
}

    .cg-redact-plate > span {
        background: transparent;
        align-self: center;
        margin: 0 6px;
    }

.cg-redact-pii {
    top: 24%;
    right: 16%;
    width: 20%;
    height: 9%;
    background: #201f1e;
}

.cg-demo-time {
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-family: ui-monospace, 'Cascadia Mono', 'Roboto Mono', monospace;
    font-size: 12px;
    color: #fff;
    background: rgba(12, 12, 12, 0.55);
    border-radius: 4px;
    padding: 3px 8px;
}

.cg-demo-tag {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(12, 12, 12, 0.45);
    border-radius: 4px;
    padding: 3px 7px;
}

.cg-demo-result {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: hsl(var(--cg-muted-foreground));
}

    .cg-demo-result .fa {
        color: hsl(var(--cg-success));
    }

.cg-demo-verified {
    font-size: 11px;
    font-weight: 600;
    color: hsl(var(--cg-primary));
}

/* Content sections */
.cg-section {
    padding: 72px 0 8px;
}

.cg-section-tight {
    padding: 64px 0 80px;
}

.cg-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}

    .cg-section-head .cg-eyebrow {
        margin-bottom: 12px;
    }

.cg-section-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: hsl(var(--cg-foreground));
}

.cg-section-lead {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: hsl(var(--cg-muted-foreground));
}

.cg-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cg-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cg-card {
    background: hsl(var(--cg-card));
    border: 1px solid hsl(var(--cg-border));
    border-radius: var(--cg-radius);
    padding: 26px 22px 24px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .cg-card:hover {
        border-color: hsl(var(--cg-primary));
        box-shadow: 0 4px 16px hsl(var(--cg-foreground) / 0.06);
    }

    .cg-card h3 {
        margin: 0 0 8px;
        font-size: 16.5px;
        font-weight: 600;
        color: hsl(var(--cg-foreground));
    }

    .cg-card p {
        margin: 0;
        font-size: 13.5px;
        line-height: 1.5;
        color: hsl(var(--cg-muted-foreground));
    }

.cg-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: hsl(var(--cg-primary) / 0.10);
    color: hsl(var(--cg-primary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 16px;
}

/* How-it-works steps */
.cg-step {
    background: hsl(var(--cg-card));
    border: 1px solid hsl(var(--cg-border));
    border-radius: var(--cg-radius);
    padding: 30px 28px;
}

    .cg-step h3 {
        margin: 0 0 8px;
        font-size: 18px;
        font-weight: 600;
        color: hsl(var(--cg-foreground));
    }

    .cg-step p {
        margin: 0;
        font-size: 14px;
        line-height: 1.55;
        color: hsl(var(--cg-muted-foreground));
    }

.cg-step-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.cg-step-num {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid hsl(var(--cg-primary) / 0.30);
    color: hsl(var(--cg-primary));
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cg-how-cta {
    text-align: center;
    margin-top: 36px;
}

.cg-how-icon {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
}

    .cg-how-icon svg {
        width: auto;
        height: 44px;
    }

/* Compliance band */
.cg-compliance {
    background: hsl(var(--cg-surface));
    border: 1px solid hsl(var(--cg-border));
    border-radius: var(--cg-radius);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

    .cg-compliance h3 {
        margin: 0 0 8px;
        font-size: 20px;
        font-weight: 600;
        color: hsl(var(--cg-foreground));
    }

    .cg-compliance p {
        margin: 0;
        font-size: 14px;
        line-height: 1.55;
        color: hsl(var(--cg-muted-foreground));
        max-width: 440px;
    }

.cg-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cg-chip {
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--cg-primary));
    background: hsl(var(--cg-primary) / 0.08);
    border: 1px solid hsl(var(--cg-primary) / 0.22);
    border-radius: var(--cg-radius);
    padding: 11px 18px;
}

/* CaseGuard Studio cross-sell band */
.cg-studio {
    background: hsl(var(--cg-primary) / 0.06);
    border: 1px solid hsl(var(--cg-primary) / 0.18);
    border-radius: var(--cg-radius);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cg-studio-text {
    max-width: 640px;
}

    .cg-studio-text .cg-eyebrow {
        margin-bottom: 10px;
    }

.cg-studio-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: hsl(var(--cg-foreground));
}

.cg-studio-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: hsl(var(--cg-muted-foreground));
}

.cg-studio-cta {
    flex: 0 0 auto;
}

@media (max-width: 992px) {
    .cg-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 0 56px;
    }

    .cg-hero-title {
        font-size: 38px;
    }

    .cg-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cg-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .cg-grid-4 {
        grid-template-columns: 1fr;
    }

    .cg-hero-title {
        font-size: 30px;
    }

    .cg-section-title {
        font-size: 26px;
    }

    .cg-compliance {
        padding: 24px;
    }
}

/* ===================== Cookie consent card (homepage parity) ===================== */
.cg-cookie-card {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 2000;
    width: 380px;
    max-width: calc(100vw - 40px);
    background-color: hsl(var(--cg-background));
    border: 1px solid hsl(var(--cg-border));
    border-radius: var(--cg-radius);
    box-shadow: 0 12px 32px hsl(var(--cg-foreground) / 0.16);
    padding: 20px 20px 16px;
}

.cg-cookie-hidden {
    display: none !important;
}

.cg-cookie-text {
    margin: 0 0 14px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: hsl(var(--cg-foreground));
}

.cg-cookie-link {
    color: hsl(var(--cg-foreground));
    text-decoration: underline;
}

    .cg-cookie-link:hover {
        color: hsl(var(--cg-primary));
    }

.cg-cookie-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.cg-cookie-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: calc(var(--cg-radius) - 2px);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cg-cookie-btn-ghost {
    background-color: hsl(var(--cg-secondary));
    color: hsl(var(--cg-foreground)) !important;
    border-color: hsl(var(--cg-border));
}

    .cg-cookie-btn-ghost:hover {
        background-color: hsl(var(--cg-secondary-hover));
        color: hsl(var(--cg-foreground)) !important;
    }

.cg-cookie-btn-primary {
    background-color: hsl(var(--cg-primary));
    color: hsl(var(--cg-primary-foreground)) !important;
    border-color: hsl(var(--cg-primary));
}

    .cg-cookie-btn-primary:hover {
        background-color: hsl(var(--cg-primary-hover));
        border-color: hsl(var(--cg-primary-hover));
        color: hsl(var(--cg-primary-foreground)) !important;
    }

@media (max-width: 480px) {
    .cg-cookie-card {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }
}

/* ===================== Hero demo video (homepage parity) ===================== */
.cg-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid hsl(var(--cg-border));
    background: hsl(var(--cg-card));
    box-shadow: 0 1px 2px hsl(var(--cg-foreground) / 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .cg-video:hover {
        transform: scale(1.02);
        box-shadow: 0 18px 40px hsl(var(--cg-foreground) / 0.18);
    }

.cg-video-poster {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.cg-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cg-video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: hsl(var(--cg-primary));
    color: hsl(var(--cg-primary-foreground));
    box-shadow: 0 6px 20px hsl(var(--cg-foreground) / 0.30);
    transition: transform 0.3s ease, background-color 0.15s ease;
}

    .cg-video-play svg {
        margin-left: 4px; /* optical centering of the triangle */
    }

.cg-video:hover .cg-video-play {
    transform: scale(1.1);
    background: hsl(var(--cg-primary-hover));
}

.cg-video-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.cg-video-playing {
    background: #000;
}

/* Cyan "How it works" CTA (caseguard.com secondary accent) */
.cg-btn-cyan {
    background: #00f2ff;
    color: hsl(var(--cg-foreground));
    border-color: #00f2ff;
}

    .cg-btn-cyan:hover {
        background: #00d6e2;
        border-color: #00d6e2;
        color: hsl(var(--cg-foreground));
        box-shadow: 0 2px 10px rgba(0, 242, 255, 0.35);
    }
