/* Laman pemasaran WeOne. Disusun untuk telefon dahulu, kemudian dilebarkan. */
:root {
  --ink: #2a1238; --muted: #6d5a79; --bg: #fffafd; --soft: #f7eefa; --card: #fff; --line: #ecdff2;
  --purple: #7e3fd0; --pink: #c2358d; --gold: #e8c47d; --deep: #2a1238;
  --grad: linear-gradient(100deg, #7e3fd0, #c2358d 60%, #e0689f);
  --serif: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 66px; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--purple); }
.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 18px; }
.wrap.narrow { width: min(740px, 100%); }
.center { text-align: center; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.14; letter-spacing: -.01em; margin: 0 0 14px; text-wrap: balance; }
h1 { font-size: clamp(36px, 9.5vw, 68px); }
h2 { font-size: clamp(28px, 6.4vw, 44px); }
h3 { font-size: 19px; margin: 0 0 6px; line-height: 1.3; }
p { margin: 0 0 12px; }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 4vw, 20px); color: var(--muted); max-width: 620px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.kicker, .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.note { font-size: 12px; color: var(--muted); margin-top: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px rgba(126, 63, 208, .28); }
.btn.small { min-height: 38px; padding: 0 18px; font-size: 14px; box-shadow: none; }
.btn.light { background: #fff; color: var(--deep); box-shadow: none; }
.link { font-weight: 700; text-decoration: none; }
.link.light { color: #f3d9ff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin: 22px 0 6px; }

/* Kepala */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 253, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 62px; }
.brand { display: flex; margin-right: auto; }
.brand img { width: 116px; }
.burger { display: grid; gap: 6px; place-content: center; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.top nav { display: none; position: absolute; top: 62px; left: 0; right: 0; padding: 8px 18px 16px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); }
.top nav.open { display: flex; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 12px 0; }

section { padding: 64px 0; }
section.soft { background: var(--soft); }
section.dark { background: radial-gradient(120% 90% at 80% 0%, #5b2078 0%, #2a1238 55%, #1b0a26 100%); color: #fff; }
.dark .lead, .dark .note { color: #d9c3e6; }
.dark .kicker { color: var(--gold); }
.dark em { background: linear-gradient(100deg, #e8c47d, #f29ac9); -webkit-background-clip: text; background-clip: text; }

/* Pembukaan */
.hero { padding-top: 40px; padding-bottom: 40px; background: radial-gradient(80% 55% at 50% 100%, #f1ddfa 0%, transparent 70%); }
.stage { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-top: 36px; }
.phone { width: 258px; flex: none; padding: 9px; border-radius: 40px; background: #17081f; box-shadow: 0 30px 60px rgba(42, 18, 56, .28); text-align: left; }
.phone .screen { height: 500px; border-radius: 32px; overflow: hidden; background: #130f19; color: #f6eefa; padding: 14px 12px; position: relative; font-size: 12px; }
.phone.side { display: none; }
.appbar { display: flex; justify-content: space-between; align-items: center; }
.appbar span { width: 44px; height: 9px; border-radius: 9px; background: #3b2c47; }
.hello { font-weight: 800; font-size: 15px; margin: 12px 0 8px; }
.stories { display: flex; gap: 8px; margin-bottom: 12px; }
.stories b { width: 38px; height: 38px; border-radius: 50%; flex: none; background: linear-gradient(#4b2a6b, #8a3a86); border: 2px solid #130f19; box-shadow: 0 0 0 2px #d84ba5; margin: 2px; }
.post { background: #211929; border: 1px solid #33263f; border-radius: 16px; padding: 11px; }
.who { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.who b, .room b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--c); color: #fff; }
.who span, .room span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.who small, .room small { opacity: .65; font-size: 11px; }
mark { background: none; color: #e0589f; font-weight: 700; }
.photo { height: 150px; border-radius: 12px; background: linear-gradient(150deg, #6b2f8f, #c2487f 55%, #e8c47d); }
.react { display: flex; gap: 16px; margin-top: 9px; opacity: .85; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 12px 4px 14px; background: #19131f; border-top: 1px solid #33263f; font-size: 9px; font-weight: 700; opacity: .95; }
.tabbar .on { color: #e98ac8; }
.tabbar .gold { color: var(--gold); }
.bar { font-weight: 800; font-size: 15px; padding: 6px 0 14px; }
.room { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #33263f; }
.room span { flex: 1; }
.room strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room u { text-decoration: none; font-size: 10px; font-weight: 800; background: #9655e8; border-radius: 999px; padding: 4px 9px; }
.bubble { width: fit-content; max-width: 82%; padding: 9px 13px; border-radius: 18px; margin: 0 0 9px; }
.bubble.in { background: #2d2338; color: #f6eefa; border-bottom-left-radius: 5px; }
.bubble.out { background: linear-gradient(100deg, #8b3dff, #c2358d); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.seen { text-align: right; color: #e98ac8; font-weight: 800; }

.grid { display: grid; gap: 14px; margin-top: 28px; }
.day, .pillar { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; text-align: left; }
.day > span { font-size: 28px; display: block; margin-bottom: 8px; }
.day p, .pillar p { color: var(--muted); margin: 0; }
.pillar b { font-family: var(--serif); font-size: 34px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.scatter { list-style: none; padding: 0; margin: 28px 0 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.scatter li { background: var(--card); border: 1px dashed #cdaedd; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--muted); transform: rotate(-1.5deg); }
.scatter li:nth-child(even) { transform: rotate(2deg); }
.arrow { font-size: 34px; color: var(--pink); margin: 6px 0; }
.onehome { display: inline-flex; align-items: center; gap: 14px; text-align: left; padding: 16px 20px; border-radius: 22px; background: var(--card); border: 2px solid var(--purple); box-shadow: 0 16px 34px rgba(126, 63, 208, .18); max-width: 100%; }
.onehome img { border-radius: 16px; flex: none; }
.onehome strong { display: block; font-size: 18px; }
.onehome span { color: var(--muted); font-size: 14px; }

.feature { display: grid; gap: 20px; align-items: center; margin-top: 44px; }
.feature ul { padding: 0; margin: 12px 0 0; list-style: none; }
.feature li { position: relative; padding-left: 28px; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.feature li::before { content: '✓'; position: absolute; left: 0; color: var(--pink); font-weight: 800; }
.feature .copy h3 { font-family: var(--serif); font-size: 26px; }
.feature .copy p { color: var(--muted); }
.mock { background: #211929; color: #f6eefa; border-radius: 24px; padding: 20px; box-shadow: 0 20px 44px rgba(42, 18, 56, .2); font-size: 14px; }
.music { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; background: rgba(150, 85, 232, .25); color: #f2b4da; font-weight: 700; font-size: 13px; }
.music i { width: 3px; height: 14px; border-radius: 3px; background: currentColor; animation: wave 1s ease-in-out infinite; }
.music i:nth-of-type(1) { margin-left: 6px; }
.music i:nth-of-type(2) { animation-delay: .15s; }
.music i:nth-of-type(3) { animation-delay: .3s; }
.music i:nth-of-type(4) { animation-delay: .45s; }
@keyframes wave { 50% { transform: scaleY(.35); } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 10px 15px; border-radius: 14px; background: #2d2338; border: 1px solid #44325a; font-weight: 700; font-size: 13px; }
.chips span:nth-child(3n+1) { background: rgba(150, 85, 232, .3); border-color: #9655e8; }
.mock.event { display: flex; gap: 16px; align-items: center; }
.date { display: grid; place-items: center; width: 68px; height: 74px; border-radius: 16px; background: var(--grad); flex: none; line-height: 1.1; }
.date b { font-size: 28px; }
.date span { font-size: 12px; font-weight: 800; }
.event strong, .event small { display: block; }
.event small { opacity: .7; margin: 2px 0 10px; }
.event u { text-decoration: none; display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--deep); font-weight: 800; font-size: 12px; }

.glass { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 22px; }
.glass p { color: #d9c3e6; margin: 0; }

.steps { list-style: none; padding: 0; display: grid; gap: 14px; margin: 28px 0; counter-reset: none; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.steps b { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }
.install { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px 20px; max-width: 640px; margin: 0 auto; }
.install p { color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 700; padding: 14px 34px 14px 0; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 24px; color: var(--purple); }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); }

.closing { background: var(--grad); color: #fff; padding: 76px 0; }
.closing img { margin-bottom: 22px; }
.closing .lead { color: #fff; font-weight: 700; margin-bottom: 24px; }

footer { background: #1b0a26; color: #cbb6da; padding: 28px 0 100px; font-size: 13px; }
footer .wrap { display: flex; flex-direction: column; gap: 12px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
footer a { color: #f3d9ff; text-decoration: none; }

/* Butang sertai yang kekal di bawah skrin telefon */
.sticky { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 250, 253, .95); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s; }
.sticky.show { transform: none; }
.sticky .btn { width: 100%; }

/* Muncul perlahan semasa menskrol (hanya apabila skrip berjalan) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s, transform .55s; }
.js .reveal.in { opacity: 1; transform: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (min-width: 720px) {
  section { padding: 96px 0; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 72px; }
  .feature.flip .copy { order: 2; }
  .phone.side { display: block; width: 220px; opacity: .96; }
  .phone.side .screen { height: 420px; }
  .phone.side.left { transform: rotate(-5deg) translateX(22px); }
  .phone.side.right { transform: rotate(5deg) translateX(-22px); }
  .phone.main { position: relative; z-index: 2; }
  footer { padding-bottom: 28px; }
  footer .wrap { flex-direction: row; justify-content: space-between; }
  .sticky { display: none; }
}
@media (min-width: 940px) {
  .burger { display: none; }
  .top nav { display: flex; position: static; flex-direction: row; gap: 26px; padding: 0; margin-right: 16px; border: 0; background: none; }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .music i { animation: none; }
  .sticky { transition: none; }
}
