/* Seed page styles, from SPEED-DO_identities/Website/SPEED-DO_Website_Design_v1.0.html.
   Tokens keep their SPD-BRD-001 names (page 20). Logical properties (inline-start/end)
   so one sheet serves LTR and RTL. */
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-var.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 400; font-display: swap; src: url(/fonts/plex-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 500; font-display: swap; src: url(/fonts/plex-arabic-500.woff2) format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 600; font-display: swap; src: url(/fonts/plex-arabic-600.woff2) format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 700; font-display: swap; src: url(/fonts/plex-arabic-700.woff2) format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  --spd-blue: #2F6FDB; --spd-blue-50: #EAF1FD; --spd-blue-200: #AEC8F6; --spd-blue-700: #2559B3; --spd-blue-800: #1E4689;
  --spd-blue-light: #8DB3F5; --spd-graphite: #1F2937; --spd-gray: #6B7280; --spd-n-300: #D1D5DB; --spd-n-400: #9CA3AF;
  --spd-n-600: #4B5563; --spd-n-700: #374151; --spd-border: #E4E7EC; --spd-canvas: #F7F8FA; --spd-ink: #111827;
  --spd-success-text: #166534; --spd-danger-text: #991B1B;
  --spd-font: Inter, 'IBM Plex Sans Arabic', 'Segoe UI', Arial, sans-serif;
  --spd-font-ar: 'IBM Plex Sans Arabic', Inter, 'Segoe UI', Arial, sans-serif;
  --sh2: 0 2px 4px rgba(17,24,39,.04), 0 12px 32px -8px rgba(17,24,39,.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--spd-font); color: var(--spd-graphite); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-family: var(--spd-font-ar); line-height: 1.75; }
a { color: var(--spd-blue-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--spd-blue); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
html[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.2; font-weight: 700; }
.ic { flex: none; display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1224px; margin: 0 auto; padding: 0 32px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--spd-border); }
.hdr-in { max-width: 1224px; margin: 0 auto; display: flex; align-items: center; gap: 32px; padding: 0 32px; height: 68px; }
.brand { display: block; flex: none; }
.brand img { display: block; height: 48px; width: auto; }  /* master art carries X; the mark is 32 px */
.nav { display: flex; gap: 4px; flex: 1; font-size: 15px; font-weight: 500; }
.nav a, .lang { color: var(--spd-n-700); padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .lang:hover { background: var(--spd-canvas); color: var(--spd-graphite); text-decoration: none; }
.lang { font-size: 14px; font-weight: 500; margin-inline-start: auto; }
.lang[lang="ar"] { font-family: var(--spd-font-ar); font-size: 15px; }
.lang[lang="en"] { font-family: var(--spd-font); }

/* hero */
.hero { padding: 88px 0 104px; background: radial-gradient(ellipse 70% 60% at 50% 0%, #F1F6FE 0%, #fff 70%); text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--spd-border); color: var(--spd-n-700); font-weight: 500; font-size: 14px; padding: 5px 14px 5px 5px; border-radius: 999px; margin: 0; }
html[dir="rtl"] .pill { padding: 5px 5px 5px 14px; }
.pill b { background: var(--spd-blue-50); color: var(--spd-blue-700); font-weight: 600; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.hero h1 { font-size: 76px; font-weight: 800; letter-spacing: -.038em; line-height: 1; margin: 28px 0 24px; }
html[lang="ar"] .hero h1 { font-size: 68px; line-height: 1.2; }
.lead { font-size: 20px; line-height: 1.55; color: var(--spd-n-600); max-width: 680px; margin: 0 auto; text-wrap: pretty; }
html[lang="ar"] .lead { line-height: 1.75; }
.soon { font-weight: 600; margin: 36px 0 14px; }

/* signup */
.signup { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.signup input[type=email] { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--spd-n-300); border-radius: 12px; font: 400 16px var(--spd-font); color: var(--spd-graphite); background: #fff; direction: ltr; }
html[dir="rtl"] .signup input[type=email]::placeholder { text-align: right; }
.signup input[type=email]:focus { outline: 2px solid var(--spd-blue); outline-offset: 2px; border-color: var(--spd-blue); }
.signup button { height: 52px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--spd-blue); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(17,24,39,.12), inset 0 1px 0 rgba(255,255,255,.12); }
.signup button:hover { background: var(--spd-blue-700); }
.signup button:active { background: var(--spd-blue-800); }
.signup button:disabled { opacity: .7; cursor: wait; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { display: none; font-weight: 600; margin: 14px 0 0; }
.msg.ok { color: var(--spd-success-text); }
.msg.err { color: var(--spd-danger-text); }
.note { font-size: 14px; color: var(--spd-gray); margin: 14px 0 0; }

/* sections */
.blk { padding: 104px 0; }
.blk.cv { background: var(--spd-canvas); border-top: 1px solid var(--spd-border); }
.kick { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--spd-blue-700); }
html[lang="ar"] .kick { font-size: 15px; letter-spacing: 0; }
.sh { max-width: 680px; margin-bottom: 52px; }
.sh h2 { font-size: 40px; font-weight: 800; letter-spacing: -.022em; margin: 12px 0 14px; }
.sh p { font-size: 18px; color: var(--spd-n-600); margin: 0; text-wrap: pretty; }

/* the core */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { width: 20px; height: 20px; color: var(--spd-blue); margin-top: 3px; }
html[lang="ar"] .ticks .ic { margin-top: 6px; }
.ticks span { color: var(--spd-n-600); }
.ticks b { color: var(--spd-graphite); font-weight: 600; }

/* modules */
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mod { background: #fff; border: 1px solid var(--spd-border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.mtile { width: 44px; height: 44px; border-radius: 12px; background: var(--spd-blue-50); color: var(--spd-blue-700); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.mod h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.mod p { margin: 0; font-size: 14.5px; color: var(--spd-n-600); line-height: 1.55; }
html[lang="ar"] .mod p { line-height: 1.75; }

/* extend */
.ext { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ext .card { background: #fff; border: 1px solid var(--spd-border); border-radius: 16px; padding: 28px; }
.ext .card.next { border: 1px dashed var(--spd-n-300); }
.ext h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.ext p { margin: 0; color: var(--spd-n-600); font-size: 15.5px; }

/* footer */
.ftr { background: var(--spd-ink); color: var(--spd-n-400); padding: 56px 0 32px; font-size: 14.5px; }
.ftr .brand img { height: 54px; }
.ftr p { margin: 18px 0 0; max-width: 420px; }
.ftr a { color: var(--spd-blue-light); }
.ftr .bot { border-top: 1px solid var(--spd-graphite); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

@media (max-width: 1000px) {
  .mods { grid-template-columns: repeat(2, 1fr); }
  .ext { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hdr-in, .wrap { padding: 0 18px; }
  .nav { display: none; }
  .hero { padding: 52px 0 64px; }
  .hero h1, html[lang="ar"] .hero h1 { font-size: 44px; margin: 22px 0 18px; }
  .lead { font-size: 17px; }
  .signup { flex-direction: column; }
  .signup input[type=email] { flex: none; }
  .blk { padding: 64px 0; }
  .sh { margin-bottom: 32px; }
  .sh h2 { font-size: 30px; }
  .ticks { grid-template-columns: 1fr; }
  .mods { grid-template-columns: 1fr; gap: 12px; }
  .mod { padding: 20px; }
}
