/* ============================================
 * Branding Styles
 * Princeton Idea Exchange • Chai With Jai
 * ============================================ */

/* Force light mode only - see ADR-009 */
:root {
    color-scheme: light only;
}

:root {
    /* Brand Colors - Inspired by chai warmth and Princeton heritage */
    --brand-saffron: oklch(72% 0.18 45);
    /* Warm chai/dharmic orange */
    --brand-navy: oklch(25% 0.03 260);
    /* Deep professional navy */
    --brand-blue: oklch(62% 0.18 250);
    /* Tech blue */
    --brand-green: oklch(65% 0.18 145);
    /* Growth green */
    --brand-gray: oklch(50% 0.01 260);
    /* Neutral gray */

    /* Category accent colors */
    --category-saffron: var(--brand-saffron);
    --category-blue: var(--brand-blue);
    --category-green: var(--brand-green);
    --category-gray: var(--brand-gray);
}

/* ============================================
 * Branding Header
 * ============================================ */

.branding-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--inline-space);
}

.branding-header {
    gap: 0.5em;
}

.branding-logo {
    font-size: 1.5em;
    line-height: 1;
}

.branding-text {
    display: flex;
    gap: 0.35em;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.branding-primary {
    font-weight: 600;
    color: var(--brand-saffron);
}

.branding-dot {
    opacity: 0.5;
}

.branding-secondary {
    font-weight: 500;
    opacity: 0.8;
}

/* Mobile: stack brand names */
@media (max-width: 600px) {
    .branding-text {
        flex-direction: column;
        gap: 0.1em;
        font-size: 0.85em;
    }

    .branding-dot {
        display: none;
    }
}

/* ============================================
 * Categorized Library
 * ============================================ */

.categorized-library {
    display: flex;
    flex-direction: column;
    gap: calc(var(--block-space) * 2);
    padding-block: var(--block-space);
}

/* ============================================
 * Category Sections
 * ============================================ */

.category-section {
    --accent: var(--category-blue);
}

.category--saffron {
    --accent: var(--category-saffron);
}

.category--blue {
    --accent: var(--category-blue);
}

.category--green {
    --accent: var(--category-green);
}

.category--gray {
    --accent: var(--category-gray);
}

.category__header {
    padding-inline: clamp(var(--inline-space), 2cqi, calc(var(--inline-space) * 3));
    padding-block: var(--block-space);
    border-inline-start: 4px solid var(--accent);
    margin-inline: var(--inline-space);
    margin-block-end: var(--block-space);
}

.category__title {
    font-size: clamp(1.25rem, 3cqi, 1.75rem);
    font-weight: 700;
    margin: 0;
    color: var(--color-ink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category__description {
    margin: 0.5em 0 0;
    font-size: 0.9em;
    opacity: 0.7;
    font-style: italic;
}

/* Add subtle background tint for category sections */
.category-section .library {
    background: linear-gradient(135deg,
            oklch(from var(--accent) l c h / 0.03) 0%,
            transparent 50%);
    border-radius: 0.5em;
    margin-inline: var(--inline-space);
}

/* ============================================
 * Featured Category - January's Top Picks
 * Layered design with unified cover sizes
 * ============================================ */

:root {
    --category-coral: oklch(70% 0.18 25);
}

.category--coral {
    --accent: var(--category-coral);
}

.category--featured {
    /* Fallback for older browsers */
    background: linear-gradient(180deg,
        rgba(253, 121, 51, 0.06) 0%,
        rgba(253, 121, 51, 0.02) 100%);
    padding: calc(var(--block-space) * 2) 0;
    margin-bottom: calc(var(--block-space) * 2);
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.category--featured::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    /* Fallback for older browsers */
    background: radial-gradient(ellipse at center,
        rgba(253, 121, 51, 0.08) 0%,
        transparent 70%);
    pointer-events: none;
}

.category__header--featured {
    text-align: center;
    border-inline-start: none;
    max-width: 600px;
    margin: 0 auto calc(var(--block-space) * 1.5);
    position: relative;
    z-index: 1;
}

.category__badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4em 1em;
    border-radius: 2em;
    margin-bottom: calc(var(--block-space) * 0.5);
}

.category--featured .category__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: 0.02em;
}

.category--featured .category__description {
    font-size: 1.1rem;
    opacity: 0.8;
    font-style: normal;
}

/* Featured library grid - larger cards with layered effect */
.library--featured {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--block-space) * 2);
    padding: var(--block-space) calc(var(--inline-space) * 2);
    position: relative;
    z-index: 1;
}

