/* Landing + login design tokens — light theme, shares the accent and
   status palette with the rest of the app so the brand reads as one. */
:root {
    /* Brand */
    --accent:            #ff7045;
    --accent-hover:      #ff8c6a;
    --accent-active:     #e85a30;
    --brand-blue:        #3B1FB8;

    /* Light surfaces */
    --surface-0:         #ffffff;
    --surface-1:         #f8f8f9;
    --surface-2:         #f0f0f2;
    --surface-hover:     rgba(0, 0, 0, 0.04);

    /* Text — picked for WCAG AA+ contrast on white surfaces */
    --text-primary:      #1a1a1f;
    --text-secondary:    rgba(0, 0, 0, 0.80);   /* ~10:1 on white */
    --text-muted:        rgba(0, 0, 0, 0.66);   /* ~7:1 on white  */
    --text-on-accent:    #ffffff;

    /* Borders */
    --border-subtle:     rgba(0, 0, 0, 0.07);
    --border-default:    rgba(0, 0, 0, 0.13);
    --border-strong:     rgba(0, 0, 0, 0.22);

    /* Status */
    --status-success:    #3ecf74;
    --status-warning:    #f5a623;
    --status-danger:     #e84040;
    --status-info:       #4dabf7;

    /* Radius */
    --radius-sm:         6px;
    --radius-md:         10px;
    --radius-lg:         16px;

    /* Elevation */
    --shadow-sm:         0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md:         0 8px 32px rgba(0, 0, 0, 0.12);

    /* Bootstrap variable overrides — swap blue primary for accent orange.
       This cascades to .bg-primary, .text-primary, .btn-primary, badges,
       borders that reference var(--bs-primary), etc. */
    --bs-primary:           #ff7045;
    --bs-primary-rgb:       255, 112, 69;
    --bs-primary-text-emphasis: #c95023;
    --bs-primary-bg-subtle: #ffe8df;
    --bs-primary-border-subtle: #ffbfa6;
    --bs-link-color:        #ff7045;
    --bs-link-color-rgb:    255, 112, 69;
    --bs-link-hover-color:  #e85a30;
    --bs-link-hover-color-rgb: 232, 90, 48;
}

html {
    scroll-behavior: smooth;
}

/* Narrow the central column by 20% at each Bootstrap breakpoint.
   Defaults: 540 / 720 / 960 / 1140 / 1320 → 432 / 576 / 768 / 912 / 1056. */
@media (min-width: 576px) {
    .container, .container-sm { max-width: 432px; }
}
@media (min-width: 768px) {
    .container, .container-sm, .container-md { max-width: 576px; }
}
@media (min-width: 992px) {
    .container, .container-sm, .container-md, .container-lg { max-width: 768px; }
}
@media (min-width: 1200px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl { max-width: 912px; }
}
@media (min-width: 1400px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl { max-width: 1056px; }
}

body {
    font-family: "Work Sans", sans-serif;
    color: var(--text-primary);
    padding-top: 70px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
}

p, li {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
}

.text-muted {
    color: var(--text-muted) !important;
}

.navbar {
    transition: box-shadow 0.3s;
}

/* Primary CTA buttons — landing uses btn-dark/btn-outline-dark
   for "Sign Up" / "Try Now" / "Subscribe". Repaint them as accent. */
.btn-dark {
    --bs-btn-bg:                 var(--accent);
    --bs-btn-border-color:       var(--accent);
    --bs-btn-color:              var(--text-on-accent);
    --bs-btn-hover-bg:           var(--accent-hover);
    --bs-btn-hover-border-color: var(--accent-hover);
    --bs-btn-hover-color:        var(--text-on-accent);
    --bs-btn-active-bg:          var(--accent-active);
    --bs-btn-active-border-color:var(--accent-active);
    --bs-btn-active-color:       var(--text-on-accent);
    --bs-btn-disabled-bg:        var(--accent);
    --bs-btn-disabled-border-color: var(--accent);
    --bs-btn-disabled-color:     var(--text-on-accent);
}

