:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --navy: #061a36;
  --navy-2: #092952;
  --blue: #0967ff;
  --blue-2: #12a5ff;
  --cyan: #18d5e8;
  --ink: #071527;
  --muted: #5d6f86;
  --line: #dce6f2;
  --silver: #eef4fb;
  --white: #ffffff;
  --soft: rgba(255, 255, 255, 0.82);
  --soft-2: rgba(199, 212, 230, 0.72);
  --card: rgba(255, 255, 255, 0.05);
  --card-line: rgba(160, 192, 235, 0.18);
  --card-line-strong: rgba(160, 192, 235, 0.32);
  --shadow: 0 24px 70px rgba(4, 14, 30, 0.4);
  --chrome: rgba(6, 18, 38, 0.62);
  --chrome-line: rgba(160, 192, 235, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.walkthrough-shell {
  background:
    linear-gradient(135deg, rgba(5, 19, 42, 1), rgba(7, 28, 58, 1)),
    radial-gradient(circle at 88% 12%, rgba(18, 165, 255, 0.16), transparent 34%);
  height: 100svh;
  overflow: hidden;
  position: relative;
}

/* ---------- Top chrome ---------- */
.topbar {
  align-items: center;
  background: var(--chrome);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--chrome-line);
  display: flex;
  height: 54px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(16px, 4vw, 44px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand-lockup {
  align-items: center;
  display: inline-flex;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(150deg, var(--blue), var(--blue-2));
  border-radius: 9px;
  color: var(--white);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.brand-mark svg {
  height: 18px;
  width: 18px;
}

.brand-lockup strong {
  color: var(--white);
  display: block;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-lockup small {
  color: var(--soft-2);
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  margin-top: 3px;
  text-transform: uppercase;
}

.deck-status {
  align-items: center;
  color: var(--white);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 13px;
  font-variant-numeric: tabular-nums;
}

.start-guided {
  align-items: center;
  align-self: flex-start;
  background: linear-gradient(150deg, var(--blue), var(--blue-2));
  border: 0;
  border-radius: 99px;
  box-shadow: 0 16px 38px rgba(9, 103, 255, 0.35);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 11px;
  letter-spacing: 0.01em;
  margin: 4px 0 2px;
  padding: 14px 26px;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.start-guided:hover {
  filter: brightness(1.05);
  box-shadow: 0 20px 46px rgba(9, 103, 255, 0.45);
  transform: translateY(-1px);
}

.start-guided .sg-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: inline-flex;
  font-size: 10px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.guided-active .start-guided {
  box-shadow: 0 12px 30px rgba(9, 103, 255, 0.3);
}

.narration-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-line-strong);
  border-radius: 99px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 7px;
  letter-spacing: 0.06em;
  min-height: 32px;
  padding: 0 14px;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease;
}

.narration-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.narration-btn.playing {
  background: linear-gradient(150deg, var(--blue), var(--blue-2));
  border-color: transparent;
}

.narration-btn .nar-icon {
  color: var(--cyan);
  font-size: 10px;
  line-height: 1;
}

.narration-btn.playing .nar-icon {
  color: var(--white);
}

.progress-track {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  height: 4px;
  overflow: hidden;
  width: min(24vw, 220px);
}

.progress-track span {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 99px;
  display: block;
  height: 100%;
  transition: width 320ms ease;
  width: 11%;
}

/* ---------- Slide base ---------- */
.slide {
  align-items: center;
  display: grid;
  height: 100svh;
  left: 0;
  opacity: 0;
  overflow: hidden;
  padding: 88px clamp(24px, 5.5vw, 88px) 84px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateX(48px) scale(0.985);
  transition:
    opacity 460ms ease,
    transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 620ms;
  visibility: hidden;
  width: 100%;
  z-index: 1;
}

/* Direction-aware enter/exit */
.walkthrough-shell[data-dir="back"] .slide {
  transform: translateX(-48px) scale(0.985);
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  visibility: visible;
  z-index: 3;
  transition:
    opacity 500ms ease,
    transform 660ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.slide.leaving {
  opacity: 0;
  visibility: visible;
  transform: translateX(-52px) scale(0.985);
  z-index: 2;
  transition:
    opacity 420ms ease,
    transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.walkthrough-shell[data-dir="back"] .slide.leaving {
  transform: translateX(52px) scale(0.985);
}

/* ---------- Hero ---------- */
.hero-slide {
  color: var(--white);
  justify-items: start;
  padding-left: clamp(28px, 8vw, 120px);
}

.slide-image,
.image-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.full-bleed {
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  transform-origin: 65% 40%;
  filter: brightness(0.46) saturate(0.95) blur(3px);
}

.hero-slide.active .full-bleed {
  animation: ken-burns 26s ease-in-out infinite alternate;
}

.image-shade {
  background:
    linear-gradient(90deg, rgba(4, 14, 30, 0.96) 0%, rgba(4, 14, 30, 0.82) 38%, rgba(4, 14, 30, 0.36) 72%, rgba(4, 14, 30, 0.1) 100%),
    linear-gradient(180deg, rgba(4, 14, 30, 0.42), rgba(4, 14, 30, 0.62));
}

/* Soft signature scan sweeping the hero */
.hero-slide::after {
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(24, 213, 232, 0.06) 46%,
    rgba(24, 213, 232, 0.14) 50%,
    rgba(24, 213, 232, 0.06) 54%,
    transparent 100%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-60%);
  z-index: 1;
}

.hero-slide.active::after {
  animation: hero-sweep 9s ease-in-out 1.2s infinite;
}

@keyframes ken-burns {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1.16) translate(-1.5%, 1%);
  }
}

@keyframes hero-sweep {
  0% {
    opacity: 0;
    transform: translateX(-60%);
  }
  18% {
    opacity: 1;
  }
  60% {
    opacity: 0;
    transform: translateX(120%);
  }
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

/* ---------- Animated brand checkmark ---------- */
.brand-mark svg path:last-child {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  animation: draw-check 820ms ease 700ms forwards;
}

.brand-mark {
  position: relative;
}

.brand-mark::after {
  border-radius: 11px;
  box-shadow: 0 0 0 0 rgba(24, 213, 232, 0.5);
  content: "";
  inset: 0;
  position: absolute;
  animation: mark-glow 4.5s ease-out 1.4s infinite;
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes mark-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 213, 232, 0.45);
  }
  60% {
    box-shadow: 0 0 0 9px rgba(24, 213, 232, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(24, 213, 232, 0);
  }
}

/* ---------- Image moment framing (HUD + scan) ---------- */
.visual-frame,
.duo-visual {
  justify-self: center;
  position: relative;
}

.frame-hud {
  border-radius: 14px;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.frame-hud .corner {
  border: 2px solid rgba(24, 213, 232, 0.62);
  height: 20px;
  position: absolute;
  width: 20px;
}

.frame-hud .c-tl {
  border-bottom: 0;
  border-radius: 6px 0 0 0;
  border-right: 0;
  left: 8px;
  top: 8px;
}

.frame-hud .c-tr {
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 6px 0 0;
  right: 8px;
  top: 8px;
}

.frame-hud .c-bl {
  border-radius: 0 0 0 6px;
  border-right: 0;
  border-top: 0;
  bottom: 8px;
  left: 8px;
}

.frame-hud .c-br {
  border-left: 0;
  border-radius: 0 0 6px 0;
  border-top: 0;
  bottom: 8px;
  right: 8px;
}

.frame-hud .scan-line {
  background: linear-gradient(90deg, transparent, rgba(24, 213, 232, 0.85), transparent);
  box-shadow: 0 0 14px rgba(24, 213, 232, 0.55);
  height: 2px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.slide.active .frame-hud .scan-line {
  animation: scan-y 5.6s ease-in-out 0.7s infinite;
}

@keyframes scan-y {
  0% {
    opacity: 0;
    top: 0;
  }
  10% {
    opacity: 0.7;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    top: 100%;
  }
}

.visual-main,
.duo-visual img {
  box-shadow:
    0 30px 80px rgba(4, 14, 30, 0.55),
    0 0 0 1px rgba(24, 213, 232, 0.14);
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 320ms ease;
}

/* ---------- Risk pulse points ---------- */
.risk-dot {
  background: rgba(24, 213, 232, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(24, 213, 232, 0.5);
  height: 12px;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 12px;
  z-index: 3;
}

.risk-dot::before {
  background: var(--white);
  border-radius: 50%;
  content: "";
  height: 4px;
  inset: 0;
  margin: auto;
  position: absolute;
  width: 4px;
}

.slide.active .risk-dot {
  animation: risk-pulse 2.8s ease-out var(--d, 0s) infinite;
}

@keyframes risk-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 213, 232, 0.5);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(24, 213, 232, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(24, 213, 232, 0);
  }
}

.slide-copy {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero-copy-block {
  max-width: 620px;
  max-height: calc(100svh - 150px);
  overflow-y: auto;
  padding-right: 6px;
}

.hero-slide h1 {
  font-size: clamp(28px, 3.3vw, 44px);
  max-width: 20ch;
  text-wrap: balance;
}

/* ---------- Typography ---------- */
.eyebrow {
  align-items: center;
  color: var(--cyan);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 11px;
  letter-spacing: 0.22em;
  line-height: 1.2;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  content: "";
  flex: none;
  height: 2px;
  width: 26px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  color: var(--white);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin-bottom: 18px;
}

h2 {
  color: var(--white);
  font-size: clamp(25px, 2.9vw, 40px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.14;
  margin-bottom: 16px;
}

p {
  color: var(--soft);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  max-width: 48ch;
}

.mini-label {
  color: var(--soft-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 26px 0 12px;
  text-transform: uppercase;
}

.mini-label.center {
  text-align: center;
}

/* ---------- Notes / callouts ---------- */
.note {
  background: rgba(9, 103, 255, 0.1);
  border: 1px solid rgba(18, 165, 255, 0.28);
  border-radius: 12px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 22px;
  max-width: 52ch;
  padding: 14px 16px;
}

.note strong {
  color: var(--cyan);
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-right: 8px;
  text-transform: uppercase;
}

.note.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Trust tags ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-row span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-line-strong);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  text-transform: uppercase;
}

/* ---------- Content slide (two-column, dark) ---------- */
.content-slide {
  background:
    linear-gradient(135deg, rgba(6, 26, 54, 0.98), rgba(9, 41, 82, 0.96)),
    radial-gradient(circle at 80% 14%, rgba(18, 165, 255, 0.16), transparent 36%);
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
}

.panel-scroll {
  max-height: calc(100svh - 180px);
  overflow-y: auto;
  padding-right: 6px;
}

/* ---------- Reveal accordion ---------- */
.reveal-group {
  display: grid;
  gap: 10px;
}

.reveal {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease;
}

.reveal[open] {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--card-line-strong);
}

.reveal summary {
  align-items: center;
  color: var(--white);
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 600;
  gap: 12px;
  list-style: none;
  padding: 15px 18px;
}

.reveal summary::-webkit-details-marker {
  display: none;
}

.reveal summary::after {
  border: 2px solid var(--soft-2);
  border-radius: 50%;
  color: var(--cyan);
  content: "+";
  display: grid;
  flex: none;
  font-size: 16px;
  font-weight: 700;
  height: 22px;
  line-height: 18px;
  margin-left: auto;
  place-items: center;
  transition: transform 240ms ease, border-color 200ms ease;
  width: 22px;
}

.reveal[open] summary::after {
  border-color: var(--cyan);
  content: "−";
}

.reveal p {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  max-width: none;
  padding: 0 18px 16px;
}

.step-no {
  align-items: center;
  background: linear-gradient(150deg, var(--blue), var(--blue-2));
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  flex: none;
  font-size: 13px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.numbered .reveal p {
  padding-left: 56px;
}

/* ---------- Scope slide ---------- */
.scope-slide {
  align-content: center;
  background:
    linear-gradient(135deg, rgba(6, 26, 54, 0.98), rgba(9, 41, 82, 0.96)),
    radial-gradient(circle at 74% 12%, rgba(18, 165, 255, 0.16), transparent 36%);
  justify-items: center;
  overflow-y: auto;
  text-align: center;
}

.section-lead {
  max-width: 720px;
}

.section-lead p {
  margin: 0 auto;
}

.scope-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 30px 0 6px;
  max-width: 1040px;
  width: 100%;
}

.scope-grid span {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  color: var(--white);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 10px;
  min-height: 64px;
  padding: 14px 16px;
  text-align: left;
  transition: transform 200ms ease, border-color 200ms ease;
}

.scope-grid span:hover {
  border-color: var(--card-line-strong);
  transform: translateY(-2px);
}

.scope-grid i {
  align-items: center;
  background: linear-gradient(150deg, var(--blue), var(--cyan));
  border-radius: 6px;
  color: var(--white);
  display: inline-flex;
  flex: none;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  width: 22px;
}

/* ---------- Visual slides ---------- */
.visual-slide {
  background:
    linear-gradient(135deg, rgba(5, 19, 42, 1), rgba(7, 28, 58, 1)),
    radial-gradient(circle at 78% 10%, rgba(18, 165, 255, 0.14), transparent 36%);
  color: var(--white);
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.7fr);
}

.visual-frame {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  min-width: 0;
}

.visual-main {
  background: transparent;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-height: calc(100svh - 180px);
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.visual-side {
  border-left: 3px solid var(--blue);
  max-height: calc(100svh - 170px);
  overflow-y: auto;
  padding-left: clamp(20px, 3vw, 30px);
  padding-right: 4px;
}

.visual-side p {
  color: rgba(255, 255, 255, 0.74);
}

/* ---------- Checklist ---------- */
.checklist {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.4;
  padding-left: 28px;
  position: relative;
}

.checklist li::before {
  background: linear-gradient(150deg, var(--blue), var(--cyan));
  border-radius: 6px;
  color: var(--white);
  content: "✓";
  display: grid;
  font-size: 11px;
  font-weight: 800;
  height: 19px;
  left: 0;
  place-items: center;
  position: absolute;
  top: 1px;
  width: 19px;
}

/* ---------- Duo slide (copy + image) ---------- */
.duo-slide {
  background:
    linear-gradient(135deg, rgba(6, 26, 54, 0.98), rgba(9, 41, 82, 0.96)),
    radial-gradient(circle at 80% 12%, rgba(18, 165, 255, 0.16), transparent 36%);
  gap: clamp(28px, 4vw, 60px);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
}

.duo-slide .slide-copy {
  max-height: calc(100svh - 170px);
  overflow-y: auto;
  padding-right: 4px;
}

.duo-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  min-width: 0;
}

.duo-visual img {
  background: transparent;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-height: calc(100svh - 180px);
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

/* ---------- Tabs ---------- */
.tabs {
  margin-top: 24px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-line);
  border-radius: 99px;
  color: var(--soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.tab:hover {
  color: var(--white);
}

.tab.active {
  background: linear-gradient(150deg, var(--blue), var(--blue-2));
  border-color: transparent;
  color: var(--white);
}

.tab-panels {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  margin-top: 14px;
  min-height: 96px;
  padding: 18px 20px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fade-in 280ms ease both;
}

.tab-panel p {
  margin: 0;
  max-width: none;
}

/* ---------- Step list (ordered) ---------- */
.step-list {
  counter-reset: step;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-list li {
  color: var(--soft);
  counter-increment: step;
  font-size: 14.5px;
  line-height: 1.45;
  padding-left: 40px;
  position: relative;
}

.step-list li::before {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-line-strong);
  border-radius: 8px;
  color: var(--cyan);
  content: counter(step);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  height: 27px;
  left: 0;
  place-items: center;
  position: absolute;
  top: -2px;
  width: 27px;
}

.step-list.center {
  display: inline-grid;
  text-align: left;
}

/* ---------- Action buttons ---------- */
.document-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.document-actions a,
.final-actions a {
  align-items: center;
  background: linear-gradient(150deg, var(--blue), var(--blue-2));
  border-radius: 10px;
  color: var(--white);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-height: 44px;
  padding: 0 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.document-actions a:nth-child(2),
.final-actions a:nth-child(2),
.final-actions a:nth-child(3) {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-line-strong);
}

.document-actions a:hover,
.final-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(9, 103, 255, 0.3);
}

/* ---------- Document preview cards ---------- */
.doc-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.final-slide .doc-cards {
  justify-content: center;
}

.doc-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  width: min(360px, 100%);
}

.doc-card:hover {
  border-color: var(--card-line-strong);
  box-shadow: 0 18px 40px rgba(4, 14, 30, 0.45);
  transform: translateY(-2px);
}

.doc-thumb {
  background: var(--navy-2);
  border-bottom: 1px solid var(--card-line);
  height: 136px;
  overflow: hidden;
  width: 100%;
}

.doc-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.doc-thumb.top img {
  object-position: top;
}

.doc-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px 16px;
}

.doc-meta strong {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.doc-meta small {
  color: var(--soft-2);
  font-size: 12px;
  line-height: 1.4;
}

.doc-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.doc-card-actions a {
  align-items: center;
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 32px;
  padding: 0 14px;
  transition: filter 160ms ease, transform 160ms ease;
}

.doc-card-actions a.view {
  background: linear-gradient(150deg, var(--blue), var(--blue-2));
}

.doc-card-actions a.download {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-line-strong);
}

.doc-card-actions a:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ---------- Clean exit ---------- */
.final-end {
  margin-top: 28px;
}

.final-end .end-note {
  color: var(--soft-2);
  font-size: 13px;
  margin: 0 0 12px;
}

.restart-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-line-strong);
  border-radius: 99px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  min-height: 42px;
  padding: 0 22px;
  transition: background 160ms ease, transform 160ms ease;
}

