/* arabicaapp.com (WEBSITE-2026-10-09). Mobile first; logical properties so
   the same sheet works right-to-left. Gold text only on navy; on ivory the
   deep gold (#8A5A00, 5.5:1) is used instead. */

@font-face { font-family: "Amiri"; font-weight: 400; font-display: swap; src: url("fonts/amiri-regular-latin.woff2") format("woff2"); unicode-range: U+0020-00FF, U+2010-205E, U+20AC, U+2192; }
@font-face { font-family: "Amiri"; font-weight: 700; font-display: swap; src: url("fonts/amiri-bold-latin.woff2") format("woff2"); unicode-range: U+0020-00FF, U+2010-205E, U+20AC, U+2192; }
@font-face { font-family: "Amiri"; font-weight: 400; font-display: swap; src: url("fonts/amiri-regular-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Amiri"; font-weight: 700; font-display: swap; src: url("fonts/amiri-bold-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  --navy-950: #071226;
  --navy-900: #0a1730;
  --navy-800: #0f2240;
  --navy-700: #183461;
  --gold: #f2b632;
  --gold-soft: #f7d27a;
  --gold-deep: #8a5a00;
  --ivory: #fbf7ee;
  --ivory-2: #f3ead6;
  --paper: #ffffff;
  --ink: #1b2333;
  --muted: #4a5468;
  --line: #e4dac4;
  --on-navy: #ffffff;
  --on-navy-muted: rgba(255, 255, 255, 0.78);
  --danger: #a3261b;
  --ok: #1f6f43;
  --radius: 18px;
  --serif: "Amiri", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--navy-900); padding: 10px 14px; border-radius: 10px; font-weight: 700; z-index: 50; }
.skip:focus { top: 12px; }

/* ── header ─────────────────────────────────────────────── */
.top { background: var(--navy-900); color: var(--on-navy); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(242, 182, 50, 0.18); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--gold); letter-spacing: 0.02em; }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--on-navy-muted); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-navy); background: rgba(255, 255, 255, 0.07); }
.nav .nav-cta a { background: var(--gold); color: var(--navy-900); }
.nav .nav-cta a:hover { background: var(--gold-soft); color: var(--navy-900); }
.menu { display: none; }
@media (max-width: 759px) {
  .nav { display: none; }
  .menu { display: block; margin-inline-start: auto; position: relative; }
  .menu summary { list-style: none; cursor: pointer; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.25); font-weight: 600; font-size: 15px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: rgba(255, 255, 255, 0.08); }
  .menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 210px; list-style: none; margin: 0; padding: 8px; background: var(--navy-800); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
  .menu a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--on-navy); font-weight: 600; }
  .menu a:hover { background: rgba(255, 255, 255, 0.08); }
}

