/* ============================================================
   BingkaiLink - assets/css/home.css (v3 — "Papan Tempel")
   Mobile-first: base style untuk mobile, di-enhance ke atas
   via min-width media query.
   ============================================================ */

/* ============================================================
   REVEAL ANIMATION (dipakai di semua section)
   ============================================================ */
.reveal, .reveal-immediate {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible, .reveal-immediate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-immediate { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   STICKER BADGE — pengganti "badge" generik, gaya label ditempel
   ============================================================ */
.sticker-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-coral);
  background: #fff8f0;
  border: 1.5px dashed var(--accent-coral);
  padding: 4px 18px 8px;
  border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
  transform: rotate(-3deg);
  margin-bottom: 20px;
}
.sticker-badge-alt {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ============================================================
   MARKER HIGHLIGHT — sapuan stabilo di bawah teks, animasi saat reveal
   ============================================================ */
.marker-highlight {
  position: relative;
  white-space: nowrap;
  background-image: linear-gradient(120deg, var(--accent-yellow) 0%, var(--accent-yellow) 100%);
  background-repeat: no-repeat;
  background-size: 0% 42%;
  background-position: 0 88%;
  transition: background-size 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
  padding: 0 4px;
}
.reveal-immediate.is-visible .marker-highlight { background-size: 100% 42%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: visible;
  padding: 64px 20px 56px;
  text-align: center;
}

/* Tekstur grain halus - bukan gradient blur generik */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(2, 101, 194, 0.07), transparent 40%),
    radial-gradient(circle at 88% 12%, rgba(255, 107, 69, 0.06), transparent 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

.hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }

/* ============================================================
   HERO FLOATING FRAMES — showcase bingkai asli, bikin "produknya"
   langsung kelihatan di hero, bukan cuma form klaim polos.
   Disembunyikan di mobile kecil (jadi strip statis di bawah form),
   full-floating cuma di tablet ke atas biar tidak menabrak teks.
   ============================================================ */
.hero-floating-frames {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: none; /* default mobile: disembunyikan, diganti strip statis di bawah */
}

.floating-frame {
  position: absolute;
  animation: float-bob 5s ease-in-out infinite;
}
.floating-frame-card {
  position: relative;
  width: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  padding: 5px 5px 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(255,255,255,0.6);
}
.floating-frame-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  background: var(--color-bg-soft);
}
.floating-frame-badge {
  position: absolute;
  bottom: 12px; left: 10px;
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(15,23,42,0.65);
  backdrop-filter: blur(3px);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
}
.floating-frame-badge .icon { width: 9px; height: 9px; }

/* Tiga posisi + timing berbeda supaya geraknya terasa organik, tidak serempak.
   transform: translate(parallax) + rotate(statis) -- terpisah dari `translate`
   (properti CSS standalone) yang dipakai animasi bob, jadi keduanya jalan bareng. */
.floating-frame-1 { top: 6%; left: 3%; transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)) rotate(-8deg); animation-duration: 5.5s; animation-delay: 0s; transition: transform 0.15s ease-out; }
.floating-frame-2 { top: 12%; right: 2%; transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)) rotate(7deg); animation-duration: 6.2s; animation-delay: .4s; transition: transform 0.15s ease-out; }
.floating-frame-2 .floating-frame-card { width: 88px; }
.floating-frame-3 { bottom: 8%; left: 8%; transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)) rotate(6deg); animation-duration: 5.8s; animation-delay: .8s; transition: transform 0.15s ease-out; }
.floating-frame-3 .floating-frame-card { width: 78px; }

@keyframes float-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.hero-showcase-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}
.hero-showcase-caption .icon { width: 12px; height: 12px; color: var(--accent-coral); }

/* --- Strip statis showcase khusus mobile (pengganti floating yang disembunyikan) --- */
.hero-mobile-showcase {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 4px;
}
.hero-mobile-showcase .floating-frame-card { width: 64px; animation: float-bob 4.5s ease-in-out infinite; }
.hero-mobile-showcase .floating-frame-card:nth-child(2) { animation-delay: .3s; }
.hero-mobile-showcase .floating-frame-card:nth-child(3) { animation-delay: .6s; }

@media (min-width: 860px) {
  .hero-floating-frames { display: block; }
  .hero-mobile-showcase { display: none; }
  .hero-showcase-caption { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-frame, .hero-mobile-showcase .floating-frame-card { animation: none; }
}

/* ============================================================
   ANIMASI TAMBAHAN — sticker wiggle, tombol pulse
   ============================================================ */
.sticker-badge {
  animation: sticker-wiggle 4s ease-in-out infinite;
}
@keyframes sticker-wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(-6deg) translateY(-2px); }
}

.btn-pulse { position: relative; }
.btn-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--color-primary);
  opacity: 0;
  animation: btn-pulse-ring 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes btn-pulse-ring {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .sticker-badge { animation: none; }
  .btn-pulse::after { animation: none; display: none; }
}


.hero h1 {
  font-size: clamp(1.9rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.hero-subtitle {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  margin: 0 0 32px;
}

.claim-handle {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 14px;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.claim-handle:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 5px var(--color-primary-light); }
.claim-prefix { color: var(--color-text-muted); font-weight: 500; font-size: 0.85rem; text-align: left; padding-left: 4px; }
.claim-handle input {
  border: none; outline: none; font-family: inherit; font-size: 1rem;
  padding: 8px 4px; background: transparent; width: 100%;
}
.claim-handle .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.claim-handle .btn .icon { width: 16px; height: 16px; }

.hero-note { font-size: 0.82rem; color: var(--color-text-muted); }

/* ============================================================
   MARQUEE TICKER — dijalankan CSS animation murni, infinite loop
   ============================================================ */
.ticker-strip {
  overflow: hidden;
  background: var(--color-text);
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 34s linear infinite;
}
.ticker-strip:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0 14px;
  white-space: nowrap;
}
.ticker-dot { color: var(--accent-coral); margin-left: 14px; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ============================================================
   SECTION HEADER umum
   ============================================================ */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-coral);
  font-weight: 600;
  margin-bottom: 4px;
}
.section-header h2, .section-header-row h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0;
}
.section-header { text-align: center; max-width: 520px; margin: 0 auto 40px; }
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

