: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 */

    --header-height: 80px;
    --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;
}

/* 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: 100vh;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid var(--text-color);
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

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

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

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

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(68, 187, 164, 0.15);
    color: var(--text-color);
    border-radius: 4px;
    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 */
header {
    position: fixed;
    top: 0;
    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-cta {
    background-color: var(--text-color);
}

.nav-link-cta:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.nav-link-login {
    background-color: var(--brand-teal);
    color: white;
    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 span {
    width: 2rem;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Hero */
.hero {
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    padding: 2.5rem clamp(1rem, 3vw, 3rem) 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title h1 {
    line-height: 0.95;
}

.hero-title h1 span {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    animation: slideUp 0.8s var(--transition-smooth) forwards;
}

.hero-title h1 span:nth-child(1) { animation-delay: 0.1s; }
.hero-title h1 span:nth-child(2) { animation-delay: 0.3s; color: var(--brand-teal); }
.hero-title h1 span:nth-child(3) { animation-delay: 0.5s; }

/* Hero Value Props */
.hero-value-props {
    display: flex;
    gap: 2rem;
    padding: 0 clamp(1rem, 3vw, 3rem) 2rem;
}

.hero-value-prop {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-inline-start: 1rem;
    border-inline-start: 5px solid var(--brand-teal);
}

.hero-value-prop-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--brand-teal);
}

.hero-value-prop:nth-child(1) .hero-value-prop-number { color: var(--accent-color); }
.hero-value-prop:nth-child(1) { border-inline-start-color: var(--accent-color); }

.hero-value-prop:nth-child(3) .hero-value-prop-number { color: var(--text-color); }
.hero-value-prop:nth-child(3) { border-inline-start-color: var(--text-color); }

.hero-value-prop-label {
    font-size: 1rem;
    max-width: 46ch;
    opacity: 0.8;
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    gap: 1rem;
    padding: 0 clamp(1rem, 3vw, 3rem) 4rem;
}

.btn.hero-btn-primary,
[data-theme="dark"] .btn.hero-btn-primary {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn.hero-btn-primary:hover,
[data-theme="dark"] .btn.hero-btn-primary:hover {
    background-color: var(--brand-charcoal);
    border-color: var(--brand-charcoal);
    color: #fff;
}

.hero-btn-secondary {
    background-color: var(--text-color);
    border-color: var(--bg-color);
    color: var(--bg-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero-btn-secondary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Problem / Solution */
.narrative-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.narrative-header {
    text-align: center;
    max-width: 700px;
}

.narrative-heading {
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    position: relative;
}

.narrative-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--accent-color), var(--brand-teal), var(--text-color));
}

.narrative-word-1 { color: var(--text-color); }
.narrative-word-2 { color: var(--brand-teal); }
.narrative-word-3 { color: var(--text-color); }
.narrative-word-4 { color: var(--accent-color); }

/* "Broken." mend-on-scroll: starts shattered, halves come back together */
.narrative-break {
    position: relative;
    display: inline-block;
    perspective: 800px;
    isolation: isolate;
}

.narrative-break-base {
    visibility: hidden;
}

.narrative-break-half {
    position: absolute;
    inset: 0;
    color: inherit;
    pointer-events: none;
    transition:
        transform 1.1s cubic-bezier(.22, .9, .26, 1),
        filter .7s ease;
    will-change: transform, filter;
}

.narrative-break-half-top {
    clip-path: polygon(0 0, 100% 0, 100% 46%, 88% 56%, 76% 44%, 64% 58%, 52% 46%, 40% 60%, 26% 48%, 14% 60%, 0 50%);
    transform: translate(-7px, -11px) rotate(-3deg);
    filter: drop-shadow(-3px -3px 0 rgba(0, 0, 0, .35));
}

.narrative-break-half-bottom {
    clip-path: polygon(0 50%, 14% 60%, 26% 48%, 40% 60%, 52% 46%, 64% 58%, 76% 44%, 88% 56%, 100% 46%, 100% 100%, 0 100%);
    transform: translate(9px, 14px) rotate(2.5deg);
    filter: drop-shadow(3px 5px 0 rgba(0, 0, 0, .35));
}

.narrative-break-crack {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--brand-teal) 18%,
        #fff 50%,
        var(--brand-teal) 82%,
        transparent);
    filter: drop-shadow(0 0 8px var(--brand-teal));
    opacity: 1;
    transform: scaleX(1);
    transform-origin: center;
    pointer-events: none;
    transition:
        opacity .4s ease,
        transform .55s cubic-bezier(.6, .1, .3, 1);
}

