/* ============================================================
   PLUS 2026 — Tender Clarification Presentation
   Pixel-faithful HTML rebuild of 02b_Technical_Proposal_Executive_Deck_V1.pdf
   Canvas: 1920x1080, scaled to viewport via CSS transform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: light;
  font-feature-settings: "ss01", "cv11", "tnum";
  /* exact Pencil colors */
  --bg: #F4F5F7;
  --ink: #0A0A0F;
  --ink2: #1F2128;
  --blue: #1E5DEB;
  --cyan: #5BC8FF;
  --tint: #E6EEFE;
  --grey1: #5A5F6A;
  --grey2: #6B7180;
  --grey3: #9CA1AB;
  --grey4: #A6ABB6;
  --line1: #D9DCE3;
  --line2: #E4E6EC;
  --line3: #F0F1F4;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  overflow: hidden;
}

/* ---------- Stage / scaling ---------- */

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  place-content: center;
  background: #000;
  overflow: hidden;
}

.deck {
  position: relative;
  width: 1920px;
  height: 1080px;
  transform-origin: center center;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* ---------- Slide chrome ---------- */

.slide {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  background: var(--bg);
  display: none;
  flex-direction: column;
  font-size: 16px;
  color: var(--ink);
}

.slide.active { display: flex; }

.slide .top-rule { height: 2px; background: var(--ink); flex: 0 0 auto; }
.slide .bot-rule { height: 2px; background: var(--ink); flex: 0 0 auto; }
.slide .div-rule { height: 1px; background: var(--line1); flex: 0 0 auto; }

.slide .header {
  padding: 28px 100px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  font-size: 20px;
  color: var(--grey1);
  font-weight: 500;
}
.slide .header .pno { color: var(--grey3); font-weight: 500; }

.slide .footer {
  padding: 22px 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  font-size: 22px;
  color: var(--grey1);
  font-weight: 500;
}
.slide .footer .right { color: var(--grey3); }

.slide .body {
  flex: 1 1 auto;
  padding: 50px 100px 40px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ---------- Common building blocks ---------- */

.eyebrow-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-right: 12px;
}
.eyebrow-label {
  font-size: 20px;
  color: var(--grey1);
  font-weight: 500;
}
.eyebrow {
  display: flex;
  align-items: baseline;
  margin-bottom: 14px;
  line-height: 1;
}

.h1 {
  font-size: 88px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}

.h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 18px;
  color: var(--ink);
}

.h3 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ink);
}

.subh {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--grey1);
  margin: 0 0 28px;
}

.subh-tight {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--grey1);
  margin: 0 0 22px;
}

/* Inline anchor: subtle underline, blue on hover */
a.x { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(30,93,235,0.4); transition: all .15s ease; cursor: pointer; }
a.x:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* tabular numerals in any element with .tn */
.tn { font-variant-numeric: tabular-nums; }

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--line1);
  border-radius: 14px;
  padding: 28px 32px;
}
.card-dark {
  background: var(--ink);
  border-radius: 14px;
  padding: 28px 32px;
  color: var(--white);
}
.card-tint {
  background: var(--tint);
  border-radius: 14px;
  padding: 24px 32px;
}

.kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
}
.kicker-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: var(--tint);
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
.kicker-grey {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--grey3);
  text-transform: uppercase;
}

/* ---------- Stage HUD (controls overlay, hidden by default) ---------- */

html.capture .hud, html.capture .help, html.capture .info, html.capture .overview { display: none !important; }

.hud {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(10, 10, 15, 0.7);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}
.hud.show { opacity: 1; pointer-events: auto; }
.hud button {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
}
.hud button:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Help panel ---------- */

