/* From Skeptic to Builder — Apple dark mode aesthetic */

:root {
  /* Apple dark mode palette */
  --bg: #000000;
  --bg-elevated: #1c1c1e;
  --bg-card: #2c2c2e;
  --bg-card-hover: #3a3a3c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --text: #ffffff;
  --text-muted: #98989d;
  --text-dim: #6e6e73;

  /* Apple system colors */
  --accent: #0a84ff;          /* system blue */
  --accent-bright: #409cff;
  --accent-deep: #0058a8;
  --accent-bg: rgba(10, 132, 255, 0.12);
  --accent-border: rgba(10, 132, 255, 0.3);

  --good: #30d158;            /* system green */
  --bad: #ff453a;             /* system red */
  --warn: #ff9f0a;             /* system orange */
  --purple: #bf5af2;

  --note-bg: rgba(10, 132, 255, 0.08);
  --note-accent: #409cff;

  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "ss01";
}

::selection {
  background: var(--accent);
  color: var(--text);
}

/* Subtle background texture (dot grid like Apple keynote backgrounds) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Slide container
   ============================================ */

.deck {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 6rem;
  text-align: center;
  opacity: 0;
}

.slide.active {
  display: flex;
  opacity: 1;
  animation: slideEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideEnter {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.slide.active .animate-in {
  animation: itemIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.slide.active .animate-in:nth-child(2) { animation-delay: 0.1s; }
.slide.active .animate-in:nth-child(3) { animation-delay: 0.2s; }
.slide.active .animate-in:nth-child(4) { animation-delay: 0.3s; }
.slide.active .animate-in:nth-child(5) { animation-delay: 0.4s; }

@keyframes itemIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Typography
   ============================================ */

h1 {
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  color: var(--text);
}

p {
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  line-height: 1.45;
  max-width: 60ch;
  color: var(--text-muted);
  font-weight: 400;
}

.lead {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--text);
  font-weight: 400;
  line-height: 1.4;
}

.huge {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.0;
}

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

.muted {
  color: var(--text-muted);
}

.dim {
  color: var(--text-dim);
}

code, .mono {
  font-family: var(--mono);
  background: var(--bg-card);
  padding: 0.15em 0.45em;
  border-radius: 5px;
  font-size: 0.88em;
  color: var(--accent-bright);
  border: 1px solid var(--border);
}

pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  text-align: left;
  max-width: 80vw;
  overflow-x: auto;
  color: var(--text);
  white-space: pre-wrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  border: none;
}

/* ============================================
   Layout helpers
   ============================================ */

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.row {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  align-items: stretch;
  text-align: left;
}

.split > div {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.split .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-weight: 600;
}

.eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-bright);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

ul.bullets,
ol.bullets {
  list-style: none;
  text-align: left;
  margin: 1rem 0;
  padding: 0;
  max-width: 55ch;
}

ul.bullets li,
ol.bullets li {
  font-size: 1.25rem;
  padding: 0.55rem 0 0.55rem 1.75rem;
  position: relative;
  color: var(--text);
  line-height: 1.45;
}

ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 1.1rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

ol.bullets {
  counter-reset: step;
}
ol.bullets li {
  counter-increment: step;
}
ol.bullets li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent-bg);
  color: var(--accent-bright);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 2rem;
  border-radius: 0 12px 12px 0;
  max-width: 70ch;
  text-align: left;
}

.callout-bad { border-left-color: var(--bad); }
.callout-good { border-left-color: var(--good); }
.callout-warn { border-left-color: var(--warn); }

/* ============================================
   Cards / grids
   ============================================ */

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 1100px;
}

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}

.card.glow {
  background: linear-gradient(135deg, var(--bg-elevated), var(--accent-bg));
  border-color: var(--accent-border);
}

