/* The sumaself.com landing page. Built into site/ by scripts/make-site.cjs.
   Bright on purpose: cream, lime, orange and purple, never a black background.
   Motion is driven by landing.js (GSAP + ScrollTrigger); CSS keeps the idle loops. */
:root {
  --cream: #FFFBF3; --ink: #1E1A24; --muted: #5F5A66; --line: #EADFF0; --card: #FFFFFF;
  --lime: #8CEB78; --lime-soft: #E7FADF; --lime-deep: #2F8A1E;
  --orange: #F37C47; --orange-soft: #FFE9DD; --orange-deep: #C2551F;
  --purple: #9B66C7; --purple-soft: #F1E6FA; --purple-deep: #6C3B97;
  --bezel: #2B2433;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; overflow-x: hidden; }
a { color: var(--orange-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 8px; }
img { display: block; max-width: 100%; }
h1, h2 { font-weight: 900; letter-spacing: -.03em; margin: 0; overflow-wrap: break-word; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- top bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.bar.solid { background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 20px; }
.bar nav { margin-left: auto; display: flex; gap: 6px; }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background .2s; }
.bar nav a:hover { background: var(--orange-soft); }
.bar .lang { font-weight: 900; font-size: 13px; text-decoration: none; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 11px; }
@media (max-width: 720px) { .bar nav { display: none; } .bar .lang { margin-left: auto; } }

/* ---------------------------------------------------------------- intro */
.intro { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 110px 20px 170px; overflow: hidden;
  background: radial-gradient(60% 50% at 15% 20%, var(--lime-soft), transparent 70%), radial-gradient(55% 55% at 85% 25%, var(--purple-soft), transparent 70%), radial-gradient(60% 50% at 50% 100%, var(--orange-soft), transparent 70%), var(--cream); }
.intro-inner { position: relative; z-index: 3; max-width: 980px; }
.bigdots { display: inline-flex; gap: clamp(10px, 2vw, 18px); margin-bottom: 26px; }
.bigdots b { width: clamp(46px, 8vw, 84px); aspect-ratio: 1; border-radius: 50%; display: block; }
.bigdots b:nth-child(1) { background: var(--lime); } .bigdots b:nth-child(2) { background: var(--orange); } .bigdots b:nth-child(3) { background: var(--purple); }
.bigdots.small b { width: 34px; }
.intro h1 { font-size: clamp(40px, 12.5vw, 132px); line-height: .95; }
.words { display: block; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.w > span { display: inline-block; }
.rotator { display: grid; font-size: .36em; line-height: 1.15; margin-top: .3em; letter-spacing: -.02em; }
.rotator span { grid-area: 1 / 1; opacity: 0; background: linear-gradient(90deg, var(--orange-deep), var(--purple-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.3vw, 22px); color: var(--muted); max-width: 40em; margin: 26px auto 26px; }
.soon { font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 16px; border-radius: 18px; background: var(--ink); color: #fff; font-weight: 800; font-size: 17px; text-align: left; box-shadow: 0 10px 0 -4px var(--orange); }
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: 11px; font-weight: 700; opacity: .75; line-height: 1.1; }
.cue { position: absolute; z-index: 3; bottom: 22px; left: 50%; transform: translateX(-50%); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translate(-50%, 8px); } }

/* The two rings of art turning behind the intro. */
.orbit { position: absolute; left: 50%; top: 50%; width: min(1400px, 150vw); aspect-ratio: 1; margin: calc(min(1400px, 150vw) / -2) 0 0 calc(min(1400px, 150vw) / -2); animation: spin 90s linear infinite; z-index: 1; will-change: transform; }
.orbit.o2 { width: min(1000px, 110vw); margin: calc(min(1000px, 110vw) / -2) 0 0 calc(min(1000px, 110vw) / -2); animation-duration: 70s; animation-direction: reverse; }
.orbit span { position: absolute; left: 50%; top: 50%; width: clamp(70px, 8vw, 120px); margin: calc(clamp(70px, 8vw, 120px) / -2); transform: rotate(calc(var(--i) * 22.5deg)) translateY(calc(min(680px, 72vw) * -1)) rotate(calc(var(--i) * -22.5deg)); opacity: .5; }
.orbit.o2 span { transform: rotate(calc(var(--i) * 30deg + 15deg)) translateY(calc(min(500px, 55vw) * -1)) rotate(calc(var(--i) * -30deg - 15deg)); opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.confetti i { position: absolute; z-index: 2; width: 12px; height: 12px; border-radius: 50%; left: calc(var(--i) * 3.9%); top: 10%; background: var(--c); --c: var(--lime); }
.confetti i:nth-child(3n + 1) { --c: var(--orange); border-radius: 3px; } .confetti i:nth-child(3n + 2) { --c: var(--purple); }
.hero-types { position: absolute; inset: auto 0 0; z-index: 2; height: 0; }
.hero-types span { position: absolute; bottom: 6px; width: clamp(78px, 10vw, 140px); left: calc(3% + var(--i) * 20%); }
.hero-types span:nth-child(2n) { bottom: 22px; }
.hero-types img { width: 100%; height: auto; }
@media (max-width: 720px) { .hero-types span:nth-child(n + 4) { display: none; } .hero-types span { left: calc(6% + var(--i) * 32%); } }

/* ---------------------------------------------------------------- moving walls */
.walls { position: relative; padding: 70px 0; background: var(--orange); overflow: hidden; }
.tilt { transform: rotate(-4deg) scale(1.08); }
.row, .ticker { overflow: hidden; }
.row .track, .ticker .track { display: flex; gap: 18px; width: max-content; animation: slide 60s linear infinite; }
.row.right .track { animation-direction: reverse; animation-duration: 70s; }
.row span { width: 260px; flex: none; border-radius: 22px; overflow: hidden; background: #fff; border: 4px solid #fff; box-shadow: 0 14px 28px -16px rgba(80, 20, 0, .6); }
.row span img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.ticker { margin: 18px 0; }
.ticker .track { gap: 26px; align-items: center; animation-duration: 40s; }
.ticker span { font-size: clamp(30px, 5vw, 64px); font-weight: 900; color: #fff; white-space: nowrap; letter-spacing: -.02em; }
.ticker b { color: var(--lime); font-size: 32px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- chapters */
.chapter { position: relative; overflow: hidden; }
.chapter.c-lime { background: linear-gradient(160deg, var(--lime-soft), var(--cream) 70%); --tone: var(--lime); --deep: var(--lime-deep); --soft: var(--lime-soft); }
.chapter.c-orange { background: linear-gradient(160deg, var(--orange-soft), var(--cream) 70%); --tone: var(--orange); --deep: var(--orange-deep); --soft: var(--orange-soft); }
.chapter.c-purple { background: linear-gradient(160deg, var(--purple-soft), var(--cream) 70%); --tone: var(--purple); --deep: var(--purple-deep); --soft: var(--purple-soft); }
.ch-wrap { max-width: 1180px; margin: 0 auto; padding: 84px 20px 26px; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .ch-wrap { grid-template-columns: 1fr; min-height: 0; padding: 80px 20px 60px; } }
.ch-num { display: block; font-size: clamp(90px, 14vw, 180px); line-height: .8; font-weight: 900; color: transparent; -webkit-text-stroke: 3px var(--tone); letter-spacing: -.05em; }
.ch-label { display: inline-block; margin: 14px 0 12px; padding: 6px 14px; border-radius: 999px; background: var(--tone); color: var(--ink); font-weight: 900; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.chapter h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; margin-bottom: 18px; }
.chapter p { font-size: 19px; color: var(--muted); margin: 0 0 20px; max-width: 32em; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.tags li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--tone); font-weight: 800; font-size: 14px; }
.ch-stage { position: relative; height: min(640px, calc(100vh - 110px)); min-height: 540px; display: grid; place-items: center; }
@media (max-width: 900px) { .ch-stage { height: 560px; } }


/* The phone */
.phone { position: relative; z-index: 2; width: 270px; aspect-ratio: 390 / 844; border-radius: 44px; border: 10px solid var(--bezel); background: var(--bezel); overflow: hidden; box-shadow: 0 30px 60px -28px rgba(60, 20, 90, .55), 0 0 0 4px rgba(255, 255, 255, .7); }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone::before { content: ''; position: absolute; z-index: 2; top: 7px; left: 50%; width: 32%; height: 20px; border-radius: 12px; background: var(--bezel); transform: translateX(-50%); }
.phone.big { width: 300px; }

.fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fx img { width: 100%; height: 100%; object-fit: contain; }

/* 01: the self map, after the sign-up splash */
.fx-peta { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; }
.readout { display: grid; gap: 0; font: 700 13px/1.35 ui-monospace, "SF Mono", Consolas, monospace; color: var(--deep); text-align: center; min-height: 54px; }
.readout span { white-space: nowrap; }
.wheel { position: relative; width: 360px; height: 360px; align-self: center; }

.seed-dots { position: absolute; left: 50%; top: 50%; display: flex; gap: 10px; transform: translate(-50%, -50%); z-index: 5; }
.seed-dots b { width: 30px; height: 30px; border-radius: 50%; display: block; background: var(--lime); }
.seed-dots b:nth-child(2) { background: var(--orange); } .seed-dots b:nth-child(3) { background: var(--purple); }
.wheel-core { position: absolute; left: 50%; top: 50%; width: 214px; height: 214px; margin: -107px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FFB58F, var(--orange)); box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .35); transform: scale(0); }
.sign-ring, .animal-ring { position: absolute; inset: 0; }
.sign-ring span, .animal-ring span { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px; transform: rotate(calc(var(--i) * -30deg)) translateY(-132px) rotate(calc(var(--i) * 30deg)); }
.animal-ring span { width: 56px; height: 56px; margin: -28px; transform: rotate(calc(var(--i) * -30deg)) translateY(-178px) rotate(calc(var(--i) * 30deg)); }

.planets i { position: absolute; z-index: 6; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 6px; border-radius: 999px; background: #fff; font-style: normal; font-weight: 800; font-size: 13px; white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(60, 20, 90, .5); opacity: 0; }
.planets i b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: #fff; font-size: 13px; }
.planets .pl0 { transform: translate(-50%, -96px); } .planets .pl1 { transform: translate(-115%, 40px); } .planets .pl2 { transform: translate(15%, 40px); }
.pillars { position: absolute; z-index: 6; left: 50%; top: 50%; display: flex; gap: 5px; transform: translate(-50%, -66px); }
.pillars b { width: 32px; padding: 5px 0; border-radius: 9px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.15; writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center; letter-spacing: .1em; box-shadow: 0 8px 16px -10px rgba(60, 20, 0, .5); opacity: 0; }
.lifepath { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, 4px); text-align: center; color: #fff; opacity: 0; }
.lifepath small { display: block; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.lifepath b { font-size: 44px; line-height: 1; font-weight: 900; }
.mapcard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 470px); padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 18px 40px -26px rgba(40, 60, 20, .6); }
.cell { text-align: center; padding: 6px 2px; opacity: 0; transform: translateY(12px); }
.cell img, .cell .glyph { width: 46px; height: 46px; margin: 0 auto 2px; }
.cell .glyph { display: grid; place-items: center; border-radius: 50%; background: var(--soft); font-size: 24px; font-weight: 900; }
.cell small { display: block; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cell strong { display: block; font-size: 13px; line-height: 1.2; }

/* 02: tests */
.fan { position: absolute; left: 50%; bottom: 50%; width: 0; height: 0; }
.fan span { position: absolute; width: 74px; height: 74px; margin: -37px; border-radius: 20px; background: #fff; padding: 8px; box-shadow: 0 10px 20px -12px rgba(80, 30, 0, .6); transform: rotate(calc(-110deg + var(--i) * 20deg)) translateY(-250px) rotate(calc(110deg - var(--i) * 20deg)); }
.reel { position: absolute; z-index: 5; left: 2%; top: 22%; width: 120px; height: 150px; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 16px 30px -18px rgba(80, 30, 0, .6); }
.reel-strip span { display: grid; place-items: center; height: 150px; padding: 10px 10px 4px; }
.reel-strip img { height: 104px; width: auto; }
.reel-strip em { font-style: normal; font-weight: 900; font-size: 13px; letter-spacing: .08em; }
.bars { position: absolute; z-index: 5; right: 0; bottom: 18%; display: grid; gap: 8px; padding: 14px; width: 160px; border-radius: 22px; background: #fff; box-shadow: 0 16px 30px -18px rgba(80, 30, 0, .6); }
.bars i { display: grid; grid-template-columns: 16px 1fr; align-items: center; gap: 6px; font-style: normal; }
.bars small { font-weight: 900; font-size: 12px; }
.bars b { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--orange), var(--purple)); width: var(--v); transform-origin: left; transform: scaleX(0); }

/* 03: quizzes flying around in depth */
.fx-kuis { perspective: 900px; }
.card3d { position: absolute; left: 50%; top: 50%; width: 180px; margin: -45px -90px; border-radius: 18px; overflow: hidden; background: #fff; border: 4px solid #fff; box-shadow: 0 18px 30px -18px rgba(60, 20, 90, .6); }
.card3d img { aspect-ratio: 2 / 1; object-fit: cover; }

/* 04: today */
.fx-hari .score { position: absolute; z-index: 5; right: 2%; top: 10%; width: 130px; transform: rotate(-90deg); }
.fx-hari .score circle, .fx-teman svg circle { fill: #fff; stroke: var(--soft); stroke-width: 12; }
.fx-hari .score .arc, .fx-teman svg .arc { fill: none; stroke: var(--tone); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; }
.score-num { position: absolute; z-index: 6; right: 2%; top: 10%; width: 130px; height: 130px; display: grid; place-content: center; text-align: center; }
.score-num b { font-size: 40px; font-weight: 900; line-height: 1; }
.score-num small { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stars { position: absolute; z-index: 5; left: 0; top: 16%; display: flex; gap: 2px; font-size: 30px; padding: 8px 12px; border-radius: 999px; background: #fff; box-shadow: 0 12px 24px -16px rgba(30, 80, 10, .6); }
.stars i { font-style: normal; color: #E6E1D8; }
.stars i.on { color: #F6B73C; }
.moon { position: absolute; z-index: 2; left: 8%; bottom: 14%; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFE58A, #F6B73C); box-shadow: 0 0 60px 14px rgba(246, 183, 60, .5); overflow: hidden; }
.moon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #F4FBEF; transform: translateX(var(--phase, 36%)); }
.learn { position: absolute; z-index: 5; right: 0; bottom: 14%; padding: 12px 14px 14px; border-radius: 20px; background: #fff; box-shadow: 0 12px 24px -16px rgba(30, 80, 10, .6); }
.learn span { display: block; font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.learn b { font-size: 26px; font-weight: 900; } .learn em { font-style: normal; font-weight: 800; color: var(--muted); }
.learn div { display: grid; grid-template-columns: repeat(5, 16px); gap: 7px; margin-top: 6px; }
.learn i { width: 16px; height: 16px; border-radius: 50%; background: #EEE9E2; }
.learn i.on { background: var(--lime); box-shadow: 0 0 12px var(--lime); }

/* 05: friends */
.bubble { position: absolute; z-index: 6; max-width: 210px; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 14px 28px -18px rgba(80, 30, 0, .6); opacity: 0; }
.bubble.b0 { left: 0; top: 12%; } .bubble.b1 { right: 0; top: 30%; border-radius: 20px 20px 6px 20px; background: var(--orange); color: #fff; }
.bubble.b2 { left: 2%; top: 52%; } .bubble.b3 { right: 2%; top: 70%; border-radius: 20px 20px 6px 20px; background: var(--purple); color: #fff; }
.match { position: absolute; z-index: 6; left: 4%; bottom: 6%; width: 110px; height: 110px; display: grid; place-items: center; }
.match svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.match b { position: relative; font-size: 32px; font-weight: 900; }
.avatars { position: absolute; z-index: 2; inset: 0; }
.avatars img { position: absolute; width: 100px; height: 130px; }
.avatars img:nth-child(1) { left: 6%; top: 24%; } .avatars img:nth-child(2) { right: 6%; top: 4%; } .avatars img:nth-child(3) { right: 4%; bottom: 26%; } .avatars img:nth-child(4) { left: 18%; bottom: 30%; }

/* 06: love */
.heart { position: absolute; z-index: 5; left: 50%; top: 60%; font-style: normal; font-size: calc(18px + (var(--i) % 4) * 9px); color: var(--c, #F45C8A); --c: #F45C8A; }
.heart:nth-child(3n) { --c: var(--purple); } .heart:nth-child(3n + 1) { --c: var(--orange); }
.counter { position: absolute; z-index: 6; left: 0; top: 10%; display: flex; gap: 8px; }
.counter span { display: grid; place-items: center; width: 74px; padding: 10px 0; border-radius: 18px; background: #fff; box-shadow: 0 14px 28px -18px rgba(60, 20, 90, .6); }
.counter b { font-size: 30px; font-weight: 900; line-height: 1.1; }
.counter small { font-size: 11px; font-weight: 900; text-transform: uppercase; color: var(--muted); }

/* 07: good days */
.cal { position: relative; z-index: 4; width: min(400px, 100%); padding: 20px; border-radius: 28px; background: #fff; box-shadow: 0 30px 60px -30px rgba(30, 80, 10, .55); }
.cal-head { font-weight: 900; font-size: 22px; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid b { font-size: 12px; text-align: center; color: var(--muted); }
.cal-grid i { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font-style: normal; font-weight: 800; font-size: 15px; background: #F6F2EC; }
.cal-grid i.pad { background: none; }
.cal-grid i.good.lit { background: var(--lime); }
.cal-grid i.bad.lit { background: #FFD7D0; color: #B23A2A; }
.cal-grid i.best.lit { background: var(--orange); color: #fff; box-shadow: 0 0 0 4px #FFD3BD; }
.cal-badge { margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: var(--orange-soft); font-weight: 800; font-size: 14px; opacity: 0; }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--purple); color: #fff; }
.stat { padding: 60px 16px; text-align: center; border-left: 2px solid rgba(255, 255, 255, .18); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(56px, 9vw, 110px); line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.stat span { font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat { border-top: 2px solid rgba(255, 255, 255, .18); } }

/* ---------------------------------------------------------------- video */
.video { background: var(--lime); padding: 100px 20px; }
.video-wrap { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
@media (max-width: 820px) { .video-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.video h2 { font-size: clamp(38px, 6vw, 72px); line-height: 1; margin-bottom: 18px; }
.video p { font-size: 19px; margin: 0 0 22px; }
.unmute { font: inherit; font-weight: 900; padding: 14px 22px; border: 0; border-radius: 18px; background: var(--ink); color: #fff; cursor: pointer; box-shadow: 0 10px 0 -4px var(--purple); }

/* ---------------------------------------------------------------- Suma+ */
.plus { position: relative; overflow: hidden; padding: 120px 20px; background: linear-gradient(135deg, var(--purple), var(--orange)); color: #fff; }
.plus-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; }
.plus h2 { font-size: clamp(40px, 6.5vw, 80px); line-height: 1; margin-bottom: 18px; }
.plus p { font-size: 19px; opacity: .92; margin: 0 0 28px; }
.plus ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.plus li { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 2px solid rgba(255, 255, 255, .5); font-weight: 800; }
.orb { position: absolute; z-index: 1; right: -120px; top: -120px; width: 420px; height: 420px; }
.orb i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); animation: spin 16s linear infinite; }
.orb i:nth-child(2) { inset: 50px; border-style: dashed; animation-duration: 10s; animation-direction: reverse; }
.orb i:nth-child(3) { inset: 120px; background: rgba(255, 255, 255, .2); }

/* ---------------------------------------------------------------- privacy, FAQ */
.privacy, .faq { max-width: 1080px; margin: 0 auto; padding: 100px 20px; }
.privacy h2, .faq h2 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.02; margin-bottom: 30px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.pcard { padding: 26px; border-radius: 28px; display: grid; gap: 8px; }
.pcard b { font-size: 21px; line-height: 1.2; }
.pcard span { color: var(--muted); }
.pcard.p0 { background: var(--lime-soft); } .pcard.p1 { background: var(--orange-soft); } .pcard.p2 { background: var(--purple-soft); }
.plink { display: inline-block; margin-top: 22px; font-weight: 800; }
.faq details { border-top: 2px solid var(--line); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 2px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-size: 20px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-deep); font-weight: 900; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 18px; max-width: 46em; }

/* ---------------------------------------------------------------- the end */
.end { position: relative; overflow: hidden; padding: 110px 20px; background: linear-gradient(120deg, var(--lime-soft), var(--orange-soft) 50%, var(--purple-soft)); }
.end-inner { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; }
.end-inner > div:first-child { text-align: left; }
.end-inner .stores { justify-content: flex-start; }
@media (max-width: 820px) { .end-inner { grid-template-columns: 1fr; justify-items: center; } .end-inner > div:first-child { text-align: center; } .end-inner .stores { justify-content: center; } }
.end h2 { font-size: clamp(54px, 10vw, 120px); line-height: .95; margin: 10px 0 14px; }
.end p { font-size: 20px; color: var(--muted); margin: 0 0 22px; }
.burst i { position: absolute; z-index: 1; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--c); --c: var(--lime); }
.burst i:nth-child(3n + 1) { --c: var(--orange); border-radius: 4px; } .burst i:nth-child(3n + 2) { --c: var(--purple); }

/* ---------------------------------------------------------------- footer */
footer { padding: 34px 0 46px; font-size: 14px; color: var(--muted); background: var(--cream); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
footer .copy { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The wheel rings turn by --r; their art turns back so it stays upright. */
.sign-ring, .animal-ring { transform: rotate(var(--r, 0deg)); }
.sign-ring span img, .animal-ring span img { transform: rotate(calc(var(--r, 0deg) * -1)); }
.sign-ring span.hit, .animal-ring span.hit { border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 0 24px 6px rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .6); }

/* Without the motion library (blocked script, old browser), everything shows at its final state. */
.nomotion .cell, .nomotion .bubble, .nomotion .pillars b { opacity: 1; transform: none; }
.nomotion .planets i, .nomotion .lifepath, .nomotion .cal-badge { opacity: 1; }
.nomotion .wheel-core { transform: none; }
.nomotion .bars b { transform: none; }
.nomotion .rotator span:first-child { opacity: 1; }
.nomotion .seed-dots { display: none; }

/* Looping decoration stops while it is off screen (landing.js adds .idle). */
.idle .orbit, .idle .track, .idle .orb i, .idle .cue { animation-play-state: paused; }

/* Compatibility cards (friends and partner), drawn from the app's real demo values. */
.mcard { position: absolute; z-index: 7; width: 320px; padding: 14px 14px 12px; border-radius: 24px; background: #fff; box-shadow: 0 22px 44px -26px rgba(60, 20, 90, .6); }
.mcard { left: 0; bottom: 4%; }
.mcard-title { font-weight: 900; font-size: 15px; margin-bottom: 6px; }
.mrow { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 8px; padding: 5px 0; }
.mside { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); overflow: hidden; }
.mside img { width: 34px; height: 34px; object-fit: contain; }
.mside b { font-size: 18px; font-weight: 900; }
.mmid small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); line-height: 1.25; }
.mmid em { font-style: normal; color: var(--deep); }
.mmid i { position: relative; display: block; height: 22px; margin-top: 3px; border-radius: 12px; background: var(--soft); }
.mmid i b { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 12px; background: var(--tone); transform-origin: left; transform: scaleX(0); }
.mnum { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-weight: 900; font-size: 13px; padding: 0 8px; border-radius: 10px; background: #fff; }
.mtotal { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 2px dashed var(--line); position: relative; }
.mtotal svg { width: 70px; height: 70px; transform: rotate(-90deg); grid-row: 1; }
.mtotal svg circle { fill: none; stroke: var(--soft); stroke-width: 12; }
.mtotal svg .arc { stroke: var(--tone); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; }
.mtotal > b { position: absolute; left: 0; width: 70px; text-align: center; font-size: 24px; font-weight: 900; }
.mtotal span { font-weight: 900; font-size: 15px; line-height: 1.2; }

/* Friends: the phone sits right, so the card has room. Love: phone centred, card right, chart left. */
.fx-teman .bubble.b0 { left: auto; right: 0; top: 6%; }
.fx-teman .bubble.b1 { right: 0; top: 22%; }
.chapter#teman .phone, .chapter#cinta .phone { transform: translateX(30px); }
@media (max-width: 900px) {
  .mcard { bottom: 0; transform: scale(.82); transform-origin: bottom left; }
  .chapter#teman .phone, .chapter#cinta .phone { transform: none; }
}

/* The Ba Zi chart block (after Love): one SVG that scales with its card. */
@media (min-width: 901px) { .bagan .ch-wrap { grid-template-columns: .8fr 1.2fr; } }
.bagan .ch-stage { height: auto !important; min-height: 0; transform: none !important; margin-bottom: 0 !important; }
.bz-note { font-size: 15px !important; font-weight: 700; color: var(--deep) !important; }
.bagan .bzchart { position: relative; inset: auto; z-index: 1; width: 100%; justify-self: stretch; max-width: 600px; padding: 22px 22px 18px; border-radius: 28px; background: #fff; box-shadow: 0 30px 60px -34px rgba(60, 20, 90, .55); }
.bzchart svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.bzchart .col { font-size: 15px; font-weight: 900; text-anchor: middle; fill: var(--ink); }
.bzchart .area { font-size: 12px; font-weight: 700; text-anchor: middle; fill: var(--muted); }
.bzchart .plabel { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; fill: var(--deep); }
.bzchart .side { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.bzchart .side.you { fill: var(--purple-deep); } .bzchart .side.them { fill: #E0457B; }
.bzchart .divider { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 6 5; }
.bzchart .bx rect { fill: var(--purple-soft); stroke: #D9CBF2; stroke-width: 1.5; }
.bzchart .bx.them rect { fill: #FDEAF1; stroke: #F5C3D5; }
.bzchart .bx text { font-size: 24px; font-weight: 700; text-anchor: middle; fill: var(--ink); }
.bzchart .bx.them text { fill: #E0457B; }
.bzchart .link line { stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.bzchart .link circle { fill: currentColor; }
.bz-legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 800; color: var(--muted); }
.bz-legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.nomotion .bzchart .link line { stroke-dashoffset: 0; }
.nomotion .mmid i b { transform: none; }
.nomotion .mtotal .arc { stroke-dashoffset: calc(314 * (1 - var(--v) / 100)); }
@media (max-width: 900px) {
  .bagan .bzchart { padding: 14px 12px 12px; border-radius: 22px; }
  .bz-legend { font-size: 12px; gap: 4px 12px; }
  .bzchart .col { font-size: 24px; } .bzchart .area { display: none; }
  .bzchart .plabel { font-size: 18px; } .bzchart .side { font-size: 19px; } .bzchart .bx text { font-size: 32px; }
}

/* Phones: the page never gets wider than the screen (Android's text-size
   setting zooms pages, so a phone can be 320px wide or less). Each chapter
   stage is laid out 400px wide and zoomed to the screen (--fit from landing.js). */
main { overflow-x: clip; }
@media (max-width: 600px) {
  .chapter:not(.bagan) .ch-stage { width: 400px; height: 590px; min-height: 0; zoom: var(--fit, 1); justify-self: center; }
  .wheel { transform: scale(.85); }
  .fan span { transform: rotate(calc(-110deg + var(--i) * 20deg)) translateY(-160px) rotate(calc(110deg - var(--i) * 20deg)); }
  .card3d { width: 130px; margin: -32px -65px; }
  .phone.big { width: min(300px, 100%); }
  .chapter .mcard { transform: none; }
  .stat { padding: 40px 8px; min-width: 0; }
  .stat b { font-size: clamp(44px, 14vw, 110px); }
  .stat span { font-size: 13px; overflow-wrap: anywhere; }
}
.ch-text { min-width: 0; }
