/* ── Alaga tokens ────────────────────────────────────── */
:root {
  --ag:       #27a354;   /* brand green */
  --ag-dark:  #1B5E20;   /* PPTX cover green */
  --ag-mid:   #2E7D32;
  --ag-light: #A5D6A7;   /* PPTX light sage */
  --ag-cream: #F8F9F8;   /* PPTX content slide bg */
  --ag-dim:   rgba(27,94,32,.12);
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.alaga-hero {
  background: var(--ag-cream);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Large rotated rectangle — top-left decorative block */
.alaga-hero::before {
  content: '';
  position: absolute;
  top: -90px; left: -100px;
  width: 420px; height: 420px;
  background: var(--ag-dark);
  border-radius: 52px;
  transform: rotate(-18deg);
  opacity: .07;
  pointer-events: none;
}
/* Soft circle — bottom-right */
.alaga-hero::after {
  content: '';
  position: absolute;
  bottom: 40px; right: -60px;
  width: 340px; height: 340px;
  background: var(--ag-mid);
  border-radius: 50%;
  opacity: .06;
  pointer-events: none;
}

.alaga-hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem) 2rem;
  position: relative;
  z-index: 1;
}

.alaga-hero-text { flex: 1; min-width: 0; }

.alaga-hero-text .proj-tag {
  color: var(--ag-dark);
  border-color: rgba(27,94,32,.25);
  background: rgba(27,94,32,.07);
}

.alaga-hero-text .pp-title {
  color: var(--ag-dark);
  font-size: clamp(3rem, 8vw, 6rem);
  margin: .45rem 0 .5rem;
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
}

.alaga-ver {
  font-family: var(--font-head);
  font-size: clamp(.65rem, 1.2vw, .8rem);
  font-weight: 600;
  letter-spacing: .12em;
  background: rgba(27,94,32,.08);
  border: 1px solid rgba(27,94,32,.2);
  color: var(--ag-dark);
  border-radius: 4px;
  padding: .2rem .5rem;
  vertical-align: middle;
  align-self: center;
}

.alaga-hero-sub {
  font-family: var(--font-head);
  font-size: clamp(.85rem, 2vw, 1.2rem);
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ag-mid);
  margin-bottom: 1.25rem;
}

.alaga-hero-intro {
  font-size: clamp(.875rem, 1.4vw, 1rem);
  line-height: 1.78;
  color: #3a4a3a;
  max-width: 470px;
  margin-bottom: 2rem;
}

.alaga-hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.alaga-hero-actions .pp-action-btn--primary {
  background: var(--ag);
  border-color: var(--ag);
}
.alaga-hero-actions .pp-action-btn--primary:hover {
  background: #1e7d40;
  border-color: #1e7d40;
}

