@font-face {
  font-family: Rubik;
  src: url('assets/fonts/rubik-arabic.ttf') format('truetype');
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --paper: #f8f7f3;
  --ink: #191919;
  --muted: #65645f;
  --yellow: #ffdf40;
  --red: #dc3036;
  --blue: #244bdd;
  --line: #deddd7;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --cut: polygon(.6% 1.2%, 19% .4%, 41% 1%, 63% .2%, 83% 1%, 99.5% .5%, 99% 28%, 99.8% 57%, 99.2% 78%, 99.8% 99%, 77% 98.8%, 55% 99.8%, 31% 99%, .2% 99.7%, 1% 73%, .3% 48%, 1% 24%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: #a6a49b var(--paper); scrollbar-width: thin; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Rubik, sans-serif; line-height: 1.8; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { border: 0; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.45; text-wrap: balance; }
h1 { font-size: clamp(38px, 10vw, 58px); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(29px, 7.5vw, 38px); letter-spacing: -.02em; }
h3 { font-size: 22px; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.container > *, .hero-copy, .demo-copy, .quiz-paper { min-width: 0; }
.section-space { padding-block: 56px; }
.icon { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: fixed; top: -80px; right: 20px; z-index: 100; background: var(--yellow); padding: 12px 20px; }
.skip-link:focus { top: 15px; }

/* Mobile layout is the baseline. All controls fit a 320px viewport. */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 84px; position: relative; border-bottom: 1px solid var(--line); }
.brand { flex-shrink: 0; }
.brand img { width: 76px; mix-blend-mode: multiply; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; position: relative; min-height: 48px; border: 1.5px solid var(--ink); padding: 12px 20px; font-size: 15px; font-weight: 600; background: transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.header-download { margin-inline-start: auto; min-height: 44px; padding: 9px 13px; font-size: 12px; gap: 8px; }
.header-download .icon { width: 18px; height: 18px; }
.menu-toggle { order: 3; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid #b6b4aa; }
.menu-toggle svg { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 1.8; }
.site-header nav { display: none; position: absolute; inset-inline: 0; top: calc(100% + 1px); z-index: 10; flex-direction: column; background: var(--paper); padding: 12px; box-shadow: 0 15px 22px -18px #19191980; }
.site-header nav.is-open { display: flex; }
.site-header nav a { padding: 12px; font-size: 16px; min-height: 48px; }
.button-primary { background: var(--yellow); border: 0; isolation: isolate; min-height: 72px; padding: 17px 24px; }
.button-primary::before, .button-primary::after { content: ''; position: absolute; clip-path: var(--cut); }
.button-primary::before { inset: -3px; background: var(--ink); z-index: -2; }
.button-primary::after { inset: 0; background: var(--yellow); z-index: -1; }
.play-button { text-align: right; gap: 15px; }
.play-button > span { font-size: 16px; line-height: 1.65; }
.play-button small { display: block; font-size: 11px; font-weight: 400; margin-top: 4px; }
.play-icon { width: 25px; height: 28px; flex-shrink: 0; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 500; }

/* True alpha transparency follows the board's own irregular outline. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 32px 40px; }
.hero-copy { text-align: right; }
.highlight { position: relative; display: inline-block; max-width: 100%; isolation: isolate; }
.highlight::before { content: ''; position: absolute; inset: 48% -3px 6%; background: var(--yellow); clip-path: polygon(0 8%, 32% 3%, 65% 9%, 100% 0, 99% 90%, 75% 95%, 40% 88%, 0 100%); z-index: -1; }
.hero-description { font-size: 16px; line-height: 1.95; color: var(--muted); margin-top: 18px; max-width: 470px; }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 24px; }
.hero-actions .button { width: 100%; }
.hero-footnote { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.team-dots { display: flex; direction: ltr; }
.team-dots i { display: block; width: 19px; height: 19px; border: 2px solid var(--paper); border-radius: 50%; background: var(--red); }
.team-dots i + i { margin-left: -6px; background: var(--blue); }
.hero-art { width: min(100%, 580px); margin-inline: auto; }
.hero-art img { width: 100%; height: auto; }
.hero-art figcaption { color: var(--muted); font-size: 12px; margin-top: 10px; text-align: center; }

.team-strip { border-block: 1px solid var(--line); background: white; }
.team-strip-inner { display: grid; gap: 12px; padding-block: 20px; font-size: 14px; }
.team-strip-inner > span { display: flex; align-items: center; justify-content: center; gap: 10px; }
.team-strip-inner .strip-middle { grid-row: 1; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot.red { background: var(--red); }
.dot.blue { background: var(--blue); }
.red-team { color: #b82329; }
.blue-team { color: #2444bc; }
.section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 30px; }
.section-heading > p { font-size: 16px; line-height: 1.95; color: var(--muted); max-width: 360px; }
.desktop-break { display: none; }
.steps { display: grid; gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 10px; padding-top: 24px; border-top: 1px solid #c8c7bf; }
.step-number { display: grid; place-items: center; width: 40px; height: 43px; grid-column: 1; grid-row: 1 / 3; background: var(--yellow); font-size: 21px; line-height: 1; clip-path: polygon(10% 3%, 87% 0, 100% 84%, 5% 100%); }
.steps li:nth-child(2) .step-number { color: var(--blue); background: #e8ecff; }
.steps li:nth-child(3) .step-number { color: #b82329; background: #ffe8e7; }
.steps h3, .steps p { grid-column: 2; }
.steps h3 { font-size: 21px; }
.steps p { color: var(--muted); font-size: 16px; line-height: 1.95; }

.demo-section { background: #eeede7; padding-block: 52px; }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.demo-copy p { font-size: 16px; line-height: 1.95; color: var(--muted); margin-top: 18px; }
.demo-disclaimer { display: block; font-size: 12px; color: var(--muted); margin-top: 16px; }
.quiz-paper {
  --team-color: var(--red);
  position: relative;
  border: 12px solid transparent;
  border-image: url('assets/paper-frame.svg') 16 fill / 12px / 0 stretch;
}
.quiz-paper[data-team=blue] { --team-color: var(--blue); }
.quiz-team-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--ink); }
.quiz-team { position: relative; min-height: 62px; padding: 14px 8px 19px; font-size: 15px; font-weight: 600; color: white; }
.quiz-team-red { background: var(--red); }
.quiz-team-blue { background: var(--blue); }
.quiz-team[aria-pressed=true]::after { content: ''; position: absolute; inset: auto 16px 7px; height: 4px; background: var(--yellow); }
.quiz-team:focus-visible { outline-color: var(--yellow); outline-offset: -6px; }
.quiz-sheet { background: white; padding: 24px 20px; border-top: 4px solid var(--ink); }
.quiz-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.quiz-count { color: var(--muted); }
.letter-options { display: flex; justify-content: center; gap: 16px; margin-top: 22px; }
.letter-option { position: relative; width: 64px; height: 68px; font-size: 31px; font-weight: 600; background: var(--ink); isolation: isolate; clip-path: polygon(23% 2%, 75% 0, 99% 26%, 96% 75%, 72% 100%, 22% 97%, 0 73%, 3% 25%); }
.letter-option::before { content: ''; position: absolute; inset: 2px; background: var(--paper); clip-path: inherit; z-index: -1; }
.letter-option[aria-pressed=true]::before { background: var(--yellow); }
.letter-option.is-won { color: white; }
.letter-option.is-won::before { background: var(--team-color); }
.letter-option:focus-visible { outline: 0; background: var(--blue); }
.quiz-content { text-align: center; margin-top: 22px; }
.quiz-content h3 { font-size: 20px; line-height: 1.8; }
.quiz-answers { display: grid; gap: 9px; margin-top: 20px; }
.quiz-answers:empty { display: none; }
.answer-button { min-height: 48px; padding: 11px 14px; font-size: 16px; background: var(--yellow); border: 2px solid var(--ink); }
.answer-button.correct { background: var(--team-color); border-color: var(--ink); color: white; font-weight: 600; }
.answer-button.wrong { background: white; border-style: dashed; color: var(--muted); }
.quiz-feedback { margin-top: 16px; font-size: 14px; line-height: 1.9; }
.quiz-feedback:empty { display: none; }
.quiz-feedback.success { color: var(--team-color); font-weight: 500; }
.quiz-feedback.error { color: #a72228; }
.quiz-reset { display: flex; margin: 12px auto 0; background: none; font-size: 14px; padding: 4px 8px; }
.quiz-reset[hidden] { display: none; }

.screens-section { background: white; }
.gallery-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.gallery-tab { min-height: 48px; padding: 11px 8px; background: var(--paper); font-size: 14px; line-height: 1.6; }
.gallery-tab[aria-pressed=true] { background: var(--yellow); color: var(--ink); font-weight: 600; }
.screenshot-paper { background: transparent; }
.screenshot-frame {
  border: 12px solid transparent;
  border-image: url('assets/showcase-frame.svg') 16 fill / 12px / 0 stretch;
  padding: 8px;
  background: white;
}
.screenshot-paper picture { display: block; }
.screenshot-paper img { width: 100%; height: auto; }
.screenshot-paper figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.gallery-pagination { font-variant-numeric: tabular-nums; direction: ltr; white-space: nowrap; }
.faq-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.faq-section > div > p { font-size: 16px; color: var(--muted); margin-top: 14px; }
.faq-list { border-top: 1px solid #cbc9c0; }
.faq-list details { border-bottom: 1px solid #cbc9c0; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; padding-block: 21px; font-size: 16px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.plus { width: 17px; height: 17px; position: relative; flex-shrink: 0; }
.plus::before, .plus::after { content: ''; position: absolute; width: 17px; height: 1.5px; top: 8px; right: 0; background: var(--ink); }
.plus::after { transform: rotate(90deg); }
.faq-list details[open] .plus::after { transform: rotate(0); }
.faq-list details p { padding-bottom: 22px; max-width: 60ch; color: var(--muted); font-size: 16px; line-height: 1.95; }
.faq-list details a { text-decoration: underline; text-underline-offset: 4px; }
.download-section { position: relative; background: var(--ink); color: white; padding-block: 60px; }
.download-content { position: relative; text-align: center; }
.download-content h2 { font-size: clamp(40px, 10vw, 54px); }
.download-content > p { color: #c7c6bf; font-size: 16px; margin-block: 20px 28px; }
.download-content .button { color: var(--ink); width: 100%; max-width: 340px; }
.download-letter { display: none; }
.site-footer { display: flex; align-items: center; flex-direction: column; gap: 14px; padding-block: 26px max(26px, env(safe-area-inset-bottom)); }
.site-footer .brand img { width: 76px; }
.site-footer > p { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; column-gap: 24px; font-size: 14px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links > span { flex-basis: 100%; color: var(--muted); font-size: 12px; text-align: center; }

/* The policy keeps the site's paper identity in a quiet English reading layout. */
.privacy-site-header .button { padding: 10px 14px; font-size: 13px; gap: 8px; }
.privacy-site-header .icon { width: 19px; height: 19px; }
.privacy-main { max-width: 800px; padding-block: 36px 56px; }
.privacy-heading { margin-bottom: 26px; }
.privacy-heading h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.3; }
.privacy-paper {
  border: 12px solid transparent;
  border-image: url('assets/paper-frame.svg') 16 fill / 12px / 0 stretch;
}
.privacy-document {
  background: white;
  padding: 28px 22px;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.privacy-document p, .privacy-document li { color: #53534e; }
.privacy-document p { margin-bottom: 18px; }
.privacy-document h2 { font-size: 22px; line-height: 1.45; margin-block: 36px 14px; letter-spacing: -.015em; }
.privacy-document ul { padding-inline-start: 22px; margin-block: 0 22px; }
.privacy-document li + li { margin-top: 10px; }
.privacy-document a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.privacy-document hr { border: 0; border-top: 1px solid var(--line); margin-block: 32px 22px; }
.privacy-document > p:last-child { font-size: 13px; margin-bottom: 0; }
.privacy-site-footer { border-top: 1px solid var(--line); }

@media (min-width: 480px) {
  .hero-actions { flex-direction: row; align-items: center; gap: 22px; }
  .hero-actions .button { width: auto; flex-grow: 1; }
  .hero-actions .text-link { flex-shrink: 0; }
  .hero-footnote { justify-content: flex-start; margin-top: 22px; }
  .quiz-answers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .container { width: min(1240px, calc(100% - 64px)); }
  .section-space { padding-block: 76px; }
  .hero { padding-block: 46px 60px; gap: 40px; }
  .hero-copy { max-width: 580px; margin-inline: auto; width: 100%; }
  .site-header { height: 100px; }
  .brand img { width: 94px; }
  .header-download { font-size: 14px; padding-inline: 20px; }
  .hero-actions .button { flex-grow: 0; }
  .team-strip-inner { grid-template-columns: 1fr 1fr; font-size: 13px; }
  .team-strip-inner .strip-middle { grid-column: 1 / -1; }
  .gallery-controls { display: flex; gap: 12px; }
  .gallery-tab { padding-inline: 20px; }
  .screenshot-frame { padding: 14px; }
  .demo-section { padding-block: 76px; }
  .quiz-sheet { padding: 30px; }
  .quiz-content h3 { font-size: 24px; }
  .faq-section { gap: 38px; }
  .download-section { padding-block: 76px; }
  .privacy-main { padding-block: 52px 76px; }
  .privacy-heading { margin-bottom: 36px; }
  .privacy-document { padding: 42px 46px; }
  .privacy-site-header .button { font-size: 14px; padding-inline: 20px; }
}
@media (min-width: 960px) {
  h1 { font-size: clamp(50px, 5.4vw, 76px); }
  h2 { font-size: clamp(38px, 3.6vw, 49px); }
  .container { width: min(1240px, calc(100% - 96px)); }
  .section-space { padding-block: 100px; }
  .site-header { height: 124px; gap: 32px; }
  .brand img { width: 112px; }
  .menu-toggle { display: none; }
  .site-header nav { display: flex; position: static; flex-direction: row; gap: 26px; padding: 0; background: none; box-shadow: none; }
  .site-header nav a { font-size: 14px; padding: 10px 0; }
  .header-download { margin: 0; font-size: 14px; min-height: 48px; padding-inline: 22px; }
  .header-download .icon { width: 22px; height: 22px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; min-height: 650px; padding-block: 64px 80px; }
  .hero-description { font-size: 17px; margin-top: 24px; }
  .hero-actions { margin-top: 30px; gap: 24px; flex-wrap: wrap; }
  .hero-footnote { margin-top: 26px; }
  .hero-art figcaption { margin-top: 16px; font-size: 13px; }
  .team-strip-inner { display: flex; justify-content: space-between; min-height: 88px; padding-block: 18px; font-size: 14px; }
  .team-strip-inner .strip-middle { order: 0; margin: 0; }
  .team-strip-inner .red-team { order: -1; }
  .section-heading { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
  .desktop-break { display: inline; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
  .steps li { display: block; padding-top: 28px; }
  .step-number { margin-bottom: 22px; width: 43px; height: 43px; }
  .steps h3 { font-size: 23px; margin-bottom: 14px; }
  .steps p { font-size: 15px; }
  .demo-section { padding-block: 90px; }
  .demo-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
  .demo-copy p { margin-top: 24px; font-size: 17px; }
  .demo-disclaimer { margin-top: 24px; }
  .quiz-sheet { padding: 30px; min-height: 340px; }
  .quiz-content { margin-top: 26px; }
  .gallery-controls { border-bottom: 1px solid var(--line); gap: 32px; margin-bottom: 30px; }
  .gallery-tab { position: relative; background: transparent; padding: 10px 0 18px; font-size: 15px; color: var(--muted); }
  .gallery-tab[aria-pressed=true] { color: var(--ink); background: transparent; }
  .gallery-tab[aria-pressed=true]::after { content: ''; position: absolute; inset: auto 0 0; height: 4px; background: var(--yellow); }
  .screenshot-frame { padding: 20px; }
  .screenshot-paper figcaption { font-size: 13px; margin-top: 22px; }
  .faq-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 80px; }
  .faq-list summary { font-size: 17px; padding-block: 24px; }
  .download-section { padding-block: 90px; clip-path: polygon(0 1%, 16% .2%, 36% 1.2%, 57% .4%, 79% 1%, 100% 0, 100% 100%, 0 100%); }
  .download-content h2 { font-size: 64px; }
  .download-letter { display: block; position: absolute; top: 20px; right: 10%; color: var(--yellow); font-size: 150px; line-height: 1.2; transform: rotate(14deg); }
  .site-footer { flex-direction: row; justify-content: space-between; min-height: 148px; gap: 24px; }
  .site-footer > p { font-size: 12px; }
  .footer-links { flex-wrap: nowrap; gap: 20px; font-size: 12px; }
  .footer-links > span { flex-basis: auto; white-space: nowrap; font-size: 11px; }
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -12px #19191980; }
  .button-primary:hover::after { background: #ffe86b; }
  .answer-button:hover:not(:disabled) { background: var(--yellow); }
  .site-header nav a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
