/* Self-hosted brand fonts (2026-07-28). The old Google-Fonts @import had been
   CSP-blocked since 2026-07-22 (style-src has no fonts.googleapis.com), so NO
   visitor got Cormorant/Manrope — the site silently rendered Georgia/system-sans
   fallbacks everywhere except machines with the fonts installed locally.
   These are Google's own variable-font woff2 builds (latin subset), served from
   /fonts under the existing `font-src 'self'` CSP — strict CSP preserved, no
   third-party round trip, no FOUT beyond font-display: swap. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/CormorantGaramond-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/Manrope-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --display-font: "Cormorant Garamond", Georgia, serif;
    --body-font: "Manrope", "Segoe UI", sans-serif;
    --header-offset: 84px;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-pill: 999px;
    --transition-fast: 0.22s ease;
    --transition-slow: 0.78s cubic-bezier(0.2, 0.9, 0.2, 1);
    --bg: #0b1030;
    --text: #f7f5ff;
    --muted: #d3cef5;
    --line: rgba(225, 220, 255, 0.12);
    --line-strong: rgba(255, 227, 167, 0.22);
    --panel: rgba(10, 14, 38, 0.54);
    --panel-solid: rgba(10, 14, 38, 0.84);
    --header-bg: rgba(8, 11, 31, 0.64);
    --accent: #f4c86a;
    --accent-strong: #ffe6ac;
    --button-text: #20190d;
    --shadow-soft: 0 18px 54px rgba(4, 5, 20, 0.32);
    --shadow-deep: 0 34px 86px rgba(4, 5, 20, 0.44);
    --frame-overlay:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        linear-gradient(180deg, rgba(7, 10, 28, 0.02), rgba(7, 10, 28, 0));
    --kk-bg-top: #11173f;
    --kk-bg-bottom: #06091c;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    color: var(--text);
    font-family: var(--body-font);
    line-height: 1.6;
    background: var(--kk-bg-bottom);
}

/* ---- Generative "harmonic field": the circle of fifths as ambient light ---- */
html::before,
html::after,
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

/* base cosmic gradient */
html::before {
    z-index: -4;
    background: radial-gradient(135% 100% at 50% -12%, var(--kk-bg-top) 0%, #0a0e2c 40%, var(--kk-bg-bottom) 100%);
}

/* slowly rotating circle-of-fifths colour wheel, blurred into a soft aurora */
html::after {
    z-index: -3;
    background:
        conic-gradient(from 0deg at 50% 36%,
            rgba(244, 200, 106, 0.62),
            rgba(232, 138, 178, 0.58),
            rgba(176, 120, 240, 0.58),
            rgba(110, 138, 240, 0.56),
            rgba(86, 206, 198, 0.56),
            rgba(150, 220, 130, 0.56),
            rgba(244, 222, 120, 0.58),
            rgba(244, 160, 92, 0.56),
            rgba(232, 110, 150, 0.56),
            rgba(176, 120, 240, 0.58),
            rgba(110, 150, 240, 0.56),
            rgba(244, 200, 106, 0.62));
    -webkit-mask-image: radial-gradient(closest-side at 50% 36%, #000 22%, rgba(0, 0, 0, 0.5) 50%, transparent 74%);
    mask-image: radial-gradient(closest-side at 50% 36%, #000 22%, rgba(0, 0, 0, 0.5) 50%, transparent 74%);
    filter: blur(54px) saturate(132%);
    opacity: 0.5;
    transform-origin: 50% 36%;
    will-change: transform;
}

/* slow bubbly colour blobs, lava-lamp style */
body::before {
    z-index: -2;
    background-repeat: no-repeat;
    background-image:
        radial-gradient(circle, rgba(244, 200, 106, 0.26) 0%, transparent 58%),
        radial-gradient(circle, rgba(170, 116, 244, 0.30) 0%, transparent 58%),
        radial-gradient(circle, rgba(78, 162, 222, 0.24) 0%, transparent 58%),
        radial-gradient(circle, rgba(232, 124, 170, 0.22) 0%, transparent 58%),
        radial-gradient(circle, rgba(120, 214, 192, 0.22) 0%, transparent 58%);
    background-size: 60vw 60vw, 72vw 72vw, 54vw 54vw, 46vw 46vw, 50vw 50vw;
    background-position: 12% 24%, 86% 18%, 70% 86%, 34% 62%, 56% 8%;
    will-change: background-position, transform;
}

/* readability veil + edge vignette */
body::after {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(6, 9, 26, 0.06), rgba(6, 9, 26, 0.40) 52%, rgba(5, 7, 20, 0.80)),
        radial-gradient(130% 90% at 50% 4%, transparent 38%, rgba(5, 7, 18, 0.55));
}

@media (prefers-reduced-motion: no-preference) {
    html::after {
        animation: kkWheelSpin 150s linear infinite;
    }

    body::before {
        animation:
            kkBubbles 42s ease-in-out infinite,
            kkBreathe 20s ease-in-out infinite;
    }
}

@keyframes kkWheelSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.07);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.07);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes kkBubbles {
    0%, 100% {
        background-position: 12% 24%, 86% 18%, 70% 86%, 34% 62%, 56% 8%;
    }
    50% {
        background-position: 20% 33%, 77% 28%, 63% 77%, 27% 70%, 64% 16%;
    }
}

@keyframes kkBreathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

body,
button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
.brand-mark {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.02;
}

a {
    color: inherit;
    text-decoration-color: rgba(255, 255, 255, 0.14);
    text-underline-offset: 0.18em;
}

img,
video,
iframe {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1440px, 94vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    background: var(--header-bg);
    backdrop-filter: blur(20px);
}

.header-content {
    min-height: var(--header-offset);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 0.85rem 0;
}

