/* Layout: floating pill nav over a light hero (copy + wall of package screens) → Asian Cup band → image-led package rails → steps → footer */
:root {
  --bg: #f5f2f9;
  --surface: #ffffff;
  --ink: #1b1224;
  --muted: #6a5f76;
  --line: #e9e2f0;
  --chip: #f1ecf6;
  --brand: #5b187b;
  --brand-hover: #4a1265;
  --brand-soft: #ece2f4;
  --gold: #f2c14e;
  --gold-ink: #1a1020;
  --pitch: #0b4a31;
  --device: #d9d8dc;
  --font-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 50; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--brand); color: #fff;
}
.btn:hover { background: var(--brand-hover); }
.btn.ghost { background: transparent; color: var(--ink); border-color: #cbbfd8; }
.btn.ghost:hover { background: var(--surface); }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header: floating pill nav */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; padding-block: 14px; }
.site-head.scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.head-row { display: flex; align-items: center; gap: 16px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--brand); }
.nav {
  display: flex; gap: 2px; margin-inline: auto; padding: 5px; border-radius: 999px;
  background: rgba(255,255,255,.88); border: 1px solid var(--line); backdrop-filter: blur(10px);
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 16px; border-radius: 999px; color: #4a3f55; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--chip); }
.nav a[aria-current="page"] { background: var(--brand); color: #fff; font-weight: 600; }
@media (max-width: 820px) {
  .head-row { flex-wrap: wrap; row-gap: 10px; }
  .head-row .btn { margin-inline-start: auto; }
  .nav { order: 3; width: 100%; margin-inline: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 40px 56px; }
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; left: -260px; top: -380px; pointer-events: none;
  background: radial-gradient(circle, rgba(155,79,208,.26), rgba(155,79,208,0) 65%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 900; line-height: 1.08; letter-spacing: -.5px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: #5e5368; margin-top: 20px; max-width: 30em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.wall { position: relative; height: 470px; perspective: 1600px; }
.screen {
  position: absolute; border-radius: 18px; overflow: hidden; background: var(--brand);
  box-shadow: 0 30px 60px rgba(70,20,100,.22); border: 1px solid rgba(255,255,255,.5);
  transform: rotateY(14deg); aspect-ratio: 16 / 9;
}
.screen img { width: 100%; height: 100%; object-fit: cover; }
.screen.s1 { width: 76%; left: 18%; top: 30px; z-index: 3; }
.screen.s2 { width: 58%; left: 0; top: 230px; z-index: 4; }
.screen.s3 { width: 55%; left: 45%; top: 270px; z-index: 2; }
.wall .tag {
  position: absolute; z-index: 6; right: 24%; top: 6px; white-space: nowrap;
  background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .wall { height: auto; aspect-ratio: 16 / 11; order: -1; }
  .screen.s1 { top: 6%; }
  .screen.s2 { top: 48%; }
  .screen.s3 { top: 54%; }
}

/* Asian Cup band */
.cup {
  position: relative; margin-top: 16px; background: var(--pitch); color: #fff; border-radius: 24px;
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 28px; align-items: center; padding: 22px 28px;
}
.cup-logo { width: 112px; border-radius: 14px; background: #fff; aspect-ratio: 16/10; object-fit: contain; }
.cup h2 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; }
.cup p { color: #cfe9dc; font-size: 16px; margin-top: 4px; }
.cup .days { display: flex; align-items: baseline; gap: 8px; }
.cup .days strong { font-family: var(--font-display); font-size: clamp(56px, 6vw, 84px); font-weight: 900; line-height: .9; }
.cup .btn { background: #fff; color: var(--pitch); }
@media (max-width: 860px) {
  .cup { grid-template-columns: 1fr auto; gap: 14px 18px; }
  .cup-logo { display: none; }
  .cup > div:first-of-type { grid-column: 1 / -1; }
  .cup .btn { justify-self: end; }
}

/* Sections */
.band { padding-block: 56px 16px; }
.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 24px; flex-wrap: wrap; }
.band-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.band-head p { color: var(--muted); font-size: 16px; }
.rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rail.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .rail, .rail.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .rail, .rail.two {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding-inline: max(20px, env(safe-area-inset-left, 0px));
    padding-bottom: 6px; scrollbar-width: none; contain: paint;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > .product { flex: 0 0 84%; scroll-snap-align: center; }
}

/* Package card */
.product { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border-radius: 22px; padding: 14px; min-width: 0; }
.tile { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--brand); border: 1px solid var(--line); }
.tile.device { background: var(--device); }
.tile .pkg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.tile.device .pkg-img { object-fit: contain; }
.tile .badge-on { position: absolute; z-index: 2; top: 12px; right: 12px; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); line-height: 1.5; }
.badge.soft { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.p-name { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; padding-inline: 4px; flex-wrap: wrap; }
.p-name h3 { font-size: 23px; font-weight: 700; }
.p-name h3 a { color: inherit; text-decoration: none; }
.p-name h3 a:hover { color: var(--brand); }
.p-name .latin { color: var(--muted); font-family: var(--font-display); font-size: 13px; letter-spacing: 1px; direction: ltr; white-space: nowrap; }
.p-desc { color: var(--muted); font-size: 15px; line-height: 1.6; padding-inline: 4px; }

.durations { display: flex; gap: 6px; flex-wrap: wrap; border: 0; padding: 0 4px; margin: 0; }
.durations legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.durations label { position: relative; }
.durations input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.durations span { display: block; padding: 8px 15px; border-radius: 10px; background: var(--chip); color: #4a3f55; font-size: 14px; font-weight: 500; }
.durations input:checked + span { background: var(--ink); color: #fff; font-weight: 600; }
.durations input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.buy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-inline: 4px; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.price { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.cur { color: var(--muted); font-size: 15px; }
.was { color: var(--muted); font-size: 15px; text-decoration: line-through; }
.unavailable { color: var(--muted); font-size: 15px; }
.note { font-size: 14px; color: var(--muted); line-height: 1.6; padding-inline: 4px; }

/* Fallback card art (shows only if the package image fails) */
.card-art {
  --tier: #5b187b; --tier-ink: #fff;
  position: absolute; inset: 0; background: var(--tier); color: var(--tier-ink);
  display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px;
}
.card-art .top, .card-art .bottom { display: flex; justify-content: space-between; font-size: 13px; opacity: .85; }
.card-art .latin { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 3vw, 30px); direction: ltr; text-align: left; }
.tier-ultimate { --tier: #2b0c3e; --tier-ink: #f1d488; }
.tier-sawa { --tier: #0e5a57; }
.tier-connect { --tier: #18233d; }
.tier-asia { --tier: #0b4a31; }
.tier-africa { --tier: #8c3712; }
.tier-device { --tier: #6b6670; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 1; color: var(--brand); }
.steps b { font-family: var(--font-display); font-size: 20px; }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Product page */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; padding-block: 20px 24px; align-items: start; }
.pdp .tile { border-radius: 22px; box-shadow: 0 30px 60px rgba(70,20,100,.16); position: sticky; top: 110px; }
.pdp .eyebrow { color: var(--muted); font-size: 15px; }
.pdp h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; margin-top: 6px; }
.pdp .desc { font-size: 18px; color: #5e5368; margin-top: 12px; }
.buy-box { margin-top: 24px; background: var(--surface); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.buy-box .price { font-size: 52px; }
.buy-box .btn { width: 100%; }
.features { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.features li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.features li::before {
  content: ""; width: 20px; height: 20px; margin-top: 5px; border-radius: 50%;
  background: var(--brand-soft) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3L9.5 3.8' fill='none' stroke='%235b187b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pdp h2 { font-size: 22px; margin-top: 30px; }
.notice-box { margin-top: 16px; padding: 14px 18px; border-radius: 14px; background: var(--brand-soft); font-size: 15px; }
@media (max-width: 880px) {
  .pdp { grid-template-columns: 1fr; gap: 20px; }
  .pdp .tile { position: relative; top: 0; }
}

/* Text pages */
.doc { max-width: 780px; padding-block: 24px 56px; }
.doc h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; }
.doc .lead { color: var(--muted); font-size: 19px; margin-top: 10px; }
.doc h2 { font-size: 22px; margin-top: 32px; margin-bottom: 8px; }
.doc ul { padding-inline-start: 22px; margin: 6px 0 0; }
.doc li + li { margin-top: 4px; }
.faq { margin-top: 22px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 16px; padding: 16px 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin-top: 10px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* Footer */
.site-foot { margin-top: 64px; background: var(--ink); color: #e9e3f0; padding-block: 44px 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot h3 { font-size: 17px; margin-bottom: 10px; color: #fff; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot a { color: #e9e3f0; text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.site-foot .muted { color: #b7abc4; }
.disclaimer { color: #b7abc4; font-size: 13px; line-height: 1.8; margin-top: 28px; padding-top: 18px; border-top: 1px solid #352a40; }
.phone { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
