/* VelvaPod sales page: page CSS only for what sits inside a visual (the drawn VelvaPod screens),
   the card groups' --p-h and the statement's layout. Everything else is the kit's system. */

/* the drawn screens share one dark surface over the lit (sage) grounds */
.vp-win, .vp-app, .vp-player, .vp-chat, .vp-tg, .vp-mini, .vp-pay, .vp-note, .vp-code {
  --fx-bg: #132614; --fx-surface: #1b321c; --fx-ink: #eef3ea; --fx-muted: #a3ae9f; --fx-accent: #c6f19d; --fx-accent-ink: #0f1f10;
  --ui-font: var(--font-text); --ui-mono: var(--font-mono);
  font: 400 13px/1.45 var(--font-text); color: var(--u-ink);
}
.vp-dots { display: inline-flex; gap: 6px; } .vp-dots i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in oklab, var(--u-ink) 22%, var(--u-bg)); }
.vp-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; color: var(--u-muted); background: var(--u-fill-2); white-space: nowrap; }
.vp-chip.is-on { background: var(--u-accent); color: var(--u-accent-ink); font-weight: 500; }
.sp { flex: 1; }

/* hero: the image window. The story (prompt, done line, actions, the picture) stands in its top 280px */
.vp-win { background: var(--u-bg); border: 1px solid var(--u-border); border-radius: 16px; box-shadow: var(--u-shadow); overflow: hidden; }
.vp-win__bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--u-line); }
.vp-win__bar b { font-weight: 500; margin-left: 6px; }
.vp-gen { display: grid; grid-template-columns: minmax(0, 1fr) 228px 132px; gap: 16px; padding: 16px; }
.vp-gen__text { display: grid; align-content: start; gap: 12px; }
.vp-prompt { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--u-fill-2); font-size: 15px; line-height: 1.45; text-align: left; }
.vp-status { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--u-muted); text-align: left; }
.vp-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--u-accent); }
/* the window's actions read as its menu words, not as page buttons */
.vp-acts { display: flex; gap: 18px; }
.vp-acts span { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--u-accent); }
.vp-acts span::before { content: "↓"; }
.vp-acts span + span { color: var(--u-text-2); }
.vp-acts span + span::before { content: "↻"; }
.vp-gen__img img { display: block; width: 228px; height: 228px; object-fit: cover; border-radius: 12px; }
.vp-gen__side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.vp-gen__side img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; opacity: .82; }
@media (max-width: 1023px) { .vp-gen { grid-template-columns: minmax(0, 1fr) 200px; } .vp-gen__side { display: none; } .vp-gen__img img { width: 200px; height: 200px; } }
@media (max-width: 639px) {
  .vp-win__bar .vp-chip:not(.is-on) { display: none; }
  .vp-gen { grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; padding: 12px; }
  .vp-prompt { font-size: 13px; padding: 10px 12px; grid-column: 1 / -1; }
  .vp-gen__text { display: contents; }
  .vp-status { grid-column: 1; grid-row: 2; align-self: start; }
  .vp-acts { grid-column: 1; grid-row: 2; align-self: end; }
  .vp-gen__img { grid-column: 2; grid-row: 2; }
  .vp-gen__img img { width: 104px; height: 104px; }
}

/* app-frame: the history list beside the open picture (sections-library.md app-frame) */
.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::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 > .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; }
}
.vp-list__head { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--u-line); }
.vp-list__head b { font-weight: 500; margin-right: auto; }
.vp-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--u-line); }
.vp-row.is-on { background: var(--u-fill-2); box-shadow: inset 2px 0 0 var(--u-accent); }
.vp-row > img, .vp-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.vp-thumb { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--u-fill-3); color: var(--u-muted); font-weight: 500; }
.vp-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vp-thumb--video::after { content: ""; position: relative; border-left: 10px solid #fff; border-block: 6px solid transparent; margin-left: 3px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .6)); }
.vp-row > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.vp-row b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-row small { font-size: 12px; color: var(--u-muted); }
.vp-row em { font-style: normal; font-size: 12px; height: 22px; padding: 0 8px; border-radius: 99px; display: inline-flex; align-items: center; background: var(--u-fill-3); color: var(--u-text-2); }
.vp-row em[data-work] { background: var(--u-tint-2); color: var(--u-ink); }
.vp-open { display: grid; gap: 12px; padding: 16px 20px; }
.vp-open__head { display: flex; align-items: center; gap: 8px; height: 36px; }
.vp-open__head b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-open__prompt { color: var(--u-text-2); max-width: 70ch; }
.vp-open__body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.vp-open__img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; }
.vp-open__side { display: grid; gap: 8px; justify-items: start; }
.vp-btn { height: 34px; padding: 0 14px; border-radius: var(--r-btn); display: inline-flex; align-items: center; font-weight: 500; background: var(--u-fill-3); }
.vp-btn.is-main { background: var(--u-accent); color: var(--u-accent-ink); }
.vp-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0 0; color: var(--u-muted); }
.vp-meta dd { margin: 0; color: var(--u-ink); }
@media (max-width: 639px) { .vp-open { padding: 14px; } .vp-open__head .vp-chip { display: none; } .vp-open__body { grid-template-columns: minmax(0, 1fr); } .vp-open__side { display: none; } .vp-open__img { max-height: 320px; } }

