:root {
    --bg: #f4f5fd;
    --surface: rgba(255, 255, 255, 0.74);
    --surface-strong: #f8f8fe;
    --surface-alt: #dadbf1;
    --text: #23285f;
    --muted: #6268a3;
    --line: rgba(73, 80, 188, 0.14);
    --brand: #4950bc;
    --brand-soft: #dadbf1;
    --accent: #dadbf1;
    --shadow: 0 30px 80px rgba(73, 80, 188, 0.14);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: min(1180px, calc(100vw - 32px));
    --transition: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-slow: 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(218, 219, 241, 0.62), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(73, 80, 188, 0.14), transparent 24%),
        linear-gradient(180deg, #f8f8fe 0%, #eef0fb 100%);
}

body > *:not(.page-loader) {
    position: relative;
    z-index: 1;
}

body::before {
    content: "";
    position: fixed;
    right: 34px;
    bottom: 34px;
    width: 74px;
    height: 74px;
    border-radius: 28px;
    background: radial-gradient(circle, rgba(218, 219, 241, 0.56), transparent 68%);
    pointer-events: none;
    filter: blur(10px);
    z-index: 7;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.42), transparent 22%),
        radial-gradient(circle at 82% 12%, rgba(218, 219, 241, 0.46), transparent 18%);
    opacity: 0.9;
    z-index: 0;
}

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

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

.page-shell {
    width: var(--container);
    margin: 0 auto;
    padding: 24px 0 72px;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: transparent;
    transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), visibility 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page-loader-curtain {
    position: absolute;
    left: 0;
    width: 100%;
    height: 52%;
    background:
        radial-gradient(circle at top left, rgba(218, 219, 241, 0.72), transparent 28%),
        linear-gradient(180deg, rgba(248, 248, 254, 0.985) 0%, rgba(238, 240, 251, 0.985) 100%);
    transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page-loader-curtain-top {
    top: 0;
    border-bottom: 1px solid rgba(73, 80, 188, 0.08);
}

.page-loader-curtain-bottom {
    bottom: 0;
    border-top: 1px solid rgba(73, 80, 188, 0.08);
}

.page-loader-card {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100vw - 48px));
    padding: 32px 28px;
    border-radius: 28px;
    border: 1px solid rgba(73, 80, 188, 0.12);
    background: rgba(248, 248, 254, 0.82);
    box-shadow: 0 30px 80px rgba(73, 80, 188, 0.14);
    backdrop-filter: blur(16px);
    display: grid;
    gap: 18px;
    text-align: center;
    transform: translateY(0) scale(1);
    transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), opacity 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page-loader-kicker {
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--muted);
}

.page-loader-line {
    display: grid;
    gap: 8px;
}

.page-loader-line span {
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(73, 80, 188, 0.12), rgba(73, 80, 188, 0.82), rgba(218, 219, 241, 0.92), rgba(73, 80, 188, 0.12));
    background-size: 220% 100%;
    animation: loader-sheen 1.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.page-loader-line span:nth-child(2) {
    animation-delay: 120ms;
}

.page-loader-line span:nth-child(3) {
    animation-delay: 240ms;
}

.page-loader-label {
    margin: 0;
    max-width: 28ch;
    margin-inline: auto;
    font-family: "Instrument Serif", serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.02;
    color: var(--muted);
}

body.is-loaded .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.is-loaded .page-loader-card {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
}

body.is-loaded .page-loader-curtain-top {
    transform: translateY(-104%);
}

body.is-loaded .page-loader-curtain-bottom {
    transform: translateY(104%);
}

.back-to-top {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 20px;
    border: 1px solid rgba(73, 80, 188, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(218, 219, 241, 0.86) 100%);
    box-shadow: 0 20px 40px rgba(73, 80, 188, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.92);
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(73, 80, 188, 0.22);
    box-shadow: 0 24px 48px rgba(73, 80, 188, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}

.back-to-top path {
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 10;
    padding: 18px 22px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(248, 248, 254, 0.82);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(73, 80, 188, 0.08);
    transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 500ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.is-scrolled .site-header {
    background: rgba(248, 248, 254, 0.94);
    box-shadow: 0 18px 40px rgba(73, 80, 188, 0.12);
    transform: translateY(2px);
}

.brandmark,
.panel-label,
.eyebrow,
.card-index {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.brandmark,
.site-nav a:hover,
.accent,
.price,
.site-footer a {
    color: var(--brand);
}

.site-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand);
    transition: transform var(--transition), opacity var(--transition);
}

.section {
    margin-bottom: 64px;
}

.hero,
.showcase,
.purchase-panel,
.intro-grid {
    display: grid;
    gap: 24px;
}

.hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
    min-height: min(860px, calc(100vh - 140px));
    padding: 24px 0 0;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 560px;
}