/* ── Browser mockup ── */
.alaga-mockup {
  flex: 0 0 min(520px, 45vw);
  min-width: 0;
  max-width: min(520px, 45vw);
  position: relative;
  z-index: 1;
  animation: agRise .9s cubic-bezier(.22,1,.36,1) .2s both;
}
@keyframes agRise {
  from { opacity: 0; transform: translateY(44px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.alaga-browser {
  width: 100%;
  background: #1c1c1c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,.22),
    0 0 0 1px rgba(0,0,0,.08),
    0 0 0 6px rgba(27,94,32,.08);
}

.alaga-bar {
  background: #2c2c2c;
  padding: .55rem .75rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.alaga-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.alaga-dot:nth-child(1) { background: #ff5f57; }
.alaga-dot:nth-child(2) { background: #febc2e; }
.alaga-dot:nth-child(3) { background: #28c840; }
.alaga-url {
  margin-left: .5rem;
  background: #3c3c3c;
  border-radius: 4px;
  padding: .18rem .55rem;
  font-size: .7rem;
  color: rgba(255,255,255,.42);
  font-family: var(--font-body);
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  min-height: 1.3em;
}
.alaga-browser img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Stat strip — dark green belt ── */
.alaga-stats {
  position: relative; z-index: 1;
  background: var(--ag-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.alaga-stat {
  padding: 1.4rem 1rem;
  text-align: center;
  position: relative;
}
.alaga-stat + .alaga-stat::before {
  content: '';
  position: absolute; left: 0; top: 22%; height: 56%;
  width: 1px; background: rgba(165,214,167,.15);
}
.alaga-stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--ag-light);
  line-height: 1;
}
.alaga-stat-lbl {
  display: block;
  font-size: .63rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin-top: .3rem;
}

.alaga-hero .pp-scroll-hint {
  background: var(--ag-dark);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}
.alaga-hero .pp-scroll-hint .pp-chev::before,
.alaga-hero .pp-scroll-hint .pp-chev::after { background: #fff; }
.alaga-hero .pp-scroll-hint .pp-chev:nth-child(1) { animation: agChevPulse 1.8s ease-in-out infinite 0s; }
.alaga-hero .pp-scroll-hint .pp-chev:nth-child(2) { animation: agChevPulse 1.8s ease-in-out infinite 0.28s; }
.alaga-hero .pp-scroll-hint .pp-chev:nth-child(3) { animation: agChevPulse 1.8s ease-in-out infinite 0.56s; }
@keyframes agChevPulse {
  0%, 100% { opacity: .18; filter: none; }
  45%       { opacity: 1;   filter: drop-shadow(0 0 5px rgba(165,214,167,.9)); }
  70%       { opacity: .18; filter: none; }
}

/* ══════════════════════════════════════════════════════
   SHARED SECTION WRAPPER
══════════════════════════════════════════════════════ */
.ag-section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 5rem);
}
.ag-inner { max-width: 1100px; margin: 0 auto; }

.ag-kicker {
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ag);
  display: block;
  margin-bottom: .45rem;
}
.ag-h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: .75rem;
}

/* Scroll-reveal */
[data-ag-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,1,.36,1);
}
[data-ag-reveal].revealed { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════
   WHAT IT DOES — feature cards
══════════════════════════════════════════════════════ */
.ag-about { background: #fff; }

.ag-lead {
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 660px;
  margin-bottom: 2.5rem;
}

.ag-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ag-card {
  background: var(--off-white);
  border-radius: 10px;
  padding: 1.4rem;
  border: 1px solid var(--steel-100);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ag-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(39,163,84,.1);
  border-color: rgba(39,163,84,.28);
}
.ag-card-icon { font-size: 1.5rem; display: block; margin-bottom: .6rem; }
.ag-card-title {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .35rem;
}
.ag-card-desc { font-size: .85rem; line-height: 1.6; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════
   THREE ROLES — tab interface
══════════════════════════════════════════════════════ */
.ag-roles { background: var(--off-white); }

.ag-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.ag-tab {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .55rem 1.25rem;
  border-radius: 6px;
  border: 1.5px solid var(--steel-200);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 44px;
  transition: border-color .2s, color .2s, background .2s;
}
.ag-tab:hover { border-color: var(--ag); color: var(--ag); }
.ag-tab.active {
  background: var(--ag);
  border-color: var(--ag);
  color: #fff;
}

.ag-panel { display: none; }
.ag-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  animation: agFade .32s ease;
}
@keyframes agFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.ag-panel-text h3 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
}
.ag-panel-role {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ag);
  margin-bottom: 1.1rem;
}
.ag-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.ag-bullets li {
  font-size: .875rem;
  line-height: 1.55;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}
.ag-bullets li::before {
  content: '→';
  position: absolute;
  left: 0; top: .05rem;
  color: var(--ag);
  font-size: .75rem;
}

/* role screenshot — wired into lightbox via .pp-frame */
.ag-panel-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(0,0,0,.14);
  border: 1px solid var(--steel-200);
  cursor: zoom-in;
  max-width: 100%;
  background: var(--off-white);
}
.ag-panel-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* ══════════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════════ */
.ag-gallery { background: #fff; }

.ag-gallery-sub {
  font-size: .88rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2rem;
}

.ag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* gallery items use .pp-frame so lightbox wires automatically */
.ag-grid .pp-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--steel-100);
  transition: transform .28s, box-shadow .28s;
  position: relative;
  cursor: zoom-in;
  /* override pp-frame defaults that assume full-width drawings */
  max-width: none;
  margin: 0;
  background: #f0f2f5;
}
.ag-grid .pp-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.ag-grid .pp-frame img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  object-position: top;
  cursor: zoom-in;
  transition: transform .35s ease;
}
.ag-grid .pp-frame:hover img { transform: scale(1.03); }

