/* Front page (index.html). Layers on style.css. */
.home-page { background: #18181b; }
.title-2 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; }

/* Header: always visible, light over the hero (TODO #6) */
.pv-header { position: sticky; top: 0; z-index: 4; background: rgb(24 24 27 / 82%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--glass-edge); }
.pv-header .masthead { border-bottom: 0; padding-block: 12px; }
.home-page .content-surface > .section,
.home-page section[id] { scroll-margin-top: 72px; }

/* Hero */
.home-page .hero { min-block-size: auto; padding-block: 64px 48px; }
.home-page .hero .heading-1 { margin-top: 12px; }
.pv-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); }
.pv-facts li { display: inline-flex; align-items: center; gap: 8px; }
.pv-facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--violet); opacity: .6; }
.pv-replay { justify-self: end; min-height: 24px; padding: 4px 0; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.pv-replay:hover { color: var(--text); }

/* Sections: normal flow, no snapping (TODO #5) */
.home-page .section { padding-block: 80px; }
.home-page .content-surface > .section + .section { border-top: 1px solid var(--glass-edge); }

/* Pillars */
.pv-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pv-pillar { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--glass-edge); border-radius: 8px; background: var(--glass-panel); backdrop-filter: blur(5px); }
.pv-pain { padding-left: 12px; border-left: 2px solid var(--violet); color: var(--violet); font-size: 14px; line-height: 20px; }
.pv-pillar h3 { margin-top: 4px; }
.pv-proof { display: grid; gap: 8px; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); list-style: none; color: var(--text); font-size: 14px; line-height: 20px; }
.pv-proof li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
.pv-proof li::before { content: "✓"; color: var(--acid); }

/* Story: attached tabs, screenshot slots */
.pv-showcase { width: 100%; max-width: none; }
.pv-showcase .journey-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pv-showcase .journey-nav button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 4px; border: 0; border-top: 2px solid transparent; border-radius: 4px 4px 0 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; transition: background-color 200ms var(--ease); }
.pv-showcase .journey-nav button:hover { background: var(--violet-surface); color: var(--text); }
.pv-showcase .journey-nav button[aria-selected="true"] { border-top-color: var(--acid); background: var(--glass-raised); color: var(--text); }
.pv-showcase .journey-nav button[aria-selected="true"] span { color: var(--acid); }
.pv-showcase .journey-nav button:focus-visible { outline: 2px solid var(--acid); outline-offset: -4px; }
.pv-panels { padding: 16px; }
.pv-panel { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.pv-panel[data-entering] { animation: pv-veil 260ms var(--ease); }
@keyframes pv-veil { from { opacity: .6; transform: translateX(var(--pv-offset, 8px)); } }
.pv-panel h3 { margin-bottom: 8px; }
.pv-shot { display: grid; justify-items: center; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--glass-edge); border-radius: 4px; background: #18181b; color: var(--muted); }
.pv-shot a { display: block; max-width: 100%; border-radius: 4px; }
.pv-shot a:hover { outline: 1px solid var(--violet); outline-offset: 4px; }
.pv-shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: 536px; }
.pv-shot figcaption { display: flex; justify-content: space-between; gap: 16px; width: 100%; }
.pv-shot figcaption span { color: var(--violet); }
.pv-panel--wide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pv-panel--wide > div { grid-row: 1; max-width: 680px; }
.pv-panel--wide .pv-shot { padding: 0; overflow: hidden; }
.pv-panel--wide .pv-shot img { width: 100%; max-height: none; }
.pv-panel--wide .pv-shot figcaption { padding: 0 16px 12px; }
.pv-demo-note { margin-top: 12px; color: var(--muted); }
@media (max-width: 720px) {
  .pv-panel > div { grid-row: 1; }
  .pv-shot { padding: 12px; }
  .pv-shot img { max-height: none; }
}


