/* =========================================================
   Pitch-deck slide styles — 1280×720 base, 16:9
   ========================================================= */

.slide {
  position: relative;
  width: 1280px;
  height: 720px;
  background: #fff;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--jr-gray-800);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  border-radius: 2px;
  flex-shrink: 0;
}
.slide * { box-sizing: border-box; }
.slide h1, .slide h2, .slide h3, .slide h4, .slide p, .slide ul, .slide ol { margin: 0; padding: 0; }
.slide ul { list-style: none; }

/* Shared parts ---------------------------------------- */
.slide .eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--jr-blue-700);
}
.slide .eyebrow.on-dark { color: var(--jr-blue-300); }
.slide .slide-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 88px;
  line-height: .98;
  letter-spacing: .005em;
  color: var(--jr-gray-900);
  text-wrap: balance;
}
.slide .slide-title .accent { color: var(--jr-blue-700); }
.slide .slide-title.on-dark { color: #fff; }
.slide .slide-title.on-dark .accent { color: var(--jr-blue-300); }

.slide .footer-bar {
  position: absolute;
  bottom: 28px;
  left: 56px;
  right: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jr-gray-500);
}
.slide .footer-bar.on-dark { color: rgba(255,255,255,.5); }
.slide .footer-bar img { height: 22px; }
.slide .footer-bar .center {
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
}
.slide .footer-bar .pg {
  font-variant-numeric: tabular-nums;
}
/* Hide event name (first span) + center logo on every slide footer — just leave the page number. */
.slide .footer-bar > span:first-child,
.slide .footer-bar .center {
  display: none;
}
.slide .footer-bar {
  justify-content: flex-end;
}

.slide .pad {
  position: absolute;
  inset: 84px 80px 84px 80px;
}

/* Splatter texture --- decorative svg-data background -------- */
.splatter-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 12% 22%, rgba(255,255,255,.12), transparent 38%),
    radial-gradient(ellipse at 90% 86%, rgba(141,177,203,.32), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(62,121,163,.28), transparent 60%),
    linear-gradient(170deg, #0F3A5A 0%, #174C72 45%, #225A85 100%);
}
.splatter-bg::before, .splatter-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: .9;
}
.splatter-bg::before {
  background-image:
    radial-gradient(circle, #fff 18%, transparent 19%),
    radial-gradient(circle, #fff 18%, transparent 19%),
    radial-gradient(circle, #fff 18%, transparent 19%),
    radial-gradient(circle, #fff 18%, transparent 19%),
    radial-gradient(circle, #fff 18%, transparent 19%),
    radial-gradient(circle, #fff 18%, transparent 19%),
    radial-gradient(circle, #fff 18%, transparent 19%),
    radial-gradient(circle, #fff 18%, transparent 19%);
  background-size: 4px 4px, 6px 6px, 3px 3px, 5px 5px, 7px 7px, 4px 4px, 5px 5px, 3px 3px;
  background-position:
    8% 14%, 14% 8%, 22% 18%, 4% 28%, 18% 32%,
    88% 78%, 92% 90%, 86% 84%;
  opacity: .55;
}
.splatter-bg::after {
  background-image:
    radial-gradient(circle, rgba(141,177,203,.9) 18%, transparent 19%),
    radial-gradient(circle, rgba(141,177,203,.9) 18%, transparent 19%),
    radial-gradient(circle, rgba(141,177,203,.9) 18%, transparent 19%),
    radial-gradient(circle, rgba(141,177,203,.9) 18%, transparent 19%),
    radial-gradient(circle, rgba(141,177,203,.9) 18%, transparent 19%),
    radial-gradient(circle, rgba(141,177,203,.9) 18%, transparent 19%);
  background-size: 8px 8px, 12px 12px, 6px 6px, 10px 10px, 14px 14px, 7px 7px;
  background-position:
    3% 8%, 11% 20%, 18% 4%, 6% 38%, 21% 26%, 9% 14%;
  opacity: .5;
}

/* ---------- COVER SLIDE ---------- */
.slide.cover {
  color: #fff;
}
.slide.cover .splatter-bg { z-index: 0; }
.slide.cover .hero-photo {
  position: absolute;
  inset: 0; left: 50%;
  background-size: cover;
  background-position: center;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}
.slide.cover .hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(15,58,90,.95) 0%, rgba(15,58,90,.6) 22%, rgba(15,58,90,0) 60%);
}
.slide.cover .cover-pad {
  position: absolute; inset: 0;
  padding: 64px 72px;
  display: flex; flex-direction: column;
  z-index: 2;
  color: #fff;
}
.slide.cover .corner-logo img {
  height: 56px;
}
.slide.cover .cover-center {
  margin: auto 0;
  max-width: 720px;
}
.slide.cover .cover-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--jr-blue-300);
  margin-bottom: 16px;
}
.slide.cover .cover-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 92px;
  line-height: .96;
  letter-spacing: .005em;
  margin-bottom: 18px;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.slide.cover .cover-tag {
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--jr-blue-100);
  line-height: 1.45;
  max-width: 480px;
  margin-bottom: 34px;
}
.slide.cover .cover-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 4px 36px;
  font-size: 14px;
  color: #D9E6F0;
}
.slide.cover .cover-grid dt {
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--jr-blue-300);
}
.slide.cover .cover-grid dd {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.slide.cover .cover-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.slide.cover .cover-foot .left .for {
  font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 700;
  color: var(--jr-blue-300); margin-bottom: 6px;
}
.slide.cover .cover-foot .left .client {
  font-size: 30px; font-weight: 800; color: #fff; letter-spacing: .005em;
}
.slide.cover .cover-foot .left img.client-logo {
  max-height: 56px; max-width: 220px;
  margin-top: 14px;
  filter: brightness(0) invert(1);
}
.slide.cover .cover-foot .tagline-strip {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
}
.slide.cover .cover-foot .tagline-strip i {
  font-style: normal;
  color: var(--jr-blue-300);
}
.slide.cover .cover-foot .tagline-strip span {
  color: rgba(255,255,255,.32);
  margin: 0 14px;
  font-weight: 400;
}

/* ---------- AGENDA SLIDE ---------- */
.slide.agenda .pad { display: flex; flex-direction: column; }
.slide.agenda .head { margin-bottom: 36px; }
.slide.agenda .head .eyebrow { margin-bottom: 12px; }
.slide.agenda .days {
  display: grid;
  grid-template-columns: repeat(var(--days, 3), 1fr);
  gap: 24px;
  flex: 1;
}
.slide.agenda .day {
  background: var(--jr-blue-50);
  border-top: 5px solid var(--jr-blue-700);
  border-radius: 2px;
  padding: 24px 24px 22px;
  display: flex; flex-direction: column;
  min-height: 0;
}
.slide.agenda .day .num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jr-blue-700);
  margin-bottom: 4px;
}
.slide.agenda .day .date {
  font-size: 22px;
  font-weight: 800;
  color: var(--jr-gray-900);
  margin-bottom: 16px;
}
.slide.agenda .day .item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(34,90,133,.12);
  font-size: 14px;
}
.slide.agenda .day .item:first-of-type { border-top: 0; padding-top: 0; }
.slide.agenda .day .item .t {
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em;
  color: var(--jr-blue-700);
}
.slide.agenda .day .item .title {
  font-size: 14px; font-weight: 700; color: var(--jr-gray-900); line-height: 1.3;
}
.slide.agenda .day .item .detail {
  font-size: 12px; color: var(--jr-gray-600); margin-top: 2px; line-height: 1.4;
}

