:root {
    /* Marketing-only tokens. The app uses main.css with parallel tokens.
       Canonical brand names per /brand-guide/: Cinnabar / Keppel / Steel Blue / Onyx. */
    --bg-color: #F6F5F4; /* Off-white/Cream - Classic Swiss */
    --text-color: #393E41; /* Onyx, same as main.css --color-brand-dark */
    --accent-color: #E94F37; /* Cinnabar, same as main.css --color-brand-red */
    --brand-teal: #44BBA4; /* Keppel, same as main.css --color-brand-teal */
    --brand-charcoal: #393E41; /* Onyx, same as main.css --color-brand-dark, stable across themes */
    --brand-white: #FFFFFF; /* Pure white, stable across themes */
    --grid-line: #D1D1C7;
    --surface-color: #FFFFFF;

    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Manrope", sans-serif;

    --spacing-unit: 8px;
    --container-width: 1400px;
    --grid-gap: 1px; /* Visible grid lines via gap */

    --site-header-height: 80px;
    --header-height: var(--site-header-height);
    --staging-banner-height: 0px;
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Dark-inverted surface tokens (used by .invert section variants,
       society hero, filter bar). Brand colors above stay untouched. */
    --bg-invert: #1A1A1A;
    --surface-invert: #262626;           /* chips, raised cards on invert */
    --surface-invert-soft: #2A2A2A;      /* inputs, subtler raise */
    --rule-invert: #2D2D2D;              /* grid-line equivalent on invert */
    --rule-invert-strong: #404040;       /* heavier borders on invert */
    --text-invert: #E8E8E8;              /* base text on invert */
    --text-invert-strong: var(--brand-white);       /* headings on invert */
    --text-invert-dim: rgba(232, 232, 232, 0.88);    /* body text on invert */
    --text-invert-muted: rgba(232, 232, 232, 0.72);  /* secondary / caption on invert */
    --text-invert-soft: rgba(232, 232, 232, 0.4);    /* placeholder / disabled on invert */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.has-staging-environment-banner {
    --staging-banner-height: 56px;
    --header-height: calc(var(--site-header-height) + var(--staging-banner-height));
}

.staging-environment-banner {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1100;
    height: var(--staging-banner-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.6rem, 2vw, 1.25rem);
    padding-inline: 1rem;
    overflow: hidden;
    border-bottom: 3px solid #1A1A1A;
    background: repeating-linear-gradient(135deg, #FFD166 0 18px, #F6C344 18px 36px);
    color: #1A1A1A;
    font-family: var(--font-display);
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.22);
}

.staging-environment-banner strong {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.14em;
}

.staging-environment-banner span {
    padding-inline-start: clamp(0.6rem, 2vw, 1.25rem);
    border-inline-start: 2px solid currentColor;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.18em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 0;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
}

p {
    max-width: 60ch;
    margin-bottom: 1.5rem;
}

.legal-content p {
    max-width: none;
    margin-bottom: 0.5rem;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utility */
.container {
    background-color: var(--bg-color);
    min-height: auto;
}

.nav-link:focus-visible,
.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--brand-teal);
    outline-offset: 2px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(68, 187, 164, 0.15);
    color: var(--text-color);
    border-radius: var(--radius-badge);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Layout & Grid */
.grid-section {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    background-color: var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
}

.grid-cell {
    background-color: var(--bg-color);
    padding: clamp(1rem, 3vw, 3rem);
    position: relative;
}

/* Header */
body > header {
    position: fixed;
    top: var(--staging-banner-height);
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--grid-line);
    background-color: var(--bg-color);
}

.header-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.logo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1rem, 3vw, 3rem);
    border-inline-end: 1px solid var(--grid-line);
}

.logo {
    display: inline-block;
    position: relative;
}

.logo svg {
    display: block;
    height: 2rem;
}

.logo-header svg {
    height: 2rem;
}

.logo-footer svg {
    height: 1.5rem;
}

.logo svg text {
    font-family: "Space Grotesk", var(--font-display), sans-serif;
    font-weight: 700;
    fill: currentColor;
}

.logo svg tspan {
    fill: var(--accent-color);
}

.logo svg rect {
    fill: var(--brand-teal);
}

.nav-link {
    padding: 1.5rem;
    text-align: center;
    border-inline-start: 1px solid var(--grid-line);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.nav-link-login {
    background-color: var(--brand-teal);
    color: var(--brand-charcoal);
    font-weight: 600;
}

.nav-link-login:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    margin-inline-start: auto;
}

.mobile-menu-toggle i {
    color: var(--text-color);
    font-size: 2rem;
}

.check { color: var(--accent-color); font-weight: bold; }
.cross { color: #ccc; }

/* Conversion */
.conversion-section {
    background-color: var(--brand-teal);
    color: var(--brand-charcoal);
    display: flex;
    align-items: center;
    padding: 4rem clamp(1rem, 3vw, 3rem);
    gap: 3rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

input {
    padding: 1rem;
    border: none;
    background: rgba(255,255,255,0.9);
    font-family: var(--font-body);
}

/* Footer */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--grid-line);
    background-color: var(--bg-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(6, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

/* Legacy variable mappings for compatibility */
:root {
    --color-bg-primary: var(--bg-color);
    --color-bg-secondary: #EAEAE4;
    --color-text-primary: var(--text-color);
    --color-text-secondary: var(--text-color);
    --color-text-tertiary: #999;
    --color-accent: var(--accent-color);
    --color-primary: var(--brand-teal);
    --color-secondary: var(--bg-color);
    --color-border-light: var(--grid-line);
    --color-success: var(--brand-teal);
    --color-info: var(--brand-teal);
    --color-warning: var(--accent-color);
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
}

/* Form controls */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="range"] {
    padding: 0.75rem;
    border: 1px solid var(--grid-line);
    background: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-color);
    width: 100%;
}

input[type="range"] {
    padding: 0;
    height: 8px;
    background: var(--grid-line);
    border-radius: var(--radius-control);
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 1rem;
    text-align: start;
    border-bottom: 1px solid var(--grid-line);
}

table thead th {
    background-color: var(--brand-teal);
    color: var(--brand-charcoal);
    font-weight: 700;
    text-transform: uppercase;
}

table tbody tr:hover {
    background-color: rgba(68, 187, 164, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    /* Header and Navigation */
    body > header {
        position: fixed;
        top: var(--staging-banner-height);
        left: 0;
        width: 100%;
    }

    .header-container {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .nav-grid {
        display: flex;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        border-inline-start: none;
        border-inline-end: none;
        background-color: rgba(242, 242, 235, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-grid.active {
        max-height: 500px;
        border-bottom: 1px solid var(--grid-line);
    }

    .logo-header {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 60px;
        border-bottom: 1px solid var(--grid-line);
        border-inline-end: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 1.25rem 1rem;
        border-inline-start: none;
        border-bottom: 1px solid var(--grid-line);
        text-align: start;
        width: 100%;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    :root {
        --site-header-height: 60px;
        --header-height: var(--site-header-height);
    }

    /* Grid Sections */
    .grid-section {
        grid-template-columns: 1fr;
    }

    .grid-cell {
        grid-column: 1 / -1 !important;
        border-inline-end: none !important;
        border-bottom: 1px solid var(--grid-line);
        padding: clamp(1.5rem, 4vw, 2rem);
    }

    .grid-cell:last-child {
        border-bottom: none;
    }

    /* Conversion Section */
    .conversion-section {
        flex-direction: column;
        text-align: center;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    input[type="text"],
    input[type="email"] {
        width: 100%;
        padding: 1rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .help-content {
        padding: 2rem 1.5rem;
    }

    /* Typography adjustments */
    h1 {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    h3 {
        font-size: clamp(1.25rem, 4vw, 2rem);
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Container */
    .container {
        border-inline-start: none;
        border-inline-end: none;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

/* Spacing Utilities */
.mt-1 { margin-top: var(--spacing-1); }
.mt-2 { margin-top: var(--spacing-2); }
.mt-3 { margin-top: var(--spacing-3); }
.mt-4 { margin-top: var(--spacing-4); }
.mb-1 { margin-bottom: var(--spacing-1); }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-3 { margin-bottom: var(--spacing-3); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.pt-4 { padding-top: var(--spacing-4); }
.pb-4 { padding-bottom: var(--spacing-4); }
.m-0 { margin: 0; }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: start; }
.text-right { text-align: end; }

/* Display */
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.flex-column { flex-direction: column; }
.flex-grow-1 { flex-grow: 1; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.gap-1 { gap: var(--spacing-1); }
.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }

/* Colors */
.text-white { color: white; }
.text-primary { color: var(--brand-teal); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-warning { color: var(--color-warning); }
.bg-dark { background-color: var(--brand-charcoal); }
.bg-white { background-color: white; }
.bg-surface { background-color: var(--surface-color); }
.bg-teal { background-color: var(--brand-teal); }

/* Font Sizes */
.fs-xs { font-size: var(--font-size-xs); }
.fs-sm { font-size: var(--font-size-sm); }
.fs-base { font-size: var(--font-size-base); }
.fs-lg { font-size: var(--font-size-lg); }
.fs-xl { font-size: var(--font-size-xl); }
.fs-2xl { font-size: var(--font-size-2xl); }
.fs-3xl { font-size: var(--font-size-3xl); }
.fs-5xl { font-size: var(--font-size-5xl); }

/* Font Weights */
.fw-semibold { font-weight: var(--font-weight-semibold); }
.fw-bold { font-weight: var(--font-weight-bold); }

/* Width */
.w-100 { width: 100%; }
.w-60 { width: 60%; }

/* Padding */
.p-0 { padding: 0; }
.p-3 { padding: var(--spacing-3); }
.p-4 { padding: var(--spacing-4); }
.p-6 { padding: var(--spacing-6); }
.px-3 { padding-inline-start: var(--spacing-3); padding-inline-end: var(--spacing-3); }
.py-3 { padding-top: var(--spacing-3); padding-bottom: var(--spacing-3); }

/* Border */
.border-right { border-inline-end: 1px solid var(--grid-line); }

.border-top { border-top: 1px solid var(--grid-line); }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* List */
.list-none { list-style: none; }

/* ============================================
   Calculator Component Styles
   ============================================ */

.calculator-input-group {
    margin-bottom: 1.75rem;
    padding: 0;
    border: 0;
}

/* Deal Type Selector */
.deal-type-selector {
    margin-bottom: var(--spacing-6);
}

.deal-type-selector .form-check {
    padding: var(--spacing-3);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-control);
    cursor: pointer;
    margin-bottom: var(--spacing-3);
    transition: background-color 0.2s, border-color 0.2s;
}

.deal-type-selector .form-check:hover {
    background-color: var(--color-bg-hover, rgba(68, 187, 164, 0.05));
    border-color: var(--color-primary) !important;
}

.deal-type-selector .form-check:has(input:checked) {
    border-color: var(--color-primary) !important;
    background-color: rgba(68, 187, 164, 0.1);
}

.deal-type-selector input[type="radio"]:checked + label {
    color: var(--color-primary);
}

.deal-type-selector .form-check-label {
    cursor: pointer;
    width: 100%;
}

/* Calculator Results */
.calculator-results {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--brand-teal);
    color: var(--brand-charcoal);
    text-align: center;
}

.calculator-breakdown {
    padding: 0;
    margin-bottom: 1.5rem;
    background: transparent;
}

.calculator-breakdown-item {
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--color-border-light);
}

.calculator-breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2);
}

progress.calculator-progress-bar {
    display: block;
    width: 100%;
    height: .5rem;
    appearance: none;
    border: 0;
    border-radius: var(--radius-track);
    overflow: hidden;
    background: var(--grid-line);
}
progress.calculator-progress-bar::-webkit-progress-bar { background: var(--grid-line); }
progress.calculator-progress-mechanical { --progress-color: var(--color-success); }
progress.calculator-progress-performance { --progress-color: var(--color-info); }
progress.calculator-progress-bar::-webkit-progress-value { background: var(--progress-color); }
progress.calculator-progress-bar::-moz-progress-bar { background: var(--progress-color); }

/* ============================================
   Radio Player Component Styles
   ============================================ */

.radio-player-section {
    padding-top: var(--header-height);
}

.radio-player-container {
    grid-column: span 10;
    margin: 0 auto;
}

.radio-now-playing {
    text-align: center;
    margin-bottom: var(--spacing-4);
}

.radio-song-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-2);
}

.radio-song-artist {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin: 0;
}

.radio-progress-container {
    width: 100%;
    height: 8px;
    background-color: var(--color-border-light);
    border-radius: var(--radius-track);
    overflow: hidden;
    cursor: pointer;
}

.radio-progress-bar {
    display: block;
    appearance: none;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius-track);
    background: transparent;
    color: var(--brand-teal);
}

.radio-controls {
    text-align: center;
    margin-bottom: var(--spacing-4);
}

.radio-control-btn {
    margin: 0 var(--spacing-2);
    min-width: 120px;
}

.radio-volume-control {
    text-align: center;
}

.radio-volume-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin-inline-end: var(--spacing-2);
}

.radio-volume-slider {
    width: 200px;
    vertical-align: middle;
}

.radio-playlist {
    max-height: 500px;
    overflow-y: auto;
}

.radio-playlist-item {
    padding: 1rem;
    border-bottom: 1px solid var(--grid-line);
    cursor: pointer;
    transition: background-color 0.2s;
}

.radio-playlist-item:hover {
    background-color: #EAEAE4;
}

.radio-playlist-item.active {
    background-color: #EAEAE4 !important;
}

.radio-playlist-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.radio-playlist-item-title {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-1);
}

.radio-playlist-item-meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.radio-playlist-item-duration {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
}

/* ============================================
   Grid Cell Variations
   ============================================ */

.grid-cell-span-3 {
    grid-column: span 3;
}

.grid-cell-span-4 {
    grid-column: span 4;
}

.grid-cell-span-5 {
    grid-column: span 5;
}

.grid-cell-span-6 {
    grid-column: span 6;
}

.grid-cell-span-7 {
    grid-column: span 7;
}

.grid-cell-span-10 {
    grid-column: span 10;
}

.grid-cell-span-12 {
    grid-column: span 12;
}

.grid-cell-center {
    margin: 0 auto;
}

/* ============================================
   Other Component Styles
   ============================================ */


.empty-state {
    grid-column: span 10;
    margin: 0 auto;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

/* ============================================
   Learn Page Styles
   ============================================ */

.learn-royalty-card {
    display: flex;
    flex-direction: column;
}

.learn-royalty-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-color);
    color: var(--bg-color);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .learn-royalty-icon {
    background-color: var(--brand-white);
    color: var(--brand-charcoal);
}

.learn-list {
    list-style: none;
    padding: 0;
}

.learn-list li {
    position: relative;
    padding-inline-start: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.learn-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--accent-color);
}

/* ============================================
   Newsletter Signup
   ============================================ */

.newsletter-signup {
    padding: 2rem;
    margin: 2rem 0;
}

.newsletter-signup h3 {
    margin: 0 0 0.5rem;
}

.newsletter-signup p {
    margin: 0 0 1.25rem;
}

.newsletter-fine-print {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
}

/* ============================================
   Dark Mode
   ============================================ */

[data-theme="dark"] {
    --bg-color: var(--bg-invert);
    --text-color: #e8e8e8;
    --grid-line: #404040;
    --surface-color: #2d2d2d;
    --color-bg-secondary: #2d2d2d;
    --color-text-primary: #e8e8e8;
    --color-text-secondary: #b8b8b8;
    --color-text-tertiary: #8b8b8b;
    --color-border-light: #404040;
    --color-hover-bg: #3a3a3a;
}

/* Logo switching */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* Mobile nav */
@media (max-width: 768px) {
    [data-theme="dark"] .nav-grid {
        background-color: rgba(26, 26, 26, 0.98);
    }
}

/* Comparison table */

[data-theme="dark"] .cross {
    color: #555;
}

/* Progress uses a native value; JavaScript does not write presentation styles. */
.radio-progress-bar::-webkit-progress-bar { background: transparent; }
.radio-progress-bar::-webkit-progress-value { background: var(--brand-teal); }
.radio-progress-bar::-moz-progress-bar { background: var(--brand-teal); }

/* Radio playlist */
[data-theme="dark"] .radio-playlist-item:hover {
    background-color: #3a3a3a;
}

[data-theme="dark"] .radio-playlist-item.active {
    background-color: #3a3a3a !important;
}

/* Calculator breakdown */
[data-theme="dark"] .calculator-breakdown {
    background-color: rgba(45, 45, 45, 0.9);
}

/* Utility overrides */
[data-theme="dark"] .bg-white {
    background-color: #2d2d2d;
}

[data-theme="dark"] .bg-surface {
    background-color: #2d2d2d;
}

/* Form inputs */
[data-theme="dark"] input {
    background: rgba(255, 255, 255, 0.1);
    color: #e8e8e8;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="email"] {
    background: #2d2d2d;
    border-color: #404040;
    color: #e8e8e8;
}

[data-theme="dark"] input[type="range"] {
    background: #404040;
}

/* Tables */
[data-theme="dark"] table tbody tr:hover {
    background-color: rgba(68, 187, 164, 0.1);
}

/* FAQ / details */

/* Help section */

/* Deal type selector */
[data-theme="dark"] .deal-type-selector .form-check {
    border-color: #404040;
}

[data-theme="dark"] .deal-type-selector .form-check:hover {
    background-color: rgba(68, 187, 164, 0.1);
}

[data-theme="dark"] .deal-type-selector .form-check:has(input:checked) {
    background-color: rgba(68, 187, 164, 0.15);
}

/* Buttons */

/* Nav link hover */
[data-theme="dark"] .nav-link:hover {
    background-color: var(--brand-white);
    color: var(--brand-charcoal);
}

[data-theme="dark"] .nav-link.text-white:hover {
    background-color: var(--accent-color);
    color: white;
}

/* "Register your songs" nav link, pure white bg with charcoal text in dark mode */
[data-theme="dark"] .nav-link.text-white {
    background-color: var(--brand-white);
    color: var(--brand-charcoal);
}

/* "Built for Artists" section, text-white on var(--text-color) bg */
[data-theme="dark"] .grid-cell.text-white {
    color: var(--brand-charcoal);
}

/* Conversion & signup section inputs stay light on colored bg */
[data-theme="dark"] .conversion-section input {
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-charcoal);
}

/* Theme Toggle */
.theme-toggle-row {
    margin-top: 1rem;
}

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--grid-line);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--text-color);
    transition: border-color 0.2s, color 0.2s;
}

