/* Vydio homepage: the dealt palette and type (start.mjs css, kept as printed), the app-frame recipe
   (sections-library.md) and page CSS that sits inside the visuals only. Loaded after the kit. */
:root {
  --p-bg: #f7f9f8; --p-surface: #ebf0ee; --p-ink: #06525c; --p-muted: #2f737d;
  --p-accent: #06525c; --p-accent-ink: #f7f9f8; --p-action: #06525c; --p-action-ink: #f7f9f8;
  --p-inv-bg: #06525c; --p-inv-surface: #205d66; --p-inv-ink: #f7f9f8; --p-inv-muted: #c1d0d2;
  --p-inv-accent: #f7f9f8; --p-inv-accent-ink: #06525c; --p-inv-action: #f7f9f8; --p-inv-action-ink: #06525c;
  --font-display: "Geist", system-ui, sans-serif;
  --font-text: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;
}

/* Tailwind (loaded app-wide) reads the kit's grid classes start-4, start-7 ... as inset-inline-start
   utilities; on this page they only ever mean a grid column */
.vy-home [class*="start-"] { inset-inline-start: auto; }

/* the hero's quiet second action, one line under the lead */
.hero .hero__note { margin-top: var(--s-5); font-size: var(--t-body); color: var(--ink); max-width: 30ch; }

