/* Landing preview 1 — "Replay the tape". Dark terminal theme. */

body.cl-v1 {
    --cl-bg: #070b14;
    --cl-bg-alt: #0b111e;
    --cl-surface: #0f1726;
    --cl-border: #1c273a;
    --cl-text: #e8eef9;
    --cl-muted: #8a97ad;
    --cl-accent: #4f8cff;
    --cl-accent-ink: #ffffff;
    --cl-accent-soft: rgba(79, 140, 255, .22);
    --cl-up: #22d39a;
    --cl-down: #ff5d6c;
    --cl-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    --v1-long: rgba(34, 211, 154, .12);
    --v1-flat: rgba(138, 151, 173, .08);
}

.cl-v1 .cl-brand-mark { background: linear-gradient(135deg, #4f8cff, #22d39a); }

.v1-grad {
    background: linear-gradient(92deg, #7aa7ff 0%, #22d39a 60%, #b9f5dd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Hero ---------- */
.v1-hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.v1-hero-glow {
    position: absolute;
    inset: -30% -10% auto;
    height: 720px;
    background:
        radial-gradient(600px 320px at 30% 30%, rgba(79, 140, 255, .28), transparent 70%),
        radial-gradient(520px 300px at 75% 40%, rgba(34, 211, 154, .18), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}
.v1-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
    pointer-events: none;
}
.v1-hero-copy { position: relative; text-align: center; margin-bottom: 56px; }
.v1-hero-copy .cl-lead { margin: 26px auto 0; }
.v1-live { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--cl-border); border-radius: 999px; background: rgba(15, 23, 38, .7); color: var(--cl-text); letter-spacing: .08em; }
.v1-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cl-up); box-shadow: 0 0 0 0 rgba(34, 211, 154, .6); animation: v1-pulse 2s infinite; }
@keyframes v1-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 154, .55); } 70% { box-shadow: 0 0 0 10px rgba(34, 211, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 154, 0); } }
.v1-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.v1-hero-disclosure { margin-top: 16px; max-width: 900px; }

/* ---------- Terminal ---------- */
.v1-terminal {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 30, 50, .92), rgba(12, 18, 31, .96));
    border: 1px solid var(--cl-border);
    border-radius: 18px;
    box-shadow: var(--cl-shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
    overflow: hidden;
}
.v1-term-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--cl-border); }
.v1-dots { display: inline-flex; gap: 7px; }
.v1-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3650; }
.v1-dots i:nth-child(1) { background: #ff5f57; } .v1-dots i:nth-child(2) { background: #febc2e; } .v1-dots i:nth-child(3) { background: #28c840; }
.v1-term-title { flex: 1; font-size: 12.5px; color: var(--cl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v1-state {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    background: rgba(138, 151, 173, .14);
    color: var(--cl-muted);
    transition: background .25s, color .25s;
}
.v1-state.is-long { background: rgba(34, 211, 154, .16); color: var(--cl-up); }
.v1-state.is-flat { background: rgba(254, 188, 46, .14); color: #febc2e; }

.v1-hud { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--cl-border); }
.v1-hud > div { padding: 14px 18px; border-right: 1px solid var(--cl-border); min-width: 0; }
.v1-hud > div:last-child { border-right: 0; }
.v1-hud span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--cl-muted); }
.v1-hud strong { display: block; margin-top: 4px; font-size: clamp(16px, 2vw, 22px); font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) {
    .v1-hud { grid-template-columns: repeat(2, 1fr); }
    .v1-hud > div:nth-child(2) { border-right: 0; }
    .v1-hud > div:nth-child(-n+2) { border-bottom: 1px solid var(--cl-border); }
}

.v1-term-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
@media (max-width: 900px) { .v1-term-body { grid-template-columns: 1fr; } }
.v1-chart-wrap { padding: 16px 10px 12px 6px; min-width: 0; }
.v1-chart-wrap svg { width: 100%; height: 360px; }
@media (max-width: 600px) { .v1-chart-wrap svg { height: 260px; } }
.v1-chart-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 6px 12px 0 56px; color: var(--cl-muted); }
.v1-chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.v1-swatch { width: 14px; height: 10px; border-radius: 3px; }
.v1-swatch-long { background: rgba(34, 211, 154, .35); }
.v1-swatch-flat { background: rgba(138, 151, 173, .25); }
.v1-dot { width: 10px; height: 10px; border-radius: 50%; }
.v1-dot-entry { background: var(--cl-up); }
.v1-dot-exit { background: var(--cl-down); }