.library--featured .library__book {
    flex: 0 1 280px;
    max-width: 320px;
    transition: transform 0.3s ease;
}

.library--featured .library__book:hover {
    transform: translateY(-8px);
}

/* Fix: Override inline-flex parent to allow width calculations */
.library--featured .library__book .flex-inline {
    display: flex;
    width: 100%;
}

/* Featured cover container - enforce consistent aspect ratio */
.library--featured .book__cover-overlay,
.library--featured .book__cover-wrapper {
    position: relative;
    width: 100%;
    min-width: 200px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow:
        0 10px 40px rgba(253, 121, 51, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: block;
    aspect-ratio: 3 / 4;
}

/* Fallback for older browsers without aspect-ratio */
@supports not (aspect-ratio: 3 / 4) {
    .library--featured .book__cover-overlay,
    .library--featured .book__cover-wrapper {
        height: 0;
        padding-bottom: 133.33%;
    }
}

.library--featured .book__cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Hide the overlay text in featured section - cleaner look */
.library--featured .book__cover-text {
    display: none;
}

/* Book title styling for featured */
.library--featured .library__book figcaption {
    padding-top: calc(var(--block-space) * 0.75);
}

.library--featured .library__book h2 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.library--featured .library__book h2 strong {
    color: #1a1a2e;
}

/* Stagger animation for featured cards */
.library--featured .library__book:nth-child(1) {
    animation: fadeSlideUp 0.5s ease 0.1s both;
}

.library--featured .library__book:nth-child(2) {
    animation: fadeSlideUp 0.5s ease 0.2s both;
}

.library--featured .library__book:nth-child(3) {
    animation: fadeSlideUp 0.5s ease 0.3s both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive: stack on mobile */
@media (max-width: 700px) {
    .library--featured {
        flex-direction: column;
        align-items: center;
        gap: calc(var(--block-space) * 1.5);
    }

    .library--featured .library__book {
        flex: 0 1 auto;
        width: 100%;
        max-width: 260px;
    }

    .category--featured {
        padding: calc(var(--block-space) * 1.5) 0;
    }
}

/* ============================================
 * Hero Section - Jai's Brain
 * ============================================ */

.hero-section {
    padding: calc(var(--block-space) * 2) var(--inline-space);
    text-align: center;
    background: linear-gradient(180deg,
            oklch(from var(--brand-saffron) l c h / 0.05) 0%,
            transparent 100%);
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--block-space);
}

.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid var(--brand-saffron);
    box-shadow: 0 8px 32px oklch(from var(--brand-saffron) l c h / 0.2);
}

.hero-headline {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin: 0;
    color: var(--color-ink);
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    opacity: 0.8;
    max-width: 600px;
    margin: 0;
}

.hero-signature {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--brand-saffron);
    margin: 0;
}

/* Mobile: hide hero image, keep headline */
@media (max-width: 600px) {
    .hero-image {
        display: none;
    }

    .hero-section {
        padding: var(--block-space) var(--inline-space);
    }

    .hero-tagline {
        font-size: 0.95rem;
    }
}

/* ============================================
 * Visual Layers - Meetup-inspired texture
 * Copied directly from spike/hero-upgrade.html
 * ============================================ */

:root {
    /* Texture colors */
    --blob-pink: oklch(90% 0.08 10);
    --blob-coral: oklch(85% 0.12 30);
    --blob-lavender: oklch(88% 0.06 290);
    --brand-saffron-light: oklch(92% 0.08 45);
    --color-bg: oklch(98.5% 0.003 60);
    --color-ink: oklch(20% 0.02 260);
    --color-subtle: oklch(50% 0.01 260);
    --font-devanagari: "Noto Sans Devanagari", sans-serif;
}

/* ================================================
   RAM WATERMARK - Infinite Spiral Easter Egg
   ================================================ */
.ram-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-devanagari);
    font-size: 40vw;
    font-weight: 700;
    color: oklch(from var(--brand-saffron) l c h / 0.06);
    pointer-events: none;
    z-index: 0;
    animation: ram-spiral 120s linear infinite;
    white-space: nowrap;
    user-select: none;
}