.restart-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* ---------- Final slide ---------- */
.final-slide {
  background:
    linear-gradient(135deg, rgba(5, 19, 42, 1), rgba(7, 28, 58, 1)),
    radial-gradient(circle at 50% 8%, rgba(18, 165, 255, 0.18), transparent 42%);
  color: var(--white);
  place-items: center;
  text-align: center;
}

.final-content {
  max-height: calc(100svh - 160px);
  max-width: 760px;
  overflow-y: auto;
  padding: 4px;
}

.final-content p {
  margin-left: auto;
  margin-right: auto;
  max-width: 54ch;
}

.final-actions {
  justify-content: center;
  margin-top: 26px;
}

/* ---------- Supporting drawer ---------- */
.supporting-drawer {
  bottom: 72px;
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  z-index: 30;
}

#drawer-toggle {
  background: var(--chrome);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--chrome-line);
  border-radius: 99px;
  box-shadow: 0 12px 30px rgba(4, 14, 30, 0.3);
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 40px;
  padding: 0 18px;
}

.drawer-panel {
  background: rgba(8, 22, 44, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--chrome-line);
  border-radius: 14px;
  bottom: 50px;
  box-shadow: var(--shadow);
  display: none;
  min-width: 260px;
  padding: 18px;
  position: absolute;
  right: 0;
}

