/* =========================================================
   ROWAD BRAND — colors from the two-ring logo. Swap here only.
   ========================================================= */
:root {
  --violet: #4A3FDB;        /* left ring: buttons, links, highlights */
  --indigo: #231B63;        /* right ring: hero, header, footer backgrounds */
  --indigo-deep: #150F40;   /* darkest sections, overlays */
  --violet-soft: #ECEAFD;   /* light section backgrounds, card fills */
  --violet-hover: #3A30C2;  /* button hover */
  --white: #FFFFFF;
  --ink: #14112E;           /* body text on light backgrounds */

  /* derived — needed to pass WCAG AA */
  --violet-light: #A49DF5;  /* violet text on indigo (5.7:1). Plain violet on indigo is only 2.2:1 */
  --muted: #5B5880;         /* secondary text: 6.7:1 on white, 5.6:1 on violet-soft */
  --on-dark-muted: rgba(255, 255, 255, .72); /* secondary text on indigo: ~8:1 */
  --line: rgba(74, 63, 219, .28);            /* thin violet card border */
  --line-dark: rgba(255, 255, 255, .18);
  --danger: #B42318;        /* 6.5:1 on white */

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;

  --radius: 18px;
  --gutter: 16px;
  --max: 1120px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--white); }
html[lang="ar"] body, html[lang="ar"] .h2, html[lang="ar"] .hero__title, html[lang="ar"] .join__title { font-family: var(--font-ar); letter-spacing: 0; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: var(--violet); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
/* light theme: default violet focus ring everywhere */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--violet); color: var(--white); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; }
.muted { color: var(--muted); font-size: .9rem; }

/* ---------- buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 600; text-decoration: none; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--violet); color: var(--white); }            /* 6.9:1 */
.btn--primary:hover { background: var(--violet-hover); }
.btn--primary { box-shadow: 0 6px 18px rgba(74, 63, 219, .22); }
.btn--ghost { border-color: var(--violet); color: var(--violet); background: var(--white); }
.btn--ghost:hover { background: var(--violet-soft); }
.btn--lg { min-height: 56px; padding-inline: 32px; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn--book { background: var(--violet); color: var(--white); }
.btn--book:hover { background: var(--violet-hover); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { flex: none; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font-weight: 500; }
.chip:hover { border-color: var(--violet); }
.chip[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: var(--white); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--indigo); }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; padding-top: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--indigo); margin: 0; }
html[lang="ar"] .logo { font-family: var(--font-ar); }
.logo__img { height: 28px; width: auto; }
/* phones: nav is a second, swipeable row under the logo */
.nav { order: 3; width: 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-top: 6px; }
.nav a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:first-child { padding-inline-start: 0; }
.nav a:hover { color: var(--violet); }
.lang { margin-inline-start: auto; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--indigo); font-family: var(--font-ar); }
.lang:hover { border-color: var(--violet); color: var(--violet); }
.lang[data-to="en"] { font-family: var(--font-body); }

/* ---------- hero ---------- */
.hero { background: var(--white); color: var(--ink); padding: 48px 0 56px; position: relative; overflow: hidden; }
.hero::after { /* big two-ring outline decoration */
  content: ""; position: absolute; pointer-events: none;
  width: 760px; aspect-ratio: 922 / 690; inset-inline-end: -330px; top: 40px;
  background: url("assets/rings-outline.svg") center / contain no-repeat; opacity: .07;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); margin: 0 0 16px; }
