/* ==========================================================================
   VeriClause AI — Apple Design System & Liquid Glass (macOS Tahoe HIG)
   3 Completely Separate Pages:
   1. Landing Page (Interactive Molten Orb Shader - Monopo Saigon Aesthetic)
   2. Features Page (Panoramic Interactive Horizontal Carousel Showcase)
   3. Audit Studio (Split-Screen Document Canvas & Risk Inspector)
   ========================================================================== */

:root {
  /* Refined Light Editorial & Architectural Palette ("not all white and shi") */
  --charcoal: #0f172a;            /* Deep obsidian slate for crisp text & primary actions */
  --steel-gray: #e2e8f0;          /* Clean hairline border */
  --steel-subtle: rgba(15, 23, 42, 0.05);
  --metallic-silver: #64748b;     /* Refined slate secondary */
  --soft-white: #0f172a;          /* Crisp dark slate */

  /* Ambient Platinum / Gold Accents */
  --amber-gold: #d97706;
  --sage-green: #059669;

  /* Foundation & Surfaces */
  --apple-bg: #f2f4f7;           /* Soft architectural mist, NOT eye-straining pure white */
  --apple-surface: rgba(255, 255, 255, 0.9);
  --apple-surface-solid: #ffffff;
  --apple-card: #ffffff;
  --apple-card-hover: #f8fafc;

  /* Separators & Hairlines */
  --apple-separator: #e2e8f0;
  --apple-border-active: #0f172a;

  /* Typography Vibrancy */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;

  /* Semantic Status Tints */
  --apple-red: #dc2626;
  --apple-orange: #d97706;
  --apple-green: #16a34a;

  /* Liquid Glass Reusable Tokens */
  --liquid-glass-bg: rgba(255, 255, 255, 0.85);
  --liquid-glass-border: rgba(15, 23, 42, 0.08);
  --liquid-glass-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  --liquid-glass-blur: blur(20px) saturate(180%);

  /* Fonts */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 980px;

  /* Transitions */
  --spring-easing: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--charcoal);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.012em;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  user-select: none;
}

/* ==========================================================================
   Top Application Navigation: macOS Tahoe / Liquid Glass Header
   ========================================================================== */
