/* Vylista marketing homepage, plus the page shown inside the demo frame. */

:root {
  --pine: #0d2b29;
  --pine-2: #17403c;
  --mist: #edf5f0;
  --line: #c9ddd3;
  --moss: #4a6660;
  --coral: #ff6a45;
  --coral-deep: #c93a17;
  --sun: #ffc53d;
  --mint: #8fdcb9;
  --sky: #a9d6f2;
  --head: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --gut: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

.vl-home {
  margin: 0;
  background: var(--mist);
  color: var(--pine);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:where(.vl-home) :where(h1, h2, h3, p, ol, ul) { margin: 0; padding: 0; }
.vl-home ol, .vl-home ul { list-style: none; }
.vl-home a { color: inherit; }
.vl-home :focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 3px; }
.vl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); }
.vl-home h1, .vl-home h2, .vl-home h3 { font-family: var(--head); font-weight: 700; text-wrap: balance; }
.vl-home h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; }
.vl-skip { position: absolute; left: -999px; }
.vl-skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 1rem; z-index: 5; }

/* Buttons */
.vl-btn {
  display: inline-block;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--pine);
  border-radius: 12px;
  background: var(--coral);
  color: var(--pine);
  font: 600 1.0625rem/1.4 var(--body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--pine);
  transition: transform 0.15s, box-shadow 0.15s;
}
.vl-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--pine); }
.vl-btn:active { transform: translateY(4px); box-shadow: none; }
.vl-btn:disabled { background: #d5e2db; color: #5c746e; border-color: #9fb6ac; box-shadow: none; cursor: not-allowed; transform: none; }
.vl-btn.is-quiet { background: transparent; box-shadow: none; }
.vl-btn.is-quiet:hover { background: #fff; transform: none; }
.vl-btn.is-sun { background: var(--sun); }
.vl-btn.is-small { min-height: 44px; padding: 0.5rem 1rem; font-size: 1rem; }

/* Header */
.vl-top { display: flex; align-items: center; gap: 1.75rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.vl-logo { display: inline-flex; min-height: 44px; align-items: center; gap: 0.6rem; font: 700 1.4rem/1 var(--head); letter-spacing: -0.02em; text-decoration: none; }
.vl-logo svg { width: 30px; height: 30px; }
.vl-links { display: flex; gap: 1.5rem; margin-left: auto; }
.vl-links a { padding: 0.5rem 0; text-decoration: none; }
.vl-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.vl-hero { padding-top: clamp(1.75rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; }
.vl-hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 0.98; letter-spacing: -0.04em; }
.vl-hero .vl-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--pine-2); }
.vl-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

/* The queue: 14 figures walking towards the door */
.vl-queue { position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); height: 132px; border-bottom: 3px solid var(--pine); --slot: 13; --step: calc((100% - 7.5rem) / 15); }
.vl-door { position: absolute; left: 0; bottom: 0; width: 5.2rem; height: 118px; background: var(--pine); border-radius: 2.6rem 2.6rem 0 0; display: grid; place-items: center; color: var(--sun); font: 700 1.9rem/1 var(--head); }
.vl-person { position: absolute; bottom: 0; left: calc(6.6rem + var(--i) * var(--step)); width: 34px; height: 74px; transition: left 0.6s ease; }
.vl-person::before { content: ''; position: absolute; left: 6px; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.vl-person::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: calc(100% - 25px); border-radius: 17px 17px 0 0; background: var(--c); }
.vl-person:nth-child(3n) { --c: #6fb6a0; height: 66px; }
.vl-person:nth-child(3n+1) { --c: #8fbcd8; height: 80px; }
.vl-person:nth-child(3n+2) { --c: #b4c9bf; }
.vl-person.is-behind { left: calc(6.6rem + (var(--i) + 1) * var(--step)); }
.vl-me { left: calc(6.6rem + var(--slot) * var(--step)); height: 90px; z-index: 2; --c: var(--coral); transition: left 0.9s cubic-bezier(0.3, 1.25, 0.5, 1); }
.vl-person.vl-me { --c: var(--coral); height: 90px; }
.vl-person.vl-me::before { width: 26px; height: 26px; left: 4px; }
.vl-tag { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 8px; padding: 0.15rem 0.6rem; border-radius: 8px; background: var(--pine); color: #fff; font: 600 0.9375rem/1.4 var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Positions and swatches as classes: the project allows no inline styles */
.vl-spot-0 { --i: 0; }
.vl-spot-1 { --i: 1; }
.vl-spot-2 { --i: 2; }
.vl-spot-3 { --i: 3; }
.vl-spot-4 { --i: 4; }
.vl-spot-5 { --i: 5; }
.vl-spot-6 { --i: 6; }
.vl-spot-7 { --i: 7; }
.vl-spot-8 { --i: 8; }
.vl-spot-9 { --i: 9; }
.vl-spot-10 { --i: 10; }
.vl-spot-11 { --i: 11; }
.vl-spot-12 { --i: 12; }
.vl-spot-13 { --i: 13; }
.vl-swatch-1 { --c: #0b6b5b; }
.vl-swatch-2 { --c: #c2410c; }
.vl-swatch-3 { --c: #1d5fbf; }
.vl-swatch-4 { --c: #9d1f55; }
.vl-swatch-5 { --c: #1f2933; }
.vl-dot-1 { --c: #ff6a45; }
.vl-dot-2 { --c: #ffc53d; }
.vl-dot-3 { --c: #6fb6a0; }

/* Playground */
.vl-play { background: var(--pine); color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.vl-play-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2rem; }
.vl-play-head p { color: #cfe3da; }
.vl-bench { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.vl-rail { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; background: var(--mist); color: var(--pine); border-radius: 18px; }
.vl-field { display: block; border: 0; margin: 0; padding: 0; min-width: 0; }
.vl-field > span, .vl-field > legend { display: block; margin-bottom: 0.35rem; padding: 0; font-weight: 600; font-size: 1rem; }
.vl-field input[type='text'] { width: 100%; min-height: 46px; padding: 0.5rem 0.8rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--pine); font: inherit; }
.vl-field input[type='text']:focus { border-color: var(--pine); }
.vl-swatches { display: flex; gap: 0.5rem; }
.vl-swatches label { position: relative; width: 44px; height: 44px; }
.vl-swatches input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vl-swatches i { display: block; width: 100%; height: 100%; border-radius: 12px; background: var(--c); border: 3px solid var(--mist); box-shadow: 0 0 0 2px transparent; }
.vl-swatches input:checked + i { box-shadow: 0 0 0 3px var(--pine); }
.vl-swatches input:focus-visible + i { box-shadow: 0 0 0 3px var(--coral-deep); }
.vl-push { margin-top: auto; padding-top: 1.25rem; border-top: 2px solid var(--line); display: grid; gap: 0.8rem; }
.vl-status { font-weight: 600; min-height: 3.2em; }
.vl-rewards { display: grid; gap: 0.35rem; font-size: 1rem; color: var(--moss); }
.vl-rewards li { display: flex; align-items: center; gap: 0.6rem; }
.vl-rewards li::before { content: ''; flex: none; width: 14px; height: 14px; border: 2px solid var(--moss); border-radius: 50%; }
.vl-rewards li.is-open { color: var(--pine); font-weight: 600; }
.vl-rewards li.is-open::before { background: var(--sun); border-color: var(--pine); }
.vl-text-btn { min-height: 44px; border: 0; padding: 0; background: none; color: var(--pine); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; justify-self: start; }
.vl-window { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; min-height: 660px; }
.vl-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; background: #d9e8e0; color: var(--pine-2); font-size: 0.9375rem; }
.vl-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.vl-bar span { margin-left: 0.75rem; padding: 0.15rem 0.9rem; background: #fff; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-window iframe { flex: 1; width: 100%; border: 0; display: block; }
.vl-note { margin-top: 1rem; color: #cfe3da; font-size: 1rem; }

/* Steps */
.vl-steps { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.vl-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-top: 2.5rem; counter-reset: s; }
.vl-steps li { counter-increment: s; padding-top: 1.25rem; border-top: 3px solid var(--pine); }
.vl-steps li::before { content: counter(s); display: block; font: 700 2.6rem/1 var(--head); color: var(--coral-deep); margin-bottom: 0.75rem; }
.vl-steps h3, .vl-gets h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 0.4rem; }

/* What you get: uneven tiles, one per job */
.vl-gets { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.vl-gets ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; margin-top: 2.5rem; }
.vl-tile { grid-column: span 2; padding: 1.75rem; border-radius: 18px; background: #fff; }
.vl-tile:nth-child(1) { grid-column: span 4; background: var(--sun); }
.vl-tile:nth-child(4) { background: var(--mint); }
.vl-tile:nth-child(6) { grid-column: span 6; background: var(--sky); }
.vl-tile p { max-width: 46ch; }
.vl-tile:nth-child(1) h3, .vl-tile:nth-child(6) h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.vl-events { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.vl-events code { padding: 0.25rem 0.7rem; border-radius: 8px; background: var(--pine); color: #fff; font: 500 0.9375rem/1.5 ui-monospace, Consolas, monospace; }
.vl-ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1.4rem; align-items: end; }
.vl-ladder span { display: grid; align-content: end; padding: 0.7rem; border-radius: 10px; background: var(--pine); color: #fff; font-weight: 600; line-height: 1.25; }
.vl-ladder span:nth-child(1) { min-height: 64px; }
.vl-ladder span:nth-child(2) { min-height: 96px; }
.vl-ladder span:nth-child(3) { min-height: 128px; background: var(--coral); color: var(--pine); }

/* Embed */
.vl-embed { background: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.vl-embed .vl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 2rem 3rem; align-items: center; }
.vl-embed p { margin: 0.9rem 0 1.4rem; color: var(--pine-2); }
.vl-code { margin: 0; padding: 1.5rem; border-radius: 18px; background: var(--pine); color: #d8f0e4; font: 400 0.9375rem/1.7 ui-monospace, Consolas, monospace; overflow-x: auto; }

/* FAQ */
.vl-faq { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.vl-faq .vl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 2rem 3rem; align-items: start; }
.vl-faq details { border-top: 2px solid var(--line); }
.vl-faq details:last-child { border-bottom: 2px solid var(--line); }
.vl-faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font: 600 1.15rem/1.35 var(--body); cursor: pointer; list-style: none; }
.vl-faq summary::-webkit-details-marker { display: none; }
.vl-faq summary::after { content: '+'; font: 600 1.5rem/1 var(--head); color: var(--coral-deep); }
.vl-faq details[open] summary::after { content: '\2212'; }
.vl-faq details p { padding: 0 2.5rem 1.3rem 0; color: var(--pine-2); max-width: 62ch; }

/* Closing + footer */
.vl-end { background: var(--coral); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.vl-end .vl-wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.75rem; }
.vl-end h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); max-width: 15ch; }
.vl-end p { margin-top: 0.75rem; max-width: 46ch; font-size: 1.15rem; }
.vl-foot { background: var(--pine); color: #cfe3da; padding: 1.75rem 0; }
.vl-foot .vl-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }

/* Inside the demo frame */
.vl-frame { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #fff; color: #0d2b29; font: 400 1rem/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif; --brand: #0b6b5b; }
.vl-frame .stage { width: 100%; max-width: 440px; padding: 2rem 1.25rem; text-align: center; }
.vl-frame .brand { margin: 0 0 1.5rem; font-weight: 700; font-size: 1.1rem; color: var(--brand); overflow-wrap: anywhere; }
.vl-frame .stage h3 { margin: 0; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.12; letter-spacing: -0.02em; overflow-wrap: anywhere; text-wrap: balance; }
.vl-frame .lead { margin: 0.75rem 0 1.5rem; color: #4a6660; }
.vl-frame .vs-form { margin: 0 auto; text-align: left; }
.vl-frame.calm .vs-modal, .vl-frame.calm .vs-modal-content, .vl-frame.calm .vs-panel { animation: none !important; }

@media (max-width: 960px) {
  .vl-hero, .vl-play-head, .vl-bench, .vl-embed .vl-wrap, .vl-faq .vl-wrap { grid-template-columns: minmax(0, 1fr); }
  .vl-window { order: -1; min-height: 600px; }
  .vl-push { order: -1; margin: 0; padding: 0 0 1.25rem; border: 0; border-bottom: 2px solid var(--line); }
  .vl-status { min-height: 0; }
  .vl-steps ol { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .vl-tile, .vl-tile:nth-child(n) { grid-column: span 6; }
}
@media (min-width: 640px) and (max-width: 960px) {
  .vl-tile:nth-child(2), .vl-tile:nth-child(3), .vl-tile:nth-child(4), .vl-tile:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 720px) {
  .vl-top { gap: 1rem; }
  .vl-links a:not(.is-kept) { display: none; }
  .vl-queue { height: 112px; --step: calc((100% - 5.6rem) / 16); }
  .vl-door { width: 3.6rem; height: 96px; }
  .vl-person { left: calc(4.4rem + var(--i) * var(--step)); transform: scale(0.72); transform-origin: left bottom; }
  .vl-person.is-behind { left: calc(4.4rem + (var(--i) + 2) * var(--step)); }
  .vl-me { left: calc(4.4rem + var(--slot) * var(--step)); transform: scale(0.8); transform-origin: left bottom; }
  .vl-person:nth-child(even):not(.vl-me) { display: none; }
  .vl-tag { left: auto; right: 0; transform: none; }
  .vl-actions .vl-btn { flex: 1 1 100%; }
  .vl-rail { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vl-home *, .vl-home *::before, .vl-home *::after { transition: none !important; animation: none !important; }
}
