/* SmartKidz landing — tone jingga SmartKidz, ringkas: semua modul muat dalam satu layar */
:root {
  --orange: #F37A04;
  --orange-2: #FF9F1C;
  --amber: #FFAD00;
  --cream: #FFF8F0;
  --surface: #FFFFFF;
  --ink: #1F1A17;
  --ink-2: #5B524B;
  --ink-3: #9A8F86;
  --line: rgba(76, 46, 18, .08);
  --line-2: rgba(76, 46, 18, .14);
  --green: #16A34A;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(76, 46, 18, .06), 0 2px 8px rgba(76, 46, 18, .04);
  --shadow-lg: 0 16px 34px -12px rgba(243, 122, 4, .3), 0 6px 14px rgba(76, 46, 18, .06);
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* Tinggi ilustrasi mengikuti tinggi layar agar 2 baris kartu selalu muat */
  --art-h: clamp(64px, calc(100vh - 560px), 132px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Latar ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(243, 122, 4, .14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 50%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 50%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 560px; height: 560px; top: -220px; right: -140px; background: radial-gradient(circle, #FFB45C, transparent 70%); }
.b2 { width: 480px; height: 480px; top: 30%; left: -220px; background: radial-gradient(circle, #FFD873, transparent 70%); }
.b3 { width: 420px; height: 420px; bottom: -200px; right: 18%; background: radial-gradient(circle, #FFC9A8, transparent 70%); opacity: .45; }

/* ---------- Topbar ---------- */
.topbar {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: inline-flex; border-radius: 10px; }
.logo img { height: 38px; width: auto; display: block; }
.today {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.today b { color: var(--orange); font-weight: 700; }
.today #today:not(:empty)::before { content: '·'; margin-right: 8px; color: var(--ink-3); }

/* ---------- Konten ---------- */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero { text-align: center; padding: 12px 0 22px; }
.hero h1 {
  margin: 0 auto 8px;
  max-width: 820px;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hl {
  background: linear-gradient(100deg, var(--orange) 0%, var(--orange-2) 55%, var(--amber) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hero p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.sum {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #15803D;
  background: #E8F7EE;
}
.sum.is-soon { color: #B45309; background: #FFF4DE; }
.dot-on { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }

.apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- Kartu ---------- */
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.art {
  position: relative;
  display: grid;
  place-items: center;
  height: var(--art-h);
  border-radius: calc(var(--radius) - 6px);
  background: var(--tint, #FFF0DF);
  overflow: hidden;
  isolation: isolate;
}
.art::before {
  content: '';
  position: absolute;
  inset: auto -20% -50% -20%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .85), transparent);
  z-index: -1;
}
/* multiply membuat latar putih ilustrasi menyatu dengan warna kartu */
.art img {
  height: calc(var(--art-h) - 10px);
  width: auto;
  max-width: 82%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .5s var(--ease);
}

.body { display: flex; flex-direction: column; gap: 4px; padding: 10px 6px 2px; flex: 1; min-width: 0; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.title { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(12.5px * 1.45 * 2);
}

.status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.status.is-on { color: #15803D; background: #E8F7EE; }
.status.is-on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.status.is-soon { color: #B45309; background: #FFF4DE; }
.status.is-locked { color: #6B6560; background: #F1EFEC; }
.status svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
  min-height: 37px;
  border-top: 1px dashed var(--line-2);
}
.host { min-width: 0; font-size: 12px; font-weight: 600; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent, var(--orange));
  background: color-mix(in srgb, var(--accent, var(--orange)) 10%, #fff);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }

/* Interaksi kartu aktif */
a.card:hover,
a.card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(243, 122, 4, .25);
  box-shadow: var(--shadow-lg);
}
a.card:hover .art img,
a.card:focus-visible .art img { transform: scale(1.06); }
a.card:hover .go,
a.card:focus-visible .go { color: #fff; background: linear-gradient(135deg, var(--orange), var(--orange-2)); }
a.card:hover .go svg,
a.card:focus-visible .go svg { transform: translateX(3px); }
a.card:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--orange), var(--shadow-lg); }

/* Kartu nonaktif */
.card.is-locked { cursor: not-allowed; background: rgba(255, 255, 255, .62); box-shadow: none; }
.card.is-locked .art img { filter: grayscale(.55); opacity: .75; }
.card.is-locked .title { color: var(--ink-2); }

/* ---------- Footer ---------- */
.foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}
.foot .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ---------- Animasi masuk ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .7s var(--ease) both; }
  .hero p { animation-delay: .06s; }
  .app { animation: rise .7s var(--ease) both; animation-delay: calc(.1s + var(--i, 0) * 45ms); }
  .blob { animation: float 18s ease-in-out infinite alternate; }
  .b2 { animation-duration: 22s; }
  .b3 { animation-duration: 26s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .card, .art img, .go, .go svg { transition: none; }
  a.card:hover, a.card:focus-visible { transform: none; }
  a.card:hover .art img { transform: none; }
}

/* ---------- Layar sempit: kartu jadi ubin ringkas (ilustrasi, nama, status) ---------- */
@media (max-width: 1023px) {
  :root { --art-h: clamp(64px, calc((100vh - 330px) / 2 - 70px), 120px); }
  .desc, .meta { display: none; }
  .body { padding: 8px 4px 2px; }
  .title-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .title { max-width: 100%; }
}
@media (max-width: 640px) {
  :root { --art-h: clamp(52px, calc((100vh - 400px) / 4), 110px); }
  .topbar { padding: 12px 14px 0; }
  .logo img { height: 30px; }
  .today { padding: 6px 11px; font-size: 12px; }
  .today #today { display: none; }
  .wrap { padding: 0 14px; justify-content: flex-start; }
  .hero { padding: 16px 0 14px; }
  .hero h1 { font-size: 21px; margin-bottom: 8px; }
  .hero p { font-size: 13px; gap: 6px; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 6px; border-radius: 16px; }
  .art { border-radius: 11px; }
  .body { padding: 7px 3px 1px; }
  .title-row { flex-direction: row; align-items: center; gap: 6px; }
  .title { font-size: 13.5px; }
  .status { padding: 2px 7px; font-size: 10.5px; gap: 4px; }
  .status svg { width: 10px; height: 10px; }
  .hero .lead { display: none; }
  .foot { padding: 12px 14px 14px; font-size: 11.5px; }
}
