/* ==========================================================================
   Panggung perangkat (Android & iOS): layout demo, bingkai ponsel, panel info
   ========================================================================== */
.stage-bg {
  min-height: calc(100vh - var(--demobar-h));
  background:
    radial-gradient(600px 420px at 12% 18%, color-mix(in srgb, #3f9b2f 14%, transparent), transparent 70%),
    radial-gradient(560px 420px at 88% 22%, color-mix(in srgb, #0e88c9 12%, transparent), transparent 70%),
    radial-gradient(600px 420px at 50% 100%, color-mix(in srgb, #e07a1f 10%, transparent), transparent 70%),
    var(--bg);
  position: relative; overflow: hidden;
}
.stage-bg::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); pointer-events: none; }
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 44px; align-items: center; max-width: 1480px; margin: 0 auto; padding: 24px 32px; min-height: calc(100vh - var(--demobar-h)); }
.stage-info { max-width: 430px; justify-self: end; }
.stage-ctl { max-width: 360px; justify-self: start; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text-2); box-shadow: var(--shadow-xs); }
.eyebrow .dicon { width: 20px; height: 20px; border-radius: 6px; }
.eyebrow .dicon svg { width: 12px; height: 12px; }
.eyebrow .paid { font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.stage-info h1 { font-size: 34px; font-weight: 800; letter-spacing: -.035em; margin: 16px 0 10px; line-height: 1.12; }
.stage-info h1 em { font-style: normal; background: linear-gradient(100deg, var(--primary), #0e88c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage-info > p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.feat { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
.feat button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; border: 1px solid transparent; background: none; text-align: left; transition: .15s; }
.feat button:hover { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-xs); }
.feat button.on { background: var(--surface); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: var(--shadow-sm); }
.feat .dicon { width: 36px; height: 36px; border-radius: 11px; }
.feat .dicon svg { width: 17px; height: 17px; }
.feat b { display: block; font-size: 13.5px; }
.feat span:not(.dicon) { display: block; font-size: 12px; color: var(--muted); }
.feat button > svg:last-child { margin-left: auto; color: var(--faint); width: 16px; height: 16px; }
.ctl-card { padding: 16px; }
.ctl-card h4 { font-size: 13px; font-weight: 750; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ctl-card h4 svg { width: 16px; height: 16px; color: var(--primary); }
.ctl-card .btn { justify-content: flex-start; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 12.5px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 650; text-align: right; }
.qr-box { display: flex; gap: 14px; align-items: center; }
.qr-box .qr { padding: 8px; border-radius: 12px; background: #fff; color: #111; border: 1px solid var(--border); flex-shrink: 0; }
.qr-box p { font-size: 12px; color: var(--muted); }
.qr-box b { display: block; font-size: 13px; color: var(--text); margin-bottom: 3px; }

/* Bingkai perangkat */
.device-wrap { position: relative; flex-shrink: 0; }
.device { position: relative; width: var(--w); height: var(--h); transform: scale(var(--s, 1)); transform-origin: 0 0; }
.device .screen { position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate; }
.device::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .07); }
.device-shadow { position: absolute; left: 10%; right: 10%; bottom: -26px; height: 40px; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .35), transparent 70%); filter: blur(8px); z-index: -1; }

.device.android { --w: 384px; --h: 808px; border-radius: 48px; padding: 12px; background: linear-gradient(145deg, #2a2f2c, #121513); box-shadow: 0 0 0 1.5px #3a403c, 0 50px 90px -30px rgba(0, 0, 0, .55), 0 18px 36px -18px rgba(0, 0, 0, .4); }
.device.android .screen { border-radius: 37px; background: #000; }
.device.android .punch { position: absolute; top: 25px; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3a4a 0 18%, #050607 40%); z-index: 200; box-shadow: 0 0 0 2px #0b0c0c; }
.hw { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #1b1e1c, #3a403c); }
.android .hw.p { right: -4px; top: 190px; height: 64px; }
.android .hw.v { right: -4px; top: 284px; height: 118px; }

.device.iphone { --w: 417px; --h: 876px; border-radius: 66px; padding: 12px; background: linear-gradient(145deg, #4a4f55, #1d2024 40%, #3d4248); box-shadow: 0 0 0 2px #5c6268, 0 0 0 4px #1a1c1f, 0 50px 90px -30px rgba(0, 0, 0, .55), 0 18px 36px -18px rgba(0, 0, 0, .45); }
.device.iphone .screen { border-radius: 55px; background: #000; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; border-radius: 20px; background: #000; z-index: 200; transition: width .45s cubic-bezier(.2, .9, .3, 1.2), height .45s cubic-bezier(.2, .9, .3, 1.2), border-radius .45s; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; overflow: hidden; color: #fff; }
.island.expand { width: 352px; height: 74px; border-radius: 34px; }
.iphone .hw.p { right: -5px; top: 250px; height: 98px; width: 5px; background: linear-gradient(90deg, #2a2d31, #5b6167); }
.iphone .hw.v { left: -5px; top: 200px; height: 62px; width: 5px; background: linear-gradient(270deg, #2a2d31, #5b6167); }
.iphone .hw.v2 { left: -5px; top: 278px; height: 62px; width: 5px; background: linear-gradient(270deg, #2a2d31, #5b6167); }
.iphone .hw.a { left: -5px; top: 142px; height: 32px; width: 5px; background: linear-gradient(270deg, #2a2d31, #5b6167); }

/* Mode embed: hanya perangkat */
body.is-embed .stage-info, body.is-embed .stage-ctl { display: none; }
body.is-embed .stage { grid-template-columns: 1fr; padding: 8px; min-height: 100vh; justify-items: center; }
body.is-embed .stage-bg { background: transparent; min-height: 100vh; }
body.is-embed .stage-bg::before { display: none; }

@media (max-width: 1180px) {
  .stage { grid-template-columns: auto minmax(0, 1fr); gap: 32px; }
  .stage-info { grid-column: 2; grid-row: 1; justify-self: start; }
  .device-wrap { grid-column: 1; grid-row: 1 / span 2; }
  .stage-ctl { grid-column: 2; grid-row: 2; align-self: start; }
}
@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; padding: 20px 16px 40px; justify-items: center; }
  .stage-info, .stage-ctl, .device-wrap { grid-column: 1; grid-row: auto; justify-self: center; }
  .stage-info { text-align: left; max-width: 520px; }
  .stage-ctl { max-width: 520px; width: 100%; }
  .stage-info h1 { font-size: 27px; }
}
body.is-embed { background: transparent; }
