/* ============================================================
   Jaxable pitch deck — brand-guidelines.md v1.2
   Screen: one slide at a time, keyboard/click navigation.
   Print: each slide = one landscape page (browser print → PDF).
   ============================================================ */

:root {
  --bg: #FBFBF9;
  --bg-tint: #F2F4F0;
  --white: #FFFFFF;
  --ink: #14231C;
  --muted: #52625A;
  --faint: #67736C; /* caption gray — darkened from #87938C for WCAG AA at small sizes */
  --green: #0C4A36;
  --green-deep: #082F23;
  --emerald: #157A57;
  --soft-emerald: #7FCBA8;
  --lime: #D8F05A;
  --line: #E3E6E0;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Slides ---------- */

.slide {
  position: fixed; inset: 0;
  display: none;
  background:
    radial-gradient(ellipse 55% 65% at 85% 8%, rgba(21,122,87,0.06), transparent 70%),
    var(--bg);
  padding: 4vh 6vw 10vh;
}

.slide.active { display: flex; align-items: center; }

.slide-body { width: 100%; max-width: 1200px; margin: 0 auto; }

.slide-dark {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255,255,255,0.06), transparent 65%),
    var(--green);
  color: #fff;
}

.slide-close {
  background:
    radial-gradient(ellipse 60% 80% at 50% 20%, rgba(255,255,255,0.07), transparent 65%),
    var(--green-deep);
  color: #fff;
  text-align: center;
}

/* ---------- Type ---------- */

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.08; letter-spacing: -0.022em;
  margin-bottom: 2.4vh;
}

h1 em { font-style: normal; color: var(--emerald); }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.12; letter-spacing: -0.018em;
  margin-bottom: 3.5vh;
}

.slide-dark h2, .slide-close h2 { color: #fff; }

.statement { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }

.accent { color: var(--emerald); }
.accent-text { color: var(--emerald); font-weight: 700; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--emerald);
  margin-bottom: 2vh;
}

.slide-dark .eyebrow { color: var(--soft-emerald); }

.subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--muted);
  line-height: 1.55;
}

.slide-close .subtitle { color: rgba(255,255,255,0.7); margin-top: 1vh; }

.title-meta {
  margin-top: 5vh;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  color: var(--faint);
}

.kicker {
  margin-top: 3.5vh;
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  color: var(--muted);
  max-width: 62em;
}

.kicker.light { color: rgba(255,255,255,0.75); }

/* ---------- Wordmark ---------- */

.wordmark-lg, .chrome-brand {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline;
}

a.chrome-brand { text-decoration: none; color: inherit; }

.wordmark-lg { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 3vh; }

.wm-jax { color: var(--ink); }
.wm-able { color: var(--emerald); }
.wm-dot {
  width: 0.25em; height: 0.25em; background: var(--lime);
  margin-left: 0.13em; display: inline-block; border-radius: 1px;
}

.slide-close .wm-jax { color: #fff; }
.slide-close .wm-able { color: var(--soft-emerald); }

/* ---------- Animated wordmark (closing slide) ----------
   One line of letter spans. Base state reads "jaxable."
   .ph-able collapses j/a/x and expands the -able rests → "assess build launch evolve."
   .ph-jax collapses a/b/l/e and expands the jax rests   → "just add experience."     */

.jx-anim {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  white-space: nowrap;
  display: inline-flex; align-items: baseline;
  margin-bottom: 3vh;
}

.jx-anim .jx-l,
.jx-anim .jx-r {
  display: inline-block;
  overflow: hidden;
  white-space: pre;
  max-width: 1.2em;
  opacity: 1;
  transition: max-width 0.55s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.4s ease;
}

.jx-anim .jx-r { max-width: 0; opacity: 0; }

.jx-anim .g-jax { color: #fff; }
.jx-anim .g-able { color: var(--soft-emerald); }
.jx-anim .r-jax { color: #fff; }
.jx-anim .r-able { color: var(--soft-emerald); }

.jx-anim.ph-able .g-jax,
.jx-anim.ph-able .r-jax,
.jx-anim.ph-jax .g-able,
.jx-anim.ph-jax .r-able { max-width: 0; opacity: 0; }

.jx-anim.ph-able .r-able,
.jx-anim.ph-jax .r-jax { max-width: 9ch; opacity: 1; }

.jx-anim.ph-jax .jx-x { color: var(--lime); }

.jx-anim .wm-dot { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .jx-anim .jx-l, .jx-anim .jx-r { transition: none; }
}

/* ---------- Layout blocks ---------- */

.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2vw; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4vw; }

.mini-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(0.9rem, 1.8vw, 1.6rem);
  box-shadow: 0 1px 2px rgba(20,35,28,0.05);
}

.mini-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  margin-bottom: 0.5rem;
}