/* ── shared section bits ────────────────────────────────── */
.section { padding-block: 64px; }
@media (min-width: 720px) { .section { padding-block: 88px; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.dark .eyebrow { color: var(--gold); }
.section h2 { font-size: clamp(30px, 6vw, 44px); }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin-top: 14px; }
.dark { background: var(--navy-900); color: var(--on-navy); }
.dark .lead { color: var(--on-navy-muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ── store buttons ──────────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.center .stores, .stores.center { justify-content: center; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; min-height: 56px; padding: 8px 18px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.35); line-height: 1.15; }
.store small { font-size: 12px; opacity: 0.85; }
.store strong { font-size: 19px; font-weight: 700; }
a.store:hover { background: #1a1a1a; border-color: var(--gold); }
.store.is-soon { background: transparent; color: var(--on-navy); border-style: dashed; cursor: default; }
.store.is-soon em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }
.light-stores .store.is-soon { color: var(--ink); border-color: var(--muted); }
.light-stores .store.is-soon em { color: var(--gold-deep); }

/* ── hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-navy); }
.hero-art { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 23, 48, 0.55) 0%, rgba(10, 23, 48, 0.82) 55%, var(--navy-900) 100%), url("img/header-skyline.webp") center 30% / cover no-repeat; }
.hero .wrap { position: relative; display: grid; gap: 40px; padding-block: 48px 56px; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding-block: 72px 88px; } }
.hero h1 { font-size: clamp(40px, 9vw, 64px); }
.hero h1 .gold { display: block; color: var(--gold); font-size: 0.72em; margin-top: 6px; }
.hero .lead { color: var(--on-navy-muted); font-size: 18px; margin-top: 18px; }
.hero .stores { margin-top: 28px; }
.hero-links { margin-top: 18px; display: flex; gap: 20px; flex-wrap: wrap; }
.hero-links a { color: var(--gold); font-weight: 600; text-underline-offset: 4px; }
.hello { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 18px; }
.hero .eyebrow { display: block; color: var(--gold); }
.hello b { font-family: var(--serif); font-size: 30px; color: var(--gold); font-weight: 700; }
.hello span { font-size: 14px; color: var(--on-navy-muted); }
.hero-phone { justify-self: center; }

/* phone frame around real screenshots */
.phone { position: relative; width: min(300px, 76vw); aspect-ratio: 1170 / 2532; padding: 10px; border-radius: 46px; background: #0b0d14; box-shadow: 0 0 0 2px #2a2f3d, 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 90px rgba(242, 182, 50, 0.16); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; }
.phone.small { width: 220px; padding: 8px; border-radius: 36px; }
.phone.small img { border-radius: 29px; }

/* ── stats strip ────────────────────────────────────────── */
.stats { position: relative; background: var(--navy-800); border-top: 1px solid rgba(242, 182, 50, 0.22); }
.stats ul { list-style: none; margin: 0 auto; padding: 22px 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; max-width: var(--wrap); }
@media (min-width: 720px) { .stats ul { grid-template-columns: repeat(4, 1fr); padding-block: 28px; } }
.stats li { text-align: center; color: var(--on-navy-muted); font-size: 14px; }
.stats b { display: block; font-family: var(--serif); font-size: 38px; line-height: 1.1; color: var(--gold); }

/* ── features ───────────────────────────────────────────── */
.cards { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 0 rgba(27, 35, 51, 0.04); }
.card h3 { font-size: 24px; margin-top: 16px; }
.card p { color: var(--muted); margin-top: 8px; }
.ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold); }
.ico svg { width: 26px; height: 26px; }

/* ── screenshots ────────────────────────────────────────── */
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px 16px 20px; margin-inline: -16px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
@media (min-width: 720px) { .shots { margin-inline: -32px; padding-inline: 32px; } }
.shots figure { margin: 0; scroll-snap-align: center; flex: 0 0 auto; display: grid; justify-items: center; gap: 14px; }
.shots figcaption { font-weight: 600; color: var(--on-navy-muted); font-size: 15px; }

/* ── levels ─────────────────────────────────────────────── */
.levels { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
@media (min-width: 1000px) { .levels { grid-template-columns: repeat(5, 1fr); } }
.level { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 22px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; }
@media (min-width: 1000px) { .level { grid-template-columns: 1fr; } }
.badge { grid-row: span 3; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold); font-family: var(--serif); font-size: 28px; font-weight: 700; border: 2px solid var(--gold); }
@media (min-width: 1000px) { .badge { grid-row: auto; margin-bottom: 8px; } }
.level .cefr { font-size: 13px; font-weight: 700; color: var(--gold-deep); letter-spacing: 0.06em; }
.level h3 { font-size: 21px; }
.level p { color: var(--muted); font-size: 15px; }
.level .count { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 6px; }

.more { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 720px) { .more { grid-template-columns: repeat(2, 1fr); } }
.more h3 { font-size: 22px; }
.more p { color: var(--muted); margin-top: 6px; }
.more > div { border-inline-start: 3px solid var(--gold); padding-inline-start: 18px; }
.more-title { font-size: 28px; margin-top: 64px; }

/* ── quote band ─────────────────────────────────────────── */
.quote { position: relative; color: var(--on-navy); text-align: center; background: linear-gradient(rgba(10, 23, 48, 0.72), rgba(10, 23, 48, 0.78)), url("img/banner-desert.webp") center / cover no-repeat; }
.quote .wrap { padding-block: 80px; }
.quote blockquote { margin: 0 auto; max-width: 820px; font-family: var(--serif); font-size: clamp(28px, 5.4vw, 46px); line-height: 1.25; }
.quote blockquote::before { content: "“"; display: block; color: var(--gold); font-size: 1.6em; line-height: 0.6; margin-bottom: 8px; }
.quote .ar { margin-top: 28px; font-family: var(--serif); font-size: clamp(26px, 5vw, 38px); color: var(--gold); line-height: 1.8; }
.quote .ar-tr { color: var(--on-navy-muted); font-size: 15px; }

/* ── final call to action ───────────────────────────────── */
.cta { background: var(--navy-950); color: var(--on-navy); overflow: hidden; }
.cta .wrap { display: grid; gap: 32px; align-items: center; padding-block: 64px; }
@media (min-width: 860px) { .cta .wrap { grid-template-columns: 1fr 280px; } }
.cta h2 { font-size: clamp(32px, 6vw, 46px); color: var(--gold); }
.cta .lead { color: var(--on-navy-muted); }
.cta .stores { margin-top: 26px; }
.cta-art { width: 100%; max-width: 280px; border-radius: 24px; justify-self: center; border: 1px solid rgba(242, 182, 50, 0.3); }

/* ── page header for inner pages ────────────────────────── */
.page-head { background: var(--navy-900) url("img/header-skyline.webp") center 25% / cover no-repeat; color: var(--on-navy); position: relative; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 23, 48, 0.78), rgba(10, 23, 48, 0.94)); }
.page-head .wrap { position: relative; padding-block: 48px 44px; }
.page-head h1 { font-size: clamp(34px, 7vw, 52px); }
.page-head .lead { color: var(--on-navy-muted); }
.page-head .eyebrow { color: var(--gold); }
.meta { margin-top: 12px; color: var(--on-navy-muted); font-size: 14px; }

