/* ==========================================================================
   Arab Academy — Training Center
   Layout concept: a navy instrument panel (hero, footer) framing calm paper
   sections; brass is the single accent, ruler ticks mark section edges.
   ========================================================================== */
:root {
  /* color — light */
  --paper: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #eaeef4;
  --ink: #0e1b2d;
  --muted: #566479;
  --line: #d6dde7;
  --brass: #a8741f;
  --brass-strong: #8c5f15;
  --brass-soft: #f4ead9;
  --navy: #0d2140;
  --navy-2: #13305a;
  --on-navy: #eef2f8;
  --on-navy-muted: #a9b8cd;
  --ok: #18794e;
  --ok-soft: #e3f4ec;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --focus: #2f6fdb;

  /* type */
  --font-display: 'Alexandria', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  --step-4: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem);

  /* shape & motion */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(14, 27, 45, 0.06), 0 8px 24px -12px rgba(14, 27, 45, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a111d;
    --surface: #101a2b;
    --surface-2: #16233a;
    --ink: #e7edf5;
    --muted: #9badc3;
    --line: #24344d;
    --brass: #e2ac53;
    --brass-strong: #f0c172;
    --brass-soft: #2a2416;
    --navy: #0b182c;
    --navy-2: #12233f;
    --on-navy: #eef2f8;
    --on-navy-muted: #9fb0c8;
    --ok: #4cc38a;
    --ok-soft: #10291f;
    --bad: #ff7a6b;
    --bad-soft: #321613;
    --focus: #7aa7ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a111d;
  --surface: #101a2b;
  --surface-2: #16233a;
  --ink: #e7edf5;
  --muted: #9badc3;
  --line: #24344d;
  --brass: #e2ac53;
  --brass-strong: #f0c172;
  --brass-soft: #2a2416;
  --navy: #0b182c;
  --navy-2: #12233f;
  --on-navy: #eef2f8;
  --on-navy-muted: #9fb0c8;
  --ok: #4cc38a;
  --ok-soft: #10291f;
  --bad: #ff7a6b;
  --bad-soft: #321613;
  --focus: #7aa7ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.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; }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 46px; padding: 0.6rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-brass { background: var(--brass); color: #fff; }
:root[data-theme="dark"] .btn-brass { color: #1a1205; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-brass { color: #1a1205; } }
.btn-brass:hover { background: var(--brass-strong); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-on-navy { border-color: rgba(238, 242, 248, 0.35); color: var(--on-navy); background: transparent; }
.btn-on-navy:hover { border-color: var(--brass); color: var(--brass); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; min-width: 0; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; background: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand-sub { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 8px; text-decoration: none;
  color: var(--muted); font-weight: 500; font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a[aria-current="true"] { color: var(--ink); background: var(--surface-2); }

.header-tools { display: flex; align-items: center; gap: 0.4rem; }
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-width: 42px; height: 42px; padding: 0 0.65rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  font-weight: 600; font-size: 0.9rem;
}
.tool-btn:hover { border-color: var(--brass); color: var(--brass); }
.lang-btn { font-family: var(--font-display); }
.menu-btn { display: none; }
.header-cta { min-height: 42px; padding-block: 0.4rem; }

@media (max-width: 1060px) {
  .main-nav {
    position: fixed; inset-inline: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 0.75rem max(20px, env(safe-area-inset-right, 0px)) 1rem max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 0.8rem 0.75rem; font-size: 1rem; }
  .menu-btn { display: inline-flex; }
  .header-tools { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand-sub { display: none; }
  .brand-mark { width: 38px; height: 38px; }
}

/* ---------- demo banner ---------- */
.demo-banner {
  background: var(--brass-soft); color: var(--ink); border-bottom: 1px solid var(--line);
  font-size: var(--step--1); text-align: center; padding-block: 0.45rem;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(226, 172, 83, 0.13), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-navy);
  overflow: hidden;
}
/* ruler ticks along the bottom edge */
.hero::after, .ruler-edge::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 14px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(238, 242, 248, 0.45) 0 1px, transparent 1px 50px) bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(238, 242, 248, 0.22) 0 1px, transparent 1px 10px) bottom / 100% 7px no-repeat;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: center;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 6vw, 5.5rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em; color: var(--brass);
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: 0.1em; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.hero h1 { font-size: var(--step-4); font-weight: 800; margin-block: 0.9rem 1.1rem; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero-lead { color: var(--on-navy-muted); font-size: var(--step-1); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 2.75rem;
  border-top: 1px solid rgba(238, 242, 248, 0.16);
}
.hero-stat { padding: 1.1rem 0 0; padding-inline-end: 1rem; }
.hero-stat + .hero-stat { border-inline-start: 1px solid rgba(238, 242, 248, 0.16); padding-inline-start: 1rem; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 700; color: var(--on-navy); font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: var(--step--1); color: var(--on-navy-muted); }
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}

/* track dial */
.dial-card { position: relative; justify-self: center; width: min(100%, 440px); }
.dial { display: block; width: 100%; height: auto; overflow: visible; }
.dial .seg { cursor: pointer; transition: opacity .2s var(--ease); }
.dial .seg path { fill: rgba(238, 242, 248, 0.07); stroke: var(--navy); stroke-width: 3; transition: fill .2s var(--ease); }
.dial .seg:hover path, .dial .seg:focus-visible path, .dial .seg.active path { fill: rgba(226, 172, 83, 0.9); }
.dial .seg text { fill: var(--on-navy); font-family: var(--font-body); font-size: 13px; font-weight: 600; pointer-events: none; }
.dial .seg:hover text, .dial .seg.active text, .dial .seg:focus-visible text { fill: #1a1205; }
.dial .seg:focus-visible { outline: none; }
.dial .ticks line { stroke: rgba(238, 242, 248, 0.35); stroke-width: 1; }
.dial .ticks line.major { stroke: rgba(238, 242, 248, 0.7); stroke-width: 1.5; }
.dial-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; padding: 32%; }
.dial-center b { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.dial-center span { font-size: var(--step--1); color: var(--on-navy-muted); margin-top: 0.4rem; }
.dial-hint { text-align: center; color: var(--on-navy-muted); font-size: var(--step--1); margin-top: 0.75rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .dial-card { width: min(100%, 360px); }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.section-head > div { max-width: 62ch; min-width: 0; }
.section-head h2 { font-size: var(--step-3); margin-top: 0.5rem; }
.section-head p { color: var(--muted); margin-top: 0.6rem; }

/* ---------- catalog ---------- */
.catalog-tools {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.75rem; align-items: center; margin-bottom: 1rem;
}
.field-search { position: relative; min-width: 0; }
.field-search .icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field-search input { padding-inline-start: 2.6rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.9rem; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.section-alt .input, .section-alt .select, .section-alt .textarea { background: var(--paper); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 18%, transparent); }
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; padding-inline-end: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-size: 6px 6px; background-repeat: no-repeat;
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
}
html[dir="rtl"] .select { background-position: 14px 50%, 20px 50%; }

.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.4rem; margin-bottom: 1.5rem; scrollbar-width: thin; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 40px; padding: 0.35rem 0.95rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--muted);
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .count { font-family: var(--font-mono); font-size: 0.75rem; opacity: 0.75; }

.result-line { color: var(--muted); font-size: var(--step--1); margin-bottom: 1rem; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.program-card {
  display: flex; flex-direction: column; gap: 0.75rem; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.25rem; text-align: start; cursor: pointer; color: inherit;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.program-card:hover { border-color: var(--brass); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.code-tag { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--brass); letter-spacing: 0.04em; direction: ltr; }
.track-tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.track-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--brass)); }
.program-card h3 { font-size: 1.08rem; font-weight: 600; }
.program-card p { color: var(--muted); font-size: 0.92rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; padding-top: 0.75rem; border-top: 1px dashed var(--line); font-size: 0.82rem; color: var(--muted); }
.meta-row span { display: inline-flex; align-items: center; gap: 0.35rem; }
.meta-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.badge-featured { font-size: 0.72rem; font-weight: 700; color: var(--brass); background: var(--brass-soft); padding: 0.1rem 0.55rem; border-radius: 999px; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius-lg); }
.load-more-row { display: flex; justify-content: center; margin-top: 2rem; }