@keyframes narrativeSettle {
    0%, 100% { transform: translate(0, 0); }
    35%      { transform: translate(0, 1.5px); }
    65%      { transform: translate(0, -1px); }
    85%      { transform: translate(0, .5px); }
}

.is-mended .narrative-break-half-top,
.is-mended .narrative-break-half-bottom {
    transform: translate(0, 0) rotate(0);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.is-mended .narrative-break-crack {
    opacity: 0;
    transform: scaleX(0);
    transition-delay: .55s;
}

.is-mended .narrative-break {
    animation: narrativeSettle .4s ease 1.05s 1;
}

@media (prefers-reduced-motion: reduce) {
    .narrative-break,
    .narrative-break-half,
    .narrative-break-crack {
        animation: none !important;
        transition: none !important;
    }
    .narrative-break-half-top,
    .narrative-break-half-bottom {
        transform: none !important;
        filter: none !important;
    }
    .narrative-break-crack {
        opacity: 0 !important;
    }
}

.narrative-subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    line-height: 1.6;
}

.narrative-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.narrative-card {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.narrative-card-old {
    background: var(--narrative-surface-old, #111);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.narrative-card-new {
    background: var(--narrative-surface-new, #0d1714);
    border: 1px solid rgba(68, 187, 164, 0.18);
    color: rgba(255, 255, 255, 0.92);
}

.narrative-card h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.narrative-card-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.narrative-card-badge-old {
    background: var(--accent-color);
    color: #fff;
}

.narrative-card-badge-new {
    background: var(--brand-teal);
    color: #fff;
}

.narrative-card-description {
    font-size: 0.9375rem;
    opacity: 0.9;
    line-height: 1.6;
}

.narrative-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.narrative-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
    overflow: hidden;
}

.narrative-step > * {
    position: relative;
    z-index: 1;
}

.narrative-step div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.narrative-step small {
    font-size: 0.78rem;
    opacity: 0.7;
    letter-spacing: 0.01em;
}

.narrative-step-highlight-old {
    background: rgba(233, 79, 55, 0.06);
    border: 1px solid rgba(233, 79, 55, 0.45);
    box-shadow: 0 0 32px rgba(233, 79, 55, 0.1);
}

.narrative-step-highlight-old::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(233, 79, 55, 0.28) 2px, transparent 2px),
        linear-gradient(90deg, rgba(233, 79, 55, 0.28) 2px, transparent 2px);
    background-size: 56px 28px;
    opacity: 0.75;
    pointer-events: none;
    z-index: 0;
}

.narrative-step-highlight-old .narrative-step-detail > span:first-child {
    color: var(--accent-color);
    font-weight: 600;
}

.narrative-step-highlight-new {
    background: rgba(68, 187, 164, 0.06);
    border: 1px solid rgba(68, 187, 164, 0.45);
    box-shadow: 0 0 32px rgba(68, 187, 164, 0.1);
}

.narrative-step-highlight-new .narrative-step-detail {
    flex: 1;
}

.narrative-step-highlight-new .narrative-step-detail > span:first-child {
    color: var(--brand-teal);
    font-weight: 600;
}

.narrative-step-highlight-new .narrative-step-detail > span:first-child::after {
    content: '';
    display: block;
    margin: 0.45rem 0 0.35rem;
    height: 6px;
    background-image: linear-gradient(
        to right,
        var(--brand-teal) 0,
        var(--brand-teal) 22%,
        transparent 22%,
        transparent 25%,
        var(--brand-teal) 25%,
        var(--brand-teal) 47%,
        transparent 47%,
        transparent 50%,
        var(--brand-teal) 50%,
        var(--brand-teal) 72%,
        transparent 72%,
        transparent 75%,
        var(--brand-teal) 75%,
        var(--brand-teal) 100%
    );
    opacity: 0.8;
    border-radius: 3px;
}