.app-header {
  height: 52px;
  background: rgba(242, 244, 247, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.2s ease;
  user-select: none;
}

.brand-wrapper:hover {
  opacity: 0.85;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--soft-white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-dot {
  width: 5px;
  height: 5px;
  background-color: #0f172a;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(15, 23, 42, 0.3);
  animation: pulseDot 3s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Nav Links: Monopo Saigon Minimalist Editorial Typography (No capsule box, clean text) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-link {
  background: transparent;
  border: none;
  color: #475569;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #0f172a;
}

.nav-link.active {
  color: #0f172a;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: 0 0 4px rgba(15, 23, 42, 0.4);
}

/* Workspace Doc Dropdown */
.header-doc-picker {
  display: flex;
  align-items: center;
}

.doc-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.doc-dropdown {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color: #0f172a;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  height: 30px;
  padding: 0 28px 0 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: all 0.2s var(--spring-easing);
  max-width: 290px;
}

.doc-dropdown:hover {
  border-color: #0f172a;
}

.doc-dropdown-arrow {
  position: absolute;
  right: 9px;
  pointer-events: none;
  color: var(--metallic-silver);
  display: flex;
  align-items: center;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost-pill {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--spring-easing);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-ghost-pill:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}

.btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s var(--spring-easing);
}

.btn-subtle {
  background: rgba(45, 52, 62, 0.45);
  border: 1px solid var(--steel-gray);
  color: var(--soft-white);
  box-shadow: inset 0 1px 0 rgba(234, 234, 234, 0.08);
}

.btn-subtle:hover {
  background: rgba(45, 52, 62, 0.75);
  border-color: var(--metallic-silver);
}

.btn-primary {
  background: linear-gradient(180deg, #EAEAEA 0%, #A8AEB5 100%);
  color: #0c0e12;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-xs {
  height: 24px;
  font-size: 11px;
  padding: 0 9px;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   PAGE 1: LANDING PAGE (#page-landing)
   High-Res Molten Iridescent Fluid Orb (Monopo Saigon Aesthetic)
   ========================================================================== */
#page-landing {
  position: relative;
  height: calc(100vh - 52px);
  min-height: 600px;
  width: 100%;
  background: #e8eae6 url('hero-bg.jpg') no-repeat center center;
  background-size: cover;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #475569;
  margin-bottom: 24px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c49746;
  box-shadow: 0 0 8px rgba(196, 151, 70, 0.85);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 45%, #475569 85%, #64748B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  max-width: 920px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.hero-subtext {
  font-size: 17px;
  font-weight: 500;
  color: #475569;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.center-indicator-dot {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #FFFFFF 0%, #A8AEB5 55%, #3A414A 100%);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(234, 234, 234, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  margin: 0 auto 28px;
  animation: dotBreathe 4s ease-in-out infinite;
}

@keyframes dotBreathe {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(0.92); opacity: 0.7; }
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn-pill-solid {
  background: #0f172a;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid #0f172a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s var(--spring-easing);
}

.btn-pill-solid:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

.btn-pill-outline {
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s var(--spring-easing);
}

.btn-pill-outline:hover {
  background: #ffffff;
  border-color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Double-Ring Rotating Scroll Down Badge from Reference Image */
.scroll-badge-bottom-left {
  position: absolute;
  bottom: 28px;
  left: 36px;
  width: 76px;
  height: 76px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--spring-bounce);
  z-index: 10;
}

.scroll-badge-bottom-left:hover {
  transform: scale(1.1);
}

.rotating-text-svg {
  width: 100%;
  height: 100%;
  animation: rotateBadge 16s linear infinite;
}

.circle-text {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  fill: var(--metallic-silver);
  text-transform: uppercase;
}

.scroll-badge-inner-ring {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(168, 174, 181, 0.4);
  box-shadow: 0 0 10px rgba(196, 151, 70, 0.15);
}

.scroll-badge-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--soft-white);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(234, 234, 234, 0.95);
}

@keyframes rotateBadge {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .scroll-badge-bottom-left {
    display: none;
  }
}

/* Hero Quick-Launch Prototype Cards */
.hero-samples-banner {
  width: 100%;
  margin-top: 10px;
}

.samples-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--metallic-silver);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.sample-card {
  background: rgba(18, 21, 26, 0.85);
  border: 1px solid var(--steel-gray);
  box-shadow: inset 0 1px 0 rgba(234, 234, 234, 0.12), 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all 0.25s var(--spring-easing);
  display: flex;
  flex-direction: column;
}

.sample-card:hover {
  background: rgba(30, 35, 43, 0.95);
  border-color: var(--metallic-silver);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(234, 234, 234, 0.2), 0 12px 32px rgba(0, 0, 0, 0.55);
}

.sample-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sample-type {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--metallic-silver);
  text-transform: uppercase;
}

.sample-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--soft-white);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.sample-desc {
  font-size: 11.5px;
  color: var(--metallic-silver);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

.sample-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(168, 174, 181, 0.12);
  font-size: 11px;
}

.sample-stat {
  color: var(--metallic-silver);
}

.sample-link {
  color: var(--soft-white);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   PAGE 2: DEDICATED FEATURES PAGE (#page-features)
   Vertical Scrolling Architectural Experience
   ========================================================================== */
#page-features {
  min-height: calc(100vh - 52px);
  background: #f2f4f7;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  padding: 48px 0 80px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.features-page-header {
  max-width: 1080px;
  margin: 0 auto 40px;
  padding: 0 32px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-main-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #0f172a;
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  max-width: 800px;
}

.features-main-subtext {
  font-size: 15px;
  color: #475569;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Sticky Architectural Sub-Nav Strip */
.features-subnav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.subnav-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #475569;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--spring-easing);
}

.subnav-pill:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.subnav-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

/* Vertical Stack of Monumental Feature Cards */
.features-vertical-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

.feat-card-vertical {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-xl);
  padding: 38px 42px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: center;
  transition: all 0.3s var(--spring-easing);
  scroll-margin-top: 80px;
}

