/* Landing page styles (index.html + en/index.html). privacy/terms keep using style.css.
   Colours and shapes come from the Claude Design boards LP-AR/EN-Desktop/Mobile.
   Phone first; the @media block at the bottom adds the desktop layout. */
:root {
  --paper: #F6F4EF; --surface: #fff; --line: #E3DED4; --line-2: #CFC8BA;
  --ink: #1B2230; --ink-2: #465061; --ink-3: #5F6776;
  --lapis: #2A4A8A; --lapis-700: #1E3769; --lapis-100: #D3DCEE; --lapis-50: #EAEFF8;
  --teal-700: #0A524B; --teal-100: #BFE1DA; --teal-50: #E3F2EF;
  --plum: #5F4270; --plum-50: #F0E9F3; --sand: #6E5319; --sand-50: #F4EDDC;
  --f-ui: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --f-disp: 'Noto Naskh Arabic', serif;
}
:lang(en) { --f-ui: 'IBM Plex Sans', system-ui, sans-serif; --f-disp: 'IBM Plex Serif', Georgia, serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--f-ui); overflow-x: hidden; }
html[lang="en"] body { line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.in { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
.disp { font-family: var(--f-disp); font-weight: 700; }
html[lang="en"] .disp { font-weight: 600; letter-spacing: -.015em; }
.muted { color: var(--ink-2); }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.s16 { width: 16px; height: 16px; }
.ic.s28 { width: 28px; height: 28px; }

/* Blue hero band with the geometric pattern (also used by the teachers band and the final-CTA tile) */
.hero { background: var(--lapis) url(assets/pattern-white.svg); background-size: 44px 44px; color: #fff; }

/* Top bar */
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; }
.brand .disp { font-size: 21px; line-height: 1.4; }
.nav-links { display: flex; align-items: center; gap: 36px; color: rgba(255,255,255,.88); }
.nav-link { color: inherit; text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.nav-links .nav-link:not(.lang) { display: none; }
.lang { padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); color: #fff; font-size: 15px; }

/* Hero */
.hero-grid { display: flex; flex-direction: column; gap: 40px; padding-top: 20px; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 500; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-100); }
.hero h1 { font-size: 40px; line-height: 1.45; }
.lead { font-size: 18px; line-height: 1.8; color: rgba(255,255,255,.9); max-width: 600px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 8px; }
.badge { display: inline-block; border-radius: 10px; }
.badge img { height: 56px; width: auto; }
.soon { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-2); }
.hero .soon { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); color: rgba(255,255,255,.88); }
.hero-phone { height: 440px; display: flex; justify-content: center; overflow: hidden; }

/* Phone frame around a real app screenshot */
.phone { background: var(--ink); border-radius: 44px; padding: 9px; box-shadow: 0 30px 60px rgba(20,26,38,.28); flex: none; align-self: flex-start; }
.phone img { width: 260px; aspect-ratio: 1320 / 2868; border-radius: 35px; background: var(--paper); }
.phone.sm { border-radius: 36px; padding: 7px; box-shadow: 0 20px 40px rgba(20,26,38,.2); }
.phone.sm img { width: 200px; border-radius: 29px; }

/* Sections */
.sec { padding: 72px 0; }
.sec-white { background: var(--surface); }
.sec-head { display: flex; flex-direction: column; gap: 8px; max-width: 720px; margin-bottom: 28px; }
.sec-head h2, .teach h2, .cta h2 { font-size: 32px; line-height: 1.5; }
.sec-head p { font-size: 17px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.icon-box { width: 48px; height: 48px; border-radius: 15px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--lapis-50); color: var(--lapis); }
.icon-box.teal { background: var(--teal-50); color: var(--teal-700); }
.icon-box.plum { background: var(--plum-50); color: var(--plum); }
.icon-box.sand { background: var(--sand-50); color: var(--sand); }
.cards { display: grid; gap: 12px; }
.card h3 { font-size: 19px; font-weight: 600; line-height: 1.5; margin-top: 2px; }

/* How it works: sideways-scrolling strip on phones, 4 columns on desktop */
.steps { list-style: none; margin: 0; padding: 0 20px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; }
.step { flex: none; width: 270px; display: flex; flex-direction: column; gap: 16px; scroll-snap-align: start; }
.tile { height: 330px; border-radius: 22px; background: var(--lapis-50) url(assets/pattern.svg); background-size: 32px 32px; overflow: hidden; display: flex; justify-content: center; padding-top: 28px; }
.step-text { display: flex; gap: 12px; align-items: flex-start; }
.step-text p { padding-top: 4px; }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--lapis); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }

