/* Sinau home. Quiet shell, loud product: neutral page, the app's own colours live in the screenshots. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --black: #000000;
  --play: #ff6f5e; --math: #46a6ff; --code: #28c98a; --music: #a87bff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

html { scroll-behavior: smooth; scroll-padding-top: 56px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.07; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 50; text-decoration: none; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; height: 48px; background: rgba(251,251,253,.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.nav__in { display: flex; align-items: center; height: 100%; gap: 28px; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand img { width: 22px; height: 22px; border-radius: 6px; }
.nav__links { display: flex; gap: 28px; margin: 0 auto; }
.nav__links a, .nav-back { font-size: 12px; text-decoration: none; color: rgba(29,29,31,.8); letter-spacing: -0.01em; transition: color .15s; }
.nav__links a:hover, .nav-back:hover { color: var(--ink); }
.nav-back { margin-left: auto; font-size: 13px; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; gap: 2px; font-size: 12px; }
.lang button { appearance: none; border: 0; background: transparent; cursor: pointer; font: inherit; color: rgba(29,29,31,.5); padding: 4px 6px; border-radius: 6px; }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 400 17px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; padding: 12px 22px; border-radius: 980px; border: 0; cursor: pointer; transition: background-color .2s, transform .12s; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-hover); }
.btn:active { transform: scale(.97); }
.btn--sm { font-size: 12px; padding: 7px 13px; }
.more { color: var(--link); text-decoration: none; font-size: 21px; letter-spacing: -0.015em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; padding-bottom: 1px; }
.more::after { content: " \203A"; }
.more:hover { background-size: 100% 1px; }
.more--sm { font-size: 17px; }

/* Rhythm */
.sec { padding: 120px 0; text-align: center; }
.sec--alt { background: var(--bg-alt); }
.sec--black { background: var(--black); color: #f5f5f7; }
.head h2 { font-size: clamp(36px, 5.6vw, 64px); }
.head p { margin: 18px auto 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.33; color: var(--ink-2); max-width: 30em; letter-spacing: -0.016em; }
.sec--black .head p { color: #a1a1a6; }

/* Hero */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero__name { font-size: clamp(21px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.hero h1 { margin-top: 6px; font-size: clamp(44px, 8.4vw, 96px); line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.hero__sub { margin: 22px auto 0; max-width: 28em; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.33; color: var(--ink-2); letter-spacing: -0.016em; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin-top: 30px; }
.hero__note { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.stage { height: clamp(380px, 54vw, 600px); margin-top: 44px; overflow: hidden; }
.stage .device { width: min(390px, 80vw); }

/* Device frame: a black bezel around the real screenshot */
.device { width: min(340px, 78vw); margin: 0 auto; padding: 10px; background: #1d1d1f; border-radius: 54px; box-shadow: 0 0 0 1px #3a3a3c, 0 50px 90px -40px rgba(0,0,0,.5); }
.device__screen { overflow: hidden; border-radius: 44px; background: #fff; }
.device img { width: 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.device:hover img { transform: scale(1.02); }

/* Kisha */
.kisha__art { margin: 56px auto 0; width: min(320px, 70vw); }
.kisha__art img { width: 100%; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 72px auto 0; max-width: 960px; text-align: left; }
.trio p { font-size: 17px; line-height: 1.47; color: var(--ink-2); }
.trio strong { color: var(--ink); font-weight: 600; }
.fine { margin-top: 40px; font-size: 14px; color: var(--ink-2); }

/* Lessons */
.lessons { text-align: left; overflow: hidden; padding-bottom: 0; }
.lessons__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lessons__text { padding-bottom: 120px; }
.lessons .head h2 { font-size: clamp(34px, 4.6vw, 56px); }
.lessons .head p { margin-left: 0; }
.rows { list-style: none; margin: 40px 0 0; padding: 0; max-width: 460px; }
.rows li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.lessons__text .tip { margin-top: 22px; font-size: 15px; color: var(--ink-2); max-width: 30em; }
.lessons__art { align-self: end; height: 560px; overflow: hidden; display: flex; align-items: flex-start; padding-top: 56px; }
.lessons__art .device { margin: 0 auto; }

/* Worlds */
.world-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 64px; text-align: left; }
.world { text-decoration: none; color: inherit; display: flex; flex-direction: column; background: #fff; border-radius: 28px; padding: 28px 24px 26px; min-height: 280px; transition: transform .2s ease, box-shadow .2s ease; }
.world:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -24px rgba(0,0,0,.35); }
.world i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.world h3 { font-size: 28px; margin-top: 22px; }
.world .n { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.world p { margin-top: 14px; font-size: 15px; line-height: 1.4; color: var(--ink-2); flex: 1; }
.world .more { margin-top: 18px; font-size: 15px; align-self: flex-start; }

/* Parents */
.defs { margin: 64px auto 0; max-width: 780px; text-align: left; }
.defs div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.defs div:last-child { border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 600; }
.defs dd { margin: 0; color: var(--ink-2); }

/* Privacy */
.sec--black h2 { color: #f5f5f7; }
.sec--black .more { color: #2997ff; }
.sec--black .head .more { display: inline-block; margin-top: 28px; }

/* Close */
.close .hero__cta { margin-top: 32px; }

/* Footer */
.foot { background: var(--bg-alt); padding: 28px 0 40px; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.foot .wrap { max-width: 1040px; }
.foot__top { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__links a { color: var(--ink); opacity: .8; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }

/* Store status pages and legal text */
.store { padding: 120px 0 140px; text-align: center; }
.store h1 { font-size: clamp(40px, 7vw, 72px); text-wrap: balance; }
.store p { margin: 18px auto 0; max-width: 28em; font-size: 21px; color: var(--ink-2); line-height: 1.38; }
.store .hero__cta { margin-top: 32px; }

.legal-wrap { max-width: 780px; margin-inline: auto; padding: 64px 24px 96px; }
.legal h1 { font-size: clamp(36px, 5.4vw, 56px); }
.legal .updated { color: var(--ink-2); font-size: 15px; margin-top: 8px; margin-bottom: 28px; }
.legal h2 { font-size: clamp(21px, 2.4vw, 26px); margin-top: 44px; padding-bottom: 10px; border-bottom: 1px solid var(--line); letter-spacing: -0.02em; }
.legal h3 { font-size: 19px; margin-top: 24px; }
.legal p, .legal li { color: #424245; font-size: 17px; line-height: 1.55; }
.legal p { margin-top: 14px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--link); }
.legal a:hover { text-decoration: underline; }
.legal ul, .legal ol { margin-top: 14px; padding-left: 22px; display: grid; gap: 9px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 16px; }
.legal th, .legal td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Entrance: the hero rises once on load */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
[data-enter] > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
[data-enter] > *:nth-child(2) { animation-delay: .08s; }
[data-enter] > *:nth-child(3) { animation-delay: .16s; }
[data-enter] > *:nth-child(4) { animation-delay: .24s; }
[data-enter] > *:nth-child(5) { animation-delay: .32s; }
.stage[data-enter] > * { animation-delay: .4s; animation-duration: 1s; }

@media (max-width: 900px) {
  .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .lessons__grid { grid-template-columns: 1fr; gap: 24px; }
  .lessons { text-align: center; }
  .lessons .head p { margin-left: auto; }
  .rows { margin-inline: auto; text-align: left; }
  .lessons__text .tip { margin-inline: auto; }
  .lessons__text { padding-bottom: 0; }
  .lessons__art { height: 460px; }
}
@media (max-width: 734px) {
  .nav__links { display: none; }
  .nav__right { margin-left: auto; }
  .nav__cta { display: none; }
  .sec { padding: 80px 0; }
  .hero { padding-top: 48px; }
  .defs div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .wrap, .nav__in { padding: 0 20px; }
}
@media (max-width: 520px) {
  .world-grid { grid-template-columns: 1fr; }
  .world { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-enter] > * { animation: none; }
  .btn, .world, .device img, .more { transition: none; }
  .world:hover, .device:hover img { transform: none; }
}