.brand-mark {
    font-size: clamp(1.5rem, 1.18rem + 1.1vw, 2.24rem);
    text-decoration: none;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.site-nav a {
    border-radius: var(--radius-pill);
    padding: 0.52rem 0.86rem;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--muted);
    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    outline: none;
}

main {
    padding-bottom: 3rem;
}

.hero-shell {
    position: relative;
    padding: calc(var(--header-offset) + 1.2rem) 0 2.8rem;
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    width: min(1560px, 96vw);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(1.6rem, 3vw, 3.2rem);
    align-items: center;
}

.hero-copy {
    max-width: 35rem;
}

.hero-stage {
    width: 100%;
    max-width: 1240px;
    justify-self: end;
}

.hero-media-frame {
    aspect-ratio: 21 / 7.6;
}

.hero-video {
    transform: scale(1.08);
    transform-origin: center;
}

.eyebrow,
.section-index {
    margin: 0 0 0.75rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 1.95rem + 3.1vw, 4.85rem);
    line-height: 0.96;
}

.hero-lead,
.section-subcopy,
.showcase-copy p,
.pricing-card p,
.checkout-intro,
.checkout-hint,
.checkout-selection,
.checkout-status,
.site-footer p {
    margin: 0;
    color: var(--muted);
}

.hero-lead {
    margin-top: 1rem;
    font-size: clamp(1.02rem, 0.92rem + 0.52vw, 1.24rem);
    max-width: 33rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.action-button,
.pricing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 1.2rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.action-button.primary,
.pricing-cta {
    color: var(--button-text);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 14px 32px rgba(193, 125, 41, 0.24);
}

.action-button.ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.action-button:hover,
.action-button:focus-visible,
.pricing-cta:hover,
.pricing-cta:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.feature-points {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    display: grid;
    gap: 0.7rem;
}

.feature-points li {
    position: relative;
    padding-left: 1.55rem;
    color: var(--text);
}

.feature-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.78rem;
    width: 0.88rem;
    height: 1px;
    background: var(--line-strong);
}

.feature-points.compact {
    margin-top: 1rem;
}

.showcase-block {
    position: relative;
    padding: clamp(2.8rem, 5vw, 5rem) 0;
}

.showcase-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1320px, 92vw);
    height: 1px;
    transform: translateX(-50%);
    background: var(--line);
}

.showcase-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1.5fr);
    gap: clamp(1.4rem, 3.2vw, 3rem);
    align-items: center;
}

.showcase-copy {
    max-width: 22rem;
}

.showcase-copy h2,
.section-head h2,
.checkout-shell h2 {
    font-size: clamp(2.1rem, 1.42rem + 2vw, 3.4rem);
}

.showcase-copy p {
    margin-top: 0.92rem;
    font-size: 1.02rem;
}

.showcase-media {
    width: 100%;
}

.showcase-block.is-reverse .showcase-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
}

.media-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--line-strong);
    background:
        var(--frame-overlay),
        linear-gradient(155deg, rgba(8, 12, 24, 0.78), rgba(12, 18, 44, 0.52));
    box-shadow: var(--shadow-soft);
    aspect-ratio: 16 / 9;
}

.media-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.media-frame video,
.media-frame iframe {
    width: 100%;
    height: 100%;
}

.media-frame video {
    object-fit: cover;
}

.media-frame iframe {
    border: 0;
}

.pricing-premium {
    position: relative;
    padding: clamp(3rem, 5vw, 5rem) 0 1.4rem;
}

.pricing-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1320px, 92vw);
    height: 1px;
    transform: translateX(-50%);
    background: var(--line);
}

.pricing-premium > .container,
.checkout-shell .container,
.site-footer .container {
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-strong);
    background: linear-gradient(155deg, var(--panel-solid), var(--panel));
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(18px);
}

.pricing-premium > .container {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.2rem);
    border-color: rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(16, 20, 60, 0.68), rgba(8, 11, 31, 0.56)),
        linear-gradient(155deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    box-shadow:
        0 34px 90px rgba(4, 5, 20, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pricing-premium > .container::before,
.pricing-premium > .container::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
}

.pricing-premium > .container::before {
    top: -12%;
    left: 50%;
    width: min(640px, 58vw);
    height: 240px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(244, 200, 106, 0.14), transparent 72%);
    filter: blur(6px);
}