.narrative-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.narrative-step-icon-pill {
    width: auto;
    min-width: 0;
    padding: 0 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.narrative-step-icon-old {
    background: rgba(233, 79, 55, 0.18);
    color: var(--accent-color);
}

.narrative-step-icon-new {
    background: rgba(68, 187, 164, 0.18);
    color: var(--brand-teal);
}

.narrative-step-icon svg {
    width: 1rem;
    height: 1rem;
}

.narrative-step-detail {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Societies Ticker */
.societies-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 1rem;
}

.societies-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 2rem;
    max-width: 100%;
    text-align: center;
}

.societies-ticker {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    margin-bottom: 2rem;
}

.societies-track {
    display: flex;
    animation: tickerScroll 70s linear infinite;
    width: max-content;
}

.society-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0.6;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    padding-inline-end: 3rem;
}

.society-name:hover {
    opacity: 1;
    color: var(--brand-teal);
}

.society-logo {
    height: 2.5rem;
    width: auto;
    max-width: 10rem;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.society-name:hover .society-logo {
    filter: grayscale(0%);
}

.societies-link {
    color: var(--brand-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    font-weight: 600;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.narrative-step-arrow {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.15rem 0;
    opacity: 0.75;
}

.narrative-card-old .narrative-step-arrow {
    color: var(--accent-color);
}

.narrative-card-new .narrative-step-arrow {
    color: var(--brand-teal);
}

/* Legacy story-block (unused, kept for reveal JS compatibility) */
.story-block {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    border-bottom: 1px solid var(--grid-line);
    opacity: 0.3;
    transition: opacity 0.5s;
}

.story-block.active {
    opacity: 1;
}

.story-block h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Product Showcase */
.product-interface {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--grid-line);
}

.interface-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--transition-smooth);
}

.interface-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.sidebar {
    background: #EAEAE4;
    border-inline-end: 1px solid var(--grid-line);
    padding: 20px;
}

.sidebar-item {
    height: 12px;
    background: var(--grid-line);
    margin-bottom: 15px;
    border-radius: 2px;
    width: 80%;
}

.main-content {
    padding: 40px;
    background: #fff;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.dash-title { height: 24px; width: 200px; background: var(--brand-charcoal); }
.dash-btn { height: 32px; width: 100px; background: #FF3B30; }

.chart-area {
    height: 300px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding-top: 40px;
    border-bottom: 2px solid var(--brand-charcoal);
}

.bar {
    flex: 1;
    background: var(--brand-charcoal);
    transition: height 1s ease-out;
    height: 0;
}

.visible .bar {
    height: var(--h);
}

/* Transparent Analytics Section */
.analytics-section {
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 3rem);
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--grid-line);
}

.analytics-header {
    text-align: center;
    max-width: 960px;
    margin: 0 auto 3rem;
}

.analytics-header h2 {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .analytics-header h2 {
        white-space: normal;
    }
}

.analytics-subtitle {
    margin: 1rem auto 0;
    color: var(--text-color);
    opacity: 0.7;
    max-width: 60ch;
}

.analytics-cta {
    text-align: center;
    margin-top: 3rem;
}

.analytics-cta-btn {
    background-color: var(--text-color);
    color: white;
    border-color: var(--text-color);
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.analytics-cta-btn:hover {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    color: white;
}

.comparison-table {
    max-width: 1100px;
    margin: 0 auto;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1fr;
    align-items: center;
    border-bottom: 1px solid var(--grid-line);
}

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

.comparison-cell {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
}

.comparison-cell--label {
    text-align: start;
    color: var(--text-color);
    font-weight: 600;
}

.comparison-row--header .comparison-cell {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
}

.comparison-row--header .comparison-cell--label {
    color: var(--text-color);
}

.comparison-row--header .comparison-cell--jukehouse {
    color: var(--brand-teal);
}

.comparison-row--header .comparison-cell--competitor {
    color: var(--text-color);
    opacity: 0.45;
}

.comparison-cell--jukehouse {
    font-weight: 700;
    color: var(--text-color);
}

.comparison-cell--competitor {
    color: var(--text-color);
    opacity: 0.55;
}

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

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

/* Signup (Reclaim Your Royalties) */
.signup-section {
    background-color: var(--accent-color);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 4rem);
    gap: 2.5rem;
    border-bottom: 1px solid var(--grid-line);
}