.drawer-panel.open {
  display: grid;
  gap: 11px;
}

.drawer-panel strong {
  color: var(--soft-2);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drawer-panel a {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.drawer-panel a:hover {
  color: var(--blue-2);
}

/* ---------- Bottom chrome ---------- */
.deck-controls {
  align-items: center;
  background: var(--chrome);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--chrome-line);
  bottom: 0;
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  height: 56px;
  left: 0;
  padding: 0 clamp(16px, 4vw, 44px);
  position: fixed;
  right: 0;
  z-index: 20;
}

.deck-controls button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-line-strong);
  border-radius: 99px;
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  height: 38px;
  transition: background 180ms ease, transform 180ms ease;
}

.deck-controls button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

#next-slide {
  background: linear-gradient(150deg, var(--blue), var(--blue-2));
  border-color: transparent;
}

.deck-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.step-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
}

.step-dots button {
  background: rgba(199, 212, 230, 0.32);
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  height: 7px;
  padding: 0;
  transition: width 280ms ease, background 200ms ease;
  width: 7px;
}

.step-dots button.active {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  width: 24px;
}

/* ---------- Scrollbars ---------- */
.hero-copy-block::-webkit-scrollbar,
.panel-scroll::-webkit-scrollbar,
.visual-side::-webkit-scrollbar,
.duo-slide .slide-copy::-webkit-scrollbar,
.final-content::-webkit-scrollbar {
  width: 6px;
}

