/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-feature-settings: normal;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.skip-to-content:focus {
  left: 1rem;
  top: 1rem;
  background: var(--brand-green);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-black);
  line-height: 1.6;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography - lighter body text */
p, span, li, .font-dm {
  font-weight: 300;
}

/* Typography */
.font-crimson {
  font-family: 'Crimson Text', serif;
}

.font-dm {
  font-family: 'DM Sans', sans-serif;
}

/* Line clamp utility for subtitle */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Colors */
:root {
  --brand-green: #048B5E;
  --accent-green: #048B5E; /* Brand green for active states and highlights */
  --bg-green: rgba(4, 139, 94, 0.01);
  --light-green: #DFECC6;
  --text-gray: #6F6F6F;
  --border-gray: #E9E9E9;
  --light-gray: #6F6F6F; /* Darkened for WCAG AA contrast (4.7:1) */
  --bg-color: #FCFCFC;
  --text-black: #000000;
  --overlay-black: rgba(0, 0, 0, 0.6);
  --overlay-light: rgba(0, 0, 0, 0.15);
  --overlay-lighter: rgba(0, 0, 0, 0.02);
  --overlay-border: rgba(0, 0, 0, 0.25);
}

/* Navigation */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  z-index: 10001;
    background-color: var(--bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  /* Add padding to body to account for fixed nav height */
  body {
  padding-top: 64px; /* Mobile nav height */
}

@media (min-width: 1024px) {
  body {
    padding-top: 88px; /* Desktop nav height */
  }
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  opacity: 0.5;
  transition: opacity 0.3s ease-in-out, text-decoration 0.3s ease-in-out;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease-in-out;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
  opacity: 1;
}

/* Mobile Menu - Simple Implementation */
.mobile-menu {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.mobile-menu.mobile-menu-open {
  pointer-events: auto;
}

.mobile-menu-overlay {
  pointer-events: none;
  z-index: 10000; /* Above nav (9999) but below sidebar (10001) */
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--overlay-black);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.mobile-menu-sidebar {
  pointer-events: auto;
  z-index: 10002; /* Above nav (10001) and overlay (10000) */
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh; /* Full viewport height */
}

.mobile-menu.mobile-menu-open .mobile-menu-sidebar {
  transform: translateX(0);
}

/* Mobile Menu Header/Footer Border */
.mobile-menu-header,
.mobile-menu-footer {
  border-color: var(--border-gray, #E9E9E9);
}

/* Hero Floating Tasks */
#hero-floating-tasks {
  overflow: hidden;
}

/* Hero Central Container */
#hero-central-container {
  opacity: 0;
  visibility: hidden;
}

/* Utility Classes */
.text-wrap-utility {
  min-width: 0;
  word-wrap: break-word;
}

/* Buttons */
button {
  font-family: 'DM Sans', sans-serif;
}

.btn-signup {
  font-family: 'DM Sans', sans-serif;
  transition: background-color 0.3s ease-in-out;
}

button.btn-signup:hover,
.btn-signup:hover {
  background-color: rgba(4, 139, 94, 0.05);
}

.btn-cta {
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  border: 1px solid var(--overlay-light);
  background: transparent;
  border-radius: 0.5rem;
  color: var(--text-black);
  font-weight: normal;
  text-transform: lowercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cta:hover {
  border-color: var(--overlay-border);
  background-color: var(--overlay-lighter);
  transform: translateY(-1px);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

/* Pricing Cards - Equal Height Design */
.pricing-card-equal-height {
  position: relative;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.068), 0 1px 2px 0 rgba(0, 0, 0, 0.043);
  transition: all 0.3s ease-in-out;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card-equal-height:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.102), 0 4px 8px -2px rgba(0, 0, 0, 0.068);
}

/* Free Card - Soft green gradient */
.pricing-card-free-clean {
  background: linear-gradient(to bottom right, #F9FAF9, #FFFFFF);
  border: 1px solid rgba(229, 229, 229, 0.6);
}

/* Pro Card - Slightly richer green gradient for hierarchy */
.pricing-card-pro-clean {
  background: linear-gradient(to bottom right, #F7FBF9, #EBF9F1);
  border: 1px solid rgba(4, 139, 94, 0.35);
}

/* Pricing Cards - New Design (old - keep for compatibility) */
.pricing-card-new {
  position: relative;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
}

.pricing-card-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.pricing-card-free-new {
  background: linear-gradient(135deg, rgba(223, 236, 198, 0.2) 0%, rgba(252, 252, 252, 0.95) 50%, rgba(252, 252, 252, 1) 100%);
  border: 1px solid rgba(223, 236, 198, 0.3);
}

.pricing-card-pro-new {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(14, 165, 233, 0.08) 50%, rgba(252, 252, 252, 1) 100%);
  border: 1px solid rgba(245, 158, 11, 0.15);
  position: relative;
  overflow: hidden;
}

.pricing-card-pro-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Old Pricing Cards - Keep for backward compatibility */
.pricing-cards-container {
  position: relative;
  width: 100%;
}

.pricing-card {
  transition: all 0.3s ease-in-out;
  overflow: visible;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.pricing-card .card-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-in-out;
}

.pricing-card.active {
  z-index: 10;
}

.pricing-card.active.pricing-card-pro::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(14, 165, 233, 0.06) 100%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}

.pricing-card.active .card-content {
  max-height: 800px;
  opacity: 1;
}

.pricing-cards-container:has(.pricing-card.active) .pricing-card:not(.active) .card-content {
  max-height: 0;
  opacity: 0;
}

.pricing-card:hover {
  transform: translateY(-2px);
}

.pricing-card:hover.pricing-card-pro::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.07) 0%, rgba(14, 165, 233, 0.07) 100%);
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
}

