/* ==========================================================================
   Binding Minds Proposal — Design Token System
   All visual identity tokens live here. Switch themes by editing this file.
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  /* ---- Color Palette ---- */
  --color-primary:        #0A1628;
  --color-primary-light:  #1A2A44;
  --color-primary-muted:  #2D3F5E;
  --color-accent:         #C41E2A;
  --color-accent-light:   #E63946;
  --color-accent-dark:    #9B1620;

  --color-surface:        #FFFFFF;
  --color-surface-warm:   #FAFAF7;
  --color-surface-cool:   #F4F6F9;
  --color-surface-dark:   #0D1B2A;

  --color-text-primary:   #1A1A2E;
  --color-text-secondary: #5A6478;
  --color-text-muted:     #8A92A3;
  --color-text-inverse:   #F8F9FA;
  --color-text-accent:    #C41E2A;

  --color-border:         #E2E5EB;
  --color-border-dark:    #CCD0D8;

  --color-success:        #2ECC71;
  --color-legal:          #1B4D89;
  --color-healthcare:     #27AE60;
  --color-contract:       #8E44AD;

  --color-overlay:        rgba(10, 22, 40, 0.85);

  /* ---- Typography ---- */
  --font-display:         'Playfair Display', Georgia, serif;
  --font-body:            'DM Sans', 'Segoe UI', sans-serif;
  --font-mono:            'JetBrains Mono', monospace;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;

  --leading-tight:   1.2;
  --leading-normal:  1.6;
  --leading-relaxed: 1.8;

  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;

  /* ---- Spacing & Layout ---- */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;

  --radius-sm:   0.375rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  --shadow-sm:   0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md:   0 4px 12px rgba(10, 22, 40, 0.08);
  --shadow-lg:   0 8px 30px rgba(10, 22, 40, 0.12);
  --shadow-xl:   0 20px 50px rgba(10, 22, 40, 0.16);
  --shadow-gold: 0 4px 20px rgba(196, 30, 42, 0.25);

  --transition-fast:    150ms ease;
  --transition-base:    300ms ease;
  --transition-slow:    500ms ease;
  --transition-spring:  500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --bottom-nav-height:  4rem;
  --drawer-width:       85vw;
  --drawer-max-width:   380px;
  --safe-area-bottom:   env(safe-area-inset-bottom, 0px);
}

/* ==========================================================================
   Base Resets & Defaults
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary);
}

a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Typography */
.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-accent {
  color: var(--color-text-accent);
}

.text-inverse {
  color: var(--color-text-inverse);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted);
}

/* Backgrounds */
.bg-surface-warm {
  background-color: var(--color-surface-warm);
}

.bg-surface-cool {
  background-color: var(--color-surface-cool);
}

.bg-surface-dark {
  background-color: var(--color-surface-dark);
}

.bg-primary {
  background-color: var(--color-primary);
}

.bg-primary-light {
  background-color: var(--color-primary-light);
}

/* Section Padding — responsive */
.section-padding {
  padding: var(--space-xl) var(--space-lg);
}

@media (min-width: 768px) {
  .section-padding {
    padding: var(--space-3xl) var(--space-2xl);
  }
}

@media (min-width: 1280px) {
  .section-padding {
    padding: var(--space-4xl) var(--space-3xl);
  }
}

/* Swipe / Carousel Container */
.swipe-container {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-sm);
}

.swipe-container::-webkit-scrollbar {
  display: none;
}

.swipe-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .swipe-card {
    flex: 0 0 45%;
  }
}

@media (min-width: 1280px) {
  .swipe-card {
    flex: 0 0 30%;
  }
}

/* ==========================================================================
   Animation Utility Classes
   ========================================================================== */
.fade-in {
  animation: fadeIn var(--transition-slow) ease both;
}

.slide-up {
  animation: slideUp var(--transition-slow) ease both;
}

.slide-left {
  animation: slideLeft var(--transition-slow) ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Stagger delays for sequential reveal */
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }

/* ==========================================================================
   App Shell Structural Styles
   ========================================================================== */

/* Main app container — accounts for bottom nav */
#app {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 3.5rem;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 3.25rem);
  position: relative;
}

/* Bottom navigation bar */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
  padding-bottom: var(--safe-area-bottom);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 10px rgba(10, 22, 40, 0.06);
  z-index: 100;
}

/* Drawer overlay */
#drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  z-index: 200;
}

#drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer panel */
#drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--drawer-width);
  max-width: var(--drawer-max-width);
  background: var(--color-surface);
  transform: translateX(-100%);
  transition: transform var(--transition-spring);
  z-index: 201;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

#drawer.active {
  transform: translateX(0);
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  z-index: 300;
  transition: opacity var(--transition-base);
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Section Transitions (PRD 002)
   ========================================================================== */

#app.exit-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 250ms ease, transform 250ms ease;
}

#app.exit-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 250ms ease, transform 250ms ease;
}

#app.exit-fade {
  opacity: 0;
  transition: opacity 250ms ease;
}

#app.enter-from-right {
  opacity: 0;
  transform: translateX(30px);
}