.hero-copy-block::-webkit-scrollbar-thumb,
.panel-scroll::-webkit-scrollbar-thumb,
.visual-side::-webkit-scrollbar-thumb,
.duo-slide .slide-copy::-webkit-scrollbar-thumb,
.final-content::-webkit-scrollbar-thumb {
  background: var(--card-line-strong);
  border-radius: 99px;
}

/* ---------- Animated scope / checklist checkmarks ---------- */
.scope-grid i,
.checklist li::before {
  transform-origin: center;
}

.slide.active .scope-grid span i {
  animation: check-pop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(320ms + var(--i, 0) * 58ms);
}

.slide.active .checklist li::before {
  animation: check-pop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(360ms + var(--i, 0) * 58ms);
}

@keyframes check-pop {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Desktop hover reveals ---------- */
@media (hover: hover) and (pointer: fine) {
  .scope-grid span {
    transition:
      transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1),
      border-color 240ms ease,
      box-shadow 240ms ease,
      background 240ms ease;
  }

  .scope-grid span:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(24, 213, 232, 0.55);
    box-shadow:
      0 18px 34px rgba(4, 14, 30, 0.42),
      0 0 0 1px rgba(24, 213, 232, 0.22);
    transform: translateY(-4px);
  }

  .scope-grid span:hover i {
    box-shadow: 0 0 16px rgba(24, 213, 232, 0.55);
  }

  .reveal {
    transition:
      border-color 220ms ease,
      background 220ms ease,
      box-shadow 220ms ease,
      transform 220ms ease;
  }

  .reveal:hover {
    border-color: var(--card-line-strong);
    box-shadow: 0 16px 32px rgba(4, 14, 30, 0.36);
    transform: translateY(-2px);
  }

  .checklist li {
    transition: color 200ms ease, transform 200ms ease;
  }

  .checklist li:hover {
    color: var(--white);
    transform: translateX(3px);
  }

  .checklist li:hover::before {
    box-shadow: 0 0 14px rgba(24, 213, 232, 0.6);
  }

  .note {
    transition: border-color 240ms ease, box-shadow 240ms ease;
  }

  .note:hover {
    border-color: rgba(24, 213, 232, 0.5);
    box-shadow: 0 14px 34px rgba(9, 103, 255, 0.22);
  }

  .visual-frame:hover .visual-main,
  .duo-visual:hover img {
    box-shadow:
      0 36px 92px rgba(4, 14, 30, 0.6),
      0 0 0 1px rgba(24, 213, 232, 0.32);
    transform: translateY(-4px);
  }
}

