/* ========================================
   HealthOS MD Landing Page — Brand CSS
   Governance-First, Minimal Design
   ======================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* Root Variables */
:root {
    --color-primary: #1a7474;      /* HealthOS teal */
    --color-primary-dark: #0f5454; /* Darker teal */
    --color-secondary: #4db5a6;    /* Light teal */
    --color-accent: #ff6b5b;       /* Coral (accent) */
    --color-text: #1f2121;         /* Dark gray/charcoal */
    --color-text-light: #6b7272;   /* Medium gray */
    --color-bg: #fcfcf9;           /* Off-white/cream warm neutral */
    --color-border: #e8e8e3;       /* Light border */

    --font-family-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1120px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-family-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

/* ========================================
   HEADER — Logo Only
   ======================================== */

.header {
    text-align: center;
    padding-top: 2rem;
    margin-bottom: 3rem;
}

.logo {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ========================================
   VIDEO SECTION — No Border, No Shadow
   ======================================== */

.video-section {
    margin-bottom: 3rem;
}

.video-container {
    position: relative;
    width: 100%;
    background: var(--color-bg);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.video-container iframe {
    border-radius: 0;
}

/* ========================================
   DISCLOSURE SECTION — Clinical Tone
   ======================================== */

.disclosure {
    background: transparent;
    border: none;
    padding: 2rem 0;
    margin: 0 auto 3rem;
    text-align: center;
    max-width: var(--max-width);
}

.disclosure-text {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    opacity: 0.85;
}

/* ========================================
   CTA SECTION — "What's Next?"
   ======================================== */

.cta-section {
    margin: 0 auto 3rem;
    max-width: var(--max-width);
}

.cta-heading {
    font-family: var(--font-family-heading);
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Button Container */
.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    font-family: var(--font-family-body);
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: var(--color-text-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ========================================
   FORMS
   ======================================== */

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-prompt {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: var(--font-family-body);
}

.input-field {
    padding: 0.875rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-family-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background-color: white;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 116, 116, 0.08);
}

.form-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 0.75rem;
}

/* ========================================
   STATES
   ======================================== */

.hidden {
    display: none !important;
}

.confirmation,
.success-message {
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.confirmation {
    background-color: rgba(26, 116, 116, 0.04);
    border: none;
}

.confirmation-text {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-family: var(--font-family-body);
}

.success-message {
    background-color: rgba(26, 116, 116, 0.04);
    border: none;
}

.success-text {
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1.6;
    font-family: var(--font-family-body);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 400;
    margin: 0;
    font-family: var(--font-family-body);
    opacity: 0.8;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .header {
        padding-top: 1rem;
        margin-bottom: 2rem;
    }

    .logo {
        max-width: 130px;
    }

    .video-section {
        margin-bottom: 2rem;
    }

    .disclosure {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

    .disclosure-text {
        font-size: 0.8125rem;
    }

    .cta-section {
        margin-bottom: 2rem;
    }

    .cta-heading {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .footer {
        margin-top: 4rem;
        padding-top: 2rem;
    }

    .footer-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .header {
        padding-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .logo {
        max-width: 110px;
    }

    .video-section {
        margin-bottom: 1.5rem;
    }

    .disclosure {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }

    .disclosure-text {
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    .cta-section {
        margin-bottom: 1.5rem;
    }

    .cta-heading {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        border-radius: 8px;
    }

    .form-prompt {
        font-size: 0.875rem;
    }

    .input-field {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .confirmation,
    .success-message {
        padding: 1.5rem;
    }

    .confirmation-text,
    .success-text {
        font-size: 0.875rem;
    }

    .footer {
        margin-top: 3rem;
        padding-top: 1.5rem;
    }

    .footer-text {
        font-size: 0.7rem;
    }
}

/* ========================================
   ACCESS CODE OVERLAY
   ======================================== */

.access-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.access-card {
    max-width: 480px;
    width: 90%;
    padding: 3rem 2rem;
    background-color: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.access-logo {
    max-width: 120px;
    margin: 0 auto 2rem;
    display: block;
}

.access-title {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.access-subtitle {
    font-family: var(--font-family-body);
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.access-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: var(--color-text);
    background-color: white;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.access-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 116, 116, 0.08);
}

.access-input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-text-light);
    opacity: 0.6;
}

.access-btn {
    width: 100%;
    margin-bottom: 1rem;
}

.access-error {
    font-family: var(--font-family-body);
    font-size: 0.875rem;
    color: var(--color-error);
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: rgba(192, 21, 47, 0.05);
    border-radius: 6px;
}

#mainContent {
    display: none;
}

@media (max-width: 480px) {
    .access-card {
        padding: 2rem 1.5rem;
    }

    .access-title {
        font-size: 1.25rem;
    }

    .access-subtitle {
        font-size: 0.875rem;
    }

    .access-logo {
        max-width: 100px;
    }
}