.feat-card-vertical:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.feat-info-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.feat-demo-col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.feat-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feat-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--amber-gold);
}

.feat-heading {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--soft-white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.feat-text {
  font-size: 13.5px;
  color: var(--metallic-silver);
  line-height: 1.6;
  margin-bottom: 18px;
}

.feat-checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feat-checklist li {
  font-size: 12px;
  color: var(--soft-white);
  opacity: 0.88;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat-checklist li svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Interactive Mini Sandboxes Inside Cards */
.feat-sandbox {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.sandbox-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--metallic-silver);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(168, 174, 181, 0.1);
}

.sandbox-clause-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: #991b1b;
}

.sandbox-flag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 92, 92, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.sandbox-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(168, 174, 181, 0.08);
}

.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--soft-white);
}

.stat-item .stat-lbl {
  font-size: 10.5px;
  color: var(--metallic-silver);
}

/* Feature 02: Trace Diagram */
.trace-demo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.trace-doc-preview {
  flex: 1;
  background: rgba(20, 24, 30, 0.8);
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.trace-doc-line {
  height: 5px;
  background: rgba(168, 174, 181, 0.2);
  border-radius: 2px;
  margin-bottom: 6px;
}

.trace-doc-line.short { width: 60%; }

.trace-bbox-preview {
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid rgba(255, 92, 92, 0.4);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 9.5px;
  color: #fca5a5;
  margin-bottom: 6px;
}

.trace-arrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--amber-gold);
  white-space: nowrap;
}

.trace-card-preview {
  flex: 1;
  background: rgba(35, 42, 52, 0.9);
  border: 1px solid var(--metallic-silver);
  border-radius: var(--radius-sm);
  padding: 10px;
}

/* Feature 03: Rate Compare */
.recon-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.recon-pill-cell {
  background: rgba(20, 24, 30, 0.8);
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.recon-pill-cell.billed {
  border-color: rgba(255, 92, 92, 0.4);
  background: rgba(255, 92, 92, 0.08);
}

.cell-label {
  font-size: 10px;
  color: var(--metallic-silver);
  margin-bottom: 3px;
}

.cell-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--soft-white);
}

.recon-pill-cell.billed .cell-val {
  color: #ff8a80;
}

