/* FluencyGrid website: the app's "Plum & Gold" identity (docs/design/brand-identity.md), light and dark, Arabic first (RTL)
   with an English switch. Cairo and Inter are served from this site (site/fonts), so a visit makes no request to any third party. */
/* src/styles/fonts.css
   Local web fonts (no Google Fonts request). Files are in public/fonts/ and were
   fetched once from Google Fonts (fonts.gstatic.com), all licensed SIL OFL 1.1:
   Cairo (Arabic, variable 400-700), Inter (English, variable 400-700) and
   Baloo 2 (decorative only: logo/big numbers, variable 600-700).
   Only the subsets the app uses are kept (Arabic, Latin, Latin-ext); each face has a
   unicode-range, so a mixed Arabic/English line picks the right file per character. */

/* Baloo 2 latin */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/baloo2-latin.woff2") format("woff2");
  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-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cairo arabic */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

/* Cairo latin-ext */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/cairo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Cairo latin */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/cairo-latin.woff2") format("woff2");
  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-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter latin-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter latin */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  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-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Default font by language. Latin letters use Inter, Arabic letters fall through to
   Cairo (Inter has no Arabic), so mixed text works in both LTR and RTL. */
body {
  font-family: "Inter", "Cairo", sans-serif;
}
:lang(ar),
[dir="rtl"] {
  font-family: "Cairo", "Inter", sans-serif;
}

:root {
  --brand: #4a2160; --brand-d: #2e1240; --brand-ink: #4a2160; --brand-soft: #ede0f3; --on-brand: #ffffff;
  --accent: #d9a62e; --bg: #f6f3f8; --surface: #ffffff; --ink: #231229; --muted: #675a6e; --line: #e4dce9;
  --hero-a: #efe4f4; --hero-b: #f6f3f8; --shadow: 0 10px 30px rgba(74, 33, 96, .14);
  --lv1: #1b7f55; --lv2: #17808f; --lv3: #1f7a99; --lv4: #6a3484; --lv5: #b8426f; --lv6: #c7432d;
  --font: "Inter", "Cairo", "Segoe UI", system-ui, -apple-system, Tahoma, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #c9a0dc; --brand-d: #8e5ba0; --brand-ink: #d9b8ea; --brand-soft: #34204a; --on-brand: #170c1d;
    --accent: #e6b84a; --bg: #170c1d; --surface: #241530; --ink: #f4edf7; --muted: #b8a7c0;
    --line: #3b2548; --hero-a: #2a1638; --hero-b: #170c1d; --shadow: 0 10px 30px rgba(0, 0, 0, .4);
    --lv1: #4bd18f; --lv2: #3fb5cb; --lv3: #4fc3db; --lv4: #c9a0dc; --lv5: #ff9bb8; --lv6: #ff8a73;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.75; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
a { color: var(--brand-ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* language switch: every text comes twice, one per language */
html[lang="ar"] .en, html[lang="en"] .ar { display: none !important; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; margin-inline-end: auto; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand .f { color: var(--brand-ink); }
.brand .g { color: var(--accent); }
.brand .en { font-weight: 800; letter-spacing: -.025em; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--brand-ink); }
.lang { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.lang:hover { border-color: var(--brand); }
@media (max-width: 640px) { .nav { display: none; } }

/* hero */
.hero { background: linear-gradient(180deg, var(--hero-a), var(--hero-b)); padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pill { display: inline-block; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.25; margin: 16px 0; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--brand-d); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 14px; padding: 13px 24px; font: inherit; font-weight: 800; text-decoration: none; border: 0; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 0 var(--brand-d); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-soon { background: var(--ink); color: var(--bg); opacity: .92; cursor: default; }

/* phone mockup */
.phone { width: 270px; margin: 0 auto; background: #170c1d; border-radius: 38px; padding: 12px; box-shadow: 0 30px 60px rgba(74, 33, 96, .3); transform: rotate(-3deg); }
.screen { background: var(--bg); border-radius: 28px; padding: 18px 16px 20px; min-height: 420px; color: var(--ink); }
.top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .85rem; }
.streak { background: #fbe9e4; color: #c7432d; border-radius: 999px; padding: 3px 10px; }
.progress { height: 10px; background: var(--line); border-radius: 99px; margin: 14px 0 18px; overflow: hidden; }
.progress i { display: block; width: 62%; height: 100%; background: var(--brand); border-radius: 99px; }
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 18px; text-align: center; box-shadow: var(--shadow); }
.card .w { font-size: 1.7rem; font-weight: 800; direction: ltr; }
.card .ph { color: var(--muted); direction: ltr; font-size: .9rem; }
.card .m { margin-top: 10px; font-size: 1.15rem; color: var(--brand-ink); font-weight: 800; }
.opts { display: grid; gap: 8px; margin-top: 14px; }
.opt { background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 9px; text-align: center; font-weight: 700; font-size: .9rem; }
.opt.ok { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .lead { margin-inline: auto; } .cta { justify-content: center; } .phone { transform: none; } }

/* sections */
section { padding: 64px 0; }
.eyebrow { color: var(--brand-ink); font-weight: 800; font-size: .85rem; letter-spacing: .5px; }
h2.title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 6px 0 10px; line-height: 1.3; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 32px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -36px; position: relative; }
.stat { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 20px 12px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.9rem; color: var(--brand-d); line-height: 1.2; }
.stat span { color: var(--muted); font-weight: 600; font-size: .9rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 22px; transition: transform .15s, border-color .15s; }
.feature:hover { transform: translateY(-3px); border-color: var(--brand); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 4px 0; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: 10px; }
.step h3 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--muted); }
.levels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.lv { text-align: center; padding: 16px 6px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); }
.lv b { display: block; font-size: 1.3rem; }
.lv span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.lv:nth-child(1) b { color: var(--lv1); } .lv:nth-child(2) b { color: var(--lv2); } .lv:nth-child(3) b { color: var(--lv3); }
.lv:nth-child(4) b { color: var(--lv4); } .lv:nth-child(5) b { color: var(--lv5); } .lv:nth-child(6) b { color: var(--lv6); }
@media (max-width: 640px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.promise div { background: var(--brand-soft); border-radius: 18px; padding: 20px; font-weight: 700; color: var(--brand-ink); }
.promise div span { display: block; font-weight: 500; color: var(--muted); font-size: .92rem; margin-top: 4px; }
.final { text-align: center; background: linear-gradient(135deg, var(--brand), var(--brand-d)); color: var(--on-brand); border-radius: 28px; padding: 48px 20px; }
.final h2 { margin: 0 0 8px; font-size: 1.8rem; }
.final p { margin: 0 0 20px; opacity: .92; }
.final .btn-soon { background: var(--surface); color: var(--brand-ink); opacity: 1; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* text pages (privacy, delete account) */
.doc { max-width: 780px; margin: 0 auto; padding: 40px 20px 72px; }
.doc h1 { font-size: 2rem; line-height: 1.3; margin: 0 0 8px; }
.doc h2 { font-size: 1.25rem; margin: 2em 0 .4em; padding-top: .4em; color: var(--brand-ink); }
.doc ul, .doc ol { padding-inline-start: 1.4em; }
.doc li { margin: .3em 0; }
