/* ==========================================================
   2026 성과평가 결과보고 — Refined Toss-Inspired Design System
   Palette: Toss Blue + Soft Warm Orange (Missed) + Crisp Neutrals
   ========================================================== */

:root {
  /* Primary: Toss Blue */
  --blue-500: #3182f6;
  --blue-600: #1b64da;
  --blue-50: #e8f3ff;
  --blue-100: #d5e7ff;

  /* Missed / Unachieved: Soft Warm Orange */
  --miss-bg: #fff2e5;
  --miss-bar: #ffe4cc;
  --miss-dot: #f59e56;
  --miss-text: #b84b0b;

  /* Neutrals */
  --ink-900: #191f28;
  --ink-800: #252d3a;
  --ink-700: #333d4b;
  --ink-600: #4e5968;
  --ink-500: #6b7684;
  --ink-400: #8b95a1;
  --ink-300: #b0b8c1;

  --bg-white: #ffffff;
  --bg-gray: #f9fafb;
  --bg-subtle: #f2f4f6;
  --border-light: rgba(0, 27, 55, 0.08);
  --border-subtle: rgba(0, 27, 55, 0.05);

  /* Radii & Shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 4px 16px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 12px 32px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 56px rgba(16, 24, 40, 0.16);

  /* Layout */
  --container-max: 1040px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg-white);
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  overflow-x: clip;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

code,
pre {
  font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", SFMono-Regular,
    Menlo, Consolas, monospace;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.pc-only {
  display: inline;
}

.sp-only {
  display: none;
}

/* ==========================================================
   Progress Bar & Sticky Header (Refined Desktop + Mobile)
   ========================================================== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}

.progress-bar__fill {
  width: 0%;
  height: 100%;
  background: var(--blue-500);
  transition: width 0.08s linear;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(16, 24, 40, 0.05);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  min-width: 0;
  white-space: nowrap;
}

.brand-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px var(--blue-50);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(242, 244, 246, 0.72);
}

.nav__link {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: -0.015em;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  line-height: 1.2;
}

.nav__link:hover {
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.7);
}

.nav__link.is-active {
  color: var(--blue-600);
  background: var(--bg-white);
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--bg-subtle);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.menu-toggle:hover {
  background: #e5e8eb;
}

.menu-toggle__line {
  width: 18px;
  height: 2px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] {
  background: var(--blue-50);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line {
  background: var(--blue-600);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Drawer & Backdrop */
.drawer-backdrop {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 880;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(3px);
}

.drawer-backdrop[hidden] {
  display: none;
}

.mobile-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 890;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 14px 0 20px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-800);
  transition: background-color 0.2s, color 0.2s;
}

.mobile-drawer__link:hover,
.mobile-drawer__link:active {
  background: var(--bg-subtle);
  color: var(--ink-900);
}

.drawer-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-num,
.drawer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.drawer-num {
  color: var(--blue-600);
  background: var(--blue-50);
}

.drawer-num--miss {
  color: var(--miss-text);
  background: var(--miss-bg);
}

.drawer-badge {
  color: var(--ink-600);
  background: var(--bg-subtle);
}

.drawer-weight {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-400);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================
   Buttons, Tags & Badges
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 6px 16px rgba(49, 130, 246, 0.22);
}

.btn--primary:hover {
  background: var(--blue-600);
  box-shadow: 0 8px 20px rgba(27, 100, 218, 0.28);
}

.btn--ghost {
  background: var(--bg-subtle);
  color: var(--ink-700);
}

.btn--ghost:hover {
  background: #e5e8eb;
  color: var(--ink-900);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 13.5px;
  border-radius: 11px;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-500);
  padding: 5px 10px;
  border-radius: 8px;
  transition: background-color 0.2s, color 0.2s;
}

.text-btn:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

.goal-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--ink-900);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.tag--type {
  background: var(--bg-subtle);
  color: var(--ink-600);
}

