/* ============================================================================
   COOL TRADING TOOLS — LANDING PAGE STYLES
   Design: "Vintage Wall Street meets Modern Fintech"
   Phase 1 = nav + hero. Phases 2-6 styles to be added as those phases ship.
   ============================================================================ */


/* ==========================================================================
   1. CSS VARIABLES — synced with the app's report-detail.css
   ========================================================================== */
:root {
    /* Brand colors — gold accents on black */
    --ctj-gold: #DAA520;
    --ctj-gold-hover: #F0C040;
    --ctj-gold-dim: rgba(218, 165, 32, 0.3);
    --ctj-gold-subtle: rgba(218, 165, 32, 0.1);
    --ctj-gold-glow: rgba(218, 165, 32, 0.15);

    --ctj-black: #000000;
    --ctj-dark: #050505;
    --ctj-dark-surface: #0a0a0a;
    --ctj-dark-card: #111111;
    --ctj-dark-border: #1a1a1a;

    --ctj-cream: #FFFFF0;
    --ctj-cream-soft: #F5F0E8;
    --ctj-paper: #f5f5dc;

    /* Text colors */
    --ctj-text-primary: #FFFFF0;
    --ctj-text-secondary: rgba(255, 255, 240, 0.7);
    --ctj-text-muted: rgba(255, 255, 240, 0.45);

    /* Status colors (kept for consistency with app) */
    --ctj-green: #26a69a;
    --ctj-red: #ef5350;

    /* Typography */
    --font-serif: 'Libre Baskerville', Georgia, serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --section-pad: 100px 0;
    --content-max: 1140px;
    --content-pad: 0 24px;

    /* Easing */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--ctj-black);
    color: var(--ctj-text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a { color: var(--ctj-gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ctj-gold-hover); }


/* ==========================================================================
   3. NAVIGATION — fixed, blurred dark bar
   ========================================================================== */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 32px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(218, 165, 32, 0.1);
    transition: background 0.3s ease;
}