.signup-section h2 {
    color: white;
    margin: 0 0 0.75rem;
}

.signup-section .form-group {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 820px;
}

.signup-section input {
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.signup-section .btn.conversion-submit {
    background: white;
    color: var(--accent-color);
    border-color: white;
    font-weight: 600;
    white-space: nowrap;
}

.signup-section .btn.conversion-submit:hover {
    background: var(--brand-charcoal);
    color: white;
    border-color: var(--brand-charcoal);
}

.conversion-footnote {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0.5rem 0 0;
    max-width: none;
}

/* Final CTA Section */
.final-cta-section {
    background-color: var(--brand-charcoal);
    padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 4vw, 4rem);
    text-align: center;
}

[data-theme="dark"] .final-cta-section {
    background-color: var(--brand-teal);
}

[data-theme="dark"] .final-cta-btn {
    background-color: white;
    color: var(--brand-teal);
    border-color: white;
}

[data-theme="dark"] .final-cta-btn:hover {
    background-color: var(--brand-charcoal);
    color: white;
    border-color: var(--brand-charcoal);
}

.final-cta-content {
    max-width: 1100px;
    margin: 0 auto;
}

.final-cta-title {
    color: white;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}

.final-cta-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    max-width: 60ch;
    margin: 0 auto 2.5rem;
}

.final-cta-btn {
    background-color: var(--brand-teal);
    color: white;
    border-color: var(--brand-teal);
    padding: 1rem 2.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.final-cta-btn:hover {
    background-color: white;
    color: var(--text-color);
    border-color: white;
}

.conversion-left {
    flex: 1;
}

.conversion-left h2 {
    color: white;
    margin-bottom: 1rem;
}

.conversion-left p {
    opacity: 0.9;
    font-size: 1.05rem;
    max-width: 40ch;
}

.conversion-card {
    background: white;
    color: var(--brand-charcoal);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    flex-shrink: 0;
}

.conversion-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.conversion-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.conversion-form input {
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    font-size: 1rem;
    background: white;
    color: var(--brand-charcoal);
}

.btn.conversion-submit,
[data-theme="dark"] .btn.conversion-submit {
    background: var(--brand-charcoal);
    color: white;
    border-color: var(--brand-charcoal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: 100%;
}

.btn.conversion-submit:hover,
[data-theme="dark"] .btn.conversion-submit:hover {
    background: var(--brand-teal);
    color: white;
    border-color: var(--brand-teal);
}

.conversion-fine-print {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 1rem;
}

/* New to Publishing */
.new-to-publishing {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 5rem clamp(1rem, 3vw, 3rem);
}

[data-theme="dark"] .new-to-publishing {
    background-color: var(--brand-white);
    color: var(--brand-charcoal);
}

.new-to-publishing-inner {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.new-to-publishing-left h2 {
    color: var(--bg-color);
    white-space: nowrap;
}

.new-to-publishing-right {
    max-width: 600px;
}

.new-to-publishing-right p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 1.25rem;
}

.new-to-publishing-link {
    color: var(--brand-teal);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.new-to-publishing-link:hover {
    text-decoration: underline;
}

/* Testimonial Highlight */
.testimonial-highlight {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 5rem clamp(2rem, 5vw, 6rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.testimonial-highlight-quote {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 2rem;
}

.testimonial-highlight-quote::before { content: "\201C"; }
.testimonial-highlight-quote::after { content: "\201D"; }

.testimonial-highlight-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-highlight-author strong {
    font-size: 1rem;
}

.testimonial-highlight-author span {
    font-size: 0.85rem;
    opacity: 0.6;
}

.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;
}

/* Animations */
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tech Section Styles */
.tech-visual {
    height: 400px;
    background: var(--brand-charcoal);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--grid-line);
}

.map-grid {
    width: 100%;
    height: 100%;
    position: relative;
    background-image: radial-gradient(#666 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.7;
}

.map-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--brand-teal);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 rgba(68, 187, 164, 0.4);
    animation: pulse-teal 2s infinite;
}

.map-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-teal), transparent);
    transform-origin: left center;
    opacity: 0;
    animation: transmit 3s infinite;
}