.eyebrow--dark { color: var(--violet); }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 17vw, 8rem); line-height: .9; letter-spacing: -.04em; color: var(--indigo); margin: 0 0 16px; }
.accent { color: var(--violet); }
.hero__tagline { font-size: clamp(1.25rem, 5vw, 1.75rem); font-weight: 500; margin: 0 0 28px; max-width: 22ch; }
.facts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: baseline; }
.facts__k { flex: none; width: 56px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
html[lang="ar"] .facts__k { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.facts a { color: var(--indigo); text-decoration-color: var(--violet); text-underline-offset: 4px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; margin-bottom: 28px; }
.countdown div { background: var(--violet-soft); border: 1px solid transparent; border-radius: 14px; padding: 12px 6px; text-align: center; }
.countdown b { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--indigo); }
.countdown span { font-size: .72rem; color: var(--muted); }
.countdown__live { font-weight: 600; color: var(--violet); margin: 0 0 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn { flex: 1 1 auto; white-space: nowrap; }

/* ---------- sections: alternate white / violet-soft ---------- */
.section { padding: 64px 0; background: var(--white); }
.section--soft { background: var(--violet-soft); }
.section__head { margin-bottom: 24px; max-width: 640px; }
.section__head p { color: var(--muted); margin: 0; }
.h2 { font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 12px; color: var(--indigo); }
.lead { font-size: 1.2rem; font-weight: 500; margin: 0 0 12px; }

/* cards: violet-soft fill on white sections, white + thin violet border on soft sections */
.guest, .session, .biz, .logo-tile, .tabs { background: var(--violet-soft); border: 1px solid transparent; }
.section--soft .guest, .section--soft .session, .section--soft .biz, .section--soft .logo-tile, .section--soft .tabs,
.section--soft .chip { background: var(--white); border-color: var(--line); }

.about__grid { display: grid; gap: 16px; }
.path { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: p; }
.path li { counter-increment: p; padding: 8px 14px; border-radius: 999px; background: var(--violet-soft); font-weight: 500; font-size: .95rem; }
.path li::before { content: counter(p) " "; color: var(--violet); font-weight: 700; }
.path li:last-child { background: var(--violet); color: var(--white); }
.path li:last-child::before { color: var(--white); }
.mission { font-family: var(--font-display); font-size: 1.15rem; color: var(--indigo); border-inline-start: 4px solid var(--violet); padding-inline-start: 14px; margin: 0; }
html[lang="ar"] .mission { font-family: var(--font-ar); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 14px; }
.grid--guests { grid-template-columns: 1fr; }
.grid--sana { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 24px 0; }

.guest { border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; }
.guest__photo { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; background: var(--indigo); }
.avatar { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; color: var(--white); background: var(--indigo); box-shadow: inset 0 0 0 4px var(--violet); }
.guest__name { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 4px; line-height: 1.2; color: var(--indigo); }
html[lang="ar"] .guest__name { font-family: var(--font-ar); }
.guest__role { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.guest__topic { font-weight: 500; margin: 0 0 12px; }
.guest__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--white); color: var(--indigo); border: 1px solid var(--line); }
.tag--brand { background: var(--violet); color: var(--white); border-color: var(--violet); }

/* ---------- tabs & sessions ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border-radius: 16px; margin-bottom: 20px; }
.tab { min-height: 52px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); line-height: 1.2; padding: 6px; }
.tab b { display: block; font-size: 1rem; }
.tab small { font-size: .75rem; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--indigo); color: var(--white); }
.tab[aria-selected="true"] small { color: var(--on-dark-muted); }

.sessions { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.session { border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; }
.section--soft .session--break, .session--break { background: transparent; border: 1.5px dashed var(--line); }
.session--picked, .section--soft .session--picked { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet) inset; }
.session__time { font-family: var(--font-display); font-weight: 700; color: var(--indigo); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.session__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.session__title { font-size: 1.1rem; margin: 0; line-height: 1.3; }
.session__meta { color: var(--muted); font-size: .9rem; margin: 0; }
.session__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.seats { font-size: .85rem; color: var(--muted); }
.seats--low { color: var(--danger); font-weight: 600; }

/* ---------- venue ---------- */
.venue { display: grid; gap: 24px; }
.venue p { margin: 0 0 16px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--violet-soft); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- sana (highlighted) ---------- */
.sana { border-top: 6px solid var(--violet); }
.biz { border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.biz__logo { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: var(--white); }
.biz__logo--text { display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--violet); border: 1px solid var(--line); }
.biz__name { font-weight: 600; margin: 0; line-height: 1.25; }
.biz__cat { font-size: .8rem; color: var(--muted); margin: 0; }
.biz__ig { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--violet); text-decoration: none; }
.biz__ig:hover { text-decoration: underline; }

