/* ============================================================
   Understanding Your AI shared brand system (uya.css)
   Locked identity: cyan #00B4D8 · gold #F7B731 · pink #FF3366
   navy #0f172a · Bricolage Grotesque display · Inter body
   Rules: no gradients, no particle backgrounds, hairline borders,
   flat color blocks, glasses signature. Board is the source of truth.
   Load this BEFORE article.css / landing.css / page styles.
   ============================================================ */

/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* locked palette */
  --cyan: #00B4D8;
  --gold: #F7B731;
  --pink: #FF3366;
  --navy: #0f172a;

  /* dark surfaces */
  --navy-2: #131d36;
  --navy-3: #1a2745;
  --footer-navy: #0b1120;
  --line-dark: rgba(148, 163, 184, 0.16);
  --cloud: #e8eef7;
  --cloud-muted: #a5b4cb;

  /* light reading surfaces */
  --paper: #f6f8fb;
  --paper-2: #edf1f7;
  --card: #ffffff;
  --ink: #1e2a3d;
  --ink-muted: #51617a;
  --line-light: #dce4ef;

  /* text-safe accents on light (WCAG AA at body sizes) */
  --cyan-text: #046B85;
  --gold-text: #8A6A12;
  --pink-text: #D81B54;

  /* type + shape */
  --font-display: 'Bricolage Grotesque', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-btn: 10px;
  --radius-card: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);

  /* compatibility aliases (older page styles reference these) */
  --primary: var(--cyan);
  --secondary: var(--gold);
  --accent: var(--pink);
  /* old gradient tokens resolve to flat brand color (no gradients in the identity);
     background-clip:text hacks in legacy inline styles degrade to solid color */
  --gradient-1: var(--cyan);
  --gradient-2: var(--gold);
  --gradient-3: var(--cyan);
  --gradient-accent: var(--pink);
  --dark: var(--navy);
  --dark-muted: #334155;
  --light: #ffffff;
  --gray: var(--paper);
  --border: var(--line-light);
  --text: var(--ink);
  --text-light: var(--ink-muted);
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, .section-title, .footer-logo {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

img { max-width: 100%; height: auto; }

::selection { background: var(--cyan); color: var(--navy); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* the old animated background layer is retired everywhere */
.bg-animation { display: none; }

/* ---------- signature devices ---------- */

/* split-tone hairline: half cyan, half gold (no gradients) */
.split-rule { display: flex; height: 3px; width: 100%; }
.split-rule::before { content: ''; flex: 1; background: var(--cyan); }
.split-rule::after { content: ''; flex: 1; background: var(--gold); }

/* the glasses mark, color via currentColor */
.uya-glasses {
  display: inline-block;
  width: 44px;
  aspect-ratio: 1199 / 402;
  background: currentColor;
  -webkit-mask: url('/assets/img/glasses.svg') no-repeat center / contain;
  mask: url('/assets/img/glasses.svg') no-repeat center / contain;
  vertical-align: middle;
  flex: none;
}

/* eyebrow label above section titles */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- header / nav (dark chrome, all pages) ---------- */
header {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 900;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}
.logo img { width: 31px; height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}
.nav-links a {
  color: var(--cloud-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-btn);
  color: var(--cloud);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .mobile-menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.5rem 0;
  }
  .nav-links.active { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.8rem 2rem; }
}

/* ---------- buttons ---------- */
.btn, .cta-button, .btn-primary, .pricing-button, .submit-button, .youtube-button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  background: var(--cyan);
  color: var(--navy);
}
.btn:hover, .cta-button:hover, .btn-primary:hover, .pricing-button:hover, .submit-button:hover, .youtube-button:hover {
  background: #33c5e2;
  transform: translateY(-1px);
}
.btn:active, .cta-button:active { transform: translateY(0); }

.cta-button-secondary, .btn-ghost {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  background: transparent;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
/* ghost on dark surfaces (default chrome) */
.cta-button-secondary, .btn-ghost {
  color: var(--cloud);
  border: 1px solid var(--line-dark);
}
.cta-button-secondary:hover, .btn-ghost:hover {
  border-color: var(--cyan);
  color: #ffffff;
}
/* ghost on light surfaces */
.on-light .cta-button-secondary, .on-light .btn-ghost {
  color: var(--ink);
  border-color: var(--line-light);
}
.on-light .cta-button-secondary:hover, .on-light .btn-ghost:hover { border-color: var(--cyan-text); }

/* ---------- newsletter (box on article pages, strip on home) ---------- */
.newsletter-box, .newsletter-strip {
  background: var(--navy-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  color: var(--cloud);
  text-align: center;
  padding: 2.4rem 1.8rem;
}
.newsletter-strip { border-radius: 0; border-left: 0; border-right: 0; }
.newsletter-box h2, .newsletter-strip h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.newsletter-box p, .newsletter-strip p { color: var(--cloud-muted); }
.newsletter-form {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}
.newsletter-form input[type="email"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1.1rem;
  min-width: min(320px, 80vw);
  border-radius: var(--radius-btn);
  border: 1px solid var(--line-dark);
  background: var(--navy);
  color: var(--cloud);
}
.newsletter-form input[type="email"]::placeholder { color: var(--cloud-muted); }
.newsletter-status { margin-top: 0.9rem; font-size: 0.95rem; color: var(--gold); min-height: 1.2em; }

.visually-hidden, .visually-hidden-nl {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- footer (dark chrome, all pages) ---------- */
footer {
  background: var(--footer-navy);
  border-top: 1px solid var(--line-dark);
  color: var(--cloud-muted);
  text-align: center;
  padding: 3rem 2rem 2.4rem;
  font-size: 0.95rem;
}
footer a { color: var(--cloud); }
footer a:hover { color: var(--gold); }

.footer-content { max-width: 900px; margin: 0 auto; }
.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  margin: 1.1rem 0;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-copyright { font-size: 0.85rem; margin-top: 1rem; }

/* glasses sign-off + tagline inside any footer */
.footer-signoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}
.footer-signoff .uya-glasses { width: 52px; color: var(--gold); }
.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cloud);
}
