/* 06, the comparison, as a scroll story over the A7: the apps fly in, then into the columns of a sourced table. */

/* ===================== 05 · the apps, then the table ===================== */
.vs { position: relative; height: calc(var(--len, 4.6) * 100vh); height: calc(var(--len, 4.6) * 100svh); }
.vs__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.vs__wrap { position: relative; height: 100%; padding-top: 100px; }
.vs__head { position: relative; z-index: 2; max-width: 1040px; }
.vs__hs { position: relative; }
.vs-h { text-transform: uppercase; font-size: clamp(26px, 2.7vw, 42px); }
.vs-h .ml { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.vs-h .ml > span { display: inline-block; will-change: transform; transform: translate3d(0, 108%, 0); }
.vs-h--b { position: absolute; left: 0; top: 0; }
.vs__lead { opacity: 0; }
.vs__meter { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 26px; margin-top: 28px; opacity: 0; }
.vs__meter b { display: block; font-family: var(--display); font-size: 42px; font-weight: 600; line-height: 1; color: var(--gold-1); font-variant-numeric: tabular-nums; }
.vs__meter span { display: block; margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.vs__meter .is-zero b { color: var(--dn); text-shadow: 0 0 18px rgba(242, 112, 95, .45); }
.vs__stack { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.vs-card { position: absolute; left: 0; top: 0; width: 300px; padding-bottom: 16px; border-radius: 14px; overflow: hidden; opacity: 0; transform-origin: 0 0; background: linear-gradient(165deg, rgba(20, 24, 44, .97), rgba(8, 10, 20, .97)); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4); will-change: transform, opacity; }
.vs-card header { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.vs-card header i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.vs-card header i:first-child { background: #f2705f; }
.vs-card header i:nth-child(2) { background: #f2c063; }
.vs-card header i:nth-child(3) { background: #4fd49d; }
.vs-card header span { margin-left: 10px; padding: 2px 10px; border-radius: 6px; font-size: 11px; color: var(--ink-2); background: rgba(0, 0, 0, .3); }
.vs-card b { display: block; padding: 14px 16px 0; font-family: var(--display); font-size: 21px; font-weight: 600; }
.vs-card p { padding: 6px 16px 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.vs-card em { display: block; margin: 10px 16px 0; font-style: normal; font-size: 12px; font-weight: 600; color: var(--gold-1); font-variant-numeric: tabular-nums; }
.vs__table { position: absolute; left: 32px; right: 32px; top: 274px; z-index: 2; opacity: 0; border-radius: 18px; background: rgba(6, 8, 16, .66); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; }
.vs-row { display: grid; grid-template-columns: minmax(0, 1.9fr) repeat(9, minmax(0, 1fr)) minmax(0, 1.05fr); align-items: stretch; min-height: clamp(28px, 4vh, 40px); border-top: 1px solid rgba(255, 255, 255, .06); opacity: 0; }
.vs-row--head { opacity: 1; border-top: 0; min-height: clamp(40px, 5.6vh, 54px); }
.vs-th, .vs-td { display: flex; align-items: center; justify-content: center; padding: 0 10px; font-size: 13px; }
.vs-th { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); opacity: 0; text-align: center; }
.vs-th--cap { opacity: 1; justify-content: flex-start; padding-left: 20px; color: var(--ink-3); }
.vs-td--cap { justify-content: flex-start; padding-left: 20px; font-size: 14px; color: var(--ink); }
.vs-th.is-aura { gap: 8px; opacity: 1; color: var(--gold-1); }
.vs-th.is-aura svg { width: 26px; height: 16px; }
.vs__table .is-aura { background: linear-gradient(180deg, rgba(242, 192, 99, .07), rgba(242, 192, 99, .04)); box-shadow: inset 1px 0 0 rgba(242, 192, 99, .25), inset -1px 0 0 rgba(242, 192, 99, .25); transition: background-color .6s, box-shadow .6s; }
.vs__table .is-aura.is-glow { background: linear-gradient(180deg, rgba(242, 192, 99, .16), rgba(242, 192, 99, .08)); box-shadow: inset 1px 0 0 rgba(255, 226, 163, .6), inset -1px 0 0 rgba(255, 226, 163, .6), 0 0 40px -10px rgba(242, 192, 99, .55); }
.vs-mk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 700; transform: scale(0); }
.vs-mk.is-y { color: #f4f2ee; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.vs-mk.is-n { color: var(--ink-3); }
.vs-mk.is-p { color: var(--ink-2); background: rgba(255, 255, 255, .05); border: 1px dashed rgba(255, 255, 255, .25); }
.is-aura .vs-mk.is-y { color: #1b1307; background: var(--gold-grad); border: 0; box-shadow: 0 0 14px rgba(242, 192, 99, .55); }
.is-aura .vs-mk.is-p { color: var(--gold-1); border-color: rgba(242, 192, 99, .6); }
.vs-mk.is-lit { animation: vsPop .7s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes vsPop { 40% { box-shadow: 0 0 0 8px rgba(242, 192, 99, .25), 0 0 30px rgba(242, 192, 99, .9); } }
.vs__table.is-won .vs-td:not(.is-aura):not(.vs-td--cap) .vs-mk, .vs__table.is-won .vs-th:not(.is-aura):not(.vs-th--cap) b { opacity: .38; transition: opacity .6s; }
.vs__end { position: absolute; left: 32px; right: 32px; bottom: calc(2.4vh + 86px); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; opacity: 0; }
.vs__end p { font-size: 15px; color: var(--ink-2); }
.vs__end b { font-family: var(--display); font-size: 22px; color: var(--gold-1); }
.vs__note { position: absolute; left: 32px; right: 32px; bottom: 2.4vh; z-index: 2; font-size: 10.5px; line-height: 1.5; color: var(--ink-3); opacity: 0; }

@media (max-width: 900px), (max-aspect-ratio: 9/10) {
  .vs__wrap { padding-top: 84px; }
  .vs-card { width: 260px; }
  .vs-card p { font-size: 12px; }
  .vs__meter { grid-template-columns: repeat(2, auto); gap: 14px 22px; margin-top: 18px; }
  .vs__meter b { font-size: 30px; }
  .vs__table { left: 12px; right: 12px; top: 230px; }
  .vs-row { grid-template-columns: minmax(0, 1.4fr) repeat(9, minmax(0, .42fr)) minmax(0, .6fr); }
  .vs-th, .vs-td { padding: 0 2px; }
  .vs-th b { display: none; }
  .vs-th[data-s]::after { content: attr(data-s); font-size: 9.5px; letter-spacing: .06em; }
  .vs-th.is-aura svg { width: 22px; height: 14px; }
  .vs-td--cap { padding-left: 10px; font-size: 11.5px; line-height: 1.25; }
  .vs-th--cap { padding-left: 10px; font-size: 9px; }
  .vs-mk { width: 20px; height: 20px; font-size: 11px; }
  .vs__end { left: 16px; right: 16px; flex-direction: column; align-items: flex-start; gap: 10px; bottom: calc(4vh + 44px); }
  .vs__end p { font-size: 13px; }
  .vs__note { left: 16px; right: 16px; font-size: 9.5px; }
}

.vs__note-s { display: none; }
@media (max-width: 900px), (max-aspect-ratio: 9/10) {
  .vs__lead { display: none; }
  .vs__note-s { display: inline; }
  .vs__note-l { display: none; }
}

/* the comparison, grouped: a small category label over the first row of each group */
.vs-td--cap { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.vs-cat { display: block; font: 600 8.5px/1.2 var(--display); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.vs-row--cat { border-top-color: rgba(242, 192, 99, .22); }
.vs-row { min-height: clamp(26px, 3.6vh, 36px); }
.vs-row--head { min-height: clamp(36px, 4.6vh, 48px); }
.vs-row--cat .vs-td--cap { padding-top: 4px; }

/* one line per capability: a wider first column on wide screens; the short source line sits under the price */
@media (min-width: 901px) and (min-aspect-ratio: 9/10) {
  .vs-row { grid-template-columns: minmax(0, 2.5fr) repeat(9, minmax(0, 1fr)) minmax(0, 1.05fr); }
  .vs-td--cap { white-space: nowrap; }
  .vs__end { bottom: calc(2.4vh + 34px); }
}
.vs__note { font-size: 10.5px; }

/* the end row is just the call to action */
.vs__end { justify-content: flex-end; }

/* phones: short capability names keep every row on one line */
.vs-s { display: none; }
@media (max-width: 900px), (max-aspect-ratio: 9/10) {
  .vs-l { display: none; }
  .vs-s { display: inline; white-space: nowrap; }
  .vs-cat { font-size: 7.5px; letter-spacing: .1em; }
  .vs-row { min-height: 30px; }
  .vs__end p { font-size: 12px; }
}

/* iPad held upright (laid out 1366 px wide and tall): the phone table, set large */
@media (min-width: 1101px) and (max-aspect-ratio: 9/10) {
  .vs .vs__wrap { padding-top: 150px; }
  .vs .kicker { font-size: 21px; }
  .vs .vs-h { font-size: 66px; }
  .vs .vs__meter b { font-size: 52px; }
  .vs .vs__table { left: 48px; right: 48px; top: 420px; }
  .vs .vs-row { min-height: 80px; }
  .vs .vs-row--head { min-height: 88px; }
  .vs .vs-th[data-s]::after { font-size: 17px; }
  .vs .vs-th--cap { padding-left: 18px; font-size: 15px; }
  .vs .vs-th.is-aura svg { width: 40px; height: 25px; }
  .vs .vs-td--cap { padding-left: 18px; font-size: 22px; }
  .vs .vs-cat { font-size: 14px; }
  .vs .vs-mk { width: 36px; height: 36px; font-size: 19px; }
  .vs .vs-card { width: 420px; }
  .vs .vs-card p { font-size: 19px; }
  .vs .vs__end { left: 48px; right: 48px; bottom: calc(4vh + 70px); gap: 18px; }
  .vs .vs__end p { font-size: 22px; }
  .vs .vs__end b { font-size: 36px; }
  .vs .vs__end .btn { height: 72px; padding: 0 34px; border-radius: 16px; font-size: 23px; }
  .vs .vs__note { left: 48px; right: 48px; font-size: 16px; }
}

/* the table, polished: a deeper glass panel, quiet row bands, crisper marks, a dot for "not listed", and a
   stronger Aura column */
.vs .vs__table { background: linear-gradient(180deg, rgba(12, 15, 30, .9), rgba(6, 8, 18, .9)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.vs .vs-row:not(.vs-row--head):nth-child(odd) { background: rgba(255, 255, 255, .018); }
.vs .vs-row--head { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.vs .vs-th:not(.vs-th--cap):not(.is-aura) { color: var(--ink); letter-spacing: .1em; }
.vs .vs-td--cap { color: #f1eee8; }
.vs .vs-mk.is-y { color: #f4f2ee; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .3); }
.vs .vs-mk.is-p { color: var(--ink-2); border-style: solid; border-color: rgba(255, 255, 255, .18); background: linear-gradient(90deg, rgba(255, 255, 255, .22) 50%, transparent 50%); font-size: 0; }
.vs .vs-mk.is-n { font-size: 0; }
.vs .vs-mk.is-n::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.vs .vs__table .is-aura { background: linear-gradient(180deg, rgba(242, 192, 99, .14), rgba(242, 192, 99, .06)); }
.vs .vs__table .is-aura.is-glow { background: linear-gradient(180deg, rgba(242, 192, 99, .22), rgba(242, 192, 99, .1)); }
.vs .vs-th.is-aura { font-size: 12px; letter-spacing: .14em; }
