/* ============================================================
   Yeyak — Product pages shared chrome (nav, footer, tokens, common bits)
   Loaded by /product.html and /product/*.html on top of colors_and_type.css
   ============================================================ */

:root {
  /* Aliases the brief uses, mapped to existing tokens */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAF9;
  --bg-dark: #0A0A14;
  --bg-dark-deep: #050510;

  --text-primary: #0A0A14;
  --text-secondary: #5A5A6B;
  --text-tertiary: #9A9AA8;
  --text-on-dark: #FFFFFF;
  --text-on-dark-mute: rgba(255,255,255,0.64);

  --border-light: rgba(10,10,20,0.08);
  --border-dark: rgba(255,255,255,0.10);

  --accent-orange: #FF774C; /* matches existing yeyak-orange */
  --accent-pink:   #FF3D7F;
  --accent-blue:   #005BF3; /* matches existing yeyak-blue */
  --accent-purple: #6B5BFF;

  --grad-warm: linear-gradient(135deg, #FF774C 0%, #FF3D7F 100%);
  --grad-cool: linear-gradient(135deg, #005BF3 0%, #6B5BFF 100%);
  --grad-peach: linear-gradient(135deg, #FFB088 0%, #FF6A1F 100%);

  --content-max: 1280px;
  --radius-card: 24px;
  --radius-button: 999px;
}

html, body { background: #fff; color: var(--text-primary); }
body { margin: 0; font-family: var(--font-body); -webkit-font-smoothing: antialiased; }

/* ---- Nav (matches index.html exactly) ---- */
.nav { max-width: var(--content-max); margin: 0 auto; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 100; }
.nav .links { display: flex; gap: 8px; }
.nav .links > a, .nav .links > .nav-item > .nav-trigger {
  color: var(--fg); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer; background: transparent; border: 0; font-family: inherit;
  text-decoration: none;
  transition: background .15s;
  position: relative;
}
.nav .links > a:hover, .nav .links > .nav-item > .nav-trigger:hover { background: rgba(10,10,10,.04); }
.nav .links > a.active,
.nav .links > .nav-item > .nav-trigger.active { color: var(--text-primary); font-weight: 600; }
.nav .links > a.active::after,
.nav .links > .nav-item > .nav-trigger.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
}
.nav .nav-item { position: relative; }
.nav .nav-trigger .caret { font-size: 10px; opacity: .5; transition: transform .2s; }
.nav .nav-item:hover .nav-trigger .caret { transform: rotate(180deg); }

/* Product mega-menu (800px, three columns + bottom row) */
.nav-mega-product {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 16px; padding: 24px;
  box-shadow: 0 12px 40px rgba(10,10,20,0.08);
  width: 800px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 200;
}
.nav-item:hover .nav-mega-product,
.nav-item:focus-within .nav-mega-product {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-mega-product::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 12px; }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; position: relative; }
.mega-col {
  display: block; padding: 16px; border-radius: 12px;
  text-decoration: none; color: var(--text-primary);
  transition: background .15s;
}
.mega-col:hover { background: var(--bg-secondary); }
.mega-col .ymark {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff;
  margin-bottom: 14px;
}
.mega-col .ymark.warm { background: var(--grad-warm); }
.mega-col .ymark.cool { background: var(--grad-cool); }
.mega-col .ymark.peach { background: var(--grad-peach); }
.mega-col .mt { font-size: 16px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.mega-col .ms { font-size: 14px; color: var(--text-secondary); line-height: 1.45; margin-bottom: 6px; }
.mega-col .mtags { font-size: 12px; color: var(--text-tertiary); margin-bottom: 14px; }
.mega-col .mlink { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.mega-col .mlink .marrow { transition: transform .2s; }
.mega-col:hover .mlink .marrow { transform: translateX(4px); }
.mega-col.warm .mlink { color: var(--accent-orange); }
.mega-col.cool .mlink { color: var(--accent-pink); }
.mega-col.peach .mlink { color: #FF6A1F; }
.mega-col.peach:hover { border-color: #FF6A1F; }
.mega-bottom {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-light);
  text-align: center;
}
.mega-bottom a {
  font-size: 13px; color: var(--text-secondary); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.mega-bottom a:hover { color: var(--text-primary); }

.logo { height: 28px; }
.btn-ink { background: #0A0A0A; color: #fff; border: 0; padding: 11px 22px; border-radius: 9999px; font-weight: 500; font-size: 14px; cursor: pointer; font-family: inherit; display:inline-flex; align-items:center; gap:8px; text-decoration: none; }
.btn-ink:hover { background: #1a1a1a; }
.btn-ink .ar { transition: transform .2s; }
.btn-ink:hover .ar { transform: translateX(3px); }
.btn-ghost {
  background: #fff; color: var(--text-primary);
  border: 1px solid var(--border-light); padding: 11px 22px;
  border-radius: 9999px; font-weight: 500; font-size: 14px;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-ghost:hover { background: var(--bg-secondary); }
.btn-ghost .ar { transition: transform .2s; }
.btn-ghost:hover .ar { transform: translateX(3px); }

/* ---- Mono eyebrow (matching index.html style — small dot + uppercase mono label) ---- */
.mono-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-secondary);
}
.mono-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-blue);
  flex-shrink: 0;
}
.mono-eyebrow.orange::before { background: var(--accent-orange); }
.mono-eyebrow.pink::before { background: var(--accent-pink); }
.mono-eyebrow.green::before { background: #22C55E; }

/* ---- Ghost arrow link ---- */
.ghost-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  text-decoration: none;
}
.ghost-link.orange { color: var(--accent-orange); }
.ghost-link.pink { color: var(--accent-pink); }
.ghost-link .ar { transition: transform .2s; }
.ghost-link:hover .ar { transform: translateX(4px); }

/* ---- Mono pill (border-only chip) ---- */
.mono-pill {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 9999px;
  background: transparent;
}
.mono-pill.orange { color: var(--accent-orange); border: 1px solid var(--accent-orange); }
.mono-pill.pink { color: var(--accent-pink); border: 1px solid var(--accent-pink); }

/* ---- Section base ---- */
.section { padding: 120px 32px; }
.section.tall { padding: 160px 32px; }
.section-wrap { max-width: var(--content-max); margin: 0 auto; }
.section-wrap.narrow { max-width: 880px; }
.section-wrap.med { max-width: 960px; }

/* ---- Display headlines (sentence case, big) ---- */
.display-xxl {
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.display-xl {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.display-lg {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1; letter-spacing: -0.025em; font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.body-lg-prose {
  font-size: 17px; line-height: 1.55; color: var(--text-secondary);
  margin: 0;
}

.grad-warm-text {
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-cool-text {
  background: var(--grad-cool);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text-tertiary);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--text-secondary); }
.breadcrumb .sep { margin: 0 8px; opacity: .6; }

/* ---- Mockup panel (light off-white, hairline) ---- */
.mock-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* ---- CTA dark block (matches existing pattern) ---- */
.cta-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: 28px;
  max-width: 1180px; margin: 0 auto;
  padding: 80px 64px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px;
  align-items: center;
}
.cta-dark .mono-eyebrow { color: rgba(255,255,255,.7); }
.cta-dark .display-lg { color: #fff; }
.cta-dark .body-lg-prose { color: rgba(255,255,255,.7); }
.cta-dark .btn-ink { background: #fff; color: #0A0A14; }
.cta-dark .btn-ink:hover { background: #f0f0f0; }
.cta-stats { display: flex; flex-direction: column; gap: 18px; }
.cta-stat { display: flex; gap: 16px; align-items: flex-start; }
.cta-stat .ic {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px;
}
.cta-stat .ic.b { background: rgba(96,165,250,.18); color: #93C5FD; }
.cta-stat .ic.o { background: rgba(255,119,76,.18); color: #FDA47A; }
.cta-stat .ic.g { background: rgba(74,222,128,.18); color: #86EFAC; }
.cta-stat .t { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; }
.cta-stat .s { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; line-height: 1.4; }

@media (max-width: 900px) {
  .cta-dark { grid-template-columns: 1fr; padding: 48px 32px; }
}

/* ---- Footer (matches index.html) ---- */
footer.site-foot { padding: 40px 32px; border-top: 1px solid var(--border-light); }
footer.site-foot .foot { max-width: var(--content-max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-secondary); }
footer.site-foot .socials { display: flex; gap: 10px; }
footer.site-foot .socials a {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--border-light);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-secondary); text-decoration: none; font-size: 11px;
}

/* ---- Cross-link card (between products) ---- */
.cross-link {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 48px;
  max-width: 960px; margin: 0 auto;
}
.cross-link .display-lg { margin: 14px 0 12px; }

/* ---- Animation ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s cubic-bezier(0.16, 1, 0.3, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
}
