:root {
    --primary: #0b1a2e;
    --secondary: #4a4f7a;
    --off-white: #f5f6fb;
    --warm-light-gray: #cfd3e0;
    --surface: #111f36;
    --surface-soft: #1a2942;
    --surface-glass: rgba(255, 255, 255, 0.05);
    --text: #f5f6fb;
    --muted: #c7cadb;
    --accent: #6f759f;
    --accent-2: #4a4f7a;
    --success: #9de3c8;
    --danger: #ffc4c4;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-soft: 0 10px 30px rgba(2, 8, 22, 0.35);
    --shadow-strong: 0 24px 48px rgba(3, 10, 28, 0.52);
    --max-width: 1120px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 28px;
    --space-xl: 44px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Fluro", "Avenir Next", "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.7rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.15rem);
}

h2 {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
}

h3 {
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

p {
    margin: 0 0 0.9rem;
}

a {
    color: #9ea7d8;
    text-underline-offset: 0.15em;
    transition: color 0.14s ease;
}

a:hover {
    color: #c7d0ff;
}

main {
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px;
}

/* Shared dark brand layout */
body.brand-app,
body.brand-flier {
    color: var(--text);
    background: radial-gradient(circle at top, rgba(74, 79, 122, 0.35), transparent 30%),
        linear-gradient(180deg, #081223 0%, var(--primary) 58%, #081223 100%);
}

body.brand-app {
    color-scheme: dark;
}

body.brand-app .logo {
    width: clamp(180px, 24vw, 280px);
    height: auto;
    display: block;
    margin-bottom: 20px;
    max-width: 100%;
    object-fit: contain;
}

body.brand-app .footer-bar,
body.brand-doc .footer,
body.brand-contract .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

body.brand-app .footer-logo,
body.brand-doc .footer-logo,
body.brand-contract .footer-logo {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

body.brand-app .footer-logo {
    width: clamp(120px, 14vw, 180px);
}

body.brand-doc .footer-logo,
body.brand-contract .footer-logo {
    width: clamp(140px, 16vw, 200px);
}

body.brand-app .hero {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    margin: 24px 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(10px);
}

body.brand-app .hero h1 {
    font-size: clamp(2rem, 3.4vw, 3rem);
    max-width: 18ch;
}

body.brand-app .hero p {
    max-width: 58ch;
    color: var(--muted);
    font-size: 1.02rem;
}

body.brand-app .hero .cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

body.brand-app .section {
    margin: 18px 0;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--surface-glass);
    box-shadow: var(--shadow-soft);
}

body.brand-app .section > h2 {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.brand-app .section.dark {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

body.brand-app .section-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

body.brand-app .section-grid.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.brand-app .section-grid > div,
body.brand-app blockquote {
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
}

body.brand-app .newsletter-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

body.brand-app .newsletter-inline input {
    flex: 1 1 260px;
    max-width: 360px;
}

body.brand-app blockquote p {
    margin-bottom: 10px;
}

body.brand-app blockquote cite {
    color: var(--muted);
    font-style: normal;
    font-size: 0.95rem;
}

body.brand-app .policy-list {
    margin: 16px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

body.brand-app .policy-list li {
    margin: 10px 0;
}

button,
.button,
.btn,
.button-style {
    display: inline-block;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    color: var(--off-white);
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 24px rgba(74, 79, 122, 0.46);
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

button:hover,
.button:hover,
.btn:hover,
.button-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(74, 79, 122, 0.58);
}

button:active,
.button:active,
.btn:active,
.button-style:active {
    transform: translateY(-1px);
}

button:focus-visible,
.button:focus-visible,
.btn:focus-visible,
.button-style:focus-visible,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #9ea7d8;
    outline-offset: 2px;
}

input,
textarea,
select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

input::placeholder,
textarea::placeholder {
    color: #a9afcc;
}

body.brand-app .form-section {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

body.brand-app .payment-section {
    width: 100%;
    max-width: 520px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.11);
}

body.brand-app .payment-section input {
    margin-top: 10px;
}

body.brand-app .payment-section p,
body.brand-app .muted,
body.brand-app small {
    color: var(--muted);
}

body.brand-app .contact-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body.brand-app .course-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

body.brand-app .course-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.04);
    padding: 22px;
}

body.brand-app .course-card p {
    color: var(--muted);
}

body.brand-app .calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-width: 400px;
    margin: 20px auto;
}

body.brand-app .calendar-month {
    text-align: center;
    margin: 6px 0 10px;
}

body.brand-app .calendar div,
body.brand-app .calendar a {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
}

body.brand-app .calendar a {
    display: block;
    text-decoration: none;
}

body.brand-app .calendar .header {
    font-weight: 600;
}

body.brand-app .calendar .empty {
    background: transparent;
    border: 1px solid transparent;
}

body.brand-app .calendar .available {
    background: var(--secondary);
    color: #fff;
}

body.brand-app .tabs {
    display: flex;
    margin-bottom: 20px;
}

body.brand-app .tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

body.brand-app .tab.active {
    background: var(--secondary);
    color: var(--off-white);
}

body.brand-app .tab-content {
    display: none;
}

body.brand-app .tab-content.active {
    display: block;
}

body.brand-app .auth-section,
body.brand-app .questionnaire {
    background: var(--surface-glass);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    margin: 18px 0;
    box-shadow: var(--shadow-soft);
}

body.brand-app .auth-section h2,
body.brand-app .questionnaire h2 {
    margin-bottom: 16px;
}

body.brand-app .questionnaire form {
    display: grid;
    gap: 16px;
}

body.brand-app label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
}