/* ---------- SERVICE SLIDE ---------- */
.slide.service { display: grid; grid-template-columns: 1fr 1fr; }
.slide.service.flip { grid-template-columns: 1fr 1fr; }
.slide.service .img {
  background: linear-gradient(135deg, var(--jr-blue-500), var(--jr-blue-900));
  background-size: cover;
  background-position: center;
  position: relative;
}
.slide.service .img .ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,.45);
  font-size: 13px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.slide.service .img .badge {
  position: absolute;
  top: 36px; left: 36px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
}
.slide.service.flip .img { order: 2; }
.slide.service.flip .img .badge { left: auto; right: 36px; }
.slide.service .copy {
  padding: 72px 56px 96px;
  display: flex; flex-direction: column;
}
.slide.service .copy .eyebrow { margin-bottom: 14px; }
.slide.service .copy .slide-title { font-size: 60px; margin-bottom: 22px; line-height: 1; }
.slide.service .copy .narrative {
  font-size: 16px;
  line-height: 1.65;
  color: var(--jr-gray-800);
  margin-bottom: 22px;
  max-width: 32em;
  white-space: pre-wrap;
}
.slide.service .copy .highlights {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.slide.service .copy .highlights li {
  display: grid; grid-template-columns: 24px 1fr;
  align-items: start;
  font-size: 14px; line-height: 1.5;
  color: var(--jr-gray-900); font-weight: 600;
}
.slide.service .copy .highlights li::before {
  content: "";
  width: 14px; height: 2px;
  background: var(--jr-blue-700);
  margin-top: 10px;
}

/* ---------- TEAM SLIDE ---------- */
.slide.team .pad { display: flex; flex-direction: column; }
.slide.team .head { margin-bottom: 36px; }
.slide.team .head .eyebrow { margin-bottom: 12px; }
.slide.team .grid {
  display: grid;
  grid-template-columns: repeat(var(--team-cols, 3), 1fr);
  gap: 28px;
  flex: 1;
}
.slide.team .member {
  display: flex; flex-direction: column;
}
.slide.team .photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--jr-blue-300), var(--jr-blue-900));
  background-size: cover; background-position: center;
  border-radius: 2px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 56px;
  letter-spacing: .04em;
  margin-bottom: 14px;
  overflow: hidden;
}
.slide.team .name {
  font-size: 22px; font-weight: 800;
  color: var(--jr-gray-900); line-height: 1.15;
}
.slide.team .role {
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--jr-blue-700);
  margin: 6px 0 10px;
}
.slide.team .bio {
  font-size: 13px; line-height: 1.55; color: var(--jr-gray-700);
}