.tag--weight {
  background: var(--bg-subtle);
  color: var(--ink-800);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.badge--achieved {
  background: var(--blue-50);
  color: var(--blue-600);
}

.badge--missed {
  background: var(--miss-bg);
  color: var(--miss-text);
}

.badge--neutral {
  background: var(--bg-subtle);
  color: var(--ink-500);
}

/* ==========================================================
   Hero Section (Clean & Focused)
   ========================================================== */
.hero {
  padding: 88px 0 76px;
  background:
    radial-gradient(640px 280px at 84% 12%, rgba(49, 130, 246, 0.08), transparent 72%),
    var(--bg-white);
}

.hero__content {
  max-width: 720px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.eyebrow__pill {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow__meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-500);
}

.hero__title {
  font-size: clamp(36px, 5.4vw, 56px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================
   Sections & Headings
   ========================================================== */
.section {
  padding: 92px 0;
  background: var(--bg-white);
}

.section--tinted {
  background: var(--bg-gray);
}

.section--dark {
  background: #141923;
  color: #f2f4f6;
}

.section-head {
  margin-bottom: 34px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-500);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.section-desc {
  font-size: 16px;
  color: var(--ink-600);
  line-height: 1.65;
}

/* Goal Header */
.goal-header {
  max-width: 820px;
  margin-bottom: 34px;
}

.goal-header__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.goal-header__title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin-bottom: 14px;
}

.goal-header__lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-600);
}

/* ==========================================================
   Executive Summary: Weight Bar & Summary List
   ========================================================== */
.weight-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}

.weight-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.weight-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
}

.weight-card__sub {
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 2px;
}

.weight-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-600);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.legend-dot--achieved { background: var(--blue-500); }
.legend-dot--missed { background: #cbd2d9; }

.weight-bar {
  display: flex;
  gap: 6px;
  height: 52px;
}

.weight-bar__seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: transform 0.2s var(--ease), filter 0.2s;
  min-width: 0;
  padding: 0 8px;
  white-space: nowrap;
}

.weight-bar__seg:hover {
  transform: translateY(-2px);
  filter: brightness(0.96);
}

.weight-bar__seg--achieved {
  background: var(--blue-500);
  color: #ffffff;
}

.weight-bar__seg--missed {
  background: #e5e8eb;
  color: var(--ink-600);
}

.seg-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
}

.weight-bar__seg--achieved .seg-label {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.weight-bar__seg--missed .seg-label {
  background: rgba(25, 31, 40, 0.08);
  color: var(--ink-600);
}

.seg-pct {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
}

.summary-item:hover {
  transform: translateY(-2px);
  border-color: rgba(49, 130, 246, 0.28);
  box-shadow: var(--shadow-sm);
}

.summary-item__left {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.summary-item__meta {
  min-width: 0;
  flex: 1;
}

.goal-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s, color 0.2s;
}

.goal-num--missed {
  background: var(--miss-bg);
  color: var(--miss-text);
}

.summary-item:hover .goal-num {
  background: var(--blue-500);
  color: #fff;
}

.summary-item:hover .goal-num--missed {
  background: var(--miss-dot);
  color: #fff;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.summary-item__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.summary-item__result {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.55;
}

.summary-item__arrow {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-300);
  flex-shrink: 0;
  transition: transform 0.22s var(--ease), color 0.22s;
}

.summary-item:hover .summary-item__arrow {
  color: var(--blue-500);
  transform: translateX(4px);
}

/* ==========================================================
   KPI Comparison Cards (Clean, No Progress Bar Clutter)
   ========================================================== */
.kpi-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

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

.kpi-card {
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

.section:not(.section--tinted) .kpi-card {
  background: var(--bg-gray);
  border-color: var(--border-subtle);
}

.kpi-card__eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-500);
  margin-bottom: 10px;
}

.kpi-card__nums {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  flex-wrap: wrap;
  min-height: 36px;
  margin-bottom: 14px;
}