.theme-toggle-btn:hover {
    border-color: var(--brand-teal);
    color: var(--brand-teal);
}

.theme-icon-dark { display: none; }

[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline; }

/* ============================================
   Article + Society layouts (Figma mockup parity)
   Shared primitives for long-form guides and collection-society pages.
   ============================================ */

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
    padding: 0.375rem 0.75rem;
    border: 1px solid currentColor;
    margin-bottom: 1.25rem;
}

/* Article hero -------------------------------------------------- */
.article-hero {
    padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
    padding-top: calc(var(--header-height) + clamp(3rem, 6vw, 5rem));
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--grid-line);
}

.article-hero__inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.article-hero__title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    max-width: 18ch;
    margin-bottom: 1.5rem;
}

.article-hero__title .accent {
    color: var(--accent-color);
}

.article-hero__lede {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.6vw, 1.375rem);
    line-height: 1.55;
    max-width: 62ch;
    margin-bottom: 2rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}


/* Sections -------------------------------------------------------- */
.section-intro {
    max-width: 62ch;
    font-size: 1.0625rem;
    line-height: 1.65;
    margin-top: 0.75rem;
}

.grid-section h2 {
    margin-bottom: 0.5rem;
}

/* Stat trio ------------------------------------------------------- */
.stat-trio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background-color: var(--grid-line);
    border: 1px solid var(--grid-line);
    margin-top: 2rem;
}

.stat-card {
    background-color: var(--bg-color);
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.stat-card__value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    color: var(--accent-color);
    line-height: 1.1;
    margin-bottom: 0.375rem;
}

.stat-card__label {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8125rem;
    font-weight: 600;
}

.stat-card__sublabel {
    font-size: 0.875rem;
    color: rgba(57, 62, 65, 0.7);
    margin-top: 0.375rem;
    line-height: 1.4;
}

/* Numbered steps (pill + connector rail) ------------------------- */
.steps-section {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--grid-line);
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}

.steps-section__inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.steps-section__inner > h2 { margin-bottom: 0.5rem; }
.steps-section__inner .section-intro { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.step-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-row__rail {
    flex: 0 0 auto;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
}

.step-pill {
    width: 80px;
    height: 40px;
    background-color: var(--text-color);
    color: var(--bg-color);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-rail-line {
    flex: 1 1 auto;
    width: 1px;
    min-height: 1.5rem;
    background-color: var(--grid-line);
    margin: 0.5rem 0;
}

.step-row__body {
    flex: 1 1 auto;
    padding-bottom: 1.75rem;
    min-width: 0;
}

.steps-list .step-row:last-child .step-row__body { padding-bottom: 0; }

.step-row__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--text-color);
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.step-row__body p {
    margin-bottom: 0;
    max-width: 68ch;
    color: rgba(57, 62, 65, 0.8);
    line-height: 1.55;
}

/* Inverted (dark) variant for steps */
.steps-section.invert { background-color: var(--bg-invert); border-color: var(--rule-invert); }
.steps-section.invert h2,
.steps-section.invert .step-row__title { color: var(--text-invert-strong); }
.steps-section.invert .section-intro,
.steps-section.invert .step-row__body p { color: var(--text-invert-muted); }
.steps-section.invert .step-pill { background-color: var(--text-invert-strong); color: var(--bg-invert); }
.steps-section.invert .step-rail-line { background-color: var(--rule-invert); }

.border-bottom { border-bottom: 1px solid var(--grid-line); }

/* Year timeline (Figma-matched) ---------------------------------- */
.year-timeline-section {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--grid-line);
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}

.year-timeline-section__inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.year-timeline-section__inner > h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.year-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.year-timeline__row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.year-timeline__year {
    flex: 0 0 auto;
    width: 64px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--brand-teal);
    line-height: 1.5;
}

.year-timeline__body {
    flex: 1 1 auto;
    border-inline-start: 2px solid rgba(68, 187, 164, 0.3);
    padding: 0 0 0 1.5rem;
    margin: 0;
    color: rgba(57, 62, 65, 0.72);
    line-height: 1.6;
    max-width: 70ch;
}

/* Inverted variant */
.year-timeline-section.invert { background-color: var(--bg-invert); border-color: var(--rule-invert); }
.year-timeline-section.invert h2 { color: var(--text-invert-strong); }
.year-timeline-section.invert .year-timeline__body {
    color: var(--text-invert-muted);
    border-inline-start-color: rgba(68, 187, 164, 0.35);
}

/* Fact grid ------------------------------------------------------- */
.fact-grid {
    border: 1px solid var(--grid-line);
    background-color: var(--grid-line);
}

.fact-grid__heading {
    background-color: var(--bg-color);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--grid-line);
}

.fact-grid__list {
    display: grid;
    gap: 1px;
    background-color: var(--grid-line);
}

.fact-grid__row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1px;
    background-color: var(--grid-line);
}

.fact-grid__row dt,
.fact-grid__row dd {
    background-color: var(--bg-color);
    padding: 0.875rem 1.25rem;
    margin: 0;
}

.fact-grid__row dt {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.fact-grid__row dd {
    font-weight: 500;
}

/* Callout --------------------------------------------------------- */
.callout {
    border-inline-start: 4px solid var(--accent-color);
    background-color: rgba(233, 79, 55, 0.06);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.callout__kicker {
    display: block;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.callout__body {
    margin-bottom: 0;
    max-width: none;
}

/* Inverted (dark) section variant -------------------------------- */
.grid-section.invert,
.article-hero.invert {
    background-color: var(--bg-invert);
    color: var(--text-invert);
    border-color: var(--rule-invert);
}

.grid-section.invert .grid-cell,
.grid-section.invert .stat-card,
.grid-section.invert .fact-grid__heading,
.grid-section.invert .fact-grid__row dt,
.grid-section.invert .fact-grid__row dd {
    background-color: var(--bg-invert);
    color: var(--text-invert);
}

.grid-section.invert {
    background-color: var(--rule-invert); /* acts as grid-line */
}

.grid-section.invert .fact-grid,
.grid-section.invert .fact-grid__list,
.grid-section.invert .fact-grid__row,
.grid-section.invert .stat-trio {
    background-color: var(--rule-invert);
    border-color: var(--rule-invert);
}

.grid-section.invert .border-right { border-inline-end-color: var(--rule-invert); }
.grid-section.invert .border-bottom { border-bottom-color: var(--rule-invert); }

.grid-section.invert h2,
.grid-section.invert h3,
.grid-section.invert .step-card__title { color: var(--text-invert-strong); }

.grid-section.invert .section-intro,
.grid-section.invert p { color: var(--text-invert-dim); }

.grid-section.invert .stat-card__label { color: var(--brand-teal); }

.grid-section.invert .stat-card__value { color: var(--accent-color); }

.grid-section.invert .stat-card__sublabel,
.grid-section.invert .data-table__note { color: var(--text-invert-muted); }

.grid-section.invert .data-table th,
.grid-section.invert .data-table td {
    border-color: var(--rule-invert);
    color: var(--text-invert);
}

.grid-section.invert .data-table thead th {
    color: var(--brand-teal);
    background-color: rgba(255, 255, 255, 0.04);
    border-bottom-color: var(--rule-invert-strong);
}

.grid-section.invert .callout {
    background-color: rgba(233, 79, 55, 0.12);
    border-inline-start-color: var(--accent-color);
}

.grid-section.invert strong { color: var(--text-invert-strong); }

/* Data tables ----------------------------------------------------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    margin: 1.5rem 0;
}

.data-table th,
.data-table td {
    text-align: start;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--grid-line);
    vertical-align: top;
}

.data-table thead th {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-color);
    border-bottom: 2px solid var(--grid-line);
    background-color: rgba(0, 0, 0, 0.02);
}

.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table__note {
    font-size: 0.8125rem;
    color: rgba(57, 62, 65, 0.65);
    margin-top: 0.5rem;
}

/* CTA band -------------------------------------------------------- */
.cta-band {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
    border-top: 1px solid var(--text-color);
    border-bottom: 1px solid var(--text-color);
}

[data-theme="dark"] .cta-band {
    background-color: var(--brand-white);
    color: var(--brand-charcoal);
    border-top-color: var(--brand-white);
    border-bottom-color: var(--brand-white);
}

.cta-band__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.cta-band__heading {
    color: var(--bg-color);
    font-size: clamp(1.75rem, 4vw, 3rem);
    max-width: 24ch;
}

.cta-band__subline {
    color: rgba(246, 245, 244, 0.75);
    font-size: 1.0625rem;
    max-width: 58ch;
    margin-bottom: 1rem;
}


.cta-band__secondary {
    color: var(--brand-teal);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.cta-band__secondary:hover { color: var(--bg-color); }

/* Related guides grid -------------------------------------------- */
.related-grid-section {
    padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
    border-bottom: 1px solid var(--grid-line);
    background-color: var(--bg-color);
}

.related-grid-section__head {
    max-width: var(--container-width);
    margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
}

.related-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background-color: var(--grid-line);
    border: 1px solid var(--grid-line);
}

.related-card {
    background-color: var(--bg-color);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: background-color 0.25s var(--transition-smooth);
}

.related-card:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.related-card:hover .related-card__arrow { color: var(--brand-teal); }
.related-card:hover .eyebrow { color: var(--brand-teal); border-color: var(--brand-teal); }

.related-card__title {
    text-transform: uppercase;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    margin-bottom: 0;
}

.related-card__arrow {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-color);
    margin-top: auto;
}

/* Society filter bar (dark, Figma-matched) ---------------------- */
.society-filter-bar {
    background-color: var(--bg-invert);
    color: var(--text-invert);
    border-top: 4px solid var(--brand-teal);
    border-bottom: 1px solid var(--rule-invert);
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem);
}

.society-filter-bar__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 260px) 1fr 1fr;
    gap: 1rem 1.5rem;
    align-items: start;
}

