/* Self-hosted fonts (SIL Open Font License): Fredoka & Nunito — no third-party requests. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/assets/fonts/fredoka-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/assets/fonts/fredoka-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600 900; font-display: swap; src: url(/assets/fonts/nunito-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600 900; font-display: swap; src: url(/assets/fonts/nunito-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Robiloop — robiloop.com
   Plain CSS, no build step. Palette mirrors the app's Theme.swift. */

:root {
  --sky: #6EC6FF;
  --sky-deep: #3A8DFF;
  --blue-text: #1A5FCF;   /* darker skyDeep for text on light bg (AA) */
  --grape: #8E6CFF;
  --grape-text: #5B3FC4;
  --sun: #FFC83D;
  --orange: #FF9F43;
  --coral: #FF6B6B;
  --mint: #2FC896;
  --mint-text: #137A57;
  --pink: #FF6FAE;
  --ink: #2B2D42;
  --ink-soft: #4E5170;
  --cream: #FFF8EC;
  --card: #FFFFFF;
  --bg-top: #C4E9FF;
  --bg-bottom: #FFF3D9;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(43, 45, 66, .10), 0 2px 6px rgba(43, 45, 66, .06);
  --font-head: "Fredoka", "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, #E6F5FF 30%, var(--bg-bottom) 100%) fixed;
  background-color: var(--bg-bottom);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: var(--grape-text); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 800;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 2px 14px rgba(43,45,66,.08); }
.nav { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 3px 10px rgba(43,45,66,.18); }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { display: inline-block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255,255,255,.75); color: var(--blue-text); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px !important; background: #fff; box-shadow: 0 2px 8px rgba(43,45,66,.08); }
.lang-switch .flag { font-size: 1.05rem; line-height: 1; margin-right: 2px; }

@media (max-width: 720px) {
  .nav-links .hide-sm { display: none; }
  .brand span { font-size: 1.25rem; }
  .brand img { width: 36px; height: 36px; }
}

/* ---------- Buttons / badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 0 #14151f, 0 12px 24px rgba(43,45,66,.25); }
.btn-primary:hover { color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: 0 6px 0 #d9dce8, 0 10px 20px rgba(43,45,66,.10); }
.btn-ghost:hover { color: var(--ink); }

.store-badges { display: flex; flex-wrap: wrap; gap: 18px 16px; justify-content: inherit; }
.cta .store-badges { justify-content: center; margin-top: 8px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border-radius: 14px; padding: 10px 20px 10px 16px;
  text-decoration: none; position: relative; box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.store-badge svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.store-badge { min-width: 216px; }
.store-badge small { display: block; font-size: .74rem; line-height: 1.1; opacity: .9; font-weight: 700; letter-spacing: .02em; }
.store-badge strong { display: block; font-family: -apple-system, "SF Pro Display", system-ui, sans-serif; font-size: 1.35rem; line-height: 1.1; font-weight: 600; }
.store-badge .soon {
  position: absolute; top: -12px; right: -14px; transform: rotate(8deg);
  background: var(--sun); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  padding: 3px 10px; border-radius: 999px; box-shadow: 0 3px 8px rgba(0,0,0,.18);
}

.pill .e { font-size: 1.05em; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.8); font-weight: 800; font-size: .92rem; color: var(--ink);
  box-shadow: 0 2px 8px rgba(43,45,66,.06);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 36px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; position: relative; z-index: 2; }
.hero h1 .accent { color: var(--blue-text); display: inline-block; }
.hero h1 .wiggle { display: inline-block; animation: wiggle 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
.hero .lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 34ch; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 22px 18px; align-items: center; margin-top: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

.robi-stage { position: relative; display: grid; place-items: center; min-height: 440px; }
.robi-stage .glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.4) 45%, rgba(255,255,255,0) 70%);
}
.robi-stage .ring {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  border: 3px dashed rgba(58,141,255,.35); animation: spin 40s linear infinite;
}
.robi-big { position: relative; width: min(340px, 78vw); filter: drop-shadow(0 24px 24px rgba(43,45,66,.18)); }
.robi-big .shadow-floor { position: absolute; }
.bubble {
  position: absolute; top: 4%; right: 2%; z-index: 3;
  background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
  padding: 12px 18px; border-radius: 22px; box-shadow: var(--shadow);
  animation: pop 6s ease-in-out infinite; transform-origin: 10% 100%;
}
.bubble::after {
  content: ""; position: absolute; left: 22px; bottom: -12px; border: 12px solid transparent; border-top-color: #fff; border-bottom: 0;
}
.app-icon-float {
  position: absolute; left: 0; bottom: 8%; width: 96px; height: 96px; border-radius: 24px;
  box-shadow: 0 14px 30px rgba(43,45,66,.25); animation: float 5s ease-in-out infinite; animation-delay: -1.5s;
}

/* Floating code blocks + clouds */
.sky-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .85; animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 55%; height: 160%; left: 14%; bottom: 20%; }
.cloud::after { width: 40%; height: 130%; right: 14%; bottom: 25%; }
.c1 { width: 140px; height: 40px; top: 12%; left: -160px; animation-duration: 58s; }
.c2 { width: 100px; height: 30px; top: 46%; left: -160px; animation-duration: 74s; animation-delay: -30s; opacity: .7; }
.c3 { width: 180px; height: 50px; top: 78%; left: -200px; animation-duration: 90s; animation-delay: -60s; opacity: .6; }