/* Step 1 has no screenshot: a small "learners" card instead */
.learners { align-self: center; width: 220px; margin-top: -28px; padding: 18px; gap: 8px; box-shadow: 0 20px 40px rgba(20,26,38,.12); border: 0; }
.learners .icon-box { margin: 0 auto 6px; width: 56px; height: 56px; }
.learner { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--paper); font-weight: 500; font-size: 15px; }
.learner b { width: 28px; height: 28px; border-radius: 50%; background: var(--lapis-100); color: var(--lapis-700); display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* For families */
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feats .card { flex-direction: row; align-items: center; gap: 14px; padding: 16px; }
.feats .icon-box { width: 44px; height: 44px; }

/* For teachers */
.teach { background-color: var(--teal-700); }
.teach-grid { display: flex; flex-direction: column; gap: 18px; }
.teach-copy { display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--teal-100); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { margin-top: 4px; color: var(--teal-100); stroke-width: 2.2; }
.btn { font-weight: 600; font-size: 16px; min-height: 52px; padding: 0 20px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: #fff; color: var(--teal-700); }
.schedule { color: var(--ink); gap: 0; padding: 18px; border: 0; box-shadow: 0 30px 60px rgba(0,0,0,.2); }
.schedule-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; font-weight: 600; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 400; color: var(--ink-2); }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.legend i + span + i { margin-inline-start: 8px; }
.dayrow { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dayrow:last-child { border-bottom: 0; }
.dayname { width: 56px; flex: none; font-weight: 600; font-size: 14px; padding-top: 12px; line-height: 1.4; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.slot { height: 44px; padding: 0 10px; border-radius: 10px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; line-height: 1.2; }
.free { background: var(--teal-50); box-shadow: inset 0 0 0 1.5px var(--teal-100); color: var(--teal-700); }
.paid { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--lapis-100); color: var(--lapis-700); }
.dayrow.extra { display: none; }

/* Final call to action */
.cta { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.cta .stores { flex-direction: column; justify-content: center; }
.app-tile { width: 76px; height: 76px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background-size: 20px 20px; margin-bottom: 6px; }
.cta p { font-size: 17px; }

/* Footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 15px; }
.foot-in { display: flex; flex-direction: column; gap: 14px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.foot .brand { color: var(--lapis); }
.foot .brand .disp { font-size: 18px; color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; column-gap: 20px; color: var(--ink-2); }
.foot .lang-foot { color: var(--lapis); font-weight: 600; }
.copy { color: var(--ink-3); font-size: 14px; }

/* Desktop */
@media (min-width: 1000px) {
  body { font-size: 17px; }
  .in { padding-inline: 20px; }
  .nav { height: 96px; }
  .brand .disp { font-size: 26px; }
  .brand svg { width: 44px; height: 44px; }
  .nav-links .nav-link:not(.lang) { display: inline-flex; font-size: 16px; }
  .lang { padding: 0 16px; font-size: 16px; }

  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 72px; align-items: start; padding-top: 48px; }
  .hero-copy { gap: 24px; padding-top: 48px; }
  .chip { height: 34px; padding: 0 14px; font-size: 14px; }
  .hero h1 { font-size: 64px; line-height: 1.4; }
  html[lang="en"] .hero h1 { line-height: 1.15; }
  .lead { font-size: 21px; }
  .stores { padding-top: 12px; }
  .badge img { height: 60px; }
  .soon { height: 60px; padding: 0 18px; border-radius: 14px; font-size: 15px; }
  .hero-phone { height: 600px; }
  .phone { border-radius: 52px; padding: 11px; box-shadow: 0 40px 80px rgba(20,26,38,.28); }
  .phone img { width: 320px; border-radius: 41px; }

  .sec { padding: 120px 0; }
  .sec-head { gap: 12px; margin-bottom: 56px; }
  .sec-head h2, .teach h2, .cta h2 { font-size: 44px; }
  .sec-head p { font-size: 19px; }

  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .cards .card { border-radius: 22px; padding: 28px; gap: 12px; }
  .cards .icon-box { width: 52px; height: 52px; border-radius: 16px; }
  .cards h3 { font-size: 20px; }
  .cards p { font-size: 16px; }

  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; overflow: visible; padding: 0; }
  .step { width: auto; gap: 20px; }
  .tile { height: 380px; border-radius: 24px; background-size: 36px 36px; padding-top: 32px; }
  .num { width: 40px; height: 40px; font-size: 17px; }

  .fam-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 64px; align-items: start; }
  .fam-grid .sec-head { margin: 0; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .feats .card { padding: 22px; gap: 16px; border-radius: 22px; }
  .feats .icon-box { width: 48px; height: 48px; }

  .teach { padding: 112px 0; background-size: 56px 56px; }
  .teach-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 80px; align-items: center; }
  .teach-copy { gap: 20px; }
  .eyebrow { font-size: 15px; }
  .ticks { gap: 14px; font-size: 18px; }
  .teach .btn { align-self: flex-start; min-width: 200px; }
  .schedule { padding: 24px; border-radius: 22px; }
  .schedule-head { padding-bottom: 14px; font-size: 18px; }
  .dayrow.extra { display: flex; }

  .cta { gap: 18px; }
  .cta .stores { flex-direction: row; }
  .app-tile { width: 88px; height: 88px; border-radius: 22px; background-size: 22px 22px; }
  .cta p { font-size: 19px; }

  .foot { padding: 0; }
  /* Desktop footer: logo + © on one side, links on the other */
  .foot-in { height: 120px; flex-direction: row; align-items: center; gap: 12px; }
  .foot .brand .disp, .foot-top .lang-foot { display: none; }
  .foot .copy { order: 1; font-size: 15px; }
  .foot nav { order: 2; margin-inline-start: auto; column-gap: 28px; align-items: center; }
}
@media (max-width: 999px) {
  .steps-wrap { padding-inline: 0; } /* the strip scrolls edge to edge on phones */
  .foot nav .lang-foot { display: none; }
  .teach-copy { display: contents; } /* phones: schedule card sits above the button, as in the design */
  .teach .btn { width: 100%; order: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Mixed-language snippets (e.g. the "English" / "العربية" switch) use their own script's font */
[lang="ar"] { font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif; }
[lang="en"] { font-family: 'IBM Plex Sans', system-ui, sans-serif; }
/* Before launch / after launch. The APP_STORE_URL line in each page adds class "live" to <html>. */
html:not(.live) .when-live { display: none; }
html.live .when-soon { display: none; }
