/* OneWorld Sports, site vitrine 2026.
   No inline style anywhere in the pages: the CSP allows style-src 'self' only.
   Logical properties (inline-start / inline-end) so the Arabic page mirrors by itself. */

:root {
  --ink: #1A1614;
  --ink-2: #2A2422;
  --paper: #F4F2EE;
  --white: #FFFFFF;
  --cream: #F5F1EA;
  --track: #B8432F;
  --coral: #EE6A4C;
  --gold: #F2C14E;
  --gold-ink: #8A5A00;
  --text-muted-dark: rgba(245, 241, 234, .8);
  --text-muted-light: #5A524D;
  --text-body-light: #3E3633;
  --display: 'Chivo', 'Cairo', system-ui, sans-serif;
  --body: 'Geist', 'Cairo', system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --wrap: 1180px;
}
:root:lang(ar) { --display: 'Cairo', system-ui, sans-serif; --body: 'Cairo', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--body); font-size: 17px; line-height: 1.5; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.light :focus-visible { outline-color: var(--track); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.disp { font-family: var(--display); font-weight: 900; letter-spacing: -0.025em; line-height: .95; }
:lang(ar) .disp { letter-spacing: 0; line-height: 1.15; }
.num { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.accent { color: var(--coral); }
.glass { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.star { flex: 0 0 auto; fill: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .2s var(--ease-out), background-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn svg { flex: 0 0 auto; }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-ghost { color: var(--cream); }
.btn.is-yours { box-shadow: 0 0 0 3px var(--gold); }

/* Header */
.site-header { position: sticky; top: 14px; z-index: 30; padding: 14px 20px 0; margin-bottom: -76px; }
.nav { max-width: var(--wrap); margin: 0 auto; border-radius: 999px; padding: 8px 8px 8px 18px; padding-inline: 18px 8px; display: flex; align-items: center; gap: 20px; background: rgba(26, 22, 20, .55); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 42px; height: 29px; object-fit: contain; }
.brand span { font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--gold); }
.nav .btn { min-height: 42px; padding: 10px 18px; font-size: 15px; }

/* Language menu (native details/summary) */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; padding: 10px 12px; border-radius: 999px; min-height: 42px; }
.lang summary::-webkit-details-marker { display: none; }
.lang .chev { transition: transform .2s; }
.lang[open] .chev { transform: rotate(180deg); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); margin: 0; padding: 6px; list-style: none; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; min-width: 190px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); z-index: 40; }
.lang a { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; padding: 11px 12px; border-radius: 10px; }
.lang a:hover { background: rgba(255, 255, 255, .08); }
.lang a[aria-current="true"] { font-weight: 600; }
.lang a[aria-current="true"]::after { content: "✓"; color: var(--gold); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 132px 0 150px; background: var(--ink); }
.hero-track { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 420px; pointer-events: none; }
.hero-track .band { stroke: var(--track); }
.hero-track .lane { stroke: var(--cream); opacity: .85; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-size: clamp(50px, 7.6vw, 104px); text-transform: uppercase; }
:lang(ar) .hero h1 { text-transform: none; }
.hero-lead { margin: 0; font-size: 19px; max-width: 28em; color: var(--text-muted-dark); }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }

/* Segmented control, 4 x 2 */
.seg { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 24px; padding: 6px; max-width: 520px; --col: 0; --row: 0; }
.seg-ind { position: absolute; top: 6px; inset-inline-start: 6px; width: calc((100% - 12px) / 4); height: calc((100% - 12px) / 2); border-radius: 18px; background: var(--cream); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transform: translate(calc(var(--col) * 100%), calc(var(--row) * 100%)); transition: transform .5s var(--spring); }
[dir="rtl"] .seg-ind { transform: translate(calc(var(--col) * -100%), calc(var(--row) * 100%)); }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer; font: 600 14px var(--body); color: var(--cream); padding: 12px 6px; min-height: 46px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: color .25s; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg .bar { position: absolute; inset-inline: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(26, 22, 20, .15); overflow: hidden; opacity: 0; }
.seg button[aria-selected="true"] .bar { opacity: 1; }
.seg .bar i { display: block; height: 100%; background: var(--track); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .seg .bar i { transform-origin: right; }
.seg button[aria-selected="true"] .bar i.run { animation: fill var(--slide-ms, 5500ms) linear both; }
.is-paused .seg .bar i { animation-play-state: paused !important; }
.caption { margin: 0; font-size: 18px; font-weight: 600; max-width: 28em; min-height: 54px; }

/* Stage: phone + chips */
.stage { flex: 1 1 460px; min-width: 0; position: relative; height: 700px; perspective: 1300px; }
.tilt { position: absolute; inset: 0; display: flex; justify-content: center; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease-out); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility 0s .5s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-out); }
.slide .phone { position: absolute; inset-inline-start: 50%; top: 0; width: 340px; margin-inline-start: -170px; filter: drop-shadow(0 40px 56px rgba(0, 0, 0, .5)); }
[dir="rtl"] .slide .phone { margin-inline-start: 0; margin-inline-end: -170px; inset-inline-start: auto; inset-inline-end: 50%; }
.slide.is-active .phone { animation: screenIn .55s var(--ease-out) both; }
.chip { position: absolute; z-index: 3; border-radius: 20px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 150px; box-shadow: 0 18px 36px rgba(0, 0, 0, .25); }
.slide.is-active .chip { animation: chipIn .55s var(--ease-out) both; }
.slide.is-active .chip:nth-of-type(2) { animation-delay: .1s; }
.slide.is-active .chip:nth-of-type(3) { animation-delay: .2s; }
.chip-label { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; color: var(--text-muted-dark); }
.chip-value { font-size: 22px; }
.pos-a { inset-inline-start: 0; top: 18%; }
.pos-b { inset-inline-start: 68%; top: 30%; }
.pos-c { inset-inline-start: 62%; top: 58%; }
.pos-d { inset-inline-start: 2%; top: 62%; }

