/* =========================================================================
   SLIDE CONTENT STYLES — layouts and components used inside slides.
   This is the file the designer will restyle most.
   ========================================================================= */

/* ---------- Common slide furniture ---------- */
.slide-header { margin-bottom: var(--sp-5); }

.eyebrow {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 var(--sp-2);
}

.slide h1, .slide h2, .slide h3 { margin: 0; font-family: var(--font-display); line-height: 1.1; }
.slide h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -.01em; color: var(--c-primary); }
.slide h2 { font-size: var(--fs-h2); font-weight: 650; color: var(--c-ink); }
.slide h3 { font-size: var(--fs-h3); font-weight: 650; color: var(--c-ink); margin-bottom: var(--sp-1); }

.slide p, .slide li { font-size: var(--fs-body); line-height: 1.45; color: var(--c-ink-soft); }
.slide p { margin: 0 0 var(--sp-2); }
.slide ul { margin: 0; padding-left: 1.1em; }
.slide li { margin-bottom: var(--sp-1); }
.slide strong { color: var(--c-ink); font-weight: 650; }

.lead { font-size: 32px !important; line-height: 1.4 !important; max-width: 1400px; color: var(--c-ink-soft); }
.small { font-size: var(--fs-small) !important; }
.muted { color: var(--c-ink-mute) !important; }

.slide-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.slide-footer {
  position: absolute;
  left: var(--slide-pad-x); right: var(--slide-pad-x); bottom: 40px;
  display: flex; justify-content: space-between;
  font-size: var(--fs-tiny); color: var(--c-ink-mute);
}

/* Placeholder for content still to be confirmed — stands out on purpose */
.todo {
  background: var(--c-todo-bg);
  color: var(--c-todo-ink);
  border-radius: 6px;
  padding: 0 .3em;
  font-style: italic;
}