/* ---------- Progress bar shimmer ---------- */
.progress-track span {
  position: relative;
  overflow: hidden;
}

.progress-track span::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-100%);
  animation: progress-shimmer 3.4s ease-in-out 1s infinite;
}

@keyframes progress-shimmer {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(220%);
  }
}

/* ---------- Final CTA closing moment ---------- */
.final-slide::before {
  background: radial-gradient(circle at 50% 38%, rgba(9, 103, 255, 0.22), transparent 58%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.final-seal {
  display: grid;
  margin: 0 auto 22px;
  place-items: center;
  position: relative;
  height: 76px;
  width: 76px;
}

.final-seal svg {
  height: 38px;
  position: relative;
  width: 38px;
  z-index: 2;
}

.final-seal .seal-disc {
  background: linear-gradient(150deg, var(--blue), var(--blue-2));
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(9, 103, 255, 0.45);
  color: var(--white);
  display: grid;
  height: 64px;
  place-items: center;
  position: relative;
  width: 64px;
  z-index: 2;
}

.final-seal::before,
.final-seal::after {
  border: 1.5px solid rgba(24, 213, 232, 0.5);
  border-radius: 50%;
  content: "";
  height: 64px;
  inset: 0;
  margin: auto;
  position: absolute;
  width: 64px;
  z-index: 1;
}

.final-slide.active .final-seal::before {
  animation: seal-ring 3s ease-out infinite;
}

.final-slide.active .final-seal::after {
  animation: seal-ring 3s ease-out 1.5s infinite;
}

.final-slide.active .final-seal .seal-check {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  animation: draw-check 760ms ease 500ms forwards;
}

@keyframes seal-ring {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.85);
  }
}

