/* The landing page: QUIZZER's look (ios/Quizzer/UI/Theme.swift): cream paper, navy ink and hard shadows, amber as a fill with navy
   on it, never as text on cream. Right to left, phone first, light only. The other pages use site.css. */
/* Lalezar for headings, Almarai for text, served from this site (SIL Open Font License, public/fonts/). */
@font-face { font-family: "Lalezar"; src: url(/fonts/lalezar-arabic.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Almarai"; src: url(/fonts/almarai-arabic-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Almarai"; src: url(/fonts/almarai-arabic-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Almarai"; src: url(/fonts/almarai-arabic-800.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Lalezar"; src: url(/fonts/lalezar-latin.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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-200B,U+2012-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Almarai"; src: url(/fonts/almarai-latin-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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-200B,U+2012-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Almarai"; src: url(/fonts/almarai-latin-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; 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-200B,U+2012-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Almarai"; src: url(/fonts/almarai-latin-800.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; 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-200B,U+2012-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  color-scheme: only light;
  --paper: #FCF2E5;
  --card: #FFF9F0;
  --well: #F3E6D3;
  --ink: #12304F;
  --muted: #4D6175;
  --amber: #FDB400;
  --amber-hi: #FFC93C;
  --red: #F64A2B;
  --red-ink: #C9381C;
  --blue: #2D7FF9;
  --blue-ink: #1F5FD0;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; font-synthesis: none; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Almarai", -apple-system, "SF Arabic", "Geeza Pro", Tahoma, sans-serif;
  line-height: 1.7;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 20; background: var(--amber); padding: 8px 14px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 10px; }

h1, h2, h3, .btn, .logo, summary, .facts b, .num { font-weight: 400; font-family: "Lalezar", "Almarai", -apple-system, "SF Arabic", Tahoma, sans-serif; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 22px;
  font-size: 20px; color: var(--ink); background: var(--amber); text-decoration: none;
  border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
a.btn:hover { background: var(--amber-hi); }
a.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-ghost { background: var(--card); }
a.btn-ghost:hover { background: #fff; }
.btn-soon { background: var(--well); box-shadow: none; border-style: dashed; cursor: default; }
.btn-small { min-height: 42px; padding: 4px 14px; font-size: 16px; border-radius: 12px; box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.btn-small.btn-soon { box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* the bar on top */
.top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 3px solid var(--ink); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 24px; text-decoration: none; letter-spacing: .5px; }
.logo img { border-radius: 10px; border: 2px solid var(--ink); }
.top nav { display: none; gap: 20px; margin-inline-start: auto; font-weight: 700; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.top-in > .btn { margin-inline-start: auto; }

/* the first screen */
.hero-in { display: grid; gap: 32px; padding-block: 32px 40px; }
.versus { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; margin-bottom: 14px; }
.versus .red, .versus .blue { color: #fff; padding: 2px 14px; border-radius: 999px; border: 2px solid var(--ink); }
.versus .red { background: var(--red-ink); }
.versus .blue { background: var(--blue-ink); }
h1 { font-size: clamp(42px, 11.5vw, 72px); line-height: 1.25; margin-bottom: 14px; text-wrap: balance; }
.lead { font-size: clamp(17px, 4.6vw, 21px); color: var(--muted); margin-bottom: 22px; max-width: 34em; }
.fine { color: var(--muted); font-size: 15px; margin-top: 16px; }
.stage { position: relative; padding-block-end: 44px; padding-inline-end: 12%; }
.tv { border: 4px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--ink); box-shadow: 0 7px 0 var(--ink); }
.tv img { width: 100%; }
.phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 25%; border: 4px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: 0 5px 0 var(--ink); }

/* the numbers */
.facts { background: var(--ink); color: var(--paper); }
.facts-in { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; padding-block: 24px; }
.facts li { text-align: center; }
.facts b { display: block; color: var(--amber); font-size: clamp(34px, 9vw, 50px); line-height: 1.25; }
.facts span { font-size: 15px; font-weight: 700; }

/* sections */
.band { padding-block: 48px; }
.band-well { background: var(--well); }
.band-ink { background: var(--ink); color: var(--paper); }
h2 { font-size: clamp(32px, 8vw, 46px); line-height: 1.3; }
.sub { color: var(--muted); font-size: 17px; margin: 4px 0 26px; }
.band-ink h2 { margin-bottom: 22px; }

.steps { display: grid; gap: 20px; }
.steps li { background: var(--card); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); padding: 18px; display: flex; flex-direction: column; }
.num { display: grid; place-items: center; width: 44px; height: 44px; background: var(--amber); border: 3px solid var(--ink); border-radius: 50%; font-size: 21px; margin-bottom: 10px; }
h3 { font-size: 22px; line-height: 1.35; margin-bottom: 4px; }
.steps p { color: var(--muted); margin-bottom: 14px; }
.steps img { margin-top: auto; border: 3px solid var(--ink); border-radius: 12px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cards li { background: var(--card); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.cards img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-bottom: 3px solid var(--ink); }
.cards h3 { padding: 10px 12px 0; font-size: 18px; }
.cards p { padding: 0 12px 12px; color: var(--muted); font-size: 15px; line-height: 1.55; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 14px; font-weight: 700; font-size: 15px; }
.chips li:nth-child(3n+1) { background: #FFEFC7; }

.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 10px; }
.gallery li { flex: 0 0 86%; scroll-snap-align: center; border: 3px solid var(--paper); border-radius: 16px; overflow: hidden; }
.gallery img { width: 100%; }

.two { display: grid; gap: 40px; }
.ticks { margin-top: 16px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 36px; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 2px; width: 26px; height: 26px; display: grid; place-items: center; background: var(--amber); border: 2px solid var(--ink); border-radius: 50%; font-weight: 900; font-size: 14px; line-height: 1; }
details { background: var(--card); border: 3px solid var(--ink); border-radius: 14px; margin-top: 12px; }
details:first-of-type { margin-top: 16px; }
summary { cursor: pointer; font-size: 19px; padding: 10px 14px; min-height: 48px; }
details p { padding: 0 14px 12px; color: var(--muted); }
details a { font-weight: 800; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }

.cta { background: var(--amber); border-block: 3px solid var(--ink); padding-block: 40px; text-align: center; }
.cta h2 { margin-bottom: 16px; }
.cta .actions { justify-content: center; }
.cta .btn { background: var(--card); }
.cta .btn-soon { background: var(--amber-hi); }

.foot { padding-block: 26px 34px; font-size: 14px; color: var(--muted); text-align: center; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 10px; }
.links a { font-weight: 800; color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.seller { margin: 0; }
.seller div { display: inline-block; margin: 0 8px; }
.seller dt, .seller dd { display: inline; margin: 0; }
.seller dt::after { content: ": "; }

@media (min-width: 640px) {
  .facts-in { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery li { flex-basis: 62%; }
}
@media (min-width: 900px) {
  .top nav { display: flex; }
  .top-in > .btn { margin-inline-start: 0; }
  .hero-in { grid-template-columns: 5fr 6fr; align-items: center; gap: 44px; padding-block: 56px 64px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gallery li { flex-basis: 46%; }
  .two { grid-template-columns: 1fr 1fr; gap: 56px; }
  .band { padding-block: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