/* Logo: image (the "Cool" mark) + shimmer text "Trading Tools" */
.landing-nav__logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.landing-nav__logo img {
    height: 52px;
    width: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Shimmer effect applied only to the text portion of the logo */
.landing-nav__logo span {
    background: linear-gradient(90deg, #FFFFF0 0%, #DAA520 50%, #FFFFF0 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5.5s ease infinite;
}

/* Shimmer keyframes — slow back-and-forth */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.landing-nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.landing-nav__link {
    font-size: 0.88rem;
    color: var(--ctj-text-secondary);
    transition: color 0.2s ease;
}

.landing-nav__link:hover { color: var(--ctj-cream); }


/* ==========================================================================
   4. CTA BUTTONS — shared styles, used in nav and hero
   ========================================================================== */
.btn-cta {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Primary — solid gold, the main conversion CTA */
.btn-cta--primary {
    background: var(--ctj-gold);
    color: #000;
}

.btn-cta--primary:hover {
    background: var(--ctj-gold-hover);
    color: #000;
    box-shadow: 0 0 24px rgba(218, 165, 32, 0.3);
    transform: translateY(-1px);
}

/* Ghost — outlined, low-commitment secondary action */
.btn-cta--ghost {
    background: transparent;
    color: var(--ctj-cream-soft);
    border: 1px solid rgba(255, 255, 240, 0.15);
}

.btn-cta--ghost:hover {
    border-color: rgba(218, 165, 32, 0.4);
    color: var(--ctj-gold);
}

/* Large variant — for hero and final CTA sections */
.btn-cta--lg {
    padding: 14px 36px;
    font-size: 1rem;
    border-radius: 8px;
}


/* ==========================================================================
   5. HERO — above the fold, two-column on desktop
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* offset for fixed nav */
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind hero content for depth */
.hero::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(218, 165, 32, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    display: grid;
    grid-template-columns: 0.85fr 1.6fr; /* tighten copy column, give visual more room */
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ---- Hero copy column (left) ---- */
.hero__copy { max-width: 540px; }

/* Eyebrow — product name above the headline.
   Reuses the same styling pattern as .section-eyebrow for page consistency. */
.hero__eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ctj-gold);
    margin-bottom: 18px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ctj-cream);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

/* Italic gold emphasis — used to highlight the "actually want to open" hook */
.hero__headline em {
    font-style: italic;
    color: var(--ctj-gold);
}

.hero__sub {
    font-size: 1.1rem;
    color: var(--ctj-text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero__cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}


/* ---- Hero visual column (right) ---- */
.hero__visual {
    position: relative;
    aspect-ratio: 4 / 3; /* matches the vintage save-point hero image proportions */
}

/* Gold accent glow behind the visual */
.hero__visual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(ellipse, rgba(218, 165, 32, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Real hero image — used once /assets/landing/hero.png is added */
.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(218, 165, 32, 0.2);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 32px rgba(218, 165, 32, 0.06);
    display: block;
}

/* Placeholder card — shown until real hero image is added */
.screenshot-placeholder {
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(218, 165, 32, 0.25);
    border-radius: 12px;
    background: var(--ctj-dark-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

/* Faux window chrome top bar for realism */
.screenshot-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: var(--ctj-dark-card);
    border-bottom: 1px solid var(--ctj-dark-border);
    border-radius: 12px 12px 0 0;
}

/* Three traffic-light dots in faux chrome */
.screenshot-placeholder::after {
    content: '● ● ●';
    position: absolute;
    top: 8px;
    left: 14px;
    font-size: 8px;
    letter-spacing: 4px;
    color: rgba(255, 255, 240, 0.15);
}

.screenshot-placeholder__label {
    font-size: 0.82rem;
    color: var(--ctj-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.screenshot-placeholder__sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 240, 0.25);
}


/* ==========================================================================
   6. RESPONSIVE — mobile-friendly stacking under 768px
   ========================================================================== */

/* Tablet: tighten nav spacing, hide Features link */
@media (max-width: 1024px) {
    .landing-nav__links { gap: 16px; }
    .landing-nav__link--features { display: none; }
}

/* Mobile: stack hero, full-width CTAs, hide Login from nav */
@media (max-width: 768px) {
    .landing-nav { padding: 0 16px; }
    .landing-nav__link--login { display: none; }
    /* Hide nav CTA on mobile — hero CTA + Phase 5 CTA cover conversion paths */
    .landing-nav .btn-cta { display: none; }
    .landing-nav__logo { font-size: 1.4rem; }
    .landing-nav__logo img { height: 40px; }

    .hero__inner {
        grid-template-columns: 1fr; /* stack: copy on top, visual below */
        gap: 32px;
        padding: 40px 16px 60px;
    }

    .hero__eyebrow { font-size: 0.72rem; margin-bottom: 14px; }
    .hero__headline { font-size: 2rem; }
    .hero__sub { font-size: 1rem; margin-bottom: 28px; }

    .hero__cta-group { flex-direction: column; align-items: stretch; }
    .hero__cta-group .btn-cta { justify-content: center; }
}


/* ==========================================================================
   7. PAIN SECTION — Phase 2 (typographic redesign)
   Scannable structure: headline → "you've tried" list → punchline → tease.
   No image; visual rhythm comes from typographic variation alone.
   ========================================================================== */
.pain {
    padding: var(--section-pad);
    position: relative;
    text-align: center;
}

/* Subtle gold gradient divider at the top — visually separates from hero */
.pain__inner {
    max-width: 880px;          /* widened from 720px to accommodate side-by-side thumbs */
    margin: 0 auto;
    padding: var(--content-pad);
}

/* Section headline — serif, with italic gold emphasis on the question */
.pain__headline {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ctj-cream);
    margin-bottom: 40px;       /* tightened from 48px */
    letter-spacing: -0.01em;
}

/* Section headline — serif, with italic gold emphasis on the question */
.pain__headline {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ctj-cream);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

.pain__headline em {
    font-style: italic;
    color: var(--ctj-gold);
}

/* "You've tried." — tightened in toward the row below */
.pain__intro {
    font-size: 1.1rem;
    color: var(--ctj-text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;       /* increased from 16px — gives the row visual breathing room above */
}

/* "And weeks later..." — tightened in toward the row above */
.pain__intro--after {
    margin-top: 28px;          /* increased from 16px to match the gap above */
    margin-bottom: 48px;       /* reduced from 56px */
}

/* The tried list — horizontal pair, two columns side-by-side. Replaces the
   old vertical-stack layout to compact the section and let thumbs go big. */
.pain__tried {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
}

/* Each tried item — vertical stack: thumb on top, label centered below */
.pain__tried-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    flex: 0 1 380px;           /* preferred width 380px, shrinks if section narrows */
}

/* Thumbnail — large, square, prominent. Width follows the flex column;
   aspect-ratio keeps it square so it scales cleanly if flex-basis changes. */
.pain__tried-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(218, 165, 32, 0.18);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    filter: saturate(0.85);
    transition: filter 0.3s var(--ease-smooth);
}

/* Strikethrough label — sized down a notch so it doesn't fight the bigger thumb */
.pain__tried-label {
    font-family: var(--font-serif);
    font-size: 1.9rem;                              /* reduced from 2.4rem */
    color: var(--ctj-cream-soft);
    text-decoration: line-through;
    text-decoration-color: var(--ctj-gold);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
    line-height: 1.3;
    text-align: center;
}

/* Emotional punchline block — pulled out as its own moment */
.pain__punchline {
    margin-bottom: 32px;
}

/* First punchline line — louder, gold, italic. The emotional hit. */
.pain__punchline-line {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4rem;            /* dialed down so list stays the visual anchor */
    color: var(--ctj-gold);
    line-height: 1.4;
    margin-bottom: 6px;
    letter-spacing: -0.005em;
}

.pain__punchline-line--soft {
    font-style: normal;
    font-size: 1rem;              /* matches body text scale */
    color: var(--ctj-cream);
    font-weight: 400;
    margin-bottom: 0;
}

/* Solution tease — slightly larger, with downward arrow drawing eye to features */
.pain__tease {
    font-size: 1.05rem;
    color: var(--ctj-cream);
    line-height: 1.7;
    font-weight: 500;
}

.pain__tease-arrow {
    display: inline-block;
    color: var(--ctj-gold);
    margin-left: 6px;
    font-size: 1.3rem;
    /* Gentle vertical bounce to draw the eye down toward Phase 3 */
    animation: arrowBounce 2.4s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}


/* ==========================================================================
   PHASE 2 RESPONSIVE — appended to existing responsive rules
   ========================================================================== */
@media (max-width: 768px) {
    .pain__headline { font-size: 1.7rem; margin-bottom: 32px; }
    .pain__intro { font-size: 1rem; margin-bottom: 22px; }
    .pain__intro--after { margin-top: 22px; margin-bottom: 36px; }

    /* Stack vertically on mobile — side-by-side doesn't fit at narrow widths */
    .pain__tried {
        flex-direction: column;
        gap: 28px;
        align-items: center;
    }

    /* Mobile thumb cap — flex column basis doesn't apply, set explicit width */
    .pain__tried-item {
        flex: 0 0 auto;
        width: 260px;
        max-width: 100%;
        gap: 14px;
    }

    .pain__tried-label { font-size: 1.5rem; }

    .pain__punchline { margin-bottom: 36px; }
    .pain__punchline-line { font-size: 1.15rem; }
    .pain__punchline-line--soft { font-size: 0.9rem; }
    .pain__tease { font-size: 0.95rem; }
}

/* ==========================================================================
   8. SHARED SECTION HEADER STYLES
   Used by Phase 3 onward — small gold eyebrow + serif headline.
   ========================================================================== */
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ctj-gold);
    margin-bottom: 16px;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ctj-cream);
    letter-spacing: -0.01em;
    max-width: 720px;
    margin: 0 auto;
}

