/* Bina & Bimo · binabimo.com. Colours come from the channel banner (sky → blush, Bina pink, Bimo blue, ink navy). */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bina: #ff7aa9;
  --bina-ink: #c93a72;
  --bimo: #4a8fe2;
  --bimo-ink: #2563b8;
  --ink: #383e52;
  --ink-soft: #5d6379;
  --sky: #b8e0fe;
  --blush: #feccd9;
  --sun: #ffc94a;
  --leaf: #4fbf7a;
  --paper: #fffdf7;
  --bg: #f6f8ff;
  --card: #ffffff;
  --line: #e4e8f3;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(56, 62, 82, 0.08), 0 2px 6px rgba(56, 62, 82, 0.05);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bimo-ink); text-underline-offset: 3px; }
a:hover { color: var(--bina-ink); }
:focus-visible { outline: 3px solid var(--bimo); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4.2vw, 42px); }
h3 { font-size: 21px; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: #fff; padding: 8px 14px; border-radius: 10px; }

/* ── header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(228, 232, 243, 0.8);
}
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 20px; }
.brand img { width: 38px; height: 38px; border-radius: 12px; }
.brand .b1 { color: var(--bina); }
.brand .b2 { color: var(--bimo); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 750; font-size: 15px;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: #eef3ff; color: var(--ink); }
.lang {
  text-decoration: none; font-weight: 850; font-size: 14px; color: var(--ink);
  border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.lang:hover { border-color: var(--bimo); color: var(--ink); }
@media (max-width: 860px) {
  .top .wrap { gap: 8px 12px; padding-top: 8px; }
  .lang { margin-left: auto; }
  .nav {
    order: 3; width: 100%; margin: 0 -16px; padding: 0 12px 8px; overflow-x: auto;
    scrollbar-width: none; width: calc(100% + 32px);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { background: #f1f4fc; font-size: 14px; }
}

/* ── wordmark (like the banner: pink, navy, blue, with a white outline) */
.wordmark { font-weight: 1000; font-size: clamp(54px, 10vw, 104px); line-height: 1; margin: 0 0 12px; letter-spacing: -0.02em; }
.wordmark span { paint-order: stroke fill; -webkit-text-stroke: 0.14em #fff; text-shadow: 0 6px 18px rgba(56, 62, 82, 0.12); }
.wordmark .b1 { color: var(--bina); }
.wordmark .amp { color: var(--ink); font-size: 0.8em; }
.wordmark .b2 { color: var(--bimo); }

/* ── hero */
.hero {
  background: linear-gradient(100deg, var(--sky) 0%, #d4e2f6 45%, #f3d6e4 70%, var(--blush) 100%);
  padding: 48px 0 64px; position: relative; overflow: hidden;
}
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } .hero { padding: 72px 0 88px; } }
.slogan { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-soft); max-width: 36em; font-weight: 600; }
.hero-art { position: relative; justify-self: center; max-width: 460px; width: 100%; }
.hero-art img { border-radius: 36px; box-shadow: 0 24px 60px rgba(56, 62, 82, 0.18); border: 8px solid #fff; transform: rotate(2deg); }
.hero-art::before, .hero-art::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.hero-art::before { width: 120px; height: 120px; background: var(--sun); opacity: 0.55; top: -24px; left: -28px; }
.hero-art::after { width: 160px; height: 160px; background: #fff; opacity: 0.55; bottom: -40px; right: -36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; font-size: 17px;
  padding: 13px 22px; border-radius: 999px; border: 0; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(56, 62, 82, 0.25); }
.btn-main:hover { color: #fff; }
.btn-soft { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-soft:hover { color: var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 620px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats li { background: rgba(255, 255, 255, 0.72); border-radius: 18px; padding: 12px 14px; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--ink-soft); }
.stats b { display: block; font-size: 26px; font-weight: 1000; color: var(--ink); }

/* ── product tiles under the hero */
.tiles { display: grid; gap: 14px; margin-top: -40px; position: relative; z-index: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 16px;
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; border: 2px solid transparent;
}
.tile:hover { color: var(--ink); border-color: var(--sky); transform: translateY(-2px); transition: transform 0.15s ease; }
.tile .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; }
.tile strong { font-size: 18px; font-weight: 900; line-height: 1.25; }
.tile span { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.c-game { background: #fff1d2; }
.c-draw { background: #ffe3ee; }
.c-robot { background: #ddebff; }
.c-app { background: #ddf5e6; }

/* ── sections */
section { scroll-margin-top: 80px; }
.sec { padding: 72px 0; }
.sec + .sec { padding-top: 24px; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.e-game { background: #fff1d2; color: #8a5a00; }
.e-draw { background: #ffe3ee; color: #a8285c; }
.e-robot { background: #ddebff; color: var(--bimo-ink); }
.e-app { background: #ddf5e6; color: #1f7a45; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } .split.flip > :first-child { order: 2; } }
.intro { font-size: 18px; color: var(--ink-soft); font-weight: 600; }
.shot { border-radius: var(--radius); box-shadow: 0 18px 50px rgba(56, 62, 82, 0.16); border: 6px solid #fff; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; font-weight: 650; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 900; color: #fff; background: var(--leaf);
}
.panel { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 28px 20px; margin-top: 40px; }
@media (min-width: 720px) { .panel { padding: 32px; } }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.panel-head h3 { margin: 0; font-size: 24px; font-weight: 900; }
.panel-head p { margin: 0; color: var(--ink-soft); font-weight: 600; font-size: 15px; }

/* game gallery */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .games { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .games { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.games li { margin: 0; }
.games img { border-radius: 14px; aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: #eef2fb; }
.games span { display: block; font-weight: 800; font-size: 15px; line-height: 1.3; margin-top: 8px; }
.more { margin-top: 16px; }
.more summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 850;
  background: #fff1d2; color: #6b4600; padding: 10px 18px; border-radius: 999px; margin-bottom: 16px;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "▾"; }
.more[open] summary::after { content: "▴"; }
.more[open] summary .closed, .more:not([open]) summary .opened { display: none; }

/* drawing levels */
.levels { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
@media (max-width: 639px) {
  .levels li:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: center; }
  .levels li:last-child img { grid-row: span 2; }
}
@media (min-width: 640px) { .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .levels { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.levels li { background: var(--paper); border: 2px solid #f4ecd9; border-radius: 20px; padding: 12px 12px 16px; }
.levels img { border-radius: 12px; aspect-ratio: 10 / 7; width: 100%; object-fit: contain; }
.lv { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-weight: 900; font-size: 18px; }
.lv i {
  font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; color: #fff; background: #c93a72;
}
.levels li:nth-child(2) .lv i { background: #b34a17; }
.levels li:nth-child(3) .lv i { background: #8a6500; }
.levels li:nth-child(4) .lv i { background: #1f7a45; }
.levels li:nth-child(5) .lv i { background: var(--bimo-ink); }
.levels p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }

/* robot roadmap */
.robot-art { position: relative; }
.robot-art .host { position: absolute; width: 26%; max-width: 150px; right: -8px; bottom: -28px; filter: drop-shadow(0 10px 18px rgba(56, 62, 82, 0.2)); }
.stages { display: grid; gap: 14px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stages > li { background: #f4f8ff; border-radius: 20px; padding: 18px; border: 2px solid #e1ecfd; }
.stages h4 { margin: 0 0 8px; font-size: 17px; font-weight: 900; color: var(--bimo-ink); }
.stages ol { margin: 0; padding-left: 20px; font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.stages ol li { margin: 3px 0; }
.next { margin: 18px 0 0; font-size: 15px; color: var(--ink-soft); font-weight: 600; }

/* game apps */
.apps { background: linear-gradient(160deg, #e9f8ef 0%, #fff7e3 100%); border-radius: 36px; padding: 40px 20px; }
@media (min-width: 720px) { .apps { padding: 56px 48px; } }
.careers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 28px 0 0; }
.careers li { background: #fff; border-radius: 24px; padding: 16px; box-shadow: var(--shadow); text-align: center; }
.careers img { width: 180px; margin: 0 auto; aspect-ratio: 13 / 16; object-fit: contain; }
.careers h3 { margin: 10px 0 4px; }
.careers p { font-size: 15px; color: var(--ink-soft); margin: 0 0 10px; }
.soon { display: inline-block; font-size: 13px; font-weight: 900; background: #ddf5e6; color: #1f7a45; padding: 3px 10px; border-radius: 999px; }

/* channels */
.channels { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 28px 0 0; }
@media (max-width: 899px) { .channels li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 900px) { .channels { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.channels a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; text-decoration: none; color: var(--ink);
  background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); border: 2px solid transparent;
}
.channels a:hover { border-color: var(--sky); color: var(--ink); }
.channels svg { width: 34px; height: 34px; margin-bottom: 6px; }
.channels strong { font-size: 18px; font-weight: 900; }
.channels span { font-size: 14px; color: var(--ink-soft); font-weight: 650; }
.channels em { font-style: normal; font-size: 15px; font-weight: 800; color: var(--bimo-ink); margin-top: auto; padding-top: 6px; }
.center { text-align: center; }
.center .intro { max-width: 40em; margin-left: auto; margin-right: auto; }

/* ── footer */
.foot { background: #2f3446; color: #d9dcea; padding: 48px 0 36px; margin-top: 72px; font-size: 15px; }
.foot a { color: #fff; }
.foot a:hover { color: var(--blush); }
.foot .cols { display: grid; gap: 28px; }
@media (min-width: 820px) { .foot .cols { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot .brand { color: #fff; margin-bottom: 10px; }
.foot h2 { color: #fff; margin: 0 0 10px; font-size: 16px; font-weight: 900; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot .fine { border-top: 1px solid #454b60; margin-top: 32px; padding-top: 20px; font-size: 13px; color: #aeb3c7; }
.foot .fine p { margin: 0 0 6px; }

/* ── legal pages */
.doc-hero { background: linear-gradient(100deg, var(--sky), var(--blush)); padding: 44px 0 40px; }
.doc-hero h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }
.doc-hero p { margin: 0; font-weight: 700; color: var(--ink); }
.doc-hero a, .doc-hero a:focus-visible { color: var(--ink); outline-color: var(--ink); }
.doc { max-width: 820px; margin: 0 auto; padding: 36px 16px 0; }
.doc h2 { font-size: 26px; margin-top: 40px; scroll-margin-top: 84px; }
.doc h3 { font-size: 19px; margin-top: 24px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .box { background: #fff; border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); margin: 18px 0; }
.doc .box p:last-child, .doc .box ul:last-child { margin-bottom: 0; }
.doc .toc { background: #fff; border-radius: 20px; padding: 16px 20px; border: 2px solid var(--line); }
.doc .toc ol { margin: 6px 0 0; padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 18px; background: #fff; border-radius: 14px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: #f1f5fd; font-weight: 850; }
.doc code { font-size: 0.92em; background: #eef2fb; padding: 1px 6px; border-radius: 6px; word-break: break-word; }
.tablewrap { overflow-x: auto; }
.notfound { width: 160px; margin: 0 auto 12px; }
.doc-hero .center p { margin-bottom: 6px; }
.doc td:first-child { width: 36%; }
.doc td code { white-space: nowrap; word-break: normal; display: inline-block; margin: 1px 0; }
