/* Soyén · gaya halaman selain beranda (topik, bisnis, area, rakit box, hadiah, voting).
   Memakai token dan komponen dari style.css; warna tetap hanya dari palet 3.1. */

/* ----------------------------------------------------------- hero halaman */
.phero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(470px, 64vh, 660px); padding: calc(var(--header-h) + clamp(30px, 4vw, 60px)) 0 clamp(96px, 11vw, 170px); background: var(--bg); color: var(--ink); }
.phero .bean { position: absolute; z-index: -1; top: 0; right: 0; height: 100%; width: auto; aspect-ratio: 300 / 427; color: var(--bean); }
.phero .vtitle { position: absolute; right: clamp(14px, 2vw, 34px); bottom: 24%; font-size: clamp(22px, 2.8vw, 40px); color: var(--vt); }
.phero-art { position: absolute; right: clamp(84px, 12vw, 220px); bottom: clamp(70px, 9vw, 130px); height: 56%; display: flex; align-items: flex-end; }
.phero-art img { height: 100%; width: auto; max-width: none; margin-left: -2.5%; filter: drop-shadow(0 22px 18px var(--shadow)); animation: float 6.5s ease-in-out infinite; }
.phero-art img:nth-child(2) { animation-duration: 5.2s; animation-delay: -2s; }
.phero-art img:nth-child(3) { animation-duration: 7.4s; animation-delay: -4s; }
.phero-art .b250 { height: 63.4%; }
.phero-art-yen { height: 60%; right: clamp(110px, 15vw, 270px); }
.phero-art-yen img, .phero-art-box img { filter: none; }
.phero-art-box { height: 44%; bottom: clamp(100px, 13vw, 180px); }
.phero-art-box img { filter: drop-shadow(0 22px 18px var(--shadow)); }
.phero-copy > * { max-width: min(600px, 42vw); }
.phero .title { margin: 14px 0 18px; font-size: clamp(34px, 4.6vw, 62px); }
.phero .lead { color: var(--ink-soft); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 22px; font-size: 13px; font-weight: 500; opacity: .85; }
.crumbs a { text-underline-offset: 3px; }

/* --------------------------------------------------------------- bagian */
.psec { padding: clamp(56px, 7vw, 104px) 0; color: var(--brown); }
.psec + .psec:not(.psec-emerald):not(.psec-yellow) { padding-top: 0; }
.psec-tight { padding: 0 0 clamp(48px, 6vw, 88px); }
.psec .label { color: var(--emerald); }
.psec .title { color: var(--emerald); margin-top: 12px; }
.psec-head { margin-bottom: clamp(24px, 3vw, 44px); }
.psec-emerald { background: var(--emerald); color: var(--soy); --focus: var(--yellow); }
.psec-emerald .label { color: var(--yellow); }
.psec-emerald .title { color: var(--soy); }
.psec-yellow { background: var(--yellow); }
.psec-emerald + .psec, .psec-yellow + .psec, .psec-yellow + .faq { padding-top: clamp(56px, 7vw, 104px); }
.psec-faq { padding-top: 0; }
.psec a:not(.btn):not(.outlet-link) { color: var(--emerald); font-weight: 600; text-underline-offset: 3px; }

.prose > p:not(.label) { max-width: 44em; margin-top: 16px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; }
.prose .title { max-width: 18em; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.tiles li { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.2vw, 30px); border: 2px solid var(--emerald); border-radius: var(--radius); }
.tiles .reason-no { margin-bottom: 8px; }
.tiles h3 { font-size: clamp(19px, 1.8vw, 23px); font-weight: 600; line-height: 1.2; color: var(--emerald); }
.tiles p { font-size: 15px; line-height: 1.55; }
.psec-yellow .tiles li { background: var(--soy); border-color: transparent; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 44px); counter-reset: none; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.steps h3 { font-size: clamp(19px, 1.8vw, 23px); font-weight: 600; line-height: 1.2; }
.steps p { margin-top: 6px; font-size: 15px; line-height: 1.55; opacity: .92; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 24px); }
.plan-card { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius); background: var(--emerald); color: var(--soy); --focus: var(--yellow); }
.plan-card .label { color: var(--yellow); }
.plan-card .plan-price { font-size: clamp(48px, 5vw, 68px); }
.plan-card .plan-items { flex: 1; }
.plan-card .btn { align-self: flex-start; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(26px, 3.4vw, 48px); border-radius: calc(var(--radius) + 8px); background: var(--yellow); }
.cta-band .title { margin: 0 0 8px; font-size: clamp(26px, 3vw, 40px); }
.cta-band .actions { margin-top: 0; }

.linkchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.linkchips a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 2px solid var(--emerald); border-radius: 999px; font-size: 14px; text-decoration: none; transition: background-color .2s, color .2s; }
.linkchips a:hover { background: var(--emerald); color: var(--soy); }
.gift-list + .fine { margin-top: 4px; }
.outlet-nama { font-size: clamp(20px, 1.9vw, 24px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.outlet-nama a { color: var(--emerald); text-decoration: none; }

/* ------------------------------------------------------------- formulir */
.form-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.form-side .lead { margin-top: 16px; }
.form-card { padding: clamp(22px, 3vw, 40px); border-radius: var(--radius); background: var(--emerald); color: var(--soy); --focus: var(--yellow); }
.form-card form, .form-done { display: flex; flex-direction: column; gap: 14px; }
.form-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--yellow); }
.form-card .field span, .form-card legend { color: var(--yellow); }
.form-card .field input, .form-card .field select, .form-card .field textarea { border-color: var(--line-light); color: var(--soy); }
.form-card .field input::placeholder { color: var(--soy); opacity: .5; }
.form-card .field input:focus, .form-card .field select:focus { border-color: var(--yellow); }
.field select { width: 100%; padding: 11px 14px; border: 2px solid var(--line); border-radius: 14px; background: transparent; font: inherit; font-size: 16px; color: var(--brown); }
.field select option { color: var(--brown); background: var(--soy); }
.form-card .fine a, .psec .form-card a:not(.btn) { color: var(--soy); }
.form-card .choice { margin-top: 0; }
.chip-light span { border-color: var(--soy); color: var(--soy); }
.chip-light input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--emerald); }
.chip-light input:focus-visible + span { outline-color: var(--yellow); }
.chip-small span { min-height: 38px; padding: 0 14px; font-size: 13px; }
.form-done { align-items: flex-start; outline: none; }
.form-done img { width: 120px; }
.form-done p { font-size: 16px; line-height: 1.55; }
.form-done[hidden] { display: none; }

.tally { margin-top: 30px; }
.bars { display: grid; gap: 10px; margin-top: 12px; }
.bars li { display: grid; grid-template-columns: minmax(110px, 9em) 1fr 2.5em; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.bars b { text-align: right; color: var(--emerald); }
.bar { display: block; flex: 1; height: 10px; border-radius: 999px; background: rgba(3, 73, 73, .14); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--emerald); transition: width .9s var(--ease); }