.section-headline em {
    font-style: italic;
    color: var(--ctj-gold);
}


/* ==========================================================================
   9. FEATURE TABS — Phase 3 page-turner (5 tabs)
   ========================================================================== */
.feature-tabs {
    padding: var(--section-pad);
}

.feature-tabs__header {
    text-align: center;
    margin-bottom: 56px;
    padding: var(--content-pad);
}

/* ── Tab navigation bar — icon + label row ── */
.feature-tabs__nav {
    display: flex;
    justify-content: center;
    max-width: var(--content-max);
    margin: 0 auto 48px;
    padding: var(--content-pad);
    border-bottom: 1px solid var(--ctj-dark-border);
}

/* Individual tab button — equal-width column */
.feature-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    cursor: pointer;
    position: relative;
    background: none;
    border: none;
    transition: all 0.3s var(--ease-smooth);
}

/* Tab SVG icon — inherits stroke color for active/hover states */
.feature-tab__icon {
    width: 36px;
    height: 36px;
    transition: all 0.3s var(--ease-smooth);
}

.feature-tab__icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--ctj-text-muted);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s var(--ease-smooth);
}

.feature-tab__label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--ctj-text-muted);
    transition: color 0.3s var(--ease-smooth);
    white-space: nowrap;
    text-transform: uppercase;
}