.btn-outline-dark {
    --bs-btn-color:              var(--accent);
    --bs-btn-border-color:       var(--accent);
    --bs-btn-hover-bg:           var(--accent);
    --bs-btn-hover-border-color: var(--accent);
    --bs-btn-hover-color:        var(--text-on-accent);
    --bs-btn-active-bg:          var(--accent-active);
    --bs-btn-active-border-color:var(--accent-active);
    --bs-btn-active-color:       var(--text-on-accent);
    --bs-btn-disabled-color:     var(--accent);
    --bs-btn-disabled-border-color: var(--accent);
}

.hero-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.hero-headline {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4.2vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-primary);
}

.hero-accent {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-style: italic;
    color: var(--accent);
    white-space: nowrap;
}

.hero-tagline {
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.hero-emphasis {
    font-family: 'IBM Plex Mono', monospace;
    font-style: italic;
    font-weight: 500;
    color: var(--text-primary);
    background-image: linear-gradient(transparent 62%, rgba(255, 112, 69, 0.28) 62%, rgba(255, 112, 69, 0.28) 92%, transparent 92%);
    padding: 0 0.15em;
}

.hero-aside {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.9em;
    color: var(--text-muted);
}

.hero-cta {
    font-family: 'IBM Plex Mono', monospace;
    border-radius: var(--radius-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}

.pricing-card {
    border-radius: var(--radius-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (min-width: 992px) {
    #pricing > .container {
        max-width: 1152px;
    }
}

@media (min-width: 1200px) {
    #pricing > .container {
        max-width: 1368px;
    }
}

@media (min-width: 1400px) {
    #pricing > .container {
        max-width: 1584px;
    }
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card-popular {
    border: 2px solid var(--accent);
}

.pricing-amount {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
}

.pricing-unit {
    font-weight: 300;
    color: var(--text-muted);
}

/* Login card chrome */
.card {
    border-radius: var(--radius-md);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(255, 112, 69, 0.20);
}

.outline-hover {
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 2px;
}

.outline-hover:hover {
    border-color: currentColor;
    background-color: transparent !important;
}

/* ------------------------------------------------------------------ */
/* Creator Residency — a deliberately different, darker/editorial look */
/* than the white marketing landing, while sharing the brand tokens.   */
/* ------------------------------------------------------------------ */

/* Full-bleed dark hero band. Sits directly under the white fixed navbar
   so the program reads as its own distinct, premium space. */
.residency-hero {
    position: relative;
    background:
        radial-gradient(120% 140% at 15% 0%, rgba(255, 112, 69, 0.22) 0%, transparent 55%),
        linear-gradient(160deg, #1c1830 0%, #14121d 45%, #0e0d14 100%);
    color: #fff;
    padding: 5.5rem 0 6rem;
    overflow: hidden;
}

/* Faint dotted grid texture to set it apart from the flat landing hero. */
.residency-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    pointer-events: none;
}

.residency-hero .container {
    position: relative;
    z-index: 1;
}

.residency-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(255, 112, 69, 0.4);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
}

.residency-hero-title {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 7vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 1.25rem 0 0;
}

.residency-hero-title .accent-line {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-style: italic;
    font-weight: 600;
    color: var(--accent);
}

.residency-hero-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    max-width: 44rem;
    margin: 1.5rem 0 2rem;
}

/* Editorial numbered perks — big monospace numerals instead of icon cards. */
.residency-perk {
    border-top: 2px solid var(--text-primary);
    padding-top: 1.1rem;
}

.residency-perk-num {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.residency-perk h5 {
    margin: 0.75rem 0 0.4rem;
    font-size: 1.25rem;
}

/* Warm accent callout band for the closing "who we want" section. */
.residency-callout {
    background:
        linear-gradient(180deg, #fff 0%, #fff6f2 100%);
    border-top: 1px solid var(--border-subtle);
}

.residency-callout .hero-accent {
    white-space: normal;
}

/* Image placeholders — swap the inner content for a real <img> later.
   The element keeps its aspect ratio so the layout won't shift. */
.residency-media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
    color: var(--text-muted);
    text-align: center;
    overflow: hidden;
}

.residency-media i {
    font-size: 2rem;
    opacity: 0.55;
}

.residency-media span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Dark variant for the placeholder inside the dark hero. */
.residency-media-dark {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.55);
}

/* When a real image is dropped in, it fills the frame. */
.residency-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