.society-filter-search {
    display: block;
}

.society-filter-search input {
    width: 100%;
    height: 48px;
    background-color: var(--surface-invert-soft);
    color: var(--text-invert);
    border: 1px solid var(--rule-invert);
    padding: 0 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: border-color 0.2s var(--transition-smooth), background-color 0.2s var(--transition-smooth);
}

.society-filter-search input::placeholder { color: var(--text-invert-soft); }
.society-filter-search input:focus {
    outline: none;
    border-color: var(--brand-teal);
    background-color: var(--surface-invert-soft);
}

.society-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-chip {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--text-invert);
    background-color: var(--surface-invert);
    border: 1px solid var(--rule-invert);
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background-color 0.18s var(--transition-smooth), color 0.18s, border-color 0.18s, transform 0.15s;
}

.filter-chip:hover {
    background-color: var(--surface-invert);
    border-color: var(--rule-invert-strong);
}

.filter-chip:focus-visible {
    outline: 2px solid var(--brand-teal);
    outline-offset: 2px;
}

.filter-chip.is-active {
    background-color: var(--brand-teal);
    color: var(--brand-charcoal);
    border-color: var(--brand-teal);
}

.filter-chip.filter-chip--accent.is-active {
    background-color: var(--accent-color);
    color: var(--text-invert-strong);
    border-color: var(--accent-color);
}

.society-filter-empty {
    max-width: var(--container-width);
    margin: 2rem auto;
    padding: 2rem clamp(1.25rem, 4vw, 3rem);
    text-align: center;
    color: rgba(57, 62, 65, 0.6);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .society-filter-bar__inner {
        grid-template-columns: 1fr;
    }
}

/* Collection-society hub ----------------------------------------- */
.society-hub-region {
    border-bottom: 1px solid var(--grid-line);
}

.society-hub-region__head {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) 1rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.society-hub-region__count {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(57, 62, 65, 0.65);
}

.society-hub-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1100px) { .society-hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .society-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .society-hub-grid { grid-template-columns: 1fr; } }

.society-card {
    background-color: var(--surface-color);
    border: 1px solid var(--grid-line);
    padding: 1.25rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    row-gap: 0.875rem;
    color: var(--text-color);
    transition:
        transform 0.2s var(--transition-smooth),
        border-color 0.2s var(--transition-smooth),
        box-shadow 0.2s var(--transition-smooth);
}

.society-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-teal);
    box-shadow: 0 8px 20px -12px rgba(57, 62, 65, 0.25);
}

.society-card:hover .society-card__cta { color: var(--text-color); }
.society-card:hover .society-card__cta::after { transform: translateX(3px); }

.society-card__head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.society-card__flag {
    font-size: 1.5rem;
    line-height: 1.1;
    flex-shrink: 0;
}

.society-card__acronym {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.25rem;
    line-height: 1.15;
}

.society-card__territory {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: rgba(57, 62, 65, 0.65);
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
    margin: 0;
}

.society-card__notable {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(57, 62, 65, 0.75);
    margin-bottom: 0;
}

.society-card__cta {
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-teal);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.18s var(--transition-smooth);
}

.society-card__cta::after {
    content: "→";
    transition: transform 0.18s var(--transition-smooth);
}

/* Society detail hero -------------------------------------------- */
.society-hero {
    padding: calc(var(--header-height) + clamp(2.5rem, 6vw, 4.5rem)) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
    background-color: var(--bg-color);
}

.society-hero__inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.society-hero__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.society-hero__eyebrow { margin-bottom: 0; }

.society-hero__country {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: rgba(57, 62, 65, 0.75);
}

.society-hero__flag {
    font-size: 1.25rem;
    line-height: 1;
}

.society-hero__acronym {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--accent-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.society-hero__acronym--with-logo {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.society-hero__logo {
    max-height: 72px;
    max-width: 260px;
    width: auto;
    height: auto;
    display: block;
    margin-bottom: 1.25rem;
}

.society-hero__fullname {
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: rgba(57, 62, 65, 0.75);
    max-width: 58ch;
    margin-bottom: 0.75rem;
    font-size: 1.0625rem;
}

.society-hero__tagline {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.5;
    max-width: 58ch;
    margin-bottom: 2rem;
}

/* Dark-invert treatment used by the society hero */
.society-hero.invert {
    background-color: var(--bg-invert);
    color: var(--text-invert);
}

.society-hero.invert .society-hero__country { color: var(--text-invert-muted); }
.society-hero.invert .society-hero__fullname { color: var(--text-invert-muted); }
.society-hero.invert .society-hero__tagline { color: var(--text-invert-dim); }
.society-hero.invert .society-hero__eyebrow {
    color: var(--accent-color);
    background-color: rgba(233, 79, 55, 0.12);
    border-color: rgba(233, 79, 55, 0.5);
}

/* Stats strip (full-bleed accent band) --------------------------- */
.stats-strip {
    background-color: var(--accent-color);
    color: var(--text-invert-strong);
    padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem);
}

.stats-strip__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem 2rem;
    align-items: start;
}

.stats-strip__item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.stats-strip__value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    line-height: 1.25;
    color: var(--text-invert-strong);
    text-transform: none;
    letter-spacing: -0.01em;
}

.stats-strip__label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive ------------------------------------------------------ */
@media (max-width: 900px) {
    .society-hero { grid-template-columns: 1fr; }
    .fact-grid__row { grid-template-columns: 1fr; }

}

@media (max-width: 600px) {
    .article-hero__title { font-size: clamp(2.25rem, 9vw, 3rem); }
    .society-hero__acronym { font-size: clamp(2.5rem, 12vw, 4rem); }
    .cta-band__heading { font-size: clamp(1.5rem, 7vw, 2rem); }
}

/* ========================================
   BOOTSTRAP CLASS COMPATIBILITY

   Marketing pages load this file only -- no Bootstrap. The templates still
   reach for a handful of Bootstrap class names, which until now matched
   nothing. publishing_calculator.html shows and hides its spinner and results
   panel by toggling `d-none` from JavaScript, so with no rule behind the class
   both panels stayed on screen and the toggle did nothing.

   These are the classes the marketing templates actually use. Logical
   properties throughout, so they follow the writing direction in RTL locales.
   ======================================== */

.d-none { display: none !important; }

.flex-wrap { flex-wrap: wrap !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-baseline { align-items: baseline !important; }

.text-start { text-align: start !important; }
.text-end { text-align: end !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-danger { color: #EF4444 !important; }

.list-unstyled {
    padding-inline-start: 0;
    list-style: none;
}

.border-0 { border: 0 !important; }
.bg-transparent { background-color: transparent !important; }

/* Spacing, on Bootstrap's scale: 1 = .25rem, 2 = .5rem, 3 = 1rem, 4 = 1.5rem */
.mb-0 { margin-bottom: 0 !important; }
.p-2  { padding: 0.5rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.py-1 { padding-block: 0.25rem !important; }
.py-2 { padding-block: 0.5rem !important; }
.px-2 { padding-inline: 0.5rem !important; }
.px-4 { padding-inline: 1.5rem !important; }
.ps-3 { padding-inline-start: 1rem !important; }

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid currentcolor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: 0.75s linear infinite spinner-border;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .spinner-border { animation-duration: 1.5s; }
}

.form-check-input {
    padding: 0;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: var(--surface-color);
    border: 1px solid var(--grid-line);
    appearance: none;
    print-color-adjust: exact;
}

.form-check-input[type="radio"] { border-radius: 50%; }

.form-check-input:checked {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
}
.form-check-input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23393E41' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
}
.form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3' fill='%23393E41'/%3E%3C/svg%3E");
}
.calculator-fieldset .form-check {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
}
.calculator-fieldset .form-check-label { cursor: pointer; }
@media (forced-colors: active) {
    .form-check-input { appearance: auto; }
}

.form-check-input:focus-visible {
    outline: 2px solid var(--brand-teal);
    outline-offset: 2px;
}

/* ============================================
   CLASSES LIFTED OUT OF TEMPLATE style="" ATTRIBUTES

   Every rule here reproduces a declaration that used to sit inline on a
   marketing template. Inline styles outrank everything, so a few selectors
   below are qualified, or repeated for :hover, to keep the same result.
   ============================================ */

/* Sections that clear the fixed header */
.section-below-header { padding-top: 80px; }
.section-flush-y { padding-top: 0; padding-bottom: 0; }

/* Grid cell span the block above does not cover */
.grid-cell-span-8 { grid-column: span 8; }

/* Spacing shared by several pages */
.spaced-top-sm { margin-top: 1.5rem; }
.spaced-top-md { margin-top: 2rem; }
.spaced-top-lg { margin-top: 3rem; }
.spaced-bottom-md { margin-bottom: 2rem; }
.centered-inline { margin-inline: auto; }

/* Fading steps for secondary copy */
.text-dim { opacity: 0.7; }
.text-dimmer { opacity: 0.6; }
.text-faint { opacity: 0.5; }

/* Token colours that had no utility class */
.text-success { color: var(--color-success); }
.text-info { color: var(--color-info); }
.text-accent { color: var(--color-accent); }
.link-accent { color: var(--accent-color); }

/* Legal pages: terms of use, privacy policy.
   h2.legal-heading has to out-rank `.grid-section h2` further up. */
.legal-block { margin-bottom: 3rem; }

h2.legal-heading {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--brand-teal);
    padding-bottom: 0.5rem;
}

.legal-date { margin-top: 1rem; font-weight: 600; }
.legal-list { margin-top: 1rem; padding-inline-start: 2rem; }
.legal-sublist { margin-top: 0.5rem; padding-inline-start: 2rem; }
.legal-contract-text {
    max-width: 90ch;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.conversion-lede {
    color: rgba(255, 255, 255, 0.8);
    margin-inline: auto;
}

/* Header logo */
.logo-mark { height: 2rem; width: auto; }

/* Affiliate and referral landing pages */
.affiliate-measure { max-width: 60ch; }
.affiliate-success-copy { max-width: 50ch; margin: 2rem auto; }
.affiliate-steps { line-height: 2; }

.affiliate-callout {
    background-color: rgba(68, 187, 164, 0.15);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: var(--radius-card);
}


.affiliate-screenshot { width: 100%; height: auto; display: block; }

.affiliate-email-sample {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-card);
    margin-top: 1rem;
}

/* Forms on the smaller marketing pages */
.form-field-label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-field-error { color: red; font-size: 0.875rem; }
.form-fine-print { margin-top: 1.5rem; font-size: 0.85rem; opacity: 0.6; }

/* Email preferences */
.email-list-option {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--grid-line);
    border-radius: var(--radius-card);
}

.email-list-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.email-list-description { font-size: 0.9rem; opacity: 0.7; }

/* Lead magnet and thank-you pages */
.lead-magnet-description { margin-top: 1rem; font-size: 1.05rem; line-height: 1.6; }
.thanks-lede { margin-top: 1.5rem; font-size: 1.1rem; }

/* Blog */
.blog-meta {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
}

.blog-body { font-size: var(--font-size-lg); line-height: 1.7; }
.blog-footer-rule { border-top: 2px solid var(--color-border-light); }
.blog-post-link { color: var(--color-text-primary); }

/* Homepage */
.numeral-display { font-family: var(--font-display); }

/* Infrastructure */

/* Radio */
.radio-lede { max-width: 700px; margin-inline: auto; }

/* Student program */
.student-list { font-size: 1.1rem; line-height: 2.2; }
.student-copy { font-size: 1.1rem; }
.student-centered-copy { font-size: 1.1rem; margin: 0 auto 1.5rem; }
.student-cta-cell { padding: 4rem 2rem; }
.student-faq-cta-cell { padding: 3rem 2rem; }

/* Publishing calculator */
.calculator-fieldset { border: 1px solid rgba(0, 0, 0, 0.08); border-radius: var(--radius-card); }
.badge-pill { border-radius: var(--radius-pill); font-weight: 600; }

.calculator-leakage {
    background-color: rgba(220, 53, 69, 0.06);
    border-left: 3px solid #dc3545;
    border-radius: var(--radius-card);
}

.calculator-rule { border-top-width: 2px; border-top-color: var(--color-border-light); }

.advance-results {
    background-color: var(--color-bg-primary);
    border-radius: var(--radius-card);
}

.deal-explanation-panel {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-card);
}

.deal-explanation-body { line-height: 1.6; }
.table-scroll { overflow-x: auto; }

/* Comparison table row tints. `table tbody tr:hover` further up is more
   specific than a bare class, so the hover state is spelled out too. */
tr.row-highlight-pro,
table tbody tr.row-highlight-pro:hover { background-color: rgba(68, 187, 164, 0.1); }

tr.row-highlight-standard,
table tbody tr.row-highlight-standard:hover { background-color: rgba(255, 204, 0, 0.05); }

/* Deal type selector tints. Same story: the selector's own :hover and
   :has(input:checked) rules would otherwise take over. */
