/* jumpedit.com home, v2 (2026-10-30, PLAN.md): the hero, the one section (In → out), the closing. Tokens only
   (tokens.css). Volt only on live things: the Iris, the clips the edit used, the brackets around the finished video. */

/* ---------- the hero ---------- */
.hero2 { overflow-x: clip; padding: clamp(20px, 4vh, 56px) 0 clamp(56px, 7vw, 104px); }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: clamp(40px, 6vw, 112px); }
.hero2-copy { position: relative; z-index: 2; }
.hero2-h1 { font-size: clamp(2.875rem, 1.6rem + 4.4vw, 5.25rem); }
.hero2-line { margin-top: 24px; font-size: var(--t-lead); line-height: var(--t-lead-lh); color: var(--text-2); max-width: 24em; text-wrap: pretty; }
.hero2-cta { margin-top: 36px; }
.hero2-cta .early { max-width: 480px; }

.hero2-show { position: relative; margin: 0; display: grid; justify-items: center; --sw: 360px; }
/* The whole phone, bottom included: the app's clips strip with the Iris riding it (Andrey 2026-10-30, after a round
   cropped it: "what happened to the bottom of the phone, it had the jumpedit logo jumping around"). */
/* The camera roll it was given, drifting behind the phone: one image (roll2.jpg: the 15 clips as a Photos grid, darkened
   and softened, twice, so moving it up by half its height loops without a seam), never a CSS blur on a big element. */
.roll { position: absolute; z-index: 0; left: 50%; top: 46%; width: calc(var(--sw) * 1.9); height: 112%; transform: translate(-50%, -50%);
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); }
.roll-strip { width: 100%; aspect-ratio: 936 / 3120; background: url('/media/v4/roll2.jpg') 0 0 / 100% 100% no-repeat; animation: roll-drift 60s linear infinite; }
@keyframes roll-drift { to { transform: translateY(-50%); } }
.paused .roll-strip, .paused .hp-live::after { animation-play-state: paused; }

/* The phone: an iPhone 16 Pro (screen 1206 x 2622). Everything inside is placed in fractions of the screen's width,
   measured from the app's own screen (the simulator capture of the live desk, 2026-10-29). */
