/*
 * Custom styles for MyWebApp
 * -----------------------------------------------------------
 * This stylesheet replaces Tailwind CSS and implements all styling
 * including custom colors, responsiveness, and component styles.
 *
 * FIX: Added 'appearance: none' to the submit button to remove
 * native browser styling and ensure a modern look.
 * ENHANCEMENT: Added styles for home.html (.hero-section) and
 * legal.html (.legal-document) pages.
 */

:root {
    /* Custom Color Palette based on #432689 */
    --primary-color: #432689;
    --primary-light: #5e43a3;
    --secondary-color: #e9e3f6;
    --text-color: #374151; /* gray-700 */
    --background-light: #f3f4f6; /* gray-100 */
    --light-gray: #6b7280; /* A slightly lighter gray for descriptions */
    --dark-text: #1f2937; /* Used for headings, gray-900 equivalent */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    line-height: 1.5;
}

/* Container for Centering and Padding */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Small screens (sm:px-6) */
@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Large screens (lg:px-8) */
@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* --- Header Styling --- */
.app-header {
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* shadow-lg */
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 1rem;
    position: relative;
}

.app-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: Georgia, "Times New Roman", serif; /* matches the logo wordmark */
    font-size: 1.875rem; /* text-3xl */
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    transition: opacity 0.2s ease-in-out;
    text-decoration: none;
}

.app-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: block;
}

