/* Moci website. Tokens follow DESIGN.md (MociColors). Fonts are self-hosted:
   the site, like the app, loads nothing from third parties except the
   GitHub Releases API on the download page. */

@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("../fonts/Fredoka-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("../fonts/Fredoka-Bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("../fonts/Nunito-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../fonts/Nunito-Bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../fonts/Nunito-ExtraBold.woff2") format("woff2"); }

:root {
  --ink: #2B2350;
  --ink-soft: #6B5F99;
  --sky: #74C4FF;
  --sky-2: #B5E2FF;
  --sky-3: #DDF3FF;
  --yellow: #FFD43B;
  --green: #26A03B;
  --green-shadow: #1E8A31;
  --pink: #F03E7C;
  --orange: #FF9F1C;
  --blue: #1C8CF0;
  --red: #E8384F;
  --night: #241D4A;
  --white: #FFFFFF;
  --cream: #FFF8E1;
  --lilac: #F1EEF9;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 6px 0 rgba(43, 35, 80, .10), 0 14px 32px rgba(43, 35, 80, .08);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Language: both languages are in the HTML, the root attribute picks one. */
html[data-lang="id"] [lang="en"]:not(html),
html[data-lang="en"] [lang="id"]:not(html) { display: none !important; }

/* Header */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(43,35,80,.06); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.nav .brand img { height: 42px; width: auto; }
.nav .links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav .links a { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav .links a:hover { color: var(--blue); }
.nav .links a.navcta { color: #fff; }
@media (max-width: 760px) { .nav .links .hide-sm { display: none; } .nav .links { gap: 12px; } }

.lang { display: inline-flex; background: var(--lilac); border-radius: 999px; padding: 4px; }
.lang button { border: 0; background: transparent; font: inherit; font-weight: 800; font-size: .85rem; color: var(--ink); padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--red); color: #fff; }

/* Buttons: chunky like the app's primary button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.1rem; text-decoration: none; border: 0; border-radius: 999px; padding: 15px 28px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(4px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 0 var(--green-shadow); }
.btn-primary:active { box-shadow: 0 2px 0 var(--green-shadow); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 6px 0 rgba(43,35,80,.14); }
.btn-light:active { box-shadow: 0 2px 0 rgba(43,35,80,.14); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 6px 0 #1F1846; }
.btn-sm { font-size: .95rem; padding: 9px 18px; box-shadow: 0 4px 0 var(--green-shadow); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 55%, var(--sky-3) 100%); padding: 64px 0 150px; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--ink); }
.hero .lead { font-size: 1.2rem; max-width: 34ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pills li { background: rgba(255,255,255,.75); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .9rem; }
.hero-visual { position: relative; }
.device { background: #1d1838; border-radius: 30px; padding: 12px; box-shadow: 0 30px 60px rgba(43,35,80,.25); transform: rotate(2deg); }
.device img { border-radius: 20px; width: 100%; height: auto; aspect-ratio: 1180 / 820; }
.hero-mascot { position: absolute; width: 140px; left: -70px; bottom: -70px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 12px 10px rgba(43,35,80,.18)); }
.bubble { position: absolute; left: 30px; bottom: -112px; background: #fff; border-radius: 20px; padding: 10px 16px; font-family: "Fredoka", sans-serif; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; }
.bubble { left: 80px; bottom: -40px; }
.bubble::after { content: ""; position: absolute; left: -10px; top: 50%; margin-top: -10px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
.sun { position: absolute; right: 6%; top: 34px; width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 10px rgba(255,212,59,.35); z-index: 1; }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .9; z-index: 1; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud.c1 { width: 110px; height: 34px; left: 6%; top: 50px; }
.cloud.c1::before { width: 50px; height: 50px; left: 18px; top: -24px; }
.cloud.c1::after { width: 38px; height: 38px; left: 56px; top: -14px; }
.cloud.c2 { width: 90px; height: 28px; left: 44%; top: 26px; }
.cloud.c2::before { width: 40px; height: 40px; left: 16px; top: -20px; }
.cloud.c2::after { width: 30px; height: 30px; left: 46px; top: -10px; }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: 130px; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mascot { width: 100px; left: -6px; bottom: -64px; }
  .bubble { left: 100px; bottom: -34px; }
  .sun { width: 52px; height: 52px; top: 14px; right: 14px; opacity: .85; }
  .hero h1 { position: relative; z-index: 2; }
}

/* Sections */
section { padding: 84px 0; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); }

.promises { background: #6FCF5E; background: linear-gradient(180deg, #6FCF5E 0%, #5DBE4E 100%); color: var(--ink); padding: 0 0 70px; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.promise .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 12px; }
.promise p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .promise-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promise-grid { grid-template-columns: 1fr; } }

.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.menu { border-radius: var(--radius); padding: 22px 20px 20px; color: #fff; position: relative; overflow: hidden; box-shadow: 0 6px 0 rgba(0,0,0,.14); min-height: 170px; }
.menu::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.16); }
.menu .emoji { font-size: 2.2rem; line-height: 1; margin-bottom: 14px; display: block; }
.menu h3 { margin: 0 0 4px; }
.menu p { margin: 0; font-size: .95rem; opacity: .95; }
.m-red { background: #F25C6B; } .m-green { background: #4CC25A; } .m-orange { background: #FF8A3D; } .m-yellow { background: #F5B400; }
.m-blue { background: #4C9DF5; } .m-pink { background: #F06AA0; } .m-teal { background: #22B8B8; } .m-purple { background: #8C6CF0; }
.m-indigo { background: #5B6CF0; } .m-rose { background: #E85A86; } .m-gold { background: #E9A800; } .m-ink { background: var(--ink); }
@media (max-width: 900px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .menu-grid { grid-template-columns: 1fr; } .menu { min-height: 0; } }

/* Screens */
.screens { background: var(--cream); }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 82vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 24px; scrollbar-width: thin; }
.shots figure { margin: 0; scroll-snap-align: center; background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.shots img { border-radius: 20px; width: 100%; height: auto; aspect-ratio: 1180 / 820; }
.shots figcaption { padding: 12px 8px 4px; font-weight: 700; }
.shots figcaption span.muted { display: block; font-weight: 600; font-size: .95rem; }

/* Parents */
.parents .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; }
.parents img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 900px) { .parents .wrap { grid-template-columns: 1fr; } }

/* Platforms + CTA */
.cta-band { background: linear-gradient(135deg, var(--night) 0%, #3E3180 55%, #7C6BD6 100%); color: #fff; border-radius: 36px; padding: 56px 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.cta-band img { width: 120px; }
.cta-band p { color: #DCD5EE; margin: 0; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; text-align: center; } .cta-band img { margin: 0 auto; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--lilac); border-radius: var(--radius-sm); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Fredoka", sans-serif; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Footer */
footer { background: var(--night); color: #CFC8EA; padding: 44px 0; margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer a { color: #fff; }
footer .fl { display: flex; gap: 18px; flex-wrap: wrap; }

/* Download page */
.dl-hero { background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 60%, var(--sky-3) 100%); padding: 56px 0 120px; position: relative; overflow: hidden; }
.dl-hero .wrap { position: relative; z-index: 2; text-align: center; }
.dl-hero .mascot { width: 110px; margin: 0 auto 10px; animation: bob 3.2s ease-in-out infinite; }
.version-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 16px; font-weight: 800; box-shadow: var(--shadow); }
.version-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.version-chip.pre .dot { background: var(--orange); }
.dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: -80px; position: relative; z-index: 3; }
.card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 2px solid transparent; }
.card.suggested { border-color: var(--green); }
.card .head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.card .plat { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.card .plat svg { width: 30px; height: 30px; }
.card h2 { font-size: 1.6rem; margin: 0; }
.card .tag { display: inline-block; background: var(--green); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 800; margin-left: 6px; vertical-align: middle; }
.card .meta { color: var(--ink-soft); font-size: .95rem; margin: 10px 0 0; }
.card .btn { width: 100%; margin-top: 8px; }
.steps { margin: 18px 0 0; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; font-size: .97rem; }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.note { background: var(--cream); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .95rem; margin-top: 16px; }
@media (max-width: 820px) { .dl-cards { grid-template-columns: 1fr; } }

.panel { background: var(--lilac); border-radius: var(--radius); padding: 28px; }
.notes-body h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.notes-body ul { margin: 0; padding-left: 20px; }
.notes-body li { margin: 4px 0; }
.notes-body code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; background: rgba(43,35,80,.07); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.files { width: 100%; border-collapse: collapse; font-size: .95rem; }
.files th, .files td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(43,35,80,.1); vertical-align: top; }
.files th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.older { display: grid; gap: 10px; }
.older details { background: #fff; border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: 0 2px 0 rgba(43,35,80,.06); }
.older summary { cursor: pointer; font-weight: 800; }
.older .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.status { text-align: center; padding: 30px; color: var(--ink-soft); }
.error { background: #FFE8EB; color: #9A1F31; border-radius: var(--radius-sm); padding: 16px 20px; margin-top: 20px; }
.skeleton { background: linear-gradient(90deg, #eee 0%, #f6f6f6 50%, #eee 100%); background-size: 200% 100%; animation: sh 1.2s linear infinite; border-radius: 10px; height: 1em; }
@keyframes sh { to { background-position: -200% 0; } }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
