@charset "UTF-8";
/* ════════════════════════════════════════════════════════════════════════
   public.css — the public site's own layer, on top of app.css.

   Lifted out of index.php when the games pages arrived: three pages inlining
   the same 650 lines is three places to fix a spacing bug. Loaded AFTER
   app.css, because every colour here is one of its tokens.

   Cache-busting is automatic — the pages link this through
   asset_version_url(), which stamps the file's mtime. Unlike the @import pair
   at the top of app.css, there is no version number to remember to bump.
   ════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════
   Landing page — "PUBLIC WEBSITE — FINAL" layout.
   Everything here is prefixed .hp- so it cannot collide with app.css, and
   every colour comes from the HNA tokens. Three greens are in play and they
   are not interchangeable:
     --hna-color-primary       #117466  buttons, links, small text on white
     --hna-color-primary-deep  #0b5d52  full-bleed brand bands and image frames
     --hna-color-secondary     #2a9d8f  large fills only (3.36:1 — never text)
   The dark bands use --hna-color-text-primary as a surface, which is why the
   ink on them is white rather than a token.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --hp-dark:   var(--hna-color-text-primary);
  --hp-deep:   var(--hna-color-primary-deep);
  --hp-mint:   var(--hna-color-secondary-subtle);
  --hp-max:    1248px;
  --hp-header: 76px;
}

/* ── shell ─────────────────────────────────────────────────────────────── */
body { background: var(--hna-color-background); }

/* Clipped rather than pushed off-screen: a left:-9999px link is invisible in
   LTR but in RTL it grows the document scroll box by 9999px, which gave the
   whole Arabic page a horizontal scrollbar. */
.hp-skip {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 200;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  background: var(--hna-color-surface-elevated); color: var(--hna-color-primary);
  padding: .75rem 1.25rem; font-weight: 700;
}
.hp-skip:focus {
  width: auto; height: auto; overflow: visible; clip-path: none;
  border-end-end-radius: var(--ha-radius-md);
  box-shadow: var(--ha-elevation-2);
}

.hp-wrap {
  width: 100%; max-width: var(--hp-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.hp-section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.hp-section--surface { background: var(--hna-color-surface); }
.hp-section--dark    { background: var(--hp-dark); color: #fff; }
.hp-section--mint    { background: var(--hp-mint); }
.hp-section--deep    { background: var(--hp-deep); color: #fff; }

/* ── type ──────────────────────────────────────────────────────────────── */
.hp-h1 {
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--hna-color-text-primary);
  margin: 0 0 1.15rem;
}
.hp-h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.375rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--hna-color-text-primary);
  margin: 0 0 .85rem;
}
.hp-h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.375rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--hna-color-text-primary);
  margin: 0 0 .5rem;
}
.hp-lead {
  font-size: clamp(1rem, 1.35vw, 1.0625rem);
  line-height: 1.65;
  color: var(--hna-color-text-secondary);
  margin: 0 0 1.75rem;
  max-width: 40em;
}
.hp-section--dark .hp-h2,
.hp-section--dark .hp-h3,
.hp-section--deep .hp-h2 { color: #fff; }
.hp-section--dark .hp-lead,
.hp-section--deep .hp-lead { color: rgba(255,255,255,.82); }

.hp-eyebrow {
  display: block;
  font-size: .8125rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--hna-color-primary);
  margin-bottom: .75rem;
}
.hp-eyebrow--onDark { color: var(--hna-color-tertiary); }

.hp-head-center { text-align: center; max-width: 46rem; margin-inline: auto; }
.hp-head-center .hp-lead { margin-inline: auto; }

.hp-note {
  font-size: .8125rem; line-height: 1.6;
  color: var(--hna-color-text-secondary);
  margin: 0;
}
.hp-section--dark .hp-note { color: rgba(255,255,255,.72); }

/* ── buttons ───────────────────────────────────────────────────────────── */
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border-radius: var(--ha-radius-md);
  border: 1.5px solid transparent;
  font-weight: 700; font-size: .9375rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.hp-btn:hover { transform: translateY(-1px); }
.hp-btn:focus-visible { outline: 3px solid var(--hna-color-primary); outline-offset: 2px; }
.hp-btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .875rem; }

