/* ========================================
   RACEWIN HERO THEME
   Aligns Blade pages (login, pricing) with the new_ui hero page.
   Load after hero.css / auth.css / pricing.css and add class="rw-theme" to <body>.
   ======================================== */

body.rw-theme {
    --rw-bg: #FAFAFA;
    --rw-surface: #F4F4F6;
    --rw-dark: #1A1A1A;
    --rw-body: #374151;
    --rw-muted: #555555;
    --rw-border: #E5E5E7;
    --rw-red: #E30613;
    --rw-red-dark: #c90510;
    --rw-serif: "Cormorant Garamond", Georgia, serif;
    --rw-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

    --primary-red: var(--rw-red);
    --primary-red-dark: var(--rw-red-dark);
    --primary-red-light: var(--rw-red);
    --font-primary: var(--rw-serif);
    --font-secondary: var(--rw-sans);
    --gray-900: var(--rw-dark);
    --gray-700: var(--rw-body);
    --gray-600: var(--rw-muted);
    --gray-200: var(--rw-border);

    font-family: var(--rw-sans);
    background: var(--rw-bg);
    color: var(--rw-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.rw-theme .navbar,
.rw-theme .navbar.scrolled {
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rw-border);
    box-shadow: none;
    padding: 0;
}

/* Full-width layout (hero page dimensions) */
.rw-theme .container {
    max-width: 1440px;
    padding: 0 1.5rem;
}

.rw-theme .navbar .container {
    max-width: none;
}

.rw-theme .nav-logo,
.rw-theme .nav-logo a {
    font-family: var(--rw-sans);
    color: var(--rw-dark) !important;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

/* Buttons */
.rw-theme .btn {
    font-family: var(--rw-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-width: 1px;
    border-radius: 8px;
    box-shadow: none;
}

.rw-theme .btn-lg {
    padding: 0.95rem 1.75rem;
    font-size: 0.85rem;
}

.rw-theme .btn-primary {
    background: var(--rw-red);
    border-color: var(--rw-red);
    color: #FFFFFF;
}

.rw-theme .btn-primary:hover {
    background: var(--rw-red-dark);
    border-color: var(--rw-red-dark);
    transform: none;
    box-shadow: none;
}

.rw-theme .btn-outline {
    background: transparent;
    border-color: #121212;
    color: #121212;
}

.rw-theme .btn-outline:hover {
    background: var(--rw-red);
    border-color: var(--rw-red);
    color: #FFFFFF;
    transform: none;
    box-shadow: none;
}

/* Architectural grid background (replaces gradients and floating shapes) */
.rw-theme .floating-shapes {
    display: none;
}

.rw-theme .auth-gradient,
.rw-theme .pricing-hero-gradient {
    background-color: var(--rw-bg);
    background-image: linear-gradient(to right, rgba(229, 229, 231, 0.55) 1px, transparent 1px);
    background-size: 25% 100%;
}

/* Eyebrow labels */
.rw-theme .auth-badge,
.rw-theme .pricing-badge {
    background: transparent;
    color: var(--rw-red);
    border: 1px solid var(--rw-border);
    border-radius: 0;
    padding: 0.4rem 0.9rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Editorial titles with the red precision accent line */
.rw-theme .auth-title,
.rw-theme .pricing-hero-title,
.rw-theme .section-title,
.rw-theme .cta-title {
    font-family: var(--rw-serif);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: var(--rw-dark);
}

.rw-theme .auth-title::after,
.rw-theme .pricing-hero-title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 2px;
    margin: 1.25rem auto 0;
    background: var(--rw-red);
}

.rw-theme .auth-subtitle,
.rw-theme .pricing-hero-subtitle,
.rw-theme .section-subtitle {
    font-family: var(--rw-sans);
    color: var(--rw-body);
}


/* ========================================
   LOGIN
   ======================================== */
.rw-theme .auth-section {
    min-height: 100vh;
    padding: calc(80px + 1.5rem) 0 1.5rem;
}

.rw-theme .auth-section > .container {
    width: 100%;
}

.rw-theme .auth-card {
    background: #FFFFFF;
    border: 1px solid var(--rw-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    min-height: 600px;
}

.rw-theme .auth-card-single {
    grid-template-columns: 1fr;
    max-width: 520px;
    min-height: auto;
    margin: 0 auto;
}

.rw-theme .auth-card-single .auth-form-panel {
    padding: 2.5rem;
}

.rw-theme .auth-title {
    font-size: 3rem;
}

.rw-theme .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--rw-dark);
}

.rw-theme .form-input {
    font-family: var(--rw-sans);
    background: #FFFFFF;
    border: 1px solid var(--rw-border);
    border-radius: 8px;
    color: var(--rw-dark);
}

.rw-theme .form-input:focus {
    outline: none;
    border-color: var(--rw-red);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}

.rw-theme .form-hint {
    color: var(--rw-muted);
}

.rw-theme .create-account-link {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ========================================
   PRICING
   ======================================== */
.rw-theme .pricing-hero {
    min-height: auto;
    padding-bottom: 2.5rem;
}

.rw-theme .pricing-section {
    padding-top: 1.5rem;
}

.rw-theme .pricing-hero-title {
    font-size: 3.5rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.rw-theme .pricing-hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--rw-dark);
    margin-bottom: 1rem;
}

.rw-theme .pricing-hero-subtitle {
    max-width: 680px;
}

.rw-theme .pricing-section {
    background: var(--rw-bg);
}

.rw-theme .pricing-cards-container {
    max-width: none;
}

.rw-theme .pricing-card {
    background: #FFFFFF;
    border: 1px solid var(--rw-border);
    border-radius: 12px;
}

.rw-theme .pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--rw-red);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.rw-theme .pricing-card.popular,
.rw-theme .pricing-card.popular:hover {
    border: 1px solid var(--rw-red);
    box-shadow: none;
    transform: none;
}

.rw-theme .popular-badge {
    background: var(--rw-red);
    border-radius: 4px;
    box-shadow: none;
    animation: none;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.rw-theme .pricing-card-header {
    border-bottom: 1px solid var(--rw-border);
}

.rw-theme .plan-name {
    font-family: var(--rw-serif);
    font-size: 2rem;
    color: var(--rw-dark);
}

.rw-theme .price-amount {
    font-family: var(--rw-serif);
    font-weight: 700;
    color: var(--rw-red);
}

.rw-theme .price-period,
.rw-theme .price-per-month,
.rw-theme .plan-description {
    color: var(--rw-muted);
}

.rw-theme .yearly-savings-badge {
    background: var(--rw-surface);
    color: var(--rw-dark);
    border: 1px solid var(--rw-border);
}

.rw-theme .features-list li {
    color: var(--rw-body);
}

.rw-theme .feature-group-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rw-dark);
    margin: 0 0 0.25rem;
}

