/* Cantai's landing (/): the sentence hero, the listening window, the engraved score that the
   "how it works" steps play, and the short FAQ. Shared parts are in site.css. */

.content-container { max-width: none; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- hero: one sentence, two endings ---------- */
.cx .hero { padding: 76px 0 96px; }
.cx .hero-top { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: start; margin-bottom: 48px; }
.cx .hero-side { padding-top: 8px; }
.cx .hero h1 { --h1: clamp(58px, 8.2vw, 112px); font-weight: 700; font-size: var(--h1); line-height: .92; letter-spacing: -2.5px; }
.cx .hero h1 .l1 { display: block; white-space: nowrap; }
.cx .hero h1 .l2 { display: block; color: var(--a400); font-style: italic; }
.cx .hero h1 .w { display: inline-block; }

/* The ending of "Your ___ sings." leads to the other edition; .other-ed says so in words. */
.cx .pick { display: inline-flex; align-items: flex-start; color: inherit; text-decoration: none; vertical-align: baseline; }
.cx .pick .wbox { position: relative; display: inline-block; }
.cx .pick .rule { position: absolute; left: 0; right: 0; bottom: -.03em; height: 4px; border-radius: 4px; background: var(--a400); }
/* The underline is drawn once, like the header's logo, as the title finishes arriving. */
@media (prefers-reduced-motion: no-preference) {
    .cx .pick .rule { -webkit-mask: linear-gradient(90deg, #000 46%, transparent 54%) 0 0 / 260% 100% no-repeat; mask: linear-gradient(90deg, #000 46%, transparent 54%) 0 0 / 260% 100% no-repeat;
        animation: hdr-ink .9s cubic-bezier(.55, .1, .3, 1) 1.05s both; }
    html.vt-arrived .cx .pick .rule { animation: none; -webkit-mask: none; mask: none; }
}

/* The first step is the free trial; buying is the quieter second button, and the full price
   choice (app, monthly or lifetime) lives in the pricing section. */
.cx .offer { margin-top: 26px; }
.cx .ctas { display: flex; gap: 10px; }
.cx .ctas .go { flex: 1 1 auto; height: 58px; border-radius: 14px; font-size: 16.5px; box-shadow: 0 14px 34px -12px rgba(var(--rgb), .75); }
.cx .ctas .alt { flex: none; height: 58px; border-radius: 14px; font-size: 15px; padding: 0 22px; }
.cx .trial-note { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--fg3); }
.cx .trial-note a, .cx .from a { color: var(--a200); text-decoration: underline; text-decoration-color: rgba(var(--rgb), .5); text-underline-offset: 3px; }
.cx .trial-note a:hover, .cx .from a:hover { color: var(--fg); text-decoration-color: currentColor; }
.cx .from { margin-top: 6px; font-size: 13.5px; color: var(--fg3); }

/* Audio proof, one click from the top: a play button that starts the listening window below. */
.cx .hear { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 22px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--fg); text-align: left; cursor: pointer; }
.cx .hear .hp { flex: none; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--rgb), .14); box-shadow: inset 0 0 0 1.5px rgba(var(--rgb), .7); color: var(--a200); transition: background .2s, color .2s, scale .3s var(--spring-bounce); }
.cx .hear .hp svg { margin-left: 3px; }
.cx .hear b { display: block; font: 600 22px/1.1 var(--serif); }
.cx .hear small { display: block; margin-top: 3px; font-size: 13px; color: var(--fg3); }
.cx .hear:hover .hp, .cx .hear.on .hp { background: var(--a400); color: #0b1120; scale: 1.06; }

/* The other edition, said out loud under the hosts (the underlined word in the title leads there too). */
.cx .other-ed { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 9px 14px; border-radius: 10px; background: rgba(var(--o-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--o-rgb), .3); font-size: 14px; color: var(--fg3); text-decoration: none; transition: background .2s, box-shadow .2s; }
.cx .other-ed b { font-weight: 600; color: var(--o200); }
.cx .other-ed span { color: var(--o300); transition: translate .3s var(--spring-bounce); }
.cx .other-ed:hover { background: rgba(var(--o-rgb), .14); box-shadow: inset 0 0 0 1px rgba(var(--o-rgb), .55); text-decoration: none; }
.cx .other-ed:hover span { translate: 3px 0; }

.cx .ethic-near { margin: 16px 0 0; justify-content: center; }
@media (max-width: 900px) {
    .cx .hero { padding: 28px 0 64px; }
    /* One column, in reading order for a phone: the sentence, then the offer, then where it runs.
       The first column's box dissolves so its two children can take their own places. */
    .cx .hero-top { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 28px; }
    .cx .hero-top > div:first-child { display: contents; }
    .cx .hero h1 { order: 1; }
    .cx .hero-side { order: 2; padding-top: 0; }
    .cx .hero .hosts { order: 3; }
    .cx .hero h1 { --h1: clamp(44px, 13.5vw, 64px); }
    .cx .lede { font-size: 16.5px; }
    .cx .offer { margin-top: 18px; }
    .cx .ctas .go, .cx .ctas .alt { height: 52px; }
    .cx .ethic-near { justify-content: flex-start; }
}
@media (max-width: 420px) {
    .cx .ctas .alt { padding: 0 14px; font-size: 14px; }
}

/* The digit roll: each digit is a 0–9 column; only the digits that change move. */
.cx .roll { display: inline-flex; align-items: flex-start; line-height: 1; }
.cx .roll .c, .cx .roll .sl { display: inline-block; height: 1em; line-height: 1; }
.cx .roll .sl { overflow: hidden; width: .56em; transition: width var(--spring-bounce-d) var(--spring-bounce), opacity .3s; -webkit-mask: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.cx .roll .sl.off { width: 0; opacity: 0; }
.cx .roll .col { display: block; transform: translateY(calc(var(--d, 0) * -10%)); transition: transform var(--spring-bounce-d) var(--spring-bounce); }
.cx .roll .col span { display: block; height: 1em; }

.cx .hosts { margin-top: 34px; }
.cx .hosts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 22px; }
.cx .hosts li { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 72px; }
.cx .hosts img { width: 42px; height: 42px; border-radius: 10px; display: block; object-fit: contain; }
.cx .hosts span { font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--fg3); text-align: center; white-space: nowrap; }
.cx .hosts p { margin-top: 16px; font-size: 14px; color: var(--fg3); }
@media (max-width: 900px) {
    /* Under the offer, the hosts read as one line: icon and name side by side. */
    .cx .hosts { margin-top: 0; padding-top: 18px; border-top: 1px solid var(--line); }
    .cx .hosts ul { gap: 8px 16px; }
    .cx .hosts li { flex-direction: row; gap: 8px; width: auto; }
    .cx .hosts img { width: 28px; height: 28px; border-radius: 7px; }
    .cx .hosts span { font-size: 12.5px; }
    .cx .hosts p { margin-top: 10px; }
}