.kpi-card__actual {
  font-size: clamp(22px, 2.3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-500);
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.kpi-card__actual--blue {
  color: var(--blue-500);
}

.kpi-card__vs {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-400);
  max-width: 100%;
}

.kpi-card__note {
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--ink-600);
  line-height: 1.55;
}

/* ==========================================================
   Goal 1: Showcase Card (3 Tabs: 기존 / 분할 뷰 / 그리드 뷰)
   ========================================================== */
.showcase-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.showcase-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.showcase-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.showcase-card__sub {
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 3px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: var(--bg-subtle);
}

.segmented__btn {
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-600);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.segmented__btn:hover {
  color: var(--ink-900);
}

.segmented__btn.is-active {
  background: var(--bg-white);
  color: var(--blue-600);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.list-panel[hidden] {
  display: none;
}

.single-shot {
  width: 100%;
}

.shot-trigger {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #141824;
  cursor: zoom-in;
}

.shot-trigger img {
  width: 100%;
  transition: transform 0.35s var(--ease);
}

.shot-trigger:hover img {
  transform: scale(1.01);
}

.zoom-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(25, 31, 40, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
}

.shot-trigger:hover .zoom-pill,
.carousel-shot:hover .zoom-pill {
  opacity: 1;
  transform: translateY(-2px);
}

.showcase-caption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.6;
}

/* ==========================================================
   Detail Boxes & Lists
   ========================================================== */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
}

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

.detail-box {
  min-width: 0;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
}

.detail-box--muted {
  background: var(--bg-gray);
  border-color: var(--border-subtle);
}

.section--tinted .detail-box--muted {
  background: var(--bg-subtle);
}

.detail-box--warm {
  background: #fffaf5;
  border-color: rgba(184, 75, 11, 0.14);
}

.detail-box__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.check-list,
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
  color: var(--ink-700);
}

.check-list li,
.bullet-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.6;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-500);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-400);
}

.plan-dl {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-dl dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 4px;
}

.plan-dl dd {
  font-size: 14.5px;
  color: var(--ink-600);
  line-height: 1.6;
}

/* ==========================================================
   Goal 2: Time Comparison & Snippet Studio
   ========================================================== */
.time-compare {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 24px;
}

.time-compare__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 20px;
}

.time-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.time-row {
  min-width: 0;
}

.time-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.time-row__label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-800);
}

.time-row__badge {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.time-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-bar-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-tag {
  width: 34px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-400);
  flex-shrink: 0;
}

.time-tag--after {
  color: var(--blue-600);
}

.time-track {
  flex: 1;
  min-width: 0;
  height: 30px;
  border-radius: 9px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.time-fill {
  height: 100%;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.time-fill--before {
  background: #d8dee6;
  color: var(--ink-700);
}

.time-fill--after {
  background: var(--blue-500);
  color: #fff;
}

/* Snippet Studio */
.snippet-studio {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.snippet-studio__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.snippet-studio__info {
  min-width: 0;
  flex: 1 1 220px;
  max-width: 100%;
}

.security-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--ink-600);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 10px;
  max-width: 100%;
}

.security-pill svg {
  flex-shrink: 0;
}

.snippet-studio__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.snippet-studio__sub {
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 4px;
}

.snippet-studio__sub code {
  background: var(--bg-subtle);
  color: var(--blue-600);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12.5px;
}

.snippet-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.snippet-tab {
  min-width: 0;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: var(--bg-gray);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.snippet-tab code {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
}

.snippet-tab span {
  font-size: 12.5px;
  color: var(--ink-500);
}

.snippet-tab.is-active {
  background: var(--blue-50);
  border-color: var(--blue-500);
  box-shadow: 0 4px 12px rgba(49, 130, 246, 0.12);
}

.snippet-tab.is-active code {
  color: var(--blue-600);
}

.snippet-panes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.code-window {
  min-width: 0;
  background: #151922;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #1e2431;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.window-dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b4456;
}

.window-dots span:nth-child(1) {
  background: #ff5f57;
}

.window-dots span:nth-child(2) {
  background: #febc2e;
}

.window-dots span:nth-child(3) {
  background: #28c840;
}

.code-window__file {
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copy-btn.is-copied {
  background: var(--blue-500);
  color: #fff;
}

.sim-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(49, 130, 246, 0.12);
  border-bottom: 1px solid rgba(49, 130, 246, 0.2);
  font-size: 12.5px;
}

.sim-prompt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93c5fd;
  flex-shrink: 0;
}

.sim-typed {
  color: #fff;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-key {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.15s, background-color 0.15s;
}

.sim-key.is-pressed {
  background: var(--blue-500);
  color: #fff;
  transform: scale(0.94);
}

.code-window__pre {
  margin: 0;
  padding: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
  max-width: 100%;
  flex: 1;
  min-height: 240px;
}

.naming-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.naming-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-600);
}

