/* oreach — gaya landing page */
:root {
  --mist: #eef1f8;
  --paper: #ffffff;
  --ink: #1c2340;
  --ink-2: #4a5275;
  --line: #d7dcec;
  --cobalt: #3a4be0;
  --gold: #f2b705;
  --gold-deep: #c99600;
  --night: #161c36;
  --good: #12805c;
  --bad: #c0362c;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--mist); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--cobalt); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
.muted { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Pita kampanye di paling atas */
.ribbon { background: var(--ink); text-align: center; padding: 9px 16px; font-size: 0.9rem; }
.ribbon a { color: #fff; text-decoration: none; }
.ribbon a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* Kepala halaman */
.top { max-width: 1160px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 800 1.5rem/1 var(--display); letter-spacing: -0.03em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--cobalt); }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font: 700 0.95rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.12s, background 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--cobalt); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffc61a; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Pembuka */
.hero { max-width: 1160px; margin: 0 auto; padding: 28px 20px 64px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); font-weight: 800; max-width: 12ch; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; margin: 22px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #e9edf8; transform: rotate(1.5deg); box-shadow: 0 30px 60px -30px rgb(28 35 64 / 45%); }
.hero-art img { width: 100%; height: auto; }

/* Produk */
.products { max-width: 1160px; margin: 0 auto; padding: 24px 20px 80px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-head h2, .faq h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.card-lead { grid-column: span 2; flex-direction: row; }
.card-lead .card-media { flex: 1.2; aspect-ratio: auto; min-height: 320px; }
.card-lead .card-body { flex: 1; justify-content: center; padding: 30px; }
.card-lead h3 { font-size: 2rem; }
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: #e3e8f5; cursor: pointer; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card-media:hover img { transform: scale(1.03); }
.ph { display: grid; place-items: center; height: 100%; font: 800 4rem var(--display); color: var(--line); }
.tag { position: absolute; left: 14px; top: 14px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 0.8rem; padding: 5px 11px; border-radius: 999px; }
.tag-static { position: static; display: inline-block; margin-bottom: 10px; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.4rem; }
.card-body p { margin: 0; color: var(--ink-2); }
.linkish { all: unset; cursor: pointer; }
.linkish:hover { color: var(--cobalt); }
.linkish:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.price { margin: 4px 0 0 !important; color: var(--ink) !important; font-size: 1.15rem; }
.price s { color: var(--ink-2); font-size: 0.95rem; }
.buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.img-missing { visibility: hidden; }

/* Sayembara (pita gelap) */
.campaign { background: var(--night); color: #e8ebf7; padding: 84px 20px; }
.camp-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.camp-kicker { color: var(--gold); font-weight: 700; margin: 0 0 10px; }
.camp-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; max-width: 18ch; color: #fff; }
.camp-lead { max-width: 58ch; font-size: 1.1rem; color: #c4cae6; margin: 18px 0 26px; }
.camp-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; }
.camp-facts div { min-width: 140px; }
.camp-facts dt { color: #9aa3cc; font-size: 0.9rem; }
.camp-facts dd { margin: 2px 0 0; font: 800 1.6rem/1.2 var(--display); color: #fff; }
.camp-facts div:first-child dd { color: var(--gold); font-size: 2.2rem; }

/* Podium 3D */
.podium-wrap { text-align: center; }
.podium-title { font-size: 1.4rem; color: #fff; margin-bottom: 26px; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; perspective: 900px; perspective-origin: 50% 20%; padding-top: 10px; }
.step { width: min(30vw, 210px); display: flex; flex-direction: column; align-items: center; }
.who { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.who img { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 10px 12px rgb(0 0 0 / 45%)); }
.juara-1 .who img { width: 150px; height: 150px; }
.ghost { display: grid; place-items: center; width: 90px; height: 90px; border-radius: 50%; border: 2px dashed #46507e; color: #46507e; font: 800 2.4rem var(--display); }
.who-name { margin: 6px 0 0; font-weight: 700; color: #fff; }
.who-score { margin: 0; font: 800 1.25rem var(--display); color: var(--gold); }
.who-status { margin: 2px 0 0; font-size: 0.78rem; color: #9aa3cc; }
.who-status.ok { color: #6fe0b4; }
.block { position: relative; width: 100%; display: flex; flex-direction: column; }
/* permukaan atas podium (trapesium karena perspektif) */
.cap { display: block; height: 34px; margin: 0 -4px; transform: perspective(260px) rotateX(58deg); transform-origin: bottom; border-radius: 8px 8px 0 0; }
.front { display: grid; place-items: start center; padding-top: 14px; border-radius: 0 0 4px 4px; box-shadow: inset 0 -18px 30px rgb(0 0 0 / 18%); }
.rank { font: 800 2.6rem/1 var(--display); color: rgb(255 255 255 / 92%); text-shadow: 0 2px 0 rgb(0 0 0 / 18%); }
.juara-1 .front { height: 180px; background: linear-gradient(180deg, #f6c21a, #c48f00); }
.juara-1 .cap { background: #ffe07a; }
.juara-2 .front { height: 132px; background: linear-gradient(180deg, #b9c3df, #8590b3); }
.juara-2 .cap { background: #e3e8f6; }
.juara-3 .front { height: 98px; background: linear-gradient(180deg, #d88f55, #a45f2b); }
.juara-3 .cap { background: #f3b98a; }
.juara-1 .rank { color: var(--ink); }
.step.empty .block { opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  .podium.rise .block { animation: rise 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) both; transform-origin: bottom; }
  .podium.rise .juara-2 .block { animation-delay: 0.15s; }
  .podium.rise .juara-3 .block { animation-delay: 0.3s; }
  @keyframes rise { from { transform: scaleY(0.05); } }
}
.board { list-style: none; margin: 18px auto 0; padding: 0; max-width: 520px; text-align: left; counter-reset: rk 3; }
.board li { counter-increment: rk; display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #2b3358; }
.board li::before { content: counter(rk); width: 26px; font-weight: 800; color: #9aa3cc; }
.board li span { flex: 1; }
.board li b { color: var(--gold); }
.board .board-empty { justify-content: center; color: #9aa3cc; border: 0; }
.board .board-empty::before { content: none; }
.podium-note { color: #8c95bf; font-size: 0.85rem; margin: 14px auto 0; max-width: 60ch; }

.camp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.camp-cols h3, .proof h3 { font-size: 1.4rem; color: #fff; margin-bottom: 12px; }
.camp-rules ul { margin: 0; padding-left: 20px; color: #c4cae6; }
.camp-rules li { margin: 6px 0; }
.evo-tip { margin-top: 28px; background: #1f2748; border-radius: var(--r-md); padding: 20px; }
.evo-tip h3 { font-size: 1.15rem; }
.evo-tip p { margin: 0 0 14px; color: #c4cae6; }
.evo-strip { display: flex; gap: 4px; justify-content: space-between; }
.evo-strip figure { margin: 0; flex: 1; text-align: center; }
.evo-strip img { display: block; width: 100%; max-width: 76px; height: auto; aspect-ratio: 1 / 1; object-fit: contain; margin: 0 auto; }
.evo-strip figcaption { font-size: 0.72rem; color: #9aa3cc; }
.evo-strip .sil { position: relative; display: block; max-width: 76px; margin: 0 auto; }
.evo-strip .sil b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 1.5rem var(--display, inherit); color: #f2b705; text-shadow: 0 2px 8px rgb(0 0 0 / 60%); }
.steps { margin: 0; padding-left: 22px; color: #c4cae6; }
.steps li { margin: 0 0 12px; padding-left: 4px; }
.steps b { color: #fff; }

/* Formulir bukti */
.proof { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 30px; max-width: 820px; width: 100%; justify-self: center; }
.proof h3 { color: var(--ink); }
.proof-note { margin: 0 0 20px; padding: 12px 14px; background: #fff6d6; border-left: 4px solid var(--gold); border-radius: 8px; color: #5a4a10; font-size: 0.95rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.field i { font-weight: 400; color: var(--ink-2); }
.field input { min-width: 0; width: 100%; font: 500 1rem var(--body); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fbfcff; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgb(58 75 224 / 18%); }
.field.file input { padding: 10px; }
.field small { font-weight: 400; color: var(--ink-2); }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 8px; font-size: 0.95rem; }
.agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cobalt); }
.form-msg { min-height: 1.4em; margin: 8px 0 14px; }
.form-msg.good { color: var(--good); font-weight: 600; }
.form-msg.bad { color: var(--bad); font-weight: 600; }
.proof.closed .fields, .proof.closed .agree { opacity: 0.45; pointer-events: none; }

/* FAQ & kaki */
.faq { max-width: 820px; margin: 0 auto; padding: 84px 20px 40px; }
.faq h2 { margin-bottom: 18px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.foot { max-width: 1160px; margin: 0 auto; padding: 40px 20px 60px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); }
.foot-brand { font: 800 1.6rem var(--display); margin: 0; }
.foot p { margin: 4px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Detail produk */
.detail { border: 0; border-radius: var(--r-lg); padding: 0; width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--paper); color: var(--ink); }
.detail::backdrop { background: rgb(22 28 54 / 60%); }
.detail .close { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; }
.detail-body { display: grid; grid-template-columns: 1.2fr 1fr; }
.gallery { background: #e3e8f5; }
.gallery-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumbs { display: flex; gap: 8px; padding: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; width: 74px; cursor: pointer; background: none; }
.thumbs button:focus-visible, .thumbs button:hover { border-color: var(--cobalt); }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-text { padding: 34px 28px; display: flex; flex-direction: column; gap: 8px; }
.detail-text h2 { font-size: 2rem; }
.detail-text p { margin: 0 0 6px; color: var(--ink-2); }
.detail-camp a { font-weight: 700; }

/* Layar kecil */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  .hero-art { order: -1; transform: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card-lead { grid-column: span 2; }
  .camp-cols { grid-template-columns: minmax(0, 1fr); }
  .detail-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav { gap: 14px; }
  .nav a:last-child { display: none; }
  .grid { grid-template-columns: 1fr; }
  .card-lead { grid-column: auto; flex-direction: column; }
  .card-lead .card-media { min-height: 0; aspect-ratio: 4 / 3; }
  .card-lead .card-body { padding: 20px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .proof { padding: 22px 18px; }
  .campaign { padding: 64px 16px; }
  .podium { gap: 6px; }
  .step { width: 29vw; }
  .who-status { font-size: 0.7rem; }
  .who img { width: 76px; height: 76px; }
  .juara-1 .who img { width: 100px; height: 100px; }
  .who-name { font-size: 0.85rem; }
  .who-score { font-size: 1rem; }
  .juara-1 .front { height: 140px; }
  .juara-2 .front { height: 102px; }
  .juara-3 .front { height: 76px; }
  .rank { font-size: 2rem; }
}

/* v4: logo, pilihan bahasa (bendera) */
.brand img { width: 34px; height: 34px; object-fit: contain; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand img { width: 30px; height: 30px; object-fit: contain; }
.lang { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--paper, #fff); border: 1px solid var(--line, #dde2ee); flex: none; }
.lang button { display: grid; place-items: center; width: 38px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: none; cursor: pointer; opacity: 0.45; transition: opacity 0.15s; }
.lang button svg { display: block; width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / 12%); }
.lang button[aria-pressed='true'] { opacity: 1; background: var(--mist, #eef1f8); }
.lang button:hover { opacity: 0.85; }
.lang button:focus-visible { outline: 2px solid var(--cobalt, #3a4be0); outline-offset: 2px; }
@media (max-width: 560px) {
  .top { gap: 10px; }
  /* Di HP menu teks disembunyikan; logo + bendera saja (semua bagian bisa dicapai dengan menggulir). */
  .nav { display: none; }
  .lang { margin-left: auto; }
}
.nav a { white-space: nowrap; }
.evo-strip figcaption { white-space: nowrap; }
