/* =========================================================
   Somali Language Centre — Design System
   A clean, modern, responsive static site stylesheet.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — deep navy + gold */
  --primary:        #1f2a3d;
  --primary-dark:   #141d2b;
  --primary-light:  #eaeef4;
  --accent:         #f9b233;
  --accent-dark:    #e09b16;

  /* Neutrals */
  --ink:            #1b2432;
  --body:           #3a4656;
  --muted:          #66717f;
  --line:           #e4e8ee;
  --bg:             #ffffff;
  --bg-soft:        #f5f7fa;
  --bg-dark:        #1a2333;

  /* System */
  --radius:         14px;
  --radius-sm:      9px;
  --shadow-sm:      0 1px 2px rgba(16,35,53,.06), 0 2px 8px rgba(16,35,53,.05);
  --shadow-md:      0 8px 24px rgba(16,35,53,.10);
  --shadow-lg:      0 18px 48px rgba(16,35,53,.16);
  --container:      1140px;
  --gutter:         clamp(1.1rem, 4vw, 2rem);

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(3.2rem, 8vw, 5.5rem); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #cdd9e5; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 680px; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .7rem;
}
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn--accent { background: var(--accent); color: #3a2a00; }
.btn--accent:hover { background: var(--accent-dark); color: #3a2a00; }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn--light { background: #fff; color: var(--primary-dark); }
.btn--light:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.12rem; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 62px; height: 62px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.brand__name small { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  color: var(--body);
  padding: .5rem .8rem;
  border-radius: 8px;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--primary-dark); background: var(--primary-light); }
.nav__links a[aria-current="page"] {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.nav__cta { margin-left: .4rem; }
.nav__cta .btn--primary { color: var(--accent); }
.nav__cta .btn--primary:hover { color: var(--accent); }
/* Register button on the register page: flip to a gold fill so it reads as
   "selected" and the text stays legible (was blending navy-on-navy before). */
.nav__cta .btn--primary[aria-current="page"] {
  background: var(--accent);
  color: #3a2a00;
  text-decoration: none;
}
.nav__cta .btn--primary[aria-current="page"]:hover {
  background: var(--accent-dark);
  color: #3a2a00;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .8rem var(--gutter) 1.2rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .75rem .6rem; font-size: 1.05rem; }
  .nav__cta { margin: .5rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero (dark navy) ---------- */
.hero {
  position: relative;
  color: #e8edf4;
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(249,178,51,.16), transparent 60%),
    radial-gradient(820px 480px at 2% 112%, rgba(249,178,51,.10), transparent 55%),
    linear-gradient(160deg, #26344b 0%, var(--primary) 45%, var(--primary-dark) 100%);
  background-color: var(--primary);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
/* Centred hero with a large video */
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.6rem, 3.5vw, 2.4rem);
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
}
.hero__intro { max-width: 860px; }
.hero__media { width: 100%; max-width: 980px; }
.hero .eyebrow { color: var(--accent); }
.hero__title { margin-bottom: .5rem; color: #ffffff; font-size: clamp(2.4rem, 5.6vw, 4rem); }
.hero__title .accent { color: var(--accent); }
.hero__text { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: #cdd6e2; max-width: 60ch; margin-inline: auto; }
.hero__note { margin: .9rem auto 0; font-size: .92rem; color: #cdd6e2; max-width: 60ch; }
.hero__note a { color: #fff; text-decoration: underline; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; justify-content: center; }
.hero__stats { display: flex; gap: clamp(1.5rem, 5vw, 3.2rem); flex-wrap: wrap; justify-content: center; }
.hero__stat strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: #ffffff; line-height: 1; }
.hero__stat span { font-size: .9rem; color: #9fabbb; }

.hero__art {
  position: relative;
  aspect-ratio: 5 / 4.4;
  border-radius: 22px;
  background: linear-gradient(150deg, #26344b 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero__art--video { aspect-ratio: 16 / 9; background: #000; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.hero__art-star { width: min(58%, 240px); height: auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,.25)); position: relative; z-index: 1; }
.hero__badge {
  position: absolute;
  z-index: 2;
  bottom: 18px; left: 18px; right: 18px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .8rem;
  box-shadow: var(--shadow-md);
}
.hero__badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 4px rgba(43,182,115,.18); flex: 0 0 auto; }
.hero__badge p { margin: 0; font-size: .92rem; color: var(--body); }
.hero__badge strong { color: var(--ink); font-family: var(--font-head); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3e0ee; }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.card__link::after { content: "→"; transition: transform .15s ease; }
.card__link:hover::after { transform: translateX(3px); }

/* Course card */
.course {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course__top { padding: 1.5rem 1.5rem 0; }
.course__tag {
  display: inline-block; font-size: .75rem; font-weight: 600; font-family: var(--font-head);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary-dark); background: var(--primary-light);
  padding: .28rem .7rem; border-radius: 999px; margin-bottom: .9rem;
}
.course__tag--accent { color: var(--accent-dark); background: #fdf1d8; }
.course__body { padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.course__meta { list-style: none; padding: 0; margin: 1rem 0 1.3rem; display: grid; gap: .5rem; }
.course__meta li { display: flex; align-items: center; gap: .55rem; font-size: .95rem; color: var(--body); margin: 0; }
.course__meta svg { width: 17px; height: 17px; color: var(--primary); flex: 0 0 auto; }
.course__body .btn { margin-top: auto; }
.course p { color: var(--muted); }

/* Feature / value list */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.4rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step__num {
  counter-increment: step; flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 700;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: .3rem; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Split / media rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media {
  border-radius: 20px; aspect-ratio: 4/3;
  background: linear-gradient(150deg, #dcebfb, #eef5fd);
  border: 1px solid var(--line);
  display: grid; place-items: center; padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.split__media svg { width: min(70%, 260px); height: auto; }
.split__media--photo { padding: 0; background: none; overflow: hidden; }
.split__media--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote-card { text-align: center; max-width: 34ch; }
.quote-card__text {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.7rem); line-height: 1.3;
  color: var(--primary); margin: 0 0 1rem;
}
.quote-card__by {
  margin: 0; font-size: .9rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(600px 300px at 88% -30%, rgba(249,178,51,.22), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); }
.field label .req { color: #d64545; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,42,61,.16);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 1rem; }

/* Multi-learner registration */
.form-subhead {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 1.6rem 0 .2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.form-card > form > .form-subhead:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.form-hint { font-size: .9rem; color: var(--muted); margin: .3rem 0 1rem; }
.learner-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  padding: 1rem 1.1rem .2rem;
  margin-bottom: 1rem;
}
.learner-row__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.learner-row__title { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--muted); }
.learner-remove {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  color: #c0392b; padding: .15rem .3rem; border-radius: 6px;
}
.learner-remove:hover { background: #fdece9; text-decoration: underline; }
#add-learner { margin-bottom: .4rem; }

/* ---------- Contact info ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.info-list li { display: flex; gap: .95rem; align-items: flex-start; margin: 0; }
.info-list .info-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; }
.info-list .info-ic svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1rem; }
.info-list span, .info-list a { color: var(--muted); font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: .3rem 1.2rem; margin-bottom: .8rem;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; padding: .95rem 0;
  font-family: var(--font-head); font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); transition: transform .2s ease; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background:
    radial-gradient(900px 380px at 90% -30%, rgba(249,178,51,.16), transparent 60%),
    var(--bg-soft);
  padding-block: clamp(2.6rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { color: var(--accent-dark); }
.page-hero .lead { max-width: 60ch; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Notice / callout ---------- */
.notice {
  border: 1px dashed var(--accent);
  background: #fffaf0;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: .95rem;
  color: #7a5a12;
}
.notice strong { color: #6b4e0d; }

/* ---------- Somali–English dictionary ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.dict-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem;
  margin-bottom: 1.1rem;
}
.dict-search { flex: 1 1 240px; }
.dict-search__input {
  width: 100%; padding: .7rem 1rem; font: inherit;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink);
}
.dict-search__input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 178, 51, 0.25);
}
.dict-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.dict-chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font: 600 .82rem/1 var(--font-head); padding: .45rem .8rem;
  border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.dict-chip:hover { border-color: var(--accent); color: var(--primary); }
.dict-chip.is-active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.dict-download { flex: 0 0 auto; }
.dict-count { color: var(--muted); font-size: .9rem; margin: 0 0 1.2rem; }
.dict-group { margin-bottom: 1.8rem; }
.dict-group__title {
  font-size: 1.05rem; margin: 0 0 .6rem; display: flex; align-items: baseline; gap: .5rem;
}
.dict-group__title span {
  font-size: .75rem; font-weight: 600; color: var(--muted);
  background: var(--bg-soft); border-radius: 999px; padding: .1rem .5rem;
}
.dict-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.dict-table th, .dict-table td {
  text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--line);
}
.dict-table th {
  font: 600 .78rem/1 var(--font-head); text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); background: var(--bg-soft);
}
.dict-table tr:last-child td { border-bottom: 0; }
.dict-table tbody tr:hover { background: #fffaf0; }
.dict-so { font-weight: 600; color: var(--primary); width: 45%; }
.dict-alt {
  display: inline-block; margin-left: .4rem; font-weight: 500;
  font-size: .82rem; color: var(--muted);
}
.dict-en { color: var(--ink); }
.dict-empty { color: var(--muted); text-align: center; padding: 2rem 0; }
@media (max-width: 560px) {
  .dict-download { width: 100%; }
}

/* ---------- Grammar rules & practice ---------- */
.container--narrow { max-width: 780px; }
.gr-menu { display: grid; gap: .8rem; }
.gr-topic-btn {
  display: flex; align-items: flex-start; gap: 1rem; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; cursor: pointer; transition: all .15s ease; width: 100%;
}
.gr-topic-btn:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.gr-topic-btn__num {
  flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--primary); color: #fff; font: 600 .95rem/2rem var(--font-head);
  text-align: center;
}
.gr-topic-btn__txt { display: flex; flex-direction: column; gap: .15rem; }
.gr-topic-btn__txt strong { color: var(--primary); font-family: var(--font-head); }
.gr-topic-btn__txt span { color: var(--muted); font-size: .9rem; }

.gr-back {
  background: none; border: 0; color: var(--muted); font: 600 .9rem var(--font-head);
  cursor: pointer; padding: .3rem 0; margin-bottom: 1rem;
}
.gr-back:hover { color: var(--primary); }
.gr-explain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem; margin-bottom: 1.6rem;
}
.gr-title { margin: 0 0 .5rem; }
.gr-summary { color: var(--ink); margin: 0 0 1rem; }
.gr-points { margin: 0 0 1rem 1.1rem; padding: 0; }
.gr-points li { margin: .35rem 0; color: var(--ink); }
.gr-examples h3, .gr-practice h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
.gr-ex-table { width: 100%; border-collapse: collapse; }
.gr-ex-table td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.gr-ex-table tr:last-child td { border-bottom: 0; }
.gr-ex-so { font-weight: 600; color: var(--primary); white-space: nowrap; }
.gr-ex-en { color: var(--muted); }

.gr-practice { margin-top: .5rem; }
.gr-tally { font: 500 .85rem var(--font-head); color: var(--muted); margin-left: .3rem; }
.gr-q {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; margin-bottom: .9rem;
}
.gr-q__prompt { margin: 0 0 .7rem; font-weight: 500; }
.gr-q__n { color: var(--accent-dark); font-weight: 700; margin-right: .2rem; }
.gr-opts { display: grid; gap: .5rem; }
.gr-opt {
  text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .6rem .8rem; cursor: pointer;
  font: inherit; color: var(--ink); transition: all .12s ease;
}
.gr-opt:hover:not(:disabled) { border-color: var(--accent); }
.gr-opt:disabled { cursor: default; }
.gr-opt.is-correct { border-color: #2e7d32; background: #eaf6ea; color: #1e5b21; font-weight: 600; }
.gr-opt.is-wrong { border-color: #c62828; background: #fbeaea; color: #a01c1c; }
.gr-fill { display: flex; gap: .5rem; flex-wrap: wrap; }
.gr-input {
  flex: 1 1 180px; padding: .55rem .8rem; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.gr-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,178,51,.25); }
.gr-hint { font-size: .85rem; color: var(--muted); margin: .5rem 0 0; }
.gr-feedback { margin: .6rem 0 0; font-size: .92rem; min-height: 1.1em; }
.gr-feedback.is-ok { color: #1e5b21; }
.gr-feedback.is-err { color: #a01c1c; }
.gr-done { margin-top: 1rem; text-align: center; }
@media (max-width: 560px) {
  .gr-ex-so { white-space: normal; }
  .gr-fill { flex-direction: column; }
  .gr-input, .gr-check { width: 100%; }
}

/* ---------- Free taster page ---------- */
.taster-game-title { margin: 0 0 .2rem; font-size: 1.15rem; }
.taster-game-sub { margin: 0 0 1rem; color: var(--muted); }
.opt-label { color: var(--muted); font-weight: 400; font-size: .88em; }
.form-note { color: var(--muted); font-size: .85rem; margin: .8rem 0 0; }
.video-placeholder {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(150deg, #dcebfb, #eef5fd);
  display: grid; place-items: center; gap: .4rem; color: var(--primary);
  box-shadow: var(--shadow-sm); text-align: center;
}
.video-placeholder svg { width: 56px; height: 56px; opacity: .85; }
.video-placeholder p { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--muted); }

/* ---------- Members teaser ---------- */
.locked-grid { position: relative; }
.locked-card { position: relative; overflow: hidden; }
.locked-card .lock-badge {
  position: absolute; top: .9rem; right: .9rem;
  background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600;
  font-family: var(--font-head); padding: .25rem .6rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .3rem;
}
.lock-badge svg { width: 12px; height: 12px; }

/* ---------- Student resources: login gate ---------- */
.auth-section {
  background:
    radial-gradient(900px 380px at 88% -20%, rgba(249,178,51,.14), transparent 60%),
    var(--bg-soft);
}
.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
}
.auth-card__icon {
  width: 60px; height: 60px; margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
}
.auth-card__icon svg { width: 30px; height: 30px; }
.auth-card .eyebrow { color: var(--accent-dark); }
.auth-card h1 { font-size: clamp(1.6rem, 4vw, 2rem); margin: .15rem 0 .5rem; }
.auth-card__sub { color: var(--muted); margin-bottom: 1.4rem; }
.auth-card form { text-align: left; }
.auth-card .field { margin-bottom: .4rem; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.auth-card__help { font-size: .9rem; color: var(--muted); margin-top: 1.3rem; }
.access-error {
  color: #b00020; font-size: .9rem; margin: .1rem 0 .6rem;
  background: #fdecee; border: 1px solid #f6c9cf;
  border-radius: var(--radius-sm); padding: .5rem .7rem;
}

/* ---------- Student resources: dashboard ---------- */
.resources-guarding main { visibility: hidden; }
.dash-hero {
  background:
    radial-gradient(700px 300px at 85% -40%, rgba(249,178,51,.18), transparent 60%),
    var(--bg-dark);
  color: #fff;
  padding-block: clamp(2.2rem, 5vw, 3.2rem);
}
.dash-hero__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.dash-hero .eyebrow { color: var(--accent); }
.dash-hero h1 { color: #fff; margin: .2rem 0 .5rem; }
.dash-hero .lead { color: rgba(255,255,255,.85); max-width: 54ch; margin: 0; }
.dash-hero__lead { flex: 1 1 340px; }

/* Progress bar in the dashboard hero */
.progress {
  height: 10px; background: rgba(255,255,255,.22); border-radius: 999px;
  overflow: hidden; max-width: 360px; margin: 1.1rem 0 .5rem;
}
.progress__bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width .45s ease; }
.progress__label { color: rgba(255,255,255,.8); font-size: .85rem; margin: 0 0 1rem; }

/* Learning path: levels of steps that unlock in order */
.level { margin: 0 0 2.4rem; }
.level__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.level__badge {
  flex: 0 0 auto; background: var(--primary); color: #fff;
  font: 600 .78rem/1 var(--font-head); letter-spacing: .03em;
  padding: .45rem .7rem; border-radius: 999px; white-space: nowrap;
}
.level__meta { flex: 1 1 auto; }
.level__meta h3 { margin: 0; font-size: 1.15rem; }
.level__meta p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.level__count {
  flex: 0 0 auto; color: var(--muted); font: 600 .9rem var(--font-head);
  background: var(--bg-soft); border-radius: 999px; padding: .3rem .7rem;
}
.level.is-complete .level__count { background: #eaf6ea; color: #1e5b21; }

.path { list-style: none; margin: 0; padding: 0; position: relative; }
.path-step { position: relative; display: flex; gap: 1rem; padding-bottom: 1rem; }
.path-step:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px;
  background: var(--line);
}
.path-step.is-done:not(:last-child)::before { background: #bcdcbd; }
.path-step__node {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-soft);
  color: var(--muted); border: 2px solid var(--line); z-index: 1;
}
.path-step__node svg { width: 20px; height: 20px; }
.path-step.is-done .path-step__node { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.path-step.is-current .path-step__node {
  background: var(--accent); border-color: var(--accent); color: #3a2b06;
  box-shadow: 0 0 0 4px rgba(249,178,51,.28);
}
.path-step.is-open .path-step__node { border-color: var(--accent); color: var(--accent-dark); }
.path-step__card {
  flex: 1 1 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .9rem 1.1rem;
}
.path-step.is-current .path-step__card { border-color: var(--accent); box-shadow: var(--shadow-md); }
.path-step.is-locked .path-step__card { background: var(--bg-soft); opacity: .75; }
.path-step__type {
  display: block; font: 600 .72rem/1 var(--font-head); text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin-bottom: .2rem;
}
.path-step.is-current .path-step__type { color: var(--accent-dark); }
.path-step__card h4 { margin: 0 0 .2rem; font-size: 1.02rem; }
.path-step__card p { margin: 0 0 .7rem; color: var(--muted); font-size: .92rem; }
.path-step__actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.path-step__locked { color: var(--muted); font-size: .88rem; display: inline-flex; align-items: center; gap: .35rem; }
.path-link {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted);
  font: 600 .85rem var(--font-head); text-decoration: underline;
}
.path-link:hover { color: var(--primary); }
.path-return { text-align: center; margin: 1rem 0 0; }
.path-reset { text-align: center; margin: 1rem 0 0; }
.path-reset button {
  background: none; border: 0; color: var(--muted); font: 500 .85rem var(--font-head);
  cursor: pointer; text-decoration: underline;
}
.path-reset button:hover { color: var(--primary); }
@media (max-width: 560px) {
  .level__head { flex-wrap: wrap; }
  .level__count { order: 3; }
}
.resource-card { position: relative; }
.resource-card .soon-pill {
  position: absolute; top: .9rem; right: .9rem;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: .72rem; font-weight: 600; font-family: var(--font-head);
  padding: .25rem .6rem; border-radius: 999px;
}
.resource-card .soon-pill--live { background: #e7f6ed; color: #1a7f4b; }
.resource-card--help { background: var(--bg-soft); }

/* Guided chooser (dashboard "what would you like to do?") */
.chooser__intents { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.intent-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.intent-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3e0ee; }
.intent-btn__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary-dark); }
.intent-btn__icon svg { width: 24px; height: 24px; }
.intent-btn h3 { font-size: 1.12rem; margin: 0; color: var(--primary-dark); }
.intent-btn p { margin: 0; font-size: .9rem; color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.chooser__back {
  background: none; border: 0; cursor: pointer; color: var(--muted); font-family: var(--font-head);
  font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 1rem; display: inline-flex; gap: .3rem; align-items: center;
}
.chooser__back:hover { color: var(--primary-dark); }
.activity { display: flex; flex-direction: column; }
.activity h3 { margin-bottom: .4rem; }
.activity__benefit { color: var(--body); font-size: .92rem; margin: 0; display: flex; gap: .45rem; flex: 1; }
.activity__benefit::before { content: "✓"; color: var(--accent-dark); font-weight: 700; }
.browse-toggle { text-align: center; margin-top: 1.6rem; }
.browse-toggle button { background: none; border: 0; color: var(--primary-dark); font-family: var(--font-head); font-weight: 600; cursor: pointer; text-decoration: underline; font-size: .95rem; }
.browse-toggle button:hover { color: var(--primary); }
a.resource-card { color: inherit; text-decoration: none; display: block; }
a.resource-card:hover h3 { color: var(--primary-dark); }

/* Resource section placeholder pages */
.empty-state {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(2rem, 5vw, 3rem);
}
.empty-state__icon {
  width: 56px; height: 56px; margin: 0 auto 1.1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.empty-state__icon svg { width: 28px; height: 28px; }
.empty-state h2 { margin-bottom: .5rem; }
.empty-state p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.5rem; }

/* Practice partner (scripted chat bot) */
.chat {
  max-width: 640px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  height: min(70vh, 560px); overflow: hidden;
}
.chat__log { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
.msg { max-width: 82%; padding: .6rem .9rem; border-radius: 14px; line-height: 1.4; }
.msg--bot { align-self: flex-start; background: var(--primary-light); color: var(--primary-dark); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg small { display: block; opacity: .75; font-size: .8rem; margin-top: .2rem; }
.chat__chips { display: flex; gap: .5rem; flex-wrap: wrap; padding: 0 1.2rem .6rem; }
.chip-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .8rem;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--primary-dark); cursor: pointer;
}
.chip-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.chat__form { display: flex; gap: .5rem; padding: .8rem 1rem; border-top: 1px solid var(--line); background: var(--bg-soft); }
.chat__input { flex: 1 1 auto; min-width: 0; border: 2px solid var(--line); border-radius: 999px; padding: .6rem 1rem; font-size: 1rem; }
.chat__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,178,51,.2); }
.chat__send { flex: 0 0 auto; }
.chat__input:disabled { background: #f2f4f7; }
.chat__score { text-align: center; color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
@media (max-width: 480px) {
  .chat__form { padding: .6rem .7rem; }
  .chat__send { padding: .6rem 1rem; }
}
/* typing indicator */
.msg--typing { display: inline-flex; gap: 5px; align-items: center; }
.msg--typing .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-dark); opacity: .35; animation: pb-typing 1s infinite ease-in-out; }
.msg--typing .dot:nth-child(2) { animation-delay: .15s; }
.msg--typing .dot:nth-child(3) { animation-delay: .3s; }
@keyframes pb-typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: .9; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .msg--typing .dot { animation: none; } }

/* Community & events */
.event-list { display: grid; gap: 1rem; max-width: 760px; }
.event {
  display: flex; gap: 1.2rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem;
  background: #fff; box-shadow: var(--shadow-sm);
}
.event__when {
  flex: 0 0 auto; text-align: center; min-width: 84px;
  background: var(--primary-light); border-radius: var(--radius-sm); padding: .6rem .5rem;
}
.event__day { font-family: var(--font-head); font-weight: 700; color: var(--primary-dark); font-size: 1.1rem; line-height: 1.1; }
.event__freq { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.event__body { flex: 1; min-width: 0; }
.event__tag { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-dark); }
.event__body h3 { margin: .15rem 0 .3rem; }
.event__body p { color: var(--muted); margin: 0; }
.event__meta { font-size: .85rem; color: var(--muted); margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.event__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.event__meta svg { width: 14px; height: 14px; }

/* Notes & worksheets */
.btn--sm { padding: .5rem 1rem; font-size: .92rem; }
.doc-secs { display: grid; gap: 2.2rem; }
.doc-sec h2 { margin-bottom: 1rem; }
.doc { display: flex; flex-direction: column; }
.doc h3 { margin-bottom: .35rem; }
.doc p { flex: 1; }
.doc__cta { margin-top: 1.1rem; }
.doc__soon {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: .35rem .8rem;
}
.doc__dl { display: inline-flex; align-items: center; gap: .4rem; }
.vocab-tile { text-align: left; }
.vocab-tile__word { font-size: 1.35rem !important; }
.doc--link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.doc--link:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.doc__dl svg { width: 15px; height: 15px; }

/* Reading library */
.lib-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.lib-chip {
  display: inline-block; padding: .4rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--primary-dark);
}
.lib-chip:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.book__tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .72rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .35rem;
}
.book__meta { color: var(--muted); font-size: .92rem; margin-bottom: .5rem; }
.saying {
  text-align: center; max-width: 640px; margin: 1.5rem auto 0;
  background: var(--primary); color: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem;
}
.saying__so { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 3.5vw, 1.6rem); }
.saying__en { color: rgba(255,255,255,.85); margin-top: .4rem; }
.saying__note { color: var(--muted); font-size: .85rem; text-align: center; margin-top: .7rem; }

/* Audio & video */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.video__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #000; box-shadow: var(--shadow-sm);
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video h3 { margin: .8rem 0 .25rem; }
.video p { color: var(--muted); margin: 0; }
.video--featured { max-width: 840px; margin: 0 auto; }

/* Alphabet & pronunciation guide */
.alpha-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.alpha {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1rem;
  background: #fff; text-align: center; box-shadow: var(--shadow-sm);
}
.alpha__letter { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--primary-dark); line-height: 1; }
.alpha__letter small { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.alpha__sound { color: var(--muted); font-size: .84rem; margin: .5rem 0 .6rem; min-height: 2.6em; }
.alpha__ex { font-size: .9rem; color: var(--body); }
.alpha__ex b { color: var(--primary-dark); text-transform: capitalize; }
.alpha__play {
  margin-top: .8rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--primary-light); color: var(--primary-dark); cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
}
.alpha__play:hover { border-color: var(--primary); }
.alpha__play svg { width: 15px; height: 15px; }
.alpha__status { font-size: .72rem; color: var(--muted); min-height: 1.1em; margin-top: .4rem; }
.alpha__status.is-playing { color: #1a7f4b; }

/* Listen & repeat soundboard */
.sound-cats { display: grid; gap: 2.2rem; }
.sound-cat h3 { margin-bottom: .8rem; }
.sound-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; }
.sound-item {
  display: flex; align-items: center; gap: .7rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .7rem; background: #fff;
}
.sound-item__text { flex: 1; min-width: 0; }
.sound-item__so { font-family: var(--font-head); font-weight: 700; color: var(--primary-dark); text-transform: capitalize; }
.sound-item__en { font-size: .83rem; color: var(--muted); }
.sound-item__play {
  flex: 0 0 auto; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--primary-light); color: var(--primary-dark);
  cursor: pointer; display: grid; place-items: center;
}
.sound-item__play:hover { border-color: var(--primary); }
.sound-item__play svg { width: 16px; height: 16px; }
.sound-status { text-align: center; min-height: 1.4em; margin-top: 1.2rem; font-family: var(--font-head); font-weight: 600; color: var(--muted); }
.sound-status.is-playing { color: #1a7f4b; }

/* Feature CTA panel (e.g. link to the alphabet guide) */
.feature-cta {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.feature-cta__icon {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary-dark);
}
.feature-cta__icon svg { width: 26px; height: 26px; }
.feature-cta__body { flex: 1; min-width: 220px; }
.feature-cta__body h3 { margin-bottom: .2rem; }
.feature-cta__body p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #a9bccb; padding-block: 3.2rem 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.site-footer .brand__name small { color: #7f97a9; }
.footer-about p { color: #91a6b6; font-size: .95rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--font-head); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: #a9bccb; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cdd9e5; }
.socials a:hover { background: var(--primary); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.socials--light a { background: var(--primary-light); color: var(--primary-dark); }
.socials--light a:hover { background: var(--primary); color: #fff; }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .88rem; color: #7f97a9;
}
.footer-bottom a { color: #a9bccb; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  z-index: 60;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.wa-float:focus-visible { outline: 3px solid rgba(37,211,102,.5); outline-offset: 3px; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float__pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 520px) {
  .wa-float { width: 52px; height: 52px; }
  .wa-float svg { width: 29px; height: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