.app-logo:hover {
    opacity: 0.9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.app-nav {
    display: none;
    position: absolute;
    top: calc(100% - 0.15rem);
    right: 1rem;
    width: min(240px, calc(100% - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.65rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
    z-index: 20;
}

.app-nav.open {
    display: flex;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500; /* font-medium */
    transition: color 0.2s ease-in-out;
    text-decoration: none;
}

.app-nav .nav-link {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    padding: 0.7rem 0.85rem;
    min-height: 44px;
    box-sizing: border-box;
    border-radius: 0.65rem;
    background: #f8f5ff;
}

.nav-link:hover {
    color: var(--primary-light);
}

.nav-link-cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
}

.nav-link-cta:hover {
    color: #fff;
    opacity: 0.92;
}

.app-nav .nav-link-cta {
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Main Content Styling --- */
.app-main {
    flex-grow: 1; /* flex-grow */
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .app-main {
        padding-top: 3rem; /* md:py-12 */
        padding-bottom: 3rem;
    }
}

/* Messages */
.message-container {
    margin-bottom: 1.5rem;
    max-width: 42rem; /* max-w-4xl */
    margin-left: auto;
    margin-right: auto;
}

.message-box {
    padding: 1rem;
    border-radius: 0.75rem; /* rounded-xl */
    font-size: 0.875rem; /* text-sm */
    margin-bottom: 0.5rem;
    font-weight: 600; /* font-semibold */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); /* shadow-md */
    border-width: 1px;
}

.message-success {
    background-color: #d1fae5; /* bg-green-100 */
    color: #065f46; /* text-green-800 */
    border-color: #a7f3d0; /* border-green-300 */
}
.message-error {
    background-color: #fee2e2; /* bg-red-100 */
    color: #991b1b; /* text-red-800 */
    border-color: #fca5a5; /* border-red-300 */
}
.message-info {
    background-color: #dbeafe; /* bg-blue-100 */
    color: #1e40af; /* text-blue-800 */
    border-color: #93c5fd; /* border-blue-300 */
}


/* --- Footer Styling --- */
.app-footer {
    background-color: var(--primary-color);
    color: #fff;
    margin-top: auto;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); /* shadow-inner */
}

.footer-content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.footer-links {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-link:hover {
    color: var(--secondary-color);
}

/* --- Input Focus Styling (From previous request) --- */

/* Target form elements with high specificity */
input[type='text'],
input[type='email'],
input[type='number'],
textarea {
    transition: all 0.2s ease-in-out !important;
    border-color: #d1d5db !important;
    border-width: 1px !important;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='number']:focus,
textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(67, 38, 137, 0.4) !important;
    background-color: #ffffff !important;
    outline: none !important;
}


/* --- Form Component Styling (Contact Page) --- */

/* Form Card Container (max-w-xl mx-auto bg-white shadow-xl rounded-xl p-8 sm:p-10 lg:p-12) */
.form-card {
    max-width: 42rem; /* max-w-xl */
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 2rem; /* p-8 */
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) { /* sm breakpoint */
    .form-card {
        padding: 2.5rem; /* sm:p-10 */
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .form-card {
        padding: 3rem; /* lg:p-12 */
    }
}

/* Form Headings */
.form-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    color: var(--dark-text); 
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-description {
    color: var(--light-gray);
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Body */
.form-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space-y-6 */
}

/* Form Group (Label and Field wrapper) */
.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.required-star {
    color: #ef4444; /* red-500 */
}

/* Error Message */
.form-error-message {
    margin-top: 0.5rem;
    font-size: 0.875rem; /* text-sm */
    color: #dc2626; /* red-600 */
}

/* Submit Button (Fix is included below) */
.form-submit-button {
    /* --- FIX FOR OLDER APPEARANCE --- */
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;         
    border: none;
    /* --------------------------------- */

    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem; /* py-3 px-4 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* shadow-lg */
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: #fff;
    background-color: var(--primary-color);
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.form-submit-button:hover {
    background-color: var(--primary-light);
}

.form-submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(67, 38, 137, 0.4); /* Focus ring using primary color */
}

/* --- Home Page Hero Section (Supporting home.html) --- */
.hero-section {
    text-align: center;
    padding: 4rem 1rem; /* py-16 */
    background-color: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
    border-radius: 0.75rem; /* rounded-xl */
}

.hero-title {
    font-size: 3rem; /* text-5xl (will scale up on larger screens) */
    line-height: 1;
    font-weight: 800; /* font-extrabold */
    color: var(--dark-text); 
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .hero-title {
        font-size: 4rem; /* Making it truly 5xl equivalent */
    }
}

.hero-subtitle {
    font-size: 1.25rem; /* text-xl */
    color: var(--light-gray);
    margin-bottom: 2rem;
    max-width: 42rem; /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
}

/* --- Legal Document Styling (Supporting legal.html) --- */
.legal-document {
    max-width: 64rem; /* max-w-4xl */
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 2rem; /* p-8 */
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) { /* sm breakpoint */
    .legal-document {
        padding: 2.5rem; /* sm:p-10 */
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .legal-document {
        padding: 3rem; /* lg:p-12 */
    }
}

.legal-title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    color: var(--dark-text); 
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #d1d5db; 
    padding-bottom: 0.75rem; /* pb-3 */
}

.legal-content {
    color: var(--text-color); /* text-gray-700 */
    line-height: 1.75; /* leading-relaxed */
}

/* Convert Tailwind's space-y-4 class to standard margin-bottom on child elements */
.legal-content > p {
    margin-bottom: 1rem; /* space-y-4 equivalent */
}


/* --- Enterprise Landing Page Enhancements --- */

/* Badge Styling */
.badge {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Section Refinement */
.enterprise-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f8f5ff 55%, #ffffff 100%);
    padding: 4rem 1.5rem;
    border-radius: 1.5rem;
    margin-bottom: 4rem;
    border: 1px solid rgba(67, 38, 137, 0.08);
}

.hero-layout {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-layout-split {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    text-align: left;
}

@media (min-width: 900px) {
    .hero-layout-split {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 3rem;
        text-align: left;
    }
}

.hero-layout-split .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.hero-layout-split .hero-actions {
    justify-content: flex-start;
}

.hero-visual {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(67, 38, 137, 0.1);
    background: #fff;
    box-shadow: 0 18px 40px rgba(67, 38, 137, 0.12);
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-visual-square {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-note {
    margin-top: 1.25rem;
    color: var(--light-gray);
    font-size: 0.95rem;
}

.hero-note a {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* Button Components */
.btn-primary, .btn-secondary, .btn-white {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.section-heading {
    text-align: center;
    font-size: 2.25rem;
    color: var(--dark-text);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    margin: 4rem 0;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-size: 1.125rem;
}

/* Legal Page Refinements */
.meta-date {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.legal-content h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 2rem 0 1rem 0;
    font-weight: 700;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 3rem 0 1.5rem 0;
}

.contact-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-gray);
}

.contact-footer a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

/* --- Contact Page Enterprise Layout --- */

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2rem 0;
}

@media (min-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
        padding: 4rem 0;
    }
}

.contact-info-panel {
    padding-right: 1rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s;
}

.contact-method-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.method-icon {
    font-size: 1.5rem;
    background: var(--secondary-color);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.contact-method-card h4 {
    color: var(--dark-text);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.contact-method-card p {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin: 0;
}

.form-help-text {
    font-size: 0.8rem;
    color: var(--light-gray);
    margin-top: 0.4rem;
}

.release-notes-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.release-entry {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.release-entry h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.release-entry p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.release-entry ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.release-entry li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.release-entry strong {
    color: var(--dark-text);
}

/* --- Refreshed Contact Page Layout --- */

.contact-heading {
    text-align: left !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem;
}

.contact-subtext {
    text-align: left !important;
    margin-left: 0 !important;
}

.form-wrapper {
    width: 100%;
}

.contact-form-card {
    margin-top: 0 !important;
    width: 100% !important;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

/* --- Refreshed Text Box Areas --- */

input[type='text'],
input[type='email'],
input[type='number'],
textarea {
    width: 100%;
    padding: 0.875rem 1rem !important; /* Larger hit area */
    font-size: 1rem !important;
    background-color: #ffffff !important;
    border: 2px solid #e5e7eb !important; /* Thicker border for modern feel */
    border-radius: 0.75rem !important; /* Softer corners */
    color: var(--dark-text) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Enhanced Focus State */
input[type='text']:focus,
input[type='email']:focus,
input[type='number']:focus,
textarea:focus {
    border-color: var(--primary-color) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px var(--secondary-color) !important; /* Uses your soft purple variable */
    outline: none !important;
}

/* Specific styling for Textarea (Message Box) */
textarea {
    min-height: 150px;
    resize: vertical;
}

/* Animation for the submit button arrow */
.button-arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}

.form-submit-button:hover .button-arrow {
    transform: translateX(4px);
}

.form-action {
    padding-top: 0.5rem;
}

/* Hover effect for the whole card */
.contact-form-card:hover {
    box-shadow: 0 25px 50px -12px rgba(67, 38, 137, 0.15);
}

/* Message Container Positioning */
.message-container {
    margin-top: 1rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

/* Base Message Box Styles */
.message-box {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-left: 5px solid transparent;
}

/* Success: Green Theme */
.message-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left-color: #10b981;
}

/* Error: Red Theme */
.message-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

/* Info: Blue Theme */
.message-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left-color: #3b82f6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Download Page */
.download-page {
    width: 100%;
}

.store-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.store-badge-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.store-badge-link:hover {
    transform: translateY(-2px);
}

.store-badge-img {
    height: 52px;
    width: auto;
    display: block;
}

@media (max-width: 640px) {
    .store-badges {
        flex-direction: column;
    }
}

/* --- Marketing refresh: audiences, proof, landings --- */

.hero-tagline {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.section-intro {
    text-align: center;
    max-width: 40rem;
    margin: -2rem auto 2.5rem;
    color: var(--light-gray);
    font-size: 1.05rem;
}

.section-note {
    margin-top: 2rem;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.section-link {
    text-align: center;
    margin-top: 2rem;
}

.section-link a,
.card-cta a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.section-link a:hover,
.card-cta a:hover {
    text-decoration: underline;
}

.card-cta {
    margin-top: 1rem;
    margin-bottom: 0;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.audience-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px -8px rgba(67, 38, 137, 0.2);
}

.audience-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.audience-card p {
    color: var(--light-gray);
    margin: 0;
}

.landing-banner {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.landing-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.landing-banner-square {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.facts-list {
    list-style: none;
    max-width: 36rem;
    margin: 0 auto;
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.facts-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-color);
}

.facts-list li:last-child {
    border-bottom: none;
}

.footer-audience {
    margin-top: 0.5rem;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .header-content {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .app-logo {
        font-size: 1.35rem;
    }

    .app-nav {
        position: static;
        width: 100%;
        right: auto;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0.5rem 0 0;
        background: transparent;
        flex-basis: 100%;
    }

    .hero-layout-split {
        text-align: left;
    }

    .hero-layout-split .hero-actions {
        justify-content: stretch;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.15;
    }

    .enterprise-hero {
        padding: 3rem 1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .hero-actions a {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.25rem;
    }

    .cta-banner {
        padding: 3rem 1.25rem;
        margin: 2rem 0;
    }

    .cta-banner h2 {
        font-size: 1.75rem;
    }
}

.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

.docs-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    position: sticky;
    top: 1rem;
}

.docs-nav__summary {
    font-weight: 700;
    color: var(--dark-text);
    cursor: pointer;
}

.docs-search__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0.75rem 0 0.35rem;
}

.docs-search__input,
.docs-filter-tab {
    font: inherit;
}

.docs-search__input {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.docs-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.75rem 0;
}

.docs-filter-tab {
    border: 0;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    cursor: pointer;
}

.docs-filter-tab.is-active {
    background: var(--primary-color);
    color: #fff;
}

.docs-sidebar__home,
.docs-sidebar__link {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.25rem 0;
}

.docs-sidebar__home {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.docs-sidebar__heading {
    margin: 0.85rem 0 0.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--light-gray);
}

.docs-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-sidebar__link.is-active,
.docs-sidebar__home.is-active {
    color: var(--primary-color);
    font-weight: 700;
}

.docs-content {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1.75rem 2rem;
}

.docs-content h1 {
    color: var(--dark-text);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.docs-content h2 {
    color: var(--dark-text);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem;
}

.docs-lead {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.docs-content ol,
.docs-content ul {
    margin: 0.5rem 0 0.5rem 1.25rem;
}

.docs-content li + li {
    margin-top: 0.35rem;
}

.docs-content a {
    color: var(--primary-color);
}

.docs-content a.btn-primary,
.docs-content a.btn-primary:hover {
    color: white;
}

.docs-cta {
    margin: 1rem 0 1.5rem;
}

.docs-note {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin: 1rem 0;
}

.docs-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.docs-index-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
}

.docs-index-card h2 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.docs-index-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-search-empty {
    margin: 1rem 0;
}

.docs-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.docs-pager__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--primary-color);
    max-width: 46%;
}

.docs-pager__link--next {
    text-align: right;
    margin-left: auto;
}

.docs-pager__dir {
    font-size: 0.75rem;
    color: var(--light-gray);
}

@media (max-width: 800px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
    }
}

/* ==========================================================================
   Band & music first refresh (bv- prefix keeps these apart from older rules)
   Sections: tokens, a11y helpers, announcement bar, header/nav, buttons,
   hero, segments, features, sponsor steps, security callout, dialog.
   ========================================================================== */

:root {
    /* Gold/amber accent. --bv-gold is a fill; use --bv-gold-ink for gold TEXT on white. */
    --bv-gold: #e8b33a;
    --bv-gold-hover: #f0c459;
    --bv-gold-ink: #7a4f00;      /* 7:1 on white */
    --bv-ink: #2a1a5e;           /* dark violet text on gold, 7:1 */
    --bv-surface-gold: #fff7e0;
}

/* --- Accessibility helpers --- */
.bv-skip {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    z-index: 100;
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
}
.bv-skip:focus {
    top: 0.75rem;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--bv-gold);
    outline-offset: 2px;
    border-radius: 0.35rem;
}
.app-footer a:focus-visible {
    outline-color: #fff;
}

.bv-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Announcement bar (rendered on every page from base.html) --- */
.bv-announce {
    background: var(--bv-gold);
    color: var(--bv-ink);
    font-size: 0.95rem;
}
.bv-announce[hidden] {
    display: none;
}
.bv-announce__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    position: relative;
    padding-right: 3rem;
    padding-left: 1rem;
}
.bv-announce__text {
    margin: 0;
    font-weight: 600;
    text-align: center;
}
.bv-announce__link {
    background: var(--bv-ink);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
}
.bv-announce__link:hover {
    background: #3b2685;
}
.bv-announce__close {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--bv-ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

/* --- Buttons --- */
.btn-gold {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--bv-gold);
    color: var(--bv-ink);
    transition: background-color 0.2s, transform 0.2s;
    box-sizing: border-box;
}
.btn-gold:hover {
    background: var(--bv-gold-hover);
    transform: translateY(-2px);
}
.btn-primary,
.btn-secondary,
.btn-white {
    min-height: 44px;
}
.cta-banner .btn-secondary {
    border-color: #fff;
    color: #fff;
}
.cta-banner .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}
.cta-banner .hero-actions {
    margin-top: 0;
}

/* --- Header: primary nav + CTA --- */
.nav-link-gold {
    background: var(--bv-gold);
    color: var(--bv-ink);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.nav-link-gold:hover {
    background: var(--bv-gold-hover);
    color: var(--bv-ink);
}
.app-nav .nav-link-gold {
    background: var(--bv-gold);
    color: var(--bv-ink);
}
.nav-link[aria-current="page"] {
    color: var(--primary-color);
    font-weight: 700;
}
.bv-nav-mobile-only {
    display: flex;
}
.bv-nav-desktop-only {
    display: none;
}

@media (min-width: 1100px) {
    .header-content {
        flex-wrap: nowrap;
    }
    .nav-toggle {
        display: none;
    }
    .app-nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        width: auto;
        padding: 0;
        gap: 0.25rem;
        background: transparent;
        border: 0;
        box-shadow: none;
        order: 2;
        margin-left: auto;
    }
    .app-nav .nav-link {
        background: transparent;
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    .app-nav .nav-link:hover {
        background: var(--secondary-color);
    }
    .header-actions {
        order: 3;
        margin-left: 0.5rem;
    }
    .app-nav .bv-nav-mobile-only,
    .bv-nav-mobile-only {
        display: none;
    }
    .bv-nav-desktop-only {
        display: inline-flex;
    }
    .app-logo {
        font-size: 1.6rem;
    }
}

@media (max-width: 1099px) {
    /* Desktop-only header CTA lives in the dropdown on small screens */
    .header-actions .bv-nav-desktop-only {
        display: none;
    }
}

/* --- Hero --- */
.bv-kicker {
    display: inline-block;
    background: var(--bv-surface-gold);
    color: var(--bv-gold-ink);
    border: 1px solid rgba(232, 179, 58, 0.6);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.bv-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 1.75rem 0 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
}
.bv-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.bv-fineprint {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--light-gray);
    max-width: 38rem;
}
.bv-fineprint a {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Sections --- */
.bv-section {
    padding: 3.5rem 0;
}
.bv-section-head {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 2.5rem;
}
.bv-section-head h2 {
    font-size: 2.25rem;
    color: var(--dark-text);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.bv-section-head p {
    color: var(--light-gray);
    font-size: 1.05rem;
}

/* --- Segments (who it is for) --- */
.bv-segments {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) {
    .bv-segments {
        grid-template-columns: repeat(2, 1fr);
    }
    .bv-segment--featured {
        grid-column: span 2;
    }
}
@media (min-width: 1100px) {
    /* The featured band & music card is wider; the other three share the rest. */
    .bv-segments {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
    .bv-segment--featured {
        grid-column: auto;
    }
}
.bv-arrow {
    margin-left: 0.35rem;
}
.bv-segment {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.bv-segment--featured {
    background: linear-gradient(160deg, #fff 0%, var(--bv-surface-gold) 100%);
    border: 2px solid var(--bv-gold);
}
.bv-segment h3 {
    color: var(--dark-text);
    font-size: 1.25rem;
    line-height: 1.3;
}
.bv-segment p {
    margin: 0;
    color: var(--text-color);
}
.bv-segment__price {
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: var(--secondary-color);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}
.bv-segment--featured .bv-segment__price {
    background: var(--bv-gold);
    color: var(--bv-ink);
}
.bv-segment__link {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    padding: 0.7rem 0;   /* 44px touch target */
}
.bv-segment__link:hover {
    text-decoration: underline;
}

/* --- Feature icon cards --- */
.bv-features {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.bv-feature {
    background: #fff;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.bv-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}
.bv-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bv-feature h3 {
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.bv-feature p {
    margin: 0;
}

/* --- 50/50 sponsor steps --- */
.bv-sponsor {
    background: var(--bv-surface-gold);
    border: 1px solid rgba(232, 179, 58, 0.5);
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
}
.bv-steps {
    list-style: none;
    counter-reset: bv-step;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}
.bv-steps li {
    counter-increment: bv-step;
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.bv-steps li::before {
    content: counter(bv-step);
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.bv-steps h3 {
    font-size: 1.05rem;
    color: var(--dark-text);
    margin-bottom: 0.35rem;
}
.bv-steps p {
    margin: 0;
    font-size: 0.95rem;
}
.bv-sponsor__note {
    text-align: center;
    max-width: 40rem;
    margin: 1.75rem auto 0;
    font-size: 0.95rem;
    color: var(--text-color);
}
.bv-sponsor__note a {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Security callout --- */
.bv-security {
    background: var(--primary-color);
    color: #fff;
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
    display: grid;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
@media (min-width: 900px) {
    .bv-security {
        grid-template-columns: 1.1fr 1fr;
        align-items: center;
        padding: 3rem;
    }
}
.bv-security h2 {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.bv-security p {
    opacity: 0.95;
}
.bv-security__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
.bv-security__list li {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-weight: 600;
}
.bv-security a {
    color: var(--bv-gold);
    font-weight: 700;
}

/* --- Dialog (school setup help) --- */
.bv-dialog {
    border: 0;
    border-radius: 1rem;
    padding: 2rem;
    max-width: min(32rem, calc(100% - 2rem));
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.35);
}
.bv-dialog::backdrop {
    background: rgba(17, 24, 39, 0.55);
}
.bv-dialog h2 {
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}
.bv-dialog ol {
    margin: 0.75rem 0 1.25rem 1.25rem;
}
.bv-dialog li {
    margin-bottom: 0.4rem;
}
.bv-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.bv-dialog__actions button {
    font: inherit;
    cursor: pointer;
}

/* --- About page --- */
.bv-about {
    max-width: 46rem;
    margin: 0 auto;
}
.bv-about h2 {
    color: var(--dark-text);
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    line-height: 1.25;
}
.bv-about h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 1.75rem 0 0.5rem;
}
.bv-about p,
.bv-about li {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.bv-about ul {
    margin: 0 0 1rem 1.25rem;
}
.bv-about__sign {
    font-weight: 700;
    color: var(--primary-color);
}

/* --- Motion: respect reduced-motion preferences --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .feature-card:hover,
    .audience-card:hover,
    .btn-primary:hover,
    .btn-gold:hover {
        transform: none;
    }
}

@media (max-width: 767px) {
    .bv-section-head h2 {
        font-size: 1.75rem;
    }
    .bv-announce__inner {
        padding-right: 3rem;
    }
}

/* Link-styled button (opens the setup help dialog) and footer contact line */
.bv-linklike {
    background: none;
    border: 0;
    padding: 0.5rem 0;
    font: inherit;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    min-height: 44px;
}
.footer-contact {
    margin-top: 0.75rem;
}