/* Gold underline indicator — animates in for active tab */
.feature-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ctj-gold);
    transition: all 0.3s var(--ease-smooth);
    transform: translateX(-50%);
}

/* Active tab — gold icon, gold label, underline visible */
.feature-tab--active .feature-tab__icon svg { stroke: var(--ctj-gold); }
.feature-tab--active .feature-tab__label { color: var(--ctj-gold); }
.feature-tab--active::after { width: 60%; }

/* Hover (when not active) — subtle lift toward active state */
.feature-tab:hover:not(.feature-tab--active) .feature-tab__icon svg { stroke: var(--ctj-text-secondary); }
.feature-tab:hover:not(.feature-tab--active) .feature-tab__label { color: var(--ctj-text-secondary); }


/* ── Sliding content viewport ── */
.feature-tabs__viewport {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--content-pad);
    overflow: hidden;
}

/* Horizontal track — width = 100% × number of panels (5) */
.feature-tabs__track {
    display: flex;
    width: 500%;
    transition: transform 0.4s var(--ease-smooth);
}

/* Each panel fills 1/5 of the track. Stacked layout: copy on top, visual below. */
.feature-tabs__panel {
    width: calc(100% / 5);
    flex-shrink: 0;
    min-width: 0;          /* prevent panel from growing to fit content */
    overflow: hidden;      /* belt-and-suspenders: clip anything that still escapes */
    display: flex;
    flex-direction: column;
    gap: 40px;
}


/* ── Panel copy block (top) ── */
.feature-panel__copy {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* Small eyebrow — feature name in gold */
.feature-panel__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ctj-gold);
    margin-bottom: 12px;
}

/* Pain-led title — the question or pain statement */
.feature-panel__title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ctj-cream);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

/* Solution sub-headline — gold, italic, the benefit promise */
.feature-panel__sub {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ctj-gold);
    margin-bottom: 18px;
    line-height: 1.4;
}

/* Description — supporting copy */
.feature-panel__desc {
    font-size: 1rem;
    color: var(--ctj-text-secondary);
    line-height: 1.7;
}


/* ── Panel visual block (bottom) — full-width screenshot area ── */
.feature-panel__visual {
    width: 100%;
}

/* Modifier — apply this class to .feature-panel__visual when a feature
   benefits from a taller display (e.g., AI Study, Study Desk). */
.feature-panel__visual--tall .feature-carousel { aspect-ratio: 16 / 10; }


/* ── Carousel within each panel ── */
.feature-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* default visual proportion; override per-tab if needed */
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(218, 165, 32, 0.2);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 32px rgba(218, 165, 32, 0.06);
    background: var(--ctj-dark-surface);
}

.feature-carousel__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s var(--ease-smooth);
}

.feature-carousel__slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slide image — fills the slide; preserves aspect via object-fit */
.feature-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show entire screenshot, never crop product UI */
    display: block;
}

/* Slide-level placeholder when no real image yet — fills the carousel area */
.feature-carousel__slide .screenshot-placeholder {
    aspect-ratio: auto; /* fill parent instead of self-sizing */
    height: 100%;
    border-radius: 0;
    border: 2px dashed rgba(218, 165, 32, 0.25);
    box-shadow: none;
}

/* Carousel arrow buttons — show only when more than one slide */
.feature-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--ctj-cream);
    border: 1px solid rgba(218, 165, 32, 0.25);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.feature-carousel__arrow:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: var(--ctj-gold);
    color: var(--ctj-gold);
}

.feature-carousel__arrow--prev { left: 16px; }
.feature-carousel__arrow--next { right: 16px; }

/* Dot indicators — bottom center */
.feature-carousel__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.feature-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 240, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.feature-carousel__dot--active { background: var(--ctj-gold); }

