/* Landing and legal pages. Same colours as the app; plain CSS, no CDN. */
:root { --bg: #070b14; --text: #f4f7ff; --muted: #a3afc9; --line: #2a3552; --surface: #111a33; --blue: #2f7df6; --orange: #f2542d; --yellow: #ffd24a; }
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); line-height: 1.55;
       font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, sans-serif; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }

/* one language at a time */
html[data-ui="ar"] [data-l="en"], html[data-ui="en"] [data-l="ar"] { display: none !important; }

/* top bar */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.25rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 22%; }
.lang-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
            color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px 0 56px; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.08; font-weight: 900; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.25rem); margin: 18px 0 26px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px; border-radius: 16px;
       font-weight: 900; font-size: 1.1rem; text-decoration: none; border: 2px solid var(--line); background: var(--surface); }
.btn.primary { background: #fff; color: #0b1020; border-color: #fff; }
.free { margin-top: 12px; color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 16px; } }

/* phone mock-up: a miniature of the real scoreboard */
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 14px; direction: ltr; }
.phones .phone { width: min(240px, 44vw); }
.phones .phone:nth-child(2) { margin-top: 48px; }
.phones .mini-team .s { font-size: clamp(2.2rem, 9vw, 3.6rem); }
.phone { width: min(300px, 78vw); aspect-ratio: 9 / 18.5; margin: 0 auto; flex: 0 0 auto; border-radius: 44px; padding: 12px; background: #1a2238;
         border: 2px solid #3a4566; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 90px rgba(47,125,246,.18); }
.screen { height: 100%; border-radius: 34px; background: var(--bg); padding: 26px 8px 10px; display: flex; flex-direction: column; gap: 8px; direction: ltr; }
.mini-top { display: flex; justify-content: space-between; align-items: center; font-size: .62rem; color: var(--muted); font-weight: 800; padding: 0 4px; }
.mini-top b { background: var(--yellow); color: #0b1020; border-radius: 999px; padding: 1px 7px; }
.mini-team { --c: #888; flex: 1; border-radius: 18px; border: 3px solid color-mix(in srgb, var(--c) 45%, #0b1020);
             background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 40%, #0b1020), color-mix(in srgb, var(--c) 12%, #070b14));
             display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 8px; }
.mini-team.serving { border-color: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 55%, transparent); }
.mini-team .n { font-weight: 900; font-size: .8rem; letter-spacing: .05em; }
.mini-team .g { font-size: .55rem; color: rgba(255,255,255,.75); font-weight: 800; letter-spacing: .1em; }
.mini-team .s { font-weight: 900; font-size: 3.6rem; line-height: 1; }
.mini-team .p { width: 70%; text-align: center; background: rgba(255,255,255,.92); color: #0b1020; border-radius: 10px; font-weight: 900; font-size: .8rem; padding: 5px 0; }
.bubble { align-self: center; background: #fff; color: #0b1020; border-radius: 14px; padding: 6px 12px; font-weight: 900; font-size: .78rem; position: relative; }
.bubble::after { content: ""; position: absolute; left: 18px; bottom: -7px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; }

/* sections */
section { padding: 48px 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.card .ic { font-size: 1.8rem; }
.card h3 { font-size: 1.15rem; margin: 8px 0 6px; }
.card p { color: var(--muted); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps small { color: var(--muted); font-weight: 600; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; font-weight: 700; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
                    background: var(--yellow); color: #0b1020; font-weight: 900; margin-bottom: 10px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.final { text-align: center; }
.final p { color: var(--muted); margin: -8px 0 22px; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* legal pages */
.legal { max-width: 760px; padding: 24px 16px 60px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 10px 0 6px; }
.legal .updated { color: var(--muted); margin-bottom: 22px; }
.legal h2 { font-size: 1.25rem; margin: 26px 0 8px; }
.legal p, .legal li { color: #d6ddee; }
.legal ul { padding-inline-start: 1.3em; display: flex; flex-direction: column; gap: 6px; }

/* animated demo */
.demo { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
@media (max-width: 760px) { .demo { grid-template-columns: 1fr; gap: 20px; } }
.demo-phone { width: min(280px, 72vw); }
.demo-phone .mini-team { transition: transform .15s, box-shadow .2s, border-color .2s; }
.demo-phone .mini-team.hit { transform: scale(1.04); box-shadow: 0 0 34px color-mix(in srgb, var(--c) 80%, transparent); border-color: #fff; }
.demo-phone .bubble { min-height: 1.9em; transition: opacity .2s; }
.demo-phone .bubble:empty { opacity: 0; }
.demo-caption { font-size: clamp(1.25rem, 3.6vw, 1.8rem); font-weight: 900; min-height: 2.6em; line-height: 1.3; }
.demo-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 14px 0 20px; }
.demo-bar i { display: block; height: 100%; width: 0; background: var(--yellow); }
.demo-note { color: var(--muted); margin-top: 10px; }
.mini-top { gap: 6px; }
.mini-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mini-top b { white-space: nowrap; flex: 0 0 auto; }
.phones .mini-top { font-size: clamp(.48rem, 2.1vw, .62rem); }
@media (max-width: 760px) { .demo-phone { width: min(210px, 56vw); } .demo-side { text-align: center; } .demo-caption { min-height: 2.8em; } }
.bubble { unicode-bidi: plaintext; text-align: center; max-width: 92%; }
