body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #FAF9F6;
  color: #141A17;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Editorial Serif with generous line-height so descenders (g, p, y) never collide */
.editorial-heading {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.blog-card-title {
  line-height: 1.3 !important;
}

.tabular-num {
  font-variant-numeric: tabular-nums;
}

.border-hairline {
  border-color: rgba(20, 26, 23, 0.09);
}

/* Hide native scrollbar for horizontal swipeable blog pages */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Horizontal Folder Accordion (Pangram Style — Zero Vertical Text Clipping) */
.folder-panel {
  transition: flex-grow 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.spine-text {
  writing-mode: horizontal-tb;
  transform: none;
}
@media (min-width: 1024px) {
  .spine-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    line-height: 1;
  }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-pop {
  animation: popIn 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Editorial Article Long-Form Typography */
.article-prose p {
  font-size: 17px;
  line-height: 1.82;
  color: #1F2925;
  margin-bottom: 1.35rem;
}
.article-prose h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #111815;
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
  scroll-margin-top: 96px;
}
@media (min-width: 640px) {
  .article-prose h2 {
    font-size: 32px;
  }
}
.article-prose h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: #141A17;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}
.article-prose ul, .article-prose ol {
  margin-bottom: 1.35rem;
  padding-left: 1.25rem;
  color: #1F2925;
  font-size: 16.5px;
  line-height: 1.78;
}
.article-prose ul { list-style-type: disc; }
.article-prose ol { list-style-type: decimal; }
.article-prose li { margin-bottom: 0.5rem; }
.article-prose .key-term {
  color: #E85D3F;
  text-decoration: underline;
  text-decoration-color: rgba(232, 93, 63, 0.5);
  text-underline-offset: 4px;
  font-weight: 500;
}

/* ==================== INTERACTIVE MICRO-ANIMATIONS ==================== */
/* Scroll Reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tactile Cards & Buttons */
.interactive-card {
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s ease;
}
.interactive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -14px rgba(18, 49, 37, 0.14);
}

.btn-tactile {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.2s ease,
              box-shadow 0.22s ease,
              border-color 0.2s ease;
}
.btn-tactile:hover {
  transform: translateY(-1.5px);
}
.btn-tactile:active {
  transform: translateY(0) scale(0.97);
}
.btn-tactile .btn-arrow {
  display: inline-flex;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-tactile:hover .btn-arrow {
  transform: translateX(3px);
}
.btn-tactile .btn-icon {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-tactile:hover .btn-icon {
  transform: scale(1.1) rotate(-3deg);
}

/* Blog Swipeable Paged Carousel Physics */
.blog-carousel-viewport {
  overflow: hidden;
  touch-action: pan-y;
  padding: 12px 4px 28px 4px;
  margin: -12px -4px -28px -4px;
}
.blog-carousel-track {
  display: flex;
  will-change: transform;
  --drag-tilt: 0deg;
}
.blog-carousel-track.is-animating {
  transition: transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-page-slide {
  flex: 0 0 100%;
  width: 100%;
  transition: opacity 0.44s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-page-slide.is-inactive {
  opacity: 0.42;
  transform: scale(0.955);
}
.blog-carousel-track.is-dragging .blog-card-item {
  transform: scale(0.982) rotate(var(--drag-tilt));
  transition: transform 0.14s ease-out;
}

@keyframes blogCardSettle {
  0% { opacity: 0.45; transform: translateX(var(--swipe-enter-x, 22px)) scale(0.975); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
.blog-card-settle {
  animation: blogCardSettle 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Micro-feedback Keyframes (Score Pop, Text Swap, FAQ, Folder Accordion) */
@keyframes badgePop {
  0% { transform: scale(0.86); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.animate-badge-pop {
  animation: badgePop 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes textSwap {
  0% { opacity: 0.25; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-text-swap {
  animation: textSwap 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
details[open] > p {
  animation: faqReveal 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes folderBodyIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}
.folder-body-animate {
  animation: folderBodyIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Sticky Navbar Scroll Elevation */
#stickyNavInner {
  transition: box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}
#stickyNavInner.is-scrolled {
  box-shadow: 0 12px 30px -10px rgba(18, 49, 37, 0.14);
  border-color: rgba(20, 26, 23, 0.14);
  background-color: rgba(255, 255, 255, 0.98);
}

/* Article Top Reading Progress Bar */
#articleProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #FF6419, #FFE270);
  z-index: 60;
  transition: width 0.08s linear;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .interactive-card, .btn-tactile, .blog-carousel-track, .blog-page-slide, .blog-card-settle {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==================== DASHBOARD WORKSPACE STYLES ==================== */
@keyframes dashboardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dashboard-enter {
  animation: dashboardFadeIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#dashSidebar {
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
#dashSidebar.is-collapsed {
  width: 72px;
}
#dashSidebar.is-collapsed .dash-sidebar-label,
#dashSidebar.is-collapsed .dash-sidebar-section-title,
#dashSidebar.is-collapsed .dash-sidebar-card,
#dashSidebar.is-collapsed .dash-sidebar-lock {
  display: none;
}
#dashSidebar.is-collapsed .dash-nav-item {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}
#dashSidebar.is-collapsed #dashCollapseIcon {
  transform: rotate(180deg);
}
#dashCollapseIcon {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.dash-gauge-fill {
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==================== MODERN SCROLL & STICKY INTERACTIONS ==================== */
#globalScrollBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #FF6419, #FFE270, #123125);
  z-index: 70;
  pointer-events: none;
  transition: width 0.06s linear;
}

.sticky-stack-card {
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.36s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s ease;
}
.sticky-stack-card:hover {
  border-color: rgba(66, 85, 31, 0.35);
}

#demoPaperPlane {
  transition: opacity 0.2s ease;
}

/* ==================== 3D TILT SPOTLIGHT & INTERACTIVE POLISH ==================== */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 65%);
  transition: opacity 0.28s ease;
}
.tilt-card:hover::after {
  opacity: 1;
}

.verba-highlight-mark {
  background: linear-gradient(120deg, rgba(255, 226, 112, 0.72) 0%, rgba(255, 226, 112, 0.92) 100%);
  color: #141A17;
  padding: 0.06em 0.28em;
  border-radius: 6px;
  font-weight: 500;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  animation: markReveal 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes markReveal {
  from { background-size: 0% 100%; opacity: 0.6; }
  to { background-size: 100% 100%; opacity: 1; }
}

.btn-magnetic {
  will-change: transform;
}

/* ==================== SCREEN 4 & 5 MICRO-ANIMATIONS ==================== */
@keyframes folderImgZoom {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
.folder-body-animate .folder-pastel-img {
  animation: folderImgZoom 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes docShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.feat-shimmer-bar {
  background-size: 200% 100%;
  animation: docShimmer 2.8s linear infinite;
}

/* ==================== INTERACTIVE DIE-CUT STICKERS (SCREEN 7 & 8) ==================== */
.verba-sticker {
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.24s ease;
  will-change: transform;
  touch-action: none;
  background: transparent;
}
.verba-sticker:hover {
  filter: drop-shadow(0 12px 16px rgba(18, 49, 37, 0.18));
}
.verba-sticker.is-dragging {
  transition: filter 0.14s ease;
  filter: drop-shadow(0 18px 24px rgba(18, 49, 37, 0.26));
  z-index: 45 !important;
}
@keyframes stickerPop {
  0% { scale: 1; }
  45% { scale: 1.14; }
  100% { scale: 1; }
}
.sticker-pop {
  animation: stickerPop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