/* ---------- the listening window ---------- */
.cx .ph-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.cx .listen { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.cx .listen .now { border-right: 1px solid var(--line); padding-bottom: 18px; }
.cx .np { display: flex; gap: 22px; align-items: center; padding: 4px 18px 0; }
.cx .np-cover { position: relative; flex: none; }
.cx .np img { width: 132px; height: 132px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .8); }
/* The cover is the play button: big enough to find without looking for it. */
.cx .bigplay { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--a400); color: #0b1120; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px -6px rgba(0, 0, 0, .7), 0 0 0 6px rgba(var(--rgb), .22); cursor: pointer; transition: scale .3s var(--spring-bounce), background .2s; }
.cx .bigplay svg { width: 22px; height: 22px; }
.cx .bigplay:not(.playing) svg { margin-left: 3px; }
.cx .bigplay:hover { scale: 1.08; background: var(--a300); }
.cx .np h3 { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.4px; }
.cx .np p { color: var(--fg3); font-size: 15px; margin-top: 10px; max-width: 360px; }
.cx .tl { position: relative; margin: 22px 18px 0; height: 88px; border: 1px solid var(--line); border-radius: 12px; background: var(--cv); overflow: hidden; cursor: pointer; }
.cx .tl .bars { position: absolute; inset: 14px 14px 26px; display: flex; align-items: center; gap: 2px; }
.cx .tl .bars i { flex: 1; min-width: 1px; border-radius: 2px; background: rgba(139, 157, 180, .3); transition: background .12s; }
.cx .tl .bars i.on { background: var(--a400); }
/* Before anything plays, the envelope breathes slowly, on the beat; it holds still once a render starts. */
@media (prefers-reduced-motion: no-preference) {
    .cx .tl:not(.started) .bars i { animation: bar-breathe calc(var(--beat) * 8) ease-in-out infinite; animation-delay: calc(var(--i) * var(--beat) / -10.5); }
}
@keyframes bar-breathe { 50% { scale: 1 .78; } }
.cx .tl .ph { position: absolute; top: 8px; bottom: 22px; left: 14px; border-radius: 2px; width: 2px; margin-left: -1px; background: var(--ph); box-shadow: 0 0 12px rgba(229, 72, 77, .7); pointer-events: none; opacity: 0; transition: opacity .2s; }
.cx .tl.playing .ph, .cx .tl.started .ph { opacity: 1; }
.cx .tl .tm { position: absolute; left: 14px; right: 14px; bottom: 6px; display: flex; justify-content: space-between; font-size: 11px; color: var(--fg2); font-variant-numeric: tabular-nums; }
.cx .tracks ul { list-style: none; margin: 0; padding: 0 10px 10px; }
.cx .trk { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px; border: 0; border-radius: 12px; background: none; text-align: left; transition: background .15s; }
.cx .trk:hover { background: rgba(var(--rgb), .06); }
.cx .trk[aria-current="true"] { background: rgba(var(--rgb), .1); }
.cx .trk img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; display: block; }
.cx .trk .tt { display: block; font: 600 21px/1.1 var(--serif); color: var(--fg); }
.cx .trk .td { display: block; font-size: 13px; line-height: 1.45; color: var(--fg2); margin-top: 3px; }
.cx .trk .pp { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(var(--rgb), .4); color: var(--a300); transition: background .15s, color .15s; }
.cx .trk:hover .pp { background: rgba(var(--rgb), .14); }
.cx .trk.playing .pp { background: var(--a400); color: #0b1120; border-color: var(--a400); }
@media (max-width: 900px) {
    .cx .listen { grid-template-columns: 1fr; }
    .cx .listen .now { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
    /* A phone player: cover and title in one row, the timeline, then the three renders as a
       compact list without their blurbs (the one playing has its blurb up top). */
    .cx .ph-head { padding: 10px 14px; }
    .cx .np { gap: 14px; padding: 2px 14px 0; }
    .cx .np img { width: 72px; height: 72px; border-radius: 10px; }
    .cx .bigplay { width: 44px; height: 44px; box-shadow: 0 6px 18px -4px rgba(0, 0, 0, .7), 0 0 0 4px rgba(var(--rgb), .22); }
    .cx .bigplay svg { width: 17px; height: 17px; }
    .cx .np h3 { font-size: 28px; }
    .cx .np p { font-size: 13.5px; margin-top: 4px; }
    .cx .tl { height: 64px; margin: 14px 14px 0; }
    .cx .tl .bars { inset: 10px 12px 22px; }
    .cx .listen .now { padding-bottom: 14px; }
    .cx .tracks .wsec { padding-top: 10px; }
    .cx .trk { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 7px 8px; }
    .cx .trk img { width: 36px; height: 36px; border-radius: 7px; }
    .cx .trk .tt { font-size: 18px; }
    .cx .trk .td { display: none; }
    .cx .trk .pp { width: 36px; height: 36px; }
}

/* ---------- how it works: the score stays put while the steps go by ---------- */
.cx .story { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 64px; align-items: start; }
/* The plugin window is laid out at its real 520 px and scaled down; that width must not size the column. */
.cx .story > * { min-width: 0; }
/* Desktop: the three steps sit beside the stage as one short list. With scripts on, the section pins
   and the scroll moves through the steps (home.js; .story-track below). */
.cx .story { align-items: center; }
.cx .story-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 6px; }
.cx .story-steps::before { content: ""; position: absolute; left: 35px; top: 40px; bottom: 40px; width: 1px; background: var(--line3); }
.cx .sstep { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 20px; padding: 20px 18px; border-radius: 14px; cursor: pointer; transition: background .3s; }
.cx .sstep:hover { background: rgba(var(--rgb), .04); }
.cx .sstep.on { background: rgba(var(--rgb), .07); }
.cx .sstep::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--a400); transform-origin: 50% 0; scale: 1 0; }
.cx .sstep.on::after { scale: 1 1; }
.cx .sstep .sn { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line3); background: var(--page); display: flex; align-items: center; justify-content: center; font: 600 14px var(--ui); color: var(--fg2); transition: background .4s, border-color .4s, color .4s, scale .5s var(--spring-bounce); }
.cx .sstep h3 { font-size: 30px; color: var(--fg2); transition: color .4s; }
.cx .sstep p { color: var(--fg2); font-size: 16.5px; margin-top: 10px; max-width: 420px; transition: color .4s; }
.cx .sstep.on .sn { background: var(--a400); border-color: var(--a400); color: #0b1120; scale: 1.08; }
.cx .sstep.on h3 { color: var(--fg); }
.cx .sstep.on p { color: var(--fg3); }
/* Steps 2 and 3 lay the stage out like a desktop: the score shrinks to the top left and the
   plugin window opens below it on the right, covering only the score's status bar. */
.cx .story-stage { position: relative; height: var(--stage-h, 740px); }
.cx .story-stage .score-win { position: absolute; top: 0; left: 0; width: 100%; transform-origin: 0 0; transition: transform .8s var(--spring), opacity .5s; }
.cx .story-stage:is([data-at="2"], [data-at="3"]) .score-win { transform: scale(var(--score-s, .72)); }
.cx .story-stage[data-at="2"] .score-win { opacity: .55; }
.cx .score-win .sw-head { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.cx .staff-name { display: grid; align-items: center; }
.cx .staff-name > * { grid-area: 1 / 1; transition: opacity .35s, transform .55s var(--spring-bounce); }
.cx .nm-plain { display: flex; flex-direction: column; line-height: 1.25; }
.cx .nm-plain b { font-size: 14px; font-weight: 600; }
.cx .nm-plain .muted { font-size: 12px; }
.cx .score-win:is([data-at="0"], [data-at="1"]) .nm-voice, .cx .score-win[data-at="2"]:not(.voiced) .nm-voice { opacity: 0; transform: translateY(10px) scale(.92); }
.cx .score-win[data-at="3"] .nm-plain, .cx .score-win.voiced[data-at="2"] .nm-plain { opacity: 0; transform: translateY(-10px); }
.cx .score-body { padding: 20px 22px 14px; }
.cx .score-body svg { display: block; width: 100%; height: auto; overflow: visible; }
.cx .sc .stf { stroke: rgba(236, 231, 220, .38); stroke-width: 1; transition: stroke .6s; }
.cx .score-win:is([data-at="2"], [data-at="3"]) .sc .stf { stroke: rgba(var(--rgb), .62); }
.cx .sc .bl { stroke: rgba(236, 231, 220, .6); stroke-width: 1.3; }
.cx .sc .nh, .cx .sc .flag, .cx .sc .dt, .cx .sc .ks { fill: var(--ink); transition: fill .15s; }
.cx .sc .nh.hollow-in { fill: var(--page); }
.cx .sc .stem { stroke: var(--ink); stroke-width: 1.25; transition: stroke .15s; }
.cx .sc .clef { font-family: 'Noto Music', 'Bravura Text', 'Apple Symbols', 'Segoe UI Symbol', serif; fill: var(--ink); }
.cx .sc .mn { font: italic 500 11px var(--serif); fill: var(--fg2); }
.cx .sc .ts { font: 700 30px/1 var(--serif); font-variant-numeric: lining-nums; fill: var(--ink); text-anchor: middle; }
.cx .sc .ly { font: 500 17px var(--serif); fill: var(--fg); transition: fill .15s, opacity .3s calc(var(--k) * 45ms), transform .5s var(--spring) calc(var(--k) * 45ms); transform-box: fill-box; }
.cx .sc .hy { stroke: var(--fg2); stroke-width: 1; transition: opacity .3s calc(var(--k) * 45ms); }
.cx .score-win[data-at="0"] .sc .ly { opacity: 0; transform: translateY(7px); }
.cx .score-win[data-at="0"] .sc .hy { opacity: 0; }
/* Step 1 types the lyrics in, letter by letter, behind a text caret (home.js typeLyrics). */
.cx .score-win.typing .sc :is(.ly, .hy) { opacity: 0; transform: none; transition: none; }
.cx .score-win.typing .sc .ly.typed { opacity: 1; animation: ly-type calc(var(--n) * 32ms) steps(var(--n), end) both; }
.cx .score-win.typing .sc .hy.typed { opacity: 1; }
.cx .sc .caret { stroke: var(--a300); stroke-width: 1.5; opacity: 0; transition: transform .12s ease-out, opacity .25s; }
.cx .score-win.typing .sc .caret { opacity: 1; }
@keyframes ly-type { from { clip-path: inset(0 100% 0 0); } }
.cx .sc .lit .nh:not(.hollow-in), .cx .sc .lit .flag, .cx .sc .lit .dt { fill: var(--a300); }
.cx .sc .lit .stem { stroke: var(--a300); }
.cx .sc .ly.lit { fill: var(--a200); font-weight: 700; }
.cx .sc .phd { stroke: var(--ph); stroke-width: 2; filter: drop-shadow(0 0 5px rgba(229, 72, 77, .8)); opacity: 0; transition: opacity .25s; }
.cx .score-win.playing .sc .phd { opacity: 1; }
.cx .story-cap { display: none; }
@media (max-width: 980px) {
    /* Phones and tablets: the steps are three tabs over one stage. The active step's text sits right
       above the window that acts it out (the score for 1 and 3, the plugin for 2); the active tab
       fills up as the scroll moves through its step (home.js). */
    .cx .story { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .cx .story-steps { padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .cx .story-steps::before { display: none; }
    .cx .sstep { min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 10px 12px; border: 1px solid var(--line2); border-radius: 12px; background: rgba(255, 255, 255, .02); overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .3s, background .3s; }
    .cx .sstep .sn { width: 26px; height: 26px; font-size: 12px; }
    .cx .sstep h3 { font-size: 17px; line-height: 1.12; }
    .cx .sstep p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .cx .sstep.on { border-color: rgba(var(--rgb), .55); background: rgba(var(--rgb), .08); }
    .cx .sstep.on .sn { scale: 1; }
    .cx .sstep::after { content: ""; position: absolute; left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 2px; background: var(--a400); transform-origin: 0 50%; scale: 0 1; }
    .cx .sstep.on::after { scale: 1 1; }
    .cx .story-cap { display: block; min-height: 78px; margin-bottom: 14px; }
    .cx .story-cap .lbl { display: block; margin-bottom: 6px; color: var(--a300); }
    .cx .story-cap p { color: var(--fg3); font-size: 15px; line-height: 1.55; }
    .cx .story-cap.in { animation: story-cap .5s var(--spring) both; }
}
@keyframes story-cap { from { opacity: 0; translate: 0 8px; } }

/* The scroll-driven steps (home.js). The section pins for 340vh, about 80vh of scroll per step; the
   rail fills with --story-p, only the active step opens its line (the 0fr → 1fr accordion Dia uses),
   and the stage moves inside .story-frame like a camera, its edges fading out instead of cutting. */
html.story-scroll .cx .story-track { position: relative; height: 340vh; }
html.story-scroll .cx .story-pin { position: sticky; top: 0; height: 100vh; height: 100lvh; display: flex; flex-direction: column; justify-content: center; padding-top: 100px; box-sizing: border-box; }
html.story-scroll .cx .story { zoom: var(--story-zoom, 1); }
html.story-scroll .cx .story-frame { margin: -48px; padding: 48px; overflow: clip;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent), linear-gradient(transparent, #000 48px, #000 calc(100% - 48px), transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent), linear-gradient(transparent, #000 48px, #000 calc(100% - 48px), transparent);
    mask-composite: intersect; }
html.story-scroll .cx .story-stage { transform-origin: 0 0; }
html.story-scroll .cx .story-steps { min-height: 340px; align-content: center; }
html.story-scroll .cx .story-steps::after { content: ""; position: absolute; z-index: 1; left: 35px; top: 40px; bottom: 40px; width: 1px; background: var(--a400); transform-origin: 50% 0; transform: scaleY(var(--story-p, 0)); }
html.story-scroll .cx .sstep .sn { z-index: 2; }
html.story-scroll .cx .sstep::after { display: none; }
html.story-scroll .cx .sstep.done .sn { border-color: var(--a400); color: var(--a300); }
html.story-scroll .cx .sstep > div { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .3s cubic-bezier(.25, .46, .45, .94); }
html.story-scroll .cx .sstep > div > p { overflow: hidden; min-height: 0; opacity: 0; transition: opacity .3s cubic-bezier(.25, .46, .45, .94), color .4s; }
html.story-scroll .cx .sstep.on > div { grid-template-rows: auto 1fr; }
html.story-scroll .cx .sstep.on > div > p { opacity: 1; transition-delay: .08s; }
@media (max-width: 980px) {
    html.story-scroll .cx .story-track { height: 300vh; }
    html.story-scroll .cx .story-pin { padding-top: 76px; justify-content: flex-start; }
    html.story-scroll .cx .story-frame { margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
    html.story-scroll .cx .story-steps { min-height: 0; }
    html.story-scroll .cx .story-steps::after { display: none; }
    html.story-scroll .cx .sstep > div { display: block; }
    html.story-scroll .cx .sstep::after { display: block; scale: 0 1; }
    html.story-scroll .cx .sstep.on::after { scale: var(--story-in, 0) 1; }
    html.story-scroll .cx .sstep.done::after { scale: 1 1; opacity: .5; }
}
/* ---------- the plugin window: a port of CantAI-VST/web-ui (MainScreen, VoiceSelector) ----------
   Drawn at its real size, 520 × 470 under a Dorico title bar, and scaled to fit with --s. */
.cx .plug-dock { position: absolute; right: -12px; top: var(--dock-top, 340px); width: calc(520px * var(--s, .8)); transition: opacity .55s ease, translate .8s var(--spring); }
.cx .story-stage:is([data-at="0"], [data-at="1"]) .plug-dock { opacity: 0; translate: 0 36px; pointer-events: none; }
.cx .plug { width: 520px; transform: scale(var(--s, .8)); transform-origin: 0 0; margin-bottom: calc(498px * (var(--s, .8) - 1)); border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: #0b1120; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4); font: 400 13px/1.4 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #f1f5f9; text-align: left; -webkit-font-smoothing: antialiased; }
.cx .plug-cap { margin-top: 10px; font-size: 12.5px; color: var(--fg2); text-align: right; }
.cx .plug .pl-bar { position: relative; height: 28px; display: flex; align-items: center; padding: 0 12px; background: #1d2433; border-bottom: 1px solid rgba(0, 0, 0, .5); font-size: 12px; color: #a5b0c2; }
.cx .plug .pl-bar .lights i { width: 10px; height: 10px; }
.cx .plug .pl-bar .ttl { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 600; white-space: nowrap; }
.cx .plug button { font: inherit; color: inherit; border: 0; background: none; padding: 0; text-align: left; }
.cx .plug svg { display: block; }
.cx .pl-canvas { position: relative; height: 470px; display: flex; flex-direction: column; background: linear-gradient(#13243a, #0b1120); }
.cx .pl-canvas::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); pointer-events: none; }
.cx .pl-amb { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cx .pl-amb .b1, .cx .pl-amb .b2 { position: absolute; border-radius: 50%; filter: blur(55px); opacity: .55; }
.cx .pl-amb .b1 { width: 380px; height: 380px; top: -140px; left: -100px; background: radial-gradient(circle, rgba(107, 174, 162, .32), transparent 65%); animation: pl-drift-1 calc(var(--beat) * 24) ease-in-out infinite alternate; }
.cx .pl-amb .b2 { width: 420px; height: 420px; bottom: -180px; right: -120px; background: radial-gradient(circle, rgba(58, 90, 160, .35), transparent 65%); animation: pl-drift-2 calc(var(--beat) * 32) ease-in-out infinite alternate; }
.cx .pl-amb .grain { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes pl-drift-1 { to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes pl-drift-2 { from { transform: scale(1.1); } to { transform: translate(-70px, -50px) scale(1); } }

.cx .pl-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 24px 8px; }
.cx .pl-rendering { height: 32px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .7); opacity: 0; transition: opacity .3s; }
.cx .pl-rendering i { width: 6px; height: 6px; border-radius: 50%; background: #6baea2; animation: pl-pulse calc(var(--beat) * 3) cubic-bezier(.4, 0, .6, 1) infinite; }
.cx .pl-canvas.rendering .pl-rendering { opacity: 1; }
@keyframes pl-pulse { 50% { opacity: .5; } }
.cx .pl-more { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); }
.cx .pl-more svg { width: 16px; height: 16px; }

.cx .pl-main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 32px; margin-top: -16px; }
.cx .pl-flow, .cx .pl-card { width: 100%; max-width: 384px; animation: pl-in .45s var(--spring) both; }
/* The two screens swap the way the plugin does: the card replaces the part/voice flow. */
.cx .pl-canvas[data-view="pick"] .pl-card, .cx .pl-canvas[data-view="card"] .pl-flow { display: none; }
@keyframes pl-in { from { opacity: 0; translate: 0 8px; } }
.cx .pl-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cx .pl-hero img { height: 40px; width: auto; }
.cx .pl-hero h4 { margin: 0; font: 700 17px/1.25 'Cormorant Garamond', Georgia, serif; letter-spacing: -.3px; color: #fff; text-align: center; }
.cx .pl-hero h4 span { color: #6baea2; }
.cx .pl-flow { display: grid; gap: 24px; }
.cx .pl-field { display: grid; }
.cx .pl-lbl { padding-left: 4px; font-size: 11px; letter-spacing: .025em; color: rgba(255, 255, 255, .72); }
.cx .pl-desc { padding-left: 4px; margin: 6px 0 6px; font-size: 10px; line-height: 1.2; color: rgba(255, 255, 255, .56); }
.cx .plug .pl-select { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 13px; line-height: 1.45; color: #fff; transition: background .2s; }
.cx .plug .pl-select svg { width: 14px; height: 14px; color: rgba(255, 255, 255, .56); transition: transform .2s; }
.cx .plug .pl-trigger { cursor: pointer; }
.cx .plug .pl-trigger:hover { background: rgba(255, 255, 255, .09); }
.cx .plug .pl-trigger .ph { color: rgba(255, 255, 255, .56); }
.cx .plug .pl-trigger[aria-expanded="true"] svg, .cx .plug .pl-pill[aria-expanded="true"] .nm svg { transform: rotate(180deg); }

.cx .pl-canvas[data-view="pick"] .pl-hero { margin-bottom: 24px; }
.cx .pl-canvas[data-view="card"] .pl-hero { margin-bottom: 8px; }
.cx .pl-card { position: relative; padding: 12px 18px 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 14px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .09); }
.cx .pl-card hr { margin: 10px 0 8px; border: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.cx .pl-card .pl-vs { display: flex; justify-content: center; padding: 2px 0; }
.cx .plug .pl-pill { display: flex; align-items: center; gap: 12px; border-radius: 8px; cursor: pointer; }
.cx .pl-pill .ring { position: relative; width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; }
.cx .pl-pill .ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; transition: opacity .4s; background: conic-gradient(from 0deg, transparent 10%, #6baea2 45%, transparent 80%); animation: pl-spin calc(var(--beat) * 2) linear infinite; }
.cx .pl-canvas.rendering .pl-pill .ring::before { opacity: 1; }
.cx .pl-pill .ring img { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .15); }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.cx .pl-pill .txt { display: flex; flex-direction: column; gap: 3px; }
.cx .pl-pill .nm { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; line-height: 1; color: #fff; }
.cx .pl-pill .nm svg { width: 12px; height: 12px; color: rgba(255, 255, 255, .6); transition: transform .2s, color .2s; }
.cx .pl-pill:hover .nm svg { color: #6baea2; }
.cx .pl-pill .sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .66); }
.cx .pl-pill .chip { font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); padding: 1.5px 10px; line-height: 1.45; }
.cx .pl-slider { display: block; position: relative; }
.cx .pl-voices { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.cx .pl-slider .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.cx .pl-slider .row small { margin-left: 6px; font-size: 10px; color: rgba(255, 255, 255, .56); }
.cx .pl-slider output { font-variant-numeric: tabular-nums; color: #fff; }
.cx .pl-slider input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 5px; margin: 8.5px 0; border-radius: 999px; background: linear-gradient(to right, #6baea2 var(--p, 0%), rgba(0, 0, 0, .45) var(--p, 0%)); cursor: pointer; }
.cx .pl-slider input:disabled { background: rgba(255, 255, 255, .08); cursor: default; }
.cx .pl-slider:has(input:disabled) { opacity: .4; }
.cx .pl-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #6baea2; box-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.cx .pl-slider input::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #6baea2; box-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.cx .pl-slider input:disabled::-webkit-slider-thumb { background: rgba(255, 255, 255, .3); box-shadow: none; }
.cx .pl-slider input:disabled::-moz-range-thumb { background: rgba(255, 255, 255, .3); box-shadow: none; }
.cx .pl-hand { position: absolute; z-index: 9; left: 0; top: 0; pointer-events: none; opacity: 0; transform: translate(var(--x, 0), var(--y, 0)); transition: transform .5s cubic-bezier(.3, .7, .2, 1), opacity .25s; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .55)); }
.cx .pl-hand.on { opacity: 1; }
.cx .pl-hand svg { display: block; translate: -2.5px -1.5px; transition: scale .12s; transform-origin: 2.5px 1.5px; }
.cx .pl-hand path { fill: #fff; stroke: #0b1120; stroke-width: 1.2; stroke-linejoin: round; }
.cx .pl-hand.down svg { scale: .84; }
.cx .pl-slider .ends { display: flex; justify-content: space-between; margin-top: 2px; font-size: 9px; color: rgba(255, 255, 255, .52); }

/* The voice menu: voice types, and the voices of the one under the pointer. */
.cx .pl-menu { position: absolute; z-index: 5; width: 160px; }
.cx .pl-types, .cx .pl-sub { background: #0f1c2e; border: 1px solid rgba(107, 174, 162, .15); border-radius: 12px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .3), 0 8px 10px -6px rgba(0, 0, 0, .3); }
.cx .pl-types { overflow: hidden; }
.cx .plug .pl-type { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; font-size: 13px; color: rgba(255, 255, 255, .85); cursor: pointer; transition: background .1s; }
.cx .plug .pl-type svg { width: 14px; height: 14px; color: rgba(255, 255, 255, .64); }
.cx .plug .pl-type.on { background: rgba(255, 255, 255, .08); color: #fff; }
.cx .pl-sub { position: absolute; left: 100%; margin-left: 4px; width: 200px; overflow: hidden; }
.cx .pl-sub-h { padding: 6px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .64); }
.cx .pl-sub-list { max-height: 200px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.cx .plug .pl-voice { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; color: rgba(255, 255, 255, .9); cursor: pointer; transition: background .15s; }
.cx .plug .pl-voice:hover, .cx .plug .pl-voice.hot { background: rgba(255, 255, 255, .06); }
.cx .pl-voice .va { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; flex: none; background: rgba(255, 255, 255, .12); }
.cx .pl-voice .va img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx .pl-voice .vn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx .pl-voice svg { width: 14px; height: 14px; color: #6baea2; flex: none; }

@media (max-width: 980px) {
    /* One window at a time, stacked in the same cell so the stage keeps its height between steps. */
    .cx .story-stage { position: relative; top: auto; height: auto; display: grid; grid-template-columns: minmax(0, 1fr); }
    .cx .story-stage > .story-cap { grid-row: 1; }
    .cx .story-stage > .score-win, .cx .story-stage > .plug-dock { grid-row: 2; grid-column: 1; transition: opacity .45s ease, translate .7s var(--spring), visibility .45s; }
    .cx .story-stage .score-win { position: relative; align-self: center; transform: none !important; }
    /* The dock takes the column's width and the window scales into it (home.js sets --s from
       the dock, so the dock never sizes itself from a column it has widened). */
    .cx .plug-dock { position: relative; right: auto; top: auto; width: 100%; margin: 0; align-self: start; }
    .cx .story-stage[data-at="2"] .score-win { opacity: 0; visibility: hidden; translate: 0 -14px; }
    .cx .story-stage:not([data-at="2"]) .plug-dock { opacity: 0; visibility: hidden; translate: 0 18px; pointer-events: none; }
    .cx .story-stage[data-at="2"] .plug-dock { opacity: 1; visibility: visible; translate: none; pointer-events: auto; }
    .cx .plug-cap { text-align: center; }
}
@media (max-width: 600px) {
    .cx .score-body { padding: 14px 10px 4px; }
    .cx .score-win .sw-head { padding: 8px 12px; min-height: 54px; }
    .cx .score-win .voice .vs { display: none; }
}

/* ---------- FAQ ---------- */
.cx .faq-wrap { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 64px; align-items: start; }
.cx .faq-wrap .sh { margin: 0; }
@media (max-width: 900px) { .cx .faq-wrap { grid-template-columns: 1fr; gap: 28px; } }
/* ---------- first paint: the sentence arrives word by word, then the offer and the window ---------- */
@media (prefers-reduced-motion: no-preference) {
    .cx .hero h1 .w { animation: home-wordin .95s var(--spring) both; animation-delay: calc(80ms + var(--i) * 95ms); }
    .cx .hero-side, .cx .hero .hosts { animation: cx-rise .9s var(--spring) both; animation-delay: .38s; }
    .cx #listen { animation: cx-rise 1s var(--spring) both; animation-delay: .5s; }
    /* Arriving from Cantai for DAWs the wave is the entrance; the page is already there under it. */
    html.vt-arrived .cx .hero h1 .w, html.vt-arrived .cx .hero-side, html.vt-arrived .cx .hero .hosts, html.vt-arrived .cx #listen { animation: none; }
}
@keyframes home-wordin { from { opacity: 0; translate: 0 .3em; filter: blur(10px); } }

/* ---------- the closing: the next step, at the end of the page ---------- */
.cx .closing { padding-top: 24px; }
.cx .closing-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; padding: 40px 44px; background: radial-gradient(600px 300px at 0% 0%, rgba(var(--rgb), .14), transparent 70%), var(--pg); }
.cx .closing-in p { margin-top: 12px; color: var(--fg3); font-size: 16.5px; max-width: 520px; }
.cx .closing-acts { display: grid; gap: 10px; }
/* A fermata over the last call to action: the page holds here. Drawn once the card has opened. */
.cx .fermata { justify-self: center; width: 36px; height: 18px; margin-bottom: -2px; fill: var(--a300); overflow: visible; }
.cx .fermata circle { transform-box: fill-box; transform-origin: center; }
/* The arch is inked in from the left, like the logo and the hero's underline; then the dot lands. */
@media (prefers-reduced-motion: no-preference) {
    html.cx-io .cx .closing-in .fermata path { -webkit-mask: linear-gradient(90deg, #000 46%, transparent 54%) 0 0 / 260% 100% no-repeat; mask: linear-gradient(90deg, #000 46%, transparent 54%) 0 0 / 260% 100% no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
    html.cx-io .cx .closing-in.in .fermata path { animation: hdr-ink 1s cubic-bezier(.55, .1, .3, 1) .9s both; }
    html.cx-io .cx .closing-in:not(.in) .fermata circle { scale: 0; }
    html.cx-io .cx .closing-in.in .fermata circle { animation: fermata-dot .5s var(--spring-bounce) 1.8s both; }
}
@keyframes fermata-dot { from { scale: 0; } }
.cx .closing-acts .btn { height: 52px; font-size: 15px; }
.cx .closing-ms { margin-top: 4px; font-size: 13.5px; color: var(--fg2); text-align: center; text-decoration: none; }
.cx .closing-ms:hover { color: var(--fg); }
@media (max-width: 860px) { .cx .closing-in { grid-template-columns: 1fr; padding: 28px 20px; } }