.pricing-premium > .container::after {
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.section-head {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.4rem;
}

.pricing-head {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto;
    justify-items: center;
}

.pricing-head .eyebrow {
    margin-bottom: 0.45rem;
}

.pricing-head h2 {
    max-width: 12ch;
}

.pricing-head .section-subcopy {
    max-width: 36rem;
    font-size: 1.02rem;
}

.pricing-head::after {
    content: "";
    width: min(220px, 28vw);
    height: 1px;
    margin-top: 0.9rem;
    background: linear-gradient(90deg, transparent, rgba(255, 226, 169, 0.75), transparent);
}

.section-subcopy {
    font-size: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
    margin-top: 2rem;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: grid;
    align-content: start;
    justify-items: center;
    text-align: center;
    min-height: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        linear-gradient(155deg, rgba(24, 30, 78, 0.76), rgba(10, 14, 38, 0.68));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 44px rgba(4, 5, 20, 0.18);
    padding: 1.95rem 1.35rem 1.5rem;
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 76%;
    height: 42%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164, 170, 255, 0.15), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.pricing-card:nth-child(3)::before {
    background: radial-gradient(circle, rgba(173, 143, 255, 0.14), transparent 70%);
}

.pricing-card:hover,
.pricing-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(255, 226, 169, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 24px 58px rgba(4, 5, 20, 0.24);
}

.pricing-card h3 {
    font-size: clamp(1.8rem, 1.45rem + 0.8vw, 2.2rem);
    letter-spacing: -0.03em;
}

.price {
    margin: 0.7rem 0 0;
    font-family: var(--display-font);
    font-size: clamp(2.9rem, 2.4rem + 1.1vw, 3.7rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.price span {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.plan-note,
.pay-note,
.save-note {
    margin-top: 0.48rem;
    font-size: 0.95rem;
}

.save-note {
    color: var(--accent);
    font-weight: 700;
}

.pricing-cta {
    min-width: 12.4rem;
    margin-top: 1.1rem;
}

.plan-note {
    margin-top: 1rem;
}

.pay-note {
    color: rgba(241, 239, 255, 0.82);
}

.best-value-badge {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-pill);
    padding: 0.38rem 0.95rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: var(--button-text);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(193, 125, 41, 0.24);
}

.pricing-card.best-value {
    transform: translateY(-10px);
    border-color: rgba(255, 226, 169, 0.42);
    background:
        linear-gradient(180deg, rgba(255, 239, 202, 0.08), rgba(255, 255, 255, 0.02)),
        linear-gradient(155deg, rgba(36, 29, 72, 0.84), rgba(11, 15, 42, 0.74));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 64px rgba(4, 5, 20, 0.28);
    padding-top: 2.85rem;
}

.pricing-card.best-value::before {
    width: 88%;
    height: 48%;
    background: radial-gradient(circle, rgba(244, 200, 106, 0.26), transparent 72%);
}

.pricing-card.best-value:hover,
.pricing-card.best-value:focus-within {
    transform: translateY(-14px);
}

.pricing-actions {
    justify-content: center;
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content-section {
    padding: clamp(2.4rem, 4vw, 4rem) 0 4rem;
}

.checkout-main {
    padding-top: 0.6rem;
}

.checkout-shell .container {
    padding: clamp(1.5rem, 3vw, 2.8rem);
}

.checkout-grid {
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 1rem;
}

.plan-picker {
    display: grid;
    gap: 0.8rem;
}

.plan-option,
.paypal-panel,
.checkout-token-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.plan-option {
    appearance: none;
    width: 100%;
    text-align: left;
    color: var(--text);
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        background-color var(--transition-fast);
}

.plan-option:hover,
.plan-option:focus-visible {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    outline: none;
}

.plan-option.active {
    border-color: rgba(255, 226, 169, 0.42);
    background: linear-gradient(155deg, rgba(244, 200, 106, 0.16), rgba(255, 255, 255, 0.06));
}

.plan-name {
    display: block;
    font-weight: 800;
}

.plan-amount {
    display: block;
    margin-top: 0.28rem;
    color: var(--muted);
}

.paypal-panel {
    padding: 1.2rem;
    min-height: 100%;
}

.checkout-selection,
.checkout-hint {
    margin-bottom: 0.9rem;
}

#paypal-button-slot {
    min-height: 46px;
}

.checkout-status {
    min-height: 1.3rem;
}

.checkout-status.success {
    color: #77d997;
}

.checkout-status.error {
    color: #ff8d8d;
}

.checkout-token-card {
    position: relative;
    overflow: hidden;
    margin-top: 1.2rem;
}

.checkout-token-bg {
    position: absolute;
    inset: 0;
    opacity: 0.72;
}

.checkout-token-bg iframe {
    width: 100%;
    height: 100%;
    border: 0;
    transform: scale(1.08);
}

.checkout-token-content {
    position: relative;
    z-index: 1;
    padding: 1.35rem;
    display: grid;
    gap: 0.9rem;
    background: linear-gradient(155deg, rgba(8, 12, 24, 0.18), rgba(8, 12, 24, 0.58));
}

.checkout-token-row,
.checkout-email-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkout-token-code {
    flex: 1 1 320px;
    overflow-wrap: anywhere;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.18);
    color: var(--text);
}

.checkout-email-wrap {
    display: grid;
    gap: 0.6rem;
}

.checkout-email-label {
    font-weight: 700;
}

.checkout-email-input {
    flex: 1 1 260px;
    min-height: 46px;
    padding: 0 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.checkout-email-input::placeholder {
    color: var(--muted);
}

/* ============================================================
   2026-06 visual refresh: hero aurora, gold headline, button
   shimmer, animated accents, richer pricing. Additive and
   self-contained: deleting this block restores the prior look.
   ============================================================ */

@keyframes kkAuroraDrift {
    0%   { transform: translate(-52%, 0) scale(1); opacity: 0.5; }
    50%  { transform: translate(-47%, -2.5%) scale(1.1); opacity: 0.85; }
    100% { transform: translate(-52%, 0) scale(1); opacity: 0.5; }
}

@keyframes kkShimmer {
    0%   { transform: translateX(-130%) skewX(-12deg); }
    100% { transform: translateX(360%) skewX(-12deg); }
}

@keyframes kkDividerPulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

/* Hero aurora glow behind the headline */
.hero-shell {
    overflow: hidden;
}

.hero-shell::before {
    content: "";
    position: absolute;
    top: -16%;
    left: 50%;
    width: min(1120px, 94vw);
    height: 460px;
    transform: translate(-52%, 0);
    background:
        radial-gradient(closest-side at 32% 42%, rgba(244, 200, 106, 0.20), transparent 70%),
        radial-gradient(closest-side at 70% 56%, rgba(118, 108, 240, 0.22), transparent 72%);
    filter: blur(26px);
    pointer-events: none;
    z-index: 0;
}

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

/* Gold-gradient headline (falls back to solid --text on older engines) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-copy h1 {
        background: linear-gradient(104deg, #ffffff 16%, var(--accent-strong) 62%, var(--accent) 98%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

/* Section-index accent line ("01 / Track Your Progress") */
.section-index {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.section-index::before {
    content: "";
    width: 1.8rem;
    height: 1px;
    flex: none;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* Light sweep across primary buttons on hover */
.action-button.primary,
.pricing-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.action-button.primary::after,
.pricing-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 34%;
    height: 100%;
    transform: translateX(-130%) skewX(-12deg);
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Richer pricing cards */
.price-sub {
    margin-top: 0.6rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.price-was {
    margin-right: 0.4rem;
    color: rgba(211, 206, 245, 0.58);
    text-decoration: line-through;
}

.save-note.alt {
    color: var(--accent-strong);
}

.pricing-assurances {
    list-style: none;
    margin: 1.9rem auto 0;
    padding: 1.2rem 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.7rem;
    max-width: 62rem;
}

.pricing-assurances li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.pricing-assurances li::before {
    content: "";
    width: 0.82rem;
    height: 0.82rem;
    flex: none;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, var(--accent-strong), var(--accent));
    box-shadow: 0 0 0 3px rgba(244, 200, 106, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
    .hero-shell::before {
        animation: kkAuroraDrift 18s ease-in-out infinite;
    }

    .action-button.primary:hover::after,
    .action-button.primary:focus-visible::after,
    .pricing-cta:hover::after,
    .pricing-cta:focus-visible::after {
        animation: kkShimmer 0.95s ease-out;
    }

    .pricing-head::after {
        animation: kkDividerPulse 4.5s ease-in-out infinite;
    }
}

.checkout-email-input:focus-visible {
    outline: 2px solid rgba(255, 226, 169, 0.42);
    outline-offset: 2px;
}

.site-footer {
    padding: 0 0 2.2rem;
}

.site-footer .container {
    padding: 1.15rem 1.4rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem 1.4rem;
}

.footer-content p {
    font-size: 0.96rem;
}

.footer-note {
    color: rgba(211, 206, 245, 0.68);
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (max-width: 1080px) {
    :root {
        --page-image: image-set(
            url("finalimages/4x3_4K.webp") type("image/webp") 1x,
            url("finalimages/4x3_4K.jpg") type("image/jpeg") 1x
        );
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.best-value,
    .pricing-card.best-value:hover,
    .pricing-card.best-value:focus-within {
        transform: none;
    }
}

@media (max-width: 960px) {
    :root {
        --header-offset: 0px;
    }

    .site-header {
        position: static;
    }

    .header-content,
    .header-actions {
        align-items: stretch;
    }

    .header-content,
    .header-actions {
        flex-direction: column;
    }

    .header-content {
        gap: 0.8rem;
        padding: 0.8rem 0 0.7rem;
    }

    .site-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav a {
        white-space: nowrap;
    }

    .hero-shell {
        padding-top: 2rem;
    }

    .hero-grid,
    .showcase-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage,
    .hero-copy,
    .showcase-copy,
    .showcase-media {
        max-width: none;
        justify-self: stretch;
    }

    .hero-copy {
        order: 1;
    }

    .hero-stage {
        order: 2;
    }

    .showcase-copy {
        order: 1;
    }

    .showcase-media {
        order: 2;
    }

    .hero-media-frame {
        aspect-ratio: 16 / 9;
    }

    .pricing-head h2 {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(1320px, 92vw);
    }

    .brand-mark {
        font-size: clamp(1.28rem, 5vw, 1.7rem);
        white-space: normal;
        line-height: 1;
    }

    .eyebrow,
    .section-index {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
        line-height: 1.35;
    }

    .hero-shell {
        padding: 1.6rem 0 2rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.4rem, 10vw, 3.7rem);
        line-height: 0.94;
    }

    .hero-lead {
        max-width: none;
        font-size: 1rem;
    }

    .feature-points li {
        padding-left: 1.3rem;
        font-size: 0.98rem;
    }

    .feature-points li::before {
        width: 0.72rem;
    }

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

    .hero-actions .action-button {
        width: 100%;
    }

    .pricing-premium > .container,
    .checkout-shell .container,
    .site-footer .container {
        border-radius: 24px;
    }

    .pricing-premium > .container {
        padding: 1.5rem 1.15rem 1.35rem;
    }

    .pricing-head::after {
        width: min(180px, 42vw);
    }

    .pricing-card {
        padding-inline: 1.1rem;
    }

    .pricing-cta {
        width: 100%;
        min-width: 0;
    }

    .showcase-block {
        padding: 2.4rem 0;
    }

    .showcase-copy h2,
    .section-head h2,
    .checkout-shell h2 {
        font-size: clamp(1.9rem, 7vw, 2.7rem);
    }

    .showcase-copy p {
        font-size: 0.98rem;
    }

    .hero-video {
        transform: scale(1.02);
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content p {
        max-width: 34ch;
    }
}

@media (max-width: 700px) {
    :root {
        --page-image: image-set(
            url("finalimages/9x16_mobile_4K.webp") type("image/webp") 1x,
            url("finalimages/9x16_mobile_4K.jpg") type("image/jpeg") 1x
        );
    }

    body::before {
        background-position: center top;
    }
}

@media (max-width: 520px) {
    .site-nav {
        gap: 0.35rem;
        margin-inline: -4vw;
        padding-inline: 4vw;
    }

    .site-nav a {
        padding: 0.48rem 0.72rem;
        font-size: 0.92rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.08rem, 12vw, 3.2rem);
    }

    .hero-media-frame {
        aspect-ratio: 4 / 3;
    }

    .showcase-block {
        padding: 2rem 0;
    }

    .pricing-premium > .container,
    .checkout-shell .container,
    .site-footer .container {
        border-radius: 20px;
    }

    .pricing-premium > .container,
    .checkout-shell .container {
        padding: 1.25rem 0.95rem 1.15rem;
    }

    .pricing-card {
        padding: 1.25rem 0.9rem 1.1rem;
    }

    .pricing-card.best-value {
        padding-top: 2.2rem;
    }

    .checkout-token-row,
    .checkout-email-row {
        flex-direction: column;
    }

    .checkout-token-code,
    .checkout-email-input,
    #copy-token,
    #email-token {
        width: 100%;
    }
}

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

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

/* ============================================================
   2026-06 site upgrade: skip link, proof band, FAQ, final CTA.
   Additive and self-contained.
   ============================================================ */

.skip-link {
    position: fixed;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 2000;
    padding: 0.6rem 1.05rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: var(--button-text);
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-180%);
    transition: transform var(--transition-fast);
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: none;
}

.proof-band {
    position: relative;
    padding: clamp(1.5rem, 2.6vw, 2.4rem) 0;
    border-bottom: 1px solid var(--line);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    text-align: center;
}

.proof-stat {
    display: grid;
    gap: 0.32rem;
    align-content: start;
}

.proof-num {
    font-family: var(--display-font);
    font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.65rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--accent-strong);
}

.proof-label {
    font-size: 0.92rem;
    color: var(--muted);
}

.proof-platforms {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.85rem;
}

.os-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-family: var(--display-font);
    font-size: clamp(1.05rem, 0.8rem + 0.7vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--accent-strong);
    white-space: nowrap;
}

.os-ico {
    width: 1em;
    height: 1em;
    flex: none;
}

.footer-platforms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 1.1rem;
    width: 100%;
    margin: 0;
}

.footer-platforms .os-badge {
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 600;
    color: rgba(211, 206, 245, 0.82);
}

.faq-section {
    padding: clamp(2.6rem, 4.5vw, 4.6rem) 0 1rem;
}

.faq-head {
    text-align: center;
    justify-items: center;
    margin-bottom: 1.6rem;
}

.faq-list {
    max-width: 52rem;
    margin: 0 auto;
    display: grid;
    gap: 0.7rem;
}

.faq-item {
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast);
}

.faq-item[open] {
    border-color: var(--line-strong);
    background: linear-gradient(150deg, rgba(244, 200, 106, 0.08), rgba(255, 255, 255, 0.03));
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.3rem;
    font-weight: 700;
    color: var(--text);
}

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

.faq-item summary::after {
    content: "+";
    flex: none;
    font-family: var(--body-font);
    font-size: 1.45rem;
    line-height: 1;
    color: var(--accent);
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 0;
    padding: 0 1.3rem 1.15rem;
    color: var(--muted);
}

.final-cta {
    position: relative;
    padding: clamp(2.6rem, 5vw, 4.6rem) 0 1rem;
}

.final-cta-inner {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 0.85rem;
}

.final-cta .hero-actions {
    justify-content: center;
    margin-top: 0.7rem;
}

@media (max-width: 720px) {
    .proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
    }
}