#app.enter-from-left {
  opacity: 0;
  transform: translateX(-30px);
}

#app.enter-fade {
  opacity: 0;
}

#app.enter-active {
  opacity: 1 !important;
  transform: translateX(0) !important;
  transition: opacity 300ms ease, transform 300ms ease;
}

/* ==========================================================================
   Top Bar (PRD 002)
   ========================================================================== */

#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5rem;
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 150;
  gap: var(--space-md);
}

#menu-trigger {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-primary);
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

#menu-trigger:hover {
  background: var(--color-surface-cool);
}

.top-bar-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.top-bar-client {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
  white-space: nowrap;
}

.top-bar-divider {
  color: var(--color-text-muted);
}

.top-bar-section {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-home {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-accent);
  transition: background var(--transition-fast);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.top-bar-home:hover {
  background: var(--color-surface-cool);
}

.top-bar-home svg {
  width: 18px;
  height: 18px;
}

.top-bar-end {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Section Jump Dropdown */
.top-bar-jump {
  position: relative;
  display: flex;
  align-items: center;
}

.top-bar-jump-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-surface-cool);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.3rem 1.75rem 0.3rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  outline: none;
  font-family: var(--font-body);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color var(--transition-fast);
}

.top-bar-jump-select:focus {
  border-color: var(--color-accent);
}

.top-bar-jump-icon {
  position: absolute;
  right: 0.375rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  pointer-events: none;
}

/* Preview Button */
.top-bar-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.75rem;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.top-bar-preview-btn svg {
  width: 14px;
  height: 14px;
}

.top-bar-preview-btn:hover {
  background: var(--color-accent-light);
}

.top-bar-preview-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   Bottom Nav Items (PRD 002)
   ========================================================================== */

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--bottom-nav-height);
  max-width: 600px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 12px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.nav-item.active {
  color: var(--color-accent);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.nav-item:active {
  transform: scale(0.9);
}

.nav-icon {
  width: 22px;
  height: 22px;
}

.nav-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Drawer Internal Styles (PRD 002)
   ========================================================================== */

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.drawer-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.drawer-subtitle {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-top: 2px;
}

#drawer-close {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

#drawer-close:hover {
  background: var(--color-surface-cool);
}

.drawer-body {
  padding: var(--space-md) 0;
  flex: 1;
  overflow-y: auto;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  border-left: 3px solid transparent;
}

.drawer-item:hover {
  background: var(--color-surface-cool);
}

.drawer-item.active {
  color: var(--color-accent);
  background: rgba(196, 30, 42, 0.08);
  border-left-color: var(--color-accent);
}

.drawer-item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.drawer-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.drawer-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.drawer-footer-logo {
  width: 120px;
  height: auto;
  display: block;
  margin-bottom: var(--space-xs);
}

.drawer-badge {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 2px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent-dark);
  background: rgba(196, 30, 42, 0.1);
  border: 1px solid rgba(196, 30, 42, 0.2);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Swipe Dots (PRD 002)
   ========================================================================== */

.swipe-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--space-md) 0;
}

.swipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border-dark);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.swipe-dot.active {
  background: var(--color-accent);
  transform: scale(1.4);
}

/* ==========================================================================
   Stagger Animation (PRD 002)
   ========================================================================== */

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
}

.stagger.animate > * {
  animation: staggerIn 0.5s ease both;
}

.stagger.animate > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger.animate > *:nth-child(2)  { animation-delay: 0.10s; }
.stagger.animate > *:nth-child(3)  { animation-delay: 0.15s; }
.stagger.animate > *:nth-child(4)  { animation-delay: 0.20s; }
.stagger.animate > *:nth-child(5)  { animation-delay: 0.25s; }
.stagger.animate > *:nth-child(6)  { animation-delay: 0.30s; }
.stagger.animate > *:nth-child(7)  { animation-delay: 0.35s; }
.stagger.animate > *:nth-child(8)  { animation-delay: 0.40s; }
.stagger.animate > *:nth-child(9)  { animation-delay: 0.45s; }
.stagger.animate > *:nth-child(10) { animation-delay: 0.50s; }

@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Premium Loader (PRD 002)
   ========================================================================== */

.loader-content {
  text-align: center;
}

.loader-brand {
  margin-bottom: var(--space-sm);
}

.loader-brand img {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.loader-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-lg);
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--color-border);
  border-radius: 1px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--color-accent);
  border-radius: 1px;
  animation: loaderSlide 1.2s ease-in-out infinite;
}

@keyframes loaderSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ==========================================================================
   Section Placeholders (PRD 002)
   ========================================================================== */

.section-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 3.5rem - var(--bottom-nav-height));
  min-height: calc(100dvh - 3.5rem - var(--bottom-nav-height));
  padding: var(--space-2xl);
  text-align: center;
}

.placeholder-icon {
  width: 64px;
  height: 64px;
  color: var(--color-accent);
  opacity: 0.4;
  margin-bottom: var(--space-lg);
}

.placeholder-icon svg {
  width: 100%;
  height: 100%;
}

.placeholder-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.placeholder-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.placeholder-desc {
  color: var(--color-text-secondary);
  max-width: 480px;
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
}

