/*
 * Cue Lane: components
 * Needs tokens.css first. Every class starts with "cl-" so it can sit next to any other CSS.
 */

/* Base */
.cl { margin: 0; background: var(--cl-night); color: var(--cl-paper); font-family: var(--cl-sans); font-size: var(--cl-text-body); font-weight: var(--cl-weight-regular); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.cl *, .cl *::before, .cl *::after { box-sizing: border-box; }
:where(.cl) a { color: inherit; }
.cl ::selection { background: var(--cl-lime); color: var(--cl-night); }
.cl-container { width: min(100% - 2 * var(--cl-gutter), var(--cl-container)); margin-inline: auto; }
.cl-narrow { width: min(100% - 2 * var(--cl-gutter), var(--cl-narrow)); margin-inline: auto; }
.cl-center { text-align: center; }
.cl-center .cl-lead { margin-inline: auto; }

/* Sections */
.cl-section { padding-block: var(--cl-section); }
.cl-section--deck { background: var(--cl-deck); }
.cl-section--rule { border-top: var(--cl-border); }
.cl-section--grid { background: var(--cl-grid-bg), var(--cl-night); }

/* Type: wide heavy headlines, plain sans for reading, mono for bars and numbers */
.cl-hero-title, .cl-h1, .cl-h2, .cl-h3 { margin: 0; font-family: var(--cl-display); font-stretch: var(--cl-stretch); font-weight: var(--cl-weight-heavy); letter-spacing: var(--cl-tracking-tight); color: inherit; }
.cl-hero-title { font-size: var(--cl-text-hero); line-height: .96; }
.cl-h1 { font-size: var(--cl-text-h1); line-height: 1; }
.cl-h2 { font-size: var(--cl-text-h2); line-height: 1.05; }
.cl-h3 { font-size: var(--cl-text-h3); font-weight: var(--cl-weight-bold); letter-spacing: -.01em; line-height: 1.25; }
.cl-lime { color: var(--cl-lime); }
.cl-lead { max-width: 580px; margin: 20px 0 0; color: var(--cl-mute); font-size: var(--cl-text-lead); line-height: 1.55; }
.cl-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--cl-mono); font-size: var(--cl-text-micro); letter-spacing: var(--cl-tracking-micro); text-transform: uppercase; color: var(--cl-mute); }
.cl-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--cl-lime); }
.cl-micro { font-family: var(--cl-mono); font-size: var(--cl-text-micro); letter-spacing: var(--cl-tracking-micro); text-transform: uppercase; color: var(--cl-mute); }
.cl-num { font-family: var(--cl-mono); font-variant-numeric: tabular-nums; }

/* Promo strip: one line of electric blue above the nav */
.cl-strip { padding: 10px var(--cl-gutter); background: var(--cl-volt); color: #fff; font-size: var(--cl-text-small); font-weight: var(--cl-weight-semi); text-align: center; }
.cl-strip a { text-underline-offset: 3px; }

/* Nav: wordmark, quiet links, a ghost link and one white pill */
.cl-nav { position: relative; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 18px var(--cl-gutter); }
.cl-wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--cl-display); font-stretch: var(--cl-stretch); font-size: 22px; font-weight: var(--cl-weight-heavy); letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.cl-wordmark svg { width: 22px; height: 22px; flex: none; }
.cl-nav__links { display: flex; gap: 26px; margin-right: auto; font-size: 15px; font-weight: var(--cl-weight-medium); }
.cl-nav__links a { text-decoration: none; color: var(--cl-read); }
.cl-nav__links a:hover, .cl-nav__links a[aria-current] { color: var(--cl-paper); }
.cl-nav__links a[aria-current] { box-shadow: inset 0 -2px 0 var(--cl-lime); }
.cl-nav__end { display: flex; align-items: center; gap: 18px; margin-left: auto; white-space: nowrap; }
.cl-nav__login { font-size: 15px; font-weight: var(--cl-weight-medium); text-decoration: none; color: var(--cl-read); }
@media (max-width: 860px) { .cl-nav__links, .cl-nav__login { display: none; } }