/* label gradient at top (avoids conflict with pp-frame::after at bottom-right) */
.ag-shot-lbl {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: .5rem .7rem 1.4rem;
  background: linear-gradient(rgba(0,0,0,.6), transparent);
  font-family: var(--font-head);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  font-weight: 600;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   TECH STACK
══════════════════════════════════════════════════════ */
.ag-tech { background: var(--off-white); }

.ag-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: .5rem;
}

.ag-tech-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid var(--steel-100);
}

.ag-tech-kicker {
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ag);
  margin-bottom: .45rem;
}
.ag-tech-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .8rem;
}
.ag-tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.ag-tech-list li {
  font-size: .83rem;
  color: var(--text-muted);
  padding-left: .9rem;
  position: relative;
  line-height: 1.5;
}
.ag-tech-list li::before {
  content: '·';
  position: absolute; left: .2rem;
  color: var(--ag);
  font-weight: 700;
}

/* live badge */
.ag-live {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(39,163,84,.08);
  border: 1px solid rgba(39,163,84,.22);
  border-radius: 999px;
  padding: .7rem .9rem;
  min-height: 44px;
  font-size: .72rem;
  color: var(--ag);
  font-weight: 500;
  margin-top: 1rem;
  text-decoration: none;
  transition: background .2s;
}
.ag-live:hover { background: rgba(39,163,84,.15); }
.ag-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: agPulse 2s ease-in-out infinite;
}
@keyframes agPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 940px) {
  .alaga-hero-inner {
    flex-direction: column;
    padding-top: clamp(4rem, 9vw, 6rem);
    gap: 2rem;
  }
  .alaga-mockup {
    flex: none;
    width: 100%;
    max-width: 480px;
    align-self: center;
  }
  .alaga-stats  { grid-template-columns: repeat(2, 1fr); }
  .ag-cards     { grid-template-columns: repeat(2, 1fr); }
  .ag-panel.active {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ag-panel-img { order: -1; }
  .ag-grid      { grid-template-columns: repeat(2, 1fr); }
  .ag-tech-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .alaga-hero-inner { padding-top: 4rem; }
  .ag-cards { grid-template-columns: 1fr; }
  .ag-grid  { grid-template-columns: 1fr; }
  .ag-grid .pp-frame img { height: 220px; }
}

@media (pointer: coarse) {
  .ag-tab  { min-height: 48px; }
  .ag-card:hover { transform: none; box-shadow: none; border-color: var(--steel-100); }
}

/* ══════════════════════════════════════════════════════
   PPTX SLIDESHOW
══════════════════════════════════════════════════════ */
.ag-slideshow-section {
  background: #111;
  padding: clamp(3.5rem, 7vw, 5rem) clamp(1.5rem, 5vw, 5rem);
}
.ag-slideshow-section .ag-kicker { color: #A5D6A7; }
.ag-slideshow-section .ag-h2 { color: #fff; margin-bottom: .4rem; }
.ag-slideshow-section .ag-gallery-sub { color: rgba(255,255,255,.5); margin-bottom: 1.8rem; }

.ag-pptx {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
  background: #1B5E20;
  user-select: none;
}

/* 16:9 aspect ratio wrapper */
.ag-pptx-viewport {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

/* Individual slide */
.ag-slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.ag-slide.active {
  display: flex;
  z-index: 2;
  animation: agSlideIn .48s cubic-bezier(.4,0,.2,1);
}
.ag-slide.active.from-left {
  animation: agSlideInLeft .48s cubic-bezier(.4,0,.2,1);
}
@keyframes agSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: none; }
}
@keyframes agSlideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: none; }
}

