/* Tint Lab · tintlab.zaplatform.com
   The app's own language: light = "Lab Glass" (cool grey, white glass cards, soft shadows),
   dark = "Night Glow" (deep navy). Accent #3D7BFF in both. Sora for display, Inter for text,
   IBM Plex Sans Arabic for Arabic, which never gets letter-spacing. */
:root {
  --bg: #F6F7F9;
  --sf: #FFFFFF;
  --sf2: #ECEEF2;
  --ink: #0B1220;
  --mu: #5B6270;
  --ln: rgba(15, 23, 42, .09);
  --ac: #3D7BFF;
  --acText: #2F6BEB;
  --onAc: #FFFFFF;
  --tint: rgba(61, 123, 255, .10);
  --elev: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .06);
  --btnGlow: 0 8px 20px rgba(61, 123, 255, .28);
  --glass: rgba(255, 255, 255, .6);
  --glassLine: rgba(20, 32, 60, .32);
  --cork: #C89361;
  --corkLine: #8E5E33;
  --frame: #0B1220;
  --l-red: #E5384F; --l-orange: #FF8A2A; --l-yellow: #FFD43B; --l-green: #1FAF6B;
  --l-aqua: #2CCFE0; --l-blue: #2F4FE0; --l-violet: #A24BF2; --l-pink: #FF7AB8;
  --display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --track: .1em;
  --r: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1026;
    --sf: rgba(255, 255, 255, .06);
    --sf2: rgba(255, 255, 255, .10);
    --ink: #E8ECFF;
    --mu: #9AA2CF;
    --ln: rgba(170, 190, 255, .16);
    --acText: #7FA6FF;
    --tint: rgba(61, 123, 255, .20);
    --elev: inset 0 0 0 1px rgba(170, 190, 255, .16);
    --btnGlow: 0 0 24px rgba(61, 123, 255, .45);
    --glass: rgba(160, 180, 255, .05);
    --glassLine: rgba(190, 205, 255, .55);
    --corkLine: #F0C690;
    --frame: #2A3366;
  }
  body { background: radial-gradient(120% 60% at 50% 0%, #1C2456 0%, #0B1026 60%) no-repeat, #0B1026; }
}
:lang(ar) {
  --display: "IBM Plex Sans Arabic", "Sora", system-ui, sans-serif;
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --track: 0;
}

*, *::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(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  overflow-x: hidden;
}
:lang(ar) body, body:lang(ar) { line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.num { direction: ltr; unicode-bidi: isolate; }
.skip { position: absolute; top: 8px; inset-inline-start: 16px; background: var(--sf); padding: 8px 12px; border-radius: 8px; z-index: 10;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; overflow: visible; }

/* ---- nav ---- */
.nav { display: flex; align-items: center; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Sora", var(--font); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: var(--elev); }
.brand .dot { color: var(--ac); }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; }
[dir="rtl"] .nav ul { margin: 0 auto 0 0; }
.nav ul a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; text-decoration: none; color: var(--mu); font-weight: 500; }
.nav ul a:hover { color: var(--ink); }
.nav .lang { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 14px; background: var(--sf); box-shadow: var(--elev); border-radius: 12px; text-decoration: none; font-weight: 500; }
.nav .lang:hover { color: var(--acText); }
@media (max-width: 640px) { .nav ul { display: none; } .nav .lang { margin-inline-start: auto; } }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(24px, 6vw, 72px) clamp(40px, 7vw, 96px); }
.hero .ic { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--elev); }
.label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); color: var(--acText); margin: 0 0 10px; }
:lang(ar) .label, .label:lang(ar) { text-transform: none; letter-spacing: 0; font-size: .95rem; }
h1 { font-family: var(--display); font-size: clamp(2.8rem, 7.5vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; margin: 22px 0 14px; font-weight: 700; }
:lang(ar) h1 { letter-spacing: 0; line-height: 1.25; }
h1 .dot { color: var(--ac); }
.h1-sub { display: block; font-family: var(--font); font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.35; font-weight: 500; letter-spacing: 0; color: var(--mu); margin-top: 12px; }
.pitch { font-family: var(--display); font-size: clamp(1.35rem, 2.8vw, 1.8rem); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; margin: 0 0 14px; max-width: 24ch; }
:lang(ar) .pitch { letter-spacing: 0; line-height: 1.5; }
.pitch em { font-style: normal; color: var(--acText); }
.lede { color: var(--mu); max-width: 44ch; margin: 0 0 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px;
  background: var(--ac); color: var(--onAc); border-radius: 14px; text-decoration: none; box-shadow: var(--btnGlow);
}
[dir="rtl"] .store { padding: 8px 16px 8px 20px; }
.store:hover { filter: brightness(1.06); }
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store small { display: block; font-size: .74rem; line-height: 1.15; opacity: .9; }
.store b { display: block; font-size: 1.1rem; line-height: 1.2; font-weight: 600; }
.store.soon { background: var(--sf); color: var(--ink); box-shadow: var(--elev); cursor: default; filter: none; }
.store.soon svg { color: var(--mu); }
.btn-quiet { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 16px; font-weight: 600; color: var(--acText); text-decoration: none; border-radius: 12px; }
.btn-quiet:hover { background: var(--tint); }
.hero-shots { position: relative; display: flex; justify-content: center; min-height: 420px; }
.phone { width: min(250px, 58vw); border-radius: 36px; overflow: hidden; border: 6px solid var(--frame); background: var(--bg); box-shadow: 0 24px 48px -24px rgba(15, 23, 42, .35); aspect-ratio: 1206 / 2622; flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero-shots .phone + .phone { margin-inline-start: -70px; margin-top: 64px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shots { min-height: 0; }
  .phone { width: min(200px, 44vw); border-width: 5px; border-radius: 28px; }
  .hero-shots .phone + .phone { margin-inline-start: -40px; margin-top: 40px; }
}

/* ---- sections ---- */
.sec { padding-block: clamp(48px, 8vw, 96px); border-top: 1px solid var(--ln); }
h2 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 700; }
:lang(ar) h2 { letter-spacing: 0; line-height: 1.4; }
h3 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 6px; font-weight: 600; letter-spacing: -.01em; }
:lang(ar) h3 { letter-spacing: 0; }
.intro { color: var(--mu); max-width: 56ch; margin: 0 0 36px; }

