/* Revamp "Satu layar, seluruh bursa" (29 Sep 2026). Layered on top of site.css / upgrade.css.
 * Pure software: every background is drawn in code from the Terminal's own 23 Sep recording (js/revamp-bg.js),
 * on a dot grid. No footage, no scenery. Gold stays for the moment FT Terminal flags, nothing else. */

/* ---------- code-drawn backgrounds ---------- */
.rv-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; pointer-events: none; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 60%, transparent 100%); }
.rv-dots { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background-image: radial-gradient(rgba(142,163,189,.16) 1px, transparent 1.4px);
  background-size: 26px 26px; background-position: 13px 13px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%); }
.rv-dots::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%;
  background: linear-gradient(180deg, rgba(90,169,255,0), rgba(90,169,255,.035) 88%, rgba(90,169,255,.12) 100%);
  animation: rvScan 7s linear infinite; }
@keyframes rvScan { to { transform: translateY(433%); } }
.rv-map > .rv-dots-pin { position: sticky; top: 0; display: block; height: 100svh; margin-bottom: -100svh; }
.rv-hero .rv-dots, .rv-has-bg .rv-dots { opacity: .6; }
@media (max-width: 640px) { .rv-field { opacity: .28; } }

/* ---------- video backgrounds: fade in once playable, poster until then, nothing at all for reduced motion ---------- */
.rv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0;
  transition: opacity 1.4s var(--ease); pointer-events: none; }
.rv-bg.is-ready { opacity: 1; }
.rv-bg-dim.is-ready { opacity: .38; }
.rv-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,17,31,.62) 0%, rgba(8,17,31,.18) 32%, rgba(8,17,31,.5) 68%, #08111f 100%),
    radial-gradient(70% 60% at 18% 72%, rgba(8,17,31,.72), rgba(8,17,31,0) 70%); }

/* ---------- hero ---------- */
.rv-hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 1000px);
  display: grid; align-items: end; padding-block: clamp(120px, 16vh, 180px) clamp(72px, 12vh, 120px);
  background: radial-gradient(1200px 700px at 50% -10%, rgba(37,70,118,.5), rgba(8,17,31,0) 60%), var(--navy, #08111f); }
.rv-hero-inner { position: relative; }
.rv-hero h1 { font-size: clamp(2.7rem, 1.6rem + 4.8vw, 6.1rem); line-height: 1.02; max-width: 13.5ch; margin-top: 14px; }
.rv-lead { margin-top: 26px; max-width: 54ch; color: #c9d4e2; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.rv-meta { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 22px; color: var(--dim); font-size: 14px; }
.rv-meta span:not(:last-child)::after { content: "·"; margin: 0 12px; color: var(--dim2); }
.rv-scroll { position: absolute; left: 50%; bottom: 26px; width: 1px; height: 46px; background: rgba(232,238,246,.16); overflow: hidden; }
.rv-scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: rvDrip 2.4s var(--ease) infinite; }
@keyframes rvDrip { to { top: 100%; } }
@media (max-width: 640px) {
  .rv-hero { align-items: end; padding-block: 110px 64px; }
  .rv-actions { display: grid; grid-template-columns: 1fr; }
  .rv-actions .btn { width: 100%; }
  .rv-scroll { display: none; }
}

/* ---------- one session, played by scrolling ---------- */
.rv-map { position: relative; isolation: isolate; height: 330vh; }
.rv-map > .rv-bg { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; }
.rv-map-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.rv-map-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.rv-map-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); margin-top: 12px; }
.rv-map-lead { margin-top: 18px; color: var(--dim); max-width: 44ch; }
.rv-map-board { background: rgba(12,24,41,.72); border: 1px solid rgba(142,163,189,.14); border-radius: 22px; padding: clamp(14px, 2vw, 24px);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.rv-map-top { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.rv-clock span { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); font-weight: 700; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.rv-clock small, .rv-count small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim2); }
.rv-clock small { display: inline; margin-left: 8px; }
.rv-count { text-align: right; }
.rv-count b { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.rv-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.rv-t { aspect-ratio: 1.5; border-radius: 7px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px;
  background: rgba(142,163,189,.08); color: var(--fg); overflow: hidden; transition: box-shadow .35s var(--ease); }
.rv-t b { font-size: 10.5px; font-weight: 700; letter-spacing: .01em; line-height: 1; }
.rv-t i { font-style: normal; font-size: 9px; opacity: .8; line-height: 1; font-variant-numeric: tabular-nums; }
.rv-t.is-flag { box-shadow: 0 0 0 1.5px var(--gold), 0 0 18px rgba(217,164,65,.6); }
.rv-map-foot { margin-top: 14px; }
.rv-map-msg { min-height: 1.5em; font-size: 14.5px; color: var(--fg); }
.rv-map-msg b { color: var(--gold); font-weight: 700; }
.rv-progress { margin-top: 10px; height: 2px; background: rgba(142,163,189,.14); border-radius: 2px; overflow: hidden; }
.rv-progress i { display: block; height: 100%; width: 0; background: var(--gold); }
.rv-map .shot-note { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 900px) {
  .rv-map-inner { grid-template-columns: 1fr; gap: 16px; }
  .rv-map-head h2 { font-size: clamp(1.7rem, 1.2rem + 3vw, 2.3rem); }
  .rv-map-lead { font-size: 15px; margin-top: 10px; }
  .rv-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
  .rv-t { aspect-ratio: 1.35; border-radius: 5px; }
  .rv-t b { font-size: 8.5px; }
  .rv-t i { display: none; }
}
@media (max-width: 900px) and (max-height: 760px) { .rv-map-lead { display: none; } }

/* ---------- product tour: one phone, five real screens ---------- */
.rv-tour { position: relative; height: 560vh; }
.rv-tour-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  background: radial-gradient(60% 50% at 70% 55%, rgba(37,70,118,.32), rgba(8,17,31,0) 70%); }
.rv-tour-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.rv-tour-steps { position: relative; list-style: none; margin: 0; padding: 0; min-height: 300px; }
.rv-tour-steps li { position: absolute; left: 0; right: 0; top: 50%; opacity: 0; transform: translateY(calc(-50% + 26px));
  transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.rv-tour-steps li.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.rv-tour-steps h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); margin-top: 12px; max-width: 14ch; }
