/* Landing preview 3 — "The quiet process". Warm editorial theme with a scroll-driven chart. */

body.cl-v3 {
    --cl-bg: #f7f3ec;
    --cl-bg-alt: #efe8dc;
    --cl-surface: #fffdf8;
    --cl-border: #e0d6c5;
    --cl-text: #1d2521;
    --cl-muted: #66706a;
    --cl-accent: #1f5b46;
    --cl-accent-ink: #fbf7ef;
    --cl-accent-soft: rgba(31, 91, 70, .16);
    --cl-up: #1f7a55;
    --cl-down: #b8452f;
    --cl-radius: 16px;
    --cl-shadow: 0 1px 2px rgba(29, 37, 33, .06), 0 18px 40px rgba(29, 37, 33, .08);
    --cl-font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --v3-bull: #2f9e6e;
    --v3-bear: #c8553d;
    --v3-risk: #d49a2a;
    --v3-flat: rgba(29, 37, 33, .06);
}

.cl-v3 .cl-h1, .cl-v3 .cl-h2 { font-weight: 500; letter-spacing: -.025em; }
.cl-v3 .cl-h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1.02; }
.cl-v3 em { font-style: italic; color: var(--cl-accent); }
.cl-v3 .cl-eyebrow { color: var(--cl-accent); }
.cl-v3 .cl-brand-mark { background: var(--cl-accent); }

/* ---------- Hero ---------- */
.v3-hero { position: relative; min-height: calc(100vh - 64px); display: grid; align-items: center; padding: 80px 0 120px; overflow: hidden; }
.v3-hero-line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 26%; pointer-events: none; }
.v3-hero-line path { fill: none; stroke: var(--cl-accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .35; }
.v3-hero-line path.is-shadow { stroke: var(--cl-text); opacity: .07; stroke-width: 1.2; }
.v3-hero-inner { position: relative; text-align: center; }
.v3-hero-inner .cl-lead { margin: 30px auto 0; }
.v3-hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.v3-scroll-cue { display: inline-block; margin-top: 64px; width: 26px; height: 42px; border: 2px solid var(--cl-muted); border-radius: 14px; position: relative; opacity: .7; }
.v3-scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cl-muted); animation: v3-cue 1.8s infinite; }
@keyframes v3-cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Story ---------- */
.v3-story { padding: 60px 0 40px; background: linear-gradient(var(--cl-bg), var(--cl-bg-alt) 30%, var(--cl-bg-alt) 70%, var(--cl-bg)); }
.v3-story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.v3-steps { padding: 10vh 0 20vh; }
.v3-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; opacity: .28; transition: opacity .5s ease; }
.v3-step.is-active { opacity: 1; }
.v3-step-num { font: 600 13px var(--cl-font-mono); color: var(--cl-accent); letter-spacing: .1em; }
.v3-step-title { font-family: var(--cl-font-display); font-size: clamp(28px, 3.2vw, 42px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.v3-step p { color: var(--cl-muted); font-size: 18px; }
.v3-step p strong { font-family: var(--cl-font-mono); font-weight: 600; }
.v3-step .cl-disclosure { font-size: 13px; }
.v3-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; font-weight: 600; }
.v3-key li { display: inline-flex; align-items: center; gap: 8px; }
.v3-key i { width: 22px; height: 4px; border-radius: 2px; }
.v3-key .is-bull { background: var(--v3-bull); } .v3-key .is-bear { background: var(--v3-bear); } .v3-key .is-risk { background: var(--v3-risk); } .v3-key .is-neutral { background: #a3aba6; }

.v3-stage { position: relative; }
.v3-figure {
    position: sticky;
    top: calc(64px + 6vh);
    margin: 10vh 0 0;
    padding: 22px 22px 16px;
    border-radius: 22px;
    background: var(--cl-surface);
    border: 1px solid var(--cl-border);
    box-shadow: var(--cl-shadow);
}
.v3-figure-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--cl-muted); margin-bottom: 8px; }
.v3-figure-stage b { color: var(--cl-text); }
.v3-figure svg[data-v3-chart] { width: 100%; height: min(40vh, 360px); }