.naming-row code {
  flex-shrink: 0;
  min-width: 70px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--blue-600);
  font-weight: 700;
  font-size: 13px;
}

/* ==========================================================
   Goal 3: Separated n8n Architecture (Base + 2 Independent Tracks)
   ========================================================== */
.n8n-board {
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 26px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.n8n-base {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.n8n-tag {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--ink-900);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.n8n-base__body h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.n8n-base__body p {
  font-size: 14px;
  color: var(--ink-600);
}

.n8n-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.n8n-track {
  min-width: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.n8n-track__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.n8n-track__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-600);
}

.n8n-track h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.n8n-track__desc {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

.mini-flow {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-gray);
}

.mini-flow span {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-800);
}

.mini-flow i {
  font-style: normal;
  font-weight: 700;
  color: var(--ink-400);
  font-size: 13px;
}

.status-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--bg-gray);
}

.status-row__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-800);
  min-width: 0;
}

/* ==========================================================
   Goal 4: Process Comparison & JIRA Carousel
   ========================================================== */
.process-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 24px;
}

.process-col {
  min-width: 0;
  border-radius: var(--radius-xl);
  padding: 26px;
  border: 1px solid var(--border-light);
}

.process-col--asis {
  background: var(--bg-white);
}

.process-col--tobe {
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  border-color: rgba(49, 130, 246, 0.25);
  box-shadow: 0 8px 28px rgba(49, 130, 246, 0.08);
}

.process-col__head {
  margin-bottom: 20px;
}

.process-col__head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  margin-top: 8px;
  letter-spacing: -0.02em;
}

.process-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.process-badge--asis {
  background: var(--bg-subtle);
  color: var(--ink-500);
}

.process-badge--tobe {
  background: var(--blue-500);
  color: #fff;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.process-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.p-idx {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--bg-subtle);
  color: var(--ink-500);
  margin-top: 2px;
}

.process-col--tobe .p-idx {
  background: var(--blue-50);
  color: var(--blue-600);
}

.process-steps strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
}

.process-steps p {
  font-size: 13.5px;
  color: var(--ink-500);
  margin-top: 2px;
}

.process-arrow-mid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-arrow-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-500);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(49, 130, 246, 0.22);
}

/* JIRA Carousel */
.carousel-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.carousel-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.carousel-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
}

.carousel-card__sub {
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 3px;
}

.carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.carousel-counter {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-600);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--ink-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: var(--blue-50);
  border-color: rgba(49, 130, 246, 0.35);
  color: var(--blue-600);
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #1b1e23;
  border: 1px solid var(--border-light);
}

.carousel-track {
  display: flex;
  transition: transform 0.42s var(--ease);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel-shot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1b1e23;
  overflow: hidden;
  cursor: zoom-in;
}

.carousel-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-info {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-gray);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.carousel-info__tag {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 5px 10px;
  border-radius: 7px;
  max-width: 100%;
}