.placeholder-chips {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.placeholder-chip {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-surface-cool);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Desktop Adaptation (PRD 002)
   ========================================================================== */

@media (min-width: 768px) {
  #bottom-nav {
    display: none;
  }

  #app {
    padding-bottom: 3.25rem;
  }

  .section-placeholder {
    min-height: calc(100vh - 3.5rem);
    min-height: calc(100dvh - 3.5rem);
  }
}

@media (max-width: 767px) {
  .top-bar-client {
    display: none;
  }

  .top-bar-jump-select {
    max-width: 120px;
  }

  .top-bar-preview-btn span {
    display: none;
  }

  .top-bar-preview-btn {
    padding: 0.3rem 0.5rem;
  }
}

/* ==========================================================================
   Executive Summary / Cover Section (PRD 003 Rewrite)
   ========================================================================== */

.cover-section {
  padding-bottom: var(--space-xl);
}

/* ---- Cover Header ---- */
.cover-header {
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  text-align: center;
}

.cover-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.cover-badge-sep {
  opacity: 0.4;
}

.cover-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-xl);
}

.cover-parties {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.cover-party {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cover-party-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: 600;
}

.cover-party-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

.cover-party-logo {
  width: 200px;
  height: auto;
  margin-top: 6px;
}

.cover-party-divider {
  color: var(--color-accent);
  opacity: 0.5;
}

.cover-party-divider svg {
  width: 18px;
  height: 18px;
}

/* ---- Cover Blocks ---- */
.cover-block {
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

.cover-block-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.cover-headline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

.cover-accent {
  color: var(--color-accent);
}

.cover-summary {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 640px;
}

/* ---- Highlights Grid ---- */
.cover-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.cover-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface-cool);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
}

.cover-highlight-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 42, 0.1);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cover-highlight-icon svg {
  width: 18px;
  height: 18px;
}

.cover-highlight-label {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary);
  margin-bottom: 1px;
}

.cover-highlight-detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ---- Table of Contents ---- */
.cover-toc {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cover-toc-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.cover-toc-item:hover {
  background: var(--color-surface-cool);
  border-color: var(--color-accent);
}

.cover-toc-item:active {
  transform: scale(0.98);
}

.cover-toc-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  width: 28px;
  flex-shrink: 0;
}

.cover-toc-body {
  flex: 1;
  min-width: 0;
}

.cover-toc-title {
  display: block;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary);
}

.cover-toc-desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 1px;
}

.cover-toc-arrow {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.cover-toc-item:hover .cover-toc-arrow {
  color: var(--color-accent);
  transform: translateX(3px);
}

/* ---- Cover Footer ---- */
.cover-footer {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-lg);
}

.cover-footer-line {
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto var(--space-lg);
  border-radius: 1px;
}

.cover-footer-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.cover-footer-text strong {
  color: var(--color-primary);
  font-weight: 600;
}

.cover-footer-by {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.cover-footer-logo {
  width: 140px;
  height: auto;
  display: inline-block;
  margin-top: var(--space-xs);
}

/* ---- Cover Reveal ---- */
.cover-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Cover Responsive — Tablet ---- */
@media (min-width: 768px) {
  .cover-header {
    padding: var(--space-3xl) var(--space-2xl) var(--space-2xl);
  }

  .cover-title {
    font-size: var(--text-4xl);
  }

  .cover-block {
    padding: var(--space-lg) var(--space-2xl) var(--space-2xl);
  }

  .cover-headline {
    font-size: var(--text-3xl);
  }

  .cover-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .cover-toc-item {
    padding: var(--space-lg) var(--space-xl);
  }

  .cover-toc-title {
    font-size: var(--text-base);
  }
}

/* ---- Cover Responsive — Desktop ---- */
@media (min-width: 1280px) {
  .cover-header {
    padding: var(--space-4xl) var(--space-3xl) var(--space-2xl);
  }

  .cover-title {
    font-size: var(--text-5xl);
  }

  .cover-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .cover-highlights {
    grid-template-columns: repeat(4, 1fr);
  }

  .cover-toc {
    max-width: 700px;
  }
}

/* ==========================================================================
   Scope Section (PRD 004)
   ========================================================================== */

.scope-section {
  padding-bottom: var(--space-2xl);
}

/* ---- Reusable Section Header ---- */
.section-header {
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  text-align: center;
}

.section-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto;
  border-radius: 1px;
}

/* ---- Scope Block (sub-sections) ---- */
.scope-block {
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

.scope-block-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.scope-block-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

/* ---- Understanding Cards ---- */
.understanding-grid {
  margin-top: var(--space-lg);
}

.understanding-card {
  background: var(--color-surface-cool);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.understanding-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.understanding-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 42, 0.12);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.understanding-icon svg {
  width: 22px;
  height: 22px;
}

.understanding-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: var(--leading-tight);
}

.understanding-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ---- Competitor Cards ---- */
.competitor-grid {
  margin-top: var(--space-lg);
}

.competitor-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.competitor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.competitor-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary-light);
  position: relative;
}