.block {
  position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  color: #fff; font-size: 1.6rem; font-weight: 900; box-shadow: 0 5px 0 rgba(0,0,0,.15), 0 10px 18px rgba(43,45,66,.15);
  animation: float 6s ease-in-out infinite;
}
.block svg { width: 28px; height: 28px; }
.b-sky { background: var(--sky-deep); }
.b-grape { background: var(--grape); }
.b-mint { background: var(--mint); }
.b-sun { background: var(--sun); color: var(--ink); }
.b-coral { background: var(--coral); }
.b-pink { background: var(--pink); }
.hero .block:nth-child(4) { top: 8%; left: 46%; animation-delay: -1s; transform: rotate(-8deg); }
.hero .block:nth-child(5) { top: 70%; left: 48%; animation-delay: -3s; }
.hero .block:nth-child(6) { top: 44%; right: 1%; animation-delay: -2s; }
.hero .block:nth-child(7) { bottom: 6%; right: 8%; animation-delay: -4s; }
.hero .block:nth-child(8) { bottom: 4%; left: 45%; animation-delay: -5s; width: 44px; height: 44px; }

.wave-sep { display: block; width: 100%; height: 60px; margin-top: -60px; position: relative; z-index: 3; }

/* ---------- Robi SVG animation ---------- */
.robi { overflow: visible; }
.robi .bob { animation: bob 2.4s ease-in-out infinite; }
.robi .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.2s infinite; }
.robi .eye + .eye { animation-delay: 0s; }
.robi .antenna-ball { animation: glow 2.4s ease-in-out infinite; }
.robi .arm-r { transform-origin: 0 0; transform: rotate(-18deg); }
.robi.waving .arm-r { animation: wave 5s ease-in-out infinite; }
.robi .arm-l { transform-origin: 0 0; transform: rotate(18deg); }
.robi .heart { transform-box: fill-box; transform-origin: center; animation: beat 1.2s ease-in-out infinite; }
.robi .floor { transform-box: fill-box; transform-origin: center; animation: floor 2.4s ease-in-out infinite; }

/* ---------- Sections ---------- */
section { padding: 72px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; font-weight: 600; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--grape-text); margin-bottom: 8px; }