/* skeleton */
.skeleton { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); height: 220px; position: relative; overflow: hidden; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--line) 60%, transparent), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; padding: 2.25rem 1.25rem 0 0; padding-inline: 0 1.25rem; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; inset-inline-start: 0;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--brass); background: var(--paper); padding-inline-end: 0.6rem;
}
.section-alt .step::before { background: var(--surface); }
.step::after { content: ''; position: absolute; top: 0.65rem; inset-inline: 2.4rem 0; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .step { padding: 0; padding-inline-start: 3rem; }
  .step::before { top: 0.15rem; }
  .step::after { display: none; }
}

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.statement { border-inline-start: 3px solid var(--brass); padding-inline-start: 1.25rem; }
.statement + .statement { margin-top: 1.75rem; }
.statement h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.statement p { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--surface); padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start; }
.feature .icon { width: 28px; height: 28px; color: var(--brass); stroke-width: 1.6; }
.feature h3 { font-size: 1.02rem; }
.feature p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
@media (max-width: 520px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ---------- forms ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field .req { color: var(--bad); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.field-error { font-size: 0.8rem; color: var(--bad); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--bad); }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.8rem; color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); min-width: 0; }
.section-alt .panel { background: var(--paper); box-shadow: none; }

/* corporate */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-list .icon { color: var(--brass); margin-top: 0.25rem; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* verify */
.verify-band { position: relative; background: var(--navy); color: var(--on-navy); }
.verify-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.verify-grid h2 { font-size: var(--step-3); margin-top: 0.5rem; }
.verify-grid > div > p { color: var(--on-navy-muted); margin-top: 0.6rem; }
.verify-form { display: flex; gap: 0.6rem; }
.verify-form .input { background: rgba(238, 242, 248, 0.06); border-color: rgba(238, 242, 248, 0.25); color: var(--on-navy); font-family: var(--font-mono); letter-spacing: 0.06em; direction: ltr; text-align: left; }
.verify-form .input::placeholder { color: rgba(238, 242, 248, 0.45); }
.verify-result { margin-top: 1rem; border-radius: var(--radius); padding: 1rem 1.15rem; border: 1px solid rgba(238, 242, 248, 0.18); background: rgba(238, 242, 248, 0.04); }
.verify-result.ok { border-color: var(--ok); }
.verify-result.bad { border-color: var(--bad); }
.verify-result .status { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.verify-result.ok .status { color: #6fe0a7; }
.verify-result.bad .status { color: #ff9b8f; }
.verify-result dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 1rem; margin: 0; font-size: 0.92rem; }
.verify-result dt { color: var(--on-navy-muted); }
.verify-result dd { margin: 0; }
.demo-hint { font-size: 0.8rem; color: var(--on-navy-muted); margin-top: 0.6rem; }
.demo-hint button { background: none; border: 0; padding: 0; color: var(--brass); cursor: pointer; text-decoration: underline; font-family: var(--font-mono); }
@media (max-width: 900px) { .verify-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .verify-form { flex-direction: column; } }

/* contact */
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-item .icon-wrap { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brass-soft); color: var(--brass); flex: none; }
.contact-item small { display: block; color: var(--muted); font-size: 0.8rem; }
.contact-item strong { font-size: 1.05rem; font-weight: 600; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.link-btn { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--brass); background: none; border: 0; padding: 0.2rem 0; cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-top: 3.5rem; border-top: 3px solid var(--brass); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.2fr); gap: 2.5rem; }
.site-footer h4 { font-family: var(--font-display); color: var(--on-navy); font-size: 0.95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer a { text-decoration: none; color: var(--on-navy-muted); }
.site-footer a:hover { color: var(--brass); }
.footer-brand p { margin-top: 1rem; max-width: 42ch; font-size: 0.92rem; }
.footer-brand .brand-name { color: var(--on-navy); }
.social { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(238, 242, 248, 0.2); color: var(--on-navy); }
.social a:hover { border-color: var(--brass); color: var(--brass); }
.subscribe { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.subscribe .input { background: rgba(238, 242, 248, 0.06); border-color: rgba(238, 242, 248, 0.22); color: var(--on-navy); min-height: 44px; }
.subscribe .btn { min-height: 44px; }
.footer-bottom { margin-top: 3rem; border-top: 1px solid rgba(238, 242, 248, 0.12); padding-block: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-size: 0.82rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } .subscribe { flex-direction: column; } }

/* ---------- program dialog ---------- */
.sheet {
  border: 0; padding: 0; margin: 0; margin-inline-start: auto;
  width: min(560px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  background: var(--surface); color: var(--ink);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
}
.sheet::backdrop { background: rgba(8, 15, 28, 0.55); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .28s var(--ease); }
html[dir="rtl"] .sheet[open] { animation-name: sheet-in-rtl; }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes sheet-in-rtl { from { transform: translateX(-40px); opacity: 0; } }
.sheet-inner { display: flex; flex-direction: column; height: 100%; }
.sheet-head {
  position: relative; background: var(--navy); color: var(--on-navy);
  padding: calc(1.5rem + env(safe-area-inset-top, 0px)) max(1.5rem, env(safe-area-inset-right, 0px)) 1.75rem max(1.5rem, env(safe-area-inset-left, 0px));
}
.sheet-head h2 { font-size: var(--step-2); margin-top: 0.6rem; padding-inline-end: 2.5rem; }
.sheet-head .code-tag { color: var(--brass); }
.sheet-close {
  position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px)); inset-inline-end: 1rem;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(238, 242, 248, 0.25);
  background: transparent; color: var(--on-navy); display: grid; place-items: center; cursor: pointer;
}
.sheet-close:hover { border-color: var(--brass); color: var(--brass); }
.sheet-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 1.25rem; }
.fact { border: 1px solid rgba(238, 242, 248, 0.16); border-radius: 10px; padding: 0.55rem 0.7rem; min-width: 0; }
.fact small { display: block; font-size: 0.72rem; color: var(--on-navy-muted); }
.fact b { font-weight: 600; font-size: 0.9rem; }
.sheet-body { overflow-y: auto; padding: 1.5rem max(1.5rem, env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) max(1.5rem, env(safe-area-inset-left, 0px)); display: grid; gap: 1.5rem; align-content: start; }
.sheet-body h3 { font-size: 0.95rem; color: var(--muted); font-weight: 600; margin-bottom: 0.5rem; }
.outcomes { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.outcomes li { display: flex; gap: 0.6rem; }
.outcomes .icon { color: var(--brass); margin-top: 0.3rem; }
.register-box { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.register-box h3 { color: var(--ink); font-size: var(--step-1); }
.mode-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mode-options label { display: inline-flex; align-items: center; gap: 0.45rem; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; cursor: pointer; font-weight: 500; font-size: 0.9rem; }
.mode-options input { accent-color: var(--brass); }
.mode-options label:has(input:checked) { border-color: var(--brass); background: var(--brass-soft); }
.success-box { text-align: center; padding: 1.5rem 0.5rem; display: grid; gap: 0.75rem; justify-items: center; }
.success-box .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.success-box .ring .icon { width: 32px; height: 32px; }
.success-box p { color: var(--muted); max-width: 40ch; }
.ref { font-family: var(--font-mono); font-size: 1.1rem; background: var(--surface-2); padding: 0.3rem 0.8rem; border-radius: 8px; direction: ltr; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 200; inset-inline: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; gap: 0.5rem; pointer-events: none; padding-inline: 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 0.6rem; max-width: 520px; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; border-radius: 12px; box-shadow: var(--shadow); font-size: 0.92rem; animation: toast-in .25s var(--ease); }
.toast.error { background: var(--bad); color: #fff; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

/* motion lives in motion.css */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- small additions ---------- */
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.program-card { position: relative; }
.program-card:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 30%, transparent); }
.card-link { all: unset; cursor: pointer; }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.section-title { font-size: var(--step-3); margin: 0.5rem 0 2rem; }
@media (max-width: 720px) {
  .catalog-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-search { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .chips { flex-wrap: wrap; overflow: visible; }
}