.hero-copy h1,
.section-heading h2,
.showcase-copy h2,
.purchase-copy h2,
.final-cta-card h2,
.panel h2 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(3.2rem, 7vw, 6.2rem);
    max-width: 10ch;
}

.hero-copy h1 span {
    display: block;
}

.hero-lead,
.hero-statement,
.section-heading p,
.showcase-copy p,
.showcase-list li,
.purchase-copy p,
.final-cta-card p,
.info-card p,
.feature-card p,
.stack-list li,
.form-footnote,
.purchase-note {
    color: var(--muted);
    line-height: 1.7;
}

.hero-lead {
    max-width: 48ch;
    margin: 24px 0 10px;
    font-size: 1.08rem;
}

.hero-statement {
    margin: 0 0 28px;
    font-size: 1.18rem;
    color: var(--text);
    font-weight: 700;
    min-height: 1.7em;
}

.typing-line {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.typing-line::after {
    content: "";
    width: 1px;
    height: 1.1em;
    background: rgba(73, 80, 188, 0.72);
    animation: caret-blink 900ms ease-in-out infinite;
}

.typing-line.is-complete::after {
    opacity: 0.45;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

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

.button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
    transform: translateX(-130%);
    transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.button:hover::after {
    transform: translateX(130%);
}

.button-primary {
    background: linear-gradient(135deg, var(--brand) 0%, #5e66d0 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(73, 80, 188, 0.28);
}

.button-secondary {
    border-color: var(--line);
    background: rgba(218, 219, 241, 0.46);
}

.button-block {
    width: 100%;
}

.book-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
}

.book-points li,
.pill {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(218, 219, 241, 0.42);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 68px;
}

.hero-card,
.panel,
.info-card,
.feature-card,
.stack-card,
.showcase-card,
.purchase-panel,
.final-cta-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-card {
    --mx: 0px;
    --my: 0px;
    --glow-x: 50%;
    --glow-y: 44%;
    min-height: 560px;
    display: grid;
    place-items: center;
    padding: 28px;
    overflow: hidden;
    transform: translate3d(var(--mx), var(--my), 0);
    transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -18%;
    background:
        radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.62), transparent 26%),
        radial-gradient(circle at 70% 75%, rgba(218, 219, 241, 0.42), transparent 20%);
    opacity: 0.9;
    transition: background-position var(--transition-slow), opacity var(--transition);
    pointer-events: none;
}

.hero-card:hover {
    box-shadow: 0 38px 90px rgba(73, 80, 188, 0.18);
}

.book-stage {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 0.8;
    display: grid;
    place-items: center;
}

.book-orbit {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
}

.book-orbit-a {
    inset: 10% 18% auto auto;
    width: 180px;
    height: 180px;
    background: rgba(218, 219, 241, 0.62);
    animation: floaty 8s ease-in-out infinite, pulse-orbit 10s ease-in-out infinite;
}

.book-orbit-b {
    inset: auto auto 8% 4%;
    width: 220px;
    height: 220px;
    background: rgba(73, 80, 188, 0.18);
    animation: floaty 10s ease-in-out infinite reverse, pulse-orbit 12s ease-in-out infinite reverse;
}

.book-cover,
.mini-book-face {
    position: relative;
    z-index: 1;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(218, 219, 241, 0.44) 100%);
    box-shadow: 0 28px 60px rgba(73, 80, 188, 0.16);
}