.final-actions a:first-child {
  box-shadow: 0 16px 38px rgba(9, 103, 255, 0.4);
}

.final-slide.active .final-actions a:first-child {
  animation: cta-glow 3.6s ease-in-out 1.2s infinite;
}

@keyframes cta-glow {
  0%,
  100% {
    box-shadow: 0 16px 38px rgba(9, 103, 255, 0.38);
  }
  50% {
    box-shadow: 0 18px 48px rgba(9, 103, 255, 0.6);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .walkthrough-shell {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .slide {
    display: none;
    height: auto;
    min-height: 100svh;
    padding-bottom: 96px;
    position: relative;
    transform: none;
  }

  .slide.active {
    display: grid;
  }

  .content-slide,
  .duo-slide,
  .visual-slide {
    align-content: start;
    grid-template-columns: 1fr;
  }

  .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy-block,
  .panel-scroll,
  .visual-side,
  .duo-slide .slide-copy,
  .final-content {
    max-height: none;
    overflow: visible;
  }

  .visual-main,
  .duo-visual img {
    max-height: 46svh;
  }

  .supporting-drawer {
    display: none;
  }
}

@media (max-width: 680px) {
  .topbar {
    height: 52px;
    padding: 0 14px;
  }

  .brand-lockup small {
    display: none;
  }

  .deck-status {
    gap: 8px;
  }

  .progress-track {
    width: 76px;
  }

  .slide {
    padding: 78px 20px 92px;
  }

  .hero-slide {
    padding-left: 20px;
  }

  .scope-grid {
    grid-template-columns: 1fr;
  }

  p {
    font-size: 15px;
  }

  .deck-controls {
    grid-template-columns: 80px 1fr 80px;
    padding: 0 12px;
  }

  .step-dots {
    gap: 5px;
  }

  .step-dots button.active {
    width: 16px;
  }
}

/* ---------- Staggered reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .slide .stagger {
    opacity: 0;
  }

  .slide.active .stagger {
    animation: reveal-up 640ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: calc(160ms + var(--i, 0) * 58ms);
  }

  .slide.leaving .stagger {
    animation: none;
    opacity: 1;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Reduced motion: respect fully ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .slide,
  .slide.active,
  .slide.leaving {
    transform: none !important;
  }

  .brand-mark svg path:last-child {
    stroke-dashoffset: 0 !important;
  }
}