body.brand-app .auth-section {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

body.brand-app .questionnaire {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

body.brand-app .loading {
    opacity: 0.7;
    pointer-events: none;
}

body.brand-app .error-message {
    color: var(--danger);
    margin-top: 8px;
    display: none;
}

body.brand-app .success-message,
body.brand-app #successMessage {
    color: var(--success);
    margin-top: 8px;
    display: none;
}

body.brand-app .success-message.visible,
body.brand-app #successMessage.visible {
    display: block;
}

body.brand-app .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

body.brand-app .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(2, 5, 12, 0.65);
    backdrop-filter: blur(4px);
}

body.brand-app .modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.brand-app .modal-content {
    width: 90%;
    max-width: 380px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 40px 16px 16px;
    background: linear-gradient(180deg, #1b2941 0%, #111f36 100%);
    box-shadow: var(--shadow-strong);
}

body.brand-app .modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 32px;
    box-shadow: none;
    padding: 0;
}

body.brand-app .modal-close:hover {
    color: var(--text);
    transform: none;
}

body.brand-app .bio-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 860px;
    margin: auto;
    flex-wrap: wrap;
}

body.brand-app .bio-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.24);
}

body.brand-app .bio-text {
    max-width: 500px;
    text-align: left;
}

.footer-bar {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    background: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bar a {
    color: #c9d2ff;
}

/* Flier page */
body.brand-flier {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

body.brand-flier .flier {
    width: 100%;
    max-width: 850px;
    border-radius: var(--radius-md);
    border: 2px solid var(--secondary);
    background: linear-gradient(180deg, #081223 0%, var(--primary) 60%, #081223 100%);
    box-shadow: var(--shadow-strong);
    text-align: center;
    color: var(--text);
    padding: 56px 40px;
}

body.brand-flier .header {
    margin-bottom: 30px;
}

body.brand-flier .header .logo {
    width: clamp(180px, 26vw, 300px);
    height: auto;
    margin-bottom: 18px;
    max-width: 100%;
    object-fit: contain;
}

body.brand-flier .logo-text,
body.brand-flier .course-title,
body.brand-flier .detail-label,
body.brand-flier .footer-note {
    color: #a9afd9;
}

body.brand-flier .logo-text {
    font-size: clamp(2.4rem, 6vw, 3.25rem);
    font-weight: 600;
    letter-spacing: 0.12em;
}

body.brand-flier .tagline,
body.brand-flier .contact-info p,
body.brand-flier .instructor {
    color: var(--muted);
}

body.brand-flier .divider {
    margin: 30px 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

body.brand-flier .highlight-box,
body.brand-flier .cta-section,
body.brand-flier .details {
    border-radius: var(--radius-sm);
}

body.brand-flier .highlight-box,
body.brand-flier .cta-section {
    background: rgba(74, 79, 122, 0.24);
    border: 1px solid rgba(207, 211, 224, 0.25);
    padding: 28px;
}

body.brand-flier .details {
    margin: 30px 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    padding: 20px;
}

body.brand-flier .detail-row {
    display: flex;
    margin: 12px 0;
    align-items: flex-start;
}

body.brand-flier .detail-label {
    min-width: 140px;
    margin-right: 15px;
    font-weight: 600;
}

body.brand-flier .course-subtitle,
body.brand-flier .price-tag,
body.brand-flier .location-highlight {
    color: var(--success);
}

body.brand-flier .seats-warning {
    color: #ffc4c4;
    font-weight: 600;
    animation: pulse 1s infinite;
}

body.brand-flier .button-style {
    padding: 15px 40px;
    margin-top: 15px;
}

/* Document pages */
body.brand-doc,
body.brand-contract {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px;
    color: var(--text);
    background: radial-gradient(circle at top, rgba(74, 79, 122, 0.2), transparent 30%),
        linear-gradient(180deg, #0b172a 0%, #0d1b31 100%);
}

body.brand-doc .header,
body.brand-contract .header {
    text-align: center;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 20px;
}

body.brand-doc .header h1,
body.brand-contract .header h1 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    color: #a9afd9;
}

body.brand-doc .header p,
body.brand-contract .subtitle {
    color: var(--muted);
}

body.brand-doc .section,
body.brand-contract .section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    margin: 24px 0;
    padding: 26px;
    box-shadow: var(--shadow-soft);
}

body.brand-doc p,
body.brand-contract p,
body.brand-doc li,
body.brand-contract li {
    line-height: 1.62;
}

body.brand-doc .section h2,
body.brand-contract .section h2 {
    color: #a9afd9;
}

body.brand-doc .section h3,
body.brand-contract .section h3 {
    color: #c1c6e6;
}

body.brand-doc ul,
body.brand-doc ol,
body.brand-contract ul,
body.brand-contract ol {
    margin-left: 20px;
}

body.brand-doc li,
body.brand-contract li {
    margin: 8px 0;
}

body.brand-doc .highlight,
body.brand-contract .highlight {
    margin: 20px 0;
    padding: 14px;
    border-left: 4px solid var(--secondary);
    background: rgba(74, 79, 122, 0.26);
}

body.brand-doc .file-types {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 15px;
}

body.brand-doc .file-types strong {
    color: #a9afd9;
}

body.brand-doc .priority {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

body.brand-doc .priority.high {
    background: #8a3048;
    color: #fce3ea;
}

body.brand-doc .priority.medium {
    background: #8b6540;
    color: #fff2dc;
}

body.brand-doc .priority.low {
    background: #2e6a5b;
    color: #ddfff5;
}

body.brand-doc .footer,
body.brand-contract .footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: var(--muted);
}

/* Security audit components */
body.brand-doc .checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0;
    padding: 10px;
    border-radius: 6px;
}

body.brand-doc .checklist-item.completed {
    background: rgba(98, 188, 150, 0.18);
    border-left: 4px solid #62bc96;
}

body.brand-doc .checklist-item.pending {
    background: rgba(194, 151, 93, 0.2);
    border-left: 4px solid #c2975d;
}

body.brand-doc .checklist-item.critical {
    background: rgba(174, 83, 111, 0.22);
    border-left: 4px solid #ae536f;
}

body.brand-doc .status {
    min-width: 88px;
    font-weight: 600;
}

body.brand-doc .status.completed {
    color: #9de3c8;
}

body.brand-doc .status.pending {
    color: #f0d7af;
}

body.brand-doc .status.critical {
    color: #ffc4c4;
}

body.brand-doc .code-block {
    margin: 10px 0;
    padding: 15px;
    border-radius: 6px;
    font-family: "Courier New", monospace;
    border-left: 4px solid var(--secondary);
    background: rgba(0, 0, 0, 0.3);
    color: #e4e8ff;
    white-space: pre-wrap;
}

body.brand-doc .content {
    flex: 1;
}

/* Contract page specifics */
body.brand-contract {
    max-width: 1000px;
    font-size: 12pt;
}

body.brand-contract .section h2 {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

body.brand-contract .header .logo {
    width: clamp(200px, 30vw, 320px);
    height: auto;
    margin-bottom: 18px;
    max-width: 100%;
    object-fit: contain;
}

body.brand-contract .header h1 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.35rem;
}

body.brand-contract .section p {
    text-align: justify;
}

body.brand-contract .terms-list {
    margin-left: 20px;
}

body.brand-contract .signature-section {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
}

body.brand-contract .signature-block {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

body.brand-contract .signature-box {
    width: 45%;
    text-align: center;
}

body.brand-contract .signature-line,
body.brand-contract .date-line {
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

body.brand-contract .signature-line {
    margin: 40px 0 10px;
    width: 100%;
}

body.brand-contract .date-line {
    margin: 20px auto 5px;
    width: 200px;
}

body.brand-contract .placeholder {
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 4px;
    border-radius: 2px;
    font-style: italic;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@media (max-width: 760px) {
    .container {
        padding: 32px 16px;
    }

    body.brand-app .hero {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-lg);
    }

    body.brand-app .hero .cta {
        width: 100%;
        align-items: stretch;
    }

    body.brand-app .form-section {
        flex-direction: column;
        align-items: flex-start;
    }

    body.brand-app .section-grid,
    body.brand-app .course-grid {
        grid-template-columns: 1fr;
    }

    body.brand-doc,
    body.brand-contract {
        padding: 18px;
    }

    body.brand-doc .section,
    body.brand-contract .section {
        padding: 18px;
    }

    body.brand-app .bio-container,
    body.brand-contract .signature-block {
        flex-direction: column;
        gap: 20px;
    }

    body.brand-contract .signature-box {
        width: 100%;
    }
}

@media print {
    body.brand-flier,
    body.brand-doc,
    body.brand-contract {
        background: #fff;
        color: #000;
    }

    body.brand-flier .flier,
    body.brand-doc .section,
    body.brand-contract .section {
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

