/* CareerID Pitch Deck — minimal, bold, carbon-light
   100vh slides, system fonts, high contrast, print-to-PDF ready
   No external libraries. Inline SVG only. */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --text: #0a0f1a;
  --muted: #4b5563;
  --accent: #1d4ed8;
  --accent2: #15803d;
  --line: #d1d5db;
  --card: #ffffff;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== SLIDE LAYOUT ===== */
.slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2.5rem;
  scroll-snap-align: start;
  position: relative;
}
.slide:nth-child(even) {
  background: var(--bg-alt);
}
.slide-inner {
  width: min(100%, 960px);
  margin-inline: auto;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-align: center;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.subhead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--muted);
  max-width: 640px;
  margin-top: 1rem;
  line-height: 1.5;
  text-align: center;
  margin-inline: auto;
}
.slide-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
  text-align: center;
}
.footer-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.6rem;
  letter-spacing: 0.02em;
}
.footer-line span {
  margin: 0 0.5rem;
  opacity: 0.4;
}

/* ===== BULLETS & LISTS ===== */
.deck-bullets {
  list-style: none;
  padding: 0;
  margin-top: 1.2rem;
}
.deck-bullets li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  line-height: 1.5;
}
.deck-bullets li:last-child {
  border-bottom: none;
}
.deck-bullets li strong {
  color: var(--text);
}

/* ===== STAT CARDS ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}
.stat-card {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  border: none;
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
}
.stat-card .number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}
.stat-card .label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.3rem;
}

/* ===== TWO-COLUMN GRID ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.4rem;
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
}
.grid-card {
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.grid-card h3 {
  margin-bottom: 0.6rem;
}
.grid-card ul {
  list-style: none;
  padding: 0;
}
.grid-card ul li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}
.grid-card ul li::before {
  content: "\2022";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ===== PILLS / TAGS ===== */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border: 2px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 100px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--bg));
}

/* ===== BRAND MARK ===== */
.deck-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.deck-brand svg {
  width: 48px;
  height: 48px;
}
.deck-brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* ===== COMPETITIVE TABLE ===== */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.2rem;
  font-size: 0.92rem;
}
.comp-table th,
.comp-table td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.comp-table th {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.comp-table td:first-child {
  font-weight: 600;
}
.check { color: var(--accent2); font-weight: 700; }
.cross { color: #dc2626; font-weight: 700; }
.partial { color: #d97706; font-weight: 700; }

/* ===== TIMELINE ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.timeline-step {
  position: relative;
  padding: 1rem;
  border-left: 3px solid var(--accent);
}
.timeline-step .phase {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.timeline-step .phase-title {
  font-weight: 700;
  margin-top: 0.2rem;
}
.timeline-step .phase-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ===== TEAM GRID ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}
.team-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.team-card .name {
  font-weight: 700;
  font-size: 1.05rem;
}
.team-card .role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
.team-card .bio {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.45;
}

/* ===== SLIDE FRAME — thin border gives each slide a defined edge ===== */
.slide {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
}

/* ===== NAV HINT — side arrows ===== */
.deck-nav {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}
.deck-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: all;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.deck-nav button:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
#prev-btn { left: 1rem; }
#next-btn { right: 1rem; }

/* Slide counter pill */
.deck-counter-wrap {
  position: fixed;
  bottom: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.28rem 1rem;
  pointer-events: none;
}
#deck-counter {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.deck-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 100;
  transition: width 0.2s ease-out;
  width: 0%;
}


/* ===== CLOSING SLIDE ===== */
.closing-body {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
  margin-top: 1rem;
}
.closing-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.closing-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.cta-primary {
  background: var(--accent);
  color: #fff;
}
.cta-primary:hover {
  background: #1e3a8a;
}
.cta-secondary {
  border: 2px solid var(--accent);
  color: var(--accent);
}
.cta-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== DIAGRAMS ===== */
.diagram-wrap {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
}
.diagram-wrap svg {
  width: 100%;
  max-width: 720px;
  height: auto;
}
.diagram-wrap--narrow svg {
  max-width: 520px;
}
.diagram-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

/* ===== PRICING EXAMPLE (private deck) ===== */
.pricing-example {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  background: var(--bg-alt);
}
.pricing-example-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.pricing-tier {
  text-align: center;
  padding: 0.8rem 0.4rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}
.pricing-tier-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.pricing-tier-value {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent);
}
@media (max-width: 640px) {
  .pricing-tiers { grid-template-columns: 1fr; }
}

/* ===== ARCHITECTURE SLIDE ===== */
.arch-headline {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.arch-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

/* Vertical flow container */
.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.4rem;
  gap: 0;
}

/* Individual layer block */
.arch-layer {
  width: min(100%, 480px);
  text-align: center;
  padding: 1.1rem 1.6rem;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: relative;
}
.arch-layer-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.arch-layer-detail {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
  letter-spacing: 0.01em;
}

/* Core layer — visually dominant */
.arch-layer--core {
  padding: 1.4rem 1.8rem;
  background: var(--bg);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 2px 12px rgba(29,78,216,0.12), 0 0 0 2px rgba(29,78,216,0.18);
}
.arch-layer--core .arch-layer-title {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8, #15803d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.arch-layer--core .arch-layer-detail {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

/* Thin connector lines */
.arch-connector {
  width: 1px;
  height: 28px;
  background: var(--line);
}
.arch-connector--strong {
  height: 36px;
  width: 2px;
  background: linear-gradient(180deg, var(--line), var(--accent));
}

/* Premium chips */
.arch-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 2.2rem;
}
.arch-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  color: var(--muted);
  background: var(--bg-alt);
  letter-spacing: 0.02em;
}