@keyframes pulse-teal {
    0% { box-shadow: 0 0 0 0 rgba(68, 187, 164, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(68, 187, 164, 0); }
    100% { box-shadow: 0 0 0 0 rgba(68, 187, 164, 0); }
}

@keyframes transmit {
    0% { width: 0; opacity: 0; }
    20% { opacity: 1; }
    100% { width: 200px; opacity: 0; }
}

.code-line { display: block; margin-bottom: 0.15rem; white-space: pre; margin-inline-start: 0; padding-inline-start: 0; }
.c-teal { color: var(--brand-teal); }
.c-gray { color: #888; }
.c-orange { color: var(--accent-color); }

/* 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: 4px;
    -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: white;
    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 */
    header {
        position: fixed;
        top: 0;
        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 {
        --header-height: 60px;
    }

    /* Hero Section */
    .hero {
        min-height: auto;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
    }

    .hero-title {
        padding: 2rem 1.5rem;
    }

    .hero-title h1 {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .hero-value-props {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1.5rem 1.5rem;
    }

    .hero-ctas {
        padding: 0 1.5rem 2rem;
        flex-wrap: wrap;
        padding: 2rem 1.5rem;
    }

    .hero-cta-text {
        font-size: 1.5rem;
    }

    /* 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;
    }

    /* Narrative Section */
    .narrative-cards {
        grid-template-columns: 1fr;
    }

    .narrative-card {
        padding: 1.5rem;
    }

    /* Comparison Table */
    .comparison-row {
        grid-template-columns: 1.5fr 1fr;
    }

    .comparison-cell:nth-child(3),
    .comparison-cell:nth-child(4) {
        display: none;
    }

    .comparison-cell {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }

    /* Calculator */
    .homepage-calculator {
        grid-column: 1 / -1;
        padding: 1.5rem 1rem;
        border-inline-end: none;
        border-bottom: 1px solid var(--grid-line);
    }

    .calculator-title {
        font-size: 1.5rem;
    }

    .calculator-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .calculator-service-group {
        flex-direction: column;
        gap: 1rem;
    }

    .calculator-slider-container {
        padding: 0;
    }

    .calculator-value {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .calculator-value-large {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    /* Code Window */
    .code-window {
        padding: 1.5rem 1rem 1.5rem 0.75rem;
    }

    .code-window-content {
        font-size: 0.85rem;
        overflow-x: auto;
    }

    .code-line {
        white-space: pre-wrap;
        word-break: break-word;
    }

    .code-window-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .code-window-title {
        font-size: 1.25rem;
    }

    .code-window-subtitle {
        font-size: 0.85rem;
    }

    /* Product Interface */
    .product-interface {
        aspect-ratio: 16/10;
    }

    .interface-grid {
        grid-template-columns: 150px 1fr;
    }

    .pricing-card-price {
        font-size: 2.25rem;
    }

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

    .conversion-card {
        max-width: 100%;
    }

    /* New to Publishing */
    .new-to-publishing-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .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 Section */
    .help-content {
        padding: 2rem 1.5rem;
    }

    .help-title {
        font-size: 1.25rem;
    }

    .help-contact {
        font-size: clamp(1.25rem, 6vw, 2rem);
    }

    /* 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;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px; /* Better touch target */
    }

    /* 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-bottom { border-bottom: 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-section {
    padding: 3rem;
    background: var(--text-color);
    color: white;
}

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

.calculator-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: white;
}

.calculator-subtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.6);
}

.calculator-input-group {
    margin-bottom: 3rem;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.calculator-label {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 0.5rem;
    display: block;
    color: rgba(255, 255, 255, 0.85);
}

.calculator-slider-container {
    text-align: center;
}

.calculator-slider {
    width: 100%;
    margin-bottom: 2.5rem;
    cursor: pointer;
}

.calculator-value {
    font-size: 1.125rem;
    margin: 0 auto 0.75rem;
    max-width: none;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.calculator-value-large {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 auto 2.5rem;
    max-width: none;
    color: white;
}

.calculator-value-teal {
    color: var(--brand-teal);
    font-weight: 700;
}

.calculator-service-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.calculator-service-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 0.95rem;
    height: 0.95rem;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-content: center;
    margin: 0;
    transition: border-color 0.15s ease;
}

.calculator-service-radio::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--brand-charcoal);
    transform: scale(0);
    transition: transform 0.15s ease;
}

.calculator-service-radio:checked {
    border-color: var(--brand-white);
    background: var(--brand-white);
}

.calculator-service-radio:checked::before {
    transform: scale(1);
}

.calculator-service-label:has(.calculator-service-radio:checked) {
    color: var(--brand-white);
    font-weight: 700;
}

.calculator-service-group {
    display: flex;
    gap: 2.5rem;
    margin-top: 0.75rem;
}


/* 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: 4px;
    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 {
    background-color: var(--color-primary);
    color: var(--brand-white);
    padding: var(--spacing-6);
    margin-bottom: var(--spacing-6);
    text-align: center;
}

.calculator-breakdown {
    background-color: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-5);
    margin-bottom: var(--spacing-4);
}

.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);
}

.calculator-progress-bar {
    background-color: var(--color-bg-secondary);
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
}

.calculator-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.calculator-progress-mechanical {
    background-color: var(--color-success);
}

.calculator-progress-performance {
    background-color: var(--color-info);
}

/* ============================================
   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: 4px;
    overflow: hidden;
    cursor: pointer;
}

.radio-progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.1s;
}

.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);
}

/* ============================================
   Homepage Calculator Layout
   ============================================ */

.homepage-calculator {
    grid-column: span 6;
    padding: 3rem;
    background: var(--brand-charcoal);
    color: white;
    border-inline-end: 1px solid var(--grid-line);
}

[data-theme="dark"] .homepage-calculator {
    background: var(--brand-teal);
}

[data-theme="dark"] .calculator-value-teal {
    color: white;
}

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

.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;
}

.grid-cell-flex-column {
    display: flex;
    flex-direction: column;
}

.grid-cell-highlight {
    background-color: #EAEAE4;
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing-section {
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 3rem);
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--grid-line);
}

.pricing-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.pricing-subtitle {
    margin: 1rem auto 0;
    color: var(--text-color);
    opacity: 0.7;
    max-width: 60ch;
}

.pricing-badge {
    margin-top: 1.5rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    background-color: var(--surface-color);
    border: 1px solid var(--grid-line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(57, 62, 65, 0.08);
}

.pricing-card--featured {
    background-color: var(--brand-white);
    color: var(--brand-charcoal);
    border-color: var(--grid-line);
}

.pricing-card-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--brand-teal);
    color: white;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    white-space: nowrap;
}

.pricing-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.pricing-card--featured .pricing-card-title {
    color: var(--brand-charcoal);
}

.pricing-card-description {
    font-size: 0.9375rem;
    min-height: 3em;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.7;
    max-width: none;
}

.pricing-card--featured .pricing-card-description {
    color: var(--brand-charcoal);
    opacity: 1;
}

.pricing-card-price {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 0.25rem;
    color: var(--text-color);
}

.pricing-card--featured .pricing-card-price {
    color: var(--brand-charcoal);
}

.pricing-card-price--custom {
    font-size: 2.25rem;
}

.pricing-card-price-small {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.6;
    font-weight: 400;
    letter-spacing: 0;
}

.pricing-card--featured .pricing-card-price-small {
    color: rgba(57, 62, 65, 0.6);
    opacity: 1;
}

.pricing-card-tagline {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    color: var(--text-color);
}

.pricing-card--featured .pricing-card-tagline {
    color: rgba(57, 62, 65, 0.8);
}

.pricing-card-tagline--accent {
    color: var(--accent-color) !important;
}

.pricing-card-tagline--teal {
    color: var(--brand-teal) !important;
}

.pricing-card-features {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    flex-grow: 1;
    font-size: 0.9375rem;
}

.pricing-card-feature-item {
    position: relative;
    padding-inline-start: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.pricing-card--featured .pricing-card-feature-item {
    color: var(--brand-charcoal);
}

.pricing-card-feature-item::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-teal);
    font-weight: 700;
    font-size: 1rem;
}

.pricing-card .pricing-card-cta {
    width: 100%;
    text-align: center;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.pricing-card .pricing-card-cta:hover {
    background-color: var(--text-color);
    color: white;
    border-color: var(--text-color);
}

.btn.pricing-card-cta.pricing-card-cta--featured {
    background-color: var(--brand-teal);
    color: white;
    border-color: var(--brand-teal);
}

.btn.pricing-card-cta.pricing-card-cta--featured:hover {
    background-color: var(--brand-charcoal);
    color: white;
    border-color: var(--brand-charcoal);
}

@media (max-width: 900px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

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

.quote {
    font-style: italic;
    margin-bottom: 1rem;
}

.code-window {
    background: var(--brand-charcoal);
    padding: 2rem 2rem 2rem 1rem;
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.code-window-content {
    margin-bottom: 1rem;
    padding-inline-start: 0;
    margin-inline-start: 0;
}

.code-window-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-window-title {
    color: white;
    margin-bottom: 0.5rem;
}

.code-window-subtitle {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* The code window is --brand-charcoal in both themes, so its call to action
   needs a colour that holds on a dark ground. Teal on charcoal, inverting to
   white on hover -- the same pair the homepage final CTA uses. */
.code-window-cta {
    background-color: var(--brand-teal);
    color: white;
    border-color: var(--brand-teal);
}

.code-window-cta:hover {
    background-color: white;
    color: var(--brand-charcoal);
    border-color: white;
}

.help-section {
    background-color: var(--surface-color);
}

.help-content {
    grid-column: span 12;
    text-align: center;
    padding: 4rem 2rem;
}

.help-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.help-contact {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-color);
}

.help-contact-link {
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

.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);
}

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

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

.learn-faq-question {
    padding: 1.5rem clamp(1rem, 3vw, 3rem);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.learn-faq-question::-webkit-details-marker {
    display: none;
}

.learn-faq-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: transform 0.3s var(--transition-smooth);
    flex-shrink: 0;
    margin-inline-start: 1rem;
}

details[open] .learn-faq-question::after {
    transform: rotate(45deg);
}

.learn-faq-answer {
    padding: 0 clamp(1rem, 3vw, 3rem) 1.5rem;
}

.learn-faq-answer p {
    max-width: 70ch;
}

/* ============================================
   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;
    --narrative-surface-old: #262626;
    --narrative-surface-new: #1a2826;
}

/* 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);
    }
}

/* Product interface mock */
[data-theme="dark"] .sidebar {
    background: #2d2d2d;
    border-inline-end-color: #404040;
}

[data-theme="dark"] .sidebar-item {
    background: #404040;
}

[data-theme="dark"] .main-content {
    background: #3a3a3a;
}

[data-theme="dark"] .dash-title {
    background: #e8e8e8;
}

[data-theme="dark"] .chart-area {
    border-bottom-color: #e8e8e8;
}

[data-theme="dark"] .bar {
    background: #e8e8e8;
}

/* Comparison table */
[data-theme="dark"] .analytics-section {
    background-color: var(--bg-color);
}

[data-theme="dark"] .comparison-row {
    border-bottom-color: var(--grid-line);
}

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

/* Grid cell highlight */
[data-theme="dark"] .grid-cell-highlight {
    background-color: #2d2d2d;
}

/* 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);
}

[data-theme="dark"] .calculator-progress-bar {
    background-color: #3a3a3a;
}

/* 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 */
[data-theme="dark"] .learn-faq-question {
    color: #e8e8e8;
}

/* Help section */
[data-theme="dark"] .help-section {
    background-color: #2d2d2d;
}

/* 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 */
[data-theme="dark"] .btn {
    background-color: var(--brand-white);
    color: var(--brand-charcoal);
    border-color: var(--brand-white);
}

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

[data-theme="dark"] .btn-secondary {
    background-color: transparent;
    color: #e8e8e8;
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: var(--brand-white);
    color: var(--brand-charcoal);
    border-color: var(--brand-white);
}

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

[data-theme="dark"] .nav-link-cta:hover,
[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-cta,
[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);
}

/* Hero CTA */
[data-theme="dark"] .hero-cta {
    background-color: var(--brand-white);
    color: var(--brand-charcoal);
}

/* Conversion & signup section inputs stay light on colored bg */
[data-theme="dark"] .conversion-section input,
[data-theme="dark"] .signup-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;
}

.article-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

/* 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); }

/* Legacy: some existing templates reference these. Kept as no-ops. */
.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);
}