.pricing-card:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

/* Typing animation for hero subtext */
.hero-subtext-typing {
  animation: fadeInType 2s ease-out;
}

@keyframes fadeInType {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section fade-in on scroll */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mascot positioning - handled by JavaScript */
#todd-mascot {
  bottom: 100%;
}

/* Pricing text block gradient */
.pricing-text-block {
  background: linear-gradient(135deg, rgba(223, 236, 198, 0.15) 0%, rgba(4, 139, 94, 0.05) 100%);
  padding: 2rem;
  border-radius: 1rem;
  position: relative;
}

.pricing-text-block::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(223, 236, 198, 0.3), rgba(4, 139, 94, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Coming Soon Badge */
.coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(223, 236, 198, 0.15) 0%, rgba(4, 139, 94, 0.05) 100%);
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: normal;
  color: var(--brand-green);
  position: relative;
  border: 1px solid transparent;
  text-transform: lowercase;
  overflow: hidden;
  opacity: 0.8;
}

.coming-soon-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(223, 236, 198, 0.3), rgba(4, 139, 94, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.coming-soon-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Loading Spinner */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid rgba(4, 139, 94, 0.3);
  border-top-color: #048B5E;
  border-radius: 50%;
  animation: spin 0.4s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Waitlist form - ensure it doesn't get cut off */
.waitlist-form {
  overflow: visible;
  width: 100%;
}

.waitlist-form > div:has(input) {
  width: 100%;
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form input:focus {
  border-color: #048B5E;
  box-shadow: 0 0 0 3px rgba(4, 139, 94, 0.1);
  outline: none;
}

.waitlist-form input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.waitlist-form input.success {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.waitlist-form button {
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
  white-space: nowrap;
}

.waitlist-message.error {
  color: #dc2626;
}

.waitlist-message.success {
  color: var(--brand-green);
}

/* FAQ Styles - Refined Design */
.faq-container-refined {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item-refined {
  border-bottom: 1px solid rgba(229, 229, 229, 0.25);
  padding-bottom: 1.25rem;
}

.faq-item-refined:last-child {
  border-bottom: none;
}

.faq-toggle-refined {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: all 0.3s ease;
}

.faq-toggle-refined:hover .faq-question::after {
  width: 100%;
}

.faq-toggle-refined:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-question {
  font-family: 'Crimson Text', serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  color: #000;
  text-transform: lowercase;
  position: relative;
  width: fit-content;
}

/* Animated underline on hover/active - only spans text width */
.faq-question::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease-in-out;
}

.faq-toggle-refined:hover .faq-question::after,
.faq-item-refined.active .faq-question::after {
  width: 100%;
}

.faq-icon-refined {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  font-size: 0;
  color: transparent;
}

.faq-icon-refined::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border: 1.5px solid #000;
  border-radius: 3px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transform square into horizontal line - all sides collapse together */
.faq-item-refined.active .faq-icon-refined::before {
  top: calc(50% - 0.75px);
  bottom: calc(50% - 0.75px);
  left: 2px;
  right: 2px;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 0;
  opacity: 0.7;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item-refined.active .faq-answer {
  max-height: 800px;
  opacity: 1;
  padding-top: 1rem;
}

.faq-answer-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
  color: #6F6F6F;
  text-transform: lowercase;
}

/* Footer - Refined Design */
.footer-social-link {
  color: #000;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.footer-social-link:hover,
.footer-social-link:focus {
  opacity: 1;
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-copyright {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: #6b7280;
  opacity: 0.7;
  text-align: center;
  text-transform: lowercase;
}

.footer-illustration {
  width: 100%;
  min-width: 320px;
  max-width: 1000px;
  height: auto;
  max-height: 129px;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: translateY(10px);
  animation: footerIllustrationFadeIn 0.4s ease-in-out 0.2s forwards;
}

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

/* FAQ Styles - Clean Design (old - keep for compatibility) */
.faq-toggle-clean {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s ease-in-out;
}

.faq-toggle-clean:hover {
  opacity: 0.7;
}

.faq-icon-clean {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1;
  user-select: none;
}

.faq-item-clean.active .faq-icon-clean {
  transform: rotate(45deg);
  opacity: 0.7;
}

.faq-content-clean {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  overflow: hidden;
}

.faq-item-clean.active .faq-content-clean {
  max-height: 600px;
  opacity: 1;
}

/* Old FAQ Styles - Keep for backward compatibility */
.faq-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.faq-icon-container {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  border: 1px solid #000;
  background-color: transparent;
  transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
  width: 1.5rem;
  height: 0.125rem;
  border-radius: 0.0625rem;
  border: none;
  background-color: #000;
}

.faq-content {
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}

.faq-item.active .faq-content {
  max-height: 500px;
}

/* Benefits Section - Refined Design */
.benefits-section-refined {
  min-height: 60vh;
}

/* Benefit Tabs - Refined Navigation */
.benefit-tab-refined {
  font-family: 'DM Sans', sans-serif;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  position: relative;
  transition: all 0.3s ease-in-out;
  opacity: 0.7;
}

.benefit-tab-refined:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Inactive State */
.benefit-tab-number {
  font-size: 36px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #C7C7C7;
  text-transform: lowercase;
  transition: color 0.3s ease;
}

.benefit-tab-label {
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  font-weight: 400;
  color: #C7C7C7;
  text-transform: lowercase;
  transition: color 0.3s ease;
}

/* Active State */
.benefit-tab-refined.active {
  opacity: 1;
}

.benefit-tab-refined.active .benefit-tab-number {
  color: var(--accent-green);
}

.benefit-tab-refined.active .benefit-tab-label {
  color: #000;
}

/* Underline - Animated with scaleX and opacity */
.benefit-tab-underline {
  width: 100%;
  height: 2px;
  background-color: var(--accent-green);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
  align-self: flex-start;
}

.benefit-tab-refined.active .benefit-tab-underline {
  transform: scaleX(1);
  opacity: 1;
}

/* Hover State - Faint underline and raised opacity */
.benefit-tab-refined:hover {
  opacity: 1;
}

.benefit-tab-refined:hover .benefit-tab-number,
.benefit-tab-refined:hover .benefit-tab-label {
  color: #000;
}

.benefit-tab-refined:hover .benefit-tab-underline {
  transform: scaleX(0.5);
  opacity: 0.3;
}

.benefit-tab-refined.active:hover .benefit-tab-underline {
  transform: scaleX(1);
  opacity: 1;
}

/* Benefit Card - Left Illustration / Right Text */
.benefit-card-refined {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* Mobile: Image first, then text below */
.benefit-card-refined > .benefit-illustration-container {
  order: 1;
  width: 100%;
}

.benefit-card-refined > .benefit-text-container {
  order: 2;
  width: 100%;
}

@media (min-width: 1024px) {
  .benefit-card-refined {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    gap: 6rem;
    align-items: center;
  }
  
  .benefit-card-refined > .benefit-illustration-container {
    order: unset;
    grid-row: 1;
    width: auto;
  }
  
  .benefit-card-refined > .benefit-text-container {
    order: unset;
    grid-row: 1;
    width: auto;
  }
}

/* Illustration Container */
.benefit-illustration-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.benefit-illustration-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .benefit-illustration-wrapper {
    width: 313px;
    height: 313px;
  }
}

/* Subtle gradient behind illustration */
.benefit-illustration-wrapper::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(4, 139, 94, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.benefit-illustration {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.03));
  opacity: 0;
  transform: scale(0.98) translateY(-14px);
  animation: benefitIllustrationFadeIn 0.4s ease-in-out forwards;
}

@keyframes benefitIllustrationFadeIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(-14px);
  }
}

/* Text Container - Vertically Centered to Illustration */
.benefit-text-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .benefit-text-container {
    justify-content: flex-start;
    text-align: left;
  }
}

.benefit-text-content {
  max-width: 45ch;
  opacity: 0;
  transform: translateY(10px);
  animation: benefitTextFadeIn 0.4s ease-in-out 0.1s forwards;
}

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

/* Typography Hierarchy */
.benefit-headline {
  font-family: 'Crimson Text', serif;
  font-size: 1.375rem;
  line-height: 1.4;
  font-weight: 400;
  color: #000;
  text-transform: lowercase;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .benefit-headline {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .benefit-headline {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }
}

.benefit-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  font-weight: 300;
  color: #000;
  opacity: 0.6;
  text-transform: lowercase;
}

@media (min-width: 640px) {
  .benefit-body {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .benefit-body {
    font-size: 1.0625rem;
  }
}

/* Content transition classes for JavaScript */
.benefit-content-transitioning .benefit-illustration {
  animation: benefitContentOut 0.3s ease-out forwards;
}

.benefit-content-transitioning .benefit-text-content {
  animation: benefitContentOut 0.3s ease-out forwards;
}

@keyframes benefitContentOut {
  to {
    opacity: 0;
    transform: scale(0.98) translateY(5px);
  }
}

/* Old Benefit Tabs - Keep for backward compatibility */
.benefit-tab {
  font-family: 'DM Sans', sans-serif;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: all 0.3s ease-in-out;
  transform: scale(0.95);
  opacity: 0.7;
  position: relative;
}

.benefit-tab.active {
  transform: scale(1.1) translateY(-4px);
  z-index: 10;
  opacity: 1;
}

.benefit-tab:not(.active):hover {
  opacity: 0.85;
  transform: scale(0.98);
}

/* Benefit Image and Content - Fixed positioning during transitions */
#benefit-image {
  transition: opacity 0.3s ease-out;
  will-change: opacity;
}

#benefit-content {
  transition: opacity 0.3s ease-out;
  will-change: opacity;
}