/* Feature 04: Code Preview */
.code-preview-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #1e293b;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Feature 05: Mini Toggle */
.mini-toggle-demo {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.mini-btn {
  background: rgba(45, 52, 62, 0.5);
  border: 1px solid var(--steel-gray);
  color: var(--metallic-silver);
  font-family: inherit;
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.mini-btn.active {
  background: var(--steel-gray);
  color: var(--soft-white);
  border-color: var(--metallic-silver);
}

/* Feature 06: Calendar Pill */
.calendar-pill-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 24, 30, 0.85);
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.cal-date-badge {
  background: rgba(255, 92, 92, 0.15);
  border: 1px solid rgba(255, 92, 92, 0.4);
  border-radius: 6px;
  padding: 4px 8px;
  text-align: center;
}

.cal-month {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  color: #ff8a80;
}

.cal-day {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.cal-info { flex: 1; }
.cal-event-title { font-weight: 600; color: #fff; font-size: 12px; }
.cal-event-meta { font-size: 10px; color: var(--metallic-silver); }
.btn-card-action {
  align-self: flex-start;
  background: linear-gradient(180deg, #FFFFFF 0%, #A8AEB5 100%);
  color: #0c0e12;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 14px rgba(168, 174, 181, 0.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--spring-easing);
  width: auto;
}

.btn-card-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.features-closing-hero {
  max-width: 900px;
  margin: 64px auto 0;
  padding: 52px 36px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--soft-white);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.closing-subtext {
  font-size: 14.5px;
  color: var(--metallic-silver);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ==========================================================================
   PAGE 3: AUDIT STUDIO SPLIT-SCREEN WORKSPACE (#page-workspace)
   ========================================================================== */
#page-workspace {
  height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 10px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
  z-index: 40;
}

.metric-pill {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 6px 24px;
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s var(--spring-easing);
  border-right: 1px solid #e2e8f0;
}

.metric-pill:last-child {
  border-right: none;
}

.metric-pill:hover {
  background: #f8fafc;
}

.metric-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  line-height: 1.2;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 3px;
  letter-spacing: -0.02em;
}

.badge-risk {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.badge-danger {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.badge-warning {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.badge-safe {
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.app-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
}

.document-pane {
  border-right: 1px solid #e2e8f0;
  background-color: #f1f4f8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.pane-toolbar {
  height: 42px;
  padding: 0 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #64748b;
  flex-shrink: 0;
}

.doc-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
  display: flex;
  justify-content: center;
}

.doc-paper {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  padding: 44px 52px;
  color: #334155;
  font-size: 13.5px;
  line-height: 1.75;
}

.doc-paper h1, .doc-paper h2, .doc-paper h3, .doc-paper strong {
  color: #0f172a;
}

.doc-paper h2 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 24px;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

.bounding-box {
  position: relative;
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--spring-easing);
  word-break: normal;
  overflow-wrap: break-word;
}

.bounding-box.box-danger {
  background: #fef2f2;
  border: 1.5px solid #f87171;
}

.bounding-box.box-warning {
  background: #fffbeb;
  border: 1.5px solid #fbbf24;
}

.bounding-box.box-missing {
  background: #f8fafc;
  border: 1.5px dashed #94a3b8;
}

.bounding-box:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.bounding-box.box-highlighted {
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.box-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  line-height: 1.2;
}

mark {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  display: inline;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 600;
  line-height: inherit;
}

mark[style*="255, 159, 10"], mark.mark-warning {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}

mark[style*="255, 69, 58"], mark.mark-danger {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}

.audit-pane {
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.audit-control-bar {
  padding: 12px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-group {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px;
  border-radius: var(--radius-pill);
}

.toggle-opt {
  background: transparent;
  border: none;
  color: #64748b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.toggle-opt.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: #0f172a;
  background: #f8fafc;
}

.tab-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  font-weight: 600;
}

.findings-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finding-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s var(--spring-easing);
}

.finding-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.finding-card.selected {
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: 0 0 0 1.5px #0f172a, 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin-bottom: 5px;
}

.card-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 10px;
}

.card-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  align-items: center;
}

.reconciliation-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 11.5px;
}

.recon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.recon-col {
  background: rgba(18, 21, 26, 0.7);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--steel-gray);
}

/* ==========================================================================
   DRIBBLE-STYLE UPLOAD MODAL (#uploadModal)
   Explicit Prototype Notice + Live Examples
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 13, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--spring-easing);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.upload-modal-dialog {
  position: relative;
  width: 520px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
  border-radius: 22px;
  padding: 26px 24px;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s var(--spring-easing);
  text-align: center;
  color: #0f172a;
}

.modal-overlay.open .upload-modal-dialog {
  transform: scale(1) translateY(0);
}

.upload-slot-illustration {
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  background: linear-gradient(180deg, #2a2e36 0%, #1c1f24 100%);
  border: 1px solid var(--steel-gray);
  box-shadow: inset 0 1px 0 rgba(234, 234, 234, 0.2), 0 8px 20px rgba(0, 0, 0, 0.4);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.upload-sheet-card {
  width: 32px;
  height: 40px;
  background: #EAEAEA;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c0e12;
  transform: translateY(-4px);
  transition: transform 0.2s ease;
}

.upload-slot-illustration:hover .upload-sheet-card {
  transform: translateY(-8px);
}

.upload-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--soft-white);
  margin-bottom: 2px;
  letter-spacing: -0.015em;
}

.upload-subtitle {
  font-size: 11.5px;
  color: var(--metallic-silver);
  margin-bottom: 14px;
}

.prototype-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
  text-align: left;
}

.prototype-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  margin-bottom: 4px;
}

.prototype-notice {
  font-size: 11px;
  color: #92400e;
  line-height: 1.5;
}

.modal-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--metallic-silver);
  margin-bottom: 8px;
  text-align: left;
}

.live-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
}

.sample-chips-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.live-sample-card {
  background: rgba(24, 28, 36, 0.85);
  border: 1px solid var(--steel-gray);
  box-shadow: inset 0 1px 0 rgba(234, 234, 234, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s var(--spring-easing);
  text-align: left;
}

.live-sample-card:hover {
  background: rgba(35, 42, 52, 0.95);
  border-color: var(--metallic-silver);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(234, 234, 234, 0.18), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.live-sample-icon {
  color: var(--metallic-silver);
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-sample-body { flex: 1; }
.live-sample-title { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--soft-white); }
.live-sample-meta { font-size: 10.5px; color: var(--metallic-silver); }

.upload-dropzone {
  border: 1.5px dashed var(--steel-gray);
  background: rgba(24, 28, 36, 0.45);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  cursor: pointer;
  transition: all 0.2s var(--spring-easing);
  margin-bottom: 12px;
}

.upload-dropzone:hover {
  border-color: var(--metallic-silver);
  background: rgba(35, 42, 52, 0.65);
}

.dropzone-icon { color: var(--metallic-silver); margin-bottom: 4px; }
.dropzone-text { font-size: 12px; color: var(--soft-white); margin-bottom: 2px; }
.dropzone-strong { font-weight: 600; }
.dropzone-browse { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dropzone-meta { font-size: 10.5px; color: var(--metallic-silver); }

.upload-paste-container { text-align: left; margin-bottom: 16px; }
.paste-label { font-size: 10.5px; font-weight: 500; color: var(--metallic-silver); display: block; margin-bottom: 4px; }

.paste-textarea {
  width: 100%;
  height: 55px;
  background: rgba(18, 20, 25, 0.9);
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--soft-white);
  font-family: var(--font-mono);
  font-size: 11px;
  resize: none;
  outline: none;
  box-sizing: border-box;
}

.paste-textarea:focus { border-color: var(--metallic-silver); }
.upload-modal-footer { display: flex; justify-content: flex-end; gap: 10px; }

/* Counter-Clause Dialog */
.modal-dialog {
  width: 540px;
  max-width: 90vw;
  background: #14171c;
  border: 1px solid var(--steel-gray);
  box-shadow: inset 0 1px 0 rgba(234, 234, 234, 0.15), 0 24px 64px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-xl);
  padding: 24px;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s var(--spring-easing);
}