.competitor-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.1) 0%, rgba(10, 22, 40, 0.4) 100%);
}

.competitor-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.competitor-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

.competitor-type {
  display: inline-block;
  width: fit-content;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--color-surface-cool);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.competitor-strengths {
  margin-top: var(--space-sm);
}

.competitor-strengths-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-sm);
}

.competitor-strengths-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.competitor-strength {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.competitor-check {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.competitor-takeaway {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(196, 30, 42, 0.08);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.competitor-takeaway-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent-dark);
  margin-bottom: var(--space-xs);
}

.competitor-takeaway-icon {
  width: 14px;
  height: 14px;
}

.competitor-takeaway-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ---- Sitemap Grid ---- */
.sitemap-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.sitemap-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.sitemap-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.sitemap-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.sitemap-page-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
}

.sitemap-priority {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Priority badge colors — set via JS */
.sitemap-priority.priority-p0 {
  background: rgba(196, 30, 42, 0.15);
  color: var(--color-accent-dark);
  border: 1px solid rgba(196, 30, 42, 0.3);
}

.sitemap-priority.priority-p1 {
  background: var(--color-surface-cool);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.sitemap-priority.priority-p2 {
  background: var(--color-surface-cool);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.sitemap-purpose {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ---- Scope Reveal Animations ---- */
.scope-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger cards within revealed blocks */
.scope-reveal.visible .understanding-card,
.scope-reveal.visible .competitor-card,
.scope-reveal.visible .sitemap-card {
  animation: scopeCardIn 0.5s ease both;
}

@keyframes scopeCardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Scope Responsive — Tablet ---- */
@media (min-width: 768px) {
  .section-header {
    padding: var(--space-3xl) var(--space-2xl) var(--space-xl);
  }

  .section-title {
    font-size: var(--text-4xl);
  }

  .scope-block {
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
  }

  .scope-block-title {
    font-size: var(--text-2xl);
  }

  /* Understanding cards → 2-col grid */
  .understanding-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .understanding-grid > .swipe-card {
    flex: auto;
    scroll-snap-align: unset;
  }

  .understanding-grid + .swipe-dots {
    display: none;
  }

  /* Competitor cards → 3-col grid */
  .competitor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .competitor-grid > .swipe-card {
    flex: auto;
    scroll-snap-align: unset;
  }

  .competitor-grid + .swipe-dots {
    display: none;
  }

  /* Sitemap → 2-col grid */
  .sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

/* ---- Scope Responsive — Desktop ---- */
@media (min-width: 1280px) {
  .section-header {
    padding: var(--space-4xl) var(--space-3xl) var(--space-2xl);
  }

  .section-title {
    font-size: var(--text-5xl);
  }

  .section-subtitle {
    font-size: var(--text-lg);
    max-width: 680px;
  }

  .scope-block {
    padding: var(--space-xl) var(--space-3xl) var(--space-2xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Understanding → 2×2 stays */
  .understanding-grid {
    max-width: 900px;
  }

  /* Sitemap → 3-4 col */
  .sitemap-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .competitor-image {
    height: 200px;
  }
}

/* ==========================================================================
   Approach Section (PRD 005)
   ========================================================================== */

.approach-section {
  padding-bottom: var(--space-2xl);
}

/* ---- Approach Block ---- */
.approach-block {
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

.approach-block-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.approach-block-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ---- Category Tabs ---- */
.approach-tabs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: var(--space-xl);
}

.approach-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.approach-tabs {
  display: flex;
  gap: var(--space-sm);
  min-width: max-content;
  padding: 0 var(--space-xs);
}

.approach-tab {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface-cool);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}

.approach-tab:active {
  transform: scale(0.96);
}

.approach-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.approach-tab.active {
  color: var(--color-primary);
  background: var(--color-surface);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(196, 30, 42, 0.15);
}

.approach-tab.active svg {
  color: var(--color-accent);
}

.approach-tab-count {
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--color-surface-cool);
  color: var(--color-text-muted);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
  transition: all var(--transition-base);
}

.approach-tab.active .approach-tab-count {
  background: rgba(196, 30, 42, 0.15);
  color: var(--color-accent-dark);
}

/* ---- Tab Panels ---- */
.approach-panels {
  position: relative;
}

.approach-panel {
  display: none;
  flex-direction: column;
  gap: var(--space-md);
}

.approach-panel.active {
  display: flex;
  animation: approachPanelIn 0.35s ease both;
}

@keyframes approachPanelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Feature Cards ---- */
.approach-feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.approach-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.approach-feature.expanded {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.approach-feature-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.approach-feature-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(196, 30, 42, 0.1);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.approach-feature.expanded .approach-feature-num {
  background: var(--color-accent);
  color: var(--color-primary);
}

.approach-feature-title {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  line-height: var(--leading-tight);
}

.approach-feature-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-base), color var(--transition-base);
}

.approach-feature.expanded .approach-feature-chevron {
  transform: rotate(180deg);
  color: var(--color-accent);
}

/* ---- Feature Expanded Body ---- */
.approach-feature-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.approach-feature.expanded .approach-feature-body {
  max-height: 300px;
}

.approach-feature-content {
  padding: 0 var(--space-lg) var(--space-lg);
  padding-left: calc(var(--space-lg) + 32px + var(--space-md));
}

.approach-feature-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.approach-feature-impact {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-success);
  background: rgba(46, 204, 113, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.approach-feature-impact svg {
  width: 14px;
  height: 14px;
}

/* ---- Tech Stack ---- */
.approach-stack-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.approach-stack-header .approach-block-title {
  margin-bottom: var(--space-xs);
}

.approach-stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.approach-stack-card {
  background: var(--color-surface-cool);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.approach-stack-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.approach-stack-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.approach-stack-role {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent-dark);
  margin-bottom: var(--space-sm);
}

.approach-stack-reason {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ---- Approach Reveal Animations ---- */
.approach-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger feature cards when panel activates */
.approach-panel.active .approach-feature {
  animation: approachCardIn 0.45s ease both;
}

.approach-panel.active .approach-feature:nth-child(1) { animation-delay: 0.05s; }
.approach-panel.active .approach-feature:nth-child(2) { animation-delay: 0.12s; }
.approach-panel.active .approach-feature:nth-child(3) { animation-delay: 0.19s; }
.approach-panel.active .approach-feature:nth-child(4) { animation-delay: 0.26s; }

@keyframes approachCardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger tech stack cards */
.approach-reveal.visible .approach-stack-card {
  animation: approachCardIn 0.45s ease both;
}

.approach-reveal.visible .approach-stack-card:nth-child(1) { animation-delay: 0.05s; }
.approach-reveal.visible .approach-stack-card:nth-child(2) { animation-delay: 0.12s; }
.approach-reveal.visible .approach-stack-card:nth-child(3) { animation-delay: 0.19s; }
.approach-reveal.visible .approach-stack-card:nth-child(4) { animation-delay: 0.26s; }
.approach-reveal.visible .approach-stack-card:nth-child(5) { animation-delay: 0.33s; }
.approach-reveal.visible .approach-stack-card:nth-child(6) { animation-delay: 0.40s; }

/* ---- Approach Responsive — Tablet ---- */
@media (min-width: 768px) {
  .approach-block {
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
  }

  .approach-block-title {
    font-size: var(--text-2xl);
  }

  .approach-tabs {
    justify-content: center;
  }

  .approach-tab {
    padding: 0.75rem 1.5rem;
  }

  /* Feature cards 2-col grid */
  .approach-panel.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Tech stack 3-col */
  .approach-stack-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Approach Responsive — Desktop ---- */
@media (min-width: 1280px) {
  .approach-block {
    padding: var(--space-xl) var(--space-3xl) var(--space-2xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .approach-tab {
    font-size: var(--text-base);
    padding: 0.75rem 1.75rem;
  }

  .approach-feature-content {
    padding-left: calc(var(--space-lg) + 32px + var(--space-md));
  }

  .approach-feature-title {
    font-size: var(--text-lg);
  }
}

/* ==========================================================================
   Methodology Section (PRD 006)
   ========================================================================== */

.methodology-section {
  padding-bottom: var(--space-2xl);
}

/* ---- Methodology Block ---- */
.methodology-block {
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

.methodology-block-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.methodology-block-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

/* ---- Principle Cards ---- */
.principles-grid {
  margin-top: var(--space-lg);
}

.principle-card {
  background: var(--color-surface-warm);
  border: 1px solid var(--color-border);
  border-bottom: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.principle-num {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: 50%;
  line-height: 1;
}

.principle-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 42, 0.12);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.principle-icon svg {
  width: 22px;
  height: 22px;
}

.principle-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: var(--leading-tight);
}

.principle-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ---- Timeline (Mobile: Vertical Stepper) ---- */
.timeline-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.timeline-container {
  position: relative;
  padding-left: 2.5rem;
}

/* Vertical connecting line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 2px;
  background: var(--color-border);
}

/* Animated accent overlay on timeline line */
.timeline-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 2px;
  height: 0;
  background: var(--color-accent);
  transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-container.animated::after {
  height: 100%;
}

/* ---- Phase Node ---- */
.timeline-phase {
  position: relative;
  padding-bottom: var(--space-xl);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.timeline-phase:last-child {
  padding-bottom: 0;
}

/* Phase dot */
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
  z-index: 1;
}

.timeline-phase.active .timeline-dot,
.timeline-phase.lit .timeline-dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(196, 30, 42, 0.2);
}

/* Phase header row */
.timeline-phase-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.timeline-phase-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.timeline-phase.active .timeline-phase-title {
  color: var(--color-accent-dark);
}

.timeline-duration-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent-dark);
  background: rgba(196, 30, 42, 0.12);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.timeline-phase-chevron {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform var(--transition-base), color var(--transition-base);
}

.timeline-phase.active .timeline-phase-chevron {
  transform: rotate(180deg);
  color: var(--color-accent);
}

/* ---- Phase Detail (Accordion Body) ---- */
.timeline-phase-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-phase.active .timeline-phase-body {
  max-height: 600px;
}

.timeline-phase-content {
  padding-top: var(--space-md);
}

.timeline-phase-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

/* Deliverables list */
.timeline-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.timeline-deliverable {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.timeline-deliverable-check {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Milestone badge */
.timeline-milestone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(196, 30, 42, 0.08);
  border: 1px solid rgba(196, 30, 42, 0.25);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent-dark);
}

.timeline-milestone svg {
  width: 14px;
  height: 14px;
}

/* ---- Duration Banner ---- */
.duration-banner {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.duration-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.duration-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-lg);
}

.duration-bar {
  display: flex;
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
  gap: 2px;
  margin-bottom: var(--space-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.duration-segment {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.duration-segment:nth-child(1) { background: var(--color-accent); }
.duration-segment:nth-child(2) { background: var(--color-accent-light); }
.duration-segment:nth-child(3) { background: #5B9BD5; }
.duration-segment:nth-child(4) { background: var(--color-healthcare); }
.duration-segment:nth-child(5) { background: var(--color-success); }

.duration-bar.animated .duration-segment {
  animation: durationGrow 0.8s ease both;
}

.duration-bar.animated .duration-segment:nth-child(1) { animation-delay: 0.1s; }
.duration-bar.animated .duration-segment:nth-child(2) { animation-delay: 0.25s; }
.duration-bar.animated .duration-segment:nth-child(3) { animation-delay: 0.4s; }
.duration-bar.animated .duration-segment:nth-child(4) { animation-delay: 0.55s; }
.duration-bar.animated .duration-segment:nth-child(5) { animation-delay: 0.7s; }

@keyframes durationGrow {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

.duration-summary {
  font-size: var(--text-sm);
  color: rgba(224, 228, 232, 0.6);
  letter-spacing: var(--tracking-wide);
}

/* ---- Communication Cards ---- */
.comm-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.comm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.comm-card {
  background: var(--color-surface-cool);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.comm-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.comm-card-freq {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent-dark);
  background: rgba(196, 30, 42, 0.12);
  padding: 2px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.comm-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 42, 0.1);
  border-radius: 50%;
  color: var(--color-accent);
  margin: 0 auto var(--space-md);
}

.comm-card-icon svg {
  width: 24px;
  height: 24px;
}

.comm-card-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.comm-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ---- Communication Tools Row ---- */
.comm-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.comm-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.comm-tool-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.comm-tool-role {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ---- Methodology Reveal Animations ---- */
.methodology-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger principle cards */
.methodology-reveal.visible .principle-card {
  animation: methodologyCardIn 0.5s ease both;
}

.methodology-reveal.visible .principle-card:nth-child(1) { animation-delay: 0.05s; }
.methodology-reveal.visible .principle-card:nth-child(2) { animation-delay: 0.15s; }
.methodology-reveal.visible .principle-card:nth-child(3) { animation-delay: 0.25s; }
.methodology-reveal.visible .principle-card:nth-child(4) { animation-delay: 0.35s; }

/* Stagger comm cards */
.methodology-reveal.visible .comm-card {
  animation: methodologyCardIn 0.5s ease both;
}

.methodology-reveal.visible .comm-card:nth-child(1) { animation-delay: 0.05s; }
.methodology-reveal.visible .comm-card:nth-child(2) { animation-delay: 0.15s; }
.methodology-reveal.visible .comm-card:nth-child(3) { animation-delay: 0.25s; }

@keyframes methodologyCardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Methodology Responsive — Tablet ---- */
@media (min-width: 768px) {
  .methodology-block {
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
  }

  .methodology-block-title {
    font-size: var(--text-2xl);
  }

  /* Principles → 2×2 grid */
  .principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .principles-grid > .swipe-card {
    flex: auto;
    scroll-snap-align: unset;
  }

  .principles-grid + .swipe-dots {
    display: none;
  }

  /* Communication → 3-col */
  .comm-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Duration banner */
  .duration-value {
    font-size: var(--text-4xl);
  }

  /* ---- Desktop Timeline: Horizontal ---- */
  .timeline-container {
    padding-left: 0;
    display: flex;
    justify-content: center;
    gap: 0;
  }

  /* Hide mobile vertical line */
  .timeline-container::before,
  .timeline-container::after {
    display: none;
  }

  /* Phase node → horizontal */
  .timeline-phase {
    flex: 1;
    max-width: 160px;
    padding-bottom: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  /* Horizontal connecting line between dots */
  .timeline-phase::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
  }

  .timeline-phase:first-child::before {
    left: 50%;
  }

  .timeline-phase:last-child::before {
    right: 50%;
  }

  .timeline-phase.lit::before {
    background: var(--color-accent);
  }

  /* Dot repositioned */
  .timeline-dot {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: var(--space-md);
  }

  /* Header stacks vertically */
  .timeline-phase-header {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
  }

  .timeline-phase-title {
    font-size: var(--text-sm);
  }

  /* Hide chevron on desktop */
  .timeline-phase-chevron {
    display: none;
  }

  /* Phase body hidden on desktop — detail goes to shared panel */
  .timeline-phase-body {
    display: none;
  }

  /* ---- Desktop Detail Panel ---- */
  .timeline-detail {
    margin-top: var(--space-xl);
  }

  .timeline-detail-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-2xl);
    box-shadow: var(--shadow-md);
    animation: timelineDetailIn 0.35s ease both;
    position: relative;
  }

  .timeline-detail-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    transform: translateX(-50%) rotate(45deg);
  }

  .timeline-detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
  }

  .timeline-detail-phase-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
  }

  .timeline-detail-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-primary);
    flex: 1;
  }

  .timeline-detail-desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-lg);
  }

  .timeline-detail-deliverables {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm) var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .timeline-detail-deliverable {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
  }

  .timeline-detail-deliverable svg {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
  }

  @keyframes timelineDetailIn {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ---- Methodology Responsive — Desktop ---- */
@media (min-width: 1280px) {
  .methodology-block {
    padding: var(--space-xl) var(--space-3xl) var(--space-2xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .timeline-phase {
    max-width: 200px;
  }

  .duration-banner {
    padding: var(--space-2xl) var(--space-3xl);
  }

  .duration-value {
    font-size: var(--text-5xl);
  }
}

/* ==========================================================================
   POC Preview — Live Interactive Preview (PRD 007/008)
   ========================================================================== */

.poc-section {
  padding-bottom: var(--space-3xl);
}

/* ---- Preview Note ---- */
.poc-note {
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-xl);
}

.poc-note-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: var(--color-surface-cool);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  max-width: 700px;
  margin: 0 auto;
}

.poc-note-icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.poc-note-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ---- Feature Highlights ---- */
.poc-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-xl);
}

.poc-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface-cool);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.poc-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

/* ---- Launch Button ---- */
.poc-launch {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.poc-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.poc-launch-btn svg {
  width: 18px;
  height: 18px;
}

.poc-launch-btn:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--color-primary);
}