/* ---------- PRICING SLIDE ---------- */
.slide.pricing .pad { display: flex; flex-direction: column; }
.slide.pricing .head { margin-bottom: 24px; }
.slide.pricing .head .eyebrow { margin-bottom: 10px; }
.slide.pricing .head .slide-title { font-size: 64px; }
.slide.pricing .body {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px;
  flex: 1;
}
.slide.pricing .cats { overflow: hidden; }
.slide.pricing .cat {
  display: grid; grid-template-columns: 1fr auto;
  padding: 10px 0;
  border-bottom: 1px solid var(--jr-gray-200);
  font-size: 16px;
}
.slide.pricing .cat .label {
  display: flex; flex-direction: column;
}
.slide.pricing .cat .label .name {
  font-weight: 800; color: var(--jr-gray-900); font-size: 16px;
}
.slide.pricing .cat .label .lines {
  font-size: 11px; color: var(--jr-gray-500); margin-top: 3px;
}
.slide.pricing .cat .amt {
  font-weight: 800; font-size: 18px; color: var(--jr-gray-900);
  font-variant-numeric: tabular-nums;
}
.slide.pricing .summary {
  background: var(--jr-blue-900);
  color: #fff;
  padding: 32px;
  border-radius: 2px;
  display: flex; flex-direction: column;
}
.slide.pricing .summary .lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jr-blue-300);
  margin-bottom: 6px;
}
.slide.pricing .summary .grand {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: .005em;
  line-height: 1;
  margin-bottom: 22px;
}
.slide.pricing .summary .by-line {
  font-size: 13px; color: var(--jr-blue-100); margin-bottom: 22px;
}
.slide.pricing .summary .row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: var(--jr-blue-100);
}
.slide.pricing .summary .row.subtotal { color: #fff; font-weight: 700; }
.slide.pricing .note {
  margin-top: 18px;
  font-size: 11px;
  color: var(--jr-gray-600);
  line-height: 1.6;
  font-style: italic;
  border-top: 1px solid var(--jr-gray-200);
  padding-top: 14px;
}

/* =========================================================
   Preview wrapper scaling
   ========================================================= */
.slide-frame {
  position: relative;
  width: 960px;            /* 1280 * 0.75 */
  height: 540px;           /* 720 * 0.75 */
  margin: 0;
}
.slide-frame .slide {
  transform: scale(0.75);
  transform-origin: top left;
}

/* =========================================================
   Print (PDF export) — one slide per page, landscape
   ========================================================= */
@media print {
  @page { size: 13.333in 7.5in; margin: 0; }
  html, body { background: #fff; }
  .topbar, .form-panel, .preview-controls, .toast, .photo-library-modal { display: none !important; }
  .app { display: block !important; height: auto !important; }
  .preview-panel { padding: 0 !important; overflow: visible !important; background: #fff !important; grid-area: auto !important; }
  .preview-stack { gap: 0 !important; }
  .slide-frame {
    width: 13.333in !important; height: 7.5in !important;
    page-break-after: always;
  }
  .slide-frame:last-child { page-break-after: auto; }
  .slide-frame .slide {
    transform: scale(calc(13.333 * 96 / 1280)) !important;
    transform-origin: top left;
  }
  .slide { box-shadow: none !important; border-radius: 0 !important; }
}

/* =========================================================
   Present mode — fullscreen, one slide at a time
   ========================================================= */
body.present-mode .topbar,
body.present-mode .form-panel,
body.present-mode .preview-controls,
body.present-mode .page-label { display: none !important; }
body.present-mode .app {
  display: block !important; height: 100vh !important; background: #000; overflow: hidden;
}
body.present-mode .preview-panel {
  grid-area: auto !important;
  padding: 0 !important;
  background: #000 !important;
  height: 100vh !important;
  display: grid !important;
  place-items: center;
  overflow: hidden !important;
}
body.present-mode .preview-stack { gap: 0 !important; align-items: center; }
body.present-mode .slide-frame { display: none; }
body.present-mode .slide-frame.is-active { display: block; }
body.present-mode .slide-frame {
  width: 1280px !important; height: 720px !important;
  transform: scale(var(--present-scale, 1));
  transform-origin: center;
}
body.present-mode .slide-frame .slide { transform: scale(1) !important; }

.present-controls {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  display: none;
  gap: 8px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  align-items: center;
  z-index: 9999;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
body.present-mode .present-controls { display: flex; }
.present-controls button {
  background: transparent; border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 6px 12px; border-radius: 999px;
  font-family: inherit; font-weight: 600; cursor: pointer;
}
.present-controls button:hover { background: rgba(255,255,255,.1); }
.present-controls .count { padding: 0 8px; }