/* ── legal text ─────────────────────────────────────────── */
.doc { display: grid; gap: 40px; padding-block: 48px 72px; }
@media (min-width: 1000px) { .doc { grid-template-columns: 260px 1fr; } }
.toc { align-self: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 15px; }
@media (min-width: 1000px) { .toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; } }
.toc h2 { font-size: 20px; margin-bottom: 8px; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { max-width: 760px; }
.prose section { padding-top: 8px; margin-bottom: 36px; scroll-margin-top: 84px; }
.prose h2 { font-size: 28px; margin-bottom: 14px; color: var(--navy-900); }
.prose h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; margin: 18px 0 6px; }
.prose p { margin: 0 0 14px; color: #2b3445; }
.prose ul { margin: 0 0 14px; padding-inline-start: 22px; color: #2b3445; }
.prose li { margin: 4px 0; }
.prose a { color: var(--gold-deep); font-weight: 600; text-underline-offset: 3px; }
.note { background: var(--ivory-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; font-size: 15px; color: var(--muted); margin-bottom: 28px; }

/* ── support / delete / invite ──────────────────────────── */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 720px) { .panel { padding: 32px; } }
.panel h2 { font-size: 28px; margin-bottom: 10px; }
.panel > p { color: var(--muted); }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.stack { display: grid; gap: 20px; padding-block: 40px 72px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 14px; border: 0; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--navy-900); color: #fff; }
.btn:hover { background: var(--navy-700); }
.btn.gold { background: var(--gold); color: var(--navy-900); }
.btn.gold:hover { background: var(--gold-soft); }
.btn.ghost { background: transparent; color: var(--navy-900); border: 2px solid var(--navy-900); }
.mail { font-size: 19px; word-break: break-all; }
.hint { color: var(--muted); font-size: 15px; margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

ol.steps { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
ol.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold); font-weight: 700; font-size: 15px; }

form .field { margin-top: 18px; }
form label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
form input[type="email"], form textarea { width: 100%; font: inherit; padding: 13px 14px; border-radius: 12px; border: 1.5px solid #b9ad94; background: #fff; color: var(--ink); }
form textarea { min-height: 110px; resize: vertical; }
form input:focus, form textarea:focus { outline: 3px solid rgba(242, 182, 50, 0.5); border-color: var(--gold-deep); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-weight: 400 !important; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy-900); }
.err { color: var(--danger); font-size: 14px; font-weight: 600; margin-top: 6px; }
.alert { border-radius: 14px; padding: 14px 18px; margin-top: 16px; font-weight: 600; }
.alert.bad { background: #fbe9e7; color: var(--danger); border: 1px solid #f0b8b1; }
.alert.good { background: #e6f4ec; color: var(--ok); border: 1px solid #b4dcc4; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
form .btn { margin-top: 22px; width: 100%; }
@media (min-width: 720px) { form .btn { width: auto; } }

.timeline { list-style: none; margin: 16px 0 0; padding: 0; }
.timeline li { position: relative; padding-inline-start: 28px; padding-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.25); }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 9px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; }
.timeline span { color: var(--muted); }
ul.ticks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
ul.ticks li { padding-inline-start: 26px; position: relative; color: #2b3445; }
ul.ticks li::before { content: "✕"; position: absolute; inset-inline-start: 0; color: var(--danger); font-weight: 700; }
.kept { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.kept th, .kept td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kept th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.kept td:nth-child(2) { white-space: nowrap; font-weight: 700; color: var(--gold-deep); }
@media (max-width: 600px) {
  .kept thead { display: none; }
  .kept tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .kept td { display: block; border: 0; padding: 2px 0; }
}

.invite-hero { position: relative; background: var(--navy-950); color: var(--on-navy); overflow: hidden; }
.invite-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-950) 35%, rgba(7, 18, 38, 0.6)), url("img/lesson-lantern.webp") right center / contain no-repeat; opacity: 0.9; }
[dir="rtl"] .invite-hero::before { background: linear-gradient(270deg, var(--navy-950) 35%, rgba(7, 18, 38, 0.6)), url("img/lesson-lantern.webp") left center / contain no-repeat; }
.invite-hero .wrap { position: relative; padding-block: 56px 64px; max-width: 760px; margin-inline: auto; text-align: center; }
.invite-hero h1 { font-size: clamp(38px, 8vw, 56px); color: var(--gold); }
.invite-hero .lead { color: var(--on-navy-muted); margin-inline: auto; }
.code-card { margin: 32px auto 0; max-width: 420px; background: var(--ivory); color: var(--ink); border-radius: 20px; padding: 22px; border: 2px solid var(--gold); }
.code-card small { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.code { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 12vw, 56px); letter-spacing: 0.18em; color: var(--navy-900); margin: 6px 0 12px; direction: ltr; unicode-bidi: isolate; }
.copy[hidden] { display: none; }
.invite-hero .stores { justify-content: center; margin-top: 28px; }

/* ── footer ─────────────────────────────────────────────── */
.foot { background: var(--navy-950); color: var(--on-navy-muted); font-size: 15px; }
.foot .wrap { display: grid; gap: 24px; padding-block: 44px; }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.foot .brand span { font-size: 24px; }
.foot p { margin-top: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: var(--on-navy); text-decoration: none; }
.foot a:hover { color: var(--gold); text-decoration: underline; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 18px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