/* ---------- Layout helpers ---------- */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--sp-6); align-items: start; flex: 1; }
.split--even { grid-template-columns: 1fr 1fr; }
.center-v { justify-content: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--outline { background: transparent; border: 2px solid var(--c-line); }
.card--primary { background: var(--c-primary); }
.card--primary h3, .card--primary p { color: var(--c-primary-ink); }
.card .num {
  display: inline-block;
  font-size: var(--fs-small); font-weight: 700;
  color: var(--c-accent);
  margin-bottom: var(--sp-2);
}
.card .icon { font-size: 40px; line-height: 1; margin-bottom: var(--sp-2); display: block; }

/* ---------- Title slide ---------- */
.slide--title {
  background: var(--c-primary);
  justify-content: space-between;
}
.slide--title .eyebrow { color: var(--c-accent); }
.slide--title h1 { font-size: var(--fs-hero); color: var(--c-primary-ink); max-width: 1500px; }
.slide--title p { color: rgba(255,255,255,.75); }
.slide--title .meta { display: flex; gap: var(--sp-6); font-size: var(--fs-small); color: rgba(255,255,255,.7); }
.slide--title .meta strong { display: block; color: #fff; font-size: var(--fs-body); }
.logo-lockup { display: flex; align-items: center; gap: var(--sp-3); color: #fff; font-weight: 700; font-size: 34px; letter-spacing: .04em; }
.logo-lockup .x { opacity: .5; font-weight: 400; }

/* ---------- Section divider ---------- */
.slide--section { background: var(--c-surface); justify-content: center; }
.slide--section .section-num {
  font-size: 220px; font-weight: 800; line-height: 1;
  color: var(--c-surface-2);
  margin-bottom: -40px;
}
.slide--section h1 { font-size: 88px; }
.slide--section .lead { margin-top: var(--sp-3); }

/* ---------- Agenda ---------- */
.agenda { list-style: none; padding: 0 !important; margin: 0; counter-reset: ag; }
.agenda li {
  counter-increment: ag;
  display: grid; grid-template-columns: 90px 1fr auto; align-items: baseline;
  padding: var(--sp-3) 0;
  border-bottom: 2px solid var(--c-line);
  font-size: 34px; color: var(--c-ink); margin: 0;
}
.agenda li::before { content: counter(ag, decimal-leading-zero); color: var(--c-accent); font-weight: 700; }
.agenda li span { font-size: var(--fs-small); color: var(--c-ink-mute); }
.agenda li a { color: inherit; text-decoration: none; }
.agenda li a:hover { color: var(--c-primary); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Big numbers ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 88px; line-height: 1; font-weight: 750; color: var(--c-primary); letter-spacing: -.02em; }
.stat span { font-size: var(--fs-small); color: var(--c-ink-soft); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table th, .table td { text-align: left; padding: 14px 18px; vertical-align: top; border-bottom: 1px solid var(--c-line); color: var(--c-ink-soft); line-height: 1.35; }
.table th { font-size: var(--fs-tiny); text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink-mute); font-weight: 600; border-bottom-width: 2px; }
.table td:first-child { color: var(--c-ink); font-weight: 600; }
.table tr.total td { font-weight: 700; color: var(--c-ink); border-top: 2px solid var(--c-ink); border-bottom: 0; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Team ---------- */
.person { text-align: left; }
.person .avatar {
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--c-surface-2);
  display: grid; place-items: center;
  font-size: 56px; font-weight: 700; color: var(--c-ink-mute);
  margin-bottom: var(--sp-3);
  background-size: cover; background-position: center 30%;
}
.person .role { color: var(--c-accent); font-weight: 600; font-size: var(--fs-small); margin-bottom: var(--sp-2); }
.person .alloc { font-size: var(--fs-tiny); color: var(--c-ink-mute); margin-top: var(--sp-2); }

/* ---------- Chips / tags / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--c-surface-2); color: var(--c-ink); font-size: var(--fs-tiny); font-weight: 600; white-space: nowrap; }
.chip--ai { background: var(--c-ai-soft); color: var(--c-ai); }
.chip--ok { background: #e3f3ea; color: var(--c-ok); }
.chip--warn { background: #fbeedd; color: var(--c-warn); }
.chip--primary { background: var(--c-primary); color: #fff; }

/* ---------- Observation list ---------- */
.obs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-6); }
.obs > div { border-left: 4px solid var(--c-warn); padding-left: var(--sp-3); }
.obs h3 { font-size: 28px; }
.obs p { font-size: var(--fs-small); margin: 0; }

/* ---------- Objective → answer rows ---------- */
.mapping { display: grid; grid-template-columns: 460px 1fr; gap: 0; }
.mapping > div { padding: 18px 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-small); line-height: 1.4; }
.mapping .obj { font-weight: 650; color: var(--c-primary); padding-right: var(--sp-4); }
.mapping .ans { color: var(--c-ink-soft); }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.principles .card h3 { font-size: 27px; }
.principles .card p { font-size: var(--fs-tiny); line-height: 1.45; }

/* ---------- Gantt (planning) ---------- */
.gantt { display: grid; grid-template-columns: 420px repeat(13, 1fr); font-size: var(--fs-tiny); row-gap: 10px; }
.gantt .h { color: var(--c-ink-mute); text-align: center; font-weight: 600; padding-bottom: 8px; border-bottom: 2px solid var(--c-line); }
.gantt .h:first-child { text-align: left; }
.gantt .label { grid-column: 1; font-size: var(--fs-small); color: var(--c-ink); font-weight: 600; display: flex; align-items: center; }
.gantt .bar {
  background: var(--c-primary); color: #fff; border-radius: 8px;
  padding: 10px 14px; font-weight: 600; display: flex; align-items: center; gap: 8px;
  white-space: nowrap; overflow: hidden;
}
.gantt .bar--light { background: var(--c-surface-2); color: var(--c-ink); }
.gantt .bar--accent { background: var(--c-accent); color: #1b1b1b; }

/* ---------- Timeline (validation points) ---------- */
.vtimeline { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--sp-2); padding-top: 60px; }
.vtimeline::before { content: ""; position: absolute; top: 76px; left: 0; right: 0; height: 3px; background: var(--c-line); }
.vtimeline .vp { position: relative; padding-top: 50px; }
.vtimeline .vp::before { content: ""; position: absolute; top: 6px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--c-primary); border: 4px solid var(--c-bg); box-shadow: 0 0 0 3px var(--c-primary); }
.vtimeline .wk { position: absolute; top: -50px; font-size: var(--fs-tiny); color: var(--c-ink-mute); font-weight: 600; }
.vtimeline h3 { font-size: 26px; }
.vtimeline p { font-size: 18px; line-height: 1.4; margin: 0 0 8px; }