/* ---------------------------------------------------------------- hero collage pieces */
.ly-collage .vy-bare { background: none; box-shadow: none; overflow: visible; display: flex; justify-content: center; }
.ly-collage .vy-note { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-5);
  background: var(--card, #fff); border: 1px solid var(--line); }
.vy-note__label { font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.vy-note__text { font-size: var(--t-body); line-height: 1.45; color: var(--ink); margin: 0; }
.vy-note__meta { font-size: var(--t-label); color: var(--muted); }
.ly-collage .vy-note__thumb { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-sm); }
.vy-export { justify-content: center; }
.vy-export__bar { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.vy-export__bar > i { display: block; width: 72%; height: 100%; background: var(--action); border-radius: inherit; }
.ly-collage .vy-canvas { display: flex; align-items: center; justify-content: center; gap: 4%; padding: 14% 6% 4%;
  background: #c9dcef; }
.vy-canvas__phone { flex: 0 1 44%; height: 100%; min-width: 0; }

/* ---------------------------------------------------------------- app-frame (sections-library.md, the whole recipe) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
/* the section's wrap is a column so the frame takes the rest of the screen (.fill) */
#editor .vy-fillwrap { display: flex; flex-direction: column; height: 100%; }
#editor .vy-intro { font-size: var(--t-lead); line-height: 1.5; max-width: 46ch; }

/* the open pane: the client's own scene, two live phones on the video's background */
.vy-scene { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--u-bg); }
.vy-scene__bar { display: flex; align-items: baseline; gap: var(--s-3); padding: 14px 20px; border-bottom: 1px solid var(--u-line); font-size: 13px; }
.vy-scene__title { font-weight: 500; color: var(--u-ink, var(--ink)); }
.vy-scene__meta { color: var(--u-muted, var(--muted)); }
.vy-scene__stage { flex: 1 1 0; min-height: 0; display: flex; justify-content: center; gap: 6%; padding: 28px 8% 0; background: #c9dcef; }
.vy-scene__phone { flex: 0 1 40%; min-width: 0; height: calc(100% + 120px); }
.vy-scene__play { position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(420px, calc(100% - 48px));
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--u-bg); border: 1px solid var(--u-border); font-size: 12px; color: var(--u-muted, var(--muted)); }
.vy-scene__btn { width: 0; height: 0; border-left: 9px solid var(--u-ink, var(--ink)); border-block: 6px solid transparent; }
.vy-scene__time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.vy-scene__track { flex: 1 1 auto; height: 4px; border-radius: 99px; background: var(--u-line); overflow: hidden; }
.vy-scene__track > i { display: block; width: 74%; height: 100%; background: var(--action); }
.vy-scene__speed { white-space: nowrap; }
.app > .app__pane--open::after { display: none; }
@media (max-width: 639px) { .vy-scene__phone:last-child { display: none; } .vy-scene__phone { flex-basis: 70%; } }

/* ---------------------------------------------------------------- the demo editor (live HTML) */
.vy-demo { display: flex; flex-direction: column; width: 100%; background: #fff; color: #1b2328; border: 1px solid rgb(6 82 92 / .14);
  border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 24px 48px -24px rgb(0 0 0 / .28); font-size: 13px; }
.ly-piece > .vy-demo { height: 100%; box-shadow: none; }
.vy-demo__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgb(6 82 92 / .1); }
.vy-dots { display: inline-flex; gap: 6px; } .vy-dots > i { width: 9px; height: 9px; border-radius: 50%; background: rgb(6 82 92 / .18); }
.vy-demo__crumb { color: #5b6a70; } .vy-demo__crumb i { font-style: normal; margin-inline: 4px; } .vy-demo__crumb b { font-weight: 500; color: #1b2328; }
.vy-demo__chip { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: #eef3f2; color: #3a4a50; font-size: 12px; }
.vy-demo__player { position: relative; aspect-ratio: 16 / 7.5; overflow: hidden; background: #e9eeee; }
.vy-demo__shot { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  transform: scale(1.8); transform-origin: 100% 0%; }
.vy-demo__caption { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); padding: 6px 12px; border-radius: 6px;
  background: rgb(10 20 24 / .86); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; max-width: 90%; }
@media (max-width: 639px) { .vy-demo__caption { white-space: normal; text-align: center; font-size: 12px; } }
.vy-demo__tl { position: relative; display: grid; gap: 6px; padding: 12px 14px 16px; }
.vy-demo__head { position: absolute; z-index: 1; left: calc(14px + 72px + 38%); top: 8px; bottom: 8px; width: 2px; background: #c2410c; border-radius: 2px; }
.vy-demo__track { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; }
.vy-demo__label { font-size: 12px; color: #5b6a70; }
.vy-demo__lane { position: relative; height: 22px; border-radius: 5px; background: #f1f4f4; }
.vy-demo__clip { position: absolute; top: 2px; bottom: 2px; display: flex; align-items: center; padding-inline: 6px; overflow: hidden;
  border-radius: 4px; font-size: 11px; white-space: nowrap; color: #12343a; background: #cfe3e1; }
.vy-demo__track[data-track="zoom"] .vy-demo__clip { background: #9ccfd2; }
.vy-demo__track[data-track="captions"] .vy-demo__clip { background: #f3dcb4; }
.vy-demo__track[data-track="voice"] .vy-demo__clip { background: #c9dcef; }
.vy-demo__track[data-track="sound"] .vy-demo__clip { background: #f2c3b0; }
.vy-demo--compact .vy-demo__tl { display: none; }
.vy-demo--compact .vy-demo__player { flex: 1 1 0; aspect-ratio: auto; }
#demo .at-corner { width: var(--w); }

/* ---------------------------------------------------------------- feature cards */
#chat .panel { --p-h: 336px; }
@media (max-width: 639px) { #chat .panel { --p-h: 220px; } }
.vy-typing { display: grid; gap: var(--s-4); justify-items: start; }
.vy-typing .animate-bounce { animation: none; }
.vy-typing__keys { width: 100%; border-radius: 12px; overflow: hidden; }
.vy-headers { display: grid; gap: var(--s-3); }
.vy-headers > * { border-radius: 12px; overflow: hidden; }

/* ---------------------------------------------------------------- pricing */
.vy-plan__for { color: var(--ink); }
.vy-plan__lines { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.vy-plan__lines li { font-size: var(--t-body); color: var(--ink); }
.vy-formats { margin-top: var(--s-8); }

/* ---------------------------------------------------------------- the demo split's facts */
.vy-facts { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.vy-facts li { font-size: var(--t-body); color: var(--ink); }

/* ---------------------------------------------------------------- the nav: a floating glass bar
   The client asked for a modern bar over the kit's opaque full-width one (waived in
   .taste-skill/waivers.json). It floats 8px under the top on the page's lines, the words sit in one
   segmented track, and the main action is the pill with its play disc. */
.vy-home .nav { background: transparent; border-bottom: 0; pointer-events: none; }
.vy-home .nav__bar { pointer-events: auto; height: 56px; margin-top: 8px; padding: 0 8px 0 20px; border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  box-shadow: 0 1px 1px rgb(6 82 92 / .04), 0 14px 32px -18px rgb(6 82 92 / .35); }
.vy-home .nav__logo { gap: 10px; font-size: 20px; }
.vy-home .nav__logo::before { content: ""; width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: var(--action) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M8.5 6.8v8.4L15.5 11z' fill='%23f7f9f8'/%3E%3C/svg%3E") center / 22px no-repeat; }
.vy-home .footer .nav__logo::before { width: 26px; height: 26px; background-size: 26px; }
@media (min-width: 1024px) {
  .vy-home .nav__links { align-self: center; gap: 2px; padding: 4px; border-radius: 999px;
    background: color-mix(in oklab, var(--ink) 6%, transparent); }
  .vy-home .nav__item { height: auto; }
  .vy-home .nav__links .nav__link { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
  .vy-home .nav__links .nav__link::before { display: none; }
  .vy-home .nav__links .nav__link:hover, .vy-home .nav__links .nav__link:focus-visible { background: var(--bg); box-shadow: 0 1px 2px rgb(6 82 92 / .12); }
  .vy-home .nav__actions { gap: var(--s-2); }
  .vy-home .nav__actions > .nav__link { font-size: 14px; }
}
@media (max-width: 1023px) {
  .vy-home .nav__bar { padding-right: 6px; }
  .vy-home .nav__toggle { border-radius: 999px; }
  .vy-home .nav.is-open .nav__links { top: calc(var(--nav) + 8px); }
}
@media (max-width: 639px) { .vy-home .nav__bar { height: 48px; margin-top: 4px; } }

/* ---------------------------------------------------------------- the main action: a pill with a play disc */
.vy-cta.btn--primary { padding-left: 6px; gap: 10px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 8px 20px -10px color-mix(in oklab, var(--action) 80%, transparent); }
.vy-cta__play { display: inline-grid; place-items: center; flex: none; width: calc(var(--btn-h) - 12px); height: calc(var(--btn-h) - 12px);
  border-radius: 50%; background: var(--action-ink); color: var(--action); transition: transform var(--dur) var(--ease); }
.vy-cta__play svg { width: 40%; height: 40%; margin-left: 8%; fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .vy-cta:hover .vy-cta__play { transform: scale(1.08); } }
.hero--triptych .hero__cta .vy-cta { padding-left: 8px; padding-right: var(--s-6); }
.hero--triptych .hero__cta .vy-cta .vy-cta__play { width: 48px; height: 48px; }
.btn--xl.vy-cta { padding-left: 12px; }
.btn--xl.vy-cta .vy-cta__play { width: 64px; height: 64px; }
@media (max-width: 639px) { .btn--xl.vy-cta .vy-cta__play { width: 36px; height: 36px; } }

/* ---------------------------------------------------------------- dark mode (next-themes: html.dark)
   The same teal on a night ground, chosen on load or by the switch, never by scrolling */
html.dark {
  --p-bg: #0a1416; --p-surface: #122125; --p-ink: #e3efee; --p-muted: #95b6b7;
  --p-accent: #5fc9c2; --p-accent-ink: #04282c; --p-action: #5fc9c2; --p-action-ink: #04282c;
  --p-inv-bg: #e3efee; --p-inv-surface: #cfe0df; --p-inv-ink: #06525c; --p-inv-muted: #2f737d;
  --p-inv-accent: #06525c; --p-inv-accent-ink: #f7f9f8; --p-inv-action: #06525c; --p-inv-action-ink: #f7f9f8;
  color-scheme: dark;
}
html.dark body { background: var(--bg); color: var(--ink); }
html.dark .vy-home .nav__bar { box-shadow: 0 1px 1px rgb(0 0 0 / .2), 0 14px 32px -18px rgb(0 0 0 / .7); }
html.dark .vy-demo { border-color: rgb(255 255 255 / .1); }

/* the light/dark switch: a round icon button beside the account word */
.vy-theme { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background-color var(--dur) var(--ease); }
.vy-theme:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.vy-theme svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.vy-theme__moon { opacity: 0; transform: rotate(-30deg) scale(.7); }
html.dark .vy-theme__sun { opacity: 0; transform: rotate(30deg) scale(.7); }
html.dark .vy-theme__moon { opacity: 1; transform: none; }
/* on a phone and tablet the switch stays in the bar beside the menu button */
@media (max-width: 1023px) {
  .vy-home .nav__actions { display: flex; margin-left: auto; }
  .vy-home .nav__actions > :not(.vy-theme, .btn) { display: none; }
  .vy-home .nav__toggle { margin-left: var(--s-1); }
}
@media (max-width: 639px) { .vy-home .nav__actions > .btn { display: none; } }
/* a phone holds set one: the export note gives the prompt card the whole column */
@media (max-width: 639px) {
  .ly-collage__set:first-child > .vy-export { display: none; }
  .ly-collage__set:first-child > .vy-note { top: 4% !important; }
  .vy-home .nav .nav__bar .nav__actions { display: flex; }
}
@media (max-width: 1023px) { .vy-home .nav:not(.is-open) .nav__actions > .vy-theme { display: inline-grid; } }
