/* =========================================================
 * Search Optimisation for AI Chatbots — v2
 * Hand-built Funnelysis style: persistent top bar, striped
 * section chips, hatched yellow callout bands, centered
 * titles, light atmosphere, no dark slide backgrounds.
 * ========================================================= */

:root {
  /* TYPE SCALE — matched to Rudranil's hand-built decks @ 1920x1080 */
  --type-cover-title: 96px;
  --type-cover-sub: 36px;
  --type-title: 52px;
  --type-subtitle: 30px;
  --type-body: 26px;
  --type-small: 24px;
  --type-label: 20px;
  --type-bar: 18px;

  /* SPACING */
  --pad-x: 100px;
  --pad-top: 130px;       /* leaves room for bar + chip */
  --pad-bottom: 70px;
  --gap-title: 50px;
  --gap-item: 18px;

  /* CHROME */
  --bar-h: 56px;
  --chip-offset: 76px;    /* vertical pos of section chip below bar top */
}

/* ===== Base section ===== */
deck-stage > section {
  font-family: var(--font-body);
  color: var(--primary-purple);
  background: var(--background-gray);
  overflow: hidden;
  font-weight: var(--weight-light);
}

/* ===== Atmosphere (light, subtle) ===== */
.atmos {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--background-gray);
  background-image:
    linear-gradient(to bottom,
      rgba(255,255,255,1.0) 0%,
      rgba(240,240,240,0.2) 100%),
    url('images/bg.svg');
  background-repeat: repeat;
  background-size: auto, 64px 64px;
}
.atmos .b {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(242, 191, 98, 0.32);
  box-shadow: 0 0 36px rgba(242, 191, 98, 0.22),
              inset 0 0 30px rgba(255, 255, 255, 0.5);
  will-change: transform;
}
.atmos .b::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), rgba(255,255,255,0) 65%);
}
/* Place bubbles outside core content zones */
.atmos .b1 { top: -8%;  left: -6%; width: 560px; height: 560px; animation: drift1 38s ease-in-out infinite; }
.atmos .b2 { top: 58%;  left: 78%; width: 520px; height: 520px; animation: drift2 44s ease-in-out infinite reverse; }
.atmos .b3 { top: 70%;  left: -4%; width: 380px; height: 380px; animation: drift3 28s ease-in-out infinite; }
.atmos .b4 { top: -8%;  left: 70%; width: 320px; height: 320px; animation: drift1 33s ease-in-out infinite reverse; }
.atmos .b5 { top: 38%;  left: 42%; width: 220px; height: 220px; animation: drift3 24s ease-in-out infinite; }

@keyframes drift1 {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(60px, -50px); }
  50% { transform: translate(-30px, 80px); }
  75% { transform: translate(50px, 30px); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0); }
  30% { transform: translate(50px, -70px); }
  70% { transform: translate(-60px, 50px); }
}
@keyframes drift3 {
  0%,100% { transform: translate(0,0); }
  40% { transform: translate(-40px, -50px); }
  80% { transform: translate(60px, 30px); }
}

/* ===== Persistent top bar ===== */
.topbar {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--bar-h);
  background: var(--primary-purple);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  z-index: 10;
  color: var(--white);
}
.topbar .brand-mark {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
}
.topbar .brand-mark img { height: 32px; width: auto; }
.topbar .bar-left {
  font-size: var(--type-bar);
  font-weight: var(--weight-regular);
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.topbar .bar-right {
  font-size: var(--type-bar);
  font-weight: var(--weight-regular);
  letter-spacing: 0.04em;
}

/* ===== Section chip (top-left, striped) ===== */
.section-chip {
  position: absolute;
  top: var(--chip-offset);
  left: 0;
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px;
  padding: 0 28px 0 var(--pad-x);
  font-size: var(--type-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-purple);
  background-color: rgba(255,255,255,0.85);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(63, 61, 85, 0.12) 0,
    rgba(63, 61, 85, 0.12) 1.5px,
    transparent 1.5px,
    transparent 4.5px
  );
  z-index: 5;
}

/* ===== Slide frame ===== */
.frame {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  display: flex; flex-direction: column;
  box-sizing: border-box;
}

/* ===== Centered slide title ===== */
.slide-title {
  font-size: var(--type-title);
  font-weight: var(--weight-medium);
  text-align: center;
  margin: 0 auto;
  max-width: 1500px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--primary-purple);
}
.slide-subtitle {
  font-size: var(--type-subtitle);
  font-weight: var(--weight-light);
  text-align: center;
  margin: 18px auto 0;
  max-width: 1400px;
  line-height: 1.35;
  color: var(--primary-purple);
  opacity: 0.75;
}

