/* TwentyEight Workshops
   Layout: navy ground, pale cards for what you buy, the recording player as the hero object. RTL first. */
:root {
  color-scheme: dark;
  /* brand palette */
  --navy: #05142E;
  --ink: #030A1A;
  --blue: #052EF5;
  --sky: #2E70F5;
  --pale: #E5EDFF;
  --red: #FF4F68;
  /* roles */
  --bg: var(--navy);
  --surface: #0B1E42;
  --surface-2: #10275A;
  --fg: #E5EDFF;
  --muted: #A3B3D9;
  --line: rgba(229, 237, 255, 0.12);
  --line-strong: rgba(229, 237, 255, 0.22);
  --on-pale: #05142E;
  --on-pale-muted: #3C4E78;
  --ok: #3DDC97;
  /* type */
  --ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --en: "Sora", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --fs-hero: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-label: 0.78rem;
  /* shape */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ar);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.en, .num { font-family: var(--en); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* logo */
.logo { display: block; direction: ltr; }
.logo svg { width: 100%; height: 100%; display: block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--ar); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1F42FF; }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--pale); }
.btn-dark { background: var(--navy); color: var(--pale); }
.btn-dark:hover { background: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* labels and chips */
.eyebrow { font: 600 var(--fs-label)/1.4 var(--en); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: var(--fs-label); font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.chip-open { background: rgba(5, 46, 245, .12); color: var(--blue); }
.chip-open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.chip-soon { background: rgba(255, 79, 104, .14); color: var(--red); }
.chip-quiet { background: rgba(229, 237, 255, .08); color: var(--muted); }

/* header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(5, 20, 46, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-header .logo { width: 168px; height: 37px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .98rem; }
.site-nav a:hover { color: var(--fg); }
.site-header .btn { min-height: 42px; padding: 0 18px; font-size: .95rem; }
@media (max-width: 860px) { .site-nav { display: none; } }

/* sections */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 680px; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: var(--fs-small); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .logo { width: 150px; height: 33px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* forms */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1.5px solid #C9D5F2; background: #fff; color: var(--on-pale);
  font: 500 1rem var(--ar);
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(5, 46, 245, .18); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field .hint { font-size: .85rem; color: var(--on-pale-muted); }
.field .err { font-size: .85rem; color: #D61F3C; min-height: 1.2em; }
.field input[dir="ltr"] { text-align: right; }

/* embed mode: page shown inside twenty8.sa */
.is-embed .site-header, .is-embed .site-footer, .is-embed [data-hide-in-embed] { display: none !important; }
.is-embed body, body.is-embed { background: var(--bg); }

/* utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.stack { display: grid; gap: 16px; }