.rw-theme .features-list + .feature-group-title {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rw-border);
}

.rw-theme .features-list li i {
    color: var(--rw-red);
}

.rw-theme .plan-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rw-red);
}

.rw-theme .plan-role-tag::before {
    content: '';
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--rw-red);
}

.rw-theme .cta-section {
    background: var(--rw-dark);
}

.rw-theme .cta-title {
    color: #FFFFFF;
}

.rw-theme .cta-section .btn-primary {
    background: var(--rw-red);
    border-color: var(--rw-red);
    color: #FFFFFF;
}

.rw-theme .cta-section .btn-outline {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.rw-theme .cta-section .btn-outline:hover {
    background: var(--rw-red);
    border-color: var(--rw-red);
}

/* ========================================
   FOOTER (x-racewin-footer, same as the hero page)
   ======================================== */
.rw-footer {
    --rw-footer-red: #B51218;
    background: #F6F6F6;
    color: #121212;
    border-top: 1px solid var(--rw-border);
    padding: 3.5rem 0 2.5rem;
    font-family: var(--rw-sans);
}

.rw-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rw-footer-brand {
    margin-bottom: 2.5rem;
}

.rw-footer-logo {
    font-family: var(--rw-serif);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--rw-footer-red);
    margin: 0;
}

.rw-footer-accent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.625rem 0;
}

.rw-footer-accent span {
    width: 2.5rem;
    height: 2.5px;
    background: var(--rw-footer-red);
}

.rw-footer-accent i {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--rw-footer-red);
}

.rw-footer-motto {
    font-family: var(--rw-sans);
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--rw-dark);
    margin: 1rem 0 0.75rem;
}

.rw-footer-motto span {
    color: var(--rw-footer-red);
}

.rw-footer-description {
    max-width: 48rem;
    font-size: 1rem;
    line-height: 1.625;
    color: var(--rw-body);
    margin: 0;
}

.rw-footer-columns {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid var(--rw-border);
    border-bottom: 1px solid var(--rw-border);
    padding: 3rem 0;
}

.rw-footer-column {
    padding: 0 1rem;
}

.rw-footer-column:first-child {
    padding-left: 0;
}

.rw-footer-column:last-child {
    padding-right: 0;
}

.rw-footer-column + .rw-footer-column {
    border-left: 1px solid var(--rw-border);
}

.rw-footer-column h4 {
    font-family: var(--rw-sans);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--rw-dark);
    white-space: nowrap;
    margin: 0;
}

.rw-footer-column-accent {
    width: 2rem;
    height: 2px;
    background: var(--rw-footer-red);
    margin: 0.375rem 0 1rem;
}

.rw-footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rw-footer-column li + li {
    margin-top: 0.625rem;
}

.rw-footer-column a {
    font-size: 0.875rem;
    color: var(--rw-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.rw-footer-column a:hover {
    color: var(--rw-footer-red);
}

.rw-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 2rem;
    font-size: 0.875rem;
    color: var(--rw-muted);
}

.rw-footer-tagline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--rw-dark);
    font-weight: 500;
}

.rw-footer-tagline-bar {
    width: 3px;
    height: 1.75rem;
    background: var(--rw-footer-red);
    flex-shrink: 0;
}

.rw-footer-legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    border-left: 1px solid var(--rw-border);
    padding-left: 1.5rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 640px) {
    .rw-theme .container,
    .rw-footer-inner {
        padding: 0 2.5rem;
    }
}

@media (min-width: 1024px) {
    .rw-theme .container {
        padding: 0 4rem;
    }

    .rw-theme .navbar .container {
        padding: 0 2rem;
    }

    .rw-footer-inner {
        padding: 0 3rem;
    }
}

@media (max-width: 1023px) {
    .rw-footer-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }

    .rw-footer-column,
    .rw-footer-column:first-child,
    .rw-footer-column:last-child {
        padding: 0;
    }

    .rw-footer-column + .rw-footer-column {
        border-left: none;
    }

    .rw-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .rw-footer-legal {
        border-left: none;
        border-top: 1px solid var(--rw-border);
        padding-left: 0;
        padding-top: 1rem;
    }
}

@media (max-width: 1024px) {
    .rw-theme .pricing-hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .rw-theme .auth-title {
        font-size: 2.25rem;
    }

    .rw-theme .pricing-hero-title {
        font-size: 2.25rem;
    }

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

    .rw-footer-logo {
        font-size: 2.25rem;
    }

    .rw-footer-motto {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .rw-footer-columns {
        grid-template-columns: 1fr;
    }

    .rw-footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .rw-theme .auth-card-single .auth-form-panel {
        padding: 1.75rem 1.25rem;
    }
}