/* feature cards: one panel height a group */
#tinh-nang .panel { --p-h: 300px; }
#cach-dung .panel { --p-h: 300px; }
@media (max-width: 639px) { #tinh-nang .panel { --p-h: 180px; } #cach-dung .panel { --p-h: 200px; } }
/* the picture wall: six results whole in the panel, the first one large */
.vp-wall-panel { background: #142815; }
.vp-wall { position: absolute; inset: 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.vp-wall img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 10px; }
.vp-wall img:first-child { grid-row: span 2; }
@media (max-width: 639px) { .vp-wall { inset: 12px; gap: 6px; } }
.vp-player { background: var(--u-bg); border: 1px solid var(--u-border); border-radius: 14px; box-shadow: var(--u-shadow); overflow: hidden; }
.vp-player__screen { position: relative; aspect-ratio: 16 / 9; }
.vp-player__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-player__play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgb(15 31 16 / .72); }
.vp-player__play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 16px solid #fff; border-block: 10px solid transparent; }
.vp-player__bar { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 14px 0; color: var(--u-muted); font: 12px var(--font-mono); }
.vp-player__bar i { height: 4px; border-radius: 99px; background: var(--u-fill-3); }
.vp-player__bar b { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--u-accent); }
.vp-player__prompt { margin: 0; padding: 10px 14px 12px; color: var(--u-text-2); border-bottom: 1px solid var(--u-line); }
.vp-player__task { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--u-line); color: var(--u-text-2); }
.vp-player__task span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-player__task em { font-style: normal; font-size: 12px; height: 22px; padding: 0 8px; border-radius: 99px; display: inline-flex; align-items: center; background: var(--u-fill-3); white-space: nowrap; }
.vp-chat, .vp-tg { background: var(--u-bg); border: 1px solid var(--u-border); border-radius: 14px; box-shadow: var(--u-shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.vp-chat__input { margin-top: auto; height: 40px; flex: none; border-radius: 99px; display: flex; align-items: center; padding: 0 16px; background: var(--u-fill-2); color: var(--u-muted); }
.vp-tg__bot { margin: 0; max-width: 84%; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--u-fill-2); color: var(--u-text-2); }
.vp-chat__me, .vp-tg__me { margin: 0 0 0 auto; max-width: 84%; padding: 10px 12px; border-radius: 14px 14px 4px 14px; background: var(--u-fill-3); }
.vp-chat__bot { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.vp-chat__bot p { margin: 0; font-size: 14px; line-height: 1.55; }
.vp-chat__bot b { font-weight: 500; }
.vp-chat__av, .vp-tg__av { width: 28px; height: 28px; border-radius: 50%; background: var(--u-accent); }
.vp-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--u-accent); animation: vp-blink 1s steps(1) infinite; }
@keyframes vp-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vp-caret { animation: none; } }
.vp-tg__head { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--u-line); }
.vp-tg__head span:last-child { display: grid; } .vp-tg__head b { font-weight: 500; } .vp-tg__head small { color: var(--u-muted); font-size: 12px; }
.vp-tg__pic { width: 62%; display: grid; gap: 6px; }
.vp-tg__pic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.vp-tg__pic small { color: var(--u-muted); font-size: 12px; }

/* the three steps */
.vp-mini, .vp-pay, .vp-note { background: var(--u-bg); border: 1px solid var(--u-border); border-radius: 14px; box-shadow: var(--u-shadow); padding: 8px; }
.vp-mini__row { display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 0 12px; border-radius: 10px; }
.vp-mini__row b { font-weight: 500; } .vp-mini__row span { font-variant-numeric: tabular-nums; color: var(--u-text-2); }
.vp-mini__row.is-on { background: var(--u-tint-2); box-shadow: inset 0 0 0 1px var(--u-accent); }
.vp-mini__go { margin-top: 8px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--u-accent); color: var(--u-accent-ink); font-weight: 500; }
.vp-pay { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px; align-items: center; }
.vp-pay__qr { width: 112px; height: 112px; padding: 8px; background: #fff; border-radius: 8px; fill: #0f1f10; }
.vp-pay dl { display: grid; gap: 2px; margin: 0; }
.vp-pay__wait { grid-column: 1 / -1; margin: 0; display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--u-line); color: var(--u-muted); }
.vp-pay__wait i { width: 8px; height: 8px; border-radius: 50%; background: var(--u-accent); }
.vp-pay dt { color: var(--u-muted); font-size: 12px; } .vp-pay dd { margin: 0 0 6px; font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.vp-mono { font-family: var(--font-mono); letter-spacing: .02em; }
.vp-note { display: grid; gap: 6px; }
.vp-note__item { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--u-fill); }
.vp-note__item b { font-weight: 500; } .vp-note__item span { color: var(--u-muted); font-size: 12px; }
.vp-note__item.is-on { box-shadow: inset 2px 0 0 var(--u-accent); background: var(--u-fill-2); }