.v3-figure .v3-price { fill: none; stroke: var(--cl-text); stroke-width: 2; stroke-linejoin: round; transition: opacity .6s, stroke .6s; }
.v3-figure .v3-dec { fill: none; stroke: #a3aba6; stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; opacity: 0; transition: opacity .6s; }
.v3-figure .v3-dec.is-Bullish { stroke: var(--v3-bull); } .v3-figure .v3-dec.is-Bearish { stroke: var(--v3-bear); }
.v3-figure .v3-dec.is-Risk { stroke: var(--v3-risk); } .v3-figure .v3-dec.is-Unknown { stroke: #9aa39e; }
.v3-figure .v3-flat { fill: var(--v3-flat); opacity: 0; transition: opacity .6s; }
.v3-figure .v3-flat-label { font: 600 11px var(--cl-font-mono); opacity: 0; transition: opacity .6s; }
.v3-figure .v3-flat-label.is-cost { fill: var(--cl-down); } .v3-figure .v3-flat-label.is-saved { fill: var(--cl-up); }
.v3-figure .v3-sig { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); transition: opacity .4s, transform .5s cubic-bezier(.2, 1.5, .4, 1); }
.v3-figure .v3-sig-entry { fill: var(--v3-bull); stroke: var(--cl-surface); stroke-width: 2.5; }
.v3-figure .v3-sig-exit { fill: var(--v3-bear); stroke: var(--cl-surface); stroke-width: 2.5; }
.v3-figure .v3-sig-link { stroke: var(--cl-text); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .6s; }

.v3-figure[data-stage="1"] .v3-price,
.v3-figure[data-stage="2"] .v3-price,
.v3-figure[data-stage="3"] .v3-price,
.v3-figure[data-stage="4"] .v3-price { opacity: 0; }
.v3-figure[data-stage="1"] .v3-dec,
.v3-figure[data-stage="2"] .v3-dec,
.v3-figure[data-stage="3"] .v3-dec { opacity: 1; }
.v3-figure[data-stage="4"] .v3-dec { opacity: .45; }
.v3-figure[data-stage="2"] .v3-sig,
.v3-figure[data-stage="3"] .v3-sig,
.v3-figure[data-stage="4"] .v3-sig { opacity: 1; transform: scale(1); }
.v3-figure[data-stage="2"] .v3-sig-link,
.v3-figure[data-stage="3"] .v3-sig-link { opacity: .35; }
.v3-figure[data-stage="3"] .v3-flat,
.v3-figure[data-stage="4"] .v3-flat,
.v3-figure[data-stage="3"] .v3-flat-label { opacity: 1; }

.v3-equity { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s ease, opacity .6s ease; }
.v3-equity-inner { overflow: hidden; min-height: 0; }
.v3-figure[data-stage="4"] .v3-equity { grid-template-rows: 1fr; opacity: 1; }
.v3-equity svg { width: 100%; height: 140px; display: block; border-top: 1px dashed var(--cl-border); margin-top: 8px; }
.v3-equity-key { display: flex; gap: 18px; padding: 6px 0 2px 56px; color: var(--cl-muted); }
.v3-equity-key span { display: inline-flex; align-items: center; gap: 8px; }
.v3-equity-key i { width: 20px; height: 3px; border-radius: 2px; }
.v3-equity-key .is-rules { background: var(--cl-accent); }
.v3-equity-key .is-hold { background: #b5a98f; }
.v3-equity .v3-eq-rules { fill: none; stroke: var(--cl-accent); stroke-width: 2.5; stroke-linejoin: round; }
.v3-equity .v3-eq-hold { fill: none; stroke: #b5a98f; stroke-width: 2; stroke-dasharray: 5 4; }
.v3-equity .v3-eq-zero { stroke: var(--cl-border); }
.v3-equity .v3-eq-label { font: 600 11.5px var(--cl-font-mono); }

@media (max-width: 900px) {
    .v3-story-grid { grid-template-columns: 1fr; gap: 0; }
    .v3-stage { order: -1; position: sticky; top: 64px; z-index: 5; }
    .v3-figure { position: relative; top: 0; margin: 0; padding: 12px; }
    .v3-figure svg[data-v3-chart] { height: 34vh; }
    .v3-equity svg { height: 110px; }
    .v3-steps { padding: 4vh 0 10vh; }
    .v3-step { min-height: 62vh; padding: 20px; margin-bottom: 8vh; border-radius: 16px; background: color-mix(in srgb, var(--cl-surface) 92%, transparent); opacity: .5; }
}

/* ---------- Sections ---------- */
.v3-section { padding: 110px 0; }
.v3-section-paper { background: var(--cl-surface); border-block: 1px solid var(--cl-border); }
.v3-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .v3-split { grid-template-columns: 1fr; gap: 32px; } }
.v3-split-head { position: sticky; top: 100px; }
@media (max-width: 900px) { .v3-split-head { position: static; } }
.v3-link { display: inline-block; margin-top: 24px; font-weight: 600; color: var(--cl-accent) !important; text-decoration: none; border-bottom: 1px solid currentColor; }
.v3-ideas { display: grid; gap: 14px; }
.v3-idea { border-top: 1px solid var(--cl-border); padding: 4px 0; }
.v3-idea:last-child { border-bottom: 1px solid var(--cl-border); }
.v3-idea summary {
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--cl-font-display);
    font-size: clamp(21px, 2.2vw, 27px);
    line-height: 1.25;
}
.v3-idea summary::-webkit-details-marker { display: none; }
.v3-idea summary::after { content: "+"; margin-left: auto; font-family: var(--cl-font); color: var(--cl-muted); transition: transform .25s; }
.v3-idea[open] summary::after { transform: rotate(45deg); }
.v3-idea-n { font-style: italic; color: var(--cl-accent); min-width: 2.2em; }
.v3-idea > div { padding: 0 0 22px calc(2.2em + 16px); color: var(--cl-muted); display: grid; gap: 12px; }
.v3-cites { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14.5px; }

.v3-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .v3-ledger { grid-template-columns: 1fr; } }
.v3-ledger-col { padding: 34px; border-radius: 20px; background: var(--cl-bg); border: 1px solid var(--cl-border); }
.v3-ledger-title { font-family: var(--cl-font-display); font-size: 28px; font-weight: 500; margin-bottom: 18px !important; }
.v3-ledger-title.is-good { color: var(--cl-up); }
.v3-ledger-title.is-bad { color: var(--cl-down); }
.v3-ledger ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.v3-ledger li { position: relative; padding-left: 28px; }
.v3-ledger li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.v3-ledger-col:first-child li::before { content: "✓"; color: var(--cl-up); }
.v3-ledger-col:last-child li::before { content: "—"; color: var(--cl-down); }

.v3-routine { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: routine; }
@media (max-width: 880px) { .v3-routine { grid-template-columns: 1fr; } }
.v3-routine li { position: relative; padding: 34px 30px 10px 0; border-top: 2px solid var(--cl-text); display: grid; gap: 10px; align-content: start; }
.v3-routine li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--cl-accent); box-shadow: 0 0 0 5px var(--cl-bg); }
.v3-routine-time { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--cl-accent); }
.v3-routine .cl-h3 { font-family: var(--cl-font-display); font-weight: 500; font-size: 26px; }
.v3-routine p { color: var(--cl-muted); }

.cl-v3 .cl-plan-name { font-family: var(--cl-font-display); font-weight: 500; font-size: 26px; }
.cl-v3 .cl-plan.is-featured { background: #fbf6ea; }

.v3-final { padding: 130px 0; background: var(--cl-accent); color: var(--cl-accent-ink); }
.v3-final em { color: #bfe3cf; }
.v3-final .cl-btn { margin-top: 36px; background: var(--cl-accent-ink); color: var(--cl-accent) !important; }