.help {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}
.help.show { display: flex; }
.help-card {
  background: #fff;
  color: var(--ink);
  width: 720px;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
}
.help-card h3 { margin: 0 0 24px; font-size: 28px; font-weight: 700; }
.help-card dl { display: grid; grid-template-columns: 200px 1fr; row-gap: 14px; margin: 0; font-size: 17px; }
.help-card dt { font-family: 'JetBrains Mono', 'Menlo', monospace; font-size: 14px; background: var(--line2); padding: 4px 10px; border-radius: 6px; display: inline-block; width: max-content; }
.help-card dd { margin: 0; color: var(--grey1); }
.help-close { margin-top: 32px; background: var(--ink); color: white; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 600; }

/* ---------- Info / Layer 2 panel ---------- */

.info {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38vw;
  min-width: 480px;
  max-width: 680px;
  background: #fff;
  box-shadow: -16px 0 40px rgba(0,0,0,.4);
  z-index: 15;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
}
.info.show { transform: translateX(0); }
.info-head {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line1);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.info-head .label { font-size: 13px; color: var(--grey3); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.info-head h4 { margin: 4px 0 0; font-size: 22px; font-weight: 700; }
.info-close {
  background: var(--line2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: var(--grey1);
}
.info-body { padding: 24px 32px 64px; font-size: 16px; line-height: 1.6; color: var(--grey1); }
.info-body h5 { color: var(--ink); font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.info-body p { margin: 0 0 14px; }
.info-body ul { padding-left: 20px; margin: 0 0 16px; }
.info-body li { margin-bottom: 6px; }
.info-body a { color: var(--blue); text-decoration: none; border-bottom: 1px solid currentColor; }
.info-body .open-full { display: inline-block; margin-top: 16px; padding: 10px 18px; background: var(--ink); color: white; border-radius: 8px; border-bottom: none; }
.info-body .open-full:hover { background: var(--blue); }

/* ---------- Overview grid ---------- */

.overview {
  position: fixed;
  inset: 0;
  background: #0A0A0F;
  z-index: 25;
  display: none;
  padding: 80px 60px 60px;
  overflow-y: auto;
}
.overview.show { display: block; }

.overview-close {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 26;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 18px;
  border-radius: 999px;
  font: 600 14px 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background .15s, border-color .15s;
}
.overview-close:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.32); }
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
}
.thumb {
  aspect-ratio: 16/9;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.thumb:hover, .thumb.current { border-color: var(--blue); }
.thumb > iframe, .thumb > img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* live scaled slide preview inside a thumbnail */
.thumb-mini { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; transform-origin: top left; pointer-events: none; }
.thumb-mini .slide { position: absolute; inset: 0; display: flex !important; box-shadow: none; }
.thumb .pno {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: rgba(0,0,0,.7);
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ============================================================
   MOBILE SPINE — appended at end of file so it overrides
   the desktop .hud { bottom:16px; ... } above. Below 720px
   viewport, scale to fit width, allow vertical scroll, and
   pin the HUD to the top so it stays out of the way.
   ============================================================ */
@media (max-width: 720px) {
  html, body { background: var(--bg); overflow: auto; height: auto; }
  .stage {
    position: static !important;
    display: block !important;
    background: var(--bg) !important;
    padding: 8px 0 !important;
    inset: auto !important;
  }
  .deck {
    transform-origin: top left !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
    margin: 0 auto !important;
  }
  .hud {
    bottom: auto !important;
    top: 8px !important;
    transform: translateX(-50%) scale(.92) !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .hud button { padding: 3px 6px !important; }
  .info { width: 100vw !important; max-width: 100vw !important; min-width: 0 !important; }
  .help-card { width: 90vw !important; padding: 28px 20px !important; }
  .help-card dl { grid-template-columns: 130px 1fr !important; row-gap: 10px !important; font-size: 14px !important; }
  .overview { padding: 60px 16px 24px !important; }
  .overview-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .overview-close { top: 12px !important; left: 12px !important; padding: 8px 14px !important; font-size: 13px !important; }
}

@media (max-width: 480px) {
  .hud { font-size: 11px !important; padding: 5px 8px !important; transform: translateX(-50%) scale(.88) !important; }
  .overview-grid { grid-template-columns: 1fr !important; }
}