/* ============================================================
   PAPAN TEMPEL (CORKBOARD) — signature element
   ============================================================ */
.corkboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
  padding: 8px 4px 24px;
}

.polaroid {
  display: block;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  padding: 10px 10px 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  position: relative;
}
.polaroid:hover, .polaroid:focus-visible {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
  z-index: 2;
}

.polaroid-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 46px;
  height: 20px;
  background: rgba(255, 210, 63, 0.55);
  border: 1px solid rgba(255, 210, 63, 0.2);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.polaroid-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-soft);
  overflow: hidden;
  border-radius: 2px;
}
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; }

.polaroid-usage {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
}
.polaroid-usage .icon { width: 11px; height: 11px; }

.polaroid-caption { padding-top: 10px; text-align: center; }
.polaroid-caption strong {
  display: block; font-size: 0.85rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.polaroid-caption span { font-size: 0.72rem; color: var(--color-text-muted); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 56px 20px; border: 1.5px dashed var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg-soft); }
.empty-state-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--color-primary); align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: var(--shadow-soft); }
.empty-state p { color: var(--color-text-muted); margin: 0 0 18px; }

/* ============================================================
   CHECKLIST ("Yang Bikin Beda") — editorial, bukan icon-grid
   ============================================================ */
.checklist-layout { display: flex; flex-direction: column; gap: 32px; }
.checklist-intro p { color: var(--color-text-muted); margin: 10px 0 0; max-width: 380px; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.checklist li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--color-border);
}
.checklist li:last-child { border-bottom: none; }

.checklist-mark {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.checklist-mark .icon { width: 15px; height: 15px; }
.checklist li strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.checklist li p { margin: 0; color: var(--color-text-muted); font-size: 0.88rem; }

/* ============================================================
   CARA KERJA — stamp-style number
   ============================================================ */
.steps-row { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.step-item { text-align: center; max-width: 260px; position: relative; padding-top: 8px; }
.step-stamp {
  position: absolute;
  top: -6px;
  right: calc(50% - 52px);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-coral);
  border: 2px dashed var(--accent-coral);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-8deg);
  background: #fff;
}
.icon-step { width: 30px; height: 30px; color: var(--color-primary); margin: 8px 0 12px; }
.step-item h3 { margin: 0 0 6px; font-size: 1.02rem; }
.step-item p { margin: 0; color: var(--color-text-muted); font-size: 0.87rem; }

.step-connector {
  width: 2px;
  height: 32px;
  background: repeating-linear-gradient(to bottom, var(--color-border) 0 6px, transparent 6px 12px);
}

/* ============================================================
   CTA — "tiket sobek"
   ============================================================ */
.ticket-cta {
  position: relative;
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  color: #fff;
  padding: 40px 28px;
  overflow: hidden;
}
.ticket-cta-main { text-align: center; margin-bottom: 28px; }
.ticket-cta-main h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0 0 10px; }
.ticket-cta-main p { opacity: 0.88; margin: 0; font-size: 0.92rem; }
.ticket-cta-main .sticker-badge { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.6); color: #fff; }

.ticket-cta-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
  border-top: 2px dashed rgba(255,255,255,0.3);
}
.ticket-cta-stub .btn-primary { background: #fff; color: var(--color-primary); display: inline-flex; align-items: center; gap: 8px; }
.ticket-cta-stub .btn-primary:hover { background: #f1f5f9; }
.ticket-cta-stub .btn-primary .icon { width: 16px; height: 16px; }

.ticket-cta-stats { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.ticket-cta-stats span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; opacity: 0.85; }
.ticket-cta-stats .icon { width: 15px; height: 15px; }

.ticket-cta::before, .ticket-cta::after {
  content: '';
  position: absolute;
  width: 26px; height: 26px;
  background: var(--color-bg-soft);
  border-radius: 50%;
  top: calc(100% - 130px);
}
.ticket-cta::before { left: -13px; }
.ticket-cta::after { right: -13px; }

/* ============================================================
   RESPONSIVE — tablet ke atas
   ============================================================ */
@media (min-width: 640px) {
  .hero { padding: 88px 24px 64px; }
  .claim-handle { flex-direction: row; align-items: center; padding: 8px 8px 8px 22px; border-radius: var(--radius-xl); }
  .claim-prefix { padding-left: 0; }
  .claim-handle input { padding: 10px 6px; }
  .claim-handle .btn { width: auto; }

  .corkboard { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }

  .steps-row { flex-direction: row; align-items: flex-start; justify-content: center; gap: 24px; }
  .step-connector { width: 60px; height: 2px; margin-top: 50px; background: repeating-linear-gradient(to right, var(--color-border) 0 6px, transparent 6px 12px); }

  .ticket-cta { padding: 56px 48px; }
  .ticket-cta-stub { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
  .hero-inner { max-width: 720px; }
  .corkboard { grid-template-columns: repeat(4, 1fr); }
  .checklist-layout { flex-direction: row; gap: 56px; }
  .checklist-intro { flex: 0 0 280px; }
  .checklist { flex: 1; }
}