/* ---------- Price block ---------- */
.price { font-size: 140px; font-weight: 800; color: var(--c-primary); letter-spacing: -.03em; line-height: 1; }
.price small { font-size: 32px; font-weight: 500; color: var(--c-ink-mute); letter-spacing: 0; }

/* =========================================================================
   WIREFRAMES — low-fidelity mock-ups of the first design ideas.
   Intentionally grey and boxy: the designer replaces them with real visuals.
   ========================================================================= */
.wf {
  background: #fff;
  border: 2px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 16px; color: var(--c-ink-soft);
  display: flex; flex-direction: column;
}
.wf-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.wf-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-line); }
.wf-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.wf-row { display: flex; gap: 12px; align-items: center; }
.wf-col { display: flex; flex-direction: column; gap: 10px; }
.wf-box { background: var(--c-surface); border-radius: 8px; padding: 12px 14px; }
.wf-box--dark { background: var(--c-primary); color: #fff; }
.wf-box--ai { background: var(--c-ai-soft); color: var(--c-ai); border: 1px dashed var(--c-ai); }
.wf-box--alert { background: #fbeedd; color: var(--c-warn); font-weight: 600; }
.wf-line { height: 10px; background: var(--c-surface-2); border-radius: 5px; }
.wf-box--ai .wf-line { background: rgba(106, 79, 216, .22); }
.wf-line.w40 { width: 40%; } .wf-line.w60 { width: 60%; } .wf-line.w80 { width: 80%; }
.wf-logo { font-weight: 800; color: var(--c-primary); font-size: 18px; }
.wf-nav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; color: var(--c-ink); }
.wf-search { flex: 1; border: 2px solid var(--c-primary); border-radius: 999px; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; color: var(--c-ink-mute); background: #fff; }
.wf-toggle { display: inline-flex; border: 1px solid var(--c-line); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 600; }
.wf-toggle span { padding: 6px 12px; }
.wf-toggle span.on { background: var(--c-primary); color: #fff; }
.wf-tile { flex: 1; background: var(--c-surface); border-radius: 10px; padding: 14px; font-weight: 600; color: var(--c-ink); font-size: 15px; min-height: 70px; display: flex; align-items: flex-end; }
.wf-result { border-bottom: 1px solid var(--c-line); padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.wf-result b { color: var(--c-ink); font-size: 15px; }
.wf-tl { display: flex; align-items: center; gap: 0; margin: 6px 0; }
.wf-tl .st { flex: 1; text-align: center; font-size: 13px; font-weight: 600; padding-top: 22px; position: relative; color: var(--c-ink-mute); }
.wf-tl .st::before { content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--c-line); }
.wf-tl .st::after { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: var(--c-line); z-index: -1; }
.wf-tl .st.done { color: var(--c-ok); } .wf-tl .st.done::before { background: var(--c-ok); }
.wf-tl .st.now { color: var(--c-primary); } .wf-tl .st.now::before { background: var(--c-primary); box-shadow: 0 0 0 4px var(--c-surface-2); }
.wf-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--c-ink-mute); }

/* Callout annotations next to wireframes */
.callouts { list-style: none; padding: 0 !important; margin: 0; counter-reset: co; }
.callouts li { counter-increment: co; position: relative; padding-left: 60px; margin-bottom: var(--sp-3); font-size: var(--fs-small); }
.callouts li::before {
  content: counter(co); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--c-accent); color: #1b1b1b; font-weight: 700; font-size: 18px;
  display: grid; place-items: center;
}
.callouts li strong { display: block; font-size: var(--fs-body); margin-bottom: 2px; }

/* ---------- References ---------- */
.ref { display: flex; flex-direction: column; padding: 32px; }
.ref h3 { font-size: 32px; margin-bottom: 16px; }
.ref p.small { font-size: 22px !important; line-height: 1.4; margin-bottom: 14px; }
.ref-meta { margin-top: auto !important; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: 19px !important; color: var(--c-ink-mute) !important; }
.card--highlight { box-shadow: inset 0 0 0 3px var(--c-accent); }