.card h4 {
  color: var(--text);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ============================================
   Top / bottom chrome (frosted glass)
   ============================================ */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.brand a { color: inherit; text-decoration: none; }
.brand .accent { color: var(--accent-bright); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.user-chip .role {
  background: var(--bg-card);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
}

.user-chip .role.teacher {
  color: var(--accent-bright);
  background: var(--accent-bg);
}

.user-chip a {
  color: var(--text-muted);
  text-decoration: none;
}

.user-chip a:hover { color: var(--text); }

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  gap: 1.5rem;
}

.progress {
  display: flex;
  gap: 3px;
  flex: 1;
  max-width: 60%;
}

.progress-dot {
  height: 3px;
  flex: 1;
  background: var(--border-strong);
  border-radius: 2px;
  transition: background 0.2s;
}

.progress-dot.passed { background: var(--accent-deep); }
.progress-dot.current { background: var(--accent); }

.slide-counter {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.hint {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   Teacher notes
   ============================================ */

.teacher-notes { display: none; }

body.teacher-mode .teacher-notes {
  display: block;
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  max-height: 35vh;
  overflow-y: auto;
  background: rgba(28, 28, 30, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  text-align: left;
  z-index: 50;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.teacher-notes .notes-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-bright);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.teacher-notes p,
.teacher-notes li {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0.25rem 0;
}

.teacher-notes ul {
  padding-left: 1.25rem;
  margin: 0.25rem 0;
}

.teacher-notes strong { color: var(--accent-bright); }

.teacher-notes .time {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent-bright);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-right: 0.5rem;
  font-weight: 600;
}

/* ============================================
   Video / demo components
   ============================================ */

/* Video demo wrapper */
.video-demo {
  position: relative;
  display: inline-block;
  max-width: 90vw;
}

.video-demo .demo-replay {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
}

.video-demo .demo-replay:hover {
  background: var(--accent-bg);
  color: var(--accent-bright);
  border-color: var(--accent-border);
}

/* "Claude window" — a fake Claude UI that demos prompt/response */
.claude-window {
  background: #0a0a0a;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  width: min(720px, 90vw);
  box-shadow: 0 16px 50px rgba(0,0,0,0.6);
  text-align: left;
}

.claude-window .cw-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #161618;
  border-bottom: 1px solid var(--border);
}

.claude-window .cw-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #444;
}
.claude-window .cw-dot.r { background: #ff5f57; }
.claude-window .cw-dot.y { background: #febc2e; }
.claude-window .cw-dot.g { background: #28c840; }

.claude-window .cw-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: -0.005em;
}

.claude-window .cw-body {
  padding: 1.5rem;
  min-height: 100px;
  max-height: 50vh;
  overflow-y: auto;
}

.cw-message {
  margin-bottom: 1rem;
}

.cw-message .who {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.cw-message.user .text {
  background: var(--bg-card);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 12px 12px 12px 4px;
  font-size: 0.95rem;
  line-height: 1.45;
  display: inline-block;
  max-width: 90%;
}

.cw-message.claude .text {
  color: var(--text);
  padding: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
  display: block;
}

.cw-message.claude .text strong { color: var(--text); }
.cw-message.claude .text em { color: var(--accent-bright); font-style: normal; }

/* Typewriter effect */
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: pre-wrap;
  border-right: 2px solid var(--accent);
  animation: blinkCaret 0.75s step-end infinite;
}

@keyframes blinkCaret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent); }
}

.typewriter.done {
  border-right-color: transparent;
  animation: none;
}

/* Bad vs good comparison */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 1100px;
  align-items: stretch;
}

.comp-side {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: left;
}

.comp-side .verdict {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.comp-side.bad { border-color: rgba(255, 69, 58, 0.3); }
.comp-side.bad .verdict { color: var(--bad); }
.comp-side.good { border-color: var(--accent-border); }
.comp-side.good .verdict { color: var(--accent-bright); }

.comp-side .prompt-mini,
.comp-side .response-mini {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--bg-card);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0.5rem 0;
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
}

.comp-side .response-mini {
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lever cards (Session 2) */
.levers {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 720px;
}

.lever {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: left;
  opacity: 0;
  transform: translateX(-20px);
  animation: leverIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide.active .lever:nth-child(1) { animation-delay: 0.2s; }
.slide.active .lever:nth-child(2) { animation-delay: 0.5s; }
.slide.active .lever:nth-child(3) { animation-delay: 0.8s; }
.slide.active .lever:nth-child(4) { animation-delay: 1.1s; }
.slide.active .lever:nth-child(5) { animation-delay: 1.4s; }

@keyframes leverIn {
  to { opacity: 1; transform: translateX(0); }
}

.lever-num {
  background: var(--accent-bg);
  color: var(--accent-bright);
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  border: 1px solid var(--accent-border);
  font-feature-settings: "tnum";
}

.lever-name {
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--text);
  min-width: 130px;
  letter-spacing: -0.01em;
}

.lever-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

/* Memory stack (Session 3) */
.memory-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(620px, 90vw);
}