/* ============================================================
   Institution pricing: theatre seat calculator + cart.
   ============================================================ */

.inst-shell .container {
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-strong);
    background: linear-gradient(155deg, var(--panel-solid), var(--panel));
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(18px);
    padding: clamp(1.5rem, 3vw, 2.8rem);
}

.inst-head {
    text-align: center;
    justify-items: center;
    max-width: 48rem;
    margin: 0 auto 1.8rem;
}

.inst-head .section-subcopy {
    max-width: 40rem;
}

.inst-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.inst-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.inst-presets-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-right: 0.2rem;
}

.preset-button {
    appearance: none;
    cursor: pointer;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.5rem 0.95rem;
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        background-color var(--transition-fast);
}

.preset-button:hover,
.preset-button:focus-visible {
    transform: translateY(-1px);
    border-color: var(--accent-strong);
    background: rgba(244, 200, 106, 0.14);
    outline: none;
}

.preset-button.ghost {
    border-style: dashed;
    color: var(--muted);
}

.preset-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.preset-count input {
    width: 5.2rem;
    min-height: 40px;
    padding: 0 0.7rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-weight: 700;
}

.theatre {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(8, 12, 28, 0.55), rgba(14, 18, 46, 0.4));
    padding: 1.4rem 1rem 1.1rem;
}