.hp { position: relative; z-index: 1; padding: calc(var(--sw) * 0.028); border-radius: calc(var(--sw) * 0.165);
  background: linear-gradient(150deg, #3A3A3F 0%, #1C1C1F 22%, #141416 60%, #2A2A2E 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 0 0 3px #0B0B0C, 0 0 0 1px rgba(0, 0, 0, 0.7), 0 25px 50px -12px rgba(0, 0, 0, 0.6), var(--shadow-hero); }
.hp::before, .hp::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: #2A2A2E; }
.hp::before { right: -3px; top: 27%; height: 11%; }
.hp::after { left: -3px; top: 21%; height: 7%; box-shadow: 0 calc(var(--sw) * 0.2) 0 #2A2A2E; }
.hp-screen { position: relative; display: block; width: var(--sw); height: calc(var(--sw) * 2.1741); border-radius: calc(var(--sw) * 0.137);
  overflow: hidden; isolation: isolate; background: var(--ink); color: #FFFFFF; font-family: var(--font-text); }
.hp-island { position: absolute; z-index: 3; left: 50%; top: calc(var(--sw) * 0.036); width: calc(var(--sw) * 0.308); height: calc(var(--sw) * 0.088);
  transform: translateX(-50%); border-radius: var(--r-pill); background: #000000; }
.hp-time { position: absolute; left: 18.1%; top: calc(var(--sw) * 0.080); transform: translate(-50%, -50%);
  font-size: calc(var(--sw) * 0.043); font-weight: 600; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: var(--num); }
.hp-icons { position: absolute; left: 81.4%; top: calc(var(--sw) * 0.080); transform: translate(-50%, -50%); display: flex; align-items: center; gap: calc(var(--sw) * 0.013); }
.hp-icons svg { fill: currentColor; height: calc(var(--sw) * 0.03); }
.hp-signal { width: calc(var(--sw) * 0.045); }
.hp-wifi { width: calc(var(--sw) * 0.04); }
.hp-battery { width: calc(var(--sw) * 0.068); }
.hp-x { position: absolute; left: 90.3%; top: calc(var(--sw) * 0.2206); width: calc(var(--sw) * 0.094); height: calc(var(--sw) * 0.094);
  transform: translate(-50%, -50%); border-radius: 50%; background: #1E1E21; }
.hp-x::before, .hp-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 34%; height: calc(var(--sw) * 0.005); border-radius: 2px;
  background: var(--bone); transform: translate(-50%, -50%) rotate(45deg); }
.hp-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.hp-head { position: absolute; left: calc(var(--sw) * 0.054); top: calc(var(--sw) * 0.330); transform: translateY(-50%);
  display: flex; align-items: center; gap: calc(var(--sw) * 0.031); }
.hp-head b { font: 600 calc(var(--sw) * 0.0505) / 1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
/* The live Iris (editing now): the app's mark with a slow ring, like the app's own live dot. */
.hp-live { position: relative; display: block; width: calc(var(--sw) * 0.0655); height: calc(var(--sw) * 0.0655); flex: none; }
.hp-live svg { width: 100%; height: 100%; }
.hp-live::after { content: ''; position: absolute; inset: 6%; border-radius: 50%; animation: now-pulse 2s var(--ease-glide) infinite; }
.hp-video { position: absolute; left: 0; top: calc(var(--sw) * 0.4104); width: 100%; height: calc(var(--sw) * 1.7164); object-fit: cover; }
.hp-home { position: absolute; left: 50%; bottom: calc(var(--sw) * 0.024); width: 35.6%; height: calc(var(--sw) * 0.012); transform: translateX(-50%);
  border-radius: var(--r-pill); background: rgba(244, 241, 236, 0.4); }

.hero2-fine { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px;
  font-size: var(--t-label); line-height: var(--t-label-lh); color: var(--text-3); }
/* The recording's pause button (it loops; WCAG 2.2.2): also stills the drifting roll. */
.hold { flex: none; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--outline);
  transition: color var(--d-hover) var(--ease-hover), box-shadow var(--d-hover) var(--ease-hover), transform var(--d-release) var(--ease-press); }
.hold:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line); }
.hold:active { transform: scale(0.94); transition-duration: var(--d-press); transition-timing-function: var(--ease-glide); }
.hold svg { width: 12px; height: 12px; }

/* ---------- In → out: the app's desk, at page size ---------- */
.io { padding: var(--section-y) 0; background: linear-gradient(180deg, var(--s-card) 0%, var(--s-page) 100%); border-top: 1px solid var(--hairline); }
/* Desktop: the finished video on the left, the heading and the desk on the right (the hero is the mirror image:
   words left, phone right). Phones: the heading, the finished video, then the desk (the result first). */
.io-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: "out ." "out head" "out desk" "out ."; column-gap: clamp(48px, 7vw, 120px); }
.io-h { grid-area: head; }
.io-out { grid-area: out; align-self: center; }
.desk { grid-area: desk; }
.io-h { font-size: var(--t-chapter); line-height: 1.02; letter-spacing: var(--t-display-track); }
.io-h .nb { white-space: nowrap; }

.desk { margin-top: clamp(32px, 4vw, 52px); padding: 18px 20px 20px; border-radius: var(--r-card); background: var(--s-raised); box-shadow: var(--shadow-edge), var(--shadow-lift); }
.desk-lab { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.desk-lab .num { font-variant-numeric: var(--num); }
.desk-clips { list-style: none; margin: 10px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 6px; }
.desk-clips li { position: relative; aspect-ratio: 0.42; border-radius: 8px; }
.desk-clips img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: opacity 600ms var(--ease-glide); }
.desk-clips li:not(.used) img { opacity: 0.38; }
.desk-clips li.used::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -12px; height: 4px; border-radius: 2px; background: var(--volt); }
.desk-track { margin-top: 10px; height: clamp(64px, 6.4vw, 88px); padding: 5px; border-radius: 12px; border: 1.5px dashed rgba(255, 255, 255, 0.14); background: rgba(10, 10, 11, 0.6); }
.desk-lane { position: relative; height: 100%; }
.desk-lane i { position: absolute; top: 0; bottom: 0; left: var(--at); width: calc(var(--w) - 3px); border-radius: 6px; overflow: hidden; }
.desk-lane img { width: 100%; height: 100%; object-fit: cover; }
.desk-iris { --iris: 34px; position: absolute; z-index: 1; top: 50%; left: calc(100% - var(--iris) / 2); width: var(--iris); height: var(--iris); transform: translate(-50%, -50%); filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7)); }
.desk-iris svg { width: 100%; height: 100%; }
/* The one memorable moment (home-v2.js adds .armed while it's still below, .play once it's in view): the Iris crosses
   the track, each used clip lights and its piece lands at its real place as the Iris passes. The end state is the
   HTML's own (no script, reduced motion: everything placed, nothing moves). */