/* ==========================================================================
   PHASE 3 RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    /* Section header */
    .section-headline { font-size: 1.7rem; }

    /* Tab nav — fit all 5 tabs in viewport, no horizontal scroll */
    .feature-tabs__nav {
        padding: 0 8px;  /* tighter side padding */
    }

    /* Each tab: equal-width column, no min-width, tight padding */
    .feature-tab {
        flex: 1 1 0;          /* equal share of available width */
        min-width: 0;          /* allow tabs to shrink below content size */
        padding: 14px 4px;     /* tight horizontal padding */
    }

    .feature-tab__icon { width: 24px; height: 24px; }

    /* Smaller label, allow 2-line wrap so "Journal Builder" doesn't overflow */
    .feature-tab__label {
        font-size: 0.6rem;
        letter-spacing: 0.3px;
        white-space: normal;   /* override desktop's nowrap */
        line-height: 1.2;
        text-align: center;
    }

    /* Move horizontal padding from viewport to panels — eliminates the
       gap where adjacent panels peek through on mobile */
    .feature-tabs__viewport {
        padding: 0;            /* viewport extends edge-to-edge */
    }

    /* Compensate by adding horizontal padding inside each panel —
       same visual breathing room, now contained within the panel */
    .feature-tabs__panel {
        padding: 0 16px;
    }

    /* Panel copy */
    .feature-panel__title { font-size: 1.5rem; }
    .feature-panel__sub { font-size: 1.05rem; }
    .feature-panel__desc { font-size: 0.95rem; }

    /* Carousel arrows — smaller and closer to edges */
    .feature-carousel__arrow { width: 32px; height: 32px; font-size: 1.1rem; }
    .feature-carousel__arrow--prev { left: 8px; }
    .feature-carousel__arrow--next { right: 8px; }
}

/* ==========================================================================
   10. FINAL CTA — Phase 5 closer + parchment pricing card (Option E)
   Section header → cream parchment card → italic brand charm below.
   ========================================================================== */
.final-cta {
    padding: var(--section-pad);
    text-align: center;
    position: relative;
    overflow: hidden;  /* contain the 700px radial glow pseudo-element */
}

/* Subtle gold radial glow behind the section — draws the eye toward the card */
.final-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(218, 165, 32, 0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Thin gold gradient divider above the section, matching Phase 2's pattern */
.final-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--ctj-gold-dim) 50%, transparent 100%);
}

.final-cta__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--content-pad);
    position: relative;
    z-index: 1;
}

/* Section eyebrow override — pulls it slightly closer to the headline below */
.final-cta__inner .section-eyebrow {
    margin-bottom: 16px;
}

/* Closing headline — mirrors hero headline weight and emphasis */
.final-cta__headline {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ctj-cream);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

.final-cta__headline em {
    font-style: italic;
    color: var(--ctj-gold);
}


/* ── Cream parchment pricing card — the focal point of the section ─── */
.pricing-card {
    max-width: 560px;
    margin: 0 auto;
    background: #F0E4CC;                         /* warm parchment cream */
    border: 1px solid var(--ctj-gold);
    border-radius: 14px;                         /* softer, modern SaaS card feel */
    padding: 40px 40px 32px;
    text-align: left;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

/* Inner border frame — gives the card the "letterhead / certificate" feel */
.pricing-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(218, 165, 32, 0.35);
    border-radius: 10px;                         /* matches outer radius minus inset */
    pointer-events: none;
}

/* Everything inside the card sits above the ::before frame */
.pricing-card > * {
    position: relative;
    z-index: 1;
}

/* Ornamental sparkle band — sits at the top of the card */
.pricing-card__ornament {
    text-align: center;
    color: var(--ctj-gold);
    font-size: 0.85rem;
    letter-spacing: 12px;
    margin: 0 0 22px;
    /* Letter-spacing pushes the last sparkle right; counteract for true centering */
    text-indent: 12px;
}

/* Price block — large dark serif on cream */
.pricing-card__price-block {
    text-align: center;
    margin-bottom: 6px;
}

.pricing-card__price {
    font-family: var(--font-serif);
    font-size: 3.6rem;
    font-weight: 700;
    color: #2a2419;                              /* warm dark, not pure black */
    line-height: 1;
    letter-spacing: -0.02em;
}

.pricing-card__price-unit {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: #6b5a3a;                              /* warm muted gold-brown */
    margin-left: 4px;
}

/* Trial terms — italic dark serif under the price */
.pricing-card__terms {
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.92rem;
    color: #5a4a30;
    margin: 0 0 24px;
}

/* Thin gold gradient rule — separates price from feature list */
.pricing-card__rule {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(218, 165, 32, 0.5) 50%, transparent 100%);
    margin: 0 0 22px;
}