.deal-type-selector .form-check.deal-option-standard,
.deal-type-selector .form-check.deal-option-standard:hover,
.deal-type-selector .form-check.deal-option-standard:has(input:checked) {
    background-color: rgba(255, 204, 0, 0.05);
}

.deal-type-selector .form-check.deal-option-pro,
.deal-type-selector .form-check.deal-option-pro:hover,
.deal-type-selector .form-check.deal-option-pro:has(input:checked) {
    background-color: rgba(68, 187, 164, 0.05);
}

.artist-result-thumb { border-radius: var(--radius-media); }

.artist-result-thumb-empty {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-media);
}

.logo-mark-footer { height: 1.5rem; width: auto; }

/* Shared marketing accessibility and navigation behavior. */
:root {
    --marketing-focus: var(--brand-charcoal);
    color-scheme: light;
    scrollbar-color: #757d79 var(--bg-color);
}

:root[data-theme="dark"] {
    --marketing-focus: var(--brand-white);
    color-scheme: dark;
}

input,
textarea {
    caret-color: var(--marketing-focus);
}

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--marketing-focus);
    outline-offset: 4px;
}

.marketing-skip-link {
    position: fixed;
    inset-block-start: calc(var(--staging-banner-height) + .5rem);
    inset-inline-start: .5rem;
    z-index: 110;
    padding: .75rem 1rem;
    background: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-200%);
}

.marketing-skip-link:focus {
    transform: none;
}

.has-staging-environment-banner .marketing-content {
    padding-top: var(--staging-banner-height);
}

#main-content {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.nav-link-login {
    color: var(--brand-charcoal);
}

.nav-link:focus-visible,
.mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--marketing-focus);
    outline-offset: -5px;
}

.nav-link-login:focus-visible {
    outline-color: var(--brand-charcoal);
}

.theme-toggle-btn {
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: none;
        width: 44px;
        height: 44px;
        padding: 6px;
    }

    .js-navigation .mobile-menu-toggle {
        display: flex;
    }

    .nav-grid {
        max-height: none;
        box-shadow: none;
        backdrop-filter: none;
        background: var(--bg-color);
        transition: none;
    }

    .js-navigation .nav-grid:not(.active) {
        max-height: 0;
        visibility: hidden;
    }

    .js-navigation .nav-grid.active {
        max-height: none;
        max-block-size: calc(100dvh - 80px);
        overflow-y: auto;
        visibility: visible;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

}

.form-check-input[type="checkbox"] { border-radius: var(--radius-checkbox); }

/* ==================== Shared marketing components ==================== */
/* Shared marketing components; scoped to marketing-ui, independent of app CSS. */
.marketing-ui {
    --marketing-muted: #565d60;
    --marketing-gutter: clamp(1.25rem, 4vw, 4rem);
    --marketing-max-width: 1600px;
    --marketing-space-copy: 1rem;
    --marketing-space-intro: 1.5rem;
    --marketing-space-actions: 2rem;
    --marketing-surface-muted: var(--bg-color);
    --marketing-surface-raised: var(--surface-color);
}

[data-theme="dark"] .marketing-ui {
    --marketing-muted: #bec5c4;
}

:where(.marketing-ui) .marketing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.5rem;
}

:where(.marketing-ui) .marketing-button,
:where(.marketing-ui) .marketing-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 48px;
    font-weight: 700;
    line-height: 1.4;
}

:where(.marketing-ui) .marketing-button {
    border-radius: var(--radius-control);
    padding: 1rem 1.25rem;
    background: var(--brand-teal);
    color: var(--brand-charcoal);
    border: 1px solid var(--brand-teal);
    font-family: var(--font-display);
    font-size: 1rem;
    text-decoration: none;
}

:where(.marketing-ui) .marketing-button:is(:hover, :active) {
    background: var(--brand-charcoal);
    /* The teal edge keeps hover visible against the Onyx Pro plan. */
    border-color: var(--brand-teal);
    color: var(--brand-white);
}

:where(.marketing-ui) .marketing-button i,
:where(.marketing-ui) .marketing-text-link i {
    flex: 0 0 auto;
    font-size: 1.25rem;
}

:where(.marketing-ui) .marketing-text-link {
    justify-content: flex-start;
    gap: .5rem;
    text-decoration: none;
}

:where(.marketing-ui) .marketing-text-link span {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .3em;
}

:where(.marketing-ui) .marketing-text-link:is(:hover, :active) span {
    text-decoration-thickness: 2px;
}

:where(.marketing-ui) .marketing-section {
    padding: clamp(3rem, 6vw, 5.5rem) var(--marketing-gutter);
    border-bottom: 1px solid var(--grid-line);
}

:where(.marketing-ui) .marketing-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    gap: 1.5rem 4rem;
    margin-block-end: 2.5rem;
}

:where(.marketing-ui) .marketing-section-heading h2 {
    max-width: 19ch;
}

:where(.marketing-ui) .marketing-section-heading p {
    color: var(--marketing-muted);
    max-width: 37ch;
}

:where(.marketing-ui) .marketing-faq {
    border-block-start: 1px solid var(--grid-line);
}

:where(.marketing-ui) .marketing-faq details {
    border-block-end: 1px solid var(--grid-line);
}

:where(.marketing-ui) .marketing-faq summary {
    padding: 1.5rem .25rem;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
}

:where(.marketing-ui) .marketing-faq summary:is(:hover, :active) {
    background: color-mix(in srgb, var(--brand-teal) 10%, transparent);
    text-decoration: underline;
    text-underline-offset: .2em;
}

:where(.marketing-ui) .marketing-faq summary::marker {
    color: currentColor;
}

:where(.marketing-ui) .marketing-faq details p {
    padding: .75rem .25rem 1.5rem;
    max-width: 72ch;
    color: var(--marketing-muted);
}

:where(.marketing-ui) .marketing-button:active { transform: translateY(1px); }

@media (max-width: 700px) {
    :where(.marketing-ui) .marketing-section-heading { grid-template-columns: minmax(0, 1fr); }
    :where(.marketing-ui) .marketing-section-heading p { max-width: 100%; }
}

[dir="rtl"] :where(.marketing-ui) :is(.marketing-button, .marketing-text-link) .ph-arrow-right {
    transform: scaleX(-1);
}

:where(.marketing-ui) .marketing-content :is(h1, h2, h3) {
    text-wrap: balance;
    overflow-wrap: anywhere;
}

:where(.marketing-ui) .marketing-content h2 {
    font-size: clamp(2rem, 3.7vw, 3.5rem);
    line-height: 1.05;
}

:where(.marketing-ui) .marketing-content h3 {
    font-size: 1.5rem;
    line-height: 1.2;
}

:where(.marketing-ui) .marketing-content p {
    max-width: 68ch;
    margin: 0;
    line-height: 1.65;
    text-wrap: pretty;
}

:where(.marketing-ui) .marketing-content :is(a, summary) {
    -webkit-tap-highlight-color: color-mix(in srgb, var(--brand-teal) 20%, transparent);
}

:where(.marketing-ui) .marketing-content :is(section, article, div) {
    min-width: 0;
}

:where(.marketing-ui) .marketing-content :is(section[id], h1) {
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

:where(.marketing-ui) .marketing-button--contrast {
    background: var(--brand-charcoal);
    border-color: var(--brand-charcoal);
    color: var(--brand-white);
}

:where(.marketing-ui) .marketing-button--contrast:is(:hover, :active) {
    background: var(--brand-white);
    border-color: var(--brand-charcoal);
    color: var(--brand-charcoal);
}

:where(.marketing-ui) .marketing-on-dark .marketing-button:focus-visible {
    outline-color: var(--brand-white);
}

/* ==================== Shared shell and editorial layouts ==================== */
.marketing-site > header {
    position: sticky;
}

.marketing-site .header-container {
    max-width: var(--marketing-max-width);
    margin-inline: auto;
    /* Keep navigation labels readable before the mobile menu takes over. */
    grid-template-columns: minmax(0, 1fr) minmax(345px, 36%);
}

.marketing-site .logo-header {
    display: flex;
    padding-inline: var(--marketing-gutter);
    border-inline-end: 0;
}

.marketing-site .nav-grid {
    min-width: 0;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
}

.marketing-site .nav-grid .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 72px;
    padding: 1rem .75rem;
    background: var(--bg-color);
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-transform: none;
}

.marketing-site .nav-grid .nav-link:is(:hover, :active) {
    background: var(--text-color);
    color: var(--bg-color);
}

.marketing-site .nav-grid .nav-link:focus-visible {
    outline-color: var(--marketing-focus);
}

.marketing-site .nav-grid .nav-link:is(:hover, :active):focus-visible {
    outline-color: var(--bg-color);
}

.marketing-site .nav-grid .nav-link-start {
    background: var(--brand-charcoal);
    color: var(--brand-white);
    font-weight: 700;
}

.marketing-site .nav-grid .nav-link-start:is(:hover, :active) {
    background: var(--brand-white);
    color: var(--brand-charcoal);
}

.marketing-site .nav-grid .nav-link-start:focus-visible {
    outline-color: var(--brand-white);
}

.marketing-site .nav-grid .nav-link-start:is(:hover, :active):focus-visible {
    outline-color: var(--brand-charcoal);
}

.marketing-site .container {
    min-height: auto;
}

.marketing-site .footer-col {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .marketing-site .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Shared shell and editorial geometry. Homepage composition stays separate. */
.marketing-site .container,
.marketing-site footer { max-width: var(--marketing-max-width); margin-inline: auto; }
.marketing-site:not(.homepage-body) .article-hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.05; max-width: 22ch;
}

.marketing-site:not(.homepage-body) :is(.article-hero, .society-hero) {
    padding: clamp(2.5rem, 5vw, 5rem) var(--marketing-gutter);
}
.marketing-site .section-below-header { padding-top: 0; }
.marketing-site:not(.homepage-body) .grid-cell { padding: clamp(1.5rem, 3vw, 3rem) var(--marketing-gutter); }
.marketing-site .grid-section--surface > .grid-cell {
    background: var(--marketing-surface-raised);
}
.marketing-site .society-hero__logo {
    background: var(--brand-white); padding: 1rem; box-sizing: content-box;
    object-fit: contain; max-width: min(220px, 70%); max-height: 80px;
}
.marketing-site .society-hero__acronym { color: var(--brand-teal); }
.marketing-site .article-hero__lede { font-size: 1.125rem; max-width: 62ch; }
.marketing-site .cta-band { background: var(--brand-teal); color: var(--brand-charcoal); }
.marketing-site .cta-band__inner { max-width: none; padding-inline: 0; }
.marketing-site .cta-band__subline { color: inherit; }
.marketing-site .cta-band__secondary { color: inherit; text-decoration: underline; text-underline-offset: .25em; }
.marketing-site .marketing-button--secondary {
    background: transparent; color: inherit; border-color: currentColor;
}
.marketing-site .marketing-button--secondary:is(:hover,:active) {
    background: var(--text-color); color: var(--bg-color); border-color: var(--text-color);
}
.marketing-site :is(.invert,.society-hero) .marketing-button:focus-visible { outline-color: var(--brand-white); }
.marketing-site :is(.conversion-section,.cta-band) .marketing-button:focus-visible { outline-color: var(--brand-charcoal); }
.marketing-site :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select) {
    max-width: 100%; color: var(--text-color); background-color: var(--surface-color);
    border: 1px solid var(--grid-line); border-radius: var(--radius-control); min-height: 44px;
}
.marketing-site :is(input,textarea,select)[aria-invalid=true] { border-color: var(--accent-color); }
.marketing-site button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.marketing-site :is(.errorlist,.invalid-feedback) { font-weight: 600; }
.marketing-site main :is(section[id],h2[id]) { scroll-margin-top: calc(var(--header-height) + 1rem); }
.marketing-site .data-table { font-size: .9375rem; }
.marketing-site .contact-channels { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--grid-line); }
.marketing-site .contact-channels a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--grid-line); color: var(--text-color); }
.marketing-site .contact-channels a:hover { background: color-mix(in srgb,var(--brand-teal) 10%,transparent); }
.marketing-site .contact-channels strong { text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 768px) {
    .marketing-site .nav-grid { grid-auto-flow: row; }
    .marketing-site .nav-grid .nav-link { justify-content: flex-start; min-height: 56px; padding-inline: var(--marketing-gutter); }
    .marketing-site .header-container { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .marketing-site .article-hero__ctas { flex-direction: column; align-items: stretch; }
    .marketing-site .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.marketing-site .marketing-editorial { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,3fr); gap: 2rem clamp(2rem,5vw,5rem); }
.marketing-site .marketing-editorial h1 { font-size: clamp(2.5rem,4.5vw,4rem); line-height: 1.05; }
.marketing-site .marketing-surface { background: var(--surface-color); }
.marketing-site .marketing-editorial p { margin-top: 1rem; }
.marketing-site .marketing-support-close { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 3rem; background: var(--brand-teal); color: var(--brand-charcoal); }
.marketing-site .marketing-support-close :is(h2,h3) { margin-bottom: 1rem; }
.marketing-site .marketing-support-close p { margin-bottom: 1.5rem; }
.marketing-site .marketing-support-close .contact-channels { border-color: currentColor; }
.marketing-site .marketing-support-close .contact-channels a { color: inherit; border-color: currentColor; }
.marketing-site .marketing-support-close :focus-visible { outline-color: var(--brand-charcoal); }
.marketing-site .marketing-guide-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 2rem; }
.marketing-site .marketing-guide-links a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--grid-line); text-decoration: underline; text-underline-offset: .25em; }
.marketing-site .marketing-guide-links a:hover { background: color-mix(in srgb,var(--brand-teal) 10%,transparent); }
@media (max-width: 800px) {
    .marketing-site :is(.marketing-editorial,.marketing-support-close,.marketing-guide-links) { grid-template-columns: 1fr; }
}

