/* next.html only: the proposed home page. Loaded after site.css; same --ts-* and --pg-* values. */

/* ---------- Hero: two actions in place of the prompt ---------- */
.nx-hero .acts { margin-top: 36px; flex-wrap: wrap; }
.nx-hero .pill.line { gap: 8px; }
.nx-hero .pill .dur { font: 400 13px/1 var(--ts-font-mono); font-variant-numeric: tabular-nums; color: var(--ts-text-3); }
.nx-hero .near { margin-top: 22px; }

/* ---------- The film: a 16:9 frame that rises tilted, like the hero window did ---------- */
.winwrap .player { width: min(1120px, calc(100% - 48px)); margin: 0 auto; transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)) scale(var(--wscale, 1)); will-change: transform; }
.player { position: relative; isolation: isolate; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ts-canvas); box-shadow: var(--pg-shadow-win); }
.player::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--ts-line); pointer-events: none; }
.player video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.player .big { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: var(--pg-shadow-pill); }
.player .big:active { transform: translate(-50%, -50%) scale(.98); }
.player .big svg { width: 16px; height: 16px; }
.player .big .d { font: 400 13px/1 var(--ts-font-mono); font-variant-numeric: tabular-nums; color: rgba(255,255,255,.62); }
.player .big .i-a { display: none; }
.player[data-state="ended"] .big { top: auto; bottom: 7%; transform: translateX(-50%); }
.player[data-state="ended"] .big:active { transform: translateX(-50%) scale(.98); }
.player[data-state="ended"] .big .i-p { display: none; }
.player[data-state="ended"] .big .i-a { display: block; }
.player[data-state="playing"] .big, .player[data-state="paused"] .big { display: none; }
.player .ctl { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; gap: 8px; transition: opacity var(--ts-dur-base) var(--ts-ease); }
.player[data-state="idle"] .ctl, .player[data-state="ended"] .ctl { opacity: 0; pointer-events: none; }
.player .c { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; min-width: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--ts-line-soft), var(--pg-shadow-pill); font: 500 13px/1 var(--ts-font); color: var(--ts-text); cursor: pointer; transition: background-color var(--ts-dur-fast) var(--ts-ease); }
.player .c:hover { background: #fff; }
.player .c:active { transform: scale(.98); }
.player .c svg { width: 15px; height: 15px; }
.player .c.snd { padding: 0 14px 0 12px; }
.player .c .i-pl, .player[data-state="paused"] .c .i-pa { display: none; }
.player[data-state="paused"] .c .i-pl { display: block; }
/* the icon and label show the current state: muted until sound is on */
.player .c .i-s, .player[data-sound="on"] .c .i-m { display: none; }
.player[data-sound="on"] .c .i-s { display: block; }
.player .prog { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(20,18,16,.06); }
.player .prog i { display: block; height: 100%; background: var(--ts-text); opacity: .5; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.no-js .player .big, .no-js .player .ctl, .no-js .player .prog { display: none; }

/* ---------- How it works: You asks, Trackshot answers ---------- */
.talk { display: grid; gap: 8px; margin-top: 20px; max-width: 360px; }
.step .talk .say { margin-top: 0; justify-self: end; }
.step .talk .say.ts { justify-self: start; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--ts-line); }
.step .talk .say.ts .who { color: var(--ts-action-text); }
.tour .chats .shot:last-child img { -webkit-mask: none; mask: none; }
.tour .chats { align-items: center; }

/* ---------- What will you make?: real videos, what was brought, what was asked ---------- */
.kinds { padding-top: var(--pg-gap); text-align: center; }
.kinds .h2.big { font-size: 32px; line-height: 43px; }
.swap { display: inline-block; padding: 0 .28em; border-radius: 9px; background: var(--ts-action-tint); transition: opacity .22s var(--ts-ease); }
.kinds p.l { margin: 14px auto 0; max-width: 540px; color: var(--ts-text-3); }
.kgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; margin-top: 56px; text-align: left; }
.kind .clip { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ts-raised); box-shadow: var(--pg-shadow-tile); }
.kind .clip::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--ts-line); pointer-events: none; }
.kind .clip video, .kind .clip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kind h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; font: 500 16px/24px var(--ts-font); }
.kind h3 span { font: 400 13px/19px var(--ts-font); color: var(--ts-text-3); }
.kind dl { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 6px 10px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--ts-line-soft); font: 400 14px/21px var(--ts-font); }
.kind dt { color: var(--ts-text-3); font-size: 13px; }
.kind dd { margin: 0; color: var(--ts-text-2); }

/* ---------- Control: the start screen leads, the expired price floats under it ---------- */
.control .cstage .shot.white:first-child { width: 100%; padding: 10px 12px; }

/* ---------- The close ---------- */
.close { padding-top: var(--pg-gap); text-align: center; }
.close .mk { margin: 0 auto 22px; width: 44px; height: 44px; }
.close h2 { font: 500 48px/60px var(--ts-font); letter-spacing: -.03em; }
.close p.l { margin: 16px auto 0; max-width: 460px; font: 400 17px/27px var(--ts-font); color: var(--ts-text-2); }
.close .acts { margin-top: 32px; }
.close .fine { margin-top: 16px; font: 400 13px/19px var(--ts-font); color: var(--ts-text-3); }
.close .state { display: none; width: max-content; max-width: 100%; margin: 18px auto 0; padding: 10px 14px; border-radius: 12px; background: var(--ts-raised); font: 400 13px/19px var(--ts-font); color: var(--ts-text-2); }
.close .state.on { display: block; }
.pill.lg svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .winwrap .player { width: calc(100% - 32px); border-radius: 12px; }
  .player .ctl { right: 10px; bottom: 10px; gap: 6px; }
  .player .c { height: 30px; min-width: 30px; font-size: 12px; }
  .player .big { height: 40px; padding: 0 16px; font-size: 14px; }
  .kinds .h2.big { font-size: 26px; line-height: 35px; }
  .kgrid { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  .close h2 { font-size: 34px; line-height: 42px; }
  .control .cstage .fit { margin-top: 14px; }
}
@media (min-width: 601px) and (max-width: 900px) { .kgrid { grid-template-columns: 1fr 1fr; gap: 36px 20px; } }
@media (max-width: 560px) { .player .c.snd span { display: none; } .player .c.snd { padding: 0 8px; } }
@media (prefers-reduced-transparency: reduce) { .player .c { background: rgba(255,255,255,.96); } }
@media (prefers-reduced-motion: reduce) { .player .ctl, .swap { transition: none; } }

/* the ground shadow follows the film's height, and the caption keeps the page gutter */
.winwrap::before { top: 12%; height: 76%; }
.winwrap .caption { padding: 0 24px; }

/* step 3: the pointing loop from the film */
.shot.loop video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* links inside answers */
.qa p a { color: var(--ts-text); text-decoration: underline; text-decoration-color: var(--ts-line-strong); text-underline-offset: 3px; }