/* ---------- Observations in two rows of four ---------- */
.obs--4 { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.obs--4 h3 { font-size: 26px; }
.obs--4 p { font-size: 19px; line-height: 1.4; }
.obs--known > div { border-left-color: var(--c-line); }

/* ---------- Live page embed (homepage / search directions) ---------- */
.live {
  border: 2px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff;
}
.live .wf-bar { align-items: center; }
.live-url { margin-left: 12px; font-size: 15px; color: var(--c-ink-mute); }
.live-view { position: relative; flex: 1; overflow: hidden; }
/* Render the page at 1440px wide, then scale it into the frame */
.live-view iframe {
  position: absolute; top: 0; left: 0;
  width: 1440px; height: 1440px;
  border: 0;
  transform: scale(.65);
  transform-origin: top left;
}
.slide a { color: var(--c-primary); }

.callouts--tight li { margin-bottom: 18px; font-size: 19px; }
.callouts--tight li strong { font-size: 23px; }

/* ---------- Showreel (video slide) ---------- */
.slide--video { background: #0b0f15; padding: 56px var(--slide-pad-x); align-items: center; }
.slide--video .video-head { width: 1536px; display: flex; align-items: baseline; gap: 24px; margin-bottom: 24px; }
.slide--video .video-head .eyebrow { margin: 0; }
.slide--video h2 { color: #fff; font-size: 40px; }
.video-frame { position: relative; width: 1536px; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================================
   INFO BUTTON + PANEL — a small "?" that opens a plain-language explainer.
   Markup: <button class="info-btn" aria-controls="ID">?</button>
           <div class="info-pop" id="ID" hidden> … </div>   (direct child of the slide)
   ========================================================================= */
.with-info { display: flex; align-items: center; gap: 14px; }
.info-btn {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid currentColor; background: transparent; color: inherit;
  font: 700 22px/1 var(--font-sans);
  cursor: pointer; opacity: .8;
  transition: opacity .2s, background .2s;
}
.info-btn:hover, .info-btn[aria-expanded="true"] { opacity: 1; background: rgba(255,255,255,.15); }
.info-btn:focus-visible, .info-close:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

.info-pop {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(11, 15, 21, .55);
  display: grid; place-items: center;
  animation: info-in .25s var(--ease);
}
.info-pop[hidden] { display: none; }
@keyframes info-in { from { opacity: 0; } to { opacity: 1; } }

.info-panel {
  position: relative;
  width: 1600px;
  background: var(--c-bg);
  border-radius: 24px;
  padding: 56px 64px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.info-panel h2 { color: var(--c-primary); font-size: 48px; margin-bottom: 40px !important; }
.info-close {
  position: absolute; top: 24px; right: 28px;
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: var(--c-surface); color: var(--c-ink);
  font-size: 34px; line-height: 1; cursor: pointer;
}

.flow { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; gap: 24px; align-items: stretch; }
.flow-step { background: var(--c-surface); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.flow-step--ours { background: var(--c-primary); }
.flow-step--ours h3, .flow-step--ours p { color: #fff !important; }
.flow-step h3 { font-size: 30px; }
.flow-step p { font-size: 21px !important; line-height: 1.4; margin-bottom: 20px !important; }
.flow-num { font-weight: 800; color: var(--c-accent); font-size: 20px; margin-bottom: 8px; }
.flow-arrow { align-self: center; font-size: 48px; color: var(--c-ink-mute); }
.flow-visual { margin: auto 0 0; border-radius: 10px; }
.flow-visual--design { background: #fff; border: 2px dashed var(--c-line); padding: 22px; }
.fv-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 20px; color: var(--c-ink); }
.flow-code {
  background: #0f1724; color: #cfe3ff;
  font: 15px/1.5 var(--font-mono);
  padding: 16px 18px; white-space: pre; overflow: hidden;
}

.info-benefits { margin-top: 40px; gap: 32px; }
.info-benefits div { font-size: 21px; line-height: 1.4; color: var(--c-ink-soft); border-top: 3px solid var(--c-accent); padding-top: 14px; }
.info-benefits strong { display: block; font-size: 26px; color: var(--c-ink); margin-bottom: 4px; }

@media print { .info-btn { display: none; } }
.ref-meta a { color: var(--c-ink-soft); }
.ref-kit {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--c-primary); color: #fff !important;
  font-size: 20px; font-weight: 650; text-decoration: none;
}
.ref-kit:hover { filter: brightness(1.15); }
.ref-kit + .ref-meta { margin-top: 20px !important; }
