/* =========================================================
   Sporlo · Marketing site overrides
   Builds on sporlo.css / glass.css / assets.css.
   ========================================================= */

[hidden] { display: none !important; }

/* RTL nudges for the marketing flow */
html[dir="rtl"] body { font-family: "Rubik", "Tajawal", system-ui, sans-serif; }
html[dir="rtl"] .h-display { font-family: "Baumans", "Rubik", sans-serif; }
html[dir="rtl"] .eyebrow::before { margin-inline-start: 0; margin-inline-end: 10px; }

/* Hero accent line (mint pen-stroke under "Win the game.") */
.accent-line {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 12' preserveAspectRatio='none'><path d='M2 9 Q 120 1 280 7 T 598 5' stroke='%2334D399' stroke-width='6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 95%;
  background-size: 100% 12px;
  padding-bottom: 8px;
}

/* Sub-nav cta + lang toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(15,26,35,.1);
  border-radius: var(--r-pill);
  padding: 2px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--spo-ink-2);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  letter-spacing: .02em;
}
.lang-toggle button[aria-selected="true"] {
  background: var(--spo-ink);
  color: #fff;
}

/* Trust strip */
.trust-strip {
  padding: 48px 0;
  background: var(--spo-bg-2);
  border-block: 1px solid rgba(15,26,35,.05);
}
.trust-strip .row {
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.trust-strip .hair {
  width: 1px; height: 18px; background: rgba(15,26,35,.18);
}
.trust-strip .caption {
  text-align: center;
  font-size: 13px;
  color: var(--spo-ink-2);
  margin-top: 18px;
  letter-spacing: -.005em;
}

/* Audit dark stat cards */
.audit-card {
  background: #172033;
  border: 1px solid #26314A;
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.audit-card::before {
  content: "";
  position: absolute;
  inset: -40px -40px auto auto;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(52,211,153,.18), transparent 60%);
  pointer-events: none;
}
.audit-card .n {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  color: #fff;
}
.audit-card .n .small { font-size: 32px; color: #9AA3B5; }
.audit-card .l {
  font-size: 14px;
  color: #9AA3B5;
  margin-top: 14px;
  line-height: 1.45;
}

/* Pricing cards */
.price-card {
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 580px;
}
.price-card.light {
  background: var(--spo-paper);
  border: 1px solid var(--spo-line);
}
.price-card.dark {
  background: var(--spo-ink);
  color: #fff;
}
.price-card .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  white-space: nowrap;
}
.price-card .price .amount { font-size: 72px; line-height: 1; }
.price-card .price .currency { font-size: 18px; opacity: .65; }
.price-card .price .period { font-size: 14px; opacity: .65; font-family: var(--font-body); font-weight: 500; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.price-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price-card ul li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--spo-green-soft);
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6 l3 3 l5 -7' stroke='%230F6B47' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.price-card.dark ul li::before {
  background-color: rgba(52,211,153,.18);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6 l3 3 l5 -7' stroke='%2334D399' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
}

.founding-banner {
  background: linear-gradient(135deg, var(--spo-green) 0%, var(--spo-green-deep) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 36px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.founding-banner::after {
  content: "";
  position: absolute;
  inset: -60px -60px auto auto;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(52,211,153,.35), transparent 65%);
  pointer-events: none;
}
.founding-banner .strike {
  text-decoration: line-through;
  opacity: .55;
  font-family: var(--font-display);
  font-size: 32px;
}

/* Team portraits */
.team-card {
  background: var(--spo-paper);
  border: 1px solid var(--spo-line);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.team-portrait {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg,
      rgba(15,107,71,.04) 0 12px,
      rgba(15,107,71,.08) 12px 24px),
    var(--spo-green-soft);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-portrait .initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 72px;
  color: rgba(15,107,71,.35);
  letter-spacing: -.02em;
}
.team-portrait .placeholder-tag {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--spo-ink-2);
  background: rgba(255,255,255,.85);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: .06em;
}