.rv-tour-steps p:not(.eyebrow) { margin-top: 18px; color: var(--dim); max-width: 44ch; font-size: var(--step-1); line-height: 1.5; }
.rv-tour-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rv-phone { position: relative; width: min(320px, 70vw); padding: 11px; border-radius: 52px;
  background: linear-gradient(145deg, #3a4454, #141a24 38%, #0c1119 62%, #2a3342);
  box-shadow: 0 60px 120px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.6), inset 0 0 0 1.5px rgba(255,255,255,.14); }
.rv-phone-screen { position: relative; aspect-ratio: 780 / 1688; border-radius: 41px; overflow: hidden; background: #0a1322; }
.rv-phone-screen img, .rv-phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  opacity: 0; transform: scale(1.02); transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
.rv-phone-screen img.is-on, .rv-phone-screen video { opacity: 1; transform: none; }
.rv-island { position: absolute; left: 50%; top: 18px; width: 22%; height: 22px; margin-left: -11%; border-radius: 12px; background: #000; }
.rv-ring { position: absolute; left: 51.3%; top: 43.8%; width: 16%; aspect-ratio: 1; margin: -8% 0 0 -8%; border-radius: 50%;
  border: 2.5px solid var(--gold); box-shadow: 0 0 20px rgba(217,164,65,.7), inset 0 0 10px rgba(217,164,65,.35);
  opacity: 0; transform: scale(.6); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.rv-tour[data-step="2"] .rv-ring { opacity: 1; transform: scale(1); animation: rvPulse 1.8s ease-in-out .7s infinite; }
@keyframes rvPulse { 50% { transform: scale(1.12); } }
.rv-tour-dots { display: flex; gap: 8px; }
.rv-tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(232,238,246,.2); transition: background .4s, width .4s var(--ease); }
.rv-tour-dots span.is-on { width: 22px; border-radius: 4px; background: var(--gold); }
.rv-tour-note { margin-top: 18px; }
@media (max-width: 900px) {
  .rv-tour-inner { grid-template-columns: 1fr; gap: 14px; }
  .rv-tour-stage { order: -1; }
  .rv-phone { width: min(212px, 52vw); border-radius: 36px; padding: 8px; }
  .rv-phone-screen { border-radius: 29px; }
  .rv-island { top: 12px; height: 15px; }
  .rv-tour-steps { min-height: 190px; }
  .rv-tour-steps li { top: 0; transform: translateY(20px); }
  .rv-tour-steps li.is-on { transform: none; }
  .rv-tour-steps h2 { font-size: clamp(1.55rem, 1.1rem + 2.6vw, 2.1rem); margin-top: 6px; }
  .rv-tour-steps p:not(.eyebrow) { margin-top: 10px; font-size: 15px; }
  .rv-tour-note { margin-top: 6px; font-size: 11.5px; }
}

/* ---------- reels ---------- */
.rv-reels-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.rv-reels h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); margin-top: 12px; }
.rv-reels-copy p:not(.eyebrow) { margin-top: 18px; color: var(--dim); max-width: 44ch; }
.rv-phone-sm { width: min(300px, 72vw); }
.rv-phone-sm .rv-phone-screen { aspect-ratio: 9 / 16; }
@media (max-width: 900px) { .rv-reels-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rv-reels-copy p:not(.eyebrow) { margin-inline: auto; } }