/* Buttons: pills. Volt for the one main action, white for the nav, ghost for second choices */
.cl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border: 1px solid transparent; border-radius: var(--cl-radius-pill); background: var(--cl-volt); color: #fff; font-family: var(--cl-sans); font-size: 15px; font-weight: var(--cl-weight-semi); line-height: 1.1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--cl-fast) var(--cl-ease), transform var(--cl-fast) var(--cl-ease), border-color var(--cl-fast) var(--cl-ease); }
.cl-btn:hover { background: var(--cl-volt-hover); transform: translateY(-1px); }
.cl-btn:focus-visible { outline: 2px solid var(--cl-lime); outline-offset: 3px; }
.cl-btn--white { background: var(--cl-paper); color: var(--cl-night); }
.cl-btn--white:hover { background: #fff; }
.cl-btn--ghost { background: transparent; border-color: var(--cl-line-bright); color: var(--cl-paper); }
.cl-btn--ghost:hover { background: var(--cl-panel); border-color: var(--cl-mute); }
.cl-btn--sm { padding: 9px 18px; font-size: 14px; }
.cl-btn--block { width: 100%; }
.cl-link { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--cl-weight-semi); text-decoration: none; color: var(--cl-paper); box-shadow: inset 0 -1px 0 var(--cl-line-bright); }
.cl-link::after { content: "\2192"; color: var(--cl-lime); transition: transform var(--cl-fast) var(--cl-ease); }
.cl-link:hover::after { transform: translateX(3px); }
.cl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.cl-center .cl-actions { justify-content: center; }

/* Ruler: the numbered bar line across the top of a timeline */
.cl-ruler { display: flex; height: 28px; border-bottom: var(--cl-border); font-family: var(--cl-mono); font-size: 10px; color: var(--cl-faint); overflow: hidden; }
.cl-ruler span { flex: 0 0 var(--cl-bar); padding: 6px 0 0 6px; border-left: 1px solid var(--cl-line); }