.stage {
    width: min(58%, 26rem);
    margin: 0 auto 1.5rem;
    padding: 0.5rem 1rem 0.6rem;
    text-align: center;
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0 0 48% 48% / 0 0 100% 100%;
    background: linear-gradient(180deg, rgba(244, 200, 106, 0.22), transparent);
}

.theatre-scroll {
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: thin;
}

.theatre-rows {
    display: grid;
    gap: 7px;
    justify-items: center;
    min-width: min-content;
}

.theatre-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.row-label {
    width: 1rem;
    flex: none;
    font-size: 0.68rem;
    text-align: center;
    color: var(--muted);
    opacity: 0.7;
}

.row-seats {
    display: flex;
    gap: 5px;
}

.seat {
    width: 22px;
    height: 20px;
    flex: none;
    padding: 0;
    border-radius: 5px 5px 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.seat:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.14);
}

.seat:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 1px;
}

.seat.selected {
    border-color: var(--accent-strong);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 5px 14px rgba(193, 125, 41, 0.32);
}

.theatre-hint {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.86rem;
    color: var(--muted);
}

.tier-table-wrap {
    margin-top: 1.5rem;
}

.tier-title {
    font-size: 1.1rem;
    margin: 0 0 0.7rem;
}

.tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.tier-table th,
.tier-table td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--line);
}