/* ---------- coming (darkest section) ---------- */
.section.coming { border-top: 1px solid var(--line); }
.coming .eyebrow { color: var(--violet); }
.coming .lead { max-width: 36ch; }
.mystery { margin-top: 28px; display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); border: 1.5px dashed var(--violet); background: var(--violet-soft); max-width: 560px; }
.mystery__q { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--violet); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; }
.mystery p { margin: 0; }

/* ---------- sponsors ---------- */
.tier { margin-bottom: 32px; }
.tier__title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
html[lang="ar"] .tier__title { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tier--strategic .logos { grid-template-columns: 1fr; }
.logo-tile { display: grid; place-items: center; min-height: 88px; padding: 16px; border-radius: 14px; text-decoration: none; text-align: center; font-weight: 600; color: var(--muted); transition: color .2s, border-color .2s; }
.logo-tile img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.tier--strategic .logo-tile { min-height: 120px; }
.logo-tile:hover, .logo-tile:focus-visible { color: var(--violet); border-color: var(--violet); }
.logo-tile:hover img, .logo-tile:focus-visible img { filter: none; opacity: 1; }

/* ---------- join ---------- */
.join { text-align: center; padding: 80px 0; }
.join__inner { display: grid; justify-items: center; gap: 12px; }
.join__mark { width: 88px; height: auto; margin-bottom: 8px; }
.join__title { font-family: var(--font-display); font-size: clamp(2.2rem, 10vw, 4.4rem); line-height: 1; letter-spacing: -.03em; margin: 0; max-width: 14ch; color: var(--indigo); }
.join .lead { max-width: 40ch; margin-bottom: 16px; }

/* ---------- footer ---------- */
.footer { background: var(--white); color: var(--muted); border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer__inner { display: grid; gap: 24px; }
.footer .logo { margin-bottom: 10px; }
.footer .logo__img { height: 34px; }
.footer p { margin: 0 0 6px; }
.insta { color: var(--violet); font-weight: 600; font-size: 1.05rem; text-decoration-color: var(--violet); text-underline-offset: 4px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--indigo-deep); color: var(--white); padding: 12px 18px; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   LARGER SCREENS
   ========================================================= */
@media (min-width: 640px) {
  .grid--guests { grid-template-columns: repeat(2, 1fr); }
  .grid--sana { grid-template-columns: repeat(3, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .tier--strategic .logos { grid-template-columns: repeat(2, 1fr); }
  .session { grid-template-columns: 120px 1fr; column-gap: 20px; }
  .session > * { grid-column: 2; }
  .session > .session__time { grid-column: 1; grid-row: 1 / span 4; }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  html { scroll-padding-top: 72px; }
  .topbar__inner { flex-wrap: nowrap; height: 60px; padding-top: 0; }
  .nav { order: 0; width: auto; gap: 24px; margin: 0 0 0 0; margin-inline-start: auto; overflow: visible; }
  .nav a { padding: 0; min-height: 0; }
  .lang { margin-inline-start: 0; }
  .hero { padding: 96px 0 104px; }
  .hero::after { width: 1100px; inset-inline-end: -300px; top: -40px; }
  .section { padding: 96px 0; }
  .about__grid { grid-template-columns: 1fr 1.4fr; gap: 48px; }
  .grid--guests { grid-template-columns: repeat(3, 1fr); }
  .grid--sana { grid-template-columns: repeat(4, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .tier--strategic .logos { grid-template-columns: repeat(3, 1fr); }
  .venue { grid-template-columns: 1fr 1.5fr; align-items: center; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr auto; }
}