/* how it plays */
.what { max-width: 72ch; margin-bottom: clamp(36px, 6vw, 64px); }
.answer { font-size: 1.08rem; margin: 0; }
.how { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.rack { background: var(--sf); border-radius: 24px; box-shadow: var(--elev); padding: 28px 20px 20px; margin: 0; }
.rack svg { width: 100%; height: auto; display: block; direction: ltr; }
.rack .glass-bg { fill: var(--glass); }
.rack .glass { fill: none; stroke: var(--glassLine); stroke-width: 1.3; }
.rack .rim { fill: var(--sf); stroke: var(--glassLine); stroke-width: 1.3; }
.rack .shine { fill: none; stroke: #fff; stroke-opacity: .55; stroke-width: 3; stroke-linecap: round; }
.rack .cork { fill: var(--cork); stroke: var(--corkLine); stroke-width: 1.2; }
.rack .arrow { fill: none; stroke: var(--ac); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rack-cap { font-size: .9rem; color: var(--mu); margin: 14px 4px 0; }
.how-h { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0 0 12px; }
:lang(ar) .how-h { letter-spacing: 0; line-height: 1.45; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: r; }
.rules li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.rules li::before {
  counter-increment: r; content: counter(r); display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--tint); color: var(--acText); font-family: "Sora", var(--font); font-weight: 700;
}
.rules p { margin: 0; color: var(--mu); }
.rules h4 { font-family: var(--display); font-size: 1.1rem; margin: 0 0 4px; font-weight: 600; }
.tips-h { margin: 32px 0 12px; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--mu); }
.tips li { position: relative; padding-inline-start: 22px; }
.tips li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 9px; height: 14px; border-radius: 2px 2px 5px 5px; background: var(--ac); }
.tips b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } .rack { max-width: 420px; } }

/* features */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.feat { background: var(--sf); border-radius: var(--r); padding: 22px; box-shadow: var(--elev); }
.feat .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--acText); display: grid; place-items: center; margin-bottom: 14px; }
.feat .fi svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat p { margin: 0; color: var(--mu); font-size: .97rem; }
.shots-row { display: flex; gap: 20px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.shots-row figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.shots-row .phone { width: min(220px, 70vw); }
.shots-row figcaption { font-size: .9rem; color: var(--mu); text-align: center; max-width: 24ch; }

/* money */
.money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.money .box { background: var(--sf); border-radius: var(--r); padding: 24px; box-shadow: var(--elev); }
.money .box.pick { box-shadow: inset 0 0 0 2px var(--ac), var(--elev); }
.money .box > p { margin: 0; color: var(--mu); }
.money ul { margin: 12px 0 0; padding-inline-start: 1.2em; color: var(--mu); }
.money li + li { margin-top: 6px; }
.money .tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--acText); background: var(--tint); border-radius: 8px; padding: 2px 8px; margin-bottom: 10px; }
.money-note { color: var(--mu); font-size: .92rem; margin: 18px 0 0; max-width: 70ch; }
@media (max-width: 860px) { .money { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--sf); border-radius: 14px; box-shadow: var(--elev); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; min-height: 44px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acText); font-weight: 500; font-size: 1.2rem; line-height: 1.3; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq .a { padding: 0 20px 18px; color: var(--mu); }
.faq .a p { margin: 0; }
.faq .a p + p { margin-top: 8px; }
.faq .a b { color: var(--ink); font-weight: 600; }
.contact { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.contact a.mail { font-weight: 600; font-size: 1.05rem; color: var(--acText); }

/* footer */
.foot { border-top: 1px solid var(--ln); padding-block: 28px 40px; color: var(--mu); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.foot a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .by { margin-inline-end: auto; }

/* ---- legal page ---- */
.legal { max-width: 720px; padding-block: clamp(24px, 5vw, 56px) 56px; }
.legal h1 { font-size: clamp(2.3rem, 6vw, 3.2rem); margin-top: 8px; }
.legal .eff { color: var(--mu); margin: 0 0 28px; }
.legal .summary { background: var(--sf); border-radius: var(--r); padding: 20px 22px; margin-bottom: 32px; box-shadow: var(--elev); border-inline-start: 5px solid var(--ac); }
.legal .summary p { margin: 0; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 8px; letter-spacing: 0; }
.legal ul { padding-inline-start: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--acText); }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 8px 0; }
.legal th, .legal td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--ln); }
.legal th { font-weight: 600; }
.legal .table { overflow-x: auto; }
:lang(ar) .rules li::before { content: counter(r, arabic-indic); font-family: var(--font); }
@media (max-width: 640px) {
  .shots-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 12px; gap: 14px; scrollbar-width: none; }
  .shots-row::-webkit-scrollbar { display: none; }
  .shots-row figure { scroll-snap-align: center; }
  .shots-row .phone { width: 200px; }
}