/* Light body */
.light { background: var(--paper); color: var(--ink); }
.pillars-wrap { position: relative; z-index: 2; margin-top: -110px; }
.pillars { background: var(--white); border-radius: 28px; box-shadow: 0 30px 60px rgba(26, 22, 20, .14); padding: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
.pillar { display: flex; flex-direction: column; gap: 10px; }
.pillar svg { stroke: var(--track); }
.pillar h2 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.pillar p { margin: 0; color: var(--text-muted-light); }

/* Feature rows */
.features { padding: 120px 0 40px; display: flex; flex-direction: column; gap: 140px; }
.row { display: flex; gap: 64px; align-items: center; }
.row.reverse { flex-direction: row-reverse; }
.phones { flex: 1 1 0; min-width: 0; position: relative; height: 640px; }
.phones img { position: absolute; top: 0; }
.phones .front { width: 300px; inset-inline-start: 36%; filter: drop-shadow(0 30px 44px rgba(26, 22, 20, .28)); }
.phones .back { width: 250px; top: 50px; inset-inline-start: 4%; filter: drop-shadow(0 24px 36px rgba(26, 22, 20, .2)); transform: rotate(-8deg); }
.row.reverse .phones .front { inset-inline-start: auto; inset-inline-end: 36%; }
.row.reverse .phones .back { inset-inline-start: auto; inset-inline-end: 4%; transform: rotate(8deg); }
.row-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.row-copy h2 { margin: 0; font-size: clamp(34px, 4vw, 56px); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 18px; }
.checks li { display: flex; gap: 11px; }
.checks .tick { flex: 0 0 auto; }
.checks .tick circle { fill: var(--coral); }
.checks .tick path { fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; }
.checks li.premium { color: var(--gold-ink); font-weight: 600; }
.checks li.premium .star { fill: #E0A82E; }
.quote { margin: 6px 0 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--coral); color: var(--text-muted-light); font-size: 17px; }
.quote p { margin: 0; }
.quote footer { margin-top: 6px; font-size: 14px; font-weight: 600; }

/* Premium */
.premium-sec { padding: 110px 0 60px; display: flex; flex-direction: column; gap: 32px; }
.sec-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }
.sec-head h2 { margin: 0; font-size: clamp(38px, 5vw, 68px); max-width: 11em; }
.sec-head p { margin: 0; font-size: 16px; color: var(--text-muted-light); max-width: 24em; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.plan { border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; background: var(--white); }
.plan h3 { margin: 0; font-size: 26px; display: flex; align-items: center; gap: 10px; }
.plan .note { margin: 0; font-size: 16px; color: var(--text-muted-light); }
.plan ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 9px; font-size: 16px; color: var(--text-body-light); }
.plan.dark { background: var(--ink); color: var(--cream); }
.plan.dark .note { color: rgba(245, 241, 234, .8); }
.plan.dark ul { color: var(--cream); }
.plan.outline { box-shadow: inset 0 0 0 2px var(--track); }
.plan.outline .star { fill: #E0A82E; }

/* Data */
.data-sec { padding: 40px 0 100px; }
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px; border-top: 1px solid rgba(26, 22, 20, .12); padding-top: 40px; }
.data-grid h2 { margin: 0; font-size: 38px; }
.data-grid p { margin: 0; font-size: 17px; color: var(--text-body-light); }

