:root {
  --background: oklch(0.13 0.01 255);
  --foreground: oklch(0.92 0 0);
  --card: oklch(0.17 0.01 255);
  --primary: oklch(0.72 0.18 130);
  --primary-foreground: oklch(0.98 0 0);
  --muted: oklch(0.2 0.01 255);
  --muted-foreground: oklch(0.58 0.01 255);
  --accent: oklch(0.55 0.04 255);
  --border: oklch(0.28 0.02 255);
  --destructive: oklch(0.62 0.2 25);

  --vacation: #22c55e;
  --sick: #ef4444;
  --other: #f97316;

  --shift-blue: #3b82f6;
  --shift-orange: #f97316;
  --shift-purple: #8b5cf6;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;

  --radius: 0.6rem;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

#slides {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.slide {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 7vw;
  scroll-snap-align: start;
  position: relative;
}

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(oklch(0.3 0.02 255 / 0.6) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.3 0.02 255 / 0.6) 1px, transparent 1px);
  background-size: 40px 40px;
}

.slide-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted-foreground);
  max-width: 640px;
  line-height: 1.55;
  margin: 0 0 2rem;
}

.accent {
  color: var(--primary);
}

.panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
}

@media (max-width: 700px) {
  .tile-grid { grid-template-columns: 1fr; }
}

.tile {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.tile h3 {
  font-size: 1.05rem;
  margin: 0.75rem 0 0.4rem;
  font-weight: 700;
}

.tile p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.icon-circle {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: oklch(0.72 0.18 130 / 0.12);
  border: 1px solid oklch(0.72 0.18 130 / 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.icon-circle svg { width: 1.3rem; height: 1.3rem; }

.bullet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }

.bullet-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--foreground);
}

.bullet-list li svg {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--primary);
  margin-top: 0.15rem;
}

.bullet-list .sub {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.88rem;
  margin-top: 0.15rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  display: inline-block;
}

/* ---- Hero ---- */
.hero-wordmark {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.7rem;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1410;
}

.hero-logo svg { width: 1.7rem; height: 1.7rem; }

.hero-wordmark span {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cta-button {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: var(--primary);
  color: #0b1410;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* ---- Schedule grid mockup ---- */
.mockup-schedule {
  width: 100%;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 0.78rem;
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.mockup-toolbar .kw {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  padding: 0.1rem 0.4rem;
}

.mockup-today-btn {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  background: oklch(0.72 0.18 130 / 0.12);
  border: 1px solid oklch(0.72 0.18 130 / 0.4);
  border-radius: 0.4rem;
  padding: 0.25rem 0.7rem;
}

.mockup-headrow {
  display: grid;
  grid-template-columns: 120px repeat(7, 1fr);
  background: var(--muted);
  border-bottom: 2px solid var(--border);
}

.mockup-headrow div {
  padding: 0.5rem 0.4rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--muted-foreground);
  letter-spacing: 0.02em;
}

.mockup-headrow div:first-child { text-align: left; }
.mockup-headrow .is-today { background: oklch(0.72 0.18 130 / 0.15); color: var(--primary); font-weight: 700; }

.mockup-team-label {
  margin: 0.7rem 0.7rem 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border: 1.5px solid;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.72rem;
}

.mockup-team-label .dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; }

.mockup-emprow {
  display: grid;
  grid-template-columns: 120px repeat(7, 1fr);
  padding: 0 0.7rem;
  margin-bottom: 0.3rem;
  gap: 0.25rem;
}

.mockup-emprow .name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: 600;
}

.mockup-emprow .name small { color: var(--muted-foreground); font-weight: 400; font-size: 0.62rem; }

.mockup-cell { min-height: 34px; border-radius: 0.4rem; }
.mockup-cell.is-today { background: oklch(0.72 0.18 130 / 0.07); }

.mockup-shift {
  border-radius: 0.35rem;
  padding: 0.2rem 0.3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mockup-shift .t { font-weight: 700; font-size: 0.68rem; }
.mockup-shift .h { font-size: 0.58rem; opacity: 0.75; }

.mockup-absence {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  border-radius: 0.3rem;
  padding: 0.25rem 0.1rem;
}

/* ---- Quick planner mockup ---- */
.mockup-planner {
  width: 100%;
  border: 2px solid oklch(0.72 0.18 130 / 0.4);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.3rem;
}

.mockup-pattern-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 0.6rem;
  margin-bottom: 0.6rem;
}