/* ------------------------------------------------------------ rakit box */
.rakit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.rakit-lini { margin-top: 30px; }
.rakit-lini-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.rakit-lini-head h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.01em; color: var(--emerald); }
.rakit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
.rakit-item { position: relative; display: flex; flex-direction: column; width: 100%; text-align: left; }
.rakit-thumb { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.08; overflow: hidden; border-radius: 18px; background: var(--bg); }
.rakit-thumb .bean { position: absolute; top: 0; right: 0; width: 87.83%; height: 100%; color: var(--bean); }
.rakit-thumb img { position: absolute; left: 40%; bottom: 7%; height: 80%; width: auto; max-width: none; transform: translateX(-50%); transition: transform .45s var(--ease); filter: drop-shadow(0 8px 8px var(--shadow)); }
.rakit-item:hover img { transform: translateX(-50%) translateY(-4%) rotate(-5deg); }
.rakit-item:active .rakit-thumb { transform: scale(.97); }
.rakit-nama { margin-top: 8px; font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--emerald); }
.rakit-harga { font-size: 13px; }
.rakit-plus { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald); color: var(--soy); font-size: 20px; line-height: 1; transition: transform .25s var(--ease), background-color .2s, color .2s; }
.rakit-item:hover .rakit-plus { transform: rotate(90deg) scale(1.1); background: var(--yellow); color: var(--emerald); }
.rakit-box { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--emerald); color: var(--soy); --focus: var(--yellow); }
.rakit-box .label { color: var(--yellow); }
.rakit-slot { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 14px 12px 10px; border-radius: 18px; background: var(--soy); }
.rakit-slot li { aspect-ratio: 388 / 677; border: 2px dashed rgba(3, 73, 73, .32); border-radius: 10px; }
.rakit-slot li.is-isi { border-color: transparent; }
.rakit-slot button { display: block; width: 100%; height: 100%; --focus: var(--emerald); }
.rakit-slot img { width: 100%; height: 100%; object-fit: contain; }
.rakit-slot .is-baru img { animation: pop .45s var(--ease); }
.rakit-sisa { font-weight: 600; font-size: 15px; color: var(--yellow); }
.rakit-daftar li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-light); font-size: 14px; }
.rakit-daftar b { display: block; font-weight: 600; }
.rakit-daftar span { font-size: 13px; opacity: .85; }
.rakit-box .stepper { border-color: var(--soy); color: var(--soy); }
.rakit-box .cart-total { color: var(--yellow); }
.rakit-box .btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.rakit-kosong { align-self: center; padding: 6px 12px; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.rakit-box .fine a, .psec .rakit-box a:not(.btn) { color: var(--soy); }

/* --------------------------------------------------------------- hadiah */
.hadiah { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.hadiah-form { display: flex; flex-direction: column; gap: 22px; }
.hadiah-form .choice { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.hadiah-form legend { font-size: 15px; letter-spacing: .04em; }
.hadiah-pilih { display: grid; gap: 10px; }
.hadiah-opsi { position: relative; display: block; }
.hadiah-opsi input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hadiah-opsi span { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 20px; border: 2px solid var(--emerald); border-radius: 18px; color: var(--emerald); transition: background-color .2s, color .2s; }
.hadiah-opsi b { font-size: 19px; font-weight: 600; }
.hadiah-opsi small { grid-column: 1; font-size: 13px; line-height: 1.45; color: var(--brown); }
.hadiah-opsi strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 20px; font-weight: 600; }
.hadiah-opsi input:checked + span { background: var(--emerald); color: var(--soy); }
.hadiah-opsi input:checked + span small { color: var(--soy); }
.hadiah-opsi input:focus-visible + span { outline: 3px solid var(--emerald); outline-offset: 3px; }
.field span i { float: right; font-style: normal; font-weight: 500; letter-spacing: 0; opacity: .7; }
.kartu-wrap { position: sticky; top: 110px; }
.kartu-wrap .label { margin-bottom: 14px; }
.kartu { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 38px); border-radius: 26px; background: var(--yellow); color: var(--brown); transform: rotate(-1.5deg); box-shadow: 0 22px 44px rgba(27, 27, 30, .18); }
.kartu-untuk, .kartu-dari { font-size: 15px; }
.kartu-untuk b, .kartu-dari b { font-weight: 600; color: var(--emerald); }
.kartu-pesan { min-height: 4.2em; font-size: clamp(21px, 2.1vw, 27px); font-weight: 500; line-height: 1.32; letter-spacing: -.01em; color: var(--emerald); overflow-wrap: anywhere; }
.kartu-bawah { display: grid; grid-template-columns: 96px 1fr 84px; align-items: end; gap: 14px; padding-top: 16px; border-top: 2px dotted rgba(3, 73, 73, .38); font-size: 12.5px; line-height: 1.4; }
.kartu-bawah span { display: block; font-weight: 600; color: var(--emerald); }
.kartu-qr { width: 96px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soy); }
.kartu-qr svg { width: 100%; height: 100%; }