.tier-table th {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.tier-table td:nth-child(2) {
    color: var(--accent-strong);
    font-weight: 700;
}

.tier-table tr.active td {
    background: rgba(244, 200, 106, 0.12);
}

.tier-table tr.active td:first-child {
    box-shadow: inset 3px 0 0 var(--accent);
}

.cart-panel {
    position: sticky;
    top: calc(var(--header-offset) + 1rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background: linear-gradient(160deg, rgba(36, 29, 72, 0.7), rgba(11, 15, 42, 0.74));
    box-shadow: var(--shadow-soft);
    padding: 1.5rem 1.4rem;
}

.cart-eyebrow {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.cart-total {
    margin: 0.4rem 0 0;
    font-family: var(--display-font);
    font-size: clamp(2.4rem, 2rem + 1.6vw, 3.2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--accent-strong);
}

.cart-total-sub {
    margin: 0.35rem 0 1.1rem;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.cart-lines {
    margin: 0;
    display: grid;
    gap: 0.55rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.cart-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.cart-line dt {
    color: var(--muted);
    font-size: 0.92rem;
}

.cart-line dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.cart-line-saving dd {
    color: var(--accent);
}

.cart-incentive {
    margin: 1rem 0 0;
    min-height: 1.2rem;
    font-size: 0.9rem;
    color: var(--accent-strong);
}

.cart-quote {
    width: 100%;
    margin-top: 1rem;
}

.cart-quote:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.cart-note {
    margin: 0.9rem 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--muted);
}

/* Gate B4 — the pre-payment platform note.
   Deliberately calm rather than alarming: this is a school making an informed choice,
   not an error. Loud enough not to be skimmed past, quiet enough not to kill a good
   Windows sale. Disappears entirely once INSTITUTION_MAC_SUPPORTED is true. */
.inst-platform-note {
    margin: 1.1rem 0 0;
    padding: 0.95rem 1.05rem;
    border: 1px solid rgba(232, 197, 107, 0.45);
    border-left: 3px solid var(--accent, #e8c56b);
    border-radius: 10px;
    background: rgba(232, 197, 107, 0.07);
}

.inst-platform-note[hidden] {
    display: none;
}

.inst-platform-note-title {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.inst-platform-note-body {
    margin: 0 0 0.7rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--muted);
}

.inst-platform-ack {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.84rem;
    line-height: 1.45;
    cursor: pointer;
}

.inst-platform-ack input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
    cursor: pointer;
}

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

    .cart-panel {
        position: static;
    }
}

.pricing-inst-note {
    margin: 1.4rem auto 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--muted);
}

.pricing-inst-note a {
    color: var(--accent-strong);
    font-weight: 700;
    text-underline-offset: 0.2em;
}

/* --- Mobile hamburger nav (toggle injected by nav.js) --- */
.nav-toggle {
    display: none;
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 44px;
    flex: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--text);
    align-items: center;
    justify-content: center;
}

.nav-toggle .nav-toggle-bars,
.nav-toggle .nav-toggle-bars::before,
.nav-toggle .nav-toggle-bars::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
        transform var(--transition-fast),
        background-color var(--transition-fast);
}

.nav-toggle .nav-toggle-bars {
    position: relative;
}

.nav-toggle .nav-toggle-bars::before {
    position: absolute;
    left: 0;
    top: -6px;
}

.nav-toggle .nav-toggle-bars::after {
    position: absolute;
    left: 0;
    top: 6px;
}

.site-header.nav-open .nav-toggle .nav-toggle-bars {
    background: transparent;
}

.site-header.nav-open .nav-toggle .nav-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle .nav-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-flex;
    }

    /* Keep brand + hamburger on one row; nav becomes a collapsible drawer. */
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .header-actions {
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        transition:
            max-height var(--transition),
            opacity var(--transition-fast);
    }

    .site-header.nav-open .header-actions {
        max-height: 75vh;
        opacity: 1;
        pointer-events: auto;
    }

    /* Override the horizontal-scroller treatment: stack links vertically. */
    .site-nav {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        overflow-x: visible;
        gap: 0.2rem;
        padding: 0.35rem 0 0.6rem;
    }

    .site-nav a {
        padding: 0.72rem 0.9rem;
    }
}

/* Liquify WebGL background (background.js) replaces the static wheel + blob smear.
   The base gradient (html::before) and the readability veil (body::after) stay
   as the no-WebGL fallback; the rotating wheel and lava blobs are retired. */
html::after,
body::before {
    display: none;
}

/* Cinematic hero with baked-blur video and an animated fallback. */
.hero-shell {
    padding: calc(var(--header-offset) + 1rem) 0 3rem;
}

.hero-inner {
    width: min(1640px, 96vw);
}

.hero-cinematic {
    position: relative;
    min-height: clamp(430px, 35vw, 610px);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--line-strong);
    border-radius: clamp(24px, 2.4vw, 38px);
    /* Solid dark only. The old hero-fallback.webp still frame used to sit here and bled
       through wherever the video did not fully cover - that was the "old video on top". Gone. */
    background: #080c24;
    box-shadow: var(--shadow-deep);
}

.hero-stage {
    position: absolute;
    inset: 0;
    /* Explicit 100% against the (reliably-sized) .hero-cinematic instead of leaning on
       left:0+right:0 stretch - some engines fail to stretch an inset:0 box horizontally,
       which collapsed the frame to 0 width and hid the video. */
    width: 100%;
    height: 100%;
    max-width: none;
    pointer-events: none;
    z-index: 0;
}

.hero-media-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: scale(1.025);
}

.hero-media-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(5, 8, 27, 0.66) 0%, rgba(5, 8, 27, 0.42) 48%, rgba(5, 8, 27, 0.24) 100%),
        linear-gradient(180deg, rgba(4, 7, 23, 0.10), rgba(4, 7, 23, 0.46));
    pointer-events: none;
}

.hero-media-frame::after {
    z-index: 3;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 110px rgba(4, 6, 21, 0.72);
}

