/* Google Opal PPT — tpl-opal */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.tpl-opal {
  font-family: 'Google Sans', 'Noto Sans TC', 'Inter', sans-serif;
  background: #0f1117;
  color: #1a1a2e;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.deck { width: 100vw; height: 100vh; position: relative; }

/* ── Slide base ─────────────────────────────── */
.slide {
  position: absolute; inset: 0;
  display: none;
  padding: 64px 80px;
  background: #ffffff;
  overflow: hidden;
}
.slide.active { display: flex; flex-direction: column; }

.s-dark { background: #0f1117; color: #e8eaf0; }
.s-dark .h2, .s-dark .kicker { color: #e8eaf0; }
.s-dark p { color: #a0a8c0; }

/* ── Typography ─────────────────────────────── */
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: #4285f4; margin-bottom: 12px;
}
.h1 { font-size: 72px; font-weight: 800; line-height: 1.1; color: #1a1a2e; }
.h2 { font-size: 42px; font-weight: 700; line-height: 1.2; color: #1a1a2e; margin-bottom: 8px; }
.lede { font-size: 20px; color: #555; line-height: 1.6; }

.grad-text {
  background: linear-gradient(135deg, #4285f4, #34a853, #fbbc04, #ea4335);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Layout helpers ─────────────────────────── */
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 36px; }
.mt-xl { margin-top: 56px; }
.tc { text-align: center; }
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ── Slide number ───────────────────────────── */
.slide-num {
  position: absolute; bottom: 24px; right: 36px;
  font-size: 13px; color: #999; font-weight: 500;
}

/* ── Tags ───────────────────────────────────── */
.tag-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tag {
  background: #e8f0fe; color: #1967d2; padding: 6px 16px;
  border-radius: 20px; font-size: 14px; font-weight: 600;
}

/* ══ Cover (slide 1 & 20) ═══════════════════════ */
.s-cover { background: #0f1117; color: #e8eaf0; position: relative; }
.s-cover .h1 { color: #e8eaf0; }
.s-cover .lede { color: #a0a8c0; }
.s-cover .tag { background: rgba(66,133,244,0.2); color: #8ab4f8; }

.cover-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 40%, rgba(52,168,83,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(66,133,244,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 20%, rgba(251,188,4,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.cover-content { position: relative; z-index: 1; }
.opal-logo {
  font-size: 16px; font-weight: 700; color: #8ab4f8;
  letter-spacing: 1px; margin-bottom: 48px;
}

.s-end .cover-content { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.end-bg {
  background:
    radial-gradient(ellipse 70% 70% at 30% 50%, rgba(66,133,244,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 70% 30%, rgba(52,168,83,0.2) 0%, transparent 60%);
}

.cta-box {
  background: rgba(66,133,244,0.15);
  border: 2px solid rgba(66,133,244,0.4);
  border-radius: 16px;
  padding: 28px 60px;
  text-align: center;
}
.cta-url { font-size: 28px; font-weight: 700; color: #8ab4f8; margin-bottom: 8px; }
.cta-hint { color: #a0a8c0; font-size: 15px; }

/* ══ Intro / Info cards ══════════════════════════ */
.info-card {
  background: #f8f9ff; border-radius: 16px;
  padding: 28px 24px; border: 1px solid #e0e8ff;
}
.ic-icon { font-size: 36px; margin-bottom: 12px; }
.info-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #1a1a2e; }
.info-card p { font-size: 14px; color: #666; line-height: 1.5; }

.big-quote {
  font-size: 28px; font-weight: 600; line-height: 1.5;
  color: #1a1a2e; background: #f0f4ff;
  border-left: 5px solid #4285f4;
  padding: 24px 32px; border-radius: 0 12px 12px 0;
}

/* ══ Timeline ════════════════════════════════════ */
.timeline { display: flex; flex-direction: column; gap: 20px; }
.tl-item { display: flex; align-items: flex-start; gap: 20px; }
.tl-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: #4a5270; flex-shrink: 0; margin-top: 4px;
}
.tl-item.active .tl-dot { background: #4285f4; box-shadow: 0 0 0 4px rgba(66,133,244,0.3); }
.tl-content strong { color: #e8eaf0; font-size: 16px; display: block; margin-bottom: 4px; }
.tl-content p { color: #a0a8c0; font-size: 14px; }

/* ══ Architecture Flow ═══════════════════════════ */
.arch-flow {
  display: flex; align-items: center; gap: 16px;
  justify-content: center;
}
.arch-box {
  background: #f8f9ff; border-radius: 16px;
  padding: 28px 32px; flex: 1; border: 2px solid #e0e8ff;
}
.arch-box.input { border-color: #4285f4; }
.arch-box.process { border-color: #34a853; }
.arch-box.output { border-color: #fbbc04; }
.arch-icon { font-size: 32px; margin-bottom: 12px; }
.arch-box h4 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.arch-box ul { list-style: none; }
.arch-box ul li { font-size: 14px; color: #555; padding: 4px 0; }
.arch-box ul li::before { content: '▸ '; color: #4285f4; }
.arch-arrow { font-size: 32px; color: #999; flex-shrink: 0; }

/* ══ Input cards ═════════════════════════════════ */
.input-card {
  text-align: center; padding: 32px 20px;
  background: #fff; border-radius: 16px;
  border: 2px solid #e0e8ff;
  transition: transform 0.2s;
}
.big-emoji { font-size: 48px; display: block; margin-bottom: 12px; }
.input-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.input-card p { font-size: 13px; color: #666; }
.highlight-box {
  background: #fff8e1; border-radius: 12px;
  padding: 16px 24px; font-size: 15px; color: #444;
  border-left: 4px solid #fbbc04;
}

/* ══ Node cards ══════════════════════════════════ */
.node-card {
  border-radius: 14px; padding: 24px 20px;
  border: 1px solid transparent;
}
.n-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 8px;
  opacity: 0.7;
}
.node-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.node-card p { font-size: 13px; line-height: 1.5; }

.n-blue { background: #e8f0fe; color: #1967d2; border-color: #c5d9fb; }
.n-blue p { color: #3c5a9a; }
.n-green { background: #e6f4ea; color: #137333; border-color: #b7dfc3; }
.n-green p { color: #3a7d52; }
.n-purple { background: #f3e8fd; color: #6200ea; border-color: #d9b3f9; }
.n-purple p { color: #7b3fa0; }
.n-amber { background: #fef8e1; color: #b06000; border-color: #f5d87c; }
.n-amber p { color: #8a5200; }
.n-red { background: #fce8e6; color: #c62828; border-color: #f5b8b2; }
.n-red p { color: #a0372f; }
.n-teal { background: #e0f7fa; color: #00695c; border-color: #80cbc4; }
.n-teal p { color: #2e7d62; }

/* ══ Integration ═════════════════════════════════ */
.integration-grid {
  display: flex; gap: 48px; align-items: center;
}
.integ-center { flex-shrink: 0; }
.gem-badge {
  width: 120px; height: 120px;
  background: linear-gradient(135deg, #4285f4, #34a853);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: white;
  text-align: center; line-height: 1.2;
}
.integ-items { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.integ-item { display: flex; align-items: flex-start; gap: 16px; }
.integ-icon { font-size: 28px; flex-shrink: 0; }
.integ-item strong { font-size: 16px; font-weight: 700; display: block; margin-bottom: 4px; }
.integ-item p { font-size: 14px; color: #555; }

/* ══ Scenario ════════════════════════════════════ */
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scenario { border-radius: 16px; padding: 28px; }
.scenario.good { background: #e6f4ea; border: 2px solid #34a853; }
.scenario.bad { background: #fce8e6; border: 2px solid #ea4335; }
.s-header { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.scenario.good .s-header { color: #137333; }
.scenario.bad .s-header { color: #c62828; }
.scenario ul { list-style: none; }
.scenario ul li { padding: 6px 0; font-size: 15px; color: #444; }
.scenario ul li::before { content: '• '; }

/* ══ Steps ═══════════════════════════════════════ */
.steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 28px; align-items: flex-start; }
.step-num {
  font-size: 48px; font-weight: 900; color: #e0e8ff;
  line-height: 1; flex-shrink: 0; width: 72px;
}
.step-content h4 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: 15px; color: #555; line-height: 1.5; }

/* ══ Demo slides ═════════════════════════════════ */
.s-demo { background: #fafbff; }

.demo-flow {
  display: flex; align-items: stretch; gap: 8px;
  flex-wrap: nowrap;
}
.demo-step {
  flex: 1; background: #fff; border-radius: 14px;
  padding: 20px 16px; text-align: center;
  border: 2px solid #e0e8ff;
  display: flex; flex-direction: column; gap: 8px;
}
.ds-icon { font-size: 32px; }
.ds-label { font-size: 11px; font-weight: 700; color: #4285f4; text-transform: uppercase; letter-spacing: 1px; }
.ds-text { font-size: 13px; color: #444; line-height: 1.4; }
.demo-arrow { font-size: 24px; color: #bbb; align-self: center; flex-shrink: 0; }

.demo-result {
  background: #f0f4ff; border-radius: 12px;
  padding: 16px 24px; display: flex; gap: 16px;
  align-items: flex-start;
}
.result-label { font-weight: 700; color: #1967d2; flex-shrink: 0; white-space: nowrap; }
.demo-result p { font-size: 14px; color: #444; line-height: 1.6; }

.demo-tags { display: flex; gap: 12px; flex-wrap: wrap; }
.pos-tag, .neg-tag, .neu-tag {
  padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
}
.pos-tag { background: #e6f4ea; color: #137333; }
.neg-tag { background: #fce8e6; color: #c62828; }
.neu-tag { background: #fff8e1; color: #b06000; }

/* ══ Agent cards ═════════════════════════════════ */
.agent-card {
  background: rgba(255,255,255,0.05); border-radius: 16px;
  padding: 28px 24px; border: 1px solid rgba(255,255,255,0.1);
}
.ac-icon { font-size: 36px; margin-bottom: 12px; }
.agent-card h4 { font-size: 18px; font-weight: 700; color: #e8eaf0; margin-bottom: 10px; }
.agent-card p { font-size: 14px; color: #a0a8c0; line-height: 1.5; margin-bottom: 12px; }
.ac-example {
  font-size: 12px; color: #8ab4f8;
  background: rgba(66,133,244,0.1);
  padding: 8px 12px; border-radius: 8px;
  border-left: 3px solid #4285f4;
}

/* ══ Share grid ══════════════════════════════════ */
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.share-item { text-align: center; padding: 28px 20px; background: #f8f9ff; border-radius: 16px; border: 2px solid #e0e8ff; }
.si-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.share-item h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.share-item p { font-size: 13px; color: #666; line-height: 1.4; }

/* ══ Compare table ════════════════════════════════ */
.compare-table { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.ct-header, .ct-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr;
  font-size: 14px;
}
.ct-header { background: rgba(66,133,244,0.2); font-weight: 700; color: #e8eaf0; }
.ct-header > div, .ct-row > div { padding: 14px 16px; }
.ct-row { border-bottom: 1px solid rgba(255,255,255,0.07); color: #c0c8d8; }
.ct-row:last-child { border-bottom: none; }
.ct-opal { color: #8ab4f8; font-weight: 700; background: rgba(66,133,244,0.1); }
.ct-header .ct-opal { background: rgba(66,133,244,0.3); }

/* ══ Future grid ══════════════════════════════════ */
.future-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.future-item { border-radius: 16px; padding: 24px; }
.fi-near { background: #e6f4ea; border: 2px solid #34a853; }
.fi-mid { background: #e8f0fe; border: 2px solid #4285f4; }
.fi-far { background: #f3e8fd; border: 2px solid #9c27b0; }
.fi-label {
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 16px;
}
.fi-near .fi-label { color: #137333; }
.fi-mid .fi-label { color: #1967d2; }
.fi-far .fi-label { color: #6200ea; }
.future-item ul { list-style: none; }
.future-item ul li { font-size: 14px; color: #333; padding: 5px 0; line-height: 1.4; }
