/* ==========================================================================
   ALTE® — shared design system
   Palette:  #2E0F1F plum · #EAE0D5 paper · #C8102E magenta · #1A1A1A ink
   Type:     Syne (headers/titles) · Mulish (body text) · IBM Plex Mono (utility)

   NOTE: variable names below (--plum, --magenta, --blush) match ALTE's own
   brand vocabulary now — every page in this site references these names,
   so retheming only requires editing the values in this one file.

   PER-CLIENT SETUP: everything under "brand" below — colors, fonts, and
   --academy-name — is the ONLY thing that should change between client
   installations. Every public page reads --academy-name via the
   ::before/content technique below (see .brand-name, .footer-brand-name),
   and js/apply-branding.js (one shared file, never edited per client)
   copies that same value into <title>, meta tags, and image alt text at
   load time. Admin-facing pages intentionally keep the hardcoded "ALTE®"
   text in their sidebar — that's ALTE's own product name, the software
   vendor's brand shown to the academy owner using the tool, same as
   "Shopify Admin" appears in a merchant's dashboard regardless of the
   merchant's own storefront branding. Only STUDENT-facing pages (courses,
   course, lesson, community, membership, profile, login) use
   --academy-name instead.

   CSS genuinely cannot set a <title> tag, a <meta> tag, or an img's alt
   text — those aren't stylable content, no way around that with CSS
   alone. js/apply-branding.js is the (already-written, never-touched-
   again) bridge that reads this one variable and applies it to those
   few HTML-only spots too, so in practice this file is still the only
   thing you edit per client.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Mulish:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* brand */
  --plum: #2E0F1F;       /* ALTE brand plum */
  --plum-soft: #4A1729;  /* lighter plum, for gradients/hover */
  --magenta: #C8102E;    /* ALTE brand magenta/red accent */
  --blush: #EAE0D5;      /* ALTE brand paper/cream tint */

  /* This academy's own display name — shown on every student-facing page.
     Must stay a quoted CSS string (it's consumed by `content: var(...)`
     below). Change ONLY this value per client; nothing else in this file
     or in js/apply-branding.js needs to change. */
  --academy-name: "ALTE®";

  /* neutrals */
  --ink: #1A1A1A;
  --ink-70: #4B5563;
  --paper: #FDFFFF;
  --mist: #F4F6F8;
  --line: #DDE3E9;
  --line-strong: #C7D0DA;

  /* type */
  --display: 'Syne', sans-serif;
  --body: 'Mulish', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  /* rhythm */
  --gutter: clamp(24px, 5vw, 64px);
  --radius: 14px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 700;
  color: var(--plum);
  margin: 0;
  letter-spacing: -0.01em;
}

a{ color: inherit; text-decoration: none; }
img{ display:block; max-width:100%; }
button{ font-family: var(--body); cursor: pointer; }

.container{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- utility / mono labels ---------- */
.eyebrow, .code, .meta, .tag{
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow{
  font-size: 12px;
  color: var(--magenta);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: '';
  width: 14px; height: 1px;
  background: var(--magenta);
  display: inline-block;
}
.code{
  font-size: 12px;
  color: var(--ink-70);
}

/* ---------- top navigation ---------- */
.site-nav{
  position: sticky; top: 0; z-index: 40;
  background: rgba(253,252,251,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand{
  display: flex; align-items: center; gap: 10px;
}
.brand img{ height: 28px; width: auto; display:block; }
.brand-text{
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
}
.nav-links{
  display: flex; align-items: center; gap: 36px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a{
  font-size: 14px; font-weight: 600;
  color: var(--ink-70);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover{ color: var(--plum); }
.nav-links a.active{
  color: var(--plum);
  border-bottom-color: var(--magenta);
}
.nav-right{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--plum);
  padding: 8px 10px; border-radius: var(--radius);
}
.nav-toggle:hover{ background: var(--mist); }
.nav-avatar{
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--plum);
  font-family: var(--mono);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body);
  font-size: 14px; font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .15s ease;
}
.btn-primary{
  background: var(--magenta);
  color: var(--paper);
}
.btn-primary:hover{ background: #7C5D15; }
.btn-ghost{
  background: transparent;
  border-color: var(--line-strong);
  color: var(--plum);
}
.btn-ghost:hover{ border-color: var(--plum); }
.btn-arrow::after{
  content: '→';
  transition: transform .15s ease;
}
.btn-arrow:hover::after{ transform: translateX(3px); }
.btn:disabled{ opacity: 0.6; cursor: default; }

/* ---------- page hero ---------- */
.page-hero{
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1{
  font-size: clamp(32px, 4vw, 48px);
  margin-top: 14px;
  max-width: 20ch;
}
.page-hero p{
  max-width: 52ch;
  color: var(--ink-70);
  font-size: 16px;
  margin-top: 14px;
}

/* ---------- section label row ---------- */
.section-head{
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap; gap: 12px;
}
.section-head h2{ font-size: 22px; }

/* ---------- footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  margin-top: 96px;
  padding: 40px 0;
}
.site-footer .container{
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.site-footer .code{ color: var(--ink-70); }

/* ---------- tags ---------- */
.tag{
  font-size: 10.5px;
  padding: 5px 9px;
  background: var(--blush);
  color: var(--plum);
  border-radius: 999px;
  display: inline-block;
}
.tag-outline{
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-70);
}

/* ---------- generic hairline card ---------- */
.hairline{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

/* ---------- form message ---------- */
.form-msg{
  font-size:12.5px; padding:12px 14px; border-radius:var(--radius);
  display:none; margin-bottom: 4px;
}
.form-msg.error{ display:block; background: #FCEAEF; color: #B3134E; border:1px solid #F3B6C6; }
.form-msg.success{ display:block; background: var(--mist); color: var(--plum); border:1px solid var(--line); }

/* ---------- empty / loading state ---------- */
.empty-note{ font-size:13.5px; color: var(--ink-70); padding: 24px 0; }

/* ---------- responsive helpers ---------- */
@media (max-width: 860px){
  .nav-toggle{ display: block; }
  .site-nav .container{ position: relative; }
  .nav-links{
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(20,38,63,0.14);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px var(--gutter) 16px;
  }
  .nav-links.mobile-open{ display: flex; }
  .nav-links a{
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child a{ border-bottom: none; }
}

/* ---------- academy name, injected from --academy-name ----------
   These elements ship EMPTY in the HTML (no text node inside them) —
   the visible text comes entirely from this ::before rule reading the
   CSS variable above. This is what lets the site's displayed name be a
   pure CSS edit instead of a find-and-replace across every HTML file.
   js/apply-branding.js handles the handful of spots CSS genuinely can't
   reach (the <title> tag, meta tags, image alt text). */
.brand-name::before,
.footer-brand-name::before{
  content: var(--academy-name);
}