.modal-overlay.open .modal-dialog { transform: scale(1) translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--soft-white); letter-spacing: -0.015em; }

.modal-close {
  background: rgba(45, 52, 62, 0.4);
  border: 1px solid var(--steel-gray);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--metallic-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: absolute;
  top: 18px;
  right: 18px;
}

.modal-close:hover { background: var(--steel-gray); color: #fff; }

.code-box {
  background: #0d0f13;
  border: 1px solid var(--steel-gray);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 8px 0;
  user-select: text;
}

/* Apple Dynamic Toast */
.apple-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-24px) scale(0.95);
  background: rgba(25, 29, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--steel-gray);
  box-shadow: inset 0 1px 0 rgba(234, 234, 234, 0.15), 0 12px 36px rgba(0, 0, 0, 0.5);
  color: var(--soft-white);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--spring-bounce);
}

.apple-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.toast-icon {
  width: 15px;
  height: 15px;
  background: var(--soft-white);
  color: #0c0e12;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(168, 174, 181, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(168, 174, 181, 0.35); }

/* Responsive */
@media (max-width: 960px) {
  .app-workspace { grid-template-columns: 1fr; }
  .hero-headline { font-size: 40px; }
  .features-page-header { padding: 0 20px; }
  .feat-card-vertical {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 22px;
  }
  .features-vertical-container {
    padding: 0 16px;
    gap: 32px;
  }
  .features-subnav {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 6px 12px;
    max-width: 100%;
    scrollbar-width: none;
  }
}