.poc-launch-btn:active {
  transform: scale(0.97);
}

.poc-launch-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* ==========================================================================
   Preview Mode Overlay — Envato-style (PRD 008+)
   ========================================================================== */

.preview-mode {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.preview-mode.active {
  visibility: visible;
  opacity: 1;
}

/* Hide proposal nav in preview mode */
.preview-hidden {
  display: none !important;
}

/* ---- Preview Top Bar ---- */
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3rem;
  padding: 0 var(--space-md);
  background: var(--color-primary);
  border-bottom: 1px solid var(--color-primary-muted);
  flex-shrink: 0;
  gap: var(--space-sm);
}

.preview-back-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.preview-back-btn:hover {
  background: var(--color-primary-light);
}

.preview-back-btn svg {
  width: 16px;
  height: 16px;
}

.preview-device-toggles {
  display: flex;
  gap: 2px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: 2px;
}

.preview-toggle {
  width: 36px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.preview-toggle svg {
  width: 18px;
  height: 18px;
}

.preview-toggle:hover {
  color: var(--color-text-inverse);
}

.preview-toggle.active {
  background: var(--color-accent);
  color: var(--color-primary);
}

.preview-newtab-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.preview-newtab-btn:hover {
  background: var(--color-primary-light);
  color: var(--color-text-inverse);
}

.preview-newtab-btn svg {
  width: 18px;
  height: 18px;
}

/* ---- Preview Body ---- */
.preview-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-md);
}