/* Mobile: Middle align text with image */
@media (max-width: 1023px) {
  #benefits > div:last-child > div:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
  }
  
  #benefit-content {
    text-align: center;
  }
}

/* Ensure benefit image container maintains dimensions */
.benefit-image-container {
  position: relative;
  min-height: 313px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-image-container img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 313px;
  max-height: 313px;
  object-fit: contain;
}

/* Layout Utilities */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Task Entry Component Styles */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.interactive-task-entry-fade-in {
  animation: fade-in 0.1s ease-out;
}

/* ContentEditable placeholder styling */
[contenteditable]:empty:before {
  content: attr(data-placeholder);
  color: rgba(156, 163, 175, 0.75);
  pointer-events: none;
  font-size: 1rem;
  letter-spacing: 0;
}

/* Mobile: reduce font size and letter spacing for compactness */
@media (max-width: 640px) {
  [contenteditable]:empty:before {
    font-size: 0.875rem;
    letter-spacing: -0.01em;
  }
}

/* Hide scrollbar for batch list */
.interactive-task-entry-batch-list::-webkit-scrollbar {
  display: none;
}

.interactive-task-entry-batch-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mascot positioning */
#task-entry-container {
  min-height: 200px;
}

@media (max-width: 1024px) {
  #task-entry-container img[alt="Todd Mascot"] {
    width: 6rem;
    height: 6rem;
  }
}