/* Preserve reading rhythm when older editorial templates adopt the components. */
.marketing-site:not(.homepage-body) .marketing-content :is(p + p, h2 + p, h3 + p, p + .article-hero__ctas):not(:where(.marketing-stack > *)) {
    margin-top: 1rem;
}
.marketing-site .cta-band__heading { color: inherit; }
.marketing-site .stats-strip {
    background: var(--surface-color);
    color: var(--text-color);
    border-block: 1px solid var(--grid-line);
}
.marketing-site .stats-strip__label { color: var(--marketing-muted); }
.marketing-site .stats-strip__value { color: var(--text-color); }
.marketing-site .stat-card__value { color: var(--brand-teal); }
.marketing-site .data-table__note { color: var(--marketing-muted); }
.marketing-site .society-hero .marketing-button--secondary { border-color: currentColor; }

.marketing-site .grid-cell { min-width: 0; }
.marketing-site .marketing-table-scroll { overflow-x: auto; max-width: 100%; }
.marketing-site .marketing-table-scroll:focus-visible { outline: 3px solid var(--marketing-focus); outline-offset: -3px; }
.marketing-site .marketing-table-scroll .data-table { min-width: 36rem; }

.marketing-site:not(.homepage-body) .marketing-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
}
.marketing-site .radio-player-section { padding-top: 0; }
.marketing-site .grid-section:has(.radio-player-container) { background: var(--surface-color); }
.marketing-site .radio-player-container { grid-column: 1 / -1; width: 100%; max-width: 56rem; }
.marketing-site .radio-lede { margin-inline: auto; }
.marketing-site .legal-content { max-width: none; width: 100%; }
.marketing-site .legal-content :is(p, .legal-contract-text) { max-width: none; }
.marketing-site .grid-section:has(.legal-content) { background: var(--surface-color); }

/* Four-card editorial rows need room for headings and explanatory figures. */
.marketing-site:not(.homepage-body) .grid-cell.grid-cell-span-3 {
    padding-inline: clamp(1.25rem, 2vw, 2rem);
}
.marketing-site .grid-cell-span-3 .stat-card__value {
    font-size: clamp(1.5rem, 2vw, 2rem);
    overflow-wrap: anywhere;
}
@media (min-width: 769px) and (max-width: 1100px) {
    .marketing-site .grid-cell-span-3 { grid-column: span 6; }
}

.marketing-site .grid-cell-span-8.grid-cell-center {
    grid-column: 3 / span 8;
    width: 100%;
}
.marketing-site .grid-section:has(> .grid-cell-center) { background: var(--bg-color); }

/* Center constrained content boxes as well as their text. */
.marketing-site .text-center > :is(h1,h2,h3,h4,h5,h6,p,form),
.marketing-site :is(h1,h2,h3,h4,h5,h6).text-center { margin-inline: auto; }
.marketing-site .student-centered-copy { margin-block: 1rem 1.5rem; }

/* Section shells own the page gutter once; inner wrappers must not add it again. */
.marketing-site :is(
    .cta-band, .conversion-section, .steps-section, .year-timeline-section,
    .related-grid-section, .society-filter-bar, .society-hub-region__head,
    .society-hub-grid, .stats-strip, footer
) {
    padding-inline: var(--marketing-gutter);
}
.marketing-site :is(
    .article-hero__inner, .society-hero__inner, .steps-section__inner,
    .year-timeline-section__inner, .related-grid-section__head, .related-grid,
    .society-filter-bar__inner, .society-hub-region__head, .society-hub-grid,
    .stats-strip__inner
) {
    max-width: none;
}

/* A comparison of tradeoffs, with the JukeHouse column identified consistently. */
.marketing-site .publishing-options { table-layout: fixed; }
.marketing-site .publishing-options th:first-child { width: 18%; }
.marketing-site .publishing-options tbody th { font-weight: 600; }
.marketing-site .publishing-options :is(th,td):nth-child(2) {
    background: color-mix(in srgb, var(--brand-teal) 13%, var(--bg-color));
}
.marketing-site .publishing-options thead th { color: var(--text-color); }
.marketing-site .publishing-options-label {
    display: block;
    margin-top: .5rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}
.marketing-site .marketing-table-scroll .publishing-options { min-width: 48rem; }

/* Preserve the agreement's literal numbering, with hanging indents at each level. */
.marketing-site .legal-agreement { margin-top: 2rem; line-height: 1.7; }
.marketing-site .legal-agreement .legal-paragraph {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: .5rem;
    max-width: none;
    margin-block: 0 1rem;
    text-align: start;
    overflow-wrap: break-word;
}
.marketing-site .legal-agreement .legal-level-0 { display: block; }
.marketing-site .legal-agreement .legal-level-1 { margin-top: 2rem; }
.marketing-site .legal-level-1 .legal-marker { font-weight: 700; }
.marketing-site .legal-level-2 { margin-inline-start: 3rem; }
.marketing-site .legal-level-3 { margin-inline-start: 6rem; }
.marketing-site .legal-level-4 { margin-inline-start: 9rem; }
.marketing-site .legal-marker { text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
    .marketing-site .legal-agreement .legal-paragraph { grid-template-columns: 1.75rem minmax(0,1fr); column-gap: .375rem; }
    .marketing-site .legal-level-2 { margin-inline-start: .75rem; }
    .marketing-site .legal-level-3 { margin-inline-start: 1.5rem; }
    .marketing-site .legal-level-4 { margin-inline-start: 2.25rem; }
}

/* Opt-in page intros: keep spacing independent of legacy utility classes. */
.marketing-site h1:has(+ .marketing-intro-copy) { margin-bottom: 0; }
.marketing-site .marketing-intro-copy { margin-block: 1.5rem 0; }
.marketing-site h1 + .legal-date { margin-top: 1rem; }

/* ==================== homepage ==================== */
/* Homepage composition. */
.homepage-body {
    --home-muted: var(--marketing-muted);
    --home-space: var(--marketing-gutter);
    --home-columns: minmax(0, 64fr) minmax(0, 36fr);
    --home-max-width: var(--marketing-max-width);
}

.homepage {
    max-width: var(--home-max-width);
    margin-inline: auto;
}

.home-hero {
    display: grid;
    grid-template-columns: var(--home-columns);
    border-bottom: 1px solid var(--grid-line);
}

.home-intro {
    padding: clamp(2.5rem, 5vw, 5rem) var(--home-space) 3rem;
}

.home-intro h1 {
    font-size: clamp(3.25rem, 6.2vw, 6rem);
    line-height: .98;
    letter-spacing: -.035em;
}

.home-intro h1 span {
    display: block;
}

/* One entrance per page load; transforms reserve the headline's layout space.
   Visible by default, including when reduced motion is requested. */
@media (prefers-reduced-motion: no-preference) {
    #home-title > span {
        animation: home-title-enter 1000ms cubic-bezier(.2, .65, .3, 1) both;
        animation-iteration-count: 1;
    }
    #home-title > span:nth-child(2) { animation-delay: 300ms; }
    #home-title > span:nth-child(3) { animation-delay: 600ms; }
}

@keyframes home-title-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-intro h1 .home-title-accent {
    width: fit-content;
    max-width: 100%;
    padding: .08em .12em .12em;
    margin-block: .08em;
    color: var(--brand-charcoal);
    background: var(--brand-teal);
}

.home-intro .home-lead {
    font-size: 1.125rem;
    max-width: 53ch;
    margin-block: 2rem 1.75rem;
}

.home-intro .home-note {
    margin-top: 1rem;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 700;
}

.home-hero-preview {
    display: grid;
    align-items: center;
    min-width: 0;
    padding: 2.5rem clamp(1rem, 2.5vw, 2.5rem);
    background: var(--brand-teal);
}

.home-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--grid-line);
}

.home-proof li {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 2rem clamp(1.25rem, 2.5vw, 2.5rem);
}

.home-proof li + li {
    border-inline-start: 1px solid var(--grid-line);
}

.home-proof strong {
    color: var(--text-color);
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.home-proof strong::before {
    content: "";
    display: block;
    width: 2rem;
    height: 3px;
    margin-bottom: .75rem;
    background: var(--brand-teal);
}

.home-proof span {
    line-height: 1.5;
}

.home-proof .home-proof-label {
    margin-bottom: .5rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-proof .home-proof-benefit {
    font-size: .9375rem;
    font-weight: 600;
}

.home-proof p {
    margin: .25rem 0 0;
    font-size: .8125rem;
    line-height: 1.65;
    color: var(--home-muted);
    max-width: 30ch;
}

.home-education {
    background: var(--surface-color);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 2.5rem clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.home-education-intro h2 {
    margin-bottom: 1.5rem;
}

.home-education-intro > p {
    max-width: 38ch;
    color: var(--home-muted);
}

.home-education-summary .marketing-actions {
    margin-top: 1rem;
}

.home-royalty-types {
    margin: 0;
    border-block-start: 1px solid var(--grid-line);
}

.home-royalty-types > div {
    padding: 1.5rem;
    border-block-end: 1px solid var(--grid-line);
}

.home-royalty-types > div:last-child {
    border-inline-start: 3px solid var(--brand-teal);
    background: color-mix(in srgb, var(--brand-teal) 7%, transparent);
}

.home-royalty-types dt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    margin-block-end: .75rem;
}

.home-royalty-handler {
    font-size: .6875rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
}

.home-royalty-types dd {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.65;
}

.home-education .home-education-summary {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 1rem clamp(2rem, 5vw, 5rem);
    border-block: 1px solid var(--grid-line);
    padding-block: 1.5rem;
    margin: 0;
}

.home-education-summary strong {
    font-family: var(--font-display);
    font-size: 1.125rem;
    line-height: 1.5;
}

.home-education-summary p {
    color: var(--home-muted);
    margin: 0;
}

@media (max-width: 800px) {
    .home-education,
    .home-education .home-education-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-education-intro > p { max-width: 100%; }
    .home-royalty-types > div { padding: 1.25rem; }
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    list-style: none;
    border-block-start: 1px solid var(--grid-line);
}

.home-steps li {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-block: 1.5rem 2rem;
}

.home-step-number {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-color);
    font-variant-numeric: tabular-nums;
}

.home-steps h3 {
    font-size: 1.375rem;
    margin-block-end: .75rem;
}

.home-steps p {
    color: var(--home-muted);
}

.home-catalog-preview {
    margin: 0;
    border: 1px solid var(--grid-line);
    background: var(--surface-color);
    box-shadow: 8px 8px 0 rgb(57 62 65 / 15%);
}

.home-catalog-preview figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--grid-line);
    font-family: var(--font-display);
    font-size: .875rem;
    font-weight: 700;
}

.home-preview-period {
    color: var(--accent-color);
}
.home-preview-area {
    color: var(--home-muted);
    font-weight: 400;
    margin-inline-start: .5rem;
}
.home-preview-demo {
    color: var(--home-muted);
    font-size: .6875rem;
    font-weight: 500;
    white-space: nowrap;
}
.home-preview-content {
    padding: 1.5rem 1.25rem .5rem;
}
.home-preview-song {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}
.home-preview-art {
    display: grid;
    place-items: center;
    flex: 0 0 72px;
    height: 80px;
    background: var(--brand-charcoal);
    color: var(--brand-teal);
    font-size: 2rem;
    border-bottom: 4px solid var(--brand-teal);
}
.home-catalog-preview .home-preview-label {
    color: var(--home-muted);
    font-size: .625rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.5;
}
.home-catalog-preview .home-preview-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    margin: .25rem 0;
    letter-spacing: -.025em;
}
.home-catalog-preview .home-preview-artist {
    font-size: .8125rem;
    color: var(--home-muted);
}
.home-preview-split-bar {
    height: 6px;
    margin: .75rem 0;
    background: linear-gradient(to right, var(--brand-teal) 0 59.5%, var(--surface-color) 59.5% 60.5%, var(--accent-color) 60.5% 100%);
}
.home-preview-writers dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}
.home-preview-writers dl > div {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: .75rem;
}
.home-preview-writers dt {
    display: flex;
    gap: .4rem;
    align-items: center;
    font-weight: 400;
}
.home-preview-writers dd {
    font-weight: 700;
}
.home-preview-key {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    background: var(--brand-teal);
}
.home-preview-key-second {
    background: var(--accent-color);
}
.home-preview-registrations > p {
    margin-bottom: .5rem;
}
.home-preview-society {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .875rem 0;
    border-bottom: 1px solid var(--grid-line);
    font-family: var(--font-display);
    font-size: .875rem;
    font-weight: 600;
}
.home-preview-society:last-child {
    border: 0;
}
.home-preview-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .5rem;
    font-family: var(--font-body);
    font-size: .6875rem;
    font-weight: 500;
    background: var(--bg-color);
}
.home-preview-status-active {
    background: var(--brand-teal);
    color: var(--brand-charcoal);
}
.home-catalog-preview .home-preview-caption {
    padding: .75rem 1.25rem 1.25rem;
    color: var(--home-muted);
    font-size: .6875rem;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .home-catalog-preview {
        margin-inline-end: 8px;
        box-shadow: 8px 8px 0 rgb(57 62 65 / 15%);
    }
    .home-preview-content {
        padding: 1.25rem 1rem .5rem;
    }
    .home-catalog-preview figcaption {
        padding: .875rem 1rem;
    }
    .home-catalog-preview .home-preview-caption {
        padding: .5rem 1rem 1rem;
    }
    .home-preview-writers dl {
        gap: .75rem;
    }
    .home-preview-writers dl > div {
        flex-wrap: wrap;
    }
    .home-preview-area {
        display: none;
    }
}

.home-societies {
    border-block-start: 1px solid var(--grid-line);
    padding-block-start: 2rem;
}

.home-societies-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    margin-block-end: 1.25rem;
}

.home-societies-copy p {
    max-width: 38ch;
}