/* ---- Preview Iframe Frame ---- */
.preview-frame {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-radius 0.3s ease;
  max-height: 100%;
}

.preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Mobile frame — phone-like */
.preview-frame-mobile {
  width: 375px;
  height: calc(100vh - 3rem - 2 * var(--space-md));
  max-height: 812px;
  border-radius: 24px;
  border: 4px solid #333;
}

/* Tablet frame */
.preview-frame-tablet {
  width: 768px;
  height: calc(100vh - 3rem - 2 * var(--space-md));
  max-height: 1024px;
  border-radius: 16px;
  border: 3px solid #333;
}

/* Desktop frame — full width */
.preview-frame-desktop {
  width: 100%;
  max-width: 1280px;
  height: calc(100vh - 3rem - 2 * var(--space-md));
  border-radius: var(--radius-lg);
  border: 2px solid #333;
}

/* Mobile-only: preview frame goes full-screen */
@media (max-width: 767px) {
  .preview-body {
    padding: 0;
  }

  .preview-frame {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
  }
}

/* ---- POC Reveal Animations ---- */
.poc-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- POC Responsive — Tablet (768px) ---- */
@media (min-width: 768px) {
  .poc-note {
    padding: 0 var(--space-2xl);
    margin-bottom: var(--space-2xl);
  }

  .poc-features {
    gap: var(--space-lg);
  }

  .poc-launch-btn {
    padding: var(--space-lg) var(--space-3xl);
    font-size: var(--text-lg);
  }
}