.mockup-pattern-row.active {
  border-color: var(--primary);
  background: oklch(0.72 0.18 130 / 0.08);
}

.mockup-pattern-row .num {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.4rem;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.mockup-pattern-row.active .num { border-color: var(--primary); background: var(--primary); color: #0b1410; }

.mockup-pattern-row .label { font-weight: 600; font-size: 0.88rem; }
.mockup-pattern-row .sub { font-size: 0.74rem; color: var(--muted-foreground); }

.mockup-offset {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.mockup-offset .chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 0.4rem;
  border: 1.5px solid var(--border);
  color: var(--muted-foreground);
}

.mockup-offset .chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #0b1410;
}

/* ---- Phone mockup ---- */
.phone-frame {
  width: 290px;
  border: 8px solid #0b1410;
  border-radius: 2rem;
  background: var(--background);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px oklch(0 0 0 / 0.6);
  margin: 0 auto;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  background: oklch(0.17 0.01 255 / 0.8);
}

.phone-header .who { font-size: 0.78rem; font-weight: 700; }
.phone-header .team { font-size: 0.65rem; color: var(--primary); }

.phone-toggle {
  display: flex;
  gap: 0.2rem;
  background: var(--muted);
  border-radius: 0.4rem;
  padding: 0.15rem;
  margin: 0.6rem 0.8rem;
}

.phone-toggle button {
  flex: 1;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.3rem 0;
  border-radius: 0.3rem;
  border: none;
  color: var(--muted-foreground);
  background: transparent;
}

.phone-toggle button.active { background: var(--primary); color: #0b1410; }

.phone-mine {
  margin: 0 0.8rem 0.8rem;
  border: 1px solid oklch(0.72 0.18 130 / 0.35);
  background: oklch(0.72 0.18 130 / 0.06);
  border-radius: 0.5rem;
  overflow: hidden;
}

.phone-mine .label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  padding: 0.35rem 0.6rem;
  border-bottom: 1px solid oklch(0.72 0.18 130 / 0.2);
}

.phone-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--muted-foreground);
  padding: 0.4rem 0.3rem 0.2rem;
}

.phone-days .today { color: var(--primary); font-weight: 700; }

.phone-shiftrow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
  padding: 0 0.3rem 0.5rem;
}

.phone-shiftcell {
  min-height: 30px;
  border-radius: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
}

.phone-team-card {
  margin: 0 0.8rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.phone-team-card .head {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.phone-team-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.6rem;
  font-size: 0.6rem;
  border-top: 1px solid var(--border);
}

.phone-team-card .row .dot { width: 0.4rem; height: 0.4rem; border-radius: 999px; margin-right: 0.3rem; display: inline-block; }

/* ---- Hierarchy diagram ---- */
.diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.diagram-node {
  padding: 0.7rem 1.4rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  border: 2px solid var(--primary);
  background: oklch(0.72 0.18 130 / 0.1);
  color: var(--primary);
}

.diagram-line { width: 2px; height: 1.8rem; background: var(--border); }

.diagram-row {
  display: flex;
  gap: 1.2rem;
  margin-top: 0;
}

.diagram-leaf {
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  background: var(--card);
}

.diagram-leaf small {
  display: block;
  color: var(--muted-foreground);
  font-weight: 400;
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

/* ---- Pain point list ---- */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; width: 100%; }
@media (max-width: 700px) { .pain-grid { grid-template-columns: 1fr; } }

.pain-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.pain-item .icon-circle {
  background: oklch(0.62 0.2 25 / 0.12);
  border-color: oklch(0.62 0.2 25 / 0.4);
  color: var(--destructive);
}

.pain-item h3 { margin: 0 0 0.25rem; font-size: 0.95rem; }
.pain-item p { margin: 0; font-size: 0.85rem; color: var(--muted-foreground); line-height: 1.45; }

/* ---- Nav UI ---- */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--primary);
  z-index: 50;
  transition: width 0.2s ease;
}

#dots {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 50;
}

#dots button {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

#dots button.active {
  background: var(--primary);
  border-color: var(--primary);
}

.slide-index {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
}
