/* ==========================================================================
   A-List Tech Support LLC — shared design system (DARK THEME)
   Palette:  #0B1522 deep navy (bg) · #4C8DFF blue (accent) · light blue-white (text)
   Type:     Syne (headers/titles) · Mulish (body text) · IBM Plex Mono (utility)

   NOTE: variable names below (--plum, --magenta, --blush) are kept exactly as
   the light version, per the original file's instruction that every page
   references these names. Only the VALUES changed — with one exception:
   a handful of rules that used to set TEXT color to var(--plum) (headings,
   brand mark, nav-avatar, tags, ghost buttons, success messages) have been
   repointed to the new var(--ink-bright) token. This was unavoidable: --plum
   is now a dark navy background tone, so text set to var(--plum) would be
   nearly invisible against the dark page. Everywhere --plum previously meant
   "a border/hover accent," it still works unchanged.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

:root{
  /* brand */
  --plum: #0E1B2E;         /* deep navy — dark brand surface tone */
  --plum-soft: #16283F;    /* elevated navy — cards / nav / footer surfaces */
  --magenta: #4C8DFF;      /* accent blue (was gold) */
  --blush: #1D3A5F;        /* mid navy tint — chip/tag/avatar backgrounds */

  /* neutrals — light-on-dark, cool blue cast to match the navy brand */
  --ink: #C9D3E0;          /* body text */
  --ink-bright: #F3F6FC;   /* headings / high-emphasis text — new token, needed for contrast on dark bg */
  --ink-70: #90A0B7;       /* muted/secondary text */
  --paper: #0B1522;        /* page background — darkest */
  --mist: #101F33;         /* secondary surface fill (cards, dropdowns) */
  --line: #22334A;         /* hairline borders */
  --line-strong: #35506E;  /* stronger borders */

  /* type */
  --display: 'Merriweather', serif;
  --body: 'Inter', sans-serif;
  --mono: 'Inter', sans-serif;

  /* rhythm */
  --gutter: clamp(24px, 5vw, 64px);
  --radius: 3px;
}

*{ 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(--ink-bright);   /* was var(--plum) — see note at top */
  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(11,21,34,0.9);   /* was rgba(253,252,251,0.92) — matches new --paper */
  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(--ink-bright);   /* was var(--plum) — see note at top */
}
.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(--ink-bright); }
.nav-links a.active{
  color: var(--ink-bright);
  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(--ink-bright);
  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(--ink-bright);   /* was var(--plum) — see note at top */
  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: #2E6FD1; }   /* was #7C5D15 — darker step of the new blue */
.btn-ghost{
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-bright);   /* was var(--plum) — see note at top */
}
.btn-ghost:hover{ border-color: var(--magenta); }   /* was var(--plum) — plum reads too close to bg to work as hover feedback now */
.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(--ink-bright);   /* was var(--plum) — see note at top */
  border-radius: 2px;
  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(--mist);   /* was var(--paper) — a card the same color as the page had no separation once both went dark */
}

/* ---------- 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: rgba(214,69,69,0.14);   /* was #FCEAEF */
  color: #FF9B9B;                      /* was #B3134E */
  border:1px solid rgba(214,69,69,0.4); /* was #F3B6C6 */
}
.form-msg.success{
  display:block;
  background: var(--mist);
  color: var(--ink-bright);   /* was var(--plum) — see note at top */
  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(0,0,0,0.5);   /* was rgba(20,38,63,0.14) — a navy shadow doesn't read on a navy page; switched to black */
    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; }
}