/* "EVERYTHING INCLUDED" label — small caps gold, dateline-style */
.pricing-card__list-label {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: #8a6a1a;                              /* darker brand gold for contrast on cream */
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 20px;
}

/* Feature list — gold sparkle bullets + bold feature names + dark serif body */
.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.pricing-card__features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 13px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #3a2f1f;
}

.pricing-card__features li:last-child {
    margin-bottom: 0;
}

/* Gold sparkle bullet — replaces the earlier checkmark */
.pricing-card__features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--ctj-gold);
    font-size: 0.95rem;
    line-height: 1.55;
}

.pricing-card__features strong {
    color: #1f1810;                              /* near-black, for emphasis */
    font-weight: 700;
}

/* CTA button — dark on cream, opposite of the hero's gold-on-dark.
   Full width inside the card, generous padding. */
.pricing-card__cta {
    display: block;
    width: 100%;
    background: #0F0E0C;
    color: var(--ctj-cream-soft);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 0;
    border-radius: 6px;
    text-decoration: none;
    margin: 28px 0 12px;
    transition: all 0.25s var(--ease-smooth);
}

.pricing-card__cta:hover {
    background: #1a1612;
    color: var(--ctj-cream);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Italic fine print — sits inside the card below the CTA */
.pricing-card__fine {
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.8rem;
    color: #6b5a3a;
    margin: 0;
}


/* ── Brand-personality charm below the card ────────────────────────── */
.final-cta__charm {
    margin: 32px auto 0;
    max-width: 480px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--ctj-text-muted);
    line-height: 1.6;
}


/* ==========================================================================
   PHASE 5 RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .final-cta__headline { font-size: 1.7rem; margin-bottom: 36px; }

    /* Pricing card — tighter padding on mobile */
    .pricing-card {
        padding: 28px 24px 24px;
    }
    .pricing-card::before { inset: 4px; }

    .pricing-card__ornament { font-size: 0.75rem; letter-spacing: 8px; text-indent: 8px; }
    .pricing-card__price { font-size: 2.8rem; }
    .pricing-card__features li { font-size: 0.9rem; }
    .pricing-card__cta { padding: 14px 0; font-size: 0.95rem; }

    .final-cta__charm { font-size: 0.85rem; }
}

/* ==========================================================================
   11. FOOTER — Phase 6
   Vintage-styled disclosure block + legal links.
   ========================================================================== */
.landing-footer {
    background: var(--ctj-dark-surface);
    border-top: 1px solid var(--ctj-dark-border);
    padding: 56px 0 40px;
    color: var(--ctj-text-muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

.landing-footer__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--content-pad);
}

/* Each disclosure row — gold label inline with body text */
.landing-footer__row {
    margin-bottom: 18px;
}

/* Gold label — small, bold, slight letter-spacing for vintage feel */
.landing-footer__label {
    color: var(--ctj-gold);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.landing-footer__text {
    color: var(--ctj-text-muted);
}

/* Inline links inside disclosure paragraphs — gold, hoverable */
.landing-footer__text a {
    color: var(--ctj-gold);
    text-decoration: underline;
    text-decoration-color: rgba(218, 165, 32, 0.4);
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.landing-footer__text a:hover {
    color: var(--ctj-gold-hover);
    text-decoration-color: var(--ctj-gold-hover);
}

/* Thin gold gradient divider above the bottom row */
.landing-footer__divider {
    margin: 32px 0 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--ctj-gold-dim) 50%, transparent 100%);
}

/* Bottom row — copyright on left, links on right (stacks on mobile) */
.landing-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.landing-footer__copyright {
    color: var(--ctj-text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

/* Legal links nav — pipe-separated row */
.landing-footer__links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-footer__link {
    color: var(--ctj-text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.landing-footer__link:hover {
    color: var(--ctj-gold);
}

.landing-footer__sep {
    color: var(--ctj-dark-border);
    user-select: none;
}


/* ==========================================================================
   PHASE 6 RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .landing-footer { padding: 40px 0 32px; font-size: 0.78rem; }

    /* Bottom row stacks vertically on mobile, copyright above links */
    .landing-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Tighten link spacing on small screens */
    .landing-footer__links { gap: 8px; }
    .landing-footer__link { font-size: 0.75rem; }
}