/* ---------- four steps ---------- */
.rv-steps-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.rv-steps-list li { position: relative; padding: 26px 22px 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.rv-steps-list li:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -13px; width: 10px; height: 1px; background: rgba(217,164,65,.5); }
.rv-step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold);
  font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.rv-steps-list h3 { margin-top: 18px; font-size: 1.25rem; }
.rv-steps-list p { margin-top: 8px; color: var(--dim); font-size: 15px; line-height: 1.55; }
.rv-steps-note { margin-top: 22px; color: var(--dim2); font-size: 14px; }
@media (max-width: 900px) { .rv-steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rv-steps-list li::after { display: none; } }
@media (max-width: 520px) { .rv-steps-list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.rv-faq-inner { max-width: 860px; }
.rv-faq-list { margin-top: 32px; }
.rv-faq-more { margin-top: 24px; color: var(--dim); }

/* ---------- the closing: dawn over the sea ---------- */
.rv-final { position: relative; isolation: isolate; overflow: hidden; min-height: min(92svh, 900px); display: grid; align-items: start;
  text-align: center; padding-block: clamp(90px, 13vh, 140px) clamp(220px, 34vh, 360px); }
.rv-final-chart { position: absolute; left: 0; right: 0; bottom: 64px; height: 38vh; margin: 0; z-index: -1;
  display: flex; flex-direction: column; padding-inline: max(16px, calc((100% - 1200px) / 2)); }
.rv-final-chart canvas { flex: 1; width: 100%; min-height: 0; display: block; }
.rv-final-chart figcaption { padding-block: 6px 18px; font-size: 12px; color: var(--dim2); text-align: left; }
@media (min-width: 901px) { .rv-final { min-height: min(100svh, 1000px); padding-block: 11vh 42vh; } }
.rv-final h2 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem); max-width: 16ch; margin: 14px auto 0; }
.rv-final .rv-actions, .rv-final .rv-meta { justify-content: center; }

/* ---------- reduced motion: posters, no pinning, every step readable ---------- */
@media (prefers-reduced-motion: reduce) {
  .rv-scroll span { animation: none; }
  .rv-map, .rv-tour { height: auto; }
  .rv-map-pin, .rv-tour-pin { position: relative; height: auto; padding-block: 80px; }
  .rv-map > .rv-dots-pin { position: absolute; height: 100%; margin: 0; }
  .rv-dots::after { animation: none; display: none; }
  .rv-tour-steps { min-height: 0; }
  .rv-tour-steps li { position: relative; top: auto; opacity: 1; transform: none; margin-bottom: 28px; }
  .rv-tour-steps li:not(:first-child) { display: none; }
  .rv-ring { animation: none; }
}

/* ---------- video behind an ordinary section (terminal hero, order page, the four steps) ---------- */
.rv-has-bg { position: relative; isolation: isolate; overflow: hidden; }
.rv-bg-hero.is-ready { opacity: .55; }
.rv-steps .rv-bg-dim.is-ready { opacity: .28; }
.order-ask { margin-top: 16px; font-size: 14.5px; color: var(--dim); }
/* the old price reads as struck through everywhere it is shown */
.order-price .strike::after, .price-was .strike::after { transform: scaleX(1); }
.price-tile .price-was .strike::after { transform: scaleX(0); }
.price-tile.in .price-was .strike::after { transform: scaleX(1); }

/* phones: the sticky price bar owns the bottom 62px, so pinned scenes end above it */
@media (max-width: 900px) {
  .rv-map-pin, .rv-tour-pin { padding-bottom: 64px; }
  .rv-final { align-items: end; min-height: 100svh; padding-block: 420px 96px; }
  .rv-final-chart { top: 84px; bottom: auto; height: 300px; }
}

/* pinned scenes start below the sticky navigation bar (about 64px), never underneath it */
.rv-map-pin, .rv-tour-pin { padding-top: 64px; }

/* phones: the meta line stacks, so no separator dot is left hanging at a line end */
@media (max-width: 640px) {
  .rv-meta { flex-direction: column; gap: 4px; }
  .rv-final .rv-meta { align-items: center; }
  .rv-meta span:not(:last-child)::after { content: none; }
}