.desk.armed .desk-lane i { opacity: 0; }
.desk.armed .desk-clips li:not(.used) img { opacity: 1; }
.desk.armed .desk-clips li.used::after { transform: scaleX(0); }
.desk.armed .desk-iris { left: calc(var(--iris) / 2); }
.desk.play .desk-lane i { animation: desk-land 560ms var(--ease-spring) var(--d) both; }
.desk.play .desk-clips li.used { animation: desk-pick 900ms var(--ease-glide) var(--d) both; }
.desk.play .desk-clips li.used::after { animation: desk-light 320ms var(--ease-glide) var(--d) both; }
.desk.play .desk-iris { animation: desk-ride var(--ride, 3600ms) linear both; }
@keyframes desk-land { from { opacity: 0; transform: translateY(-45%) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes desk-pick { 0% { box-shadow: 0 0 0 0 rgba(212, 255, 63, 0); } 12% { box-shadow: 0 0 0 2px var(--volt); } 100% { box-shadow: 0 0 0 2px rgba(212, 255, 63, 0); } }
@keyframes desk-light { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes desk-ride { from { left: calc(var(--iris) / 2); } to { left: calc(100% - var(--iris) / 2); } }

.io-out { margin: 0; display: grid; justify-items: center; gap: 16px; }
.monitor { position: relative; width: clamp(240px, 22vw, 316px); aspect-ratio: 9 / 16; border-radius: var(--r-sheet); overflow: hidden; isolation: isolate;
  background: #000000; box-shadow: 0 0 0 1px var(--glass-line), var(--shadow-hero); }
.monitor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The app's monitor brackets (Volt corners): the video it made. */
.brackets i { position: absolute; z-index: 1; width: 9%; aspect-ratio: 1; border: 0 solid var(--volt); }
.brackets i:nth-child(1) { left: 6%; top: 4.5%; border-width: 3px 0 0 3px; }
.brackets i:nth-child(2) { right: 6%; top: 4.5%; border-width: 3px 3px 0 0; }
.brackets i:nth-child(3) { left: 6%; bottom: 4.5%; border-width: 0 0 3px 3px; }
.brackets i:nth-child(4) { right: 6%; bottom: 4.5%; border-width: 0 3px 3px 0; }
.sound { position: absolute; z-index: 2; left: 50%; bottom: 9%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  height: var(--tap); padding: 0 18px; border: 0; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap;
  font: 600 14px/1 var(--font-text); color: var(--bone); background: rgba(10, 10, 11, 0.62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color var(--d-hover) var(--ease-hover), transform var(--d-release) var(--ease-press); }
.sound:hover { background: rgba(10, 10, 11, 0.82); }
.sound:active { transform: translateX(-50%) scale(0.96); transition-duration: var(--d-press); transition-timing-function: var(--ease-glide); }
.sound svg { width: 16px; height: 16px; }
.io-out figcaption { font-size: var(--t-label); line-height: var(--t-label-lh); color: var(--text-3); text-align: center; }

/* ---------- the closing: the reason to act now, the action, the four doubts ---------- */
.close2 { padding: var(--section-y-tight) 0 clamp(56px, 7vw, 96px); }
.close2-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head cta" "qs qs";
  column-gap: clamp(40px, 6vw, 112px); row-gap: clamp(40px, 5vw, 64px); align-items: end; }
.close2-h { grid-area: head; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); line-height: 1.04; letter-spacing: var(--t-h2-track); max-width: 12em; }
.close2-cta { grid-area: cta; width: min(480px, 100%); }
.qs { grid-area: qs; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.qs details:nth-last-child(-n+2) { border-bottom: 1px solid var(--hairline); }
/* The Editor Bot answers (its Iris beside each answer, like the app's chat). */
.qs-a { display: flex; gap: 12px; align-items: flex-start; padding: 0 0 24px; }
.qs-who { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.faq .qs-a p { padding: 0; }

/* ---------- tablets and phones ---------- */
@media (max-width: 960px) {
  .hero2-grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; text-align: center; }
  .hero2-h1, .hero2-line { margin-left: auto; margin-right: auto; }
  .hero2-cta .early { margin: 0 auto; }
  .hero2-cta .early-note { padding-left: 0; text-align: center; }
  .hero2-show { --sw: min(320px, 80vw); }
  .io-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "out" "desk"; row-gap: 40px; }
  .desk { margin-top: 0; }
  .close2-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "cta" "qs"; row-gap: 28px; align-items: start; }
  .qs { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .qs details:nth-last-child(2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .hero2-line { font-size: 17px; margin-top: 18px; }
  .hero2-line span { display: block; }
  .hero2-cta { margin-top: 28px; }
  .io-h { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 2.75rem); }
  .desk { padding: 14px 12px 16px; border-radius: 20px; }
  .desk-lab { font-size: 13px; }
  .desk-clips { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 6px; margin-bottom: 22px; }
  .desk-clips li { aspect-ratio: 0.75; border-radius: 8px; }
  .desk-clips li.used::after { left: 14%; right: 14%; bottom: -9px; height: 3px; }
  .desk-track { height: 58px; padding: 4px; border-radius: 10px; }
  .desk-lane i { width: calc(var(--w) - 2px); border-radius: 4px; }
  .desk-iris { --iris: 26px; }
  .monitor { width: min(280px, 74vw); }
}