/* ===== Body text ===== */
.body {
  font-size: var(--type-body);
  line-height: 1.5;
  font-weight: var(--weight-light);
  text-wrap: pretty;
  color: var(--primary-purple);
}
.small {
  font-size: var(--type-small);
  line-height: 1.5;
  font-weight: var(--weight-light);
}
.label {
  font-size: var(--type-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.muted { opacity: 0.65; }
.strong { font-weight: var(--weight-medium); }
.yellow { color: var(--primary-yellow); }
.purple { color: var(--primary-purple); }

/* ===== Hatched yellow callout band (signature element) ===== */
.hatch {
  display: block;
  background-color: transparent;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(242, 191, 98, 0.35) 0,
    rgba(242, 191, 98, 0.35) 2px,
    transparent 2px,
    transparent 5.5px
  );
  padding: 18px 32px;
  border-radius: 6px;
  font-size: var(--type-body);
  line-height: 1.45;
  color: var(--primary-purple);
  font-weight: var(--weight-light);
}
.hatch.hatch-tight { padding: 12px 24px; font-size: var(--type-small); }
.hatch.hatch-strong { font-weight: var(--weight-regular); }

/* Small striped label (used inline as mini chips inside content) */
.chip-stripe {
  display: inline-block;
  padding: 6px 18px;
  font-size: var(--type-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-purple);
  background-color: rgba(255,255,255,0.7);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(63, 61, 85, 0.1) 0,
    rgba(63, 61, 85, 0.1) 1px,
    transparent 1px,
    transparent 3.5px
  );
}