/* Strategic footer */
.arch-footer {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1.8rem;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* Even slide background override for arch layers */
#slide-7 .arch-layer {
  background: var(--card);
}

@media (max-width: 640px) {
  .arch-headline { font-size: 1.5rem; }
  .arch-layer { padding: 0.9rem 1.2rem; }
  .arch-layer--core { padding: 1.1rem 1.4rem; }
  .arch-chips { gap: 0.35rem; }
  .arch-chip { font-size: 0.65rem; padding: 0.2rem 0.55rem; }
}

/* ===== CONFIDENTIALITY FOOTER BAR ===== */
.deck-legal-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.4rem;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.85;
  pointer-events: none;
}
.deck-legal-bar .legal-logo {
  display: flex;
  align-items: center;
}
.deck-legal-bar .legal-logo img {
  height: 15px;
  width: auto;
  opacity: 0.55;
}
.deck-legal-bar .legal-confidential {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.62rem;
  font-weight: 700;
}
.deck-legal-bar .legal-rights {
  font-size: 0.62rem;
  opacity: 0.7;
}

/* ===== PRINT / PDF ===== */
@media print {
  html { scroll-snap-type: none; }
  .slide {
    min-height: auto;
    page-break-after: always;
    page-break-inside: avoid;
    padding: 2rem 1.5rem 3rem;
    position: relative;
  }
  .slide:last-child { page-break-after: avoid; }
  .slide::after {
    content: "Private \0026  Confidential \00b7 \00a9 2026 CareerID Ltd. All rights reserved.";
    display: block;
    position: absolute;
    bottom: 0.6cm;
    left: 0;
    right: 0;
    text-align: center;
    font-family: system-ui, -apple-system, Arial, sans-serif;
    font-size: 6.5pt;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.25cm;
    margin: 0 1cm;
  }
  .deck-progress,
  .deck-nav,
  .deck-counter-wrap,
  .deck-legal-bar { display: none !important; }
  body { font-size: 11pt; }
  h1 { font-size: 28pt; }
  h2 { font-size: 20pt; }
  .stat-card .number { font-size: 18pt; }
  @page { margin: 1.5cm; }
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .grid-2[style*="repeat(4"] { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 640px) {
  .slide { padding: 2.5rem 1.2rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .comp-table { font-size: 0.82rem; }
  .comp-table th, .comp-table td { padding: 0.5rem 0.4rem; }
  /* On small screens: collapse side arrows to bottom corners */
  #prev-btn { left: auto; right: 4rem; top: auto; bottom: 2.6rem; transform: none; }
  #next-btn { right: 1rem; top: auto; bottom: 2.6rem; transform: none; }
  .deck-counter-wrap { bottom: 2.4rem; }
  .deck-legal-bar .legal-logo,
  .deck-legal-bar .legal-rights { display: none; }
  .deck-legal-bar { justify-content: center; }
}