/* ---- POC Responsive — Desktop (1280px) ---- */
@media (min-width: 1280px) {
  .poc-note {
    padding: 0 var(--space-3xl);
  }
}

/* ==========================================================================
   Prev / Next Section Navigation
   ========================================================================== */

/* Mobile: fixed at bottom, above bottom nav */
.section-nav {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 8px rgba(10, 22, 40, 0.06);
  z-index: 90;
}

.section-nav-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface-cool);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  max-width: 48%;
}

.section-nav-btn:hover {
  background: var(--color-surface);
}

.section-nav-btn:active {
  transform: scale(0.96);
}

.section-nav-btn svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.section-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section-nav-prev .section-nav-text {
  text-align: left;
}

.section-nav-next .section-nav-text {
  text-align: right;
}

.section-nav-hint {
  font-size: 0.6rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: 600;
  line-height: 1.2;
}

.section-nav-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  /* Desktop: fixed at very bottom (no bottom nav on desktop) */
  .section-nav {
    bottom: 0;
    padding: var(--space-sm) var(--space-xl);
    max-width: none;
    gap: var(--space-lg);
  }

  .section-nav-btn {
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-sm);
  }

  .section-nav-btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }

  .section-nav-label {
    font-size: var(--text-base);
    max-width: none;
  }

  .section-nav-hint {
    font-size: var(--text-xs);
  }
}