/* Task Floating Animation Styles */
@keyframes floatTaskUp {
  0% {
    transform: translateX(0) translateY(0) scale(0.9);
    opacity: 0;
  }
  3% {
    transform: translateX(0) translateY(-10px) scale(1);
    opacity: 1;
  }
  15% {
    transform: translateX(var(--target-x-offset, 0px)) translateY(-50px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(calc(var(--target-x-offset, 0px) + var(--drift-x, 0px))) translateY(-150vh) scale(0.95);
    opacity: 0;
  }
}

@keyframes floatTaskUpMobile {
  0% {
    transform: translateX(0) translateY(0) scale(0.9);
    opacity: 0;
  }
  3% {
    transform: translateX(0) translateY(-10px) scale(1);
    opacity: 1;
  }
  15% {
    transform: translateX(var(--target-x-offset, 0px)) translateY(-40px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(calc(var(--target-x-offset, 0px) + var(--drift-x, 0px))) translateY(-150vh) scale(0.95);
    opacity: 0;
  }
}

.task-floating-rectangle {
  position: fixed !important;
  will-change: transform, opacity;
  background: white !important;
  border: none !important;
  border-radius: 0.5rem;
  pointer-events: none;
  transform-origin: center center;
  animation: floatTaskUp 6.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  z-index: 99999 !important;
  margin: 0;
  padding: 0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  width: auto !important;
  min-width: 200px;
  max-width: 320px;
}

/* Tag chip floating style */
.tag-chip-floating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.375rem;
  border-width: 1px;
  padding: 0.125rem 0.5rem;
  height: 1.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  transition-property: color, background-color, border-color;
  transition-duration: 150ms;
  background-color: color-mix(in srgb, var(--tag-color, #3b82f6) 12%, transparent);
  border-color: color-mix(in srgb, var(--tag-color, #3b82f6) 25%, transparent);
  color: var(--tag-color, #3b82f6);
}

.task-floating-rectangle[data-side="left"] {
  transform-origin: left center;
}

.task-floating-rectangle[data-side="right"] {
  transform-origin: right center;
}

/* Side positioning handled by transform animation */

/* Mobile styles */
@media (max-width: 768px) {
  .task-floating-rectangle {
    animation: floatTaskUpMobile 5.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .task-floating-rectangle {
    animation: none;
    opacity: 0;
  }
}

/* Timer Badge Styles */
.timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.375rem;
  border-width: 1px;
  padding: 0.125rem 0.375rem;
  height: 1.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  transition-property: color, background-color, border-color;
  transition-duration: 150ms;
  cursor: pointer;
}

.timer-badge-running {
  border-color: #86efac; /* green-300 */
  background-color: #f0fdf4; /* green-50 */
  color: #166534; /* green-800 */
}

.timer-badge-running:hover {
  background-color: #dcfce7; /* green-100 */
}

.timer-badge-paused {
  border-color: #fdba74; /* orange-300 */
  background-color: #fff7ed; /* orange-50 */
  color: #9a3412; /* orange-800 */
}

.timer-badge-paused:hover {
  background-color: #ffedd5; /* orange-100 */
}

.timer-badge-completed {
  border-color: #86efac; /* green-300 */
  background-color: #f0fdf4; /* green-50 */
  color: #166534; /* green-800 */
}

.timer-badge-completed:hover {
  background-color: #dcfce7; /* green-100 */
}

.timer-badge-dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 9999px;
}

.timer-badge-dot-running {
  background-color: #22c55e; /* green-500 */
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.timer-badge-dot-paused {
  background-color: #f97316; /* orange-500 */
}

.timer-badge-dot-completed {
  background-color: #22c55e; /* green-500 */
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.timer-badge-inactive {
  color: #dc2626; /* red-600 */
  margin-left: 0.125rem;
}

/* Hero floating tasks hover effect */
.hero-floating-task {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  pointer-events: auto; /* Enable hover */
  position: absolute;
  max-width: calc(100% - 30px); /* Respect padding */
}

.hero-floating-task:hover {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1.05);
  z-index: 15 !important; /* Bring to front on hover */
}

/* Ensure hero floating tasks container respects boundaries */
#hero-floating-tasks {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 1023px) {
  #hero-floating-tasks {
    /* Hide floating tasks on mobile/tablet */
    display: none;
  }
}

/* Feature Bento Grid Styles - Grouped Layout */
.feature-bento-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .feature-bento-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem; /* 40px spacing between groups */
    width: 55%;
    max-width: 55%;
    margin: 0 auto;
  }
}

/* Feature Groups */
.feature-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.feature-group-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #999;
  opacity: 0.7;
  text-transform: lowercase;
  text-align: center;
  margin-bottom: 0.25rem;
}

/* Hide planning/execution labels on mobile */
@media (max-width: 767px) {
  .feature-group-label {
    display: none;
  }
}

/* Planning label: left-aligned on desktop */
@media (min-width: 768px) {
  .feature-group-planning .feature-group-label {
    text-align: left;
  }
}

/* Execution label: right-aligned on desktop, centered on mobile */
@media (min-width: 768px) {
  .feature-group-execution .feature-group-label {
    text-align: right;
  }
}

.feature-group-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  row-gap: 1.5rem;
}

