/* Susun atur landing page. Token warna & komponen (butang, ikon) dalam /ui.css. */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-size: 16px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
a { color: inherit; }
img, iframe { display: block; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--panel); padding: 8px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* Varian butang khas landing: emas di atas latar baldu */
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.gold:hover { background: color-mix(in srgb, var(--gold) 88%, #fff); border-color: transparent; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }

/* ---------- Navigasi ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: var(--r); background: var(--velvet); color: var(--velvet-ink); display: grid; place-items: center; }
.logo-mark .ic { width: 19px; height: 19px; }
.logo-mark .ic svg { fill: currentColor; stroke: none; }
.brand-name { font: 700 24px/1 var(--font-serif); letter-spacing: .01em; white-space: nowrap; }
.links { display: flex; gap: 4px; margin-left: 12px; }
.links a { display: inline-flex; align-items: center; height: var(--h-md); padding: 0 12px; border-radius: var(--r); text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* Menu telefon/tablet */
.menu-btn { display: none; }
.menu-btn .close-ic { display: none; }
.menu-open .menu-btn .open-ic { display: none; }
.menu-open .menu-btn .close-ic { display: inline-flex; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); padding: 8px 0 16px; box-shadow: 0 18px 30px -18px rgb(0 0 0 / .25); }
.mobile-menu .wrap { display: grid; gap: 2px; }
.mobile-menu a:not(.btn) { display: flex; align-items: center; height: 48px; padding: 0 12px; border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: 16px; }
.mobile-menu a:not(.btn):hover, .mobile-menu a:not(.btn):focus-visible { background: var(--bg-2); }
.mm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.mm-acts.one { grid-template-columns: 1fr; }
.menu-open { background: var(--bg); }
@media (max-width: 899px) {
  .links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav-in { gap: 10px; height: 64px; }
  .brand-name { font-size: 21px; }
  .nav-acts .btn.ghost, .nav-acts .guest-only.primary, .nav-acts .user-only { display: none; }
  .nav-acts .btn:not(.square) { padding: 0 12px; font-size: 13.5px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 45% at 80% 30%, color-mix(in srgb, var(--blush) 85%, transparent), transparent 70%),
    radial-gradient(35% 40% at 10% 70%, color-mix(in srgb, var(--blush-2) 70%, transparent), transparent 70%);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); margin: 18px 0; }
.hero h1 em { font-family: var(--font-script); font-style: normal; font-weight: 400; color: var(--accent); font-size: 1.12em; padding: 0 .04em; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks li .ic { color: var(--gold); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 600px; }
.hero-art::before {
  content: ''; position: absolute; width: 360px; height: 560px; border-radius: 180px 180px 24px 24px;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); translate: 18px 14px;
}