/* Legacy alias: old `.timeline-section` references still render something
   sensible if any template still uses them. */
.timeline-section .timeline-year { color: var(--brand-teal); font-weight: 700; }
.timeline-section .timeline-body { line-height: 1.6; }

/* 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 .step-card,
.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,
.grid-section.invert .step-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;
}

/* FAQ ------------------------------------------------------------- */
.faq-section .faq-list {
    margin-top: 1.5rem;
    border-top: 1px solid var(--grid-line);
}

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

.faq-item__question {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 600;
    font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
    letter-spacing: 0.02em;
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question::after {
    content: "+";
    font-weight: 400;
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.25s var(--transition-smooth);
}

.faq-item[open] .faq-item__question::after { content: "−"; }

.faq-item__answer {
    padding: 0 0 1.25rem;
    max-width: 70ch;
    line-height: 1.6;
}

.faq-item__answer p { margin-bottom: 0; }

/* 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__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.cta-band .btn {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-color: var(--bg-color);
}

.cta-band .btn:hover {
    background-color: var(--accent-color);
    color: var(--text-invert-strong);
    border-color: var(--accent-color);
}

.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(--text-color);
    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);
}
.society-hero.invert .btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-invert-strong);
}
.society-hero.invert .btn:hover {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    color: var(--text-color);
}
.society-hero.invert .btn-secondary {
    background-color: transparent;
    color: var(--text-invert);
    border-color: var(--rule-invert-strong);
}
.society-hero.invert .btn-secondary:hover {
    background-color: transparent;
    border-color: var(--brand-teal);
    color: var(--brand-teal);
}

/* 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; }
    .steps-section .step-card { grid-template-columns: 1fr; gap: 0.5rem; }
    .fact-grid__row { grid-template-columns: 1fr; }
    .timeline-section .timeline-year { grid-column: span 12; border-inline-end: 0; padding-bottom: 0; }
    .timeline-section .timeline-body { grid-column: span 12; padding-top: 0.25rem; }
}

@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 {
    width: 1rem;
    height: 1rem;
    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(--accent-color);
    border-color: var(--accent-color);
}

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

/* Button aliases. `.btn-primary` is the default `.btn` look; the rest need
   their own treatment. */
.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-link {
    padding: 0;
    background-color: transparent;
    border-color: transparent;
    color: var(--text-color);
    text-decoration: underline;
}

.btn-link:hover {
    background-color: transparent;
    border-color: transparent;
    color: var(--accent-color);
    transform: none;
    box-shadow: none;
}

.btn-outline-primary,
.btn-outline-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* ============================================
   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; }