/* Feature Cards */
.feature-bento-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  height: 50px;
  background: #ffffff;
  border: 1px solid #F1F1F1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  position: relative;
  touch-action: manipulation;
}

.feature-bento-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent-green);
  box-shadow: 0 2px 8px rgba(4, 139, 94, 0.15);
}

.feature-bento-card:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

/* Active State - Subtle green fill */
.feature-bento-card-active {
  border-color: var(--accent-green);
  background-color: #EAF6F0;
  box-shadow: 0 0 0 1px rgba(4, 139, 94, 0.15);
}

.feature-bento-card-icon {
  width: 1rem;
  height: 1rem;
  color: #6b7280;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.feature-bento-card-active .feature-bento-card-icon {
  color: var(--accent-green);
}

.feature-bento-card-title {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #4b5563;
  text-transform: lowercase;
  line-height: 1.3;
  text-align: center;
  transition: color 0.2s ease;
}

.feature-bento-card-active .feature-bento-card-title {
  color: var(--accent-green);
  font-weight: 600;
}

.feature-video-container {
  width: 55%;
  max-width: 55%;
  margin: 24px auto 0 auto;
  border-radius: 0.75rem;
  overflow: visible;
  padding: 0;
  position: relative;
  background: transparent;
  /* Aspect ratio set to 3:4 (portrait) for feature videos */
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.feature-video-container::before {
  display: none;
}

.feature-video-container::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgb(245, 158, 11) 0%, rgb(14, 165, 233) 100%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
}