/* ── Slide backgrounds ── */
.ag-slide--dark {
  background: #0a1e10;
  color: #fff;
}
.ag-slide--light { background: #F4FAF2; color: #1B5E20; }

/* Dark slide: white geometric accents behind content */
.ag-slide--dark .ag-sl::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'%3E%3Ccircle cx='820' cy='-40' r='260' fill='none' stroke='rgba(255,255,255,.18)' stroke-width='44'/%3E%3Ccircle cx='-20' cy='540' r='200' fill='none' stroke='rgba(255,255,255,.13)' stroke-width='32'/%3E%3Cpolygon points='660,0 800,0 800,150' fill='rgba(255,255,255,.10)'/%3E%3Cline x1='0' y1='500' x2='200' y2='300' stroke='rgba(255,255,255,.08)' stroke-width='1.5'/%3E%3Ccircle cx='700' cy='430' r='65' fill='none' stroke='rgba(255,255,255,.07)' stroke-width='18'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* ── Slide layout helpers ── */
.ag-sl {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(.9rem, 3vw, 2.4rem) clamp(1rem, 4vw, 3rem);
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.ag-sl-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(.6rem, 2vw, 2rem);
  align-items: center;
}
.ag-sl-col { display: flex; flex-direction: column; justify-content: center; }

/* Slide title */
.ag-sl-kicker {
  font-family: var(--font-head);
  font-size: clamp(.5rem, 1vw, .65rem);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: .3rem;
}
.ag-sl-title {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: clamp(.4rem, 1.2vw, .9rem);
}
.ag-sl--dark .ag-sl-title { color: #fff; }
.ag-sl--light .ag-sl-title { color: #1B5E20; }

/* Stat cluster (cover/close) */
.ag-sl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-top: .8rem;
}
.ag-sl-stat {
  background: rgba(255,255,255,.1);
  border-radius: 7px;
  padding: .6rem .4rem;
  text-align: center;
}
.ag-sl-stat-n {
  font-family: var(--font-head);
  font-size: clamp(.9rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: #A5D6A7;
  display: block;
}
.ag-sl-stat-l {
  font-size: clamp(.4rem, .9vw, .6rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  display: block;
  margin-top: .15rem;
}

/* Pill / tag */
.ag-sl-pill {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border-radius: 4px;
  padding: .12rem .45rem;
  font-size: clamp(.45rem, .9vw, .65rem);
  letter-spacing: .08em;
  color: #A5D6A7;
  margin-bottom: .4rem;
}
.ag-slide--light .ag-sl-pill {
  background: rgba(27,94,32,.1);
  color: #1B5E20;
}

/* Feature grid */
.ag-sl-grid {
  display: grid;
  gap: .4rem;
}
.ag-sl-grid--2 { grid-template-columns: 1fr 1fr; }
.ag-sl-grid--3 { grid-template-columns: repeat(3, 1fr); }

.ag-sl-card {
  background: rgba(255,255,255,.08);
  border-radius: 7px;
  padding: .55rem .7rem;
}
.ag-slide--light .ag-sl-card {
  background: rgba(27,94,32,.06);
  border: 1px solid rgba(27,94,32,.1);
}
.ag-sl-card-icon { font-size: clamp(.75rem, 1.6vw, 1.1rem); display: block; margin-bottom: .2rem; }
.ag-sl-card-t {
  font-family: var(--font-head);
  font-size: clamp(.45rem, 1vw, .7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .15rem;
}
.ag-slide--dark .ag-sl-card-t { color: #A5D6A7; }
.ag-slide--light .ag-sl-card-t { color: #1B5E20; }
.ag-sl-card-d {
  font-size: clamp(.4rem, .85vw, .62rem);
  line-height: 1.5;
  opacity: .72;
}

/* Bullet list */
.ag-sl-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(.18rem, .5vw, .38rem);
}
.ag-sl-bullets li {
  font-size: clamp(.45rem, 1vw, .72rem);
  line-height: 1.4;
  padding-left: .9rem;
  position: relative;
  opacity: .85;
}
.ag-sl-bullets li::before {
  content: '→';
  position: absolute; left: 0;
  font-size: .6em;
  opacity: .7;
}
.ag-slide--dark .ag-sl-bullets li::before { color: #A5D6A7; }
.ag-slide--light .ag-sl-bullets li::before { color: #27a354; }

/* Role columns */
.ag-sl-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: .5rem;
}
.ag-sl-role {
  border-radius: 8px;
  padding: .65rem .7rem;
}
.ag-sl-role--enum { background: rgba(76,175,80,.18); }
.ag-sl-role--sup  { background: rgba(33,150,243,.15); }
.ag-sl-role--adm  { background: rgba(255,193,7,.12); }
.ag-slide--light .ag-sl-role--enum { background: rgba(27,94,32,.08); border: 1px solid rgba(27,94,32,.15); }
.ag-slide--light .ag-sl-role--sup  { background: rgba(33,150,243,.07); border: 1px solid rgba(33,150,243,.15); }
.ag-slide--light .ag-sl-role--adm  { background: rgba(255,193,7,.07); border: 1px solid rgba(255,193,7,.2); }
.ag-sl-role-label {
  font-family: var(--font-head);
  font-size: clamp(.5rem, 1.1vw, .72rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .3rem;
}
.ag-sl-role--enum .ag-sl-role-label { color: #66BB6A; }
.ag-sl-role--sup  .ag-sl-role-label { color: #42A5F5; }
.ag-sl-role--adm  .ag-sl-role-label { color: #FFD54F; }
.ag-slide--light .ag-sl-role--enum .ag-sl-role-label { color: #2E7D32; }
.ag-slide--light .ag-sl-role--sup  .ag-sl-role-label { color: #1565C0; }
.ag-slide--light .ag-sl-role--adm  .ag-sl-role-label { color: #F57F17; }

/* Flow steps */
.ag-sl-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .35rem;
  margin-top: .5rem;
}
.ag-sl-step {
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  padding: .5rem .4rem;
  text-align: center;
  position: relative;
}
.ag-slide--light .ag-sl-step { background: rgba(27,94,32,.07); border: 1px solid rgba(27,94,32,.12); }
.ag-sl-step-n {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(.6rem, 1.4vw, 1rem);
  font-weight: 700;
  color: #A5D6A7;
  margin-bottom: .15rem;
}
.ag-slide--light .ag-sl-step-n { color: #27a354; }
.ag-sl-step-t {
  font-size: clamp(.38rem, .8vw, .58rem);
  line-height: 1.3;
  opacity: .8;
}

/* Screenshot inside slide */
.ag-sl-screen {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
}
.ag-slide--light .ag-sl-screen {
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border: 1px solid rgba(0,0,0,.08);
}
.ag-sl-screen img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
/* Captions / badges below screenshots — keep readable over the green hill */
.ag-sl-screen + div {
  background: rgba(244,250,242,.82);
  border-radius: 4px;
  padding: .1rem .4rem;
}

/* Flow diagram */
.ag-sl-flow {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .6rem;
}
.ag-sl-flow-node {
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  padding: .45rem .65rem;
  text-align: center;
  font-size: clamp(.4rem, .85vw, .6rem);
  min-width: clamp(40px, 8vw, 80px);
}
.ag-slide--light .ag-sl-flow-node { background: rgba(27,94,32,.08); border: 1px solid rgba(27,94,32,.12); }
.ag-sl-flow-node-icon { font-size: clamp(.6rem, 1.4vw, 1rem); display: block; margin-bottom: .1rem; }
.ag-sl-flow-arr {
  font-size: clamp(.6rem, 1.5vw, 1.1rem);
  opacity: .5;
}

/* Bottom URL bar on slides */
.ag-sl-url {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  font-family: var(--font-head);
  font-size: clamp(.4rem, .85vw, .6rem);
  letter-spacing: .1em;
  text-align: center;
  padding: .3rem;
  opacity: .75;
}
.ag-slide--dark .ag-sl-url { color: #A5D6A7; background: rgba(0,0,0,.25); }
.ag-slide--light .ag-sl-url { color: rgba(255,255,255,.9); background: transparent; text-shadow: 0 1px 3px rgba(27,94,32,.4); }

/* Slide counter badge */
.ag-pptx-counter {
  position: absolute;
  top: .6rem; right: .8rem;
  font-family: var(--font-head);
  font-size: .65rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  pointer-events: none;
  z-index: 5;
}

/* ── Controls ── */
.ag-pptx-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .9rem 1rem;
  background: #0e0e0e;
}

.ag-pptx-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 6px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background .18s;
  flex-shrink: 0;
}
.ag-pptx-btn:hover { background: rgba(255,255,255,.14); }
.ag-pptx-btn--play { width: 40px; height: 40px; font-size: 1.1rem; }
.ag-pptx-btn--play { display: flex; align-items: center; justify-content: center; }
.ag-play-icon--pause { display: none; }
.ag-pptx-btn--play.is-playing .ag-play-icon--play  { display: none; }
.ag-pptx-btn--play.is-playing .ag-play-icon--pause { display: block; }
.ag-pptx-btn--fs { display: flex; align-items: center; justify-content: center; }
.ag-fs-icon--exit { display: none; }
.ag-pptx-btn--fs.is-fullscreen .ag-fs-icon--enter { display: none; }
.ag-pptx-btn--fs.is-fullscreen .ag-fs-icon--exit  { display: block; }

/* Fullscreen presentation mode */
.ag-pptx:fullscreen,
.ag-pptx:-webkit-full-screen {
  background: #111;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  border-radius: 0;
  padding: 0;
}
.ag-pptx:fullscreen .ag-pptx-viewport,
.ag-pptx:-webkit-full-screen .ag-pptx-viewport {
  flex: 1;
  height: auto;
  max-height: calc(100vh - 60px);
}
.ag-pptx:fullscreen .ag-pptx-controls,
.ag-pptx:-webkit-full-screen .ag-pptx-controls {
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .6rem 1rem;
  flex-shrink: 0;
}
.ag-pptx:fullscreen .ag-slide,
.ag-pptx:-webkit-full-screen .ag-slide {
  border-radius: 0;
}

.ag-pptx-dots {
  display: flex;
  gap: .32rem;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}
.ag-pptx-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.ag-pptx-dot.active { background: #A5D6A7; transform: scale(1.4); }
.ag-pptx-dot:hover  { background: rgba(165,214,167,.6); }

@media (max-width: 640px) {
  .ag-sl-split { grid-template-columns: 1fr; }
  .ag-sl-split .ag-sl-col:last-child { display: none; }
  .ag-sl-stats { grid-template-columns: repeat(2, 1fr); }
  .ag-sl-roles { grid-template-columns: 1fr; }
  .ag-sl-steps { grid-template-columns: repeat(3, 1fr); }
  .ag-sl-grid--3 { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════
   SLIDE VISUAL ENHANCEMENTS
══════════════════════════════════════════════════════ */

/* Light slide: organic rolling green hills — matches original PPTX background */
.ag-slide--light {
  background-color: #F4FAF2;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 480' preserveAspectRatio='none'><path d='M0,240 C200,178 400,290 600,232 C780,182 980,270 1200,228 L1200,480 L0,480 Z' fill='%23A5D6A7' opacity='0.38'/><path d='M0,300 C220,248 440,348 680,294 C880,250 1080,330 1200,298 L1200,480 L0,480 Z' fill='%234CAF50' opacity='0.36'/><path d='M0,360 C180,328 420,380 680,350 C900,324 1100,368 1200,345 L1200,480 L0,480 Z' fill='%231B5E20' opacity='0.55'/></svg>");
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: 100% 25%;
}

/* Soft left-edge ambient wash */
.ag-slide--light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27,94,32,.04) 0%, transparent 28%);
  pointer-events: none;
  z-index: 0;
}

/* Top-right soft bloom */
.ag-slide--light::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: clamp(200px, 34vw, 340px);
  height: clamp(200px, 34vw, 340px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,94,32,.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Ambient corner glows that render over all slides */
.ag-pptx-viewport::before {
  content: '';
  position: absolute;
  top: -130px; right: -130px;
  width: clamp(220px, 38vw, 380px);
  height: clamp(220px, 38vw, 380px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165,214,167,.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.ag-pptx-viewport::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: clamp(180px, 32vw, 300px);
  height: clamp(180px, 32vw, 300px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,163,84,.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Green top edge on viewport */
.ag-pptx-viewport {
  border-top: 1px solid rgba(39,163,84,.3);
}

/* Enhanced cards on light slides */
.ag-slide--light .ag-sl-card {
  background: #fff;
  border: 1px solid rgba(27,94,32,.1);
  border-left: 2.5px solid #27a354;
  box-shadow: 0 1px 6px rgba(27,94,32,.07);
}

/* Enhanced cards on dark slides */
.ag-slide--dark .ag-sl-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(165,214,167,.22);
}

/* Steps on light slides: white + green top tab */
.ag-slide--light .ag-sl-step {
  background: #fff;
  border: 1px solid rgba(27,94,32,.1);
  border-top: 2.5px solid #27a354;
  box-shadow: 0 2px 8px rgba(27,94,32,.07);
}

/* Stat boxes on dark slides */
.ag-slide--dark .ag-sl-stat {
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(165,214,167,.42);
}
.ag-slide--dark .ag-sl-stat-n {
  color: #fff;
}

/* Flow nodes on dark slides */
.ag-slide--dark .ag-sl-flow-node {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(165,214,167,.22);
}

/* Role columns: add visible borders */
.ag-slide--dark .ag-sl-role--enum { border: 1px solid rgba(76,175,80,.32); }
.ag-slide--dark .ag-sl-role--sup  { border: 1px solid rgba(33,150,243,.28); }
.ag-slide--dark .ag-sl-role--adm  { border: 1px solid rgba(255,193,7,.28); }

/* Active dot: brand green with glow */
.ag-pptx-dot.active {
  background: #27a354;
  transform: scale(1.55);
  box-shadow: 0 0 8px rgba(39,163,84,.6);
}
.ag-pptx-dot:hover { background: rgba(39,163,84,.55); }

/* Controls bar */
.ag-pptx-controls {
  background: #070707;
  border-top: 1px solid rgba(39,163,84,.2);
}

/* Button green hover */
.ag-pptx-btn:hover {
  background: rgba(39,163,84,.18);
  border-color: rgba(39,163,84,.38);
}

/* Slideshow container: add subtle green outer glow */
.ag-pptx {
  box-shadow:
    0 40px 100px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 50px -8px rgba(39,163,84,.18);
}

/* Counter badge: pill style */
.ag-pptx-counter {
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: .18rem .52rem;
  font-size: .58rem;
  backdrop-filter: blur(6px);
}

/* ── Slide logo mark (injected into every slide) ── */
.ag-slide-logo {
  position: absolute;
  top: 0.5rem;
  left: 0.65rem;
  z-index: 6;
  pointer-events: none;
  user-select: none;
}
.ag-slide-logo-img {
  display: block;
  width: clamp(30px, 4.8vw, 44px);
  height: auto;
  border-radius: 5px;
  box-shadow: 0 1px 6px rgba(0,0,0,.22);
}
