:root {
    color-scheme: light;
    --blue: #27aae1;
    --blue-dark: #1c8bc3;
    --orange: #f7941d;
    --orange-soft: #ffb347;
    --gray: #f1f2f2;
    --bg: #ffffff;
    --text: #222222;
    --muted: #64748b;
    --border: #e6eef5;
    --box-bg: #ffffff;
    --accent-bg: #f8fbfd;
    --danger: #d9534f;
    --warning: #f7941d;
    --success: #22a56a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--gray);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

.cmc-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 2rem;
    background: var(--bg);
    border-bottom: 1px solid #dddddd;
}

.cmc-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cmc-logo img {
    width: auto;
    max-width: 150px;
    height: 42px;
    object-fit: contain;
}

.cmc-logo span {
    color: var(--blue);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0;
}

.cmc-badge,
.module-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef8fd;
    color: #0f78a8;
    font-size: 0.78rem;
    font-weight: 900;
}

.cmc-badge {
    min-height: 32px;
    padding: 0 12px;
}

.cmc-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cmc-header-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    color: #0f78a8;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.cmc-header-link:hover {
    background: #eef8fd;
}

.module-badge {
    min-width: 38px;
    height: 30px;
    margin-bottom: 14px;
    padding: 0 10px;
}

.shell {
    width: min(1150px, calc(100% - 32px));
    margin: 0 auto;
    padding: 2rem 0 56px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 4rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--orange));
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

h1,
h2,
p {
    margin-top: 0;
}

.eyebrow {
    margin: 0 0 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    max-width: 760px;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 7vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.lead {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 3.8vw, 1.2rem);
    line-height: 1.45;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.35rem;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    background: #ffffff;
    color: #0f78a8;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.hero-button-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.hero-button:hover {
    transform: translateY(-1px);
}