.memory-layer {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: layerIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide.active .memory-layer:nth-child(1) { animation-delay: 0.3s; }
.slide.active .memory-layer:nth-child(2) { animation-delay: 0.7s; }
.slide.active .memory-layer:nth-child(3) { animation-delay: 1.1s; }

@keyframes layerIn {
  to { opacity: 1; transform: translateY(0); }
}

.memory-layer .layer-num {
  background: var(--accent-bg);
  color: var(--accent-bright);
  font-weight: 700;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--accent-border);
}

.memory-layer .layer-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

.memory-layer .layer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* Connector reach diagram (Session 5) */
.reach-diagram {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.reach-diagram .claude-icon {
  background: var(--accent-bg);
  color: var(--accent-bright);
  border: 1px solid var(--accent-border);
  width: 80px;
  height: 80px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.reach-diagram .arrow {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--text-dim), var(--accent));
  position: relative;
  max-width: 220px;
}

.reach-diagram .arrow::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--accent);
}

.reach-diagram .apps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reach-diagram .app {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text);
  opacity: 0;
  animation: appReveal 0.4s ease forwards;
}

.slide.active .reach-diagram .app:nth-child(1) { animation-delay: 0.5s; }
.slide.active .reach-diagram .app:nth-child(2) { animation-delay: 0.8s; }
.slide.active .reach-diagram .app:nth-child(3) { animation-delay: 1.1s; }
.slide.active .reach-diagram .app:nth-child(4) { animation-delay: 1.4s; }

@keyframes appReveal {
  to { opacity: 1; }
}

/* AI landscape (Session 8) */
.landscape-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 1100px;
}

.model-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: left;
}

.model-card.primary {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, var(--bg-elevated), var(--accent-bg));
}

.model-card h4 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.015em;
}

.model-card .maker {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.model-card .desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Login */
.login-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  width: min(420px, 90vw);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.login-card h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.login-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-card input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.login-card input::placeholder { color: var(--text-dim); }

.login-card input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.login-card button {
  background: var(--accent);
  color: var(--text);
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
  margin-top: 0.25rem;
  letter-spacing: -0.005em;
}

.login-card button:hover { background: var(--accent-bright); }
.login-card button:active { transform: scale(0.98); }

.login-card .error {
  color: var(--bad);
  font-size: 0.9rem;
  min-height: 1.25rem;
}

/* Landing / index */
.landing {
  display: block;
  overflow-y: auto;
  padding: 5rem 2rem 3rem;
  height: 100vh;
}

.landing-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.landing h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -0.035em;
}

.landing .tagline {
  color: var(--accent-bright);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 600;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.session-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.session-tile:hover {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, var(--bg-elevated), var(--accent-bg));
  transform: translateY(-2px);
}

.session-tile .number {
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.session-tile h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: -0.015em;
}

.session-tile p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.session-tile.bonus { background: var(--bg-card); }
.session-tile.bonus .number { color: var(--text-dim); }

/* Dashboard */
.dashboard {
  display: block;
  overflow-y: auto;
  padding: 5rem 2rem 3rem;
  height: 100vh;
}

.dashboard-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 2rem 0;
}

.stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: left;
}

.stat .stat-label {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.stat .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

table.activity-log {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

table.activity-log th {
  text-align: left;
  padding: 1rem;
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

table.activity-log td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

table.activity-log tr:last-child td { border-bottom: none; }
table.activity-log td.session { color: var(--text); font-weight: 500; }
table.activity-log td.duration { font-family: var(--mono); color: var(--accent-bright); }

/* Responsive */
@media (max-width: 768px) {
  .slide { padding: 5rem 1.5rem 4rem; }
  .split, .grid-2, .grid-3, .grid-4, .landscape-grid, .comparison { grid-template-columns: 1fr; }
  .reach-diagram { flex-direction: column; gap: 1rem; }
  .reach-diagram .arrow {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-dim), var(--accent));
  }
  .reach-diagram .arrow::after {
    right: 50%;
    top: auto;
    bottom: -8px;
    transform: translateX(50%);
    border: 6px solid transparent;
    border-top-color: var(--accent);
    border-left-color: transparent;
  }
}