/* Hero: headline set over the timeline grid, with the playhead running through it */
.cl-hero { position: relative; isolation: isolate; padding: 0 0 var(--cl-section); background: var(--cl-glow), var(--cl-night); overflow: hidden; }
.cl-hero::before { content: ""; position: absolute; inset: 28px 0 0; z-index: -1; background: var(--cl-grid-bg); opacity: .9; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.cl-hero__body { position: relative; padding-top: clamp(56px, 9vw, 120px); }
.cl-hero .cl-hero-title { max-width: 12ch; }
.cl-hero--center .cl-hero-title { margin-inline: auto; }

/* Playhead: a lime line with a flag on top. Place it with left: */
.cl-playhead { position: absolute; top: 0; bottom: 0; z-index: 2; width: 2px; background: var(--cl-lime); pointer-events: none; }
.cl-playhead::before { content: ""; position: absolute; top: 0; left: -6px; width: 14px; height: 14px; background: var(--cl-lime); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.cl-playhead__time { position: absolute; top: 18px; right: 8px; padding: 2px 6px; border-radius: 4px; background: var(--cl-lime); color: var(--cl-night); font-family: var(--cl-mono); font-size: 10px; white-space: nowrap; }

/* Cursor ring: the lime circle that marks one thing on the page */
.cl-cursor { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--cl-lime); border-radius: 50%; background: rgba(13, 13, 15, .6); }
.cl-cursor::before { content: ""; width: 2px; height: 18px; background: var(--cl-paper); }

/* Timeline: lanes of clips. The signature visual. Set a clip's column with --s (start bar) and --l (length in bars) */
.cl-timeline { position: relative; border: var(--cl-border); border-radius: var(--cl-radius-panel); background: var(--cl-deck); overflow: hidden; }
.cl-timeline__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: var(--cl-border); }
.cl-timeline__dots { display: flex; gap: 6px; }
.cl-timeline__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--cl-line-bright); }
.cl-timeline__body { position: relative; overflow: hidden; }
.cl-lane { display: grid; grid-template-columns: 116px 1fr; min-height: 54px; border-bottom: 1px solid var(--cl-grid); }
.cl-lane:last-child { border-bottom: 0; }
.cl-lane__name { display: flex; flex-direction: column; justify-content: center; padding: 8px 14px; border-right: var(--cl-border); background: var(--cl-panel); font-size: 13px; font-weight: var(--cl-weight-semi); line-height: 1.25; }
.cl-lane__name small { font-family: var(--cl-mono); font-size: 10px; font-weight: var(--cl-weight-regular); color: var(--cl-mute); }
.cl-lane__track { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; padding: 8px 0; background: linear-gradient(90deg, var(--cl-grid) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%; }
.cl-clip { grid-column: var(--s, 1) / span var(--l, 2); grid-row: 1; height: 38px; margin: 0 2px; padding: 5px 9px; overflow: hidden; border-radius: var(--cl-radius-clip); background: var(--cl-clip-volt); color: #fff; font-size: 12px; font-weight: var(--cl-weight-semi); line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.cl-clip small { display: block; font-family: var(--cl-mono); font-size: 9px; font-weight: var(--cl-weight-regular); opacity: .8; }
.cl-clip--lime { background: var(--cl-clip-lime); color: var(--cl-night); }
.cl-clip--lilac { background: var(--cl-clip-lilac); color: var(--cl-night); }
.cl-clip--coral { background: var(--cl-clip-coral); color: var(--cl-night); }
.cl-clip--ghost { background: transparent; border: 1px dashed var(--cl-line-bright); color: var(--cl-mute); }

/* Waveform: drawn bars. Heights come from the --h list in the markup (inline SVG) or this stripe */
.cl-wave { display: flex; align-items: center; gap: 3px; height: 56px; color: var(--cl-clip-lilac); overflow: hidden; }
.cl-wave i { flex: 0 0 3px; height: var(--h, 40%); border-radius: 2px; background: currentColor; opacity: .85; }
.cl-wave--volt { color: var(--cl-clip-volt); }
.cl-wave--lime { color: var(--cl-lime); }

/* Logos row: plain words in a muted line */
.cl-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; color: var(--cl-faint); font-family: var(--cl-display); font-stretch: var(--cl-stretch); font-size: 18px; font-weight: var(--cl-weight-bold); letter-spacing: -.02em; }

/* Cards */
.cl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cl-card { position: relative; padding: 26px; border: var(--cl-border); border-radius: var(--cl-radius-panel); background: var(--cl-deck); }
.cl-card p { margin: 10px 0 0; color: var(--cl-mute); }
.cl-card__chip { display: inline-block; width: 44px; height: 10px; margin-bottom: 22px; border-radius: 3px; background: var(--cl-clip-volt); }
.cl-card__chip--lime { background: var(--cl-clip-lime); }
.cl-card__chip--lilac { background: var(--cl-clip-lilac); }
.cl-card__chip--coral { background: var(--cl-clip-coral); }
.cl-card--lift { box-shadow: var(--cl-lift); }

/* Split: text beside a visual */
.cl-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .cl-split { grid-template-columns: 1fr; } }

/* Stats: big wide numbers with mono labels */
.cl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: var(--cl-border); }
.cl-stat { padding: 26px 20px 0 0; }
.cl-stat b { display: block; font-family: var(--cl-display); font-stretch: var(--cl-stretch); font-size: clamp(34px, 4vw, 52px); font-weight: var(--cl-weight-heavy); letter-spacing: var(--cl-tracking-tight); line-height: 1; }