.carousel-info__desc {
  font-size: 14.5px;
  color: var(--ink-700);
  flex: 1 1 200px;
  min-width: 0;
  max-width: 100%;
}

.carousel-thumbs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.thumb-btn {
  min-width: 0;
  padding: 6px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--bg-gray);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, background-color 0.2s;
  text-align: left;
}

.thumb-btn img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  background: #1b1e23;
}

.thumb-btn span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-btn:hover {
  background: var(--bg-subtle);
}

.thumb-btn.is-active {
  border-color: var(--blue-500);
  background: var(--blue-50);
}

.thumb-btn.is-active span {
  color: var(--blue-600);
}

/* ==========================================================
   Goal 5: Shift Grid, Architecture & 2027 Plan
   ========================================================== */
.shift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.shift-card {
  min-width: 0;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.shift-card--before {
  background: var(--bg-gray);
}

.shift-card--after {
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  border-color: rgba(49, 130, 246, 0.24);
}

.shift-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-500);
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: 7px;
  margin-bottom: 10px;
}

.shift-label--blue {
  background: var(--blue-50);
  color: var(--blue-600);
}

.shift-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.shift-card code,
.roadmap-step code,
.arch-note code {
  font-size: 12.5px;
  background: rgba(0, 27, 55, 0.06);
  padding: 1px 6px;
  border-radius: 5px;
}

.arch-card {
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
}

.arch-card__head {
  margin-bottom: 20px;
}

.arch-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
}

.arch-card__sub {
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 3px;
}

.arch-layers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.arch-layer {
  min-width: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.arch-layer--core {
  border-color: rgba(49, 130, 246, 0.32);
  box-shadow: 0 6px 20px rgba(49, 130, 246, 0.07);
}

.arch-layer__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.arch-layer h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.arch-layer p {
  font-size: 13.5px;
  color: var(--ink-600);
  line-height: 1.58;
}

.arch-note {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-600);
}

.arch-note__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--miss-dot);
  margin-top: 8px;
  flex-shrink: 0;
}

.roadmap-card {
  background: linear-gradient(135deg, #f0f6ff 0%, #f8fbff 100%);
  border: 1px solid rgba(49, 130, 246, 0.16);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.roadmap-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.roadmap-card__head h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
}

.roadmap-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.roadmap-step {
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(49, 130, 246, 0.1);
}

.r-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-500);
  margin-bottom: 6px;
}

.roadmap-step h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.roadmap-step p {
  font-size: 13.5px;
  color: var(--ink-600);
  line-height: 1.58;
}

/* ==========================================================
   Closing Retrospective (Dark Section)
   ========================================================== */
.retro-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #60a5fa;
  margin-bottom: 14px;
}

.retro-title {
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 36px;
}

.retro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.retro-card {
  min-width: 0;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.retro-card__num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #60a5fa;
  margin-bottom: 12px;
}

.retro-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.retro-card p {
  font-size: 14.5px;
  line-height: 1.68;
  color: #cbd5e1;
}

.growth-quote {
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(49, 130, 246, 0.16) 0%, rgba(49, 130, 246, 0.06) 100%);
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.growth-quote__q {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.growth-quote__a {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.025em;
  color: #ffffff;
}

/* ==========================================================
   Footer, FAB & Lightbox
   ========================================================== */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer__left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.footer__left strong {
  font-size: 15px;
  color: var(--ink-900);
}

.footer__left span {
  font-size: 13px;
  color: var(--ink-400);
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fab-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 800;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease), background-color 0.2s;
}

.fab-top[hidden] {
  display: none;
}

.fab-top:hover {
  background: var(--blue-500);
  transform: translateY(-2px);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, 0.84);
  backdrop-filter: blur(8px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  max-height: 92vh;
  background: #141821;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #1b212e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox__caption {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  min-width: 0;
}