/* ==========================================================================
   Deliverables & Investment Section (PRD 008)
   ========================================================================== */

.deliverables-section {
  padding-bottom: var(--space-2xl);
}

/* ---- Deliverables Block (sub-sections) ---- */
.deliverables-block {
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

.deliverables-block-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.deliverables-block-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

/* ---- Deliverables Grid — Category Cards ---- */
.deliverables-grid {
  margin-top: var(--space-lg);
}

.deliverable-card {
  background: var(--color-surface-cool);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.deliverable-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.deliverable-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.deliverable-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 42, 0.1);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.deliverable-card-icon svg {
  width: 24px;
  height: 24px;
}

.deliverable-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

.deliverable-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.deliverable-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.deliverable-check-icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Investment Framework — Payment Timeline ---- */
.investment-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.investment-milestone {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
}

.milestone-number {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.milestone-body {
  flex: 1;
  min-width: 0;
}

.milestone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 4px;
}

.milestone-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
}

.milestone-pct {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

.milestone-trigger {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Investment progress bar */
.investment-bar-track {
  width: 100%;
  height: 8px;
  background: var(--color-surface-cool);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.investment-bar {
  height: 100%;
  width: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.investment-bar.animated {
  width: 100%;
}

/* Inclusions list */
.investment-inclusions {
  background: var(--color-surface-cool);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.investment-inclusions-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.investment-inclusions-title svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.investment-inclusions-list {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
}

.inclusion-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.inclusion-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* ---- Why Websparrows Solutions — Value Proposition Cards ---- */
.why-us-grid {
  margin-top: var(--space-lg);
}

.why-us-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
}

.why-us-card-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-sm);
}

.why-us-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.why-us-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ---- Next Steps — CTA Section ---- */
.next-steps {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-primary);
  margin-top: var(--space-xl);
}

.next-steps-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.next-steps-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-xl);
}

.next-steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  text-align: left;
}

.next-step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.next-step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.next-step-body {
  flex: 1;
}

.next-step-action {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-inverse);
  margin-bottom: 2px;
}

.next-step-desc {
  font-size: var(--text-sm);
  color: rgba(248, 249, 250, 0.7);
  line-height: var(--leading-relaxed);
}

.next-steps-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.next-steps-cta svg {
  width: 20px;
  height: 20px;
}

.next-steps-cta:hover {
  background: var(--color-accent-light);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.next-steps-cta:active {
  transform: scale(0.97);
}

/* ---- Deliverables Scroll-Reveal ---- */
.deliverables-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Deliverables Responsive — Tablet (768px) ---- */
@media (min-width: 768px) {
  .deliverables-block {
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
  }

  .deliverables-block-title {
    font-size: var(--text-2xl);
  }

  .deliverables-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    overflow: visible;
    scroll-snap-type: none;
  }

  .deliverable-card {
    flex: none;
  }

  .deliverables-grid + .swipe-dots {
    display: none;
  }

  .investment-timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .investment-inclusions-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    overflow: visible;
    scroll-snap-type: none;
  }

  .why-us-card {
    flex: none;
  }

  .why-us-grid + .swipe-dots {
    display: none;
  }

  .next-steps {
    padding: var(--space-3xl) var(--space-2xl);
    border-radius: var(--radius-xl);
    margin-left: var(--space-lg);
    margin-right: var(--space-lg);
  }

  .next-steps-title {
    font-size: var(--text-4xl);
  }

  .next-steps-list {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-2xl);
  }
}

/* ---- Deliverables Responsive — Desktop (1280px) ---- */
@media (min-width: 1280px) {
  .deliverables-block {
    padding: var(--space-xl) var(--space-3xl) var(--space-2xl);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }

  .deliverables-grid {
    gap: var(--space-xl);
  }

  .deliverable-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }

  .investment-timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .investment-inclusions-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .why-us-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
  }

  .next-steps {
    padding: var(--space-4xl) var(--space-3xl);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }

  .next-steps-cta {
    padding: var(--space-lg) var(--space-3xl);
    font-size: var(--text-lg);
  }
}