.home-society-marks {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    list-style: none;
    gap: 1px;
    background: var(--grid-line);
    border: 1px solid var(--grid-line);
}

.home-society-marks li {
    min-width: 0;
    background: var(--brand-white);
}

.home-society-marks a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 1.25rem;
}

.home-society-marks a:focus-visible {
    outline-color: var(--brand-charcoal);
    outline-offset: -5px;
}

.home-society-marks a:hover {
    background: color-mix(in srgb, var(--brand-teal) 10%, var(--brand-white));
}

.home-society-marks img {
    display: block;
    width: 100%;
    height: 44px;
    max-width: 120px;
    object-fit: contain;
}

/* Official white MLC wordmark, displayed in black on the white society tile. */
.home-society-marks .society-logo-mlc {
    filter: brightness(0);
}

.home-pricing {
    background: var(--surface-color);
}

.home-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--grid-line);
}

.home-plan {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.5rem, 3vw, 3rem);
    background: var(--bg-color);
}

.home-plan-pro {
    background: var(--brand-charcoal);
    color: var(--brand-white);
}

.home-plan h3 {
    font-size: 2rem;
    margin-block-end: .75rem;
}

.home-plan > p:first-of-type {
    min-height: 3.3em;
}

.home-plan .home-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem 1rem;
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-block: 2rem .75rem;
}

.home-price span {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
}

.home-plan-rate {
    font-size: 1.5rem;
    font-weight: 700;
}

.home-plan-pro .home-plan-rate {
    color: var(--brand-teal);
}

.home-plan .home-plan-terms {
    font-size: .875rem;
    margin-block: .5rem 1.5rem;
}

.home-plan-features {
    width: 100%;
    padding: 1.25rem 0 0;
    margin-block: 0 2rem;
    list-style: none;
    border-block-start: 1px solid currentColor;
}

.home-plan-features li {
    padding-block: .4rem;
}

.home-plan-features li::before {
    content: "";
    display: inline-block;
    width: .375rem;
    height: .375rem;
    margin-inline-end: .75rem;
    margin-block-end: .15rem;
    background: currentColor;
}

.home-plan .marketing-button {
    margin-block-start: auto;
    width: 100%;
}

.home-enterprise {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    padding-block: 2rem;
    border-bottom: 1px solid var(--grid-line);
}

.home-enterprise h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin-bottom: .5rem;
}

.home-enterprise h3 span {
    padding: .3rem .5rem;
    border: 1px solid var(--grid-line);
    line-height: 1.25;
    letter-spacing: normal;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
}

.home-enterprise-features {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: .5rem 1.5rem;
    margin-block-start: 1rem;
    font-size: .875rem;
    color: var(--home-muted);
}

.home-pricing-notes {
    padding-block-start: 1.5rem;
    color: var(--home-muted);
    font-size: .875rem;
}

.home-pricing-notes p {
    max-width: 85ch;
    margin-bottom: .75rem;
}

.home-pricing-notes a {
    color: var(--text-color);
}

.marketing-faq details a,
.home-support a {
    text-decoration: underline;
    text-underline-offset: .25em;
}

.home-close {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    background: var(--brand-teal);
    color: var(--brand-charcoal);
}

.home-close h2 {
    max-width: 20ch;
    margin-block-end: 1.25rem;
}

.home-close p {
    max-width: 44ch;
    margin-bottom: 1.5rem;
}

.home-close :focus-visible {
    outline-color: var(--brand-charcoal);
}

.home-close .home-support-eyebrow {
    margin-bottom: 1rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-support {
    align-self: center;
}

.home-support h3,
.home-support-signup h3 {
    margin-bottom: .75rem;
}

.home-contact-links {
    border-block-start: 1px solid currentColor;
}

.home-contact-links a {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: .75rem;
    padding-block: 1.125rem;
    border-block-end: 1px solid currentColor;
    color: inherit;
    text-decoration: none;
    font-size: .875rem;
}

.home-contact-links a > span:first-child {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .25em;
}

.home-contact-links a:is(:hover, :active) {
    background: rgb(255 255 255 / 18%);
}

.home-support-signup {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    border-block-start: 1px solid currentColor;
    padding-top: 2rem;
}

.home-support-signup p {
    max-width: 60ch;
    margin: 0;
}

@media (min-width: 701px) and (max-width: 1000px) {
    .home-contact-links a { grid-template-columns: 1fr auto; }
    .home-contact-links a > :nth-child(2) { grid-column: 1; grid-row: 2; }
    .home-contact-links a i { grid-column: 2; grid-row: 1 / 3; }
}

[dir="rtl"] .homepage .ph-arrow-right {
    transform: scaleX(-1);
}

@media (max-width: 1000px) {
    .home-intro h1 {
        font-size: clamp(3rem, 6.1vw, 4rem);
    }

    .home-hero-preview .home-preview-writers dl {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    .home-society-marks {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .homepage-body .nav-grid {
        grid-auto-flow: row;
    }

    .homepage-body .nav-grid .nav-link {
        justify-content: flex-start;
        min-height: 56px;
        padding-inline: var(--home-space);
    }
}

@media (max-width: 700px) {
    .home-hero,
    .home-proof,
    .home-royalty-types,
    .marketing-section-heading,
    .home-plans,
    .home-close {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-proof li {
        padding-block: 1.5rem;
    }

    .home-proof li + li {
        border-inline-start: 0;
        border-block-start: 1px solid var(--grid-line);
    }

    .home-intro h1 {
        font-size: clamp(2.75rem, 10.5vw, 4.5rem);
    }

    .home-intro {
        padding-block: 2.5rem;
    }

    .home-hero-preview {
        padding: 2rem var(--home-space);
    }

    .marketing-section-heading p {
        max-width: 100%;
    }

    .home-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .home-steps li {
        flex-direction: row;
        gap: 1.25rem;
        padding-block: 1.5rem;
        border-bottom: 1px solid var(--grid-line);
    }

    .home-step-number {
        flex-shrink: 0;
    }

    .home-societies {
        border: 0;
    }

    .home-society-marks a {
        min-height: 80px;
        padding: 1rem;
    }

    .home-society-marks img {
        height: 32px;
    }

    .home-plan > p:first-of-type {
        min-height: auto;
    }

    .home-close {
        gap: 2.5rem;
    }

    .home-support {
        border-block-start: 1px solid currentColor;
        padding-block-start: 1.5rem;
    }
}

/* App-store links: preview locally; rendered in production only after launch. */
.home-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
}
.home-mobile h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); margin-bottom: 1rem; }
.home-mobile p { margin-bottom: 0; }
.home-mobile .home-mobile-eyebrow { margin-bottom: 1rem; font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; }
.home-mobile .home-mobile-preview { margin-top: 1rem; font-size: .875rem; color: var(--marketing-muted); }
.home-mobile-downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.home-store-link {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--text-color);
    border-radius: var(--radius-control);
    background: var(--text-color);
    color: var(--surface-color);
    text-decoration: none;
}
.home-store-link { min-width: 13rem; }
.home-store-icon { width: 2rem; height: 2rem; flex: 0 0 2rem; background: currentColor; mask-size: contain; mask-repeat: no-repeat; mask-position: center; }
.home-store-icon--apple { mask-image: url("../img/app-stores/apple.418dc69a9450.svg"); }
.home-store-icon--google-play { mask-image: url("../img/app-stores/google-play.6d1f62214e25.svg"); }
.home-store-link small, .home-store-link strong { display: block; line-height: 1.4; }
.home-store-link small { font-size: .75rem; }
.home-store-link strong { font-size: 1.25rem; }
a.home-store-link:hover, a.home-store-link:active { background: #44bba4; border-color: #44bba4; color: #393e41; }
a.home-store-link:focus-visible { outline: 3px solid var(--marketing-focus); outline-offset: 4px; }

@media (max-width: 480px) {
    .home-mobile-downloads { width: 100%; grid-template-columns: 1fr; }
    .home-store-link { min-width: 0; }
}

/* ==================== about ==================== */
/* About-page composition; colors, gutters, links and contact rows are shared. */
.about-page .about-kicker {
    margin: 0 0 1.75rem;
    font-family: var(--font-display);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.about-intro .about-kicker::before {
    content: "";
    display: inline-block;
    width: 2rem;
    height: 3px;
    margin-inline-end: .75rem;
    vertical-align: middle;
    background: var(--accent-color);
}
.about-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: end;
    gap: 3rem;
}
.marketing-site .about-page #about-title {
    font-size: clamp(3rem, 5.4vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -.05em;
    margin: 0;
    text-wrap: initial;
}
#about-title span { color: var(--brand-teal); }
.about-intro-copy > p:first-child { font-size: 1.35rem; font-weight: 600; }
.about-page .marketing-text-link { margin-top: 1.5rem; }
.about-principle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    background: var(--brand-charcoal);
    color: var(--brand-white);
}
.about-principle h2 { max-width: 15ch; color: inherit; }
.about-principle .about-kicker { color: var(--brand-teal); }
.about-principle-copy { align-self: center; }
.about-principle-copy > p:first-child { font-size: 1.5rem; }
.about-work {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(2rem, 6vw, 6rem);
    background: var(--surface-color);
}
.about-work-intro h2 { max-width: 16ch; }
.about-work-list { list-style: none; padding: 0; margin: 0; }
.about-work-list li {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 1.25rem;
    padding-block: 2rem;
    border-top: 1px solid var(--grid-line);
}
.about-work-list li:first-child { padding-top: 0; border-top: 0; }
.about-work-list li:last-child { padding-bottom: 0; }
.about-work-number { font-family: var(--font-display); font-weight: 700; font-size: 1rem; padding-top: .15rem; }
.about-fees, .about-people, .about-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
}
.about-fees h2 { max-width: 17ch; }
.about-people { background: var(--brand-teal); color: var(--brand-charcoal); }
.about-people h2 { max-width: 17ch; }
.marketing-site .about-people .contact-channels { margin-top: 0; border-color: currentColor; }
.marketing-site .about-people .contact-channels a { color: inherit; border-color: currentColor; }
.marketing-site .about-people :focus-visible { outline-color: var(--brand-charcoal); }
.about-people-contact { align-self: center; }
.about-page .about-licensing { margin-top: 1.5rem; font-size: .875rem; }
.about-licensing a { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }
.about-details { font-size: .875rem; }
.about-details nav { display: grid; align-content: start; gap: 1rem; }
.about-details nav a { display: flex; justify-content: space-between; gap: 1rem; text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 800px) {
    .about-intro-grid, .about-principle, .about-work, .about-fees, .about-people, .about-details {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
    .about-intro-grid { align-items: start; }
}

/* ==================== calculator-page ==================== */
/* Calculator composition: shared brand tokens, spacing local to this workflow. */
.calculator-page .grid-cell { min-width: 0; }
.calculator-page #royaltyEstimator > .grid-cell,
.calculator-page .calculator-workspace > .grid-cell { padding-block: 2rem; }
.calculator-page .calculator-workspace > .grid-cell > h2 {
    font-size: clamp(1.5rem, 2.25vw, 2rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.calculator-page .calculator-fieldset {
    margin-top: 1.5rem;
    padding: 1rem;
    border-color: var(--grid-line);
}
.calculator-page .calculator-fieldset legend { padding-inline: .375rem; }
.calculator-page .calculator-fieldset .form-check + .form-check { margin-top: 1rem; }
.calculator-page small { line-height: 1.5; }
.calculator-page .text-tertiary { color: var(--marketing-muted); }
.calculator-page .calculator-rule {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--grid-line);
}
.calculator-page .deal-type-selector { display: grid; gap: .75rem; }
.calculator-page .deal-type-selector .form-check {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--grid-line);
    background: var(--surface-color);
}
.calculator-page .deal-type-selector .form-check:hover,
.calculator-page .deal-type-selector .form-check:has(input:checked) {
    border-color: var(--brand-teal);
    background: color-mix(in srgb, var(--brand-teal) 10%, var(--surface-color));
}
.calculator-page .deal-type-selector .form-check-label { min-width: 0; }
.calculator-page .deal-type-selector .form-check-label p { margin-top: .25rem; }

.calculator-page .calculator-results h3 { font-size: clamp(2rem, 4vw, 3rem); }

.calculator-page .calculator-breakdown > h3 { margin-bottom: 1.25rem; }
.calculator-page .calculator-breakdown-item { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-color: var(--grid-line); }
.calculator-page .calculator-breakdown-header { gap: 1rem; flex-wrap: wrap; }
.calculator-page .deal-explanation-panel {
    padding: 1.25rem;
    background: var(--bg-color);
    border: 1px solid var(--grid-line);
}
.calculator-page .advance-results { padding: 1rem; }
.calculator-page .table-scroll { width: 100%; }
.calculator-page .table-scroll table { min-width: 40rem; }
.calculator-page :is(#manualListeners,#manualStreams) { min-width: 0; }
@media (max-width: 768px) {
    .calculator-page .calculator-workspace > .grid-cell > h2 { font-size: 1.75rem; }
    .calculator-page .table-scroll th, .calculator-page .table-scroll td { padding: .875rem; }
}
.calculator-page #estimatorPlaceholder { padding-block: 1.5rem; }
.calculator-page #estimatorPlaceholder .marketing-button { margin-top: 1rem; }

/* Keep the conversion copy and actions on the same full-width center line. */
.calculator-page .conversion-content { width: 100%; text-align: center; }
.calculator-page .conversion-content > :is(h2, p) { margin-inline: auto; }
.calculator-page .conversion-content > .marketing-actions,
.calculator-page .conversion-content > .marketing-button { margin-top: 1.5rem; }

/* ==================== infrastructure ==================== */
/* Infrastructure page composition; colors, controls and gutters stay shared. */
.infra-page { max-width: var(--marketing-max-width); margin-inline: auto; }
.infra-page h1, .infra-page h2, .infra-page h3 { margin: 0; text-wrap: balance; }
.infra-page h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.1; }
.infra-page .infra-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1.25rem; }
.infra-page .infra-period { color: var(--brand-red, #e94f37); }
.infra-hero { display: grid; grid-template-columns: 1.1fr 1fr; border-bottom: 1px solid var(--grid-line); }
.infra-hero-copy { padding: clamp(3rem, 6vw, 6rem) var(--marketing-gutter); align-self: center; }
.infra-hero h1 { font-size: clamp(3.5rem, 6.5vw, 6.5rem); line-height: .98; letter-spacing: -.045em; margin-bottom: 2rem; }
.infra-hero .infra-lede { font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 600; margin-bottom: .75rem; }
.infra-hero-copy > p:not(.infra-kicker) { max-width: 43ch; }
.infra-hero-copy .marketing-actions { margin-top: 2rem; }
.infra-diagram { background: var(--brand-teal); color: var(--brand-charcoal); padding: clamp(2rem, 4vw, 4rem) var(--marketing-gutter); display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--grid-line); }
.infra-layer { padding: 1.5rem; border: 1px solid var(--brand-charcoal); }
.infra-layer-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.infra-layer strong { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; }
.infra-layer--product { background: var(--brand-white); }
.infra-layer--product p { font-size: .875rem; margin-top: .75rem; }
.infra-layer--engine { background: var(--brand-charcoal); color: var(--brand-white); }
.infra-layer--engine strong { font-size: 2rem; }
.infra-layer ul { display: flex; flex-wrap: wrap; list-style: none; gap: .5rem 1rem; margin: 1rem 0 0; padding: 0; font-size: .875rem; }
.infra-connector { height: 2.5rem; display: grid; place-items: center; font-size: 1.5rem; }
.infra-layer--network { display: flex; gap: 1rem; align-items: center; }
.infra-layer--network strong { font-size: 2.5rem; }
.infra-layer--network span { max-width: 19ch; line-height: 1.4; }
.infra-paths { background: var(--surface-color); }
.infra-section-heading { margin-bottom: 3rem; }
.infra-section-heading h2 { max-width: 22ch; }
.infra-path { display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 3vw, 3rem); padding-block: 2.5rem; border-top: 1px solid var(--grid-line); }
.infra-number { color: var(--marketing-muted); font-family: var(--font-display); font-size: 1rem; padding-top: .125rem; }
.infra-path h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.15; max-width: 23ch; }
.infra-path .infra-kicker { margin-bottom: .75rem; }
.infra-path .infra-detail { margin-top: 1rem; font-size: .875rem; color: var(--marketing-muted); }
.infra-developer { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--grid-line); background: var(--brand-charcoal); color: var(--brand-white); }
.infra-developer-copy { padding: clamp(2.5rem, 4vw, 4rem) var(--marketing-gutter); }
.infra-developer h2 { color: inherit; max-width: 16ch; }
.infra-developer-copy > p:not(.infra-kicker) { margin-block: 1.5rem 2rem; }
.infra-developer a:focus-visible { outline-color: var(--brand-white); }
.infra-code { margin: clamp(2rem, 4vw, 4rem) var(--marketing-gutter) clamp(2rem, 4vw, 4rem) 0; align-self: center; border: 1px solid #737b7d; min-width: 0; background: #292e30; }
.infra-code-heading { display: flex; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid #737b7d; font-size: .875rem; }
.infra-code-heading span:last-child { color: var(--brand-teal); font-family: monospace; }
.infra-code pre { margin: 0; padding: 2rem 1.5rem; overflow-x: auto; line-height: 1.8; background: transparent; color: inherit; font-size: .875rem; }
.infra-code code { color: inherit; white-space: pre; }
.infra-code pre:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: -2px; }
.infra-code-accent { color: var(--brand-teal); }
.infra-code-string { color: #f6cdbd; }
.infra-code-note { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 1rem 1.5rem; border-top: 1px solid #737b7d; font-size: .75rem; }
.infra-close { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem 4rem; background: var(--brand-teal); color: var(--brand-charcoal); }
.infra-close h2 { color: inherit; margin-bottom: 1.25rem; }
.infra-close p { max-width: 52ch; }
.infra-close-actions { display: grid; gap: 1rem; }
.infra-close .marketing-text-link { color: var(--brand-charcoal); }
.infra-close .marketing-text-link:hover { text-decoration: underline; }
@media (max-width: 1000px) {
    .infra-hero, .infra-developer { grid-template-columns: 1fr; }
    .infra-hero-copy > p:not(.infra-kicker) { max-width: 55ch; }
    .infra-hero h1 { font-size: clamp(3.5rem, 9vw, 6rem); }
    .infra-diagram { border-left: 0; border-top: 1px solid var(--grid-line); }
    .infra-layer { width: 100%; max-width: 34rem; margin-inline: auto; }
    .infra-diagram > .infra-kicker { width: 100%; max-width: 34rem; margin-inline: auto; }
    .infra-code { margin: 0 var(--marketing-gutter) 3rem; }
    .infra-close { grid-template-columns: 1fr; }
    .infra-close-actions { justify-items: start; }
}
@media (max-width: 600px) {
    .infra-path { grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; padding-block: 2rem; }
    .infra-path-copy { grid-column: 2; }
    .infra-section-heading { margin-bottom: 2rem; }
    .infra-hero h1 { font-size: clamp(2.75rem, 11vw, 4rem); }
    .infra-layer { padding: 1.25rem; }
    .infra-code pre { padding: 1.5rem 1rem; }
}

/* ==================== API integration guide ==================== */
.api-guide [id] { scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.api-guide pre:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 2px; }
.api-guide-section { border-top: 1px solid var(--grid-line); }

.api-guide-eyebrow { color: var(--accent-color); font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.api-guide-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: 2rem; border-top: 1px solid var(--grid-line); }
.api-guide-note { padding: 1.5rem; border: 1px solid var(--grid-line); background: var(--bg-color); }
.api-guide-caption { font-size: .8125rem; color: var(--marketing-muted); }
.api-guide pre { max-width: 100%; overflow-x: auto; padding: 1.5rem; background: var(--brand-charcoal); color: var(--brand-white); font-size: .875rem; line-height: 1.65; }
.api-guide pre code { white-space: pre; color: inherit; }
.api-guide code { overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
.api-guide ol { padding-inline-start: 1.5rem; }
.api-guide li + li { margin-top: .75rem; }
.api-guide a:not(.marketing-button) { text-underline-offset: .2em; }
@media (max-width: 800px) { .api-guide-row { grid-template-columns: minmax(0, 1fr); } }

/* ==================== api_reference ==================== */
/* ReDoc owns its generated layout; keep marketing type/form rules at the boundary. */
.marketing-site .marketing-content .api-reference-intro h1 { font-size: clamp(2rem, 3vw, 3rem); }
.api-reference-intro { padding-block: 2rem; border-bottom: 1px solid var(--grid-line); }
.api-reference-frame { background: var(--surface-color); }
.marketing-site .marketing-content .api-reference-frame :is(h1,h2,h3,h4,h5,h6) {
  color: var(--text-color);
  text-transform: none;
  letter-spacing: normal;
  text-wrap: wrap;
  line-height: 1.35;
  font-family: var(--font-display);
}
.marketing-site .marketing-content .api-reference-frame h1 { font-size: 2rem; }
.marketing-site .marketing-content .api-reference-frame h2 { font-size: 1.5rem; }
.marketing-site .marketing-content .api-reference-frame h3 { font-size: 1.125rem; }
.marketing-site .marketing-content .api-reference-frame p { max-width: none; margin: 0 0 1em; line-height: 1.65; }
.marketing-site .marketing-content .api-reference-frame :is(p + p,h2 + p,h3 + p) { margin-top: 0; }
#api-reference [role="search"] { position: relative; padding: 1rem; }
#api-reference .search-input {
  display: block; box-sizing: border-box; width: 100%; height: 44px; margin: 0;
  padding: .5rem 2rem; border: 1px solid var(--grid-line); border-radius: 0;
  background: var(--surface-color); color: var(--text-color); font-size: .875rem;
}
#api-reference [role="search"] > i { top: calc(1rem + 22px); right: 1.75rem; transform: translateY(-50%); line-height: 1; }
#api-reference .search-icon {
  position: absolute; left: 1.75rem; top: calc(1rem + 22px);
  width: 14px; height: 14px; transform: translateY(-50%); color: var(--text-color);
  pointer-events: none;
}
#api-reference :is(.search-input,[role="menuitem"]):focus-visible {
  outline: 2px solid var(--brand-teal); outline-offset: -2px; border-radius: 0;
}
#api-reference [role="menuitem"]:focus:not(:focus-visible) { outline: none; }

.api-reference-frame :is(th,td) { padding: .5rem; border-color: var(--grid-line); }
.api-reference-frame th { background: var(--bg-color); color: var(--text-color); text-transform: none; }
#api-reference [role="tab"] { color: var(--text-color); background: var(--bg-color); border: 1px solid var(--grid-line); border-radius: 0; }
#api-reference [role="tab"][aria-selected="true"] { border-bottom: 3px solid var(--brand-teal); }
.api-reference-frame .menu-content { border-right: 1px solid var(--grid-line); }
.api-reference-frame a:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 2px; }