.media-frame .hero-video {
    /* Cloudflare Stream iframe of the owner's full-quality render (id 9f0677f7...), hosted
       on Stream (no 25 MiB Pages limit) - full length, full clarity, full opacity, no blur.

       coverHeroVideo() in index.js sets exact px width/height so the 16:9 player object-fit:
       COVERS the frame at ANY aspect (wide crops top/bottom, tall crops left/right). This CSS
       is the no-JS fallback: on a wide banner width:100% + 16:9 overflows the height and the
       frame clips top/bottom (real cover); min-height:100% keeps it filled if slightly tall. */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-width: none;
    border: 0;
    filter: none;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

.hero-audio-toggle {
    position: absolute;
    right: clamp(1rem, 2vw, 1.8rem);
    bottom: clamp(1rem, 2vw, 1.8rem);
    z-index: 6;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(244, 200, 106, 0.52);
    border-radius: 50%;
    color: var(--text);
    background: rgba(7, 10, 31, 0.72);
    box-shadow: 0 8px 28px rgba(2, 4, 18, 0.34);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-audio-toggle:hover,
.hero-audio-toggle:focus-visible {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: rgba(16, 22, 55, 0.9);
    outline: none;
}

.hero-audio-toggle svg {
    width: 23px;
    height: 23px;
    overflow: visible;
    fill: currentColor;
}

.hero-audio-toggle .waves,
.hero-audio-toggle .slash {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-audio-toggle .waves {
    opacity: 0;
}

.hero-audio-toggle.is-audible {
    color: var(--accent);
    background: rgba(20, 26, 57, 0.92);
}

.hero-audio-toggle.is-audible .waves {
    opacity: 1;
}

.hero-audio-toggle.is-audible .slash {
    opacity: 0;
}

.hero-title-overlay {
    position: relative;
    z-index: 4;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5.2vw, 5.5rem);
}

/* Sleek legibility scrim: a soft dark wash with a slight backdrop-blur sitting behind the
   headline, feathered to nothing toward the open side so the video stays crisp there. This
   is the "darkish shading + slight blur" - it blurs only the text zone, never the whole video. */
.hero-title-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    /* Width-bounded so the blur physically cannot reach the video's focal area even if a
       browser ignores the mask below (that failure mode is the whole-video "hentai blur"). */
    width: min(70%, 62rem);
    z-index: -1;
    background: linear-gradient(
        104deg,
        rgba(4, 6, 20, 0.74) 0%,
        rgba(4, 6, 20, 0.54) 40%,
        rgba(4, 6, 20, 0.2) 74%,
        rgba(4, 6, 20, 0) 100%
    );
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    /* Feather the blur + wash to nothing on the right so there is no seam - sleek edge. */
    -webkit-mask-image: linear-gradient(104deg, #000 0%, #000 46%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(104deg, #000 0%, #000 46%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.hero-title-overlay h1 {
    text-shadow: 0 2px 34px rgba(2, 4, 18, 0.72), 0 1px 4px rgba(2, 4, 18, 0.55);
}

.hero-title-overlay .eyebrow {
    max-width: 58rem;
    margin-bottom: clamp(0.8rem, 1.5vw, 1.35rem);
    text-shadow: 0 2px 22px rgba(2, 4, 18, 0.82), 0 1px 3px rgba(2, 4, 18, 0.6);
}

.hero-title-overlay h1 {
    max-width: 12ch;
    padding: 0 0 0.16em;
    font-size: clamp(4.4rem, 9.3vw, 9.6rem);
    line-height: 0.96;
    text-wrap: balance;
    text-shadow: 0 12px 54px rgba(2, 4, 18, 0.66);
}

.hero-copy {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(480px, 1.25fr);
    gap: clamp(1.4rem, 4vw, 4rem);
    align-items: start;
    padding: clamp(1.5rem, 3vw, 2.6rem) clamp(0.2rem, 1.8vw, 1.5rem) 0;
}

.hero-copy .hero-lead {
    max-width: 42rem;
    margin-top: 0;
    font-size: clamp(1.05rem, 0.94rem + 0.5vw, 1.25rem);
}

.hero-copy .feature-points {
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1.4rem;
}

.hero-copy .hero-actions {
    grid-column: 1 / -1;
    margin-top: -0.15rem;
}

@media (max-width: 960px) {
    .hero-shell {
        padding-top: 1.4rem;
    }

    .hero-cinematic {
        min-height: clamp(400px, 66vw, 570px);
    }

    .hero-title-overlay h1 {
        max-width: 10ch;
        font-size: clamp(3.5rem, 13vw, 7rem);
        line-height: 0.98;
    }

    .hero-copy {
        grid-template-columns: 1fr;
    }

    .hero-copy .feature-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-copy .hero-actions {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .hero-inner {
        width: min(1320px, 92vw);
    }

    .hero-cinematic {
        min-height: clamp(390px, 96vw, 560px);
        border-radius: 24px;
    }

    /* Hero-video cover is handled globally by the container-query rule (works at every
       aspect), so no phone-specific override is needed here anymore. */

    .hero-title-overlay {
        padding: clamp(1.5rem, 7vw, 3rem);
    }

    .hero-title-overlay h1 {
        max-width: 9ch;
        padding-bottom: 0.18em;
        font-size: clamp(3.15rem, 16vw, 5.25rem);
        line-height: 1;
    }

    .hero-copy {
        padding-top: 1.4rem;
    }

    .hero-copy .feature-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .hero-cinematic {
        min-height: 400px;
    }

    .hero-title-overlay h1 {
        font-size: clamp(2.8rem, 16vw, 4.25rem);
    }
}

/* Gate D2 — the lost-code recovery block on student.html.
   Collapsed by default: it is the exception path, and the common case is a customer
   who has their code. Open it and it reads as a calm, ordinary form rather than an
   error state, because losing a code is not the customer's mistake to feel bad about. */
.recover-block {
    margin-top: 1.6rem;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.recover-summary {
    padding: 0.9rem 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.recover-summary::-webkit-details-marker { display: none; }

.recover-summary::before {
    content: "+ ";
    color: var(--accent, #e8c56b);
}

.recover-block[open] .recover-summary::before { content: "– "; }

.recover-body { padding-top: 0.85rem; }

.recover-copy {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--muted);
}

.recover-note {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--muted);
    opacity: 0.85;
}

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

/* institutions.html measured 660px wide on a 375px phone: the single-column grid at
   max-width:960px let .inst-main keep its content width, so the whole school pricing page
   dragged sideways. A grid item will not shrink below its content unless told to. */
@media (max-width: 960px) {
    .inst-main, .inst-layout > * { min-width: 0; }
    .inst-layout { overflow-x: hidden; }
}

/* Try-first link and the IT question list on institutions.html. */
.inst-tryfirst { font-size: 0.95rem; }
.inst-faq { max-width: 70ch; margin: 0 auto; display: grid; gap: 10px; }

/* How-to videos on institutions.html (2026-09-24): the jump list reuses .preset-button, each video
   is one row of the homepage's .showcase-grid formula, and anchors clear the sticky header. */
#how-to, .inst-howto { scroll-margin-top: calc(var(--header-offset) + 1rem); }
.inst-howto-index { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 0.9rem; }
.inst-howto-index a.preset-button { text-decoration: none; display: inline-flex; align-items: baseline; gap: 0.4rem; }
.inst-howto-index .dur { opacity: 0.7; font-weight: 600; font-variant-numeric: tabular-nums; }
.inst-howto + .inst-howto { margin-top: clamp(2rem, 4vw, 3rem); }
.inst-howto .showcase-copy h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin: 0.2rem 0 0.8rem; }
.inst-faq-item { border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
                 padding: 12px 16px; background: rgba(255,255,255,0.03); }
.inst-faq-item > summary { cursor: pointer; font-weight: 600; }
.inst-faq-item > p { margin: 10px 0 0; opacity: 0.86; }

/* ---------------------------------------------------------------------------
   Sticky Keys identity. Colour, type and one motion cue: no layout changes.
   Rebuilt 2026-08-30 after the first pass was deployed but never committed.
   --------------------------------------------------------------------------- */

/* Brand mark. The lockup replaces the old text wordmark. Its glyphs are
   outlined, so it needs no font installed. Height-driven so it tracks the
   header rather than needing its own breakpoints. */
.brand-mark { display: inline-flex; align-items: center; line-height: 0; }
.brand-mark .brand-lockup { height: 56px; width: auto; display: block; }
@media (max-width: 640px) { .brand-mark .brand-lockup { height: 42px; } }
.brand-mark:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* The wordmark inside the lockup is set in currentColor, so it takes the
   header's colour. That is deliberate: a hardcoded navy wordmark disappears
   into this header, which is exactly what happened the first time. */

/* The mark steps forward by exactly one white key on hover, then steps back.
   The nav lockup is TWO octaves, so one key is 360/14 degrees, not 360/7. It
   reads as a key being pressed rather than a logo doing a trick. */
.brand-mark .sk-ring { transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.brand-mark:hover .sk-ring,
.brand-mark:focus-visible .sk-ring { transform: rotate(25.7143deg); }
@media (prefers-reduced-motion: reduce) {
  .brand-mark .sk-ring { transition: none; }
  .brand-mark:hover .sk-ring,
  .brand-mark:focus-visible .sk-ring { transform: none; }
}

/* Section eyebrows cycle the mark's three keys instead of repeating one flat
   gold, so the page speaks the same colour language as the logo and as the
   app's own pitch-class colouring. The hero keeps gold: it sits over moving
   video and gold is the most legible of the four against footage. The brand
   blue is lightened here (#6E9BFF) because #2C6BED only reaches 4.16:1 on this
   ground, where the lighter tone reaches 7.32:1. */
main section:not(.hero-shell):nth-of-type(3n + 1) .eyebrow,
main section:not(.hero-shell):nth-of-type(3n + 1) .section-index { color: #F0453A; }
main section:not(.hero-shell):nth-of-type(3n + 2) .eyebrow,
main section:not(.hero-shell):nth-of-type(3n + 2) .section-index { color: #FFC629; }
main section:not(.hero-shell):nth-of-type(3n + 3) .eyebrow,
main section:not(.hero-shell):nth-of-type(3n + 3) .section-index { color: #6E9BFF; }

/* Pricing is not a warning. Red on the money section reads as an alarm, so the
   one section where somebody is deciding to spend gets a calm teal (10.37:1). */
main section#pricing .eyebrow,
main section#pricing .section-index { color: #3ED2B0; }

/* Pricing figures in Cormorant Garamond. The headings are a workhorse face, but
   at the moment of paying the money wants the older, higher-contrast serif: thin
   strokes and a drawn-out $ read as considered rather than loud. */
.pricing-card .price,
.pricing-card .price-was {
  font-family: 'Cormorant Garamond', Palatino, 'Palatino Linotype', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.pricing-card .price { font-size: clamp(3.3rem, 2.6rem + 1.4vw, 4.3rem); line-height: 0.9; }
/* the "/ month" caption under it is a label, not a figure */
.pricing-card .price span { font-family: var(--body-font); letter-spacing: 0.14em; }

/* The footer keeps the old tagline now that the hero has the better line. Set
   at a confident size, but it is a sign-off, not a second headline. The
   selector is deliberately specific: .footer-content p (0,2,1) beats a bare
   .footer-line (0,1,0), which is why the first attempt rendered at body size. */
.site-footer .footer-content .footer-line {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.15rem + 1vw, 2.1rem);
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 0.4rem;
  width: 100%;
}

/* Mobile hero: aim the crop, do not reshape the card. The clip is a 16:9 render
   of the app whose subject, the circle of fifths with the orb in it, sits at
   about 25.8% across and 45% down. coverHeroVideo() sizes the iframe to cover
   and CSS centres it, so on a phone the middle of the frame is the staff
   notation and the circle is half out of view. Nothing here changes the card,
   the stacking or the aspect — the video still overflows and is clipped exactly
   as before. Only WHICH point of the video is held at the middle changes. */
@media (max-width: 760px) {
  .media-frame .hero-video {
    transform-origin: 25.8% 45%;
    transform: translate(-25.8%, -45%) scale(1.55);
  }
}