/* Badges */
.cl-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--cl-radius-pill); background: var(--cl-raised); color: var(--cl-read); font-family: var(--cl-mono); font-size: var(--cl-text-micro); letter-spacing: .04em; white-space: nowrap; }
.cl-badge--lime { background: var(--cl-lime); color: var(--cl-night); }
.cl-badge--volt { background: var(--cl-volt); color: #fff; }

/* Pricing */
.cl-toggle { display: inline-flex; padding: 4px; border: var(--cl-border); border-radius: var(--cl-radius-pill); background: var(--cl-deck); }
.cl-toggle button { padding: 9px 18px; border: 0; border-radius: var(--cl-radius-pill); background: transparent; color: var(--cl-mute); font: inherit; font-size: 14px; font-weight: var(--cl-weight-semi); white-space: nowrap; cursor: pointer; }
.cl-toggle button[aria-pressed="true"] { background: var(--cl-paper); color: var(--cl-night); }
.cl-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: stretch; }
.cl-plan { display: flex; flex-direction: column; padding: 28px; border: var(--cl-border); border-radius: var(--cl-radius-panel); background: var(--cl-deck); }
.cl-plan--pick { border-color: var(--cl-volt); background: linear-gradient(180deg, var(--cl-volt-soft), transparent 45%), var(--cl-deck); box-shadow: var(--cl-lift); }
.cl-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cl-price { margin: 18px 0 4px; font-family: var(--cl-display); font-stretch: var(--cl-stretch); font-size: 54px; font-weight: var(--cl-weight-heavy); letter-spacing: var(--cl-tracking-tight); line-height: 1; }
.cl-price small { font-family: var(--cl-sans); font-size: 15px; font-weight: var(--cl-weight-medium); font-stretch: 100%; letter-spacing: 0; color: var(--cl-mute); }
.cl-plan p { margin: 0; color: var(--cl-mute); font-size: var(--cl-text-small); }
.cl-plan .cl-btn { margin-top: 24px; }
.cl-ticks { flex: 1; margin: 24px 0 0; padding: 22px 0 0; border-top: var(--cl-border); list-style: none; font-size: 15px; }
.cl-ticks li { position: relative; padding: 5px 0 5px 26px; color: var(--cl-read); }
.cl-ticks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 6px; border-radius: 2px; background: var(--cl-lime); }
.cl-table-wrap { overflow-x: auto; border: var(--cl-border); border-radius: var(--cl-radius-panel); }
.cl-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.cl-table th, .cl-table td { padding: 14px 18px; border-bottom: 1px solid var(--cl-grid); text-align: left; }
.cl-table thead th { background: var(--cl-panel); font-family: var(--cl-mono); font-size: var(--cl-text-micro); font-weight: var(--cl-weight-regular); letter-spacing: var(--cl-tracking-micro); text-transform: uppercase; color: var(--cl-mute); }
.cl-table td:not(:first-child), .cl-table th:not(:first-child) { text-align: center; }
.cl-table tbody tr:last-child td { border-bottom: 0; }
.cl-yes { color: var(--cl-lime); font-weight: var(--cl-weight-bold); }
.cl-no { color: var(--cl-faint); }

/* FAQ */
.cl-faq { border-top: var(--cl-border); }
.cl-faq details { border-bottom: var(--cl-border); }
.cl-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: var(--cl-weight-semi); cursor: pointer; list-style: none; }
.cl-faq summary::-webkit-details-marker { display: none; }
.cl-faq summary::after { content: "+"; font-family: var(--cl-mono); color: var(--cl-lime); }
.cl-faq details[open] summary::after { content: "\2212"; }
.cl-faq p { margin: 0 0 22px; color: var(--cl-mute); max-width: 640px; }

/* Article */
.cl-article-head { padding-top: clamp(48px, 8vw, 96px); }
.cl-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; color: var(--cl-mute); font-size: var(--cl-text-small); }
.cl-avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cl-clip-lilac); color: var(--cl-night); font-weight: var(--cl-weight-bold); font-size: 14px; }
.cl-prose { color: var(--cl-read); font-size: 18px; line-height: 1.75; }
.cl-prose h2 { margin: 52px 0 14px; font-family: var(--cl-display); font-stretch: var(--cl-stretch); font-size: 30px; font-weight: var(--cl-weight-heavy); letter-spacing: -.03em; line-height: 1.1; color: var(--cl-paper); }
.cl-prose p { margin: 0 0 22px; }
.cl-prose a { color: var(--cl-paper); text-decoration-color: var(--cl-volt); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cl-prose ul { margin: 0 0 22px; padding-left: 22px; }
.cl-prose li { margin-bottom: 8px; }
.cl-prose li::marker { color: var(--cl-lime); }
.cl-prose blockquote { margin: 36px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--cl-lime); font-family: var(--cl-display); font-stretch: var(--cl-stretch); font-size: 24px; font-weight: var(--cl-weight-bold); letter-spacing: -.02em; line-height: 1.3; color: var(--cl-paper); }
.cl-prose code { padding: 2px 6px; border-radius: 5px; background: var(--cl-raised); font-family: var(--cl-mono); font-size: .85em; color: var(--cl-lime); }
.cl-figure { margin: 36px 0; }
.cl-figure figcaption { margin-top: 10px; font-family: var(--cl-mono); font-size: 12px; color: var(--cl-mute); }
.cl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }

/* Forms */
.cl-form { display: grid; gap: 18px; }
.cl-field { display: grid; gap: 8px; }
.cl-label { font-size: var(--cl-text-small); font-weight: var(--cl-weight-semi); color: var(--cl-read); }
.cl-input, .cl-select { width: 100%; padding: 13px 15px; border: 1px solid var(--cl-line-bright); border-radius: var(--cl-radius-input); background: var(--cl-panel); color: var(--cl-paper); font: inherit; font-size: 16px; transition: border-color var(--cl-fast) var(--cl-ease), box-shadow var(--cl-fast) var(--cl-ease); }
.cl-input::placeholder { color: var(--cl-faint); }
.cl-input:focus, .cl-select:focus { outline: 0; border-color: var(--cl-volt); box-shadow: var(--cl-ring); }
.cl-hint { font-size: 13px; color: var(--cl-mute); }
.cl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .cl-row { grid-template-columns: 1fr; } }
.cl-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--cl-text-small); color: var(--cl-mute); }
.cl-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cl-volt); flex: none; }
.cl-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-choice { position: relative; }
.cl-choice input { position: absolute; opacity: 0; }
.cl-choice span { display: inline-block; padding: 8px 14px; border: 1px solid var(--cl-line-bright); border-radius: var(--cl-radius-pill); font-size: 14px; font-weight: var(--cl-weight-medium); cursor: pointer; white-space: nowrap; }
.cl-choice input:checked + span { border-color: var(--cl-lime); background: var(--cl-lime-soft); color: var(--cl-lime); }
.cl-choice input:focus-visible + span { outline: 2px solid var(--cl-volt); outline-offset: 2px; }
.cl-or { display: flex; align-items: center; gap: 14px; color: var(--cl-faint); font-family: var(--cl-mono); font-size: var(--cl-text-micro); text-transform: uppercase; letter-spacing: var(--cl-tracking-micro); }
.cl-or::before, .cl-or::after { content: ""; flex: 1; height: 1px; background: var(--cl-line); }
.cl-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.cl-auth__side { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 32px clamp(24px, 4vw, 56px); background: var(--cl-glow), var(--cl-deck); border-right: var(--cl-border); overflow: hidden; }
.cl-auth__main { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 5vw, 80px); }
.cl-auth__box { width: 100%; max-width: 440px; margin-inline: auto; }
@media (max-width: 900px) { .cl-auth { grid-template-columns: 1fr; } .cl-auth__side { border-right: 0; border-bottom: var(--cl-border); } }

/* Closing CTA band */
.cl-cta { position: relative; padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px); border-radius: calc(var(--cl-radius-panel) + 8px); background: var(--cl-glow), var(--cl-panel); overflow: hidden; }
.cl-cta .cl-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; opacity: .45; }

/* Footer */
.cl-footer { padding: 64px 0 40px; border-top: var(--cl-border); color: var(--cl-mute); font-size: var(--cl-text-small); }
.cl-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.cl-footer h4 { margin: 0 0 12px; font-family: var(--cl-mono); font-size: var(--cl-text-micro); font-weight: var(--cl-weight-regular); letter-spacing: var(--cl-tracking-micro); text-transform: uppercase; color: var(--cl-faint); }
.cl-footer ul { margin: 0; padding: 0; list-style: none; }
.cl-footer li { padding: 4px 0; }
.cl-footer a { text-decoration: none; }
.cl-footer a:hover { color: var(--cl-paper); }
.cl-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: var(--cl-border); font-family: var(--cl-mono); font-size: 12px; color: var(--cl-faint); }
@media (max-width: 760px) { .cl-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cl-lane { grid-template-columns: 78px 1fr; } .cl-lane__name { padding: 6px 8px; font-size: 12px; } .cl-clip { padding: 5px 6px; font-size: 11px; } .cl-clip small { display: none; } }
@media (max-width: 560px) { .cl-playhead__time { display: none; } }