/* Desktop: use wrapper for styling */
.feature-video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  z-index: 0;
}

.feature-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
}

/* Video and Description Fade Transitions */
.feature-video {
  transition: opacity 0.2s ease;
}

.feature-video-fade-out {
  opacity: 0;
}

.feature-video-description {
  transition: opacity 0.2s ease;
}

.feature-description-fade-out {
  opacity: 0;
}

/* Mobile: video directly in container, optimized for mobile */
@media (max-width: 767px) {
  #feature-bento-grid-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow-x: hidden;
    gap: 20px;
  }

  .feature-video-container {
    width: fit-content !important;
    max-width: calc(90vw - 30px) !important;
    margin: 20px auto 0 auto !important;
    overflow: visible;
    display: inline-block;
    padding: 0;
    background: transparent;
    border-radius: 0;
    position: relative;
    height: auto;
    line-height: 0;
  }

  /* Apply gradient border directly to video - container wraps video exactly */
  .feature-video-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(223, 236, 198, 0.4), rgba(4, 139, 94, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
  }

  /* Apply gradient blur shadow directly to video - container wraps video exactly */
  .feature-video-container::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%);
    filter: blur(3px);
    z-index: -1;
    pointer-events: none;
  }

  .feature-video-container video {
    width: auto !important;
    height: auto !important;
    max-width: calc(90vw - 30px) !important;
    max-height: 65vh !important;
    display: block;
    margin: 0 auto;
    background: transparent;
    object-fit: contain;
    border-radius: 0.75rem;
    position: relative;
    z-index: 0;
  }

  .feature-video-wrapper {
    display: none; /* Hide wrapper on mobile */
  }
  
  .feature-bento-grid {
    gap: 0.75rem;
    width: 100%;
    padding: 4px;
  }
  
  .feature-bento-card {
    min-height: 64px;
    padding: 0.75rem 0.5rem;
    gap: 0.375rem;
    border-radius: 0.5rem;
  }
  
  .feature-bento-card-icon {
    width: 1.125rem;
    height: 1.125rem;
  }
  
  .feature-bento-card-title {
    font-size: 0.6875rem;
    line-height: 1.4;
  }
  
  .feature-video-description {
    font-size: 0.875rem;
    margin: 20px auto 0 auto;
    padding: 0 16px;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: #4a5568;
    font-weight: 400;
    width: 95% !important;
    max-width: 95% !important;
  }
}

.feature-video-description {
  margin: 1.5rem auto 0 auto;
  padding: 0 1.5rem;
  font-size: 0.9375rem;
  color: #4a5568;
  text-align: center;
  text-transform: lowercase;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-weight: 400;
  width: 55%;
  max-width: 55%;
}

/* ============================================================================
   Typewriter Placeholder Effect
   ============================================================================ */

/* Placeholder fade-out transition for smooth rotation between prompts */
.placeholder-fade-out::before {
  opacity: 0 !important;
  transition: opacity 0.4s ease;
}