.hp-btn-primary  { background: var(--hna-color-primary); color: #fff; }
.hp-btn-primary:hover { background: var(--hna-color-primary-hover); color: #fff; }

.hp-btn-outline  { background: var(--hna-color-surface-elevated); color: var(--hna-color-text-primary); border-color: var(--hna-color-border); }
.hp-btn-outline:hover { border-color: var(--hna-color-primary); color: var(--hna-color-primary); }

.hp-btn-white    { background: #fff; color: var(--hna-color-text-primary); }
.hp-btn-white:hover { background: var(--hp-mint); color: var(--hna-color-text-primary); }

/* Primary sitting on a dark or deep surface. Same fill as anywhere else —
   white on #117466 is 5.66:1 — plus a light edge, because #117466 against
   #0b5d52 is only 1.49:1 and the fill alone would not show where the button
   ends. Secondary (#2a9d8f) is deliberately NOT used here: white on it is
   3.36:1 and would fail for button text. */
.hp-btn-onDeep   { background: var(--hna-color-primary); color: #fff; border-color: rgba(255, 255, 255, .34); }
.hp-btn-onDeep:hover { background: var(--hna-color-primary-hover); color: #fff; border-color: rgba(255, 255, 255, .55); }
.hp-section--deep .hp-btn:focus-visible,
.hp-test--dark .hp-btn:focus-visible { outline-color: #fff; }

.hp-linkarrow {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px;
  font-weight: 700; font-size: .875rem;
  color: var(--hna-color-primary); text-decoration: none;
}
.hp-linkarrow:hover { color: var(--hna-color-primary-hover); text-decoration: underline; }
.hp-linkarrow::after { content: '→'; transition: transform .18s; }
.hp-linkarrow:hover::after { transform: translateX(3px); }
[dir="rtl"] .hp-linkarrow::after { content: '←'; }
[dir="rtl"] .hp-linkarrow:hover::after { transform: translateX(-3px); }

/* ── chips ─────────────────────────────────────────────────────────────── */
.hp-chip {
  display: inline-flex; align-items: center;
  padding: .3rem .75rem;
  border-radius: var(--ha-radius-full);
  background: var(--hp-mint); color: var(--hna-color-primary-hover);
  font-size: .8125rem; font-weight: 600; line-height: 1.4;
}
.hp-chip--onDark { background: var(--hp-deep); color: #fff; }

/* ── header ────────────────────────────────────────────────────────────── */
.hp-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(249, 251, 252, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.hp-header.is-stuck { border-bottom-color: var(--hna-color-border); box-shadow: var(--ha-elevation-1); }
.hp-header-in {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--hp-header);
}
.hp-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-height: 44px; }
.hp-brand-name { display: block; font-weight: 800; font-size: 1rem; line-height: 1.2; color: var(--hna-color-text-primary); }
.hp-brand-sub  { display: block; font-weight: 600; font-size: .8125rem; line-height: 1.25; color: var(--hna-color-text-secondary); }

.hp-nav { display: flex; align-items: center; gap: .35rem; margin-inline: auto; }
.hp-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: .4rem .75rem;
  border-radius: var(--ha-radius-sm);
  font-size: .9375rem; font-weight: 600; text-decoration: none;
  color: var(--hna-color-text-secondary);
}
.hp-nav a:hover { color: var(--hna-color-primary); background: var(--hna-color-surface); }
.hp-nav a[aria-current="page"] { color: var(--hna-color-text-primary); }

.hp-header-actions { display: flex; align-items: center; gap: .5rem; }
.hp-lang {
  min-width: 44px; min-height: 44px;
  border: 1.5px solid var(--hna-color-border); border-radius: var(--ha-radius-sm);
  background: var(--hna-color-surface-elevated); color: var(--hna-color-text-primary);
  font-weight: 700; font-size: .8125rem; cursor: pointer;
}
.hp-lang:hover { border-color: var(--hna-color-primary); color: var(--hna-color-primary); }

.hp-menu {
  display: none; align-items: center; gap: .4rem;
  min-height: 44px; padding: .5rem .85rem;
  border: 1.5px solid var(--hna-color-border); border-radius: var(--ha-radius-sm);
  background: var(--hna-color-surface-elevated); color: var(--hna-color-text-primary);
  font-weight: 700; font-size: .875rem; cursor: pointer;
}

/* mobile drawer */
.hp-drawer {
  position: fixed; inset: var(--hp-header) 0 auto 0; z-index: 89;
  background: var(--hna-color-surface-elevated);
  border-bottom: 1px solid var(--hna-color-border);
  box-shadow: var(--ha-elevation-2);
  padding: .75rem clamp(1.25rem, 5vw, 3rem) 1.25rem;
}
.hp-drawer a {
  display: flex; align-items: center;
  min-height: 48px; padding: .5rem .25rem;
  border-bottom: 1px solid var(--hna-color-border-subtle);
  font-weight: 600; text-decoration: none; color: var(--hna-color-text-primary);
}
.hp-drawer a:last-child { border-bottom: 0; }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hp-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }
.hp-hero-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  align-items: center;
}
.hp-hero-chip {
  display: inline-flex; align-items: center;
  padding: .4rem .9rem; margin-bottom: 1.25rem;
  border-radius: var(--ha-radius-full);
  background: var(--hp-mint); color: var(--hna-color-primary-hover);
  font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.hp-hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hp-hero-note a { color: var(--hna-color-primary); font-weight: 700; }

.hp-hero-panel {
  position: relative;
  background: var(--hp-mint);
  border-radius: var(--ha-radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 6rem);
}
/* Placeholder until the hero photo or video exists — see the note in the
   markup. It is the logo's own motif blown up rather than a grey box, so an
   empty slot still reads as brand rather than as a missing asset. */
.hp-hero-block {
  width: 100%; aspect-ratio: 4 / 5; max-height: 380px;
  border-radius: var(--ha-radius-lg);
  overflow: hidden;
}
.hp-hero-block.hn-icon { border-radius: var(--ha-radius-lg); }
.hp-hero-block .hn-sq {
  inset: 12%;
  border-width: 3px;
  border-radius: clamp(10px, 2vw, 20px);
}
.hp-hero-block .hn-letter { font-size: clamp(4.5rem, 11vw, 8.5rem); }
.hp-hero-card {
  position: absolute; right: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(1rem, 2.5vw, 2rem);
  left: clamp(3rem, 12%, 8rem);
  background: var(--hna-color-surface-elevated);
  border-radius: var(--ha-radius-lg);
  box-shadow: var(--ha-elevation-2);
  padding: 1.1rem 1.25rem;
}
[dir="rtl"] .hp-hero-card { right: clamp(3rem, 12%, 8rem); left: clamp(.75rem, 2vw, 1.5rem); }
.hp-hero-card-title { font-size: 1.125rem; font-weight: 800; color: var(--hna-color-text-primary); }
.hp-hero-card-sub   { font-size: .8125rem; color: var(--hna-color-text-secondary); margin: .2rem 0 .7rem; }
.hp-hero-chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }

/* ── goal cards ────────────────────────────────────────────────────────── */
.hp-goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; margin-top: 2.5rem; }
.hp-goal {
  display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  text-align: start;
  background: var(--hna-color-surface-elevated);
  border: 2px solid transparent;
  border-radius: var(--ha-radius-lg);
  padding: 1.35rem 1.25rem 1.15rem;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background-color .18s;
}
.hp-goal:hover { transform: translateY(-3px); box-shadow: var(--ha-elevation-2); }
.hp-goal:focus-visible { outline: 3px solid var(--hna-color-tertiary); outline-offset: 3px; }
.hp-goal[aria-selected="true"] { background: var(--hna-color-tertiary); }
.hp-goal-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--hna-color-primary);
}
.hp-goal[aria-selected="true"] .hp-goal-label { color: var(--hna-color-warning-ink); }
.hp-goal-title { font-size: 1.0625rem; font-weight: 800; line-height: 1.35; color: var(--hna-color-text-primary); }
.hp-goal-note  { font-size: .8125rem; line-height: 1.5; color: var(--hna-color-text-secondary); margin: 0; }
.hp-goal[aria-selected="true"] .hp-goal-note { color: #4a4322; }
.hp-goal-cta { margin-top: auto; padding-top: .5rem; }
.hp-goal[aria-selected="true"] .hp-linkarrow { color: var(--hna-color-warning-ink); }

.hp-pathway {
  margin-top: 1.75rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--ha-radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.hp-pathway[hidden] { display: none; }
.hp-pathway-title { font-size: 1rem; font-weight: 800; color: #fff; margin: 0 0 .9rem; }
.hp-pathway-steps { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0 0 1.1rem; padding: 0; }
.hp-pathway-steps li { display: flex; gap: .6rem; font-size: .9375rem; line-height: 1.55; color: rgba(255,255,255,.86); }
.hp-pathway-steps .hp-num { flex: 0 0 auto; font-size: .75rem; font-weight: 700; color: var(--hna-color-tertiary); padding-top: .2rem; }
.hp-pathway .hp-linkarrow { color: var(--hna-color-tertiary); }
.hp-pathway .hp-linkarrow:hover { color: #ffe9a3; }

/* ── level discovery ───────────────────────────────────────────────────── */
.hp-level-grid {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  align-items: start;
}
.hp-callout {
  background: var(--hp-mint);
  border-radius: var(--ha-radius-lg);
  padding: 1.1rem 1.25rem;
}
.hp-callout strong { display: block; color: var(--hna-color-primary-hover); font-size: .9375rem; margin-bottom: .2rem; }
/* text-secondary is only 4.10:1 on the mint fill, so the callout body takes the
   same darker ink the mint band uses. */
.hp-callout span   { font-size: .875rem; line-height: 1.55; color: #3c5a55; }

.hp-tests { display: grid; gap: 1.15rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-test {
  display: flex; flex-direction: column; gap: .75rem;
  background: var(--hna-color-surface-elevated);
  border-radius: var(--ha-radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--ha-elevation-1);
}
.hp-test--dark { background: var(--hp-dark); box-shadow: none; }
.hp-test--dark .hp-h3 { color: #fff; }
.hp-test-facts { font-size: .875rem; font-weight: 700; color: var(--hna-color-text-primary); margin: 0; }
.hp-test--dark .hp-test-facts { color: #fff; }
.hp-test-levels { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.hp-test-foot { font-size: .8125rem; line-height: 1.5; color: var(--hna-color-text-secondary); margin: 0; }
.hp-test--dark .hp-test-foot { color: rgba(255,255,255,.75); }
.hp-test .hp-btn { align-self: flex-start; margin-top: auto; }

/* ── practice game ─────────────────────────────────────────────────────── */
.hp-game {
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  background: var(--hp-dark);
  border-radius: var(--ha-radius-xl);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 2.5rem;
}
.hp-modes { display: flex; flex-direction: column; gap: .4rem; }
.hp-modes-list { display: flex; flex-direction: column; gap: .4rem; }
.hp-modes-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--hna-color-tertiary); margin-bottom: .5rem;
}
.hp-mode {
  display: flex; align-items: center;
  min-height: 48px; padding: .6rem 1rem;
  border: 1.5px solid transparent; border-radius: var(--ha-radius-md);
  background: transparent; color: #fff;
  font-size: .9375rem; font-weight: 600; text-align: start;
  cursor: pointer;
}
.hp-mode:hover { background: rgba(255,255,255,.08); }
.hp-mode:focus-visible { outline: 3px solid var(--hna-color-tertiary); outline-offset: 2px; }
.hp-mode[aria-selected="true"] { background: var(--hp-mint); color: var(--hna-color-primary-hover); font-weight: 700; }

.hp-board {
  background: var(--hna-color-surface-elevated);
  border-radius: var(--ha-radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  min-height: 320px;
  display: flex; flex-direction: column;
}
.hp-board-progress { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hna-color-text-secondary); margin-bottom: .6rem; }
.hp-board-q { font-size: 1.1875rem; font-weight: 800; text-align: center; color: var(--hna-color-text-primary); margin: 0 0 1.1rem; }
.hp-board-ar {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 auto 1.1rem; padding: .6rem 1.1rem;
  border-radius: var(--ha-radius-md);
  background: var(--hp-mint); color: var(--hna-color-primary-hover);
  font-size: 1.3rem; font-weight: 700; line-height: 1.8;
}
.hp-speak {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; flex: 0 0 32px;
  border: 0; border-radius: 50%;
  background: var(--hna-color-primary); color: #fff; cursor: pointer;
}
.hp-opts { display: grid; gap: .65rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-opt {
  min-height: 68px; padding: .85rem 1rem;
  border: 2px solid transparent; border-radius: var(--ha-radius-md);
  background: var(--hna-color-surface); color: var(--hna-color-text-primary);
  font-size: .9375rem; font-weight: 600; line-height: 1.45; text-align: start;
  cursor: pointer;
}
.hp-opt:hover:not(:disabled) { border-color: var(--hna-color-primary); }
.hp-opt:focus-visible { outline: 3px solid var(--hna-color-primary); outline-offset: 2px; }
.hp-opt.is-picked   { background: var(--hna-color-tertiary); color: var(--hna-color-warning-ink); }
.hp-opt.is-right    { background: var(--hna-color-success-subtle); border-color: var(--hna-color-success-strong); color: var(--hna-color-success-strong); }
.hp-opt.is-wrong    { background: var(--hna-color-error-subtle); border-color: var(--hna-color-error-strong); color: var(--hna-color-error-strong); }
.hp-opt:disabled { cursor: default; }

.hp-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.1rem; }
.hp-pair {
  min-height: 52px; padding: .65rem .9rem;
  border: 2px solid var(--hna-color-border); border-radius: var(--ha-radius-md);
  background: var(--hna-color-surface-elevated); color: var(--hna-color-text-primary);
  font-size: 1rem; font-weight: 600; text-align: center; cursor: pointer;
}
.hp-pair.is-picked { border-color: var(--hna-color-primary); background: var(--hp-mint); }
.hp-pair.is-done   { border-color: var(--hna-color-success-strong); background: var(--hna-color-success-subtle); color: var(--hna-color-success-strong); cursor: default; }
.hp-pair.is-miss   { border-color: var(--hna-color-error-strong); }

.hp-build-slot {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
  min-height: 64px; padding: .75rem;
  border: 2px dashed var(--hna-color-border-strong); border-radius: var(--ha-radius-md);
  background: var(--hna-color-surface);
  margin-bottom: 1rem;
}
.hp-build-slot:empty::before { content: attr(data-empty); color: var(--hna-color-text-secondary); font-size: .875rem; }
/* The word bank disappears once every word has been placed — an empty bordered
   box under a finished sentence reads as a bug. */
.hp-build-bank { border-style: solid; }
.hp-build-bank:empty { display: none; }
.hp-word {
  min-height: 44px; padding: .45rem .9rem;
  border: 1.5px solid var(--hna-color-border); border-radius: var(--ha-radius-sm);
  background: var(--hna-color-surface-elevated); color: var(--hna-color-text-primary);
  font-size: 1.0625rem; font-weight: 600; cursor: pointer;
}
.hp-word:hover { border-color: var(--hna-color-primary); }
.hp-word--placed { background: var(--hp-mint); border-color: var(--hna-color-secondary); }

.hp-feedback {
  margin-top: auto; padding-top: 1.1rem;
  font-size: .875rem; line-height: 1.6;
  color: var(--hna-color-text-secondary);
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
}
.hp-feedback strong { font-weight: 700; }
.hp-feedback.is-right strong { color: var(--hna-color-success-strong); }
.hp-feedback.is-wrong strong { color: var(--hna-color-error-strong); }
.hp-feedback .hp-btn { margin-inline-start: auto; }

/* identity */
.hp-identity {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem; margin-top: 1.15rem;
  background: var(--hna-color-surface);
  border-radius: var(--ha-radius-xl);
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
}
.hp-idcard { border-radius: var(--ha-radius-lg); padding: 1.35rem 1.4rem; background: var(--hna-color-surface-elevated); }
.hp-idcard--mint { background: var(--hp-mint); }
.hp-idcard h3 { font-size: 1.125rem; font-weight: 800; color: var(--hna-color-text-primary); margin: 0 0 .3rem; }
.hp-idcard p  { font-size: .8125rem; line-height: 1.55; color: var(--hna-color-text-secondary); margin: 0 0 .9rem; }
.hp-idform { display: flex; flex-wrap: wrap; gap: .6rem; }
.hp-input {
  flex: 1 1 10rem; min-width: 0; min-height: 48px;
  padding: .6rem .9rem;
  border: 1.5px solid var(--hna-color-border); border-radius: var(--ha-radius-md);
  background: var(--hna-color-surface-elevated); color: var(--hna-color-text-primary);
  font-size: .9375rem;
}
.hp-input:focus { outline: none; border-color: var(--hna-color-primary); box-shadow: 0 0 0 3px rgba(var(--hna-color-primary-rgb), .18); }
.hp-idmsg { font-size: .8125rem; line-height: 1.5; margin: .6rem 0 0; min-height: 1.2em; }
.hp-idmsg.is-ok  { color: var(--hna-color-success-strong); }
.hp-idmsg.is-err { color: var(--hna-color-error-strong); }

/* ── bilingual reading ─────────────────────────────────────────────────── */
.hp-reader {
  display: grid; grid-template-columns: 280px minmax(0, 1fr);
  border-radius: var(--ha-radius-xl); overflow: hidden;
  box-shadow: var(--ha-elevation-1);
  margin-top: 2.5rem;
}
.hp-reader-rail { background: var(--hp-dark); padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.hp-reader-rail .hp-modes-label { margin-bottom: .75rem; }
/* Rail entries are real article titles, so they have to be allowed to wrap. */
.hp-mode--multi { align-items: flex-start; line-height: 1.45; padding-block: .75rem; white-space: normal; }
.hp-reader-body { background: var(--hna-color-surface-elevated); padding: clamp(1.5rem, 3vw, 2.25rem); }
.hp-reader-title { font-size: 1.1875rem; font-weight: 800; color: var(--hna-color-text-primary); margin: 0 0 1.1rem; }
.hp-reader-excerpt { font-size: .9375rem; line-height: 1.7; color: var(--hna-color-text-secondary); margin: 0 0 1.25rem; background: var(--hna-color-surface); border-radius: var(--ha-radius-md); padding: 1rem 1.15rem; }
.hp-reader-panel[hidden] { display: none; }

/* ── videos ────────────────────────────────────────────────────────────── */
.hp-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 1rem; margin-top: 2.25rem; }
.hp-vid { display: block; text-decoration: none; border-radius: var(--ha-radius-lg); overflow: hidden; background: var(--hna-color-surface-elevated); box-shadow: var(--ha-elevation-1); }
.hp-vid:hover { box-shadow: var(--ha-elevation-2); }
/* The card is an <a> of spans, so each part has to be told to be a block —
   aspect-ratio and absolute positioning do nothing on an inline box. */
.hp-vid-thumb { display: block; position: relative; aspect-ratio: 9 / 16; background: var(--hp-dark); }
.hp-vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-vid-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2.25rem; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hp-vid-views { position: absolute; right: .5rem; bottom: .5rem; background: rgba(17,28,47,.78); color: #fff; font-size: .6875rem; font-weight: 600; padding: .15rem .45rem; border-radius: var(--ha-radius-full); }
.hp-vid-title { display: block; padding: .7rem .8rem; font-size: .8125rem; font-weight: 700; line-height: 1.4; color: var(--hna-color-text-primary); }

/* ── about ─────────────────────────────────────────────────────────────── */
.hp-about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.hp-about-photo { aspect-ratio: 1 / 1; border-radius: var(--ha-radius-xl); overflow: hidden; background: var(--hp-deep); }
.hp-about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-about-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .7rem; }
.hp-about-list li { display: flex; gap: .7rem; align-items: baseline; }
.hp-about-list .hp-num { font-size: .75rem; font-weight: 700; color: var(--hna-color-primary); }
.hp-about-list span:last-child { font-size: 1.0625rem; font-weight: 700; color: var(--hna-color-text-primary); }
.hp-section--mint .hp-lead { color: #3c5a55; }

/* ── testimonials ──────────────────────────────────────────────────────── */
.hp-testi-viewport { overflow: hidden; margin-top: 2.25rem; }
.hp-testi-track { display: flex; gap: 1.15rem; transition: transform .35s ease; }
.hp-testi-card {
  flex: 0 0 calc((100% - 2.3rem) / 3);
  display: flex; flex-direction: column;
  background: var(--hna-color-surface); border-radius: var(--ha-radius-lg);
  padding: 1.35rem 1.4rem;
}
.hp-testi-card:nth-child(3n+2) { background: var(--hp-mint); }
.hp-testi-label { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hna-color-primary); margin-bottom: .7rem; }
.hp-testi-quote { background: var(--hna-color-surface-elevated); border-radius: var(--ha-radius-md); padding: 1rem 1.1rem; font-size: .9375rem; line-height: 1.65; color: var(--hna-color-text-primary); min-height: 6.5rem; }
.hp-testi-stars { color: var(--hna-color-warning-strong); font-size: .8125rem; margin-bottom: .5rem; }
.hp-testi-meta { margin-top: .9rem; font-size: .8125rem; color: var(--hna-color-text-secondary); }
.hp-testi-meta strong { display: block; color: var(--hna-color-text-primary); font-size: .9375rem; }
.hp-testi-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.hp-testi-nav button {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: .5rem .9rem;
  border: 0; border-radius: var(--ha-radius-sm); background: transparent;
  color: var(--hna-color-primary); font-weight: 700; font-size: .875rem; cursor: pointer;
}
.hp-testi-nav button:hover:not(:disabled) { background: var(--hna-color-surface); }
.hp-testi-nav button:disabled { color: var(--hna-color-text-disabled); cursor: default; }
.hp-testi-count { font-size: .875rem; font-weight: 600; color: var(--hna-color-text-secondary); }

/* ── closing band ──────────────────────────────────────────────────────── */
.hp-cta-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.hp-cta-grid .hp-h2 { margin-bottom: .5rem; }
.hp-cta-actions { display: flex; flex-direction: column; gap: .75rem; }

/* ── footer ────────────────────────────────────────────────────────────── */
.hp-footer { background: var(--hp-dark); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.hp-footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 2rem; }
.hp-footer-brand { display: flex; align-items: center; gap: .7rem; }
.hp-footer-name   { display: block; font-size: 1.125rem; font-weight: 800; line-height: 1.2; }
.hp-footer-name-2 { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.25; color: rgba(255,255,255,.82); }
.hp-footer-role { font-size: .8125rem; color: rgba(255,255,255,.72); margin-top: .6rem; }
.hp-footer-col h2 { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hna-color-tertiary); margin: 0 0 .6rem; }
.hp-footer-col a { display: block; min-height: 40px; padding: .35rem 0; font-size: .875rem; font-weight: 600; color: #fff; text-decoration: none; }
.hp-footer-col a:hover { color: var(--hna-color-tertiary); text-decoration: underline; }
.hp-footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.hp-footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--ha-radius-sm); background: rgba(255,255,255,.09); color: #fff; font-size: 1.1rem; }
.hp-footer-social a:hover { background: var(--hna-color-primary); }
.hp-footer-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .8125rem; color: rgba(255,255,255,.66); display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.hp-footer-legal a { color: rgba(255,255,255,.85); }

/* ── pricing (only rendered when pricing is switched on) ───────────────── */
.hp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.hp-plan { display: flex; flex-direction: column; background: var(--hna-color-surface-elevated); border: 2px solid var(--hna-color-border); border-radius: var(--ha-radius-lg); padding: 1.6rem 1.5rem; }
.hp-plan--popular { border-color: var(--hna-color-primary); }
.hp-plan-pill { align-self: flex-start; margin-bottom: .8rem; }
.hp-plan-price { font-size: 2rem; font-weight: 800; color: var(--hna-color-text-primary); }
.hp-plan-old { font-size: 1rem; color: var(--hna-color-text-secondary); text-decoration: line-through; }
.hp-plan-feats { list-style: none; margin: 1.1rem 0; padding: 0; display: grid; gap: .5rem; flex: 1 1 auto; }
.hp-plan-feats li { font-size: .875rem; line-height: 1.55; color: var(--hna-color-text-secondary); padding-inline-start: 1.4rem; position: relative; }
.hp-plan-feats li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--hna-color-success-strong); font-weight: 700; }

.hp-faq { max-width: 46rem; margin: 2.25rem auto 0; }
.hp-faq details { background: var(--hna-color-surface-elevated); border: 1px solid var(--hna-color-border); border-radius: var(--ha-radius-md); margin-bottom: .65rem; }
.hp-faq summary { min-height: 56px; display: flex; align-items: center; padding: .9rem 1.15rem; font-weight: 700; cursor: pointer; color: var(--hna-color-text-primary); }
.hp-faq summary:focus-visible { outline: 3px solid var(--hna-color-primary); outline-offset: -3px; }
.hp-faq p { margin: 0; padding: 0 1.15rem 1.1rem; font-size: .9375rem; line-height: 1.65; color: var(--hna-color-text-secondary); }

.hp-guarantee { display: flex; align-items: center; gap: 1rem; background: var(--hna-color-success-subtle); border-radius: var(--ha-radius-lg); padding: 1.25rem 1.5rem; }
.hp-guarantee i { font-size: 1.75rem; color: var(--hna-color-success-strong); }
.hp-guarantee strong { display: block; color: var(--hna-color-success-strong); }
.hp-guarantee span { font-size: .875rem; line-height: 1.55; color: var(--hna-color-text-secondary); }

/* ══ tablet ══════════════════════════════════════════════════════════════ */
@media (max-width: 1023.98px) {
  .hp-goals   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-pathway-steps { grid-template-columns: 1fr; }
  .hp-level-grid, .hp-about-grid { grid-template-columns: 1fr; }
  .hp-game    { grid-template-columns: 1fr; }
  .hp-modes-list { flex-direction: row; flex-wrap: wrap; }
  .hp-reader  { grid-template-columns: 1fr; }
  .hp-testi-card { flex-basis: calc((100% - 1.15rem) / 2); }
  .hp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-nav     { display: none; }
  .hp-menu    { display: inline-flex; }
}

/* ══ mobile ══════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  .hp-hero-grid { grid-template-columns: 1fr; }
  .hp-hero-visual { order: 2; }
  .hp-lang { display: none; }

  /* The full academy name has to share 375px with two buttons, so it shrinks
     and wraps rather than squeezing itself into an 86px column. */
  /* Two names on two lines, each on its own line — letting "Habiba Nabil"
     itself wrap turns the mark into a three-line block. The buttons give up
     the width instead. */
  .hp-header-in { gap: .5rem; }
  .hp-brand { min-width: 0; flex: 0 1 auto; gap: .5rem; }
  .hp-brand .hn-icon.hn-md { width: 36px; height: 36px; }
  .hp-brand .hn-icon.hn-md .hn-letter { font-size: 15px; }
  .hp-brand-name { font-size: .875rem; white-space: nowrap; }
  .hp-brand-sub  { font-size: .75rem;  white-space: nowrap; }
  .hp-header-actions { gap: .3rem; flex: 0 0 auto; margin-inline-start: auto; }
  .hp-header-actions .hp-btn-sm, .hp-menu { padding: .5rem .6rem; font-size: .78125rem; }

  /* The eyebrow is a full sentence on one line here; a pill around two wrapped
     lines reads as a broken badge, so it drops back to plain label text. */
  .hp-hero-chip {
    background: none; padding: 0; margin-bottom: .9rem;
    color: var(--hna-color-primary); letter-spacing: .06em;
  }

  /* Goal cards become one horizontal strip, with the next card peeking. */
  .hp-goals {
    display: flex; gap: .9rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * clamp(1.25rem, 5vw, 3rem));
    padding-inline: clamp(1.25rem, 5vw, 3rem);
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
  }
  .hp-goal { flex: 0 0 80%; scroll-snap-align: start; }

  .hp-tests, .hp-opts, .hp-pairs, .hp-identity, .hp-plans { grid-template-columns: 1fr; }
  .hp-opt { min-height: 56px; }
  .hp-testi-card { flex-basis: 100%; }
  .hp-footer-grid { grid-template-columns: 1fr; }
  .hp-cta-actions { width: 100%; }
  .hp-cta-actions .hp-btn { width: 100%; }
  .hp-hero-card { position: static; margin-top: -3rem; inset: auto; }
  .hp-hero-panel { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
  [dir="rtl"] .hp-hero-card { inset: auto; }
}

/* ══ very small phones ═══════════════════════════════════════════════════ */
@media (max-width: 359.98px) {
  /* Below this the brand name runs under the buttons. Student Login gives way
     — it is still in the drawer, one tap behind Menu. */
  .hp-header-actions .hp-btn-outline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-btn, .hp-goal, .hp-testi-track, .hp-linkarrow::after { transition: none !important; }
  .hp-btn:hover, .hp-goal:hover { transform: none; }
}

/* The way out of the taster and into the real catalogue. Sits on the mint
   so it reads as the next step rather than another card in the row. */
.hp-game-more {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; margin-top: 1.5rem; padding: 1.4rem 1.6rem;
  background: var(--hna-color-primary-subtle, #d7ede9); border-radius: var(--ha-radius-lg, 16px);
}
.hp-game-more h3 { font-size: 1.125rem; font-weight: 800; margin: 0 0 .3rem; color: var(--hna-color-text-primary); }
.hp-game-more p  { font-size: .9375rem; line-height: 1.6; margin: 0; color: var(--hna-color-text-secondary); max-width: 40rem; }
.hp-game-more .hp-btn { flex: none; }
@media (max-width: 575.98px) {
  .hp-game-more { padding: 1.2rem; }
  .hp-game-more .hp-btn { width: 100%; }
}

/* ── hero panel ────────────────────────────────────────────────────────────
   Replaces the old media placeholder. Keeps the 4:5 footprint so the floating
   card below it still lands where it was designed to.                      */
.hp-hero-live {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; text-align: center;
  background: var(--hna-color-surface-elevated);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 2.5vw, 1.5rem) clamp(4rem, 9vw, 5.5rem);
  box-shadow: var(--ha-elevation-1);
}
.hp-hero-live-kicker {
  font-size: .6875rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--hna-color-primary);
  background: var(--hna-color-primary-subtle);
  border-radius: 999px; padding: .3rem .8rem;
}
.hp-hero-live-num { display: flex; align-items: baseline; gap: .4rem; margin-top: .3rem; }
.hp-hero-live-num strong {
  font-family: var(--ha-font-display, inherit);
  font-size: clamp(2.75rem, 7vw, 4rem); font-weight: 800; line-height: 1;
  color: var(--hna-color-primary-deep);
}
.hp-hero-live-num span { font-size: 1.0625rem; font-weight: 700; color: var(--hna-color-text-primary); }
.hp-hero-live-sub { font-size: .875rem; color: var(--hna-color-text-secondary); }

.hp-hero-live-board { width: 100%; max-width: 15rem; margin-top: .5rem; display: grid; gap: .3rem; }
.hp-hero-live-lbl {
  font-size: .625rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--hna-color-text-secondary);
}
.hp-hero-live-row {
  display: grid; grid-template-columns: 1.25rem 1fr auto; align-items: center; gap: .5rem;
  font-size: .8125rem; padding: .3rem .55rem;
  background: var(--hna-color-surface); border-radius: 999px;
}
.hp-hero-live-rank { font-weight: 800; color: var(--hna-color-primary); }
.hp-hero-live-name { text-align: start; font-weight: 600; color: var(--hna-color-text-primary);
                     overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-hero-live-n    { font-weight: 700; color: var(--hna-color-text-secondary); font-variant-numeric: tabular-nums; }

.hp-hero-live-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem;
                     list-style: none; margin: .5rem 0 0; padding: 0; }
.hp-hero-live-tags li {
  font-size: .75rem; font-weight: 600; color: var(--hna-color-primary);
  background: var(--hna-color-primary-subtle); border-radius: 999px; padding: .25rem .7rem;
}
.hp-hero-live-cta  { margin-top: .85rem; }
.hp-hero-live-foot { font-size: .75rem; color: var(--hna-color-text-secondary); }

/* Crown, silver, bronze in place of 1 2 3 on the hero board. */
.hp-hero-live-rank.is-medal { font-size: .95rem; line-height: 1; }

/* ── Articles and videos (lib/public-pages.php) ─────────────────────────
   Moved here from an inline <style> when these pages joined the shared
   header and footer. */
.public-feature-main { background: var(--bg); min-height: 60vh; }
.public-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.public-feature-card { border: 1px solid var(--border); border-radius: 1rem; background: var(--card); padding: 1.1rem; height: 100%; }
.public-feature-card h2 { font-size: 1.05rem; margin: 0 0 .45rem; font-weight: 800; }
.public-feature-card p { color: var(--muted); font-size: .92rem; line-height: 1.65; margin: 0 0 .9rem; }
.public-feature-meta { color: var(--muted); font-size: .78rem; margin-top: .6rem; }
.public-detail-card { border: 1px solid var(--border); border-radius: 1.2rem; background: var(--card); padding: 1.35rem; }
.public-detail-copy { color: var(--muted); line-height: 1.8; }
.public-detail-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.public-related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.public-related-item { border: 1px solid var(--border); border-radius: 1rem; background: var(--card); padding: 1rem; }
.public-related-item h3 { font-size: 1rem; margin: 0 0 .35rem; font-weight: 800; }
.public-related-item p { font-size: .9rem; color: var(--muted); line-height: 1.7; margin: 0 0 .75rem; }

/* ── 404 (lib/public-404.php) ───────────────────────────────────────── */
.hp-404 { padding: clamp(3rem, 10vw, 7rem) 0; text-align: center; }
.hp-404 .hp-lead { max-width: 36rem; margin-inline: auto; }
.hp-404-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; line-height: 1; margin: 0 0 .5rem; color: var(--hna-color-secondary-subtle); letter-spacing: -.04em; }
.hp-404-links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 2rem; }
.hp-404-wa { margin-top: 1.75rem; }
.hp-404-wa a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 700; }

/* Touch targets (review 2026-09-21): the Student Portal link under the hero
   and the skip link were 16–24px tall. */
.hp-hero-copy .hp-note a { display: inline-flex; align-items: center; min-height: 44px; }
.hp-skip:focus { min-height: 44px; }