.v1-chart-wrap .v1-band-long { fill: var(--v1-long); }
.v1-chart-wrap .v1-band-flat { fill: var(--v1-flat); }
.v1-chart-wrap .v1-line { fill: none; stroke: #cfe0ff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.v1-chart-wrap .v1-area { fill: url(#v1AreaGrad); }
.v1-chart-wrap .v1-ghost { fill: none; stroke: rgba(207, 224, 255, .12); stroke-width: 1.5; stroke-dasharray: 3 4; }
.v1-chart-wrap .v1-head { fill: #fff; filter: drop-shadow(0 0 6px rgba(122, 167, 255, .9)); }
.v1-chart-wrap .v1-cursor { stroke: rgba(207, 224, 255, .25); stroke-dasharray: 2 3; }
.v1-chart-wrap .v1-mark { transform-box: fill-box; transform-origin: center; animation: v1-pop .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.v1-chart-wrap .v1-mark-entry { fill: var(--cl-up); stroke: #0b111e; stroke-width: 2; }
.v1-chart-wrap .v1-mark-exit { fill: var(--cl-down); stroke: #0b111e; stroke-width: 2; }
.v1-chart-wrap .v1-mark-label { font: 600 11px var(--cl-font-mono); fill: var(--cl-text); paint-order: stroke; stroke: #0b111e; stroke-width: 4px; }
@keyframes v1-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.v1-feed { border-left: 1px solid var(--cl-border); padding: 16px 16px 12px; display: flex; flex-direction: column; min-height: 0; max-height: 430px; }
@media (max-width: 900px) { .v1-feed { border-left: 0; border-top: 1px solid var(--cl-border); max-height: 220px; } }
.v1-feed-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--cl-muted); margin-bottom: 10px; }
.v1-feed ol { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: flex; flex-direction: column-reverse; gap: 8px; }
.v1-feed li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 4px 10px;
    align-items: baseline;
    padding: 9px 11px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--cl-border);
    font-size: 13px;
    animation: v1-slide .35s ease both;
}
@keyframes v1-slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.v1-feed-tag { font: 700 10.5px var(--cl-font-mono); letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; }
.v1-feed-tag.is-entry { background: rgba(34, 211, 154, .16); color: var(--cl-up); }
.v1-feed-tag.is-exit { background: rgba(255, 93, 108, .16); color: var(--cl-down); }
.v1-feed-date { color: var(--cl-muted); font-family: var(--cl-font-mono); font-size: 12px; }
.v1-feed-pl { font-family: var(--cl-font-mono); font-weight: 600; }
.v1-feed-empty { color: var(--cl-muted); }

.v1-controls { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--cl-border); }
.v1-ctrl {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: var(--cl-accent);
    color: #fff;
    cursor: pointer;
    flex: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 0 0 0 var(--cl-accent-soft);
}
.v1-ctrl:hover { transform: scale(1.06); box-shadow: 0 0 0 6px var(--cl-accent-soft); }
.v1-ctrl .v1-icon-pause, .v1-ctrl.is-playing .v1-icon-play { display: none; }
.v1-ctrl.is-playing .v1-icon-pause { display: block; }
.v1-scrub { flex: 1; min-width: 0; accent-color: var(--cl-accent); height: 4px; cursor: pointer; }
.v1-speed { display: inline-flex; border: 1px solid var(--cl-border); border-radius: 8px; overflow: hidden; flex: none; }
.v1-speed button { border: 0; background: transparent; color: var(--cl-muted); font: 600 12.5px var(--cl-font-mono); padding: 7px 10px; cursor: pointer; }
.v1-speed button.is-active { background: rgba(79, 140, 255, .18); color: var(--cl-text); }

.v1-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-top: 1px solid var(--cl-border);
    background: rgba(34, 211, 154, .05);
    animation: v1-slide .5s ease both;
}
.v1-summary span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--cl-muted); }
.v1-summary strong { font-size: 20px; }
@media (max-width: 900px) { .v1-summary { grid-template-columns: repeat(2, 1fr); } .v1-summary .cl-btn { grid-column: 1 / -1; } }