/* ===== Layout helpers ===== */
.row { display: flex; gap: 32px; }
.col { display: flex; flex-direction: column; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.cols-2-tight { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.cols-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.grow { flex: 1; }
.spacer-sm { height: 16px; }
.spacer-md { height: 32px; }
.spacer-lg { height: 48px; }
.center { display: flex; align-items: center; justify-content: center; }
.tx-center { text-align: center; }

/* ===== Bullet / numbered list ===== */
.dotlist {
  list-style: none;
  display: flex; flex-direction: column; gap: var(--gap-item);
  font-size: var(--type-body); line-height: 1.45;
  font-weight: var(--weight-light);
  margin: 0; padding: 0;
}
.dotlist li {
  display: flex; gap: 18px; align-items: flex-start;
}
.dotlist li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px; height: 10px;
  margin-top: 14px;
  background: var(--primary-yellow);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(242,191,98,0.5);
}
.dotlist.tight { gap: 12px; font-size: var(--type-small); }
.dotlist.tight li::before { margin-top: 12px; width: 8px; height: 8px; flex-basis: 8px; }

/* Big-number variant (1, 2, 3 floating numerals) */
.numlist {
  list-style: none;
  display: flex; flex-direction: column; gap: 28px;
  font-size: var(--type-body); line-height: 1.4;
  font-weight: var(--weight-light);
  margin: 0; padding: 0;
}
.numlist li {
  display: flex; gap: 26px; align-items: flex-start;
}
.numlist li .n {
  flex: 0 0 56px;
  font-size: 56px;
  font-weight: var(--weight-light);
  color: var(--primary-purple);
  opacity: 0.25;
  line-height: 1;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: 14px;
  padding: 26px 32px;
  box-shadow: 0 0.5rem 1.25rem var(--purple-08);
  display: flex; flex-direction: column; gap: 10px;
  font-size: var(--type-small); line-height: 1.45;
}
.card .card-title {
  font-size: 28px;
  font-weight: var(--weight-medium);
  line-height: 1.2;
}
.card .card-label {
  font-size: var(--type-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-yellow);
}
.card .card-body { font-size: var(--type-small); line-height: 1.5; }

/* Two-column comparison cards */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
}
.compare .col-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 32px 30px;
  box-shadow: 0 0.5rem 1.25rem var(--purple-08);
  display: flex; flex-direction: column; gap: 14px;
}
.compare .col-card.is-good,
.compare .col-card.is-bad { border-top: 5px solid #e76b6b; }
/* Exercise: hide the answer-revealing tag inside compare cards. */
.compare .col-card .tag.good,
.compare .col-card .tag.bad { display: none; }
.compare .col-card .ex-label {
  font-size: var(--type-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-purple);
  opacity: 0.55;
}
.compare .col-card .ex-text {
  font-size: var(--type-small);
  line-height: 1.5;
  font-weight: var(--weight-light);
}
.tag {
  display: inline-flex; align-items: center; padding: 4px 14px;
  border-radius: 999px;
  font-size: var(--type-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.tag.good { background: rgba(76, 175, 80, 0.18); color: #2f7a32; }
.tag.bad  { background: rgba(231, 107, 107, 0.18); color: #b73d3d; }
.tag.yellow { background: var(--yellow-20); color: var(--primary-purple); }
.tag.purple { background: var(--purple-10); color: var(--primary-purple); }

/* ===== Tables ===== */
.dtable {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.25rem var(--purple-08);
  font-size: var(--type-small);
}
.dtable th, .dtable td {
  text-align: left;
  padding: 16px 28px;
  border-bottom: 1px solid var(--purple-05);
  vertical-align: top;
  line-height: 1.4;
}
.dtable thead th {
  background: var(--primary-purple);
  color: var(--white);
  font-size: var(--type-label);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 16px 28px;
}
.dtable tbody tr:last-child td { border-bottom: none; }
.dtable td.col-strong { font-weight: var(--weight-medium); }

/* ===== URL browser frame ===== */
.url-frame {
  margin: 0 auto;
  width: 80%;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 1rem 2rem var(--purple-15);
  padding: 18px 22px;
  display: flex; flex-direction: column;
}
.url-frame .browser-bar {
  display: flex; align-items: center; gap: 14px;
}
.url-frame .lights { display: flex; gap: 8px; }
.url-frame .lights span { width: 12px; height: 12px; border-radius: 50%; background: var(--purple-10); }
.url-frame .url {
  flex: 1;
  background: var(--background-gray);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 24px;
  color: var(--primary-purple);
  display: flex; align-items: center; gap: 12px;
}
.url-frame .url::before {
  content: "🔒"; font-size: 16px; opacity: 0.5;
}
.url-frame .screen-hint {
  margin-top: 16px;
  padding: 200px 0;
  text-align: center;
  font-size: var(--type-body);
  color: var(--primary-purple);
  opacity: 0.35;
  border-top: 1px dashed var(--purple-10);
}

/* ===== Flow / numbered steps ===== */
.flow {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.flow .step {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white);
  border-radius: 12px;
  padding: 18px 18px 20px;
  box-shadow: 0 0.25rem 0.75rem var(--purple-05);
  text-align: left;
}
.flow .step .n {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-yellow);
  color: var(--primary-purple);
  font-size: 20px; font-weight: var(--weight-medium);
}
.flow .step .t { font-size: 20px; font-weight: var(--weight-medium); line-height: 1.25; }
.flow .step .d { font-size: 18px; line-height: 1.4; opacity: 0.7; }

/* ===== Code block ===== */
.code {
  background: var(--primary-purple);
  color: #f6f6f6;
  font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  line-height: 1.55;
  border-radius: 12px;
  padding: 18px 24px;
  white-space: pre;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.25rem var(--purple-08);
}
.code .k { color: var(--primary-yellow); }
.code .s { color: #d8c7ff; }

/* ===== Big stat (used sparingly, no dark bg) ===== */
.bigstat {
  display: flex; flex-direction: column; align-items: flex-start;
}
.bigstat .num {
  font-size: 200px;
  font-weight: var(--weight-medium);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--primary-yellow);
  display: inline-block;
}
.bigstat .num-unit {
  font-size: 80px;
  font-weight: var(--weight-light);
  opacity: 0.55;
  margin-left: 8px;
  color: var(--primary-yellow);
}
.bigstat .num-caption {
  font-size: var(--type-subtitle);
  font-weight: var(--weight-light);
  margin-top: 28px;
  max-width: 900px;
  line-height: 1.35;
  color: var(--primary-purple);
}

/* ===== Failure-mode segments bar ===== */
.segments {
  display: flex; width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.25rem var(--purple-08);
  height: 90px;
  margin-top: 22px;
}
.segments .seg {
  display: flex; flex-direction: column; justify-content: center;
  padding: 14px 20px;
  color: var(--white);
  min-width: 0;
}
.segments .seg .seg-pct { font-size: 30px; font-weight: var(--weight-medium); line-height: 1; }
.segments .seg .seg-label { font-size: 16px; margin-top: 4px; opacity: 0.95; line-height: 1.25; }

/* ===== Cover slide ===== */
.cover-slide .frame {
  align-items: center; justify-content: center;
  text-align: center;
  padding-top: 130px; padding-bottom: 120px;
}
.cover-slide .cover-eyebrow {
  font-size: var(--type-label);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--primary-yellow);
  font-weight: var(--weight-medium);
  margin-bottom: 32px;
}
.cover-slide h1 {
  font-size: var(--type-cover-title);
  font-weight: var(--weight-medium);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 1500px;
}
.cover-slide .cover-sub {
  font-size: var(--type-cover-sub);
  font-weight: var(--weight-light);
  line-height: 1.35;
  margin-top: 30px;
  max-width: 1300px;
  opacity: 0.78;
}
.cover-slide .cover-meta {
  margin-top: 70px;
  font-size: var(--type-body);
  font-weight: var(--weight-light);
}
.cover-slide .cover-meta .name {
  font-weight: var(--weight-medium);
  font-size: 30px;
}
.cover-slide .cover-meta .contact { font-size: var(--type-small); opacity: 0.7; margin-top: 4px; }

/* ===== Statement / closing slide ===== */
.statement {
  font-size: 48px;
  font-weight: var(--weight-light);
  line-height: 1.4;
  text-align: center;
  max-width: 1500px;
  margin: 0 auto;
  color: var(--primary-purple);
}
.statement .y { color: var(--primary-yellow); font-weight: var(--weight-medium); }

/* ===== Misc ===== */
.outline-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--purple-10);
  border-radius: 10px;
  padding: 18px 22px;
}