/* the statement (liquid-type): the headline set large, centred in its screen */
.vp-statement { justify-content: center; }
.vp-statement__head { max-width: none; }
.vp-statement__head p { max-width: 52ch; }
.vp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: var(--s-8) 0 0; }
.vp-stats dt { color: var(--muted); font-size: var(--t-small); }
.vp-stats dd { margin: var(--s-2) 0 0; }
@media (max-width: 639px) { .vp-stats { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-7); } }
/* lead and intro lines in a lighter grey than --muted (7:1 on the dark ground) */
.vp-soft, .hero--centred .hero__lead.vp-soft { color: color-mix(in oklab, var(--ink) 80%, var(--bg)); }
/* the pause button on the lit hero window: a dark ring that shows on the pale ground */
/* the pause buttons in the hero: on the lit ground a dark ring, on the dark window a lime one */
.hero__window > button:is(.ui-pause, .loop-pause):focus-visible { outline: 2px solid var(--p-bg); outline-offset: 2px; }
.hero__window .ly-piece button:is(.ui-pause, .loop-pause):focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }

/* API: the code window rising out of the split frame */
.vp-code-frame { background: var(--ground-bg); }
.vp-code-at { --ax: 40px; --ay: 48px; right: 40px; }
.vp-code { background: var(--u-bg); border: 1px solid var(--u-border); border-radius: 14px 14px 0 0; box-shadow: var(--u-shadow); }
.vp-code__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); font-size: 12px; }
.vp-code pre { margin: 0; padding: 16px 18px 72px; font: 13px/1.6 var(--font-mono); color: var(--u-ink); white-space: pre; }
.vp-code .k { color: #9fd2ff; } .vp-code .s { color: #c6f19d; } .vp-code .n { color: #ffcf8a; } .vp-code .f { color: #f2a7c3; } .vp-code .c { color: var(--u-muted); }
.vp-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.vp-facts li { padding-top: var(--s-2); border-top: 1px solid var(--line); }
.vp-facts code { font: 14px var(--font-mono); }
@media (max-width: 639px) { .vp-code-at { --ax: 16px; --ay: 24px; right: 16px; } .vp-code pre { font-size: 11.5px; padding: 12px 14px 40px; white-space: pre-wrap; overflow-wrap: anywhere; } }

/* the close: the name across the .wrap (Reddit Sans runs narrower than the kit's 8-letters-fill-1280) */
.close__word { font-size: calc(min(1280px, 100vw - 2 * var(--gut)) / 4); line-height: 1.3; }

/* pricing */
.vp-plan-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.vp-plan-list li { padding-left: 18px; position: relative; }
.vp-plan-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--accent); }
.vp-plans__note { margin-top: var(--s-5); }
.vp-plan-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.vp-faq-panel { --p-h: 260px; margin-top: var(--s-5); }
/* a phone: the three plans fit one screen (name and price on one row, two facts, the button) */
@media (max-width: 639px) {
  #bang-gia h2 .muted, .vp-plans__note { display: none; }
  #bang-gia .vp-plans { row-gap: 12px; }
  #bang-gia .card--plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 16px; }
  #bang-gia .card--plan > :is(h3, .vp-plan-head) { grid-column: 1; grid-row: 1; justify-content: flex-start; }
  #bang-gia .card--plan > .price { grid-column: 2; grid-row: 1; }
  #bang-gia .card--plan > .price .t-stat { font-size: 24px; }
  #bang-gia .card--plan > .price .muted { display: none; }
  #bang-gia .vp-plan-list { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
  #bang-gia .vp-plan-list li:nth-child(n+3) { display: none; }
  #bang-gia .card--plan > .btn { grid-column: 1 / -1; grid-row: 3; }
  .vp-faq-panel { --p-h: 200px; }
  /* the three steps take two screens, each card's picture growing to share them */
  #cach-dung { --hm: 2; }
  #cach-dung .vp-steps { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--s-6); }
  #cach-dung .vp-steps > .card { flex: 1 1 0; display: flex; flex-direction: column; }
  #cach-dung .vp-steps > .card > .panel { flex: 1 1 auto; height: auto; min-height: 200px; }
}