.mini-card p { font-size: clamp(0.8rem, 1.05vw, 0.95rem); color: var(--muted); }

.mini-card.dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}

.mini-card.dark h3 { color: #fff; }
.mini-card.dark p { color: rgba(255,255,255,0.72); }

/* Problem slide stat row */

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2vw;
  margin-top: 5vh;
}

.stat-row > div {
  border-top: 3px solid var(--green);
  padding-top: 1.4vh;
}

.stat-row b {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
}

.stat-row span { font-size: clamp(0.85rem, 1.1vw, 1rem); color: var(--muted); }

/* Who we are */

.big-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4vw;
  margin: 1vh 0 4vh;
}

.big-stats b {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--green);
}

.big-stats span { font-size: clamp(0.78rem, 1vw, 0.92rem); color: var(--muted); }

.cert-line {
  display: flex; align-items: center; gap: 1.2vw;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(0.8rem, 1.4vw, 1.2rem) clamp(1rem, 1.8vw, 1.6rem);
  width: fit-content;
}

.cert-line img { height: clamp(38px, 5vh, 52px); width: auto; }

.cert-line p {
  font-size: clamp(0.82rem, 1.05vw, 0.95rem);
  font-weight: 600; color: var(--muted);
  max-width: 46em;
}

.cert-line.close {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  margin: 4vh auto 0;
}

/* Team */

.team-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1vw;
  margin-top: 1vh;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(0.9rem, 1.6vw, 1.5rem) clamp(0.6rem, 1vw, 1rem);
  box-shadow: 0 1px 2px rgba(20,35,28,0.05);
  text-align: center;
}

.team-card img {
  width: clamp(64px, 8.5vw, 116px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1);
  margin-bottom: 1.4vh;
}

.team-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(0.88rem, 1.2vw, 1.08rem);
  letter-spacing: -0.01em;
}

.team-role {
  font-size: clamp(0.72rem, 0.95vw, 0.86rem);
  color: var(--muted);
  margin: 0.3vh 0 1vh;
}

.team-li {
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 0.78vw, 0.7rem);
  color: var(--emerald);
  text-decoration: none;
  word-break: break-all;
}

.team-li:hover { text-decoration: underline; }

/* Pillars */

.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(0.9rem, 1.8vw, 1.6rem);
  box-shadow: 0 1px 2px rgba(20,35,28,0.05);
}

.pillar span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2em; height: 2em;
  border: 1.5px solid var(--green); border-radius: 50%;
  font-family: var(--font-mono); font-size: clamp(0.7rem, 0.95vw, 0.85rem);
  color: var(--green);
  margin-bottom: 1.2vh;
}

.pillar h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  margin-bottom: 0.5rem;
}

.pillar p { font-size: clamp(0.8rem, 1.05vw, 0.95rem); color: var(--muted); }

/* ABLE row */

.able-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.8vw;
  align-items: stretch;
}

.able-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(0.9rem, 1.7vw, 1.5rem);
  box-shadow: 0 1px 2px rgba(20,35,28,0.05);
}

.able-step b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4em; height: 2.4em;
  border: 1.5px solid var(--green); border-radius: 50%;
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(0.7rem, 0.95vw, 0.85rem);
  color: var(--green);
  margin-bottom: 1.2vh;
}

.able-step h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.able-step i {
  display: block;
  font-family: var(--font-mono); font-style: normal;
  font-size: clamp(0.62rem, 0.85vw, 0.72rem);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--faint);
  margin: 0.3vh 0 1vh;
}

.able-step p { font-size: clamp(0.78rem, 1vw, 0.92rem); color: var(--muted); }