/* Tools */
.pv-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pv-tools article { padding: 24px; border: 1px solid var(--glass-edge); border-radius: 8px; background: var(--glass-panel); }
.pv-tools h3 { margin-bottom: 8px; }
.pv-tag { display: inline-block; margin-left: 4px; padding: 0 8px; border: 1px solid #574661; border-radius: 4px; background: var(--violet-surface); color: var(--violet); font-size: 12px; line-height: 20px; vertical-align: 1px; }



.home-page .closing { margin-top: 48px; }

@media (max-width: 1050px) {
  .pv-pillars { grid-template-columns: 1fr; }
  .pv-tools { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .pv-pillars, .pv-tools, .pv-panel { grid-template-columns: 1fr; }
  .home-page .section { padding-block: 48px; }
  .home-page .hero { padding-block: 32px; }
  .pv-pillar, .pv-tools article { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-panel[data-entering] { animation: none; }
  .pv-replay { display: none; }
}


/* Hero spotlight */
.pv-spot { width: min(100%, 1040px); }
/* ---------- B: spotlight ---------- */
.pv-spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 16px; text-align: left; }
.pv-spot[hidden] { display: none; }
.pv-spot-tabs { display: grid; gap: 8px; }
.pv-spot-tabs button { position: relative; display: grid; gap: 4px; padding: 16px 16px 20px; overflow: hidden; border: 1px solid var(--glass-edge); border-radius: 8px; background: var(--glass-panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 200ms var(--ease), background-color 200ms var(--ease); }
.pv-spot-tabs button:hover { background: var(--violet-surface); }
.pv-spot-tabs button[aria-selected="true"] { border-color: #829653; background: var(--glass-raised); }
.pv-spot-tabs button:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.pv-spot-tabs .five-eyebrow { color: var(--violet); font-size: 11px; line-height: 16px; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; }
.pv-spot-tabs .five-eyebrow span { color: var(--acid); margin-right: 3px; }
.pv-spot-tabs strong { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.02em; }
.pv-spot-line { color: var(--muted); font-size: 13px; line-height: 18px; }
.pv-spot-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.pv-spot-bar span { display: block; height: 100%; width: 100%; background: var(--acid); transform: scaleX(0); transform-origin: left; }
.pv-spot-tabs button[aria-selected="true"] .pv-spot-bar span { transform: scaleX(1); }
.pv-spot.is-auto .pv-spot-tabs button[aria-selected="true"] .pv-spot-bar span { animation: pv-fill var(--spot-ms, 4500ms) linear both; }
@keyframes pv-fill { from { transform: scaleX(0); } }

.pv-spot-stage { position: relative; display: grid; min-height: 300px; border: 1px solid var(--glass-edge); border-radius: 8px; background: radial-gradient(ellipse at 60% 50%, #2c2338, #1c1923 80%); overflow: hidden; }
.pv-spot-scene { grid-area: 1 / 1; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 320ms var(--ease), transform 320ms var(--ease), visibility 0s linear 320ms; }
.pv-spot-scene.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pv-spot-scene.is-on [data-step] { animation: qiq-five-in 380ms var(--ease) both; animation-delay: calc(var(--i, 0) * 160ms + 120ms); }

/* scene 0: form */
.pv-form { display: grid; gap: 8px; width: min(100%, 420px); font-size: 13px; line-height: 18px; }
.pv-form-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 4px; background: #252131; }
.pv-form-row:first-child { grid-template-columns: 110px minmax(0, 1fr); }
.pv-form-row span { color: var(--muted); }
.pv-form-row b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.pv-lora b { color: var(--acid); }
.pv-lora i { position: relative; height: 4px; border-radius: 4px; background: #46404e; }
.pv-lora i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--violet); }
.pv-spot-scene.is-on .pv-lora i::after { animation: pv-slide 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 160ms + 200ms); }
@keyframes pv-slide { from { width: 0; } }
.pv-form-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pv-form-chips .chip { padding: 2px 6px; border-radius: 4px; background: #3c2e49; color: var(--violet); font-size: 12px; line-height: 18px; }
.pv-form-chips em { margin-left: auto; color: var(--acid); font-style: normal; font-size: 12px; }
.pv-form-go { justify-self: end; padding: 6px 12px; border-radius: 4px; background: var(--acid); color: #172009; font-weight: 600; }

/* scene 1: outputs */
.pv-out { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; width: 100%; align-items: center; }
.pv-out-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pv-out-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--glass-edge); border-radius: 4px; transition: opacity 400ms var(--ease), border-color 400ms var(--ease); }
.pv-spot-scene.is-on .pv-out-grid img:not(.hit) { animation: pv-dim 500ms 700ms var(--ease) both; }
.pv-spot-scene.is-on .pv-out-grid img.hit { animation: pv-hit 500ms 700ms var(--ease) both; }
@keyframes pv-dim { to { opacity: .25; } }
@keyframes pv-hit { to { border-color: var(--acid); } }
.pv-out-side { display: grid; gap: 8px; font-size: 12px; line-height: 16px; }
.pv-out-chip { padding: 4px 8px; border-radius: 4px; background: #3a2d48; color: var(--violet); }
.pv-out-side dl { margin: 0; padding: 4px 10px; border-radius: 4px; background: #252131; }
.pv-out-side dl div { padding: 4px 0; }
.pv-out-side dl div + div { border-top: 1px solid var(--border); }
.pv-out-side dt { color: var(--muted); }
.pv-out-side dd { color: var(--text); font-size: 13px; }
.pv-spot-scene.is-on .pv-out-side > * { animation: qiq-five-in 380ms var(--ease) both; }
.pv-spot-scene.is-on .pv-out-side > :nth-child(2) { animation-delay: 1100ms; }
.pv-spot-scene.is-on .pv-out-side > :nth-child(3) { animation-delay: 1400ms; }
.pv-swatches { display: flex; align-items: center; gap: 4px; color: var(--acid); }
.pv-swatches i { width: 16px; height: 16px; border-radius: 4px; background: var(--c); border: 1px solid var(--glass-edge); }
.pv-swatches span { margin-left: 4px; }


@media (max-width: 860px) {
  .pv-spot { grid-template-columns: 1fr; }
  .pv-spot-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pv-spot-line { display: none; }
  .pv-out { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pv-spot-tabs strong { font-size: 14px; line-height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-spot-scene { transition: none; }
  .pv-spot-scene *, .pv-spot-bar span { animation: none !important; }
}

/* Privacy scene: shared row styles */
.pv-log { width: min(100%, 440px); padding: 8px; border: 1px solid var(--glass-edge); border-radius: 8px; background: #1f1b28; font-size: 12px; line-height: 16px; }
.pv-log-head, .pv-log-foot { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px; }
.pv-log-head span { color: var(--text); font-weight: 600; }
.pv-log-head small { color: var(--muted); }
.pv-log ul { display: grid; gap: 4px; margin: 4px 0; padding: 0; list-style: none; }
.pv-log li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px; border-radius: 4px; background: #252131; }
.pv-log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-log li span { color: var(--text); }
.pv-log li small { display: block; color: var(--muted); }
.pv-log li b { padding: 1px 6px; border-radius: 4px; background: rgb(198 245 100 / 10%); color: var(--acid); font-weight: 500; }
.pv-log-foot { margin-top: 2px; border-top: 1px solid var(--border); padding-top: 8px; }
.pv-log-foot span { color: var(--muted); }
.pv-log-foot b { color: var(--acid); font-size: 14px; font-variant-numeric: tabular-nums; }
.pv-spot-scene.is-on .pv-log li { animation: qiq-five-in 380ms var(--ease) both; }
.pv-spot-scene.is-on .pv-log li:nth-child(2) { animation-delay: 260ms; }
.pv-spot-scene.is-on .pv-log li:nth-child(3) { animation-delay: 520ms; }
.pv-spot-scene.is-on .pv-log li:nth-child(4) { animation-delay: 780ms; }
.pv-spot-scene.is-on .pv-log li b { animation: pv-badge 420ms var(--ease) both; animation-delay: inherit; }
.pv-spot-scene.is-on .pv-log-foot { animation: qiq-five-in 380ms 1150ms var(--ease) both; }
@keyframes pv-badge { from { opacity: 0; transform: scale(.85); } }

/* Privacy scene: where your work lives (a local folder view) */
.pv-disk li { grid-template-columns: 16px minmax(0, 1fr) auto; }
.pv-disk li svg { color: var(--violet); }
.pv-disk .pv-log-head span { font-weight: 500; }
.pv-disk .pv-log-head i { margin-inline: 4px; color: var(--muted); font-style: normal; }

/* Loop: tabs keep cycling, scene animations play only on first visit */
.pv-spot-scene.is-seen *, .pv-spot-scene.is-seen *::after { animation: none !important; }

/* Hero facts: one quiet strip of icon + label pairs */
.pv-facts2 { display: inline-flex; flex-wrap: wrap; justify-content: center; margin: 24px auto 0; padding: 0; list-style: none; border: 1px solid var(--glass-edge); border-radius: 8px; background: var(--glass-inset); }
.pv-facts2 li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; color: var(--muted); font-size: 13px; line-height: 20px; }
.pv-facts2 li + li { border-left: 1px solid var(--glass-edge); }
.pv-facts2 svg { flex: none; color: var(--violet); }
@media (max-width: 720px) {
  .pv-facts2 { display: grid; grid-template-columns: 1fr 1fr; }
  .pv-facts2 li { padding: 8px 12px; }
  .pv-facts2 li + li { border-left: 0; }
  .pv-facts2 li:nth-child(even) { border-left: 1px solid var(--glass-edge); }
  .pv-facts2 li:nth-child(n+3) { border-top: 1px solid var(--glass-edge); }
}
/* Revisited scenes keep their finished state (the outputs filter ends dimmed and highlighted) */
.pv-spot-scene.is-seen .pv-out-grid img:not(.hit) { opacity: .25; }
.pv-spot-scene.is-seen .pv-out-grid img.hit { border-color: var(--acid); }
.pv-spot-scene.is-seen .pv-out-grid img { transition: none; }

/* Tools section: icon, a small looping product demo, then the description. */
.pv-tools2 article { display: flex; flex-direction: column; gap: 12px; transition: border-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.pv-tools2 article:hover { border-color: #574661; transform: translateY(-1px); box-shadow: 0 0 0 1px rgb(222 208 237 / 6%), 0 8px 24px rgb(48 41 54 / 45%); }
.pv-tool-head { display: flex; align-items: center; gap: 8px; }
.pv-tool-head svg { flex: none; color: var(--violet); }
.pv-tool-head h3 { margin: 0; }
.pv-tool-head .pv-tag { margin-left: auto; }
.pv-tool-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; padding: 8px; border-radius: 4px; background: var(--glass-inset); border: 1px solid var(--border); font-size: 12px; line-height: 16px; }
.pv-tool-demo em { color: var(--acid); font-style: normal; }
.pv-tool-demo em:last-child { margin-left: auto; }
.pv-sw { width: 20px; height: 20px; border-radius: 4px; background: var(--c); border: 1px solid var(--glass-edge); }
.pv-row { padding: 2px 8px; border-radius: 4px; background: #252131; color: var(--text); }
.pv-row-on { box-shadow: inset 0 0 0 1px #829653; }
.pv-chip { padding: 2px 8px; border-radius: 4px; background: var(--violet-surface); color: var(--violet); }
.pv-chip-off { background: none; border: 1px dashed #574661; color: var(--muted); }
.pv-tools2 p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .pv-tools2 article, .pv-tools2 article:hover { transition: none; transform: none; } }

/* Looping demos: every card plays; paused while the section is off screen */
.pv-ticker { display: inline-block; height: 16px; overflow: hidden; vertical-align: middle; }
.pv-ticker > span { display: flex; flex-direction: column; }
.pv-ticker > span > span { height: 16px; white-space: nowrap; }
.pv-bar { flex-basis: 100%; height: 3px; border-radius: 4px; background: #46404e; overflow: hidden; }
.pv-bar i { display: block; height: 100%; width: 100%; background: var(--acid); transform-origin: left; transform: scaleX(1); }
.pv-bar-resume i { transform: scaleX(.58); }
.pv-tools2 article { position: relative; }

.pv-tools2 article .pv-sw { animation: pv-sw-pop 3.2s var(--ease) infinite; }
.pv-tools2 article .pv-sw:nth-child(2) { animation-delay: .15s; }
.pv-tools2 article .pv-sw:nth-child(3) { animation-delay: .3s; }
.pv-tools2 article .pv-sw:nth-child(4) { animation-delay: .45s; }
.pv-tools2 article .pv-sw:nth-child(5) { animation-delay: .6s; }
@keyframes pv-sw-pop { 0%, 40%, 100% { transform: none; } 18% { transform: translateY(-3px); } }
.pv-tools2 article .pv-sw ~ em { animation: pv-nudge 3.2s var(--ease) infinite; }
@keyframes pv-nudge { 0%, 30%, 100% { transform: none; opacity: .7; } 45%, 70% { transform: translateX(3px); opacity: 1; } }

.pv-tools2 article .pv-ticker > span { animation: pv-tick 6s var(--ease) infinite; }
@keyframes pv-tick { 0%, 26% { transform: translateY(0); } 33%, 59% { transform: translateY(-16px); } 66%, 92% { transform: translateY(-32px); } 100% { transform: translateY(-48px); } }

.pv-tools2 article .pv-chip:not(.pv-chip-off) { animation: pv-chip-on 4s var(--ease) infinite; }
.pv-tools2 article .pv-chip:nth-child(2) { animation-delay: .5s; }
.pv-tools2 article .pv-chip:nth-child(3) { animation-delay: 1s; }
@keyframes pv-chip-on { 0%, 100% { background: var(--violet-surface); color: var(--violet); } 12%, 30% { background: rgb(198 245 100 / 14%); color: var(--acid); } }

.pv-tools2 article .pv-bar:not(.pv-bar-resume) i { animation: pv-up 3.6s ease-in-out infinite; }
@keyframes pv-up { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.pv-tools2 article .pv-row-on { animation: pv-done 3.6s ease-in-out infinite; }
@keyframes pv-done { 0%, 66% { opacity: .35; } 75%, 100% { opacity: 1; } }

.pv-tools2 article .pv-bar-resume i { animation: pv-resume 5s ease-in-out infinite; }
@keyframes pv-resume { 0% { transform: scaleX(.2); } 38% { transform: scaleX(.58); } 44%, 52% { transform: scaleX(.58); opacity: .3; } 58% { opacity: 1; } 100% { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .pv-tools2 * { animation: none !important; }
}

/* Workflow JSON: Copy JSON -> Copied loop */
.pv-copy { position: relative; display: inline-grid; margin-left: auto; }
.pv-copy > span { grid-area: 1 / 1; padding: 2px 8px; border-radius: 4px; white-space: nowrap; text-align: center; }
.pv-copy-a { background: var(--violet-surface); color: var(--violet); }
.pv-copy-b { background: rgb(198 245 100 / 14%); color: var(--acid); opacity: 0; }
.pv-tools2 article .pv-copy-a { animation: pv-copy-out 3.4s var(--ease) infinite; }
.pv-tools2 article .pv-copy-b { animation: pv-copy-in 3.4s var(--ease) infinite; }
@keyframes pv-copy-out { 0%, 35% { opacity: 1; } 42%, 85% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes pv-copy-in { 0%, 35% { opacity: 0; transform: translateY(3px); } 42%, 85% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }

/* Direct generation: Checked -> Queued -> Rendering -> Done loop */
.pv-gen { display: inline-grid; margin-left: auto; }
.pv-gen > span { grid-area: 1 / 1; padding: 2px 8px; border-radius: 4px; white-space: nowrap; text-align: center; background: var(--violet-surface); color: var(--violet); opacity: 0; }
.pv-gen .pv-gen-4 { background: rgb(198 245 100 / 14%); color: var(--acid); opacity: 1; }
.pv-bar-gen i { transform: scaleX(1); }
.pv-tools2 article .pv-gen > span { animation: 4.8s var(--ease) infinite; }
.pv-tools2 article .pv-gen-1 { animation-name: pv-g1; }
.pv-tools2 article .pv-gen-2 { animation-name: pv-g2; }
.pv-tools2 article .pv-gen-3 { animation-name: pv-g3; }
.pv-tools2 article .pv-gen-4 { animation-name: pv-g4; }
@keyframes pv-g1 { 0%, 18% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes pv-g2 { 0%, 18% { opacity: 0; } 22%, 36% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes pv-g3 { 0%, 36% { opacity: 0; } 40%, 74% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes pv-g4 { 0%, 74% { opacity: 0; } 78%, 96% { opacity: 1; } 100% { opacity: 0; } }
.pv-tools2 article .pv-bar-gen i { animation: pv-gbar 4.8s ease-in-out infinite; }
@keyframes pv-gbar { 0%, 38% { transform: scaleX(0); } 74%, 96% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

.pv-tools2:not(.is-visible) * { animation-play-state: paused; }

/* Privacy section: what stays (left) and what leaves, and why (right). */
.pv-pr-label { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }


.pv-pr-a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
.pv-pr-a[hidden] { display: none; }
.pv-pr-stays, .pv-pr-leaves { padding: 24px; border: 1px solid var(--glass-edge); border-radius: 8px; background: var(--glass-panel); }
.pv-pr-stays { border-color: #829653; }
.pv-pr-stays ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pv-pr-stays li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; color: var(--text); font-size: 15px; line-height: 22px; }
.pv-pr-stays li::before { content: "✓"; color: var(--acid); }
.pv-pr-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 20px; }
.pv-pr dl { margin: 0; }
.pv-pr dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 10px 0; }
.pv-pr dl div + div { border-top: 1px solid var(--border); }
.pv-pr dt { color: var(--text); font-size: 14px; line-height: 20px; font-weight: 600; }
.pv-pr dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }

@media (max-width: 720px) {
  .pv-pr-a { grid-template-columns: 1fr; }
  .pv-pr-stays, .pv-pr-leaves { padding: 16px; }
  .pv-pr dl div { grid-template-columns: 1fr; gap: 2px; }
}

/* What stays: icon grid with a one-time check-in */
.pv-pr-stays-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--acid); }
.pv-pr-stays-head .pv-pr-label { margin: 0; }
.pv-pr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pv-pr-grid li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px; background: #252131; }
.pv-pr-grid li::before { content: none; }
.pv-pr-grid svg { color: var(--violet); }
.pv-pr-grid b { display: block; color: var(--text); font-size: 14px; line-height: 20px; font-weight: 600; }
.pv-pr-grid small { display: block; color: var(--muted); font-size: 12px; line-height: 16px; }
.pv-pr-grid i { color: var(--acid); font-style: normal; font-size: 13px; opacity: 0; transform: scale(.6); }
.pv-pr-stays.is-in .pv-pr-grid i { opacity: 1; transform: none; transition: opacity 260ms var(--ease), transform 260ms var(--ease); transition-delay: calc(var(--i) * 90ms + 150ms); }
@media (max-width: 1050px) { .pv-pr-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pv-pr-grid i { transition: none !important; } }
.pv-pr-a .pv-pr-stays { display: flex; flex-direction: column; } .pv-pr-a .pv-pr-grid { flex: 1; grid-auto-rows: 1fr; }

/* Pricing: Premium leads, Free stays quiet. */
.pv-plans2 { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }

/* Premium: the lead card */
.pv-prem { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 32px; overflow: hidden; border: 1px solid #829653; border-radius: 8px; background: linear-gradient(180deg, rgb(198 245 100 / 6%), transparent 40%), var(--glass-panel); }
.pv-prem::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--acid); }
.pv-prem-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pv-prem-sub { margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 20px; }
.pv-billing { display: inline-flex; padding: 3px; border: 1px solid var(--glass-edge); border-radius: 6px; background: var(--glass-inset); }
.pv-billing button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border: 0; border-radius: 4px; background: none; color: var(--muted); font: 500 13px/20px inherit; font-family: inherit; cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.pv-billing button span { color: var(--acid); font-size: 12px; }
.pv-billing button:hover { color: var(--text); }
.pv-billing button[aria-checked="true"] { background: var(--glass-raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-edge); }
.pv-billing button:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.pv-prem-price { margin-top: 20px; }
.pv-prem-price b { font-size: 56px; line-height: 56px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pv-prem-price span { color: var(--muted); font-size: 16px; }
.pv-prem-note { min-height: 20px; color: var(--violet); font-size: 14px; line-height: 20px; }
.pv-prem-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); list-style: none; }
.pv-prem-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; }
.pv-prem-list svg { margin-top: 2px; color: var(--acid); }
.pv-prem-list b { display: block; color: var(--text); font-size: 15px; line-height: 20px; font-weight: 600; }
.pv-prem-list span { color: var(--muted); font-size: 13px; line-height: 18px; }
.pv-prem-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: auto; padding-top: 28px; }
.pv-prem-cta .primary { min-height: 44px; padding-inline: 20px; }
.pv-prem-cta p { flex: 1 1 220px; }

/* Free: quieter, compact */
.pv-free { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--glass-edge); border-radius: 8px; background: var(--glass-inset); }
.pv-free h3 { color: var(--muted); }
.pv-free-price { margin-top: 8px; color: var(--text); font-size: 28px; line-height: 32px; font-weight: 600; }
.pv-free-sub { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 20px; }
.pv-free ul { display: grid; gap: 8px; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); list-style: none; color: var(--muted); font-size: 14px; line-height: 20px; }
.pv-free li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
.pv-free li::before { content: "✓"; color: var(--muted); }

[data-price], [data-price-note] { transition: opacity 160ms var(--ease); }
.is-swapping [data-price], .is-swapping [data-price-note] { opacity: 0; }

@media (max-width: 900px) {
  .pv-plans2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pv-prem { padding: 20px; }
  .pv-prem-list { grid-template-columns: 1fr; }
  .pv-prem-price b { font-size: 44px; line-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-billing button, [data-price], [data-price-note] { transition: none; }
}

/* "Save 27%": a soft, slow pulsing glow */
.pv-billing button span { padding: 0 6px; border-radius: 4px; background: rgb(198 245 100 / 10%); animation: pv-save-glow 2.8s ease-in-out infinite; }
@keyframes pv-save-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgb(198 245 100 / 0); text-shadow: none; }
  50% { box-shadow: 0 0 10px 1px rgb(198 245 100 / 28%); text-shadow: 0 0 6px rgb(198 245 100 / 45%); }
}
@media (prefers-reduced-motion: reduce) { .pv-billing button span { animation: none; } }

/* Prompt Center ticker: clip exactly one line (no padding inside the clip) */
.pv-row.pv-ticker { height: 20px; padding: 0 8px; }
.pv-ticker > span > span { height: 20px; line-height: 20px; }
@keyframes pv-tick { 0%, 26% { transform: translateY(0); } 33%, 59% { transform: translateY(-20px); } 66%, 92% { transform: translateY(-40px); } 100% { transform: translateY(-60px); } }

/* Works with what you already have: three setup steps. */
.pv-band2 { display: grid; gap: 24px; padding-block: 56px; border-top: 1px solid var(--glass-edge); }
.pv-band2-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 16px 40px; }
.pv-band2-lead p { max-width: 52ch; }
.pv-bo[hidden] { display: none !important; }
.pv-bo-foot { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 20px; }

/* C: three steps */
.pv-bo-c ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--glass-edge); border-radius: 8px; background: var(--glass-panel); }
.pv-bo-c li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 20px; }
.pv-bo-c li + li { border-left: 1px solid var(--border); }
.pv-bo-c li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #829653; color: var(--acid); font-size: 13px; font-weight: 600; }
.pv-bo-c b { color: var(--text); font-size: 15px; line-height: 22px; font-weight: 600; }
.pv-bo-c p { margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 20px; }
.pv-bo-c.is-in li > span { animation: pv-pop 360ms var(--ease) both; }
.pv-bo-c.is-in li:nth-child(2) > span { animation-delay: 160ms; }
.pv-bo-c.is-in li:nth-child(3) > span { animation-delay: 320ms; }
@keyframes pv-pop { from { opacity: 0; transform: scale(.7); } }

@media (max-width: 900px) {
  .pv-band2-lead, .pv-bo-c ol { grid-template-columns: 1fr; }
  .pv-bo-c li + li { border-left: 0; border-top: 1px solid var(--border); }
}
@media (prefers-reduced-motion: reduce) { .pv-bo * { animation: none !important; } }

/* Number circles sit centred on the first line of each step */
.pv-bo-c li { align-items: start; }
.pv-bo-c li > span { margin-top: -3px; line-height: 1; font-variant-numeric: tabular-nums; padding-top: 1px; }

/* Setup steps: circles centred on the whole step, digits centred in the circle */
.pv-bo-c li { align-items: center; }
.pv-bo-c li > span { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 28px; height: 28px; margin: 0; padding: 0; line-height: 1; text-align: center; }

/* Tool demos play four times, then rest in their finished state */
.pv-tools2 article * { animation-iteration-count: 4 !important; }
.pv-billing button span { animation-iteration-count: 5; }

/* Agent API showcase and creator note. */

/* ---- Agent API ---- */
.pv-agent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 16px; }
.pv-agent-side { display: grid; align-content: start; gap: 16px; }
.pv-agent-modes { display: grid; gap: 8px; }
.pv-agent-modes button { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--glass-edge); border-radius: 8px; background: var(--glass-panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 200ms var(--ease), background-color 200ms var(--ease), transform 200ms var(--ease); }
.pv-agent-modes button:hover { background: var(--violet-surface); transform: translateY(-1px); }
.pv-agent-modes button[aria-selected="true"] { border-color: #829653; background: var(--glass-raised); box-shadow: inset 2px 0 0 var(--acid); }
.pv-agent-modes button:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.pv-agent-modes b { font-size: 15px; line-height: 22px; font-weight: 600; }
.pv-agent-modes span { color: var(--muted); font-size: 13px; line-height: 18px; }
.pv-agent-guard { display: grid; gap: 8px; margin: 0; padding: 16px; border: 1px solid var(--glass-edge); border-radius: 8px; background: var(--glass-inset); list-style: none; }
.pv-agent-guard li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; color: var(--muted); font-size: 13px; line-height: 20px; }
.pv-agent-guard li::before { content: "✓"; color: var(--acid); }

.pv-agent-panel { display: grid; align-content: start; gap: 16px; padding: 24px; border: 1px solid var(--glass-edge); border-radius: 8px; background: var(--glass-panel); }
.pv-agent-flow { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pv-agent-flow[hidden] { display: none; }
.pv-agent-flow li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 10px 0; }
.pv-agent-flow li + li::before { content: ""; position: absolute; left: 13.5px; top: -10px; height: 20px; border-left: 1px dashed var(--glass-edge); }
.pv-agent-flow li > span { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 28px; height: 28px; border: 1px solid #829653; border-radius: 50%; color: var(--acid); font-size: 13px; font-weight: 600; line-height: 1; }
.pv-agent-flow b { display: block; color: var(--text); font-size: 15px; line-height: 22px; font-weight: 600; }
.pv-agent-flow p { color: var(--muted); font-size: 14px; line-height: 20px; }
.pv-agent-flow.is-playing li { animation: qiq-five-in 380ms var(--ease) both; }
.pv-agent-flow.is-playing li:nth-child(2) { animation-delay: 120ms; }
.pv-agent-flow.is-playing li:nth-child(3) { animation-delay: 240ms; }
.pv-agent-flow.is-playing li:nth-child(4) { animation-delay: 360ms; }

/* ---- Creator note ---- */
.pv-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; padding: 32px; border: 1px solid var(--glass-edge); border-radius: 8px; background: var(--glass-panel); }
.pv-note-side { display: grid; align-content: start; justify-items: start; gap: 12px; }
.pv-note-side img { border-radius: 12px; }
.pv-note-body { display: grid; gap: 12px; max-width: 62ch; }
.pv-note-body h2 { margin: 0; }
.pv-note-body p { color: var(--muted); font-size: 16px; line-height: 26px; }
.pv-note-sign { display: grid; gap: 2px; margin-top: 8px; color: var(--text) !important; font: 600 22px/28px Georgia, serif !important; letter-spacing: -.02em; }
.pv-note-sign span { color: var(--violet); font: 500 13px/18px "Segoe UI Variable", "Segoe UI", sans-serif; letter-spacing: 0; }

@media (max-width: 900px) {
  .pv-agent, .pv-note { grid-template-columns: 1fr; }
  .pv-note { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-agent-modes button { transition: none; }
  .pv-agent-modes button:hover { transform: none; }
  .pv-agent-flow.is-playing li { animation: none; }
}

/* Left column fills the panel height: the two mode buttons grow, the safeguards sit at the bottom */
.pv-agent { align-items: stretch; }
.pv-agent-side { display: flex; flex-direction: column; gap: 16px; }
.pv-agent-modes { flex: 1; grid-auto-rows: 1fr; }
.pv-agent-modes button { align-content: center; padding: 20px; }
.pv-agent-modes b { font-size: 17px; line-height: 24px; }
.pv-agent-modes span { font-size: 14px; line-height: 20px; }

/* Distribute agent steps through the available panel height. */
.pv-agent-panel { align-content: stretch; }
.pv-agent-flow { display: flex; flex-direction: column; }
.pv-agent-flow li { flex: 1; padding: 0 0 24px; }
.pv-agent-flow li:last-child { flex: 0; padding-bottom: 0; }
.pv-agent-flow li + li::before { content: none; }
.pv-agent-flow li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; border-left: 1px dashed var(--glass-edge); }
@media (max-width: 900px) {
  .pv-agent-flow li { flex: none; }
}

/* Keep the final invitation adjacent to the footer. */
.home-page .content-surface > .section.pv-closing { padding-block: 0; border-top: 0; }
.home-page .pv-closing .closing { margin-top: 0; }

.home-page .footer { grid-template-columns: 1fr auto; }
.home-page .footer-links { grid-column: 2; }

/* Keep the empty brand column from shifting header controls. */
.home-page .pv-header nav { grid-column: 2; }
.home-page .pv-header .masthead-download { grid-column: 3; }
@media (max-width: 700px) {
  .home-page .pv-header .masthead { grid-template-columns: 1fr auto; }
  .home-page .pv-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .home-page .pv-header .masthead-download { grid-column: 2; grid-row: 1; }
}

/* Use the tools section's normal top padding as the setup-to-tools gap. */
.home-page .pv-band2 { padding-bottom: 0; }

/* Full workspace announcement: Coal, Acid Bloom and Deep Violet. */
.home-page .pv-free-announcement { position:relative; overflow:hidden; display:grid; grid-template-columns:1fr 1.15fr; gap:48px; padding:48px; border:1px solid var(--glass-edge); border-top:3px solid var(--acid); border-radius:8px; background:radial-gradient(ellipse at 2% 0%,rgb(198 245 100 / 13%),transparent 48%),radial-gradient(ellipse at 100% 100%,rgb(135 89 176 / 22%),transparent 60%),#202024; }
.home-page .pv-free-intro { display:grid; align-content:start; gap:24px; }
.home-page .pv-free-badge { width:fit-content; padding:8px 12px; border:1px solid rgb(198 245 100 / 40%); border-radius:4px; background:rgb(198 245 100 / 9%); color:var(--acid); font-weight:600; }
.home-page .pv-free-intro h2 { font-size:clamp(32px,3.5vw,48px); line-height:1.08; }
.home-page .pv-free-intro h2 span { color:var(--acid); }
.home-page .pv-free-amount { display:flex; align-items:center; gap:16px; }
.home-page .pv-free-amount strong { font-size:64px; line-height:1; letter-spacing:-.04em; }
.home-page .pv-free-amount span { color:var(--muted); max-width:130px; line-height:1.5; }
.home-page .pv-free-features { display:grid; grid-template-columns:1fr 1fr; gap:24px; align-content:center; }
.home-page .pv-free-features article { display:flex; align-items:flex-start; gap:12px; padding-block:16px; border-top:1px solid var(--glass-edge); }
.home-page .pv-free-features h3 { margin-bottom:8px; }
.home-page .pv-included { color:var(--acid); line-height:24px; }
.home-page .pv-waitlist-paused { display:inline-flex; align-items:center; justify-content:center; background:#302e35 !important; border:1px solid #56525d !important; color:#b6b5bf !important; opacity:1; cursor:not-allowed; box-shadow:none !important; }
@media(max-width:1000px) { .home-page .pv-free-announcement { grid-template-columns:1fr; gap:32px; padding:32px; } }
@media(max-width:560px) { .home-page .pv-free-announcement { padding:24px; } .home-page .pv-free-features { grid-template-columns:1fr; gap:8px; } }

/* Give large headings natural letter spacing and enough room for glyphs. */
.home-page .hero .heading-1 { letter-spacing:-.02em; line-height:1.12; font-kerning:normal; }
.home-page .section h2.heading-2 { letter-spacing:-.02em; line-height:1.15; font-kerning:normal; }
.home-page #privacy .section-lead .body-3 { margin-top:16px; }
