/* Kulna's website, in the app's own look (docs/design-system.md): Kulna's periwinkle at the top, white sections,
   each game on its own colour, charcoal for words and the main button. System fonts only. */
:root {
  --ink: #2F3042; --pencil: #4A4C5C; --paper: #FFFFFF; --settings: #F6F6FA; --soft: #F1F1F6;
  --peri: #6E76FA; --peri-bright: #A9AEFF; --coral: #F4533F; --sun: #FFC53D; --pink: #FF7EB3;
  --teal: #109486; --orange: #FF7A2E; --logo-pink: #E48AA8;
  --radius: 26px;
  --font: ui-rounded, "SF Pro Rounded", "SF Arabic Rounded", system-ui, -apple-system, "Segoe UI", Roboto,
          "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55;
       font-size: 18px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 18px; }
:lang(ar) h2, :lang(ar) h1 { letter-spacing: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
section { padding: 88px 0; }
.sub { font-size: 20px; color: var(--pencil); margin: 0 0 30px; max-width: 760px; }

/* Header */
.top { width: min(1160px, 100% - 40px); margin-inline: auto; display: flex; align-items: center;
       justify-content: space-between; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 22px; }
.mini-badge { width: 48px; height: 48px; border-radius: 50%; background: var(--logo-pink); display: grid; place-items: center;
              box-shadow: 0 0 0 4px #fff; }
.mini-badge img { width: 32px; }
.lang { color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 10px 18px; border-radius: 999px;
        background: rgba(255, 255, 255, .2); }
.lang:hover { background: rgba(255, 255, 255, .3); }

/* Hero */
.hero { background: var(--peri); color: #fff; padding: 0 0 80px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.hero::before { width: 560px; height: 560px; inset-inline-end: -180px; top: -260px; }
.hero::after { width: 460px; height: 460px; inset-inline-start: -200px; bottom: -260px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
             gap: 40px; align-items: center; padding-top: 40px; }
.eyebrow { display: inline-block; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px;
           letter-spacing: 1.6px; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; margin: 0 0 22px; }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 16px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -1px; margin-bottom: 22px; }
.lead { font-size: 21px; opacity: .93; max-width: 560px; margin: 0 0 30px; }
.hero-cta, .promise-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.price { margin: 0; font-weight: 700; opacity: .9; font-size: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 30px;
       border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: 18px; text-decoration: none;
       box-shadow: 0 6px 0 rgba(47, 48, 66, .18); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.soon { cursor: default; opacity: .96; }
.hero-art { position: relative; display: grid; justify-items: center; }
.badge { position: relative; width: min(380px, 80vw); aspect-ratio: 1; filter: drop-shadow(0 18px 30px rgba(47, 48, 66, .25)); }
.badge .ring { width: 100%; height: 100%; }
.badge .disc { position: absolute; inset: 20%; border-radius: 50%; background: var(--logo-pink); display: grid; place-items: center; }
.badge .disc img { width: 64%; }
.teapot { width: min(300px, 64vw); margin-top: -10px; }

/* Why */
.three { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.three li { background: var(--settings); border-radius: var(--radius); padding: 28px; }
.three h3 { font-size: 23px; font-weight: 800; margin-bottom: 8px; }
.three p { margin: 0; color: var(--pencil); }

/* Games */
.all-games { background: var(--settings); }
.shelf { font-size: 24px; font-weight: 800; margin: 36px 0 16px; }
.games { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.game .tile { border-radius: 22px; aspect-ratio: 16 / 13; display: grid; place-items: center; padding: 16px; }
.game .tile img { width: 76%; }
.game h4 { font-size: 19px; font-weight: 800; margin: 12px 4px 4px; }
.game p { margin: 0 4px; font-size: 15px; color: var(--pencil); line-height: 1.45; }

/* How */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.num { width: 44px; height: 44px; border-radius: 50%; background: var(--peri); color: #fff; font-weight: 800; font-size: 20px;
       display: grid; place-items: center; }
.steps h3 { font-size: 22px; font-weight: 800; }
.steps p { margin: 0 0 12px; color: var(--pencil); }
.phone { margin: 0; background: var(--ink); border-radius: 44px; padding: 10px; box-shadow: 0 24px 48px rgba(47, 48, 66, .18); }
.phone img { border-radius: 36px; width: 100%; }
.steps .phone { max-width: 280px; }

/* Moments: a strip of the fun screens */
.moments { background: var(--sun); padding-bottom: 70px; }
.strip { display: flex; gap: 22px; overflow-x: auto; padding: 10px 20px 26px; scroll-snap-type: x mandatory;
         scrollbar-width: thin; }
.strip .phone { flex: 0 0 240px; scroll-snap-align: center; }
@media (min-width: 1200px) { .strip { justify-content: center; } }

/* TV */
.tv-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.tv p { color: var(--pencil); font-size: 19px; }
.screen { margin: 0; background: var(--ink); border-radius: 28px; padding: 14px; box-shadow: 0 24px 48px rgba(47, 48, 66, .18); }
.screen img { border-radius: 16px; }

/* Promise */
.promise { background: var(--ink); color: #fff; }
.pills { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.pills li { background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 12px 22px; font-weight: 700; }
.promise .price { opacity: .8; }

/* FAQ */
details { border-bottom: 1.5px solid var(--soft); padding: 18px 0; }
summary { cursor: pointer; font-weight: 800; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--peri); }
details[open] summary::after { content: "–"; }
summary::-webkit-details-marker { display: none; }
details p { margin: 12px 0 0; color: var(--pencil); }

/* Footer */
.foot { background: var(--settings); padding: 44px 0; }
.foot p { margin: 0 0 12px; color: var(--pencil); }
.foot nav { display: flex; gap: 22px; margin-bottom: 14px; }
.foot a { font-weight: 700; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.small { font-size: 14px; }

/* Privacy and support */
.band { background: var(--peri); color: #fff; padding: 0 0 44px; }
.band h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; padding-top: 30px; }
.doc { padding: 50px 0 80px; }
.doc h2 { font-size: 24px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--pencil); }
.updated { font-weight: 700; color: var(--ink) !important; }
.lead-dark { font-size: 21px; color: var(--ink) !important; }

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

/* Phones */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero-grid, .tv-grid { grid-template-columns: minmax(0, 1fr); }
  /* The badge and the teapot side by side, small, so the words are on the first screen. */
  .hero-grid { padding-top: 6px; gap: 18px; }
  .hero-art { order: -1; display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
  .badge { width: min(190px, 48vw); }
  .teapot { width: min(150px, 38vw); margin: 0; }
  .hero h1 { font-size: 34px; }
  .eyebrow { margin-bottom: 14px; }
  .three, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps .phone { max-width: 260px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .game .tile img { width: 80%; }
  .strip .phone { flex-basis: 200px; }
  .lead { font-size: 19px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