/* Browser frame mock */
.browser-frame {
  background: var(--spo-paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  border: 1px solid var(--spo-line);
}
.browser-frame .chrome {
  background: #F4F6F4;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--spo-line);
}
.browser-frame .chrome .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.browser-frame .chrome .dot.r { background: #FF5F57; }
.browser-frame .chrome .dot.y { background: #FFBD2E; }
.browser-frame .chrome .dot.g { background: #28C941; }
.browser-frame .chrome .url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--spo-ink-2);
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
}
.browser-frame .body { padding: 36px; }

/* Ministry pillar cards */
.pillar-stack {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.pillar {
  background: #172033;
  border: 1px solid #26314A;
  border-radius: var(--r-lg);
  padding: 28px 22px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.pillar.featured {
  border-color: var(--spo-mint);
  background: linear-gradient(160deg, #172033 0%, #1B2D3F 100%);
  box-shadow: 0 0 0 1px var(--spo-mint), 0 28px 50px -28px rgba(52,211,153,.5);
}
.pillar .step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--spo-mint);
  letter-spacing: .12em;
}
.pillar .name-en {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.pillar .name-ar {
  font-family: var(--font-ar);
  font-size: 16px;
  color: #C7CCD6;
  direction: rtl;
  text-align: right;
  line-height: 1.4;
}
.pillar .body {
  font-size: 13px;
  color: #9AA3B5;
  line-height: 1.5;
  margin-top: auto;
}

/* Deep dive mock — fixtures list */
.deep-mock {
  background: #fff;
  border: 1px solid var(--spo-line);
  border-radius: var(--r-xl);
  padding: 32px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.payment-grid .pm {
  background: var(--spo-bg);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--spo-ink-2);
  letter-spacing: .06em;
}

/* Surface pill cloud */
.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-cloud .tag { height: 32px; padding: 0 14px; font-size: 13px; }

/* Hero stage */
.hero { padding-top: 120px; }
.hero .stage-wrap { width: 56%; }

/* Floating glass plate background for audit */
.audit-decoration {
  position: absolute;
  top: 60px; right: 40px;
  z-index: 0;
  pointer-events: none;
}

/* Tag .line variant on dark */
.section--dark .tag.line {
  border-color: rgba(255,255,255,.2);
  color: #C7CCD6;
}

/* Mono fact pill (Ministry section bottom) */
.fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: #C7CCD6;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}

/* Contact rows in final CTA */
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-mono);
  font-size: 13px;
  color: #C7CCD6;
}
.contact-row .k {
  color: var(--spo-mint);
  letter-spacing: .12em;
  font-size: 11px;
}
.contact-row .v { color: #fff; }

/* Mobile */
@media (max-width: 1100px) {
  .hero .stage-wrap { display: none; }
  .pillar-stack { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .container { padding: 0 24px; }
  .pillar-stack { grid-template-columns: 1fr; }
  .founding-banner { grid-template-columns: 1fr; padding: 32px; }
  .topnav .links { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .h-display { font-size: 56px; }
  .h-1 { font-size: 36px; }
  .hero { padding-top: 80px; }
  .founding-banner { padding: 24px; }
  .price-card { padding: 28px; min-height: 0; }
  .audit-card .n { font-size: 56px; }
  .audit-card .n .small { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .bob-a, .bob-b, .bob-c, .float1, .float2, .float3 { animation: none !important; }
  * { scroll-behavior: auto !important; }
}


/* =========================================================
   Sport solutions cards
   ========================================================= */
.sport-solution {
  background: var(--spo-paper);
  border: 1px solid var(--spo-line);
  border-radius: var(--r-xl);
  padding: 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.sport-solution:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }

.sport-solution.tint-mint { background: linear-gradient(160deg, #F5FBF8 0%, var(--spo-green-soft) 100%); border-color: transparent; }
.sport-solution.tint-blue { background: linear-gradient(160deg, #F2F7FC 0%, #DCEAF6 100%); border-color: transparent; }
.sport-solution.tint-warm { background: linear-gradient(160deg, #FBF6F2 0%, #F2DFD0 100%); border-color: transparent; }
.sport-solution.tint-ink  { background: linear-gradient(160deg, #1B2A38 0%, var(--spo-ink) 100%); border-color: transparent; color: #fff; }
.sport-solution.tint-ink .use { color: #C7CCD6; }
.sport-solution.tint-ink .modules { color: var(--spo-mint); border-color: rgba(255,255,255,.12); }
.sport-solution.tint-ink .name { color: #fff; }

.sport-solution .icon {
  width: 88px;
  height: 88px;
  align-self: flex-start;
  filter:
    drop-shadow(0 16px 22px rgba(30,60,46,.18))
    drop-shadow(0 4px 6px rgba(30,60,46,.08));
}
.sport-solution .name {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--spo-ink);
}
.sport-solution .use {
  font-size: 15px;
  line-height: 1.5;
  color: var(--spo-ink-2);
}
.sport-solution .modules {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(15,26,35,.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--spo-ink-2);
}

/* Solutions section ambient decoration */
.solutions-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--spo-bg) 0%, var(--spo-bg-2) 100%);
}
.solutions-section::before {
  content: "";
  position: absolute;
  inset: -120px auto auto -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(52,211,153,.12), transparent 60%);
  pointer-events: none;
}
.solutions-section::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(44,123,229,.08), transparent 60%);
  pointer-events: none;
}
.solutions-section .container { position: relative; z-index: 2; }


/* =========================================================
   Arabic font enforcement
   --------------------------------------------------------
   When dir="rtl", force Rubik (which carries the full Arabic
   set) on every Latin-first font we use elsewhere. Baumans
   has no Arabic glyphs and Manrope's Arabic coverage is thin,
   so without this override Arabic falls back to system-ui
   and renders very inconsistently.
   ========================================================= */
html[dir="rtl"] .btn,
html[dir="rtl"] .topnav a,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .tag,
html[dir="rtl"] .pill-dot,
html[dir="rtl"] .lede,
html[dir="rtl"] .h-1,
html[dir="rtl"] .h-2,
html[dir="rtl"] .h-3,
html[dir="rtl"] .kpi .label,
html[dir="rtl"] .field-label,
html[dir="rtl"] .module-tile .name,
html[dir="rtl"] .module-tile .desc,
html[dir="rtl"] .module-tile .num,
html[dir="rtl"] .audit-card .l,
html[dir="rtl"] .pillar .name-ar,
html[dir="rtl"] .pillar .body,
html[dir="rtl"] .fact-pill,
html[dir="rtl"] .contact-row,
html[dir="rtl"] .sport-solution .name,
html[dir="rtl"] .sport-solution .use {
  font-family: "Rubik", "Tajawal", system-ui, sans-serif;
}

html[dir="rtl"] .btn { font-weight: 600; }
html[dir="rtl"] .tag { font-weight: 600; }

html[dir="rtl"] .h-display {
  font-family: "Rubik", "Tajawal", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.005em;
}

/* Nav button in AR is small — give it breathing room */
html[dir="rtl"] .topnav .btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* =========================================================
   Three surfaces section
   --------------------------------------------------------
   App + website + dashboard, side by side.
   ========================================================= */
.surface-section {
  position: relative;
  overflow: hidden;
  background: var(--spo-paper);
}
.surface-section::before {
  content: "";
  position: absolute;
  inset: 100px -120px auto auto;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(52,211,153,.10), transparent 60%);
  pointer-events: none;
}
.surface-section .container { position: relative; z-index: 2; }

.surface-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: end;
}
.surface-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.surface-card .frame-wrap {
  display: flex;
  justify-content: center;
  padding: 0;
}
.surface-meta { padding: 0 4px; }
.surface-meta .kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--spo-green);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.surface-meta .name {
  font-size: 22px;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: -.01em;
}
.surface-meta .desc {
  font-size: 14px;
  color: var(--spo-ink-2);
  margin-top: 8px;
  line-height: 1.5;
  max-width: 38ch;
}
.surface-meta .tagrow {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px;
}

/* Phone frame */
.phone-frame {
  width: 240px;
  height: 480px;
  border-radius: 42px;
  background: linear-gradient(180deg, #2A3744 0%, #0F1A23 100%);
  padding: 7px;
  position: relative;
  box-shadow:
    0 30px 60px -20px rgba(15,26,35,.4),
    0 12px 24px -8px rgba(15,26,35,.2),
    inset 0 0 0 1px rgba(255,255,255,.05);
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px;
  background: #0F1A23;
  border-radius: 16px;
  z-index: 3;
}
.phone-frame .screen {
  width: 100%; height: 100%;
  border-radius: 35px;
  background: linear-gradient(180deg, #FAFCFA 0%, #E7F2EC 100%);
  overflow: hidden;
  position: relative;
  padding: 50px 14px 14px;
}
.phone-status {
  position: absolute;
  top: 18px; left: 22px; right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: -apple-system, "SF Pro Text", Manrope, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--spo-ink);
  z-index: 2;
}
.phone-status .right { display: flex; gap: 4px; align-items: center; font-size: 10px; }
.phone-status .signal {
  display: inline-block; width: 14px; height: 8px;
  background:
    linear-gradient(to top, var(--spo-ink) 30%, transparent 30%) 0 0/3px 100% no-repeat,
    linear-gradient(to top, var(--spo-ink) 55%, transparent 55%) 4px 0/3px 100% no-repeat,
    linear-gradient(to top, var(--spo-ink) 75%, transparent 75%) 8px 0/3px 100% no-repeat,
    linear-gradient(to top, var(--spo-ink) 100%, transparent 100%) 12px 0/3px 100% no-repeat;
}
.phone-status .battery {
  display: inline-block; width: 22px; height: 10px;
  border: 1px solid var(--spo-ink); border-radius: 2px;
  position: relative;
  background: linear-gradient(to right, var(--spo-ink) 75%, transparent 75%);
  background-clip: padding-box;
}
.phone-status .battery::after {
  content: ""; position: absolute; right: -3px; top: 3px;
  width: 2px; height: 4px; background: var(--spo-ink);
  border-radius: 0 1px 1px 0;
}

/* Dashboard frame */
.dashboard-frame {
  background: var(--spo-paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  border: 1px solid var(--spo-line);
}
.dashboard-frame .chrome {
  background: #F4F6F4;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--spo-line);
}
.dashboard-frame .chrome .dot { width: 10px; height: 10px; border-radius: 50%; }
.dashboard-frame .chrome .dot.r { background: #FF5F57; }
.dashboard-frame .chrome .dot.y { background: #FFBD2E; }
.dashboard-frame .chrome .dot.g { background: #28C941; }
.dashboard-frame .chrome .url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--spo-ink-2);
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
}

.dashboard-frame .body {
  background: linear-gradient(180deg, #F8FAF8 0%, #fff 100%);
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 380px;
}
.dashboard-frame .sidebar {
  background: var(--spo-ink);
  display: flex; flex-direction: column;
  align-items: center;
  padding: 16px 0; gap: 12px;
}
.dashboard-frame .sidebar .nav-dot {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,.5);
}
.dashboard-frame .sidebar .nav-dot.active {
  background: var(--spo-mint);
  color: var(--spo-ink);
}
.dashboard-frame .main { padding: 20px; }
.dashboard-frame .stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.dashboard-frame .stat {
  background: #fff;
  border: 1px solid var(--spo-line);
  border-radius: 10px;
  padding: 12px;
}
.dashboard-frame .stat .l {
  font-size: 9px; font-weight: 600;
  color: var(--spo-ink-2);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dashboard-frame .stat .n {
  font-family: var(--font-display);
  font-size: 24px; line-height: 1;
  color: var(--spo-ink);
  margin-top: 6px;
}
.dashboard-frame .stat .n.mint { color: var(--spo-green); }
.dashboard-frame .chart {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--spo-line);
  border-radius: 10px;
  padding: 14px;
}
.dashboard-frame .bars {
  display: flex; align-items: flex-end; justify-content: space-between;
  height: 80px; margin-top: 12px;
}
.dashboard-frame .bars span {
  width: 6%;
  background: linear-gradient(180deg, var(--spo-mint), var(--spo-green));
  border-radius: 3px;
  opacity: .65;
}
.dashboard-frame .bars span.tall { opacity: 1; }
.dashboard-frame .row-list {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--spo-line);
  border-radius: 10px;
}
.dashboard-frame .row-list .r {
  display: flex; justify-content: space-between;
  padding: 9px 12px;
  font-size: 11px;
  border-bottom: 1px solid var(--spo-line);
}
.dashboard-frame .row-list .r:last-child { border-bottom: 0; }
.dashboard-frame .row-list .r .nm { color: var(--spo-ink); font-weight: 600; }
.dashboard-frame .row-list .r .x { color: var(--spo-ink-2); }

@media (max-width: 1100px) {
  .surface-grid { grid-template-columns: 1fr; gap: 56px; }
  .surface-card { align-items: center; }
  .surface-meta { text-align: center; }
}