.band-white { background: #fff; }
.band-cream { background: var(--cream); }

/* Coding demo */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.demo-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.grid-board {
  --cell: clamp(46px, 11vw, 72px);
  display: grid; grid-template-columns: repeat(5, var(--cell)); grid-template-rows: repeat(3, var(--cell));
  gap: 6px; padding: 12px; border-radius: 22px; background: linear-gradient(180deg, #7ED957, #4DB84A);
  position: relative; width: max-content; margin: 0 auto; box-shadow: inset 0 -8px 0 rgba(0,0,0,.12);
}
.grid-board .cell { border-radius: 12px; background: rgba(255,255,255,.18); }
.grid-board .cell.path { background: #E7E3D8; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.grid-board .goal, .grid-board .bot {
  position: absolute; width: var(--cell); height: var(--cell); display: grid; place-items: center;
  left: calc(12px + var(--x) * (var(--cell) + 6px)); top: calc(12px + var(--y) * (var(--cell) + 6px));
}
.grid-board .bot { transition: left .45s cubic-bezier(.5,1.6,.5,1), top .45s cubic-bezier(.5,1.6,.5,1); z-index: 2; }
.grid-board .bot svg { width: 86%; height: 86%; filter: drop-shadow(0 4px 3px rgba(0,0,0,.2)); }
.grid-board .goal svg { width: 62%; height: 62%; animation: bob 1.6s ease-in-out infinite; }
.grid-board .goal.got svg { animation: collect .6s ease-out forwards; }
.program { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; padding: 12px; background: #F2F4FA; border-radius: 18px; }
.program .step {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-deep);
  box-shadow: 0 4px 0 #2466c4; transition: transform .2s, box-shadow .2s, background .2s;
}
.program .step svg { width: 24px; height: 24px; fill: #fff; }
.program .step.up { background: var(--grape); box-shadow: 0 4px 0 #6B4ED6; }
.program .step.active { transform: translateY(-6px) scale(1.08); background: var(--sun); box-shadow: 0 4px 0 #D9A21F, 0 0 0 4px rgba(255,200,61,.35); }
.program .step.active svg { fill: var(--ink); }
.demo-caption { text-align: center; margin: 12px 0 0; font-weight: 700; color: var(--ink-soft); min-height: 1.6em; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.checklist li::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; margin-top: 1px; }

/* Worlds */
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.world {
  background: #fff; border-radius: var(--radius); padding: 18px 20px 22px; box-shadow: var(--shadow); text-align: center;
  border-top: 6px solid var(--c, var(--sky-deep)); transition: transform .2s;
}
.world:hover { transform: translateY(-6px) rotate(-.6deg); }
.world img { width: 170px; height: 170px; margin: -6px auto 6px; animation: float 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.world .num { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--ink-soft); }
.world h3 { margin: 2px 0 4px; }
.world .concept { display: inline-block; margin-bottom: 6px; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: .9rem; background: var(--c-soft, #E6F1FF); color: var(--ink); }
.world p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.stat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.stat { background: #fff; border-radius: 22px; padding: 14px 22px; box-shadow: var(--shadow); text-align: center; min-width: 140px; }
.stat b { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--blue-text); line-height: 1.1; }
.stat span { font-weight: 700; color: var(--ink-soft); font-size: .95rem; }

/* Brain games */
.games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.game-cat { background: #fff; border-radius: var(--radius); padding: 16px 16px 20px; box-shadow: var(--shadow); text-align: center; }
.game-cat img { width: 120px; height: 120px; margin: 0 auto 6px; transition: transform .3s; }
.game-cat:hover img { transform: scale(1.08) rotate(-4deg); }
.game-cat h3 { font-size: 1.12rem; }
.game-cat ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.game-cat li { background: #F4F6FB; border-radius: 12px; padding: 6px 8px; font-weight: 700; font-size: .93rem; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.feature .ico {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; margin-bottom: 14px;
  background: var(--c, var(--sky)); box-shadow: 0 5px 0 rgba(0,0,0,.08);
}
.feature p { color: var(--ink-soft); font-weight: 600; margin: 0; }
.feature::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -50px; top: -50px; background: var(--c, var(--sky)); opacity: .12; }

/* Ages */
.ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.age { border-radius: var(--radius); padding: 26px; background: #fff; box-shadow: var(--shadow); border: 3px solid var(--c); }
.age .range { font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; line-height: 1; }
.age .emoji { font-size: 2.2rem; float: right; }
.age h3 { margin: 8px 0 6px; }
.age p { margin: 0; color: var(--ink-soft); font-weight: 600; }

/* Privacy promise */
.promise {
  background: linear-gradient(135deg, var(--grape) 0%, var(--sky-deep) 100%); color: #fff; border-radius: 36px;
  padding: 44px; display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; box-shadow: 0 20px 40px rgba(91,63,196,.3);
}
.promise h2 { color: #fff; }
.promise p { font-weight: 600; font-size: 1.1rem; opacity: .97; }
.promise .shield { width: 150px; animation: float 5s ease-in-out infinite; }
.promise ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.promise li { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 1.05rem; }
.promise li span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.22); }
.promise a { color: #fff; font-weight: 800; }

/* CTA */
.cta { text-align: center; }
.cta-card { background: #fff; border-radius: 40px; padding: 48px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-card .robi { width: 150px; margin: 0 auto 6px; }
.cta-card .confetti i {
  position: absolute; width: 12px; height: 12px; border-radius: 3px; top: -20px; animation: fall linear infinite;
}

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 40px; color: var(--ink-soft); font-weight: 600; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--ink); font-weight: 800; text-decoration: none; }
.footer-links a:hover { color: var(--blue-text); text-decoration: underline; }
.site-footer small { display: block; margin-top: 18px; font-size: .9rem; }

/* ---------- Document pages (privacy, terms, support) ---------- */
.doc-hero { padding: 28px 0 24px; text-align: center; }
.doc-hero .robi { width: 110px; margin: 0 auto 4px; }
.doc-hero p { color: var(--ink-soft); font-weight: 700; }
.doc {
  background: #fff; border-radius: 32px; box-shadow: var(--shadow); padding: clamp(24px, 5vw, 56px);
  max-width: 860px; margin: 0 auto 40px;
}
.doc h2 { font-size: 1.6rem; margin-top: 1.6em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.3em; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc .summary { background: #EEF7FF; border-radius: 22px; padding: 20px 24px; margin-bottom: 28px; border-left: 6px solid var(--sky-deep); }
.doc .summary ul { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .98rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #E4E7F0; vertical-align: top; }
.doc th { background: #F6F7FB; font-family: var(--font-head); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.meta { color: var(--ink-soft); font-weight: 700; font-size: .95rem; }

.faq { display: grid; gap: 12px; }
.faq details { background: #F6F8FD; border-radius: 18px; padding: 4px 20px; border: 2px solid transparent; transition: border-color .2s; }
.faq details[open] { background: #fff; border-color: var(--sky); }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 1.5rem; line-height: 1; color: var(--blue-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); font-weight: 600; }
.contact-card {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #FFF3D9, #FFE6F1); border-radius: 26px; padding: 24px 28px; margin-top: 32px;
}
.contact-card h2 { margin: 0 0 4px; font-size: 1.5rem; }
.contact-card p { margin: 0; font-weight: 600; color: var(--ink-soft); }

/* ---------- Animations ---------- */
@keyframes bob { 0%, 100% { transform: translateY(5px); } 50% { transform: translateY(-5px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes blink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.12); } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 1px #FF6B6B); } 50% { filter: drop-shadow(0 0 7px #FF6B6B); } }
@keyframes wave {
  0%, 8% { transform: rotate(-18deg); }
  16% { transform: rotate(-118deg); } 24% { transform: rotate(-148deg); } 32% { transform: rotate(-115deg); }
  40% { transform: rotate(-148deg); } 48% { transform: rotate(-118deg); }
  58%, 100% { transform: rotate(-18deg); }
}
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes floor { 0%, 100% { transform: scaleX(1); opacity: .22; } 50% { transform: scaleX(.82); opacity: .14; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-8deg); } 88% { transform: rotate(8deg); } 92% { transform: rotate(-5deg); } 96% { transform: rotate(3deg); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 400px)); } }
@keyframes pop { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.05) rotate(1deg); } }
@keyframes collect { 0% { transform: scale(1); opacity: 1; } 60% { transform: scale(1.6) rotate(15deg); opacity: .8; } 100% { transform: scale(0); opacity: 0; } }
@keyframes fall { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(560px) rotate(540deg); } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .games { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding-top: 12px; }
  .hero-grid, .demo { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-tags, .hero .store-badges { justify-content: center; }
  .robi-stage { min-height: 360px; order: -1; }
  .hero .block { display: none; }
  .worlds, .ages { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .promise .shield { margin: 0 auto; width: 110px; }
  .promise ul { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .worlds, .ages, .features { grid-template-columns: 1fr; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .games .game-cat:last-child { grid-column: 1 / -1; }
  .promise ul { grid-template-columns: 1fr; }
  .bubble { font-size: 1rem; right: 0; }
  .app-icon-float { width: 72px; height: 72px; border-radius: 18px; }
  .program .step { width: 40px; height: 40px; }
}