/* ---------- Strip ---------- */
.v1-strip { border-block: 1px solid var(--cl-border); background: var(--cl-bg-alt); }
.v1-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.v1-strip-grid > div { padding: 26px 22px; border-right: 1px solid var(--cl-border); }
.v1-strip-grid > div:last-child { border-right: 0; }
.v1-strip strong { display: block; font-size: 16px; }
.v1-strip span { color: var(--cl-muted); font-size: 14px; }
@media (max-width: 860px) {
    .v1-strip-grid { grid-template-columns: repeat(2, 1fr); }
    .v1-strip-grid > div:nth-child(2) { border-right: 0; }
    .v1-strip-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--cl-border); }
}

/* ---------- Sections ---------- */
.v1-section { padding: 110px 0; }
.v1-section-alt { background: var(--cl-bg-alt); border-block: 1px solid var(--cl-border); }

.v1-moment-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.v1-moment-tabs [role="tab"] {
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid var(--cl-border);
    background: var(--cl-surface);
    color: var(--cl-muted);
    font: 600 15px var(--cl-font);
    cursor: pointer;
    transition: all .2s;
}
.v1-moment-tabs [role="tab"]:hover { color: var(--cl-text); }
.v1-moment-tabs [aria-selected="true"] { background: var(--cl-text); color: var(--cl-bg); border-color: var(--cl-text); }
.v1-moment { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; animation: v1-slide .4s ease both; }
.v1-moment[hidden] { display: none; }
@media (max-width: 820px) { .v1-moment { grid-template-columns: 1fr; } }
.v1-voice { position: relative; padding: 32px; border-radius: 18px; border: 1px solid var(--cl-border); overflow: hidden; min-height: 260px; display: flex; flex-direction: column; }
.v1-voice-gut { background: linear-gradient(160deg, rgba(255, 93, 108, .1), rgba(15, 23, 38, .6)); }
.v1-voice-rule { background: linear-gradient(160deg, rgba(34, 211, 154, .1), rgba(15, 23, 38, .6)); }
.v1-voice-label { font: 700 12px var(--cl-font-mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.v1-voice-gut .v1-voice-label { color: var(--cl-down); }
.v1-voice-rule .v1-voice-label { color: var(--cl-up); }
.v1-voice-quote { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.v1-voice-rule .v1-voice-quote { font-weight: 500; color: #cfe0ec; }
.v1-voice svg { margin-top: auto; padding-top: 22px; width: 100%; height: 76px; }
.v1-squiggle path { fill: none; stroke: var(--cl-down); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: v1-draw 1.6s ease forwards; }
.v1-calm path { fill: none; stroke: var(--cl-up); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: v1-draw 1.8s .2s ease forwards; }
@keyframes v1-draw { to { stroke-dashoffset: 0; } }

.v1-tour { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .v1-tour { grid-template-columns: 1fr; } }
.v1-tour-tabs { display: grid; gap: 10px; }
.v1-tour-tabs [role="tab"] {
    text-align: left;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid var(--cl-border);
    background: transparent;
    color: var(--cl-text);
    font: inherit;
    cursor: pointer;
    transition: all .2s;
}
.v1-tour-tabs [role="tab"] strong { display: block; font-size: 17px; }
.v1-tour-tabs [role="tab"] span { display: block; margin-top: 4px; color: var(--cl-muted); font-size: 14px; line-height: 1.45; }
.v1-tour-tabs [aria-selected="true"] { background: var(--cl-surface); border-color: var(--cl-accent); box-shadow: inset 3px 0 0 var(--cl-accent); }
.v1-tour-screen {
    border-radius: 16px;
    border: 1px solid var(--cl-border);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--cl-shadow);
    max-height: 560px;
}
.v1-tour-screen [role="tabpanel"] { animation: v1-slide .4s ease both; }
.v1-tour-screen img { width: 100%; height: auto; }
.v1-tour-note { margin: 18px 0 0; color: var(--cl-muted); font-size: 13px; }

.v1-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .v1-pillars { grid-template-columns: 1fr; } }
.v1-pillar { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 18px; border: 1px solid var(--cl-border); background: var(--cl-surface); transition: border-color .2s, transform .2s; }
.v1-pillar:hover { border-color: var(--cl-accent); transform: translateY(-3px); }
.v1-pillar p { color: var(--cl-muted); flex: 1; }
.v1-pillar-num { color: var(--cl-accent); font-size: 14px; }

.cl-v1 .cl-pricing { border-top: 1px solid var(--cl-border); }
.cl-v1 .cl-billing-opt.is-active { background: var(--cl-accent); color: #fff; }

.v1-final { padding: 120px 0; background: radial-gradient(700px 300px at 50% 100%, rgba(79, 140, 255, .22), transparent 70%); }
.v1-final-ctas { margin-top: 36px; }
