/* ──────────────────────────────────────────────────────────────────────
   Access request page (public, marketing layout)
   Design tokens mirror the landing page mockup:
   - cream bg (#f5f1ec), card bg (#faf9f6 / #ffffff)
   - accent dusty lavender (#a88bc2)
   - dark text (#1a1612), muted (#6b6480)
   - 8px radius for inputs/buttons (matches in-app patterns)
   No inline styles, no hardcoded values inside .cshtml — all here.
   ────────────────────────────────────────────────────────────────────── */

:root {
    --m-bg: #f5f1ec;
    --m-bg-card: #faf9f6;
    --m-bg-white: #ffffff;
    --m-text: #1a1612;
    --m-text-muted: #6b6480;
    --m-accent: #a88bc2;
    --m-accent-dark: #8c6cab;
    --m-accent-soft: rgba(168, 139, 194, 0.14);
    --m-accent-soft-strong: rgba(168, 139, 194, 0.32);
    --m-border: #e8dfd5;
    --m-border-soft: rgba(0, 0, 0, 0.06);
    --m-error: #b94747;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

.marketing-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--m-text);
    background: var(--m-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.marketing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ───── Header ───── */
.marketing-header {
    padding: 24px 0;
    border-bottom: 1px solid var(--m-border-soft);
    background: rgba(245, 241, 236, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.marketing-logo {
    font-family: 'Spectral', 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: var(--m-text);
    text-decoration: none;
}
.marketing-logo-i {
    color: var(--m-accent);
    font-style: italic;
    font-weight: 600;
}

/* ───── Main + section ───── */
.marketing-main {
    flex: 1;
    width: 100%;
}
.access-section {
    padding: 80px 0 100px;
}
.access-container {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 32px;
}
.access-submitted {
    text-align: center;
}

/* ───── Eyebrow + title ───── */
.access-eyebrow {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--m-text-muted);
    opacity: 0.7;
    margin-bottom: 20px;
}
.access-title {
    font-family: Georgia, serif;
    font-weight: 300;
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}
.access-title em {
    font-style: italic;
    color: var(--m-accent-dark);
    font-weight: 300;
}

/* ───── Disclaimer + fine print ───── */
.access-disclaimer {
    font-size: 16px;
    line-height: 1.65;
    color: var(--m-text);
    opacity: 0.85;
    margin: 0 0 36px;
}
.access-fineprint {
    font-size: 12px;
    color: var(--m-text-muted);
    margin-top: 18px;
    line-height: 1.55;
}
.access-fineprint strong { font-weight: 500; color: var(--m-text); }
.access-disclaimer strong { font-weight: 500; }

/* ───── Form ───── */
.access-form {
    background: var(--m-bg-white);
    border: 1px solid var(--m-border);
    border-radius: 12px;
    padding: 32px;
    margin-top: 8px;
}
.access-field {
    margin-bottom: 22px;
}
.access-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--m-text);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.access-input,
.access-textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--m-bg-card);
    border: 1px solid var(--m-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: var(--m-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.access-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.55;
}
.access-input:focus,
.access-textarea:focus {
    outline: none;
    border-color: var(--m-accent);
    box-shadow: 0 0 0 3px var(--m-accent-soft);
}
.access-input::placeholder,
.access-textarea::placeholder {
    color: var(--m-text-muted);
    opacity: 0.55;
}

/* ───── Validation ───── */
.access-error {
    display: block;
    font-size: 12px;
    color: var(--m-error);
    margin-top: 6px;
    min-height: 1em;
}
.access-hint {
    display: block;
    font-size: 11px;
    color: var(--m-text-muted);
    margin-top: 4px;
    opacity: 0.7;
}
.access-error-summary {
    background: rgba(185, 71, 71, 0.06);
    border: 1px solid rgba(185, 71, 71, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
    margin: 12px 0;
    color: var(--m-error);
    font-size: 13px;
}
.access-error-summary ul { margin: 0; padding-left: 18px; }

/* ───── Submit button ───── */
.access-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--m-accent-soft-strong);
    color: var(--m-text);
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 14px rgba(168, 139, 194, 0.20);
    margin-top: 8px;
}
.access-submit:hover {
    background: rgba(168, 139, 194, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 8px 24px rgba(168, 139, 194, 0.30);
}
.access-submit:focus-visible {
    outline: 2px solid var(--m-accent);
    outline-offset: 2px;
}
.access-submit-secondary {
    background: transparent;
    border: 1px solid var(--m-border);
    box-shadow: none;
    margin-top: 24px;
}
.access-submit-secondary:hover {
    background: var(--m-bg-card);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

/* ───── Footer ───── */
.marketing-footer {
    padding: 30px 0;
    border-top: 1px solid var(--m-border-soft);
    text-align: center;
}
.marketing-footer-text {
    font-size: 12px;
    color: var(--m-text-muted);
    opacity: 0.7;
}

/* ───── Responsive ───── */
@media (max-width: 600px) {
    .access-section { padding: 48px 0 64px; }
    .access-container { padding: 0 24px; }
    .access-form { padding: 24px; }
}

/* ───── Reduced motion ───── */
@media (prefers-reduced-motion: reduce) {
    .access-input, .access-textarea, .access-submit {
        transition: none;
    }
}