.lightbox__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s, color 0.2s;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.lightbox__body {
  padding: 16px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__body img {
  max-height: calc(92vh - 96px);
  width: auto;
  max-width: 100%;
  border-radius: 8px;
}

/* ==========================================================
   Scroll Reveal Animations
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .carousel-track {
    transition: none;
  }
}

/* ==========================================================
   Responsive Breakpoints
   ========================================================== */
@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .snippet-panes,
  .n8n-tracks,
  .process-compare,
  .arch-layers,
  .roadmap-steps,
  .retro-grid {
    grid-template-columns: 1fr;
  }


  .process-arrow-circle {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 58px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }

  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 56px 0 52px;
  }

  .section {
    padding: 64px 0;
  }

  .goal-header {
    margin-bottom: 26px;
  }

  .goal-header__lead {
    font-size: 15.5px;
  }

  .kpi-grid--3,
  .detail-grid,
  .detail-grid--equal,
  .time-rows,
  .shift-grid,
  .snippet-tabs {
    grid-template-columns: 1fr;
  }

  .growth-quote {
    padding: 22px 20px;
    border-radius: var(--radius-lg);
  }

  .kpi-card,
  .detail-box,
  .process-col,
  .shift-card,
  .retro-card {
    padding: 20px;
  }

  .showcase-card,
  .snippet-studio,
  .carousel-card,
  .n8n-board,
  .arch-card,
  .roadmap-card,
  .weight-card,
  .time-compare {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .n8n-base {
    flex-direction: column;
    gap: 10px;
    padding: 18px;
  }

  .n8n-track {
    padding: 18px;
  }

  .summary-item {
    padding: 18px;
  }

  .summary-item__left {
    gap: 14px;
  }

  .goal-num {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .summary-item__arrow {
    display: none;
  }

  .weight-bar {
    height: 46px;
    gap: 5px;
  }

  .weight-bar__seg {
    padding: 0 6px;
    border-radius: 10px;
  }

  .seg-pct {
    font-size: 13px;
  }

  .segmented {
    width: 100%;
  }

  .segmented__btn {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 13px;
  }

  .carousel-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .thumb-btn {
    flex: 0 0 112px;
  }

  .status-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .fab-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .lightbox {
    padding: 12px;
  }
}

@media (max-width: 540px) {
  .seg-label {
    display: none;
  }

  .seg-pct {
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header__brand {
    font-size: 15px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn,
  #simulateSnippetBtn {
    width: 100%;
  }

  .mini-flow {
    gap: 5px;
    padding: 10px;
  }

  .mini-flow span {
    padding: 4px 7px;
    font-size: 11.5px;
  }

  .mini-flow i {
    font-size: 11.5px;
  }

  .kpi-card__actual {
    font-size: 24px;
  }

  .code-window__pre {
    padding: 14px;
    font-size: 12px;
    min-height: 200px;
  }

  .security-pill {
    font-size: 11.5px;
    border-radius: 10px;
    line-height: 1.4;
  }

  .zoom-pill {
    right: 10px;
    bottom: 10px;
    font-size: 11px;
    padding: 4px 10px;
  }
}

@media (max-width: 380px) {
  .weight-bar {
    gap: 3px;
    height: 40px;
  }

  .weight-bar__seg {
    padding: 0 2px;
    border-radius: 8px;
  }

  .seg-pct {
    font-size: 11px;
  }

  .kpi-card,
  .showcase-card,
  .snippet-studio,
  .carousel-card,
  .n8n-board,
  .arch-card,
  .roadmap-card,
  .weight-card,
  .time-compare {
    padding: 16px;
  }
}

/* Print Friendly */
@media print {

  .header,
  .progress-bar,
  .fab-top,
  .lightbox,
  .hero__actions,
  .segmented,
  .carousel-controls,
  .carousel-thumbs,
  .copy-btn,
  #simulateSnippetBtn,
  .zoom-pill,
  .footer__right {
    display: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .section {
    padding: 28px 0;
  }
}