/* CTA */
.cta { position: relative; overflow: hidden; background: var(--ink); }
.cta-track { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 360px; pointer-events: none; }
.cta-track .band { stroke: var(--track); }
.cta-track .lane { stroke: var(--cream); opacity: .8; }
.cta-inner { position: relative; padding-block: 110px 240px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0; font-size: clamp(42px, 6vw, 86px); text-transform: uppercase; max-width: 9em; }
:lang(ar) .cta h2 { text-transform: none; }
.cta .stores { flex-direction: column; align-items: stretch; }

/* Footer */
.site-footer { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer .wrap { padding-block: 30px 40px; display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: rgba(245, 241, 234, .7); }
.site-footer .spacer { flex: 1; }
.site-footer a:hover { color: var(--gold); }

/* Legal page */
.legal { background: var(--paper); color: var(--ink); padding: 140px 0 100px; }
.legal h1 { margin: 0 0 32px; font-size: clamp(40px, 5vw, 64px); }
.legal h2 { margin: 36px 0 10px; font-size: 22px; }
.legal p { margin: 0 0 12px; max-width: 46em; color: var(--text-body-light); }

/* Motion */
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes screenIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes chipIn { from { opacity: 0; transform: translateY(12px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes lead { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(50px) rotateX(12deg) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes lanes { from { stroke-dashoffset: 2400; } to { stroke-dashoffset: 0; } }
@keyframes fromStart { from { opacity: 0; transform: translateX(-120px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes fromEnd { from { opacity: 0; transform: translateX(120px) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes backStart { from { opacity: 0; transform: translateX(-60px) rotate(-14deg); } to { opacity: 1; transform: rotate(-8deg); } }
@keyframes backEnd { from { opacity: 0; transform: translateX(60px) rotate(14deg); } to { opacity: 1; transform: rotate(8deg); } }
@keyframes up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.hero-copy > * { animation: lead .7s var(--ease-out) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.hero-copy > *:nth-child(5) { animation-delay: .24s; }
.stage { animation: rise 1.1s var(--ease-out) .1s both; }
.hero-track .lane { stroke-dasharray: 2400; animation: lanes 2.2s var(--ease-out) both; }
.hero-track .lane:nth-of-type(3) { animation-delay: .15s; }
.hero-track .lane:nth-of-type(4) { animation-delay: .3s; }

/* Images that come in on scroll, as on the former site.
   Native scroll timelines where supported; otherwise site.js adds .is-in when visible. */
@supports (animation-timeline: view()) {
  .row .front { animation: fromStart linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  .row .back { animation: backStart linear both; animation-timeline: view(); animation-range: entry 5% cover 40%; }
  .row.reverse .front { animation-name: fromEnd; }
  .row.reverse .back { animation-name: backEnd; }
  .reveal { animation: up linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  [dir="rtl"] .row .front { animation-name: fromEnd; }
  [dir="rtl"] .row .back { animation-name: backEnd; }
  [dir="rtl"] .row.reverse .front { animation-name: fromStart; }
  [dir="rtl"] .row.reverse .back { animation-name: backStart; }
}
.js-io .row .front, .js-io .row .back, .js-io .reveal { opacity: 0; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js-io .row .front { transform: translateX(-80px); }
.js-io .row.reverse .front { transform: translateX(80px); }
.js-io .row .back { transform: translateX(-40px) rotate(-12deg); }
.js-io .row.reverse .back { transform: translateX(40px) rotate(12deg); }
.js-io .reveal { transform: translateY(30px); }
.js-io .is-in .front, .js-io .is-in .reveal, .js-io .reveal.is-in { opacity: 1; transform: none; }
.js-io .is-in .back { opacity: 1; transform: rotate(-8deg); }
.js-io .row.reverse.is-in .back { transform: rotate(8deg); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .chip { display: none; }
  .stage { height: 560px; }
  .slide .phone { width: 280px; margin-inline-start: -140px; }
  [dir="rtl"] .slide .phone { margin-inline-end: -140px; }
  .row, .row.reverse { flex-direction: column; gap: 32px; }
  .phones { width: 100%; height: 520px; }
  .phones .front { width: 250px; }
  .phones .back { width: 200px; }
  .pillars { padding: 28px; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .seg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .seg button { font-size: 12.5px; padding-inline: 2px; }
  .hero { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-io .row .front, .js-io .row .back, .js-io .reveal { opacity: 1; transform: none; }
  .row .back { transform: rotate(-8deg); }
  .row.reverse .back { transform: rotate(8deg); }
}