@keyframes ram-spiral {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Second layer - counter-rotating */
.ram-watermark::after {
    content: "राम";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.4em;
    opacity: 0.5;
    animation: ram-spiral-reverse 90s linear infinite;
}

@keyframes ram-spiral-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* ================================================
   ORGANIC BLOB SHAPES (Meetup style)
   ================================================ */
.blob {
    position: fixed;
    border-radius: 50% 40% 60% 50%;
    filter: blur(40px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    animation: blob-float 20s ease-in-out infinite;
}

.blob--pink {
    background: var(--blob-pink);
    width: 300px;
    height: 280px;
    top: 10%;
    left: -5%;
}

.blob--coral {
    background: var(--blob-coral);
    width: 250px;
    height: 300px;
    top: 30%;
    right: -8%;
    animation-delay: -5s;
}

.blob--lavender {
    background: var(--blob-lavender);
    width: 200px;
    height: 220px;
    bottom: 20%;
    left: 10%;
    animation-delay: -10s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(5deg); }
    66% { transform: translate(-10px, 15px) rotate(-3deg); }
}

/* ================================================
   HERO SECTION V2 - Layered & Textured
   ================================================ */
.hero-section--v2 {
    position: relative;
    z-index: 1;
    padding: calc(var(--block-space) * 3) var(--inline-space) calc(var(--block-space) * 2);
    max-width: 900px;
    margin: 0 auto;
    min-height: 65vh; /* Reduced to tease testimonials below */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left !important;
    overflow: visible;
}

/* Decorative photo polaroid (Meetup style) */
.hero__polaroid {
    position: absolute;
    top: 15%;
    right: -5%;
    width: 180px;
    background: white;
    padding: 8px 8px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: rotate(8deg);
    z-index: 1;
}

.hero__polaroid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.hero__polaroid-label {
    position: absolute;
    bottom: 32px;
    right: -12px;
    background: var(--brand-saffron);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    transform: rotate(3deg);
}

/* The "I see you" opener */
.hero__opener {
    font-size: 0.95rem;
    color: #555 !important; /* Explicit gray */
    margin-bottom: calc(var(--block-space) * 0.5);
    position: relative;
    display: inline-block;
}

/* Headline with embedded icon (Meetup style) */
.hero__headline {
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--block-space);
    max-width: 600px;
    color: #1a1a2e !important; /* Explicit dark color */
}

.hero__highlight {
    color: var(--brand-saffron);
    position: relative;
    display: inline-block;
}

/* Underline scribble under highlight */
.hero__highlight::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8c20-4 40 2 58-2s38 4 58 0' stroke='%23ff8533' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    opacity: 0.6;
}

.hero__soul {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    color: #555 !important; /* Explicit gray - override Writebook */
    max-width: 540px;
    margin-bottom: calc(var(--block-space) * 1.5);
}

/* Author byline with avatar */
.hero__byline {
    display: flex;
    align-items: center;
    gap: calc(var(--inline-space) * 1.5);
    margin-bottom: calc(var(--block-space) * 1.5);
}

.hero__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero__name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a2e !important; /* Explicit dark - override Writebook */
}

.hero__credentials {
    font-size: 0.85rem;
    color: #555 !important; /* Explicit gray - override Writebook */
    max-width: 300px;
}

/* CTAs */
.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--inline-space) * 1.5);
    align-items: center;
}

.btn--hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.8em 1.4em;
    border-radius: 2em;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    background: var(--brand-navy);
    color: white;
}

.btn--hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn--hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.8em 1.4em;
    border-radius: 2em;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    cursor: pointer;
    background: white;
    color: var(--color-ink);
    border: 2px solid oklch(85% 0.01 260);
}

.btn--hero-secondary:hover {
    border-color: var(--brand-saffron);
    color: var(--brand-saffron);
}

/* ================================================
   LIVE CLASS CALLOUT - Textured Section
   ================================================ */
.live-callout {
    position: relative;
    background: linear-gradient(135deg, var(--brand-saffron-light) 0%, var(--color-bg) 100%);
    padding: calc(var(--block-space) * 3) var(--inline-space);
    text-align: center;
    margin: calc(var(--block-space) * 2) 0;
    overflow: hidden;
}

/* Texture overlay */
.live-callout::before {
    content: "राम राम राम राम राम";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-family: var(--font-devanagari);
    font-size: 8rem;
    font-weight: 700;
    color: oklch(from var(--brand-saffron) l c h / 0.05);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.5em;
}