.phone { --w: 375; --h: 780; --s: .72; position: relative; width: calc((var(--w) * var(--s) + 22) * 1px); padding: 11px; border-radius: 46px; background: #171214; box-shadow: var(--shadow), 0 30px 60px rgb(40 10 20 / .25); }
.phone .screen { width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px); overflow: hidden; border-radius: 36px; background: var(--velvet); position: relative; }
.phone iframe { width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); border: 0; transform: scale(var(--s)); transform-origin: 0 0; }
.phone.sm { --w: 360; --h: 640; --s: .66; border-radius: 38px; }
.phone.sm .screen { border-radius: 28px; }
.phone .fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--velvet-ink); font: 400 40px/1.1 var(--font-script); padding: 20px; }
.demo { position: relative; display: grid; justify-items: center; gap: 16px; }
.demo-switch { display: grid; justify-items: center; gap: 8px; max-width: 320px; text-align: center; }
.demo-switch .seg { background: var(--panel); box-shadow: var(--shadow-sm); }
.demo-switch .seg > button { min-width: 112px; }
.demo-note { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); min-height: 2.9em; }
.chip { position: absolute; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
.chip .ic { color: var(--gold); }
.chip.c1 { left: 0; top: 18%; }
.chip.c2 { right: 0; bottom: 16%; }
/* Tablet: kekal dua lajur dengan telefon lebih kecil */
@media (max-width: 1040px) {
  .hero-in { gap: 28px; }
  .hero-art { min-height: 520px; }
  .hero-art::before { width: 300px; height: 470px; top: 12px; }
  .hero-art .phone { --s: .6; }
  .chip.c1 { left: -4%; } .chip.c2 { right: -4%; }
}
@media (max-width: 719px) {
  .hero { padding: 32px 0 48px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; padding: 12px 0; }
  .hero-art::before { display: none; }
  .hero-art .phone { --s: .68; }
  .chip.c1 { left: 0; top: 10%; } .chip.c2 { right: 0; bottom: 10%; }
  .lead { font-size: 17px; }
}
@media (max-width: 560px) {
  .cta { margin: 24px 0 22px; }
  .cta .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) { .hero-art .phone { --s: .64; } .chip { font-size: 12.5px; height: 36px; padding: 0 10px; } }

/* ---------- Bahagian ---------- */
.section { padding: 88px 0; }
@media (max-width: 767px) { .section { padding: 56px 0; } .sec-head { margin-bottom: 28px; } .final { padding: 64px 0 !important; } .feat, .steps li { padding: 22px; } }
.section.alt { background: var(--bg-2); }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head h2, .split h2 { font-size: clamp(34px, 4.4vw, 50px); margin-top: 10px; }
.sub { color: var(--muted); font-size: 18px; margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 26px; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line); }
.feat .feat-ic { width: 46px; height: 46px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feat .feat-ic .ic { width: 23px; height: 23px; }
.feat h3 { font-size: 25px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.theme { display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.theme .art { position: relative; aspect-ratio: 3 / 4; display: grid; place-items: center; text-align: center; padding: 18px; overflow: hidden; }
.theme .art::before { content: ''; position: absolute; inset: 14px; border: 1px solid var(--g); border-radius: 999px 999px 10px 10px; opacity: .85; }
.theme .art::after { content: ''; position: absolute; inset: 20px; border: 1px solid var(--g); border-radius: 999px 999px 8px 8px; opacity: .45; }
.theme .art.segi::before { border-radius: 4px; }
.theme .art.segi::after { border-radius: 2px; }
.theme .nm { position: relative; font-size: 44px; line-height: 1.05; }
.themes-more { display: flex; margin: 28px auto 0; }
.theme .amp { display: block; font-size: 30px; color: var(--g); }
.theme .dt { position: relative; margin-top: 14px; font: 700 11px/1 var(--font-serif); letter-spacing: .3em; }
.theme .meta { display: grid; gap: 4px; padding: 14px 16px 16px; }
.theme h3 { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme p {
  color: var(--muted); font-size: 14px; line-height: 1.45; min-height: calc(2 * 1.45em);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
@media (max-width: 900px) { .themes { grid-template-columns: 1fr 1fr; } }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split .ticks { margin-top: 24px; }
.duo { position: relative; display: grid; place-items: center; }
.duo .tag { position: absolute; top: 18px; right: 12%; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--velvet); color: var(--velvet-ink); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { position: relative; padding: 28px; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line); }
.steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--velvet); color: var(--velvet-ink); font: 600 24px/1 var(--font-serif); margin-bottom: 16px; }
.steps h3 { font-size: 25px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; min-height: 60px; padding: 0 18px 0 22px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; border-radius: var(--r-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: none; box-shadow: var(--focus); }
.faq summary .ic { color: var(--accent); transition: rotate .2s; }
.faq details[open] summary .ic { rotate: 45deg; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

.final { padding: 90px 0; background: var(--velvet); color: var(--velvet-ink); position: relative; overflow: hidden; text-align: center; }
.final::before { content: ''; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; translate: -50% -50%; border: 1px solid color-mix(in srgb, var(--velvet-ink) 30%, transparent); border-radius: 50%; }
.final-in { position: relative; display: grid; justify-items: center; gap: 14px; }
.final .script { font: 400 40px/1.2 var(--font-script); opacity: .9; }
.final h2 { font-size: clamp(34px, 5vw, 54px); color: #fff4e3; max-width: 720px; margin-bottom: 12px; }

.foot { padding: 24px 0; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.foot nav { margin-left: auto; display: flex; gap: 4px; }
@media (max-width: 560px) { .foot-in { flex-direction: column; align-items: flex-start; } .foot nav { margin-left: -12px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary .ic { transition: none; }
}

/* Kenapa digital + jenis majlis */
.why { align-items: start; }
.why .ticks { gap: 12px; }
.why .ticks li { align-items: flex-start; color: var(--ink-2); }
.why .ticks li .ic { margin-top: 3px; flex: none; }
.why .ticks b { color: var(--ink); }
.occ { padding: 28px; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.occ h3 { font-size: 26px; margin-bottom: 16px; }
.occ p { color: var(--muted); font-size: 15px; margin-top: 18px; }
.occasions { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.occasions li {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
@media (max-width: 560px) { .occ { padding: 22px; } }

/* ---------- Cuba reka kad (playground) ---------- */
.play { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.play-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; max-height: 640px; border-radius: var(--r-xl);
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.play-tabs { display: flex; margin: 16px 16px 0; width: auto; }
.play-tabs > button { flex: 1 1 0; min-width: max-content; }
.play-body { display: grid; gap: 14px; align-content: start; padding: 18px 20px 20px; overflow-y: auto; overscroll-behavior: contain; container-type: inline-size; }
.play-body .field > select, .play-body .field > input { width: 100%; }
.play-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--panel-2); }
.play-status { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.play-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.play-status.bad { color: var(--danger); }
.play-status.bad::before { background: var(--danger); }
.play-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.play-preview { position: sticky; top: 88px; display: grid; justify-items: center; gap: 14px; }
.play-preview .phone { --s: .7; }
.pt-note { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.pt-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pt-theme { display: flex; flex-direction: column; min-width: 0; padding: 0; border: 2px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--panel); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s; }
.pt-theme:hover { border-color: var(--line-2); }
.pt-theme[aria-checked="true"] { border-color: var(--accent); }
.pt-theme:focus-visible { outline: none; box-shadow: var(--focus); }
.pt-theme .sw { flex: none; height: 50px; display: grid; place-items: center; font-size: 22px; line-height: 1; white-space: nowrap; overflow: hidden; }
.pt-theme .nm { padding: 6px 8px 7px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pt-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; margin-bottom: 4px; }
.pt-color { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 13.5px; cursor: pointer; }
.pt-color input { flex: none; width: 34px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.field > .btn, .play-body > .btn { justify-self: start; }

.pt-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pt-slot { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.pt-slot.busy { opacity: .6; pointer-events: none; }
.pt-slot .thumb { width: 64px; height: 84px; border-radius: 8px; background-color: var(--panel-2); border: 1px solid var(--line);
  background-image: linear-gradient(45deg, var(--line) 25%, transparent 25%, transparent 75%, var(--line) 75%), linear-gradient(45deg, var(--line) 25%, transparent 25%, transparent 75%, var(--line) 75%);
  background-size: 12px 12px; background-position: 0 0, 6px 6px; }
.pt-slot .thumb { overflow: hidden; }
.pt-slot .thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pt-slot .thumb.empty { display: grid; place-items: center; color: var(--muted); background-image: none; }
.pt-slot .meta { display: grid; gap: 2px; min-width: 0; }
.pt-slot .meta b { font-size: 14px; }
.pt-slot .meta small { font-size: 12.5px; color: var(--muted); }
.pt-slot .acts { display: flex; gap: 6px; margin-top: 6px; }

@media (max-width: 1040px) { .play { gap: 24px; } .play-preview .phone { --s: .6; } }
@media (max-width: 819px) {
  .play { grid-template-columns: 1fr; }
  .play-preview { position: static; order: -1; }
  .play-panel { max-height: none; }
  .play-body { overflow: visible; }
  .play-tabs { overflow-x: auto; }
}
@media (max-width: 560px) {
  .play-preview .phone { --s: .62; }
  .play-foot { padding: 12px 16px; }
  .play-acts, .play-acts .btn { flex: 1 1 auto; }
  .play-tabs { margin: 12px 12px 0; }
  .play-body { padding: 16px; }
}
.pt-pin { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); }
.pt-pin-at { flex: 1; display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.pt-pin-at .ic { color: var(--accent); }
.pt-pin-empty { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; width: 100%; padding: 12px; text-align: left; font: inherit; color: var(--ink);
  border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--panel-2); cursor: pointer; }
.pt-pin-empty:hover { border-color: var(--accent); background: var(--accent-soft); }
.pt-pin-empty:focus-visible { outline: none; box-shadow: var(--focus); }
.pt-pin-empty > span:first-child { color: var(--accent); }
.pt-pin-empty b { display: block; font-size: 14px; }
.pt-pin-empty small { display: block; font-size: 12.5px; color: var(--muted); }