.ucapan { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.kartu-besar { width: min(560px, 100%); text-align: left; transform: rotate(-1deg); }
.kartu-besar .kartu-pesan { font-size: clamp(24px, 3vw, 34px); }
.ucapan-catatan { max-width: 34em; font-size: 15px; }
.ucapan .actions { justify-content: center; margin-top: 0; }
.ucapan-cetak { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; border: 2px dashed var(--emerald); border-radius: var(--radius); }
.kartu-qr-besar { width: 220px; background: #FFFFFF; }

/* --------------------------------------------------------------- voting */
.vote-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.vote-card { display: flex; flex-direction: column; gap: 8px; }
.vote-visual { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--bg); outline: 0 solid var(--emerald); transition: outline-width .2s; }
.vote-visual .bean { position: absolute; top: 0; right: 0; width: 87.83%; height: 100%; color: var(--bean); }
.vote-visual .vtitle { position: absolute; right: 9%; bottom: 9%; font-size: clamp(20px, 2.1vw, 28px); color: var(--bg); }
.vote-card.is-mine .vote-visual { outline-width: 4px; outline-offset: 3px; }
.vote-card h3 { margin-top: 8px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; line-height: 1.2; color: var(--emerald); }
.vote-card p { flex: 1; font-size: 14px; line-height: 1.5; }
.vote-bar { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.vote-bar b { min-width: 3em; text-align: right; color: var(--emerald); }
.vote-card .btn { align-self: flex-start; margin-top: 4px; }
.vote-card.is-mine .btn { background: var(--emerald); color: var(--soy); }

/* ------------------------------------------------------------ responsif */
@media (max-width: 1080px) {
  .rakit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .phero { display: block; min-height: 0; padding-top: calc(var(--header-h) + 14px); }
  .phero .bean { height: 300px; }
  .phero .vtitle { display: none; }
  .phero-art, .phero-art-yen, .phero-art-box { position: relative; right: auto; bottom: auto; height: 190px; justify-content: flex-end; margin: 0 clamp(64px, 16vw, 120px) 22px 0; }
  .phero-art-box { height: 150px; margin-top: 30px; }
  .phero-copy > * { max-width: none; }
  .tiles, .steps, .plans, .form-grid, .hadiah { grid-template-columns: minmax(0, 1fr); }
  .vote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kartu-wrap { position: static; }
  .rakit { grid-template-columns: minmax(0, 1fr); }
  /* Di HP, box jadi bilah ringkas yang menempel di bawah layar supaya isinya selalu terlihat
     saat memilih. Botol dikeluarkan dengan mengetuknya. */
  .rakit-box { position: sticky; top: auto; bottom: 10px; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 12px 14px; border-radius: 22px; box-shadow: 0 -8px 30px rgba(27, 27, 30, .24); }
  .rakit-box > .label, .rakit-box > .fine, .rakit-daftar, .rakit-kosong, .rakit-box .cart-total span { display: none; }
  .rakit-slot { grid-column: 1; grid-row: 1 / span 2; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 6px 4px; gap: 2px; border-radius: 14px; }
  .rakit-sisa { grid-column: 2; max-width: 8.5em; font-size: 12.5px; line-height: 1.3; text-align: right; }
  .rakit-box .cart-total { grid-column: 2; justify-content: flex-end; }
  .rakit-box .cart-total strong { font-size: 22px; }
  .rakit-box .btn { grid-column: 1 / -1; min-height: 46px; }
}
@media (max-width: 640px) {
  .rakit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vote-grid { gap: 22px 12px; }
  .kartu-bawah { grid-template-columns: 84px 1fr 64px; }
  .kartu-qr { width: 84px; }
  .cta-band .title { font-size: 26px; }
  .bars li { grid-template-columns: minmax(96px, 7.5em) 1fr 2em; }
}
@media print {
  .site-header, .site-footer, .phero, .actions, .ucapan-catatan, .toast, .yen-pop, [data-u-print] { display: none !important; }
  .kartu { box-shadow: none; transform: none; border: 1px solid #034949; }
}