.live-callout__inner {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    z-index: 1;
}

.live-callout__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.4em 0.9em;
    background: var(--brand-saffron);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 2em;
    margin-bottom: var(--block-space);
}

/* Pulsing dot */
.live-callout__badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.live-callout__headline {
    font-size: clamp(1.3rem, 3.5vw, 1.75rem);
    font-weight: 700;
    margin-bottom: calc(var(--block-space) * 0.5);
    color: #1a1a2e !important;
}

.live-callout__subtext {
    color: #555 !important;
    margin-bottom: calc(var(--block-space) * 1.5);
    font-size: 1rem;
}

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials-section {
    position: relative;
    padding: calc(var(--block-space) * 2) var(--inline-space) calc(var(--block-space) * 3);
    background: linear-gradient(180deg,
        oklch(from var(--brand-saffron) l c h / 0.05) 0%,
        transparent 50%);
    z-index: 1;
}

.testimonials__headline {
    text-align: center;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    color: #1a1a2e !important;
    margin-bottom: calc(var(--block-space) * 2);
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Sparkle decoration */
.testimonials__headline::before,
.testimonials__headline::after {
    content: "✦";
    position: absolute;
    color: var(--brand-saffron);
    font-size: 0.5em;
    animation: sparkle 2s ease-in-out infinite;
}

.testimonials__headline::before {
    left: calc(50% - 8em);
    top: 0.2em;
}

.testimonials__headline::after {
    right: calc(50% - 8em);
    top: 0.2em;
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.senja-embed {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ================================================
   BUILD STORY - How We Built This
   ================================================ */
.build-story {
    position: relative;
    padding: calc(var(--block-space) * 4) var(--inline-space);
    background: linear-gradient(180deg,
        #fafafa 0%,
        white 20%,
        oklch(from var(--brand-saffron) l c h / 0.02) 80%,
        oklch(from var(--brand-saffron) l c h / 0.05) 100%);
    z-index: 1;
}

.build-story__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto calc(var(--block-space) * 3);
}

.build-story__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-saffron);
    margin-bottom: 0.5em;
}

.build-story__title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    color: #1a1a2e !important;
    margin-bottom: calc(var(--block-space) * 0.75);
    line-height: 1.1;
}

.build-story__intro {
    font-size: 1.15rem;
    color: #555 !important;
    line-height: 1.6;
}

.build-story__timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Timeline line */
.build-story__timeline::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        oklch(from var(--brand-saffron) l c h / 0.3) 0%,
        oklch(from var(--brand-saffron) l c h / 0.6) 50%,
        oklch(from var(--brand-saffron) l c h / 0.3) 100%);
}

/* Story Beat */
.story-beat {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: calc(var(--block-space) * 1.5);
    margin-bottom: calc(var(--block-space) * 3);
    position: relative;
}

.story-beat:last-child {
    margin-bottom: 0;
}

.story-beat__number {
    width: 50px;
    height: 50px;
    background: var(--brand-saffron);
    color: white;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px oklch(from var(--brand-saffron) l c h / 0.3);
}

.story-beat__content {
    padding-top: 0.5em;
}

.story-beat__title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #1a1a2e !important;
    margin-bottom: calc(var(--block-space) * 0.5);
    line-height: 1.3;
}

.story-beat__text {
    font-size: 1rem;
    color: #444 !important;
    line-height: 1.7;
    margin-bottom: 1em;
}

.story-beat__text:last-of-type {
    margin-bottom: calc(var(--block-space) * 0.75);
}

.story-beat__text strong {
    color: #1a1a2e !important;
}

.story-beat__text em {
    color: var(--brand-saffron);
    font-style: normal;
    font-weight: 600;
}

.story-beat__text--emphasis {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a2e !important;
    border-left: 3px solid var(--brand-saffron);
    padding-left: 1em;
    margin-top: 1.5em;
}

/* Tool Badges */
.story-beat__tool,
.story-beat__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 1em;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4em 0.9em;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 2em;
    background: #f0f0f0;
    color: #444;
}