.trust-panel {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.trust-panel span {
    position: relative;
    padding-left: 22px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

.trust-panel span::before {
    position: absolute;
    left: 0;
    top: 0.38rem;
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.value-section,
.pricing-section,
.security-promise {
    margin-bottom: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.section-heading {
    max-width: 800px;
    margin-bottom: 1.35rem;
}

.section-heading h2,
.security-promise h2 {
    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1.2;
}

.section-heading p,
.security-promise p,
.value-card p,
.price-card p,
.price-card li {
    color: var(--muted);
    line-height: 1.6;
}

.dark-eyebrow {
    color: #0f78a8;
}

.value-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

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

.value-card,
.price-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.value-card > span {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #eef8fd;
    color: #0f78a8;
    font-weight: 900;
}

.value-card h3,
.price-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.05rem;
}

.value-card p {
    margin-bottom: 0;
}

.price-card {
    display: flex;
    flex-direction: column;
}

.featured-price {
    border: 2px solid var(--blue);
    background: linear-gradient(180deg, #eef8fd, #ffffff);
    box-shadow: 0 14px 34px rgba(39, 170, 225, 0.13);
}

.price {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 8px 0 14px;
}

.price strong {
    color: #0f172a;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.price small {
    color: var(--muted);
}

.price-card ul {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.link-button {
    margin-top: auto;
}

.security-promise {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.3fr);
    gap: 24px;
    align-items: center;
    border-left: 5px solid var(--orange);
}

.security-promise p {
    margin-bottom: 0;
}

.content-box {
    width: 100%;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.account-band {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
    gap: 18px;
    margin-bottom: 18px;
}

.quota-card,
.account-card,
.pro-upgrade {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.quota-card {
    padding: 18px;
}

.quota-card.is-pro {
    border: 2px solid var(--blue);
    background: linear-gradient(180deg, #f0f9ff, #ffffff);
}

.quota-card strong,
.account-card strong {
    display: block;
    margin: 4px 0 8px;
    color: #0f172a;
}

.quota-card p,
.account-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.account-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
}

.mini-auth {
    display: grid;
    gap: 10px;
}

.mini-auth label {
    display: grid;
    gap: 6px;
}

.mini-auth label span {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 800;
}

.mini-auth input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d5e9f5;
    border-radius: 8px;
    padding: 0 10px;
    font: inherit;
}

.workspace,
.result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    gap: 18px;
}

.upload-card,
.policy,
.result article,
.alert,
.score-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--box-bg);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.upload-card,
.policy,
.result article {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.upload-card:hover,
.policy:hover,
.result article:hover {
    transform: translateY(-3px);
    border-color: #dbeafe;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.upload-card {
    padding: 18px;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.mode-grid label {
    cursor: pointer;
}

.mode-grid input {
    position: absolute;
    opacity: 0;
}

.mode-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
    font-weight: 800;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mode-grid input:checked + span {
    border-color: var(--blue);
    background: #eef8fd;
    color: #0f78a8;
    transform: translateY(-1px);
}

.input-panel {
    min-height: 178px;
    margin-bottom: 14px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbfd, #ffffff);
}

.is-hidden {
    display: none !important;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: #0f172a;
    font-weight: 800;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid #d5e9f5;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.field input,
.field select {
    min-height: 46px;
    padding: 0 12px;
}

.field textarea {
    resize: vertical;
    min-height: 82px;
    padding: 12px;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid rgba(39, 170, 225, 0.28);
    border-color: var(--blue);
}

.question-field {
    margin-top: 14px;
}

.storage-hint {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.dropzone {
    display: grid;
    place-items: center;
    min-height: 292px;
    padding: 28px;
    border: 2px dashed #d5e9f5;
    border-radius: 12px;
    background: linear-gradient(180deg, #f0f9ff, #ffffff);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dropzone.is-dragging {
    border-color: var(--orange);
    background: rgba(247, 148, 29, 0.12);
    box-shadow: 0 6px 18px rgba(247, 148, 29, 0.25);
    transform: translateY(-3px);
}

.dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.drop-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--orange));
    color: #ffffff;
    font-size: 2rem;
    font-weight: 300;
    box-shadow: 0 8px 22px rgba(39, 170, 225, 0.28);
}

.dropzone strong {
    margin-top: 14px;
    color: #0f172a;
    font-size: 1.18rem;
}

.dropzone small {
    color: var(--muted);
}

.dropzone em {
    max-width: 100%;
    color: #0f78a8;
    font-style: normal;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
}

.check {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.check input {
    accent-color: var(--blue);
}

button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.18s ease, transform 0.18s ease;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
}

.primary-button {
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(39, 170, 225, 0.24);
}

.primary-button:hover {
    background: var(--blue-dark);
}

.secondary-button {
    background: #ffffff;
    color: var(--blue);
    border: 1px solid #d5e9f5;
    box-shadow: none;
}

.secondary-button:hover {
    background: #eef8fd;
    color: var(--blue-dark);
}

button:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.policy {
    padding: 22px;
    background: #ffffff;
}

.business-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.sentinel-plan-card,
.sentinel-offer {
    border-color: rgba(39, 170, 225, 0.72) !important;
    background: linear-gradient(180deg, #eef8fd, #ffffff) !important;
}

.sentinel-offer .pro-link {
    margin-top: 12px;
}

.sentinel-feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.sentinel-boundaries {
    margin-bottom: 18px;
}

.business-band div {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fbfd;
}

.business-band .highlight {
    border: 2px solid var(--blue);
    background: linear-gradient(180deg, #f0f9ff, #ffffff);
}

.business-band strong {
    display: block;
    margin: 2px 0 8px;
    color: #0f172a;
    font-size: 1rem;
}

.business-band p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.profile-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.profile-card h2 {
    margin-bottom: 0;
}

.profile-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.vault-list,
.report-list {
    display: grid;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}

.vault-list li,
.report-list li {
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fbfd;
}

.vault-list strong,
.report-list strong {
    color: #0f172a;
    overflow-wrap: anywhere;
}

.vault-list span,
.report-list span,
.report-list small {
    color: var(--muted);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.policy p,
article p,
li,
dd {
    color: var(--muted);
    line-height: 1.6;
}

.note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a5217;
    font-size: 0.92rem;
}

.alert {
    margin-top: 18px;
    padding: 16px 18px;
    border-color: rgba(217, 83, 79, 0.35);
    color: #8b241f;
    background: #fff4f3;
    font-weight: 700;
}

.notice {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #d5e9f5;
    border-radius: 12px;
    background: #eef8fd;
    color: #0f78a8;
    font-weight: 700;
}

.pro-upgrade {
    margin-top: 18px;
    padding: 20px;
    border: 2px solid var(--blue);
    background: linear-gradient(180deg, #f0f9ff, #ffffff);
}

.pro-upgrade h2 {
    margin: 8px 0 8px;
}

.pro-upgrade p {
    color: var(--muted);
    line-height: 1.6;
}

.pro-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--blue);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pro-link:hover {
    background: var(--blue-dark);
}

.result {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.score-card {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.signal {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.risk-low {
    border-left: 5px solid var(--success);
}

.risk-medium {
    border-left: 5px solid var(--warning);
}

.risk-high {
    border-left: 5px solid var(--danger);
}

.risk-low .signal {
    background: var(--success);
}

.risk-medium .signal {
    background: var(--warning);
}

.risk-high .signal {
    background: var(--danger);
}

.score-card p {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.score-card strong {
    color: #0f172a;
    font-size: 1.6rem;
}

.score {
    margin-left: auto;
}

.score b {
    color: #0f172a;
    font-size: 2rem;
}

.score span {
    color: var(--muted);
}

.result article {
    padding: 20px;
}

.question-result {
    border-left: 5px solid var(--blue) !important;
}

dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

dl div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
}

dt {
    color: #0f172a;
    font-weight: 800;
}

dd {
    margin: 0;
    overflow-wrap: anywhere;
}

ul {
    margin: 0;
    padding-left: 20px;
}

.indicators li {
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .cmc-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.8rem 1rem;
    }

    .shell {
        width: min(100% - 22px, 1150px);
        padding-top: 1rem;
    }

    .hero,
    .account-band,
    .profile-grid,
    .workspace,
    .result-grid,
    .business-band,
    .value-grid,
    .pricing-grid,
    .security-promise {
        grid-template-columns: 1fr;
    }

    .account-card {
        grid-template-columns: 1fr;
    }

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

    .hero {
        padding: 3rem 1rem 4rem;
    }

    .value-section,
    .pricing-section,
    .security-promise {
        padding: 1.25rem;
    }

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

    .content-box {
        padding: 1rem;
    }

    .form-row {
        align-items: stretch;
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}
