/* RyPOS — halaman produk & panduan. Memakai token situs (v4: hitam, emas champagne). */
.rp { --paper: #f2efe8; --paper-ink: #0a0907; --wire: #3a352a; }

/* ---------- hero ---------- */
.rp-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; padding: 24px var(--edge) 0; min-height: min(calc(100svh - 76px), 880px); }
.rp-mark { width: 88px; height: 88px; margin-bottom: 28px; }
.rp-hero h1 { font-size: clamp(4.5rem, 9vw, 9rem); font-weight: 500; letter-spacing: -0.05em; line-height: .9; }
.rp-hero h1 span { color: var(--gold); }
.rp-lead { font-size: var(--step-lead); line-height: 1.35; color: var(--ink); max-width: 30ch; margin-top: 24px; }
.rp-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.rp-facts { margin-top: 32px; display: grid; gap: 6px; color: var(--muted); font-size: var(--step-small); }
.rp-facts li { padding-left: 18px; position: relative; }
.rp-facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--gold); }

/* ---------- panggung 3D ---------- */
.rp-stage { position: relative; margin: 0; display: grid; justify-items: center; align-content: center; gap: 28px; perspective: 1800px; padding: 40px 0 20px; touch-action: pan-y; }
.rp-rig { --rx: 14deg; --ry: -24deg; position: relative; width: min(620px, 92%); aspect-ratio: 16 / 10.4; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .7s var(--ease); }
.rp-rig.live { transition: transform .12s linear; }
.rp-dev { position: absolute; transform-style: preserve-3d; }
.rp-tablet { inset: 0; }
.rp-phone { width: 25%; aspect-ratio: 9 / 19.5; right: -9%; bottom: -16%; transform: translateZ(90px) rotateY(8deg); }
.rp-body, .rp-face { position: absolute; inset: 0; border-radius: 26px; }
.rp-phone .rp-body, .rp-phone .rp-face { border-radius: 22px; }
/* Bodi bertumpuk memberi ketebalan nyata saat dimiringkan. */
.rp-body { background: linear-gradient(135deg, #2a2823, #0d0c0a 60%); transform: translateZ(-10px); box-shadow: 0 0 0 1px #3b372d; }
.rp-body.l2 { transform: translateZ(-6px); background: #1c1a16; }
.rp-body.l3 { transform: translateZ(-2px); background: #24221d; }
.rp-face { background: #0b0b0b; padding: 12px; box-shadow: inset 0 0 0 1.5px #3b372d, inset 0 1px 0 #55503f; transform: translateZ(1px); }
.rp-phone .rp-face { padding: 7px; }
.rp-face img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 14px; background: #ececec; transition: opacity .35s var(--ease); }
.rp-phone .rp-face img { border-radius: 16px; }
.rp-face img.fade { opacity: 0; }
.rp-face::after { content: ""; position: absolute; inset: 12px; border-radius: 14px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 38%); }
.rp-phone .rp-face::after { inset: 7px; border-radius: 16px; }
.rp-floor { width: min(560px, 80%); height: 40px; margin-top: -10px; background: radial-gradient(closest-side, rgba(203,164,90,.22), rgba(0,0,0,0)); filter: blur(6px); }
.rp-screens { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rp-screens button { background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); padding: 10px 16px; border-radius: 2px; cursor: pointer; font-size: var(--step-small); font-weight: 500; }
.rp-screens button:hover { color: var(--ink); }
.rp-screens button[aria-pressed="true"] { color: var(--gold-ink); background: var(--gold); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .rp-rig.idle { animation: rp-sway 9s ease-in-out infinite alternate; }
  @keyframes rp-sway { from { transform: rotateX(14deg) rotateY(-28deg); } to { transform: rotateX(10deg) rotateY(-16deg); } }
}

/* ---------- section ---------- */
.rp-sec { padding: 140px var(--edge) 0; }
.rp-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; padding-bottom: 48px; }
.rp-head h2 { grid-column: 1 / 7; font-size: var(--step-head); }
.rp-head p { grid-column: 8 / -1; color: var(--muted); font-size: var(--step-lead); line-height: 1.4; max-width: 46ch; }

.rp-day { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.rp-day li { padding: 28px 28px 32px 0; box-shadow: inset 0 1px 0 var(--line); }
.rp-day li + li { padding-left: 28px; box-shadow: inset 0 1px 0 var(--line), inset 1px 0 0 var(--line); }
.rp-day time { display: block; color: var(--gold); font-size: 2.25rem; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rp-day h3 { margin: 6px 0 12px; }
.rp-day p { color: var(--muted); max-width: 34ch; }

.rp-all { margin-top: 96px; }
.rp-all h3 { font-size: var(--step-lead); margin-bottom: 20px; }
.rp-all dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; }
.rp-all dl > div { padding: 22px 24px 26px 0; box-shadow: inset 0 1px 0 var(--line); }
.rp-all dt { font-weight: 600; margin-bottom: 6px; }
.rp-all dd { margin: 0; color: var(--muted); font-size: var(--step-small); line-height: 1.5; max-width: 36ch; }

/* ---------- jaringan ---------- */
.rp-net { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.rp-net svg { width: 100%; height: auto; }
.rp-net .wire path { stroke: var(--wire); }
.rp-net .pulse path { stroke: var(--gold); stroke-dasharray: 10 300; stroke-dashoffset: 0; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .rp-net .pulse path { animation: rp-flow 2.8s linear infinite; }
  .rp-net .pulse path:nth-child(2) { animation-delay: .9s; }
  .rp-net .pulse path:nth-child(3) { animation-delay: 1.8s; }
  @keyframes rp-flow { to { stroke-dashoffset: -310; } }
}
@media (prefers-reduced-motion: reduce) { .rp-net .pulse { display: none; } }
.rp-net .node rect { fill: var(--tile-2); stroke: var(--wire); }
.rp-net .node text { fill: var(--ink); font: 600 17px "Bricolage Grotesque", sans-serif; text-anchor: middle; }
.rp-net .node text.s { fill: var(--muted); font-weight: 400; font-size: 13px; }
.rp-net .core rect { fill: var(--gold); stroke: none; }
.rp-net .core text, .rp-net .core text.s { fill: var(--gold-ink); }
.rp-net-notes { display: grid; gap: 24px; }
.rp-net-m { display: none; }
.rp-net-notes li { color: var(--muted); max-width: 44ch; }
.rp-net-notes b { color: var(--ink); font-weight: 600; }

/* ---------- harga: struk ---------- */
.rp-receipts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.receipt { position: relative; background: var(--paper); color: var(--paper-ink); padding: 28px 26px 44px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size: .95rem; line-height: 1.5;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
.receipt header { text-align: center; padding-bottom: 14px; border-bottom: 1.5px dashed rgba(10,9,7,.55); }
.receipt header b { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.receipt header span { display: block; color: #4a463d; font-size: .875rem; }
.receipt ul { padding: 12px 0; border-bottom: 1.5px dashed rgba(10,9,7,.55); }
.receipt li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.receipt li.no { color: #6b665b; text-decoration: line-through; text-decoration-color: rgba(10,9,7,.35); }
.receipt .total { display: flex; justify-content: space-between; margin-top: 10px; }
.receipt .total.big { font-size: 1.3rem; font-weight: 700; padding-top: 8px; border-top: 1.5px solid var(--paper-ink); }
.receipt .action { width: 100%; justify-content: center; margin-top: 22px; font-family: "Bricolage Grotesque", system-ui, sans-serif; }
.receipt .action.line { color: var(--paper-ink); box-shadow: inset 0 0 0 1.5px var(--paper-ink); }
.receipt .action.line:hover { background: var(--paper-ink); color: var(--paper); }
.receipt .action:not(.line) { background: var(--paper-ink); color: var(--gold); }
.receipt .action:not(.line):hover { background: #26221a; }
.receipt.best { transform: translateY(-14px); }
.receipt.best::before { content: "Paling lengkap"; position: absolute; top: 0; right: 18px; background: var(--gold); color: var(--gold-ink); font: 600 .8rem "Bricolage Grotesque", sans-serif; padding: 6px 10px 5px; }

.rp-license { margin-top: 96px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
.rp-license h3 { grid-column: 1 / -1; font-size: var(--step-lead); }
.rp-license table { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
.rp-license caption { text-align: left; color: var(--muted); padding-bottom: 12px; }
.rp-license th, .rp-license td { text-align: left; padding: 14px 16px 14px 0; box-shadow: inset 0 -1px 0 var(--line); vertical-align: top; }
.rp-license th { color: var(--muted); font-weight: 500; }
.rp-license td:nth-child(3) { color: var(--gold); font-weight: 600; }
.rp-license td:last-child { white-space: nowrap; }
.rp-license a { color: var(--gold); }
.rp-rules { display: grid; gap: 14px; color: var(--muted); font-size: var(--step-small); }
.rp-rules li { padding-left: 18px; position: relative; max-width: 52ch; }
.rp-rules li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--gold); }

/* ---------- unduh ---------- */
.rp-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.rp-dl-card { background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); padding: 32px; display: grid; gap: 14px; align-content: start; }
.rp-dl-card h3 { font-size: 2rem; }
.rp-dl-card > p:first-of-type { color: var(--muted); max-width: 42ch; }
.rp-dl-card .action { justify-self: start; }
.rp-dl-card .action[aria-disabled="true"] { background: var(--tile-3); color: var(--muted); pointer-events: none; }

/* ---------- beli ---------- */
.rp-buy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.rp-steps { counter-reset: s; display: grid; gap: 0; }
.rp-steps li { counter-increment: s; position: relative; padding: 22px 0 22px 56px; box-shadow: inset 0 -1px 0 var(--line); color: var(--muted); }
.rp-steps li::before { content: counter(s); position: absolute; left: 0; top: 20px; color: var(--gold); font-size: 2rem; font-weight: 500; line-height: 1; }
.rp-steps b { color: var(--ink); font-weight: 600; }
.rp-form { display: grid; gap: 14px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); padding: 28px; }
.rp-form label { display: grid; gap: 6px; font-size: var(--step-small); color: var(--muted); }
.rp-form input, .rp-form select { height: 52px; padding: 0 14px; background: var(--tile-2); color: var(--ink); border: 0; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line); font-size: 1rem; }
.rp-form input:focus, .rp-form select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--gold); background: var(--tile-3); }
.rp-form input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #e27d6a; }
.rp-form button { justify-content: center; }
.rp-err { color: #f0a090; font-size: var(--step-small); }

/* ---------- FAQ ---------- */
.rp-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.rp-qs details { box-shadow: inset 0 -1px 0 var(--line); padding: 20px 0; }
.rp-qs summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.rp-qs summary::-webkit-details-marker { display: none; }
.rp-qs summary::after { content: "+"; color: var(--gold); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.rp-qs details[open] summary::after { content: "−"; }
.rp-qs details p { color: var(--muted); margin-top: 12px; max-width: 60ch; }
.rp-faq { padding-bottom: 120px; }

/* ---------- panduan ---------- */
.gd { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding: 40px var(--edge) 120px; align-items: start; }
.gd-toc { position: sticky; top: 92px; display: grid; gap: 2px; font-size: var(--step-small); }
.gd-toc a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 2px; box-shadow: inset 2px 0 0 transparent; }
.gd-toc a:hover { color: var(--ink); }
.gd-toc a.on { color: var(--ink); box-shadow: inset 2px 0 0 var(--gold); background: var(--tile); }
.gd-body { max-width: 860px; }
.gd-body > header h1 { font-size: clamp(2.75rem, 2rem + 3vw, 4.75rem); font-weight: 500; letter-spacing: -0.04em; line-height: .95; }
.gd-body > header p { color: var(--muted); font-size: var(--step-lead); line-height: 1.4; margin-top: 18px; max-width: 46ch; }
.gd-body section { padding-top: 88px; }
.gd-body h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); margin-bottom: 16px; }
.gd-body h3 { font-size: 1.25rem; margin: 32px 0 10px; }
.gd-body p, .gd-body li { color: #d6d1c6; line-height: 1.6; }
.gd-body p + p { margin-top: 12px; }
.gd-body ol.gd-steps { counter-reset: g; display: grid; gap: 10px; margin: 16px 0; }
.gd-body ol.gd-steps > li { counter-increment: g; position: relative; padding-left: 40px; }
.gd-body ol.gd-steps > li::before { content: counter(g); position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 600; }
.gd-body ul.gd-list { display: grid; gap: 8px; margin: 12px 0; }
.gd-body ul.gd-list li { padding-left: 18px; position: relative; }
.gd-body ul.gd-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--gold); }
.gd-body b, .gd-body strong { color: var(--ink); }
.gd-body kbd, .gd-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--tile-3); color: var(--ink); padding: 2px 6px; border-radius: 2px; }
.gd-shot { margin: 22px 0 6px; }
.gd-shot img { width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); background: #ececec; }
.gd-shot.ph { max-width: 340px; }
.gd-shot figcaption { color: var(--muted); font-size: var(--step-small); margin-top: 8px; }
.gd-note { margin: 18px 0; padding: 16px 18px; background: var(--tile); box-shadow: inset 3px 0 0 var(--gold); border-radius: 2px; color: #d6d1c6; }
.gd-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: var(--step-small); }
.gd-body th, .gd-body td { text-align: left; padding: 12px 14px 12px 0; box-shadow: inset 0 -1px 0 var(--line); vertical-align: top; color: #d6d1c6; }
.gd-body th { color: var(--muted); font-weight: 500; }

/* ---------- responsif ---------- */
@media (max-width: 1100px) {
  .rp-hero { grid-template-columns: 1fr; min-height: 0; max-height: none; padding-top: 40px; }
  .rp-stage { padding-top: 10px; }
  .rp-head h2, .rp-head p { grid-column: 1 / -1; }
  .rp-day, .rp-all dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-day li:nth-child(3) { padding-left: 0; box-shadow: inset 0 1px 0 var(--line); }
  .rp-net, .rp-license, .rp-buy { grid-template-columns: 1fr; }
  .rp-receipts { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .receipt.best { transform: none; }
  .gd { grid-template-columns: 1fr; }
  .gd-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .rp-sec { padding-top: 96px; }
  .rp-hero h1 { font-size: 22vw; }
  .rp-mark { width: 64px; height: 64px; margin-bottom: 18px; }
  .rp-acts .action { flex: 1 1 100%; justify-content: center; }
  .rp-day, .rp-all dl, .rp-dl, .rp-qs { grid-template-columns: 1fr; }
  .rp-day li, .rp-day li + li { padding: 22px 0; box-shadow: inset 0 1px 0 var(--line); }
  .rp-phone { right: -4%; }
  .rp-license th:nth-child(2), .rp-license td:nth-child(2) { display: none; }
  .gd-toc { grid-template-columns: 1fr; }
  .rp-net svg { display: none; }
  .rp-net-m { display: grid; gap: 8px; padding-left: 22px; position: relative; }
  .rp-net-m::before { content: ""; position: absolute; left: 6px; top: 24px; bottom: 24px; width: 2px; background: var(--wire); }
  .rp-net-m li { position: relative; background: var(--tile-2); box-shadow: inset 0 0 0 1px var(--wire); border-radius: var(--r); padding: 12px 14px; }
  .rp-net-m li::before { content: ""; position: absolute; left: -17px; top: 50%; width: 15px; height: 2px; background: var(--wire); }
  .rp-net-m li.core { background: var(--gold); color: var(--gold-ink); box-shadow: none; }
  .rp-net-m b { display: block; }
  .rp-net-m span { font-size: var(--step-small); color: var(--muted); }
  .rp-net-m li.core span { color: var(--gold-ink); }
}