/* ==================== brand ==================== */
.bg-page {
  padding: 4rem clamp(1rem, 3vw, 3rem) 4rem;
  max-width: 1120px;
  margin: 0 auto;
}

.bg-page h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 3.5rem 0 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grid-line);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.bg-page h2 .bg-num {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.7rem;
  opacity: 0.45;
  letter-spacing: 0.15em;
}

.bg-page h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.75rem 0 0.75rem;
  opacity: 0.6;
}

.bg-page .lede {
  opacity: 0.75;
  max-width: 62ch;
}

.bg-page code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.85em;
}

.bg-callout {
  padding: 0.75rem 1rem;
  background: rgba(63, 136, 197, 0.08);
  border-left: 3px solid var(--brand-blue, #3F88C5);
  border-radius: var(--radius-card);
  font-size: 0.88rem;
  margin: 1rem 0;
  max-width: 70ch;
}

.bg-callout strong {
  font-family: var(--font-display);
}

/* hero */
.bg-hero {
  position: relative;
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  background: var(--brand-charcoal);
  color: #fff;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.bg-hero-bar {
  width: 8px;
  height: 80px;
  background: linear-gradient(to bottom, #E94F37, #44BBA4, #3F88C5, #393E41);
  margin-bottom: 1.25rem;
}

.bg-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 0.75rem;
  color: #fff;
}

.bg-hero p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 56ch;
  line-height: 1.6;
  margin: 0;
}

/* principles */
.bg-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.bg-principle {
  background: var(--surface-color);
  border: 1px solid var(--grid-line);
  padding: 1.5rem;
  position: relative;
  border-radius: var(--radius-card);
}

.bg-principle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.bg-principle:nth-child(1)::before {
  background: #E94F37;
}

.bg-principle:nth-child(2)::before {
  background: #44BBA4;
}

.bg-principle:nth-child(3)::before {
  background: #3F88C5;
}

.bg-principle h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.bg-principle p {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.55;
  margin: 0;
}

/* swatches */
.bg-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.bg-swatch {
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.bg-swatch:hover {
  transform: translateY(-2px);
}

.bg-swatch-fill {
  height: 96px;
  padding: 0.75rem;
  display: flex;
  align-items: flex-end;
}

.bg-swatch-fill .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bg-swatch-meta {
  padding: 0.7rem 0.9rem;
  background: var(--surface-color);
  font-size: 0.82rem;
}

.bg-swatch-meta strong {
  font-family: var(--font-display);
  display: block;
}

.bg-swatch-meta code {
  font-size: 0.7rem;
  opacity: 0.65;
}

.bg-swatch-meta .role {
  display: block;
  margin-top: 0.25rem;
  opacity: 0.7;
  font-size: 0.78rem;
  line-height: 1.4;
}

.bg-swatch.is-copied .bg-swatch-fill::after {
  content: "copied";
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 2px;
}

/* logos */
.bg-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.bg-logo-tile {
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-card);
  padding: 2.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.bg-logo-tile.is-dark {
  background: var(--brand-charcoal);
  border-color: var(--brand-charcoal);
}

.bg-logo-tile.is-light {
  background: #fff;
}

.bg-logo-tile img {
  max-width: 220px;
  height: auto;
}

.bg-download-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.bg-download-row a {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  background: var(--bg-color);
}

.bg-download-row a:is(:hover, :active),
.bg-logo-tile.is-dark .bg-download-row a:is(:hover, :active) {
  background: var(--brand-teal);
  color: var(--brand-charcoal);
  border-color: var(--brand-teal);
}

.bg-logo-tile.is-dark .bg-download-row a {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.bg-icon-row {
  display: flex;
  gap: 1.25rem;
  align-items: end;
  flex-wrap: wrap;
  padding: 1.5rem;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-card);
  margin-bottom: 0.75rem;
}

.bg-icon-row figure {
  margin: 0;
  text-align: center;
}

.bg-icon-row figcaption {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.7rem;
  opacity: 0.55;
  margin-top: 0.4rem;
}

/* do/dont */
.bg-dodont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

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

.bg-do,
.bg-dont {
  padding: 1.25rem;
  border: 1px solid var(--grid-line);
  border-top-width: 3px;
  border-radius: var(--radius-card);
}

.bg-do {
  border-top-color: #10B981;
}

.bg-dont {
  border-top-color: #EF4444;
}

.bg-do .tag,
.bg-dont .tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.bg-do .tag {
  color: #10B981;
}

.bg-dont .tag {
  color: #EF4444;
}

.bg-do ul,
.bg-dont ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* typography */
.bg-type-specimen {
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  margin-bottom: 1rem;
}

.bg-type-specimen .label {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bg-type-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--grid-line);
}