.able-arrow {
  display: flex; align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  color: var(--emerald);
}

/* Proof cards */

.proof-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1rem, 1.9vw, 1.7rem);
  box-shadow: 0 1px 2px rgba(20,35,28,0.05);
}

.proof-tag {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 0.8vw, 0.7rem);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 1.6vh;
}

.proof-metric {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  letter-spacing: -0.02em; line-height: 1;
  color: var(--green);
  margin-bottom: 1.4vh;
}

.proof-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(0.92rem, 1.25vw, 1.1rem);
  margin-bottom: 0.5rem;
}

.proof-card p:last-child { font-size: clamp(0.78rem, 1vw, 0.92rem); color: var(--muted); }

/* Quadrant */

.quad {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: #CDD3CC;
  border: 1px solid #CDD3CC;
  border-radius: 12px;
  overflow: hidden;
  max-width: 62vw;
}

.quad-cell { background: var(--white); padding: clamp(0.9rem, 1.6vw, 1.4rem); }

.quad-cell h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(0.92rem, 1.25vw, 1.1rem);
  margin-bottom: 0.4rem;
}

.quad-cell p { font-size: clamp(0.76rem, 1vw, 0.9rem); color: var(--muted); }

.quad-cell.hot { background: var(--green); }
.quad-cell.hot h3 { color: var(--lime); }
.quad-cell.hot p { color: rgba(255,255,255,0.82); }

/* Ask */

.ask-grid { display: grid; gap: 1.6vh; max-width: 52em; }

.ask-item {
  display: flex; align-items: center; gap: 1.4vw;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(0.9rem, 1.6vw, 1.4rem) clamp(1.1rem, 2vw, 1.8rem);
  box-shadow: 0 1px 2px rgba(20,35,28,0.05);
}

.ask-item b {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4em; height: 2.4em;
  border-radius: 50%;
  background: var(--green); color: #fff;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.15vw, 1rem);
}

.ask-item p { font-size: clamp(0.9rem, 1.2vw, 1.05rem); color: var(--muted); }
.ask-item p strong { color: var(--ink); }

/* ---------- Chrome (footer + nav) ---------- */

.deck-chrome {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4vh 2.4vw;
  z-index: 10;
  pointer-events: none;
}

.deck-chrome > * { pointer-events: auto; }

.chrome-brand { font-size: 0.95rem; }

.chrome-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  text-transform: uppercase; letter-spacing: 0.1em;
}

.dots { display: flex; gap: 0.45rem; }

.dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(20,35,28,0.22);
  padding: 0;
}

.dots button.on { background: var(--emerald); }

/* Chrome legibility on dark slides */
body.on-dark .chrome-brand .wm-jax { color: #fff; }
body.on-dark .chrome-count { color: rgba(255,255,255,0.55); }
body.on-dark .dots button { background: rgba(255,255,255,0.28); }
body.on-dark .dots button.on { background: var(--lime); }
body.on-dark .nav-btn {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

/* One-time navigation hint */

.deck-hint {
  position: fixed; bottom: 8.5vh; left: 50%; transform: translateX(-50%);
  z-index: 20;
  background: rgba(20,35,28,0.88);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.08em;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}

.deck-hint.show { opacity: 1; }

.deck-hint b { color: var(--lime); font-weight: 500; }

@media print { .deck-hint { display: none; } }

.nav-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  font-size: 1.1rem; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.nav-btn:hover { border-color: var(--emerald); color: var(--emerald); }

.nav-prev { left: 1.2vw; }
.nav-next { right: 1.2vw; }

/* ---------- Print (PDF export) ---------- */

@page { size: 297mm 167mm; margin: 0; }

@media print {
  body { overflow: visible; background: #fff; }

  .slide {
    display: flex !important;
    align-items: center;
    position: relative; inset: auto;
    width: 297mm; height: 167mm;
    page-break-after: always;
    padding: 12mm 18mm 20mm;
  }

  .deck-chrome, .nav-btn { display: none; }

  .quad { max-width: 100%; }

  /* Animated wordmark prints as the static "jaxable." */
  .jx-anim .jx-r { display: none; }
  .jx-anim .jx-l { max-width: none; opacity: 1; }
}