.book-cover {
    width: min(100%, 320px);
    min-height: 460px;
    padding: 28px;
    transform: perspective(1200px) rotateX(var(--riy, 0deg)) rotateY(var(--rix, 0deg)) rotate(-4deg);
    transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-card:hover .book-cover {
    box-shadow: 0 36px 78px rgba(73, 80, 188, 0.2);
}

.book-kicker,
.mini-book-face p {
    margin: 0 0 22px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.book-cover h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.book-cover p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.price-lockup,
.purchase-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 28px;
}

.price {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.price-old {
    text-decoration: line-through;
    color: rgba(98, 104, 163, 0.72);
}

.intro-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
}

.panel,
.info-card,
.feature-card,
.stack-card,
.showcase-card,
.final-cta-card {
    padding: 28px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.panel-soft {
    background: rgba(248, 248, 254, 0.82);
}

.panel-quote {
    display: grid;
    align-content: center;
    justify-items: start;
    min-height: 100%;
    gap: 18px;
    background: linear-gradient(180deg, rgba(73, 80, 188, 0.94) 0%, rgba(95, 102, 208, 0.94) 100%);
    color: #fff;
}

.panel-quote::before {
    content: "";
    width: 72px;
    height: 1px;
    background: rgba(218, 219, 241, 0.72);
}

.panel-quote blockquote {
    margin: 0;
    font-family: "Instrument Serif", serif;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1;
}

.pill-grid,
.card-grid,
.feature-grid {
    display: grid;
    gap: 18px;
}

.pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.section-split,
.showcase {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
    gap: 32px;
}

.section-heading {
    max-width: 640px;
}

.section-heading > p:last-child,
.showcase-copy > p,
.purchase-copy > p,
.final-cta-card > p {
    max-width: 56ch;
}

.section-heading-centered {
    margin: 0 auto;
    text-align: center;
    max-width: 860px;
}

.section-heading-centered > p:last-child {
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2,
.showcase-copy h2,
.purchase-copy h2,
.final-cta-card h2,
.panel h2 {
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    margin-bottom: 16px;
    line-height: 1.08;
    text-wrap: balance;
}

.section-heading.narrow {
    max-width: 760px;
}

.card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

.info-card {
    min-height: 144px;
    display: grid;
    align-content: start;
    gap: 14px;
    transition: transform var(--transition), border-color var(--transition);
}

.info-card:hover,
.feature-card:hover,
.stack-card:hover {
    transform: translateY(-6px);
    border-color: rgba(73, 80, 188, 0.22);
    box-shadow: 0 36px 70px rgba(73, 80, 188, 0.16);
}

.card-index {
    color: var(--accent);
    font-weight: 700;
}

.feature-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 24px;
}

.feature-card {
    grid-column: span 2;
    min-height: 160px;
    display: grid;
    gap: 16px;
    align-content: start;
    text-align: left;
}

.feature-card:last-child:nth-child(odd) {
    grid-column: 3 / span 2;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border: 1px solid rgba(73, 80, 188, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(218, 219, 241, 0.72) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover .feature-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 16px 30px rgba(73, 80, 188, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border-color: rgba(73, 80, 188, 0.18);
}

.feature-icon::before,
.feature-icon::after {
    content: "";
    position: absolute;
}

.feature-icon-focus::before {
    inset: 13px;
    border: 2px solid rgba(73, 80, 188, 0.82);
    border-radius: 50%;
}

.feature-icon-focus::after {
    width: 10px;
    height: 10px;
    left: 21px;
    top: 21px;
    border-radius: 50%;
    background: var(--brand);
}

.feature-icon-strategy::before {
    left: 24px;
    top: 12px;
    width: 2px;
    height: 24px;
    background: rgba(73, 80, 188, 0.82);
    border-radius: 999px;
}

.feature-icon-strategy::after {
    left: 18px;
    top: 11px;
    width: 12px;
    height: 12px;
    border-top: 2px solid rgba(73, 80, 188, 0.82);
    border-right: 2px solid rgba(73, 80, 188, 0.82);
    transform: rotate(-45deg);
}

.feature-icon-ai::before {
    inset: 11px;
    border-radius: 14px;
    border: 2px solid rgba(73, 80, 188, 0.82);
}

.feature-icon-ai::after {
    width: 18px;
    height: 18px;
    left: 17px;
    top: 17px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--brand) 0 3px, transparent 4px),
        radial-gradient(circle at 4px 4px, rgba(73, 80, 188, 0.82) 0 1.5px, transparent 2px),
        radial-gradient(circle at 14px 4px, rgba(73, 80, 188, 0.82) 0 1.5px, transparent 2px),
        radial-gradient(circle at 4px 14px, rgba(73, 80, 188, 0.82) 0 1.5px, transparent 2px),
        radial-gradient(circle at 14px 14px, rgba(73, 80, 188, 0.82) 0 1.5px, transparent 2px);
}

.feature-icon-workflow::before {
    left: 11px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 4px;
    background: rgba(73, 80, 188, 0.82);
    box-shadow: 18px 0 0 rgba(73, 80, 188, 0.82), 9px 14px 0 rgba(218, 219, 241, 0.95);
}

.feature-icon-workflow::after {
    left: 17px;
    top: 19px;
    width: 18px;
    height: 14px;
    border-left: 2px solid rgba(73, 80, 188, 0.48);
    border-right: 2px solid rgba(73, 80, 188, 0.48);
    border-bottom: 2px solid rgba(73, 80, 188, 0.48);
    border-radius: 0 0 10px 10px;
}

.feature-icon-framework::before {
    inset: 12px;
    border-radius: 10px;
    border: 2px solid rgba(73, 80, 188, 0.82);
}

.feature-icon-framework::after {
    left: 19px;
    top: 11px;
    width: 14px;
    height: 30px;
    background:
        linear-gradient(rgba(73, 80, 188, 0.82), rgba(73, 80, 188, 0.82)) center 7px / 14px 2px no-repeat,
        linear-gradient(rgba(73, 80, 188, 0.82), rgba(73, 80, 188, 0.82)) center 14px / 14px 2px no-repeat,
        linear-gradient(rgba(218, 219, 241, 0.95), rgba(218, 219, 241, 0.95)) center 21px / 14px 2px no-repeat;
}

.showcase-copy {
    display: grid;
    align-content: center;
    gap: 6px;
    max-width: 100%;
    min-height: 340px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.showcase-copy > p:last-child {
    color: var(--brand);
    font-weight: 700;
}

.showcase-copy h2 {
    max-width: 14ch;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
}

.showcase-list {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.showcase-list li {
    position: relative;
    padding-left: 22px;
}

.showcase-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}

.showcase-card {
    min-height: 340px;
    display: grid;
    place-items: center;
    gap: 16px;
    padding: 28px;
    background:
        radial-gradient(circle at top, rgba(218, 219, 241, 0.62), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(218, 219, 241, 0.52) 100%);
}

.showcase-card:hover .mini-book-face {
    transform: rotate(5deg) translateY(-4px);
}

.mini-book {
    position: relative;
    width: 240px;
    height: 310px;
}

.mini-book-spine {
    position: absolute;
    inset: 12px auto 12px 0;
    width: 22px;
    border-radius: 18px 0 0 18px;
    background: linear-gradient(180deg, #4950bc 0%, #3f46aa 100%);
}

.mini-book-face {
    position: absolute;
    inset: 0 0 0 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: rotate(7deg);
}

.mini-book-face strong {
    font-size: 1.9rem;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.showcase-quote {
    margin: 0;
    font-family: "Instrument Serif", serif;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    line-height: 1;
    text-align: center;
    color: var(--brand);
}

.purchase-panel {
    grid-template-columns: 1fr 380px;
    padding: 32px;
    gap: 32px;
    align-items: center;
}

.purchase-form {
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    align-self: stretch;
}

.purchase-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.purchase-form input {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(22, 32, 51, 0.14);
    padding: 0 16px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.purchase-copy {
    display: grid;
    gap: 12px;
    align-content: start;
}

.final-cta-card {
    text-align: center;
    padding: 56px 32px;
    background:
        radial-gradient(circle at top, rgba(218, 219, 241, 0.72), transparent 28%),
        rgba(255, 255, 255, 0.74);
}

.final-cta-card p {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-card .hero-actions {
    justify-content: center;
    margin-top: 24px;
}

.site-footer {
    padding: 18px 8px 0;
    color: var(--muted);
}

.site-footer p {
    margin: 0;
}

.footer-meta {
    display: grid;
    gap: 0.28rem;
}

.footer-credit {
    color: rgba(34, 38, 79, 0.66);
    font-size: 0.82rem;
}

.footer-credit a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(73, 80, 188, 0.22);
    transition: color var(--transition), border-color var(--transition);
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
    color: var(--brand);
    border-color: rgba(73, 80, 188, 0.5);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.footer-links a {
    transition: color var(--transition), transform var(--transition);
}

.footer-links a:hover {
    color: var(--brand);
    transform: translateY(-1px);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(218, 219, 241, 0.8) 100%);
    box-shadow: 0 10px 24px rgba(73, 80, 188, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.social-link:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(73, 80, 188, 0.18);
    box-shadow: 0 18px 32px rgba(73, 80, 188, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.social-link svg {
    width: 19px;
    height: 19px;
    overflow: visible;
}

.tiktok-logo {
    overflow: visible;
}

.tiktok-logo path {
    transition: transform var(--transition), opacity var(--transition), fill var(--transition);
}

.tiktok-shadow-cyan {
    fill: rgba(37, 244, 238, 0.7);
    transform: translate(-0.55px, 0.35px);
}

.tiktok-shadow-pink {
    fill: rgba(254, 44, 85, 0.62);
    transform: translate(0.55px, -0.35px);
}

.tiktok-foreground {
    fill: color-mix(in srgb, var(--brand) 78%, #111 22%);
}

.social-link:hover .tiktok-shadow-cyan,
.social-link:focus-visible .tiktok-shadow-cyan {
    transform: translate(-0.8px, 0.45px);
}

.social-link:hover .tiktok-shadow-pink,
.social-link:focus-visible .tiktok-shadow-pink {
    transform: translate(0.8px, -0.45px);
}

.social-link:hover .tiktok-foreground,
.social-link:focus-visible .tiktok-foreground {
    fill: #171a34;
}

.legal-page .page-shell {
    min-height: 100vh;
}

.legal-layout {
    display: grid;
    gap: 24px;
}

.legal-hero,
.legal-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.legal-hero {
    padding: 40px 32px;
}

.legal-hero h1,
.legal-card h2 {
    margin: 0 0 14px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.legal-hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.legal-hero p,
.legal-card p {
    max-width: 70ch;
    color: var(--muted);
    line-height: 1.7;
}

.legal-card {
    padding: 28px 32px;
}

.legal-card h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.panel,
.info-card,
.feature-card,
.purchase-form,
.final-cta-card,
.showcase-card,
.site-header,
.hero-card,
.book-cover {
    will-change: transform, opacity;
}

body.js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(34px) scale(0.975);
    filter: blur(10px);
    transition:
        opacity var(--transition-slow),
        transform var(--transition-slow),
        filter 900ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--delay, 0) * 110ms);
}

body.js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@keyframes floaty {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -16px, 0);
    }
}

@keyframes pulse-orbit {
    0%, 100% {
        opacity: 0.72;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@keyframes loader-sheen {
    0% {
        background-position: 100% 50%;
        opacity: 0.45;
    }
    50% {
        background-position: 40% 50%;
        opacity: 1;
    }
    100% {
        background-position: -20% 50%;
        opacity: 0.45;
    }
}

@keyframes caret-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0.15;
    }
}

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

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

    body.js-ready [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .page-loader {
        display: none;
    }

    .typing-line::after {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hero,
    .intro-grid,
    .section-split,
    .showcase,
    .purchase-panel {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 24px;
    }

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

    .feature-card {
        grid-column: auto;
    }

    .feature-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 420px;
        justify-self: center;
        width: 100%;
    }

    .purchase-form {
        max-width: 460px;
        width: 100%;
        justify-self: start;
    }
}

@media (max-width: 720px) {
    body::before {
        right: 18px;
        bottom: 18px;
        width: 64px;
        height: 64px;
    }

    .page-shell {
        width: min(100vw - 20px, 100%);
        padding-top: 14px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
        border-radius: 18px;
    }

    .site-header,
    .site-footer {
        gap: 14px;
        justify-content: center;
        text-align: center;
    }

    .site-header {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px;
        text-align: left;
        border-radius: 28px;
        padding: 14px;
        min-height: 76px;
        position: sticky;
        top: 12px;
    }

    .site-header .brandmark,
    .site-header .nav-toggle {
        align-self: center;
        height: 46px;
    }

    .site-header .brandmark {
        display: inline-flex;
        align-items: center;
        line-height: 1;
        margin: 0;
    }

    .site-header .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: grid;
        gap: 10px;
        padding: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height var(--transition-slow), opacity var(--transition), transform var(--transition);
        transform: translateY(-8px);
        z-index: 15;
    }

    .site-header.nav-open .site-nav {
        max-height: 320px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(248, 248, 254, 0.96);
        box-shadow: 0 24px 48px rgba(73, 80, 188, 0.14);
        backdrop-filter: blur(16px);
    }

    .site-nav a {
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(218, 219, 241, 0.42);
        color: var(--brand);
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

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

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

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

    .button {
        width: 100%;
    }

    .site-footer {
        display: grid;
        justify-items: center;
        gap: 12px;
        margin-top: 8px;
        padding: 16px 0 6px;
        text-align: center;
    }

    .site-footer p {
        margin: 0;
        color: var(--brand);
        font-size: 0.95rem;
    }

    .footer-meta {
        gap: 0.4rem;
    }

    .footer-credit {
        font-size: 0.8rem;
        color: rgba(34, 38, 79, 0.62);
    }

    .footer-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-links a:not(.social-link) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 0 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.78);
        font-size: 0.9rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .hero-copy h1 {
        font-size: clamp(2.8rem, 15vw, 4.2rem);
    }

    .hero-card {
        min-height: 520px;
    }

    .book-cover {
        min-height: 400px;
        padding: 22px;
    }

    .card-grid,
    .feature-grid,
    .pill-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
        justify-self: stretch;
    }

    .purchase-panel,
    .final-cta-card {
        padding: 22px;
    }

    .panel,
    .info-card,
    .feature-card,
    .showcase-card {
        padding: 22px;
    }

    .section-heading,
    .purchase-copy,
    .showcase-copy {
        max-width: 100%;
    }

    .footer-links {
        justify-content: center;
    }

    .legal-hero,
    .legal-card {
        padding: 22px;
    }
}