.bg-type-row:last-child {
  border-bottom: 0;
}

.bg-type-row .name {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.bg-type-row .spec {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-top: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.bg-type-display-font {
  font-family: var(--font-display);
}

.bg-type-body-font {
  font-family: var(--font-body);
}

/* primitives */
.bg-primitive-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--grid-line);
  font-size: 0.85rem;
}

.bg-primitive-row:last-child {
  border-bottom: 0;
}

.bg-primitive-bar {
  height: 18px;
  background: var(--brand-teal);
  border-radius: 2px;
  opacity: 0.85;
}

.bg-primitive-radius {
  display: inline-block;
  width: 64px;
  height: 64px;
  background: var(--brand-teal);
}

.bg-primitive-shadow {
  display: inline-block;
  width: 96px;
  height: 64px;
  background: var(--bg-color);
  border: 1px solid var(--grid-line);
}

/* icons */
.bg-phosphor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
}

.bg-phosphor-tile {
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-card);
  padding: 1rem 0.5rem;
  text-align: center;
}

.bg-phosphor-tile i {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brand-teal);
}

.bg-phosphor-tile code {
  font-size: 0.7rem;
  opacity: 0.65;
}

/* components */
.bg-component-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-card);
  margin-bottom: 0.5rem;
}

.bg-component-label {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.7rem;
  opacity: 0.55;
  min-width: 180px;
}

/* voice */
.bg-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1rem 0 2rem;
}

.bg-tagline span {
  display: block;
}

.bg-voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem;
}

.bg-voice-card {
  border: 1px solid var(--grid-line);
  border-top-width: 3px;
  border-radius: var(--radius-card);
  padding: 1.25rem;
}

.bg-voice-card.do {
  border-top-color: #10B981;
}

.bg-voice-card.dont {
  border-top-color: #EF4444;
}

.bg-voice-card .tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.bg-voice-card.do .tag {
  color: #10B981;
}

.bg-voice-card.dont .tag {
  color: #EF4444;
}

.bg-voice-card p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.85;
  line-height: 1.55;
  font-style: italic;
}

/* lifted out of inline style attributes on this page */
.bg-icon-rounded {
  border-radius: 18%;
}

.bg-download-row.bg-download-row--start {
  justify-content: flex-start;
}

.bg-swatch-fill.bg-swatch-page {
  background: var(--bg-color);
  border-bottom: 1px solid var(--grid-line);
}

.bg-swatch-fill.bg-swatch-surface {
  background: var(--surface-color);
  border-bottom: 1px solid var(--grid-line);
}

.bg-swatch-fill.bg-swatch-text {
  background: var(--text-color);
}

.bg-swatch-fill.bg-swatch-border {
  background: var(--grid-line);
}

.bg-type-display-font.bg-type-display-sample {
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 700;
  margin: 0;
}

.bg-type-body-font.bg-type-body-sample {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  max-width: 60ch;
}

.bg-primitive-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
}

.bg-shadow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  background: var(--surface-color);
  border-radius: var(--radius-card);
  align-items: center;
}

.bg-figure {
  margin: 0;
  text-align: center;
}

.bg-figure-caption {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 0.4rem;
}

.bg-figure-caption--roomy {
  margin-top: 0.6rem;
}

.bg-caption-note {
  color: var(--brand-teal);
}

.bg-primitive-px {
  opacity: 0.5;
}

.bg-component-row.bg-component-row--dark {
  background: var(--brand-charcoal);
  color: var(--brand-white);
  border-color: var(--brand-charcoal);
}

/* Brand guide previews the same controls used by the marketing site. */
.bg-component-row--brand { background: var(--brand-teal); color: var(--brand-charcoal); }

.bg-component-label.bg-component-label--dark {
  color: rgba(255, 255, 255, 0.65);
}

.bg-page .lede.bg-lede-tight {
  margin-top: -1rem;
}

/* Brand-guide specimens use the same live tokens as their components. */
.bg-swatch-fill[data-color="cinnabar"] { background: #E94F37; color: #fff; }
.bg-swatch-fill[data-color="keppel"] { background: #44BBA4; color: #393E41; }
.bg-swatch-fill[data-color="steel-blue"] { background: #3F88C5; color: #fff; }
.bg-swatch-fill[data-color="onyx"] { background: #393E41; color: #fff; }
.bg-swatch-fill[data-color="success"] { background: #10B981; color: #fff; }
.bg-swatch-fill[data-color="warning"] { background: #F59E0B; color: #393e41; }
.bg-swatch-fill[data-color="error"] { background: #EF4444; color: #fff; }
.bg-swatch-fill[data-color="info"] { background: #3F88C5; color: #fff; }
.bg-type-display-font[data-type="display"] { font-size: 3rem; font-weight: 700; line-height: 1.2; }
.bg-type-display-font[data-type="heading-1"] { font-size: 2rem; font-weight: 700; line-height: 1.2; }
.bg-type-display-font[data-type="heading-2"] { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.bg-type-display-font[data-type="body-large"] { font-size: 1.125rem; font-weight: 600; line-height: 1.2; }
.bg-type-display-font[data-type="body"] { font-size: 1rem; font-weight: 400; line-height: 1.2; }
.bg-type-display-font[data-type="caption"] { font-size: 0.875rem; font-weight: 400; line-height: 1.2; }
.bg-type-display-font[data-type="label"] { font-size: 0.75rem; font-weight: 700; line-height: 1.2; }
.bg-primitive-bar[data-spacing="4"] { width: 4px; }
.bg-primitive-bar[data-spacing="8"] { width: 8px; }
.bg-primitive-bar[data-spacing="12"] { width: 12px; }
.bg-primitive-bar[data-spacing="16"] { width: 16px; }
.bg-primitive-bar[data-spacing="20"] { width: 20px; }
.bg-primitive-bar[data-spacing="24"] { width: 24px; }
.bg-primitive-bar[data-spacing="32"] { width: 32px; }
.bg-primitive-bar[data-spacing="40"] { width: 40px; }
.bg-primitive-bar[data-spacing="48"] { width: 48px; }
.bg-primitive-bar[data-spacing="64"] { width: 64px; }
.bg-primitive-bar[data-spacing="80"] { width: 80px; }
.bg-primitive-bar[data-spacing="96"] { width: 96px; }
.bg-primitive-radius[data-radius="--radius-none"] { border-radius: var(--radius-none); }
.bg-primitive-radius[data-radius="--radius-sm"] { border-radius: var(--radius-sm); }
.bg-primitive-radius[data-radius="--radius-base"] { border-radius: var(--radius-base); }
.bg-primitive-radius[data-radius="--radius-md"] { border-radius: var(--radius-md); }
.bg-primitive-radius[data-radius="--radius-lg"] { border-radius: var(--radius-lg); }
.bg-primitive-radius[data-radius="--radius-xl"] { border-radius: var(--radius-xl); }
.bg-primitive-radius[data-radius="--radius-2xl"] { border-radius: var(--radius-2xl); }
.bg-primitive-radius[data-radius="--radius-3xl"] { border-radius: var(--radius-3xl); }
.bg-primitive-radius[data-radius="--radius-full"] { border-radius: var(--radius-full); }
.bg-primitive-radius[data-radius="--radius-none"] { outline: 1px dashed var(--grid-line); outline-offset: -1px; }
.bg-primitive-shadow[data-shadow="--shadow-sm"] { box-shadow: var(--shadow-sm); }
.bg-primitive-shadow[data-shadow="--shadow-base"] { box-shadow: var(--shadow-base); }
.bg-primitive-shadow[data-shadow="--shadow-md"] { box-shadow: var(--shadow-md); }
.bg-primitive-shadow[data-shadow="--shadow-lg"] { box-shadow: var(--shadow-lg); }
.bg-primitive-shadow[data-shadow="--shadow-xl"] { box-shadow: var(--shadow-xl); }
.bg-primitive-shadow[data-shadow="--shadow-2xl"] { box-shadow: var(--shadow-2xl); }

/* Interactive state belongs in CSS; scripts update classes, data and values. */
.marketing-site [hidden] { display: none !important; }
.artist-result.is-active { background: color-mix(in srgb, var(--text-color) 8%, transparent) !important; }
[data-confidence="low"] { background: rgba(220,53,69,.12); color: #b02a37; }
[data-confidence="moderate"] { background: rgba(255,193,7,.18); color: #9a6c00; }
[data-confidence="high"] { background: rgba(40,167,69,.12); color: #1e7e34; }
[data-theme="dark"] [data-confidence="low"] { color: #ffadb6; }
[data-theme="dark"] [data-confidence="moderate"] { color: #ffe08a; }
[data-theme="dark"] [data-confidence="high"] { color: #8cddb0; }

/* Large specimens must wrap within the guide on narrow screens. */
.bg-type-display-font { overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .bg-type-display-sample { font-size: clamp(1.5rem, 7vw, 3rem); }
    .bg-type-row { grid-template-columns: 1fr; }
}

/* Layout primitives: containers own spacing; child content owns typography. */
.marketing-site .marketing-stack { display: flex; flex-direction: column; align-items: stretch; gap: var(--marketing-space-copy); }
.marketing-site .marketing-content .marketing-stack > * { margin-block: 0; }
.marketing-site .marketing-stack--intro { gap: var(--marketing-space-intro); }
.marketing-site .marketing-stack--intro > .marketing-actions { margin-top: calc(var(--marketing-space-actions) - var(--marketing-space-intro)); }
.marketing-site .marketing-actions--center { justify-content: center; }
.marketing-site .marketing-page-intro { padding-block: clamp(2.5rem, 5vw, 5rem); border: 0; background: var(--marketing-surface-muted); }
.marketing-page-intro h1 { max-width: 22ch; }
.marketing-page-intro-accent { display: block; color: var(--brand-teal); }
.marketing-page-intro-description { font-size: 1.25rem; max-width: 60ch; }

.marketing-site .marketing-page-intro--center { text-align: center; }
.marketing-site .marketing-page-intro--center .marketing-stack { align-items: center; }
.marketing-site .marketing-page-intro-description--compact { font-size: 1rem; max-width: 68ch; }

/* Shared reading and form layouts for secondary marketing-shell pages. */
.marketing-reading-page { max-width: 72rem; margin-inline: auto; }
.marketing-site .marketing-content .marketing-message h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.marketing-form { display: grid; gap: 1.5rem; }
.marketing-form > * { margin-block: 0; }
.marketing-form > .marketing-button { justify-self: start; }
.marketing-message.text-center .marketing-form > .marketing-button { justify-self: center; }
.marketing-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) { width: 100%; }
.marketing-form .form-field-error, .marketing-form .invalid-feedback { color: var(--accent-color); }
.text-decoration-underline { text-decoration: underline; text-underline-offset: .15em; }
.marketing-resource-list { display: grid; gap: 1.5rem; }
.marketing-resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.marketing-resource-card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--grid-line); background: var(--surface-color); }
a.marketing-resource-card { color: inherit; text-decoration: none; }
a.marketing-resource-card:hover { background: color-mix(in srgb, var(--brand-teal) 10%, var(--surface-color)); }
a.marketing-resource-card:hover :is(h2,h3) { text-decoration: underline; text-underline-offset: .15em; }
.marketing-site .marketing-resource-card :is(h2,h3) { font-size: 1.5rem; }
.help-search-form input { flex: 1 1 16rem; min-width: 0; }
.help-breadcrumb { font-size: .9375rem; }
.blog-body { overflow-wrap: anywhere; }
.blog-body :is(img,video,iframe) { max-width: 100%; }
.blog-body img { height: auto; }
.blog-body :is(pre,table) { overflow-x: auto; }
.marketing-site .blog-body :is(h2,h3,ul,ol,blockquote,pre) { margin-block: 1.5rem; }
.calculator-page .calculator-estimator-state { padding-block: 1.5rem; }
@media (max-width: 700px) {
    .marketing-resource-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Keep brand accents decorative where small text needs stronger contrast. */
.marketing-site :is(.eyebrow, .callout__kicker, .api-guide-eyebrow) { color: inherit; }
.marketing-site :is(.eyebrow, .callout__kicker, .api-guide-eyebrow, .home-step-number)::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 3px;
    margin-inline-end: .625rem;
    vertical-align: middle;
    background: var(--accent-color);
}

/* Brand-guide combobox demo (marketing shell). */
[data-combobox] { position: relative; }
[data-combobox] [role="combobox"] { width: 100%; box-sizing: border-box; }
[data-combobox] [role="listbox"] {
  position: absolute; inset-inline: 0; z-index: 1050;
  max-height: 18rem; overflow-y: auto;
  background: var(--color-bg-secondary, var(--surface-color, #fff));
  color: var(--color-text-primary, var(--text-color, #393E41));
  border: 1px solid var(--color-border-light, var(--grid-line, #ccc));
  box-shadow: 0 4px 12px #0002;
}
[data-combobox] [hidden] { display: none; }
[data-combobox] [role="option"] {
  display: block; width: 100%; padding: .75rem; border: 0;
  background: transparent; color: inherit; text-align: start; cursor: pointer;
  font: inherit; letter-spacing: normal; text-transform: none;
}
[data-combobox] [role="option"] span { display: block; }
[data-combobox] [role="option"] small { color: inherit; opacity: .8; }
[data-combobox] [role="option"]:hover,
[data-combobox] [role="option"][aria-selected="true"] { background: #44BBA4; color: #393E41; }
[data-combobox] [role="status"] { padding: .75rem; margin: 0; }

.brand-combobox-demo { max-width: 32rem; margin-block: 1.5rem; }

.brand-app-demo { display: block; width: 100%; height: 360px; border: 1px solid var(--grid-line); margin-block: 24px; }
@media (max-width: 600px) { .brand-app-demo { height: 480px; } }