/* Hero variants */
.hero-auto-height { min-height: auto; }
.hero-grid-single-row { grid-template-rows: 1fr; }
.hero-title-roomy { padding: 6rem 2rem 4rem; }
.hero-lede-narrow { font-size: 1.25rem; max-width: 50ch; }
.hero-lede-wide { font-size: 1.25rem; max-width: 55ch; }

/* Buttons on the teal conversion band. The :hover halves repeat the base
   values because the inline styles they replace also held on hover. */
.btn.btn-on-brand,
.btn.btn-on-brand:hover {
    background: white;
    border-color: white;
    color: var(--accent-color);
}

.btn.btn-on-brand-outline,
.btn.btn-on-brand-outline:hover {
    background: transparent;
    border-color: white;
    color: white;
}

.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: 4px;
}

.affiliate-cta-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.affiliate-email-sample {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 4px;
    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 #e0e0e0;
    border-radius: 8px;
}

.email-list-choice {
    display: flex;
    align-items: center;
    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); }

.cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Infrastructure */
.code-window-tall { min-height: 300px; }

/* 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: 8px; }
.badge-pill { border-radius: 999px; font-weight: 600; }
.btn-weight-semibold { font-weight: 600; }

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

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

.advance-results {
    background-color: var(--color-bg-primary);
    border-radius: 4px;
    display: none;
}

.calculator-progress-fill--empty { width: 0; }

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

.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);
}

.newsletter-cta-cell {
    background-color: rgba(255, 204, 0, 0.05);
    border-radius: 12px;
}

.newsletter-cta-form { max-width: 520px; margin: 0 auto; }
.newsletter-name-input { min-width: 140px; }
.newsletter-email-input { min-width: 200px; }
.artist-result-thumb { border-radius: 4px; }

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

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