/* midtrans.app — editorial layout from the identity guide (midtrans-identity-guide-ar.md,
   2026-10-26; the owner, 2026-10-27: «لا يكون بستايل كلود»).
   What the guide asks for, and what this file does instead of the stock look:
   - a calm asymmetric grid, type doing the work: left-aligned display headings,
     not a centred hero with a small line on top;
   - flat colour and the emblem's arch as the one shape: arch tiles, an arch
     pattern; no soft drop shadows, no pill buttons, no emoji icons;
   - warm paper 65%, blue and ink 20%, gold / coral / sage the rest; ages written
     in numbers as well as colour; white text only on the darker action blue.
   Logical properties throughout, so Arabic and Hebrew mirror; the mark never does. */
:root {
  --brand: #007DC5; --ink: #152C45; --paper: #FFF8EE; --gold: #F3BE45; --coral: #E88470; --sage: #BCD6C3; --action: #006BA8;
  --rule: #E5DACA; --muted: #4F5E6E; --paper-2: #F6EEE1;
  --font: "Nunito", "Cairo", "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Nunito", "Cairo", "Heebo", system-ui, sans-serif;
  --lh: 1.5;
  --gutter: clamp(16px, 4vw, 48px);
}
:lang(ar) { --font: "Cairo", "Nunito", system-ui, sans-serif; --display: "Cairo", "Nunito", system-ui, sans-serif; --lh: 1.7; }
:lang(he) { --font: "Heebo", "Nunito", system-ui, sans-serif; --display: "Heebo", "Nunito", system-ui, sans-serif; --lh: 1.55; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: var(--lh); font-weight: 600; }
a { color: var(--action); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
:lang(ar) h1, :lang(ar) h2, :lang(he) h1, :lang(he) h2 { letter-spacing: 0; line-height: 1.3; }
h1 { font-size: clamp(40px, 7.4vw, 88px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { top: 8px; }

/* The bar: a hairline, no blur, no shadow. */
.top { display: flex; align-items: center; gap: 24px; padding: 18px var(--gutter); border-bottom: 1px solid var(--rule); flex-wrap: wrap; background: var(--paper); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.brand .wordmark { font-size: 22px; }
.emblem { color: var(--brand); flex: none; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brand); }
.lang select { font: inherit; font-size: 15px; padding: 6px 28px 6px 10px; border: 1px solid var(--ink); border-radius: 6px; background: transparent; color: var(--ink); }
@media (max-width: 700px) { .nav { order: 3; width: 100%; margin: 0; gap: 18px; } .lang { margin-inline-start: auto; } }

main { padding: 0 var(--gutter) 40px; max-width: 1360px; margin: 0 auto; }
main > section { margin-top: clamp(48px, 7vw, 96px); }
main > section > h2 { margin-bottom: 22px; }
.sub { color: var(--muted); max-width: 56ch; margin: -10px 0 26px; }

/* Lead-in: text on a 7-column measure, the emblem large in its own column. */
.lead-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; padding-top: clamp(32px, 6vw, 72px); }
.lead-text p { max-width: 46ch; color: var(--muted); font-size: 19px; margin: 22px 0 0; }
.lead-art { background: var(--brand); border-radius: 14px; aspect-ratio: 5 / 4; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.lead-art::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 84'%3E%3Cpath d='M17 72V44a21.5 21.5 0 0 1 43 0v14M60 44a21.5 21.5 0 0 1 43 0v28' fill='none' stroke='%230A8BD6' stroke-width='27' stroke-linecap='round'/%3E%3C/svg%3E"); background-size: 120px 84px; opacity: .55; }
.lead-art .emblem { position: relative; width: 62%; height: auto; color: var(--paper); }
@media (max-width: 800px) { .lead-in { grid-template-columns: 1fr; } .lead-art { aspect-ratio: 2 / 1; } .lead-art .emblem { width: 38%; } }
.slogan { margin: 0 0 14px !important; color: var(--brand) !important; font-family: var(--display); font-weight: 800; font-size: 17px !important; }
.cta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 30px !important; }
.btn { display: inline-flex; align-items: center; min-height: 54px; padding: 12px 26px; border-radius: 8px; background: var(--action); color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; }
.btn:hover { background: #00578A; }
.link { font-weight: 800; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.more { font-weight: 800; color: var(--ink); }

/* Section headers on inner pages: left aligned, a rule under them. */
.hero { padding: clamp(32px, 5vw, 64px) 0 26px; border-bottom: 1px solid var(--rule); }
.hero p { max-width: 58ch; color: var(--muted); margin: 16px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: "Nunito", system-ui, sans-serif; font-weight: 800; letter-spacing: .14em; font-size: 14px; color: var(--ink); }
.eyebrow .emblem { width: 30px; height: 21px; }
.eyebrow em { font-style: normal; color: var(--coral); }

/* Ages: four flat colour columns, the numbers set large. */
.bands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 14px; overflow: hidden; }
@media (max-width: 860px) { .bands { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bands { grid-template-columns: 1fr; } }
.band { display: flex; flex-direction: column; gap: 6px; min-height: 230px; padding: 24px; background: var(--c); color: var(--ink); text-decoration: none; }
.band-num { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: clamp(52px, 6vw, 76px); line-height: 1; letter-spacing: -0.03em; margin-bottom: auto; }
.band b { font-size: 19px; }
.band span:last-child { font-size: 16px; }
.band:hover .band-num { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.band-1 { --c: var(--gold); } .band-2 { --c: var(--coral); } .band-3 { --c: var(--sage); } .band-4 { --c: var(--brand); }
.band-4, .band-4 b { color: #fff; }
.band-hero { border-bottom: 10px solid var(--c); }
.band-hero h1 { color: var(--ink); }

/* The game index: rows separated by hairlines, an arch tile, the name large. */
.index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--rule); }
.item { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto 1fr; column-gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); height: 100%; }
.item .tile { grid-row: 1 / 4; }
.item-name { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.2; }
.item-desc { color: var(--muted); font-size: 16px; margin-top: 4px; }
.item-ages { font-size: 14px; color: var(--action); margin-top: 8px; }
.item:hover .item-name { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tile { width: 76px; height: 92px; border-radius: 999px 999px 10px 10px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); background: var(--t); }
.tone-gold { --t: var(--gold); } .tone-coral { --t: var(--coral); } .tone-sage { --t: var(--sage); }
.tone-brand { --t: var(--brand); color: #fff; } .tone-ink { --t: var(--ink); color: #fff; }
.tile.big { width: 180px; height: 220px; border-radius: 999px 999px 18px 18px; align-items: center; padding: 0; }
.tile.big .emblem { width: 60%; height: auto; color: currentColor; }
.tone-gold .emblem, .tone-coral .emblem, .tone-sage .emblem { color: var(--ink); }

/* Grown-ups: ink ground. */
.is-grownups { background: var(--paper-2); }
.is-grownups .hero, .grownups-teaser { background: var(--ink); color: var(--paper); border-radius: 14px; padding: clamp(28px, 4vw, 48px); border: 0; }
.is-grownups .hero p, .grownups-teaser > p { color: #C9D3DE; }
.is-grownups .hero .eyebrow, .grownups-teaser .eyebrow, .is-grownups .hero .eyebrow .emblem, .grownups-teaser .eyebrow .emblem { color: var(--paper); }
.grownups-teaser h2 { margin-bottom: 10px; }
.grownups-teaser .index { margin-top: 24px; border-top-color: #2E4560; }
.grownups-teaser .item { color: var(--paper); border-bottom-color: #2E4560; }
.grownups-teaser .item-desc { color: #C9D3DE; }
.grownups-teaser .item-ages { color: var(--gold); }
.soon { margin-top: 28px; padding: 22px 0; border-top: 1px solid var(--rule); display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; color: var(--muted); }
.soon b { color: var(--ink); font-family: var(--display); font-size: 22px; }

/* The promise: figures on ink. */
.parents-teaser, .promise-wrap { }
.promise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: var(--paper); border-radius: 14px; overflow: hidden; }
@media (max-width: 860px) { .promise { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .promise { grid-template-columns: 1fr; } }
.promise li { padding: 26px; display: flex; flex-direction: column; gap: 8px; border-inline-start: 1px solid #2E4560; }
.promise li:first-child { border-inline-start: 0; }
.fig { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 64px; line-height: 1; color: var(--gold); }
.promise b { font-size: 19px; }
.promise span:last-child { color: #C9D3DE; font-size: 16px; }

/* Questions: a two-column list, everything visible. */
.faq dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--rule); }
.faq dl > div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.faq dt { font-family: var(--display); font-weight: 800; font-size: 19px; }
.faq dd { margin: 6px 0 0; color: var(--muted); }

/* A game. */
.crumbs { margin-top: 22px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.game { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin-top: 28px !important; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
@media (max-width: 640px) { .game { grid-template-columns: 1fr; } .tile.big { width: 130px; height: 160px; } }
.lead { font-size: 21px; margin: 16px 0 22px; color: var(--muted); max-width: 46ch; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 26px; font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.btn.play { min-width: 220px; justify-content: center; font-size: 20px; }
.note { color: var(--muted); font-size: 15px; margin: 10px 0 0; }

/* Foot: ink band with the arch pattern. */
.foot { margin-top: 80px; background: var(--ink); color: #C9D3DE; padding: 40px var(--gutter) 48px; font-size: 15px; position: relative; }
.foot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: linear-gradient(90deg, var(--gold) 0 25%, var(--coral) 25% 50%, var(--sage) 50% 75%, var(--brand) 75%); }
.foot a { color: var(--paper); }
.foot-langs a { color: #C9D3DE; }

/* Root chooser. */
.root { padding-top: 12vh; text-align: start; max-width: 900px; }
.root-mark .emblem { width: 120px; height: 84px; }
.root .wordmark { font-size: clamp(44px, 9vw, 96px); display: block; }
.root-langs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.root-langs .btn { background: transparent; color: var(--ink); border: 1px solid var(--ink); min-height: 48px; }
.root-langs .btn:hover { background: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* On the ink ground the grown-ups' arch is brand blue, not ink on ink. */
.grownups-teaser .tone-ink, .is-grownups .tone-ink { --t: var(--brand); }

.about { max-width: 60ch; margin: 0 0 22px; }
