/* Zajel — entry + stage */
body { background: var(--ink); color: #fff; min-block-size: 100dvh; }

/* ---------- hero ---------- */
.hero { position: relative; min-block-size: 100dvh; overflow: hidden; display: grid; align-items: center; background: radial-gradient(1200px 600px at 85% 10%, rgba(91, 61, 245, .28), transparent 60%), radial-gradient(900px 500px at 10% 100%, rgba(18, 184, 134, .16), transparent 60%), var(--ink); }
.trail-art { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: .5; }
#hpath { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 2.4s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rider { filter: drop-shadow(0 0 10px rgba(18, 184, 134, .9)); }
.hero-in { position: relative; max-inline-size: 1080px; margin-inline: auto; padding: 48px 24px 56px; inline-size: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: var(--t-lg); }
.brand img { inline-size: 34px; block-size: 34px; }
.brand em { font-style: normal; font-size: var(--t-xs); font-weight: 500; color: #B8B0D4; background: rgba(255, 255, 255, .07); padding: 3px 10px; border-radius: var(--r-pill); margin-inline-start: 6px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.3; font-weight: 800; margin: 28px 0 14px; max-inline-size: 15em; }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.8; color: #CFC8E6; max-inline-size: 38em; margin: 0 0 40px; }
.q { font-size: var(--t-lg); font-weight: 600; margin: 0 0 14px; color: #fff; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-inline-size: 860px; }
.choice { display: grid; grid-template-rows: auto 1fr auto; text-align: start; background: rgba(255, 255, 255, .06); border-radius: 22px; padding: 12px; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .2s, box-shadow .2s, transform .2s var(--ease); }
.choice:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transform: translateY(-2px); }
.choice .art { block-size: 168px; border-radius: 14px; overflow: hidden; background: #EFEBF7; position: relative; }
.choice .art.single img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.choice .art.single .tagline { position: absolute; inset-block-end: 10px; inset-inline-start: 10px; background: var(--ink); color: #fff; font-size: var(--t-xs); font-weight: 600; padding: 3px 10px; border-radius: 8px; }
.choice .art.multi { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 3px; background: rgba(255, 255, 255, .06); }
.choice .art.multi img { inline-size: 100%; block-size: 100%; min-block-size: 0; object-fit: cover; }
.choice .ct { padding: 14px 6px 6px; }
.choice .ct b { display: block; font-size: var(--t-xl); line-height: 1.35; }
.choice .ct span { display: block; font-size: var(--t-sm); color: #CFC8E6; line-height: 1.7; margin-block-start: 4px; }
.choice .go { margin: 10px 6px 4px; justify-self: start; background: #fff; color: var(--ink); font-weight: 700; font-size: var(--t-sm); padding: 9px 16px; border-radius: 12px; }
.choice:hover .go { background: var(--green); color: #fff; }
.fine { color: #9C95AD; font-size: var(--t-xs); margin: 14px 0 0; }

/* laptop: the copy and the question on the start side, the real three screens on the other */
.preview { display: none; margin: 0; }
@media (min-width: 1100px) {
  .hero-in { max-inline-size: 1400px; display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 56px; align-items: center; }
  .hero h1 { font-size: clamp(34px, 3vw, 44px); text-wrap: balance; }
  .lead { margin-block-end: 32px; }
  .trail-art { display: none; } /* it crossed the copy; the preview carries the picture now */
  .preview { display: grid; gap: 14px; justify-items: center; }
  .preview img { inline-size: 100%; block-size: auto; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px rgba(0, 0, 0, .55), 0 0 120px rgba(91, 61, 245, .25); }
  .preview figcaption { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: #CFC8E6; }
  .preview figcaption i { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18, 184, 134, .2); }
}

/* ---------- stage ---------- */
.stage { min-block-size: 100dvh; display: grid; grid-template-rows: auto auto 1fr; background: radial-gradient(1000px 500px at 50% 0%, rgba(91, 61, 245, .22), transparent 70%), var(--ink); }
.sbar { display: flex; align-items: center; gap: 16px; padding: 12px 24px; }
.seg { display: flex; background: rgba(255, 255, 255, .07); border-radius: var(--r-pill); padding: 4px; }
.seg button { color: #CFC8E6; font-size: var(--t-sm); font-weight: 600; padding: 6px 16px; border-radius: var(--r-pill); }
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); }
.sbar-r { margin-inline-start: auto; display: flex; gap: 8px; }
.sbtn { color: #fff; font-size: var(--t-sm); font-weight: 600; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.sbtn:hover { background: rgba(255, 255, 255, .16); }
.sbtn.quiet { background: transparent; color: #B8B0D4; }
.sbtn.wide { inline-size: 100%; padding-block: 12px; }

.guide { list-style: none; margin: 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.guide li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); color: #9C95AD; font-size: var(--t-sm); line-height: 1.45; transition: background .3s, color .3s; min-inline-size: 0; }
.guide li .n { inline-size: 26px; block-size: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .08); flex: none; }
.guide li b { display: block; color: inherit; font-weight: 600; }
.guide li small { display: block; font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide li.now { background: #fff; color: var(--ink); }
.guide li.now .n { background: var(--violet); color: #fff; }
.guide li.done { color: #7EE0BF; }
.guide li.done .n { background: var(--green); color: #fff; }
.guide li.done .n::before { content: '✓'; }
.guide li.done .n span { display: none; }

.devices { display: flex; align-items: flex-start; justify-content: center; gap: 22px; padding: 16px 24px 18px; min-block-size: 0; }
.dev { margin: 0; display: grid; gap: 10px; justify-items: center; transition: filter .3s; }
.dev figcaption { font-size: var(--t-sm); color: #CFC8E6; font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.dev figcaption a { font-size: 12px; color: #9C95AD; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.dev .bezel, .dev .screen { position: relative; overflow: hidden; background: #fff; transition: box-shadow .4s; }
.phone .bezel { border-radius: 46px; box-shadow: 0 0 0 10px #0D0819, 0 0 0 11px #3A2F52, 0 30px 80px rgba(0, 0, 0, .5); }
.phone .notch { position: absolute; inset-block-start: 9px; inset-inline-start: 50%; transform: translateX(50%); inline-size: 92px; block-size: 26px; border-radius: 14px; background: #0D0819; z-index: 3; pointer-events: none; }
.phone .status { position: absolute; inset-block-start: 0; inset-inline: 0; block-size: 44px; display: flex; align-items: center; justify-content: space-between; padding-inline: 30px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; z-index: 2; transform-origin: top right; inline-size: 390px; direction: ltr; }
.phone .status svg { block-size: 12px; }
/* pinned to the same edge as transform-origin (right in RTL), or the scaled page slides out of the bezel */
.phone .bezel iframe { position: absolute; inset-block-start: 0; inset-inline-start: 0; }
.dev iframe { border: 0; display: block; transform-origin: top right; background: var(--paper); }
.desk { flex: 1; max-inline-size: 1240px; min-inline-size: 0; }
.desk .chrome { inline-size: 100%; display: flex; align-items: center; gap: 6px; background: #2A2140; border-radius: 14px 14px 0 0; padding: 9px 14px; }
.desk .chrome i { inline-size: 10px; block-size: 10px; border-radius: 50%; background: #4B4066; }
.desk .chrome span { font-size: 12px; color: #9C95AD; margin-inline-start: 8px; }
.desk .screen { inline-size: 100%; border-radius: 0 0 14px 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.desk .screen iframe { inline-size: 100%; }
.dev.focus .bezel { box-shadow: 0 0 0 10px #0D0819, 0 0 0 13px var(--green), 0 0 60px rgba(18, 184, 134, .45); }
.dev.focus .screen { box-shadow: 0 0 0 3px var(--green), 0 0 60px rgba(18, 184, 134, .4); }
.dev.focus figcaption { color: #7EE0BF; }

.mobile-apps { display: none; padding: 8px 16px 32px; gap: 12px; }
.mhint { color: #CFC8E6; font-size: var(--t-sm); line-height: 1.8; margin: 0 0 4px; }
.mapp { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .07); border-radius: 18px; padding: 10px; color: #fff; text-decoration: none; }
.mapp img { inline-size: 64px; block-size: 64px; border-radius: 14px; object-fit: cover; }
.mapp b { display: block; font-size: var(--t-md); line-height: 1.4; }
.mapp span span { font-size: var(--t-xs); color: #B8B0D4; }

/* QR popover */
.qscrim { position: fixed; inset: 0; background: rgba(13, 8, 25, .6); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.qbox { background: #fff; color: var(--ink); border-radius: 24px; padding: 22px; max-inline-size: 560px; inline-size: 100%; }
.qbox h2 { margin: 0 0 4px; font-size: var(--t-lg); line-height: 1.4; }
.qbox p { margin: 0 0 16px; color: var(--ink-3); font-size: var(--t-sm); line-height: 1.7; }
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qcell { text-align: center; background: var(--paper); border-radius: 16px; padding: 14px; }
.qcell .code { inline-size: 170px; aspect-ratio: 1; margin: 0 auto 8px; }
.qcell .code img, .qcell .code svg { inline-size: 100%; block-size: 100%; }
.qcell b { display: block; font-size: var(--t-sm); }
.qcell button { font-size: 12px; color: var(--violet); font-weight: 600; margin-block-start: 4px; }

@media (max-width: 1099px) {
  .devices, .guide { display: none; }
  .mobile-apps { display: grid; }
  .stage { grid-template-rows: auto auto; align-content: start; }
  .sbar { flex-wrap: wrap; padding: 12px 16px; }
  .sbar-r { inline-size: 100%; margin: 0; }
  .sbar-r .sbtn { flex: 1; }
  #qrBtn { display: none; }
}
@media (max-width: 720px) {
  .choices { grid-template-columns: 1fr; }
  .choice .art { block-size: 130px; }
  .hero-in { padding-block: 28px 40px; }
  .lead { margin-block-end: 28px; }
  .qgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { #hpath { animation: none; stroke-dashoffset: 0; } .rider { display: none; } }