.tool-badge--claude {
    background: linear-gradient(135deg, #d4a574 0%, #c9956a 100%);
    color: white;
}

.tool-badge--langsmith {
    background: linear-gradient(135deg, #10a37f 0%, #0d8c6d 100%);
    color: white;
}

.tool-badge--agent {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.tool-badge--writebook {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a2e;
}

.tool-badge--digitalocean {
    background: linear-gradient(135deg, #0080ff 0%, #0069d9 100%);
    color: white;
}

.tool-badge--antigravity {
    background: linear-gradient(135deg, var(--brand-saffron) 0%, #e06530 100%);
    color: white;
}

/* Insight Box */
.story-beat__insight {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 1em 1.25em;
    background: oklch(from var(--brand-saffron) l c h / 0.08);
    border-radius: 0.75em;
    margin-top: 1em;
}

.insight-icon {
    font-size: 1.25em;
}

.insight-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e !important;
}

/* CTA at end */
.story-beat__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-top: calc(var(--block-space) * 1.5);
}

/* Conclusion styling */
.story-beat--conclusion .story-beat__number {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);
}

/* ================================================
   BUILD STORY - Responsive
   ================================================ */
@media (max-width: 700px) {
    .build-story {
        padding: calc(var(--block-space) * 2) var(--inline-space);
    }

    .build-story__timeline::before {
        left: 20px;
    }

    .story-beat {
        grid-template-columns: 42px 1fr;
        gap: var(--block-space);
    }

    .story-beat__number {
        width: 42px;
        height: 42px;
        font-size: 0.75rem;
    }

    .story-beat__cta {
        flex-direction: column;
    }

    .story-beat__cta .btn--hero-primary,
    .story-beat__cta .btn--hero-secondary {
        justify-content: center;
    }
}

/* ================================================
   FREE START - How to Start Learning
   ================================================ */
.free-start {
    position: relative;
    padding: calc(var(--block-space) * 4) var(--inline-space);
    background: linear-gradient(180deg,
        white 0%,
        oklch(from var(--brand-saffron) l c h / 0.03) 50%,
        white 100%);
    z-index: 1;
}

.free-start__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto calc(var(--block-space) * 2);
}

.free-start__title {
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 800;
    color: #1a1a2e !important;
    margin-bottom: calc(var(--block-space) * 0.5);
    line-height: 1.1;
}

.free-start__intro {
    font-size: 1.15rem;
    color: #555 !important;
    line-height: 1.6;
}

.free-start__example {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--block-space) * 2);
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.free-start__book-preview {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px oklch(from var(--brand-saffron) l c h / 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.free-start__book-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px oklch(from var(--brand-saffron) l c h / 0.25);
}

.free-start__book-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.free-start__book-cover {
    background: linear-gradient(135deg, #ff9933 0%, #fd7933 50%, #e06530 100%);
    padding: calc(var(--block-space) * 2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.free-start__book-emoji {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.free-start__book-info {
    padding: calc(var(--block-space) * 1.5);
}

.free-start__book-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e !important;
    margin-bottom: 0.5em;
}

.free-start__book-desc {
    font-size: 0.95rem;
    color: #555 !important;
    line-height: 1.6;
}

.free-start__steps {
    display: flex;
    flex-direction: column;
    gap: calc(var(--block-space) * 1.5);
}

.free-start__step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.free-start__step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-saffron) 0%, #e06530 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px oklch(from var(--brand-saffron) l c h / 0.3);
}

.free-start__step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e !important;
    margin-bottom: 0.25em;
}

.free-start__step-content p {
    font-size: 0.95rem;
    color: #666 !important;
    line-height: 1.5;
}

/* Alt live callout styling */
.live-callout--alt {
    background: linear-gradient(135deg,
        oklch(from var(--brand-saffron) l c h / 0.08) 0%,
        oklch(from var(--brand-saffron) l c h / 0.04) 100%);
}

@media (max-width: 700px) {
    .free-start__example {
        grid-template-columns: 1fr;
        gap: calc(var(--block-space) * 1.5);
    }

    .free-start__book-cover {
        padding: calc(var(--block-space) * 1.5);
    }

    .free-start__book-emoji {
        font-size: 3rem;
    }
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    text-align: center;
    padding: calc(var(--block-space) * 2);
    color: #555 !important;
    font-size: 0.85rem;
}

.site-footer .heart {
    color: var(--brand-saffron);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 700px) {
    .hero-section--v2 {
        min-height: auto;
        padding: calc(var(--block-space) * 2) var(--inline-space);
    }

    .hero__polaroid {
        display: none;
    }

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

    .btn--hero-primary,
    .btn--hero-secondary {
        justify-content: center;
    }

    .blob {
        opacity: 0.3;
    }
}