@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,400;1,500;1,600&display=swap');

/* ============================================
   LegacyWill.me — Design System & Styles
   ============================================ */

/* --- Google Fonts --- */

/* --- CSS Custom Properties --- */
:root {
  /* Jade Horizon Palette */
  --jade-light: #B7E5BA;
  --jade-soft: #5CA87C;
  --jade-deep: #288760;
  --jade-dark: #1A5140;

  /* Derived Colors */
  --bg-gradient-start: #1A5140;
  --bg-gradient-end: #288760;
  --glass-bg: rgba(183, 229, 186, 0.06);
  --glass-border: rgba(183, 229, 186, 0.15);
  --glass-bg-hover: rgba(183, 229, 186, 0.10);
  --text-primary: #f0faf1;
  --text-secondary: rgba(240, 250, 241, 0.7);
  --text-muted: rgba(240, 250, 241, 0.45);
  --glow-color: rgba(183, 229, 186, 0.35);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: clamp(0.75rem, 1.5vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 1.8vw, 1rem);
  --fs-base: clamp(1rem, 2vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 2.2vw, 1.25rem);
  --fs-xl: clamp(1.25rem, 2.5vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 3vw, 2rem);
  --fs-3xl: clamp(2rem, 4vw, 3rem);
  --fs-4xl: clamp(2.5rem, 5vw, 4rem);
  --fs-hero: clamp(2.75rem, 6vw, 5rem);

  /* Spacing */
  --section-padding: clamp(5rem, 12vh, 10rem);
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Effects */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --blur-glass: 20px;
  --blur-heavy: 40px;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--jade-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* --- Grid Background --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(183, 229, 186, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 229, 186, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(40, 135, 96, 0.4), transparent),
              radial-gradient(ellipse 60% 50% at 80% 80%, rgba(26, 81, 64, 0.6), transparent),
              radial-gradient(ellipse 50% 40% at 20% 60%, rgba(92, 168, 124, 0.15), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Hide grid + gradient on login page */
body.login-active::before,
body.login-active::after {
  display: none;
}

body.login-active {
  background: var(--jade-dark);
}

/* --- Utility --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  position: relative;
  z-index: 1;
}

.container--narrow {
  max-width: var(--container-narrow);
}

section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

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

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

/* --- Glassmorphism Card --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth),
              background var(--transition-smooth),
              border-color var(--transition-smooth);
}

.glass:hover {
  transform: translateY(-6px);
  background: var(--glass-bg-hover);
  box-shadow: 0 20px 60px rgba(183, 229, 186, 0.08),
              0 0 40px rgba(183, 229, 186, 0.04);
  border-color: rgba(183, 229, 186, 0.25);
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all var(--transition-smooth);
}

.nav.scrolled {
  padding: 0.75rem 0;
  background: rgba(26, 81, 64, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(183, 229, 186, 0.08);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
}

.nav__logo svg {
  width: 36px;
  height: 36px;
}

.nav__logo-text span {
  color: var(--jade-light);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

/* Mobile: hide nav links by default; shown via .open class */
@media (max-width: 768px) {
  .nav__links {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 24, 0.99);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    z-index: 500;
    padding: 0;
    margin: 0;
    overflow-y: auto;
  }

  .nav__links.open {
    display: flex !important;
  }

  .nav__links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(183, 229, 186, 0.08);
  }

  .nav__links li:first-child {
    border-top: 1px solid rgba(183, 229, 186, 0.08);
  }

  .nav__links a {
    display: block;
    padding: 1.1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
  }

  .nav__links a::after {
    display: none;
  }

  .nav__links .nav__cta {
    display: inline-block;
    margin: 1.5rem auto 0;
    padding: 0.85rem 3rem;
    font-size: 1rem !important;
    background: var(--jade-light);
    color: var(--jade-dark) !important;
    border-radius: 100px;
    border-bottom: none;
  }

  .nav__links li:last-child {
    border: none;
  }

  /* Hamburger visible on mobile */
  .nav__toggle {
    display: flex !important;
    z-index: 600;
    position: relative;
  }

  .nav__toggle span {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  /* Animate to X when open */
  .nav__toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav__toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Nav always solid on mobile */
  .nav {
    padding: 0.9rem 0;
    background: rgba(15, 45, 30, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(183, 229, 186, 0.12);
  }

  /* Hide user avatar on mobile */
  .nav__user {
    display: none;
  }
}

.nav__links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-smooth);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--jade-light);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

.nav__links a:hover {
  color: var(--jade-light);
}

.nav__links a:hover::after {
  width: 100%;
}

/* Mobile override — after base styles to win cascade */
@media (max-width: 768px) {
  .nav__links a {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    padding: 1.1rem 2rem;
    display: block;
    width: 100%;
    text-align: center;
    position: static;
  }

  .nav__links a::after {
    display: none !important;
  }
}

.nav__cta {
  font-size: var(--fs-sm) !important;
  font-weight: 600 !important;
  color: var(--jade-dark) !important;
  background: var(--jade-light);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  transition: all var(--transition-smooth) !important;
  box-shadow: 0 0 0 0 rgba(183, 229, 186, 0);
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  background: #fff !important;
  box-shadow: 0 0 30px rgba(183, 229, 186, 0.3);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: var(--fs-base);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  color: var(--jade-dark);
  background: var(--jade-light);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  box-shadow: 0 0 0 0 rgba(183, 229, 186, 0),
              0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn--primary:hover {
  background: #fff;
  box-shadow: 0 0 50px rgba(183, 229, 186, 0.25),
              0 8px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.btn--primary:active {
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--jade-light);
  background: transparent;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  border: 1px solid rgba(183, 229, 186, 0.3);
}

.btn--ghost:hover {
  background: rgba(183, 229, 186, 0.08);
  border-color: var(--jade-light);
  box-shadow: 0 0 30px rgba(183, 229, 186, 0.1);
  transform: translateY(-3px);
}

.btn__arrow {
  transition: transform var(--transition-smooth);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ============================================
   SECTION: HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
}

.hero > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero__content {
  max-width: 640px;
  flex-shrink: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--jade-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(183, 229, 186, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(183, 229, 186, 0); }
}

.hero__heading {
  font-size: clamp(1.9rem, 7.5vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 100%;
  word-break: break-word;
}

.hero__heading em {
  font-style: normal;
  color: var(--jade-light);
  position: relative;
}

.hero__sub {
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Floating Glass Card */
.hero__float-card {
  width: 340px;
  flex-shrink: 0;
  padding: 2rem;
  animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__float-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(183, 229, 186, 0.1);
}

.hero__float-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(183, 229, 186, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__float-card__title {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.hero__float-card__subtitle {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.hero__float-card__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.hero__float-card__item .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(183, 229, 186, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__float-card__item .check svg {
  width: 12px;
  height: 12px;
  stroke: var(--jade-light);
}

/* ============================================
   SECTION: EMOTIONAL PROBLEM
   ============================================ */
.problem {
  padding: var(--section-padding) 0;
}

.problem__content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.problem__heading {
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.problem__heading em {
  font-style: normal;
  color: var(--jade-light);
}

.problem__text {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================
   SECTION: PRODUCT EXPLANATION
   ============================================ */
.features {
  padding: var(--section-padding) 0;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jade-light);
  margin-bottom: 1rem;
}

.section__label .line {
  width: 24px;
  height: 1px;
  background: var(--jade-light);
}

.section__heading {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section__sub {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jade-light), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover::before {
  opacity: 0.5;
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(183, 229, 186, 0.08);
  border: 1px solid rgba(183, 229, 186, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-smooth);
}

.feature-card:hover .feature-card__icon {
  background: rgba(183, 229, 186, 0.15);
  border-color: rgba(183, 229, 186, 0.25);
  box-shadow: 0 0 30px rgba(183, 229, 186, 0.1);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--jade-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-card__text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   SECTION: HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: var(--section-padding) 0;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.step-card {
  padding: 2.25rem 2rem;
  text-align: center;
  position: relative;
}

.step-card__number {
  font-size: var(--fs-4xl);
  font-weight: 900;
  color: rgba(183, 229, 186, 0.08);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color var(--transition-smooth);
}

.step-card:hover .step-card__number {
  color: rgba(183, 229, 186, 0.15);
}

.step-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(183, 229, 186, 0.08);
  border: 1px solid rgba(183, 229, 186, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all var(--transition-smooth);
}

.step-card:hover .step-card__icon {
  background: rgba(183, 229, 186, 0.15);
  box-shadow: 0 0 25px rgba(183, 229, 186, 0.15);
  border-color: rgba(183, 229, 186, 0.3);
}

.step-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--jade-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card__text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   SECTION: EXPERIENCE / UI MOCK
   ============================================ */
.experience {
  padding: var(--section-padding) 0;
}

.experience__header {
  text-align: center;
  margin-bottom: 4rem;
}

.experience__header .section__sub {
  margin: 0 auto;
}

.experience__mock {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.mock__window {
  background: rgba(183, 229, 186, 0.04);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(183, 229, 186, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mock__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(183, 229, 186, 0.08);
}

.mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(183, 229, 186, 0.2);
}

.mock__dot:first-child { background: rgba(255, 120, 120, 0.5); }
.mock__dot:nth-child(2) { background: rgba(255, 200, 80, 0.5); }
.mock__dot:nth-child(3) { background: rgba(120, 220, 120, 0.5); }

.mock__url {
  margin-left: 1rem;
  padding: 0.35rem 1rem;
  border-radius: 8px;
  background: rgba(183, 229, 186, 0.06);
  border: 1px solid rgba(183, 229, 186, 0.08);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-family: var(--font-family);
}

.mock__body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 380px;
}

.mock__sidebar {
  padding: 1.5rem;
  border-right: 1px solid rgba(183, 229, 186, 0.08);
}

.mock__sidebar-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.mock__sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
  cursor: default;
}

.mock__sidebar-item.active {
  background: rgba(183, 229, 186, 0.1);
  color: var(--jade-light);
}

.mock__sidebar-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.mock__main {
  padding: 2rem;
}

.mock__question-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--jade-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.mock__question {
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  max-width: 480px;
}

.mock__answer-area {
  background: rgba(183, 229, 186, 0.04);
  border: 1px solid rgba(183, 229, 186, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  min-height: 120px;
  position: relative;
}

.mock__answer-placeholder {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.mock__answer-cursor {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--jade-light);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.mock__toolbar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(183, 229, 186, 0.08);
}

.mock__progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.mock__progress-bar {
  width: 120px;
  height: 4px;
  border-radius: 4px;
  background: rgba(183, 229, 186, 0.1);
  overflow: hidden;
}

.mock__progress-fill {
  width: 35%;
  height: 100%;
  background: var(--jade-light);
  border-radius: 4px;
}

.mock__save-btn {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--jade-dark);
  background: var(--jade-light);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: default;
}

/* ============================================
   SECTION: EMOTIONAL ANCHOR
   ============================================ */
.anchor {
  padding: calc(var(--section-padding) * 1.3) 0;
}

.anchor__content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.anchor__quote {
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.anchor__quote em {
  font-style: normal;
  color: var(--jade-light);
}

.anchor__attribution {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.anchor__divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jade-light), transparent);
  margin: 2rem auto;
}

/* ============================================
   SECTION: PROFESSIONAL
   ============================================ */
.professional {
  padding: var(--section-padding) 0;
}

.professional__card {
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.professional__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(183, 229, 186, 0.08), transparent);
  pointer-events: none;
}

.professional__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(183, 229, 186, 0.15);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--jade-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.professional__heading {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.professional__text {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.professional__features {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.professional__feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.professional__feature svg {
  width: 18px;
  height: 18px;
  stroke: var(--jade-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   SECTION: FINAL CTA
   ============================================ */
.final-cta {
  padding: calc(var(--section-padding) * 1.2) 0;
  text-align: center;
}

.final-cta__content {
  max-width: 600px;
  margin: 0 auto;
}

.final-cta__heading {
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.final-cta__heading em {
  font-style: normal;
  color: var(--jade-light);
}

.final-cta__sub {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.final-cta__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 229, 186, 0.08), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(183, 229, 186, 0.08);
  position: relative;
  z-index: 1;
}

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

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: var(--fs-sm);
}

.footer__logo svg {
  width: 28px;
  height: 28px;
}

.footer__logo span {
  color: var(--jade-light);
}

.footer__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer__links a {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  transition: color var(--transition-smooth);
}

.footer__links a:hover {
  color: var(--jade-light);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__float-card {
    display: none;
  }

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

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

  .mock__body {
    grid-template-columns: 1fr;
  }

  .mock__sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .steps__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .professional__features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero__heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .anchor__quote {
    font-size: var(--fs-3xl);
  }
}
/* ============================================
   LegacyWill.me — Dashboard & App View Styles
   ============================================ */

/* --- Remove the cream background override on app-active --- */
/* The dark jade body background from style.css is what we want */
body.app-active {
  /* background stays dark jade from style.css — do NOT override with cream */
}

body.app-active::before,
body.app-active::after {
  /* Keep the dot-grid and glow overlay from style.css visible */
  display: block;
}

/* --- Authenticated Nav Mode --- */
.nav__user {
  display: none;
  position: relative;
  align-items: center;
}

.nav--app .nav__links {
  display: none !important;
}

.nav--app .nav__toggle {
  display: none !important;
}

.nav--app .nav__user {
  display: flex;
}

.nav--app {
  background: rgba(26, 81, 64, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(183, 229, 186, 0.08);
}

.nav__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(183, 229, 186, 0.1);
  border: 2px solid rgba(183, 229, 186, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, border-color 200ms ease;
}

.nav__avatar:hover {
  background: rgba(183, 229, 186, 0.15);
  border-color: rgba(183, 229, 186, 0.5);
}

.nav__avatar-initials {
  color: var(--jade-light);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-family);
  line-height: 1;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #112e20;
  border: 1px solid rgba(183, 229, 186, 0.15);
  border-radius: 12px;
  min-width: 180px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  transform: translateY(-4px);
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav__user.open .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.nav__dropdown-item:hover {
  background: rgba(183, 229, 186, 0.1);
  color: var(--text-primary);
}

.nav__dropdown-item--signout {
  color: rgba(183, 229, 186, 0.5);
  border-top: 1px solid rgba(183, 229, 186, 0.08);
  margin-top: 2px;
  padding-top: 10px;
}

/* --- Dashboard View Display --- */
#view-dashboard.view--active {
  display: block;
}

#view-signup.view--active,
#view-forgot.view--active,
#view-reset.view--active {
  display: flex;
}

/* ============================================
   DASHBOARD MAIN LAYOUT
   ============================================ */
.dashboard__main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 6.5rem 2.5rem 6rem;
  min-height: 100vh;
}

/* ============================================
   HERO GREETING CARD
   ============================================ */
.dashboard__hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 3rem;
  border-radius: var(--radius-md);
  margin-bottom: 3.5rem;
}

.dashboard__greeting-group {
  flex: 1;
}

.dashboard__greeting {
  font-family: var(--font-family);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.dashboard__greeting-sub {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  font-family: var(--font-family);
}

.dashboard__stats-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.dashboard__stat-pill {
  background: rgba(183, 229, 186, 0.06);
  border: 1px solid rgba(183, 229, 186, 0.12);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 90px;
}

.dashboard__stat-number {
  font-family: var(--font-family);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--jade-light);
  line-height: 1;
  display: block;
}

.dashboard__stat-label {
  font-family: var(--font-family);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
  white-space: nowrap;
}

/* ============================================
   NEW WILL BUTTON (header area)
   ============================================ */
.dashboard__new-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background: var(--jade-deep);
  color: #fff;
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition-smooth), transform 80ms ease;
  text-decoration: none;
  margin-bottom: 2rem;
}

.dashboard__new-btn:hover {
  background: var(--jade-soft);
  transform: translateY(-1px);
}

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

/* ============================================
   SECTION LABEL (the "Your Wills" heading)
   ============================================ */
.dashboard__section-label {
  margin-bottom: 1.5rem;
}

/* ============================================
   WILLS GRID
   ============================================ */
.dashboard__wills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ============================================
   WILL CARDS — GLASSMORPHIC
   ============================================ */
.will-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth);
  position: relative;
}

.will-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(183, 229, 186, 0.18);
  background: var(--glass-bg-hover);
}

/* --- Card Header (icon + status badge) --- */
.will-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.will-card__doc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(183, 229, 186, 0.08);
  border: 1px solid rgba(183, 229, 186, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jade-light);
  flex-shrink: 0;
}

/* --- Status Badges --- */
.will-card__status {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid;
}

.will-card__status--draft {
  background: rgba(183, 229, 186, 0.08);
  color: var(--text-muted);
  border-color: rgba(183, 229, 186, 0.1);
}

.will-card__status--in_progress {
  background: rgba(40, 135, 96, 0.2);
  color: var(--jade-light);
  border-color: rgba(40, 135, 96, 0.3);
}

.will-card__status--complete {
  background: rgba(183, 229, 186, 0.2);
  color: var(--jade-light);
  border-color: rgba(183, 229, 186, 0.3);
}

/* --- Card Title & Meta --- */
.will-card__title {
  font-family: var(--font-family);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.will-card__meta {
  font-family: var(--font-family);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* --- Progress Track --- */
.will-card__progress-track {
  width: 100%;
  height: 4px;
  background: rgba(183, 229, 186, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.will-card__progress-fill {
  height: 100%;
  background: var(--jade-light);
  border-radius: 2px;
  transition: width 600ms ease;
  width: 0;
}

.will-card__progress-text {
  font-family: var(--font-family);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* --- Module Chips --- */
.will-card__chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.will-chip {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(183, 229, 186, 0.1);
}

.will-chip--done {
  color: var(--jade-light);
  border-color: rgba(183, 229, 186, 0.25);
  background: rgba(183, 229, 186, 0.08);
}

.will-chip--active {
  color: var(--jade-soft);
  border-color: rgba(40, 135, 96, 0.2);
  background: transparent;
}

.will-chip--empty {
  color: var(--text-muted);
  background: transparent;
}

/* --- Card Actions --- */
.will-card__actions {
  position: relative;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(183, 229, 186, 0.07);
}

.will-card__action-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--jade-deep);
  color: #fff;
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 200ms ease;
  flex: 1;
  justify-content: center;
}

.will-card__action-btn:hover {
  background: var(--jade-soft);
}

/* --- Menu (⋯) Button --- */
.will-card__menu-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(183, 229, 186, 0.08);
  border: 1px solid rgba(183, 229, 186, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  font-family: var(--font-family);
  letter-spacing: 1px;
  transition: background 150ms ease, color 150ms ease;
  flex-shrink: 0;
  line-height: 1;
}

.will-card__menu-btn:hover {
  background: rgba(183, 229, 186, 0.15);
  color: var(--text-primary);
}

/* --- Dropdown Menu --- */
.will-card__dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #112e20;
  border: 1px solid rgba(183, 229, 186, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  min-width: 160px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.will-card__dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.will-card__dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: none;
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, color 150ms ease;
}

.will-card__dropdown-item:hover {
  background: rgba(183, 229, 186, 0.08);
  color: var(--text-primary);
}

.will-card__dropdown-item--danger {
  color: #e06060;
}

.will-card__dropdown-item--danger:hover {
  background: rgba(224, 96, 96, 0.1);
  color: #f08080;
}

.will-card__dropdown-divider {
  height: 1px;
  background: rgba(183, 229, 186, 0.1);
  margin: 0.3rem 0.4rem;
}

/* ============================================
   GHOST "+ NEW WILL" CARD
   ============================================ */
.will-card--new {
  border: 1.5px dashed rgba(183, 229, 186, 0.2) !important;
  background: transparent !important;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.will-card--new:hover {
  border-color: rgba(183, 229, 186, 0.4) !important;
  background: rgba(183, 229, 186, 0.04) !important;
  transform: translateY(-4px);
  box-shadow: none;
}

.will-card--new:hover .will-card__new-icon {
  border-color: rgba(183, 229, 186, 0.4);
  color: var(--jade-light);
}

.will-card__new-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px dashed rgba(183, 229, 186, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.will-card__new-label {
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-family: var(--font-family);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.lw-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.lw-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: #112e20;
  border: 1px solid rgba(183, 229, 186, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  pointer-events: all;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 300ms ease;
  min-width: 240px;
  max-width: 380px;
}

.lw-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.lw-toast--success { border-color: rgba(183, 229, 186, 0.3); }
.lw-toast--info    { border-color: rgba(92, 168, 124, 0.3); }
.lw-toast--error   { border-color: rgba(224, 96, 96, 0.3); }

.lw-toast__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.lw-toast--success .lw-toast__icon { color: var(--jade-light); }
.lw-toast--info    .lw-toast__icon { color: var(--jade-soft); }
.lw-toast--error   .lw-toast__icon { color: #e06060; }

/* ============================================
   MODAL OVERLAY
   ============================================ */
.lw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 200ms ease;
}

.lw-modal-overlay.open {
  opacity: 1;
}

/* --- Modal Box --- */
.lw-modal {
  background: #112e20;
  border: 1px solid rgba(183, 229, 186, 0.15);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.98);
  transition: transform 200ms ease;
  overflow: hidden;
}

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

.lw-modal--danger {
  border-color: rgba(224, 96, 96, 0.2);
}

/* --- Modal Header --- */
.lw-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid rgba(183, 229, 186, 0.08);
}

.lw-modal__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.lw-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(183, 229, 186, 0.06);
  border: 1px solid rgba(183, 229, 186, 0.1);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.lw-modal__close:hover {
  background: rgba(183, 229, 186, 0.12);
  color: var(--text-primary);
}

/* --- Modal Body --- */
.lw-modal__body {
  padding: 1.5rem 1.75rem;
}

.lw-modal__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.lw-modal__input {
  width: 100%;
  background: rgba(183, 229, 186, 0.06);
  border: 1.5px solid rgba(183, 229, 186, 0.15);
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  box-sizing: border-box;
}

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

.lw-modal__input:focus {
  border-color: var(--jade-deep);
  box-shadow: 0 0 0 3px rgba(40, 135, 96, 0.15);
}

.lw-modal__input.has-error {
  border-color: #e06060;
  box-shadow: 0 0 0 3px rgba(224, 96, 96, 0.1);
}

.lw-modal__hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-left: 0.5rem;
}

/* Delete-specific body */
.lw-modal__warning-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.lw-modal__danger-text {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.lw-modal__danger-name {
  color: var(--text-primary);
  font-weight: 700;
}

.lw-modal__danger-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.lw-modal__danger-sub strong {
  color: #e06060;
  font-weight: 600;
}

/* --- Modal Footer --- */
.lw-modal__footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.75rem 1.5rem;
  justify-content: flex-end;
  border-top: 1px solid rgba(183, 229, 186, 0.08);
}

.lw-modal__btn {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
  border: none;
}

.lw-modal__btn--cancel {
  background: rgba(183, 229, 186, 0.08);
  border: 1px solid rgba(183, 229, 186, 0.12);
  color: var(--text-secondary);
}

.lw-modal__btn--cancel:hover {
  background: rgba(183, 229, 186, 0.14);
  color: var(--text-primary);
}

.lw-modal__btn--primary {
  background: var(--jade-deep);
  color: #fff;
}

.lw-modal__btn--primary:hover {
  background: var(--jade-soft);
}

.lw-modal__btn--danger {
  background: rgba(224, 96, 96, 0.15);
  border: 1px solid rgba(224, 96, 96, 0.3);
  color: #e06060;
}

.lw-modal__btn--danger:hover {
  background: rgba(224, 96, 96, 0.25);
  color: #f08080;
}

/* ============================================
   PLACEHOLDER VIEWS (will-new, will, share, settings)
   ============================================ */
.placeholder-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.placeholder-view__heading {
  font-family: var(--font-family);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.placeholder-view__sub {
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.placeholder-view__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.placeholder-view__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 180ms ease, opacity 180ms ease;
}

.placeholder-view__btn--primary {
  background: var(--jade-deep);
  color: #fff;
}

.placeholder-view__btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.placeholder-view__btn--ghost {
  background: transparent;
  color: var(--jade-soft);
  border: 1px solid rgba(40, 135, 96, 0.3);
}

.placeholder-view__btn--ghost:hover {
  background: rgba(40, 135, 96, 0.06);
}

/* ============================================
   404 VIEW
   ============================================ */
.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.not-found__numeral {
  font-family: var(--font-family);
  font-size: clamp(48px, 15vw, 96px);
  font-weight: 700;
  color: rgba(183, 229, 186, 0.2);
  letter-spacing: -4px;
  line-height: 1;
}

.not-found__heading {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 16px;
}

.not-found__sub {
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--jade-light);
  margin-top: 8px;
}

.not-found__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--jade-deep);
  color: #fff;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 32px;
  transition: background 200ms ease;
}

.not-found__btn:hover {
  background: var(--jade-soft);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .dashboard__hero-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
  }

  .dashboard__stats-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
  }

  .dashboard__stat-pill {
    flex: 1 1 100px;
  }
}

@media (max-width: 768px) {
  .dashboard__main {
    padding: 5.5rem 1.25rem 4rem;
  }

  .dashboard__wills-grid {
    grid-template-columns: 1fr;
  }

  #view-signup .login__left,
  #view-forgot .login__left,
  #view-reset .login__left {
    display: none;
  }

  #view-signup .login__right,
  #view-forgot .login__right,
  #view-reset .login__right {
    width: 100%;
    padding: 2rem 24px;
    align-items: flex-start;
    padding-top: 3rem;
  }
}

@media (max-width: 600px) {
  .dashboard__main {
    padding-top: 5rem;
  }

  .dashboard__hero-card {
    padding: 1.5rem;
  }

  .dashboard__greeting {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .lw-toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .lw-toast {
    min-width: unset;
    max-width: unset;
  }
}

/* ============================================
   CONVERSATION VIEW — merged from conversation.css
   ============================================ */
/* ============================================
   LegacyWill.me — Conversation View Styles
   /will/new — Three-column immersive writing app
   ============================================ */

/* The entire view wrapper */
.convo {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* The view itself must fill full height */
#view-will-new.view--active {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  padding: 0;
}

/* ────────────────────────────────────────────
   CONVERSATION BAR (fixed internal top bar)
   ──────────────────────────────────────────── */
.convo__bar {
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  background: rgba(10, 30, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(183, 229, 186, 0.12);
  box-shadow: 0 1px 0 rgba(183, 229, 186, 0.04);
  z-index: 50;
}

.convo__bar-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 180ms ease;
  text-decoration: none;
}
.convo__bar-logo:hover { opacity: 1; }

.convo__bar-title-wrap {
  flex-grow: 1;
  max-width: 420px;
}

.convo__bar-title {
  width: 100%;
  max-width: 380px;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid transparent;
  padding: 0.25rem 0.1rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  outline: none;
  transition: border-bottom-color 160ms ease;
  cursor: text;
}
.convo__bar-title:hover  { border-bottom-color: rgba(183, 229, 186, 0.2); }
.convo__bar-title:focus  { border-bottom-color: rgba(183, 229, 186, 0.45); }
.convo__bar-title::placeholder { color: var(--text-muted); }

.convo__bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.convo__save-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  min-width: 60px;
}

.convo__save-icon { flex-shrink: 0; }

.convo__save-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes savePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.convo__save-dot--saving {
  background: var(--jade-light);
  animation: savePulse 1s ease-in-out infinite;
}

.convo__bar-exit {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(183, 229, 186, 0.06);
  border: 1px solid rgba(183, 229, 186, 0.1);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.convo__bar-exit:hover {
  background: rgba(183, 229, 186, 0.12);
  color: var(--text-primary);
}

/* ────────────────────────────────────────────
   THREE-COLUMN BODY LAYOUT
   ──────────────────────────────────────────── */
.convo__body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 60px);
}

/* ────────────────────────────────────────────
   LEFT SIDEBAR
   ──────────────────────────────────────────── */
.convo__sidebar {
  width: 248px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(12, 38, 26, 0.7);
  border-right: 1px solid rgba(183, 229, 186, 0.1);
  padding: 1.5rem 1rem 1rem;
  overflow-y: auto;
}

.convo__sidebar-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0.5rem;
  margin-bottom: 0.75rem;
}

.convo__modules {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-grow: 1;
}

/* Module item */
.module-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  user-select: none;
  outline: none;
}
.module-item:focus-visible {
  box-shadow: 0 0 0 2px var(--jade-deep);
}

.module-item__icon {
  flex-shrink: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 160ms ease;
}

.module-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-grow: 1;
  min-width: 0;
}

.module-item__name {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 160ms ease;
}

.module-item__count {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color 160ms ease;
}

.module-item__check {
  flex-shrink: 0;
  color: var(--jade-light);
  margin-left: auto;
}

/* State variants */
.module-item--active {
  background: rgba(183, 229, 186, 0.12);
  border: 1px solid rgba(183, 229, 186, 0.15);
  box-shadow: inset 0 0 0 1px rgba(183, 229, 186, 0.05);
}
.module-item--active .module-item__icon {
  color: var(--jade-light);
}
.module-item--active .module-item__name {
  color: var(--jade-light);
  font-weight: 600;
}
.module-item--active .module-item__count {
  color: var(--jade-soft);
}

.module-item--done .module-item__name {
  color: var(--text-secondary);
}
.module-item--done .module-item__icon {
  color: var(--jade-soft);
}

.module-item--locked {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(20%);
}

.module-item--available:hover,
.module-item--done:hover {
  background: rgba(183, 229, 186, 0.07);
  cursor: pointer;
}

/* Sidebar footer */
.convo__sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(183, 229, 186, 0.1);
}

.convo__overall-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.convo__overall-label {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--jade-light);
  letter-spacing: -0.02em;
  line-height: 1;
}

.convo__overall-sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.convo__overall-track {
  height: 4px;
  background: rgba(183, 229, 186, 0.1);
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.convo__overall-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--jade-deep), var(--jade-light));
  border-radius: 4px;
  transition: width 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 8px rgba(183, 229, 186, 0.3);
}

/* ────────────────────────────────────────────
   CENTRE: ACTIVE CONVERSATION
   ──────────────────────────────────────────── */
.convo__main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: rgba(20, 55, 38, 0.4);
  background-image: radial-gradient(
    circle,
    rgba(183, 229, 186, 0.04) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  background-position: 0 0;
}

/* Module + question counter strip */
.convo__module-meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  background: rgba(183, 229, 186, 0.03);
  border-bottom: 1px solid rgba(183, 229, 186, 0.07);
}

.convo__module-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade-light);
  opacity: 0.85;
}

.convo__module-counter {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Question area */
.convo__question-wrap {
  flex-shrink: 0;
  padding: 1.75rem 2rem 1.25rem 2rem;
  margin: 0 2rem;
  border-left: 3px solid rgba(183, 229, 186, 0.25);
  margin: 0;
  padding: 1.75rem 2rem 1.25rem 2.25rem;
  border-left: 3px solid rgba(183, 229, 186, 0.25);
  margin-left: 2rem;
  margin-right: 2rem;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.convo__question {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: #e8f5ea;
  line-height: 1.45;
  letter-spacing: 0.015em;
  text-shadow: 0 0 40px rgba(183, 229, 186, 0.08);
  transition: opacity 200ms ease, transform 200ms ease;
}

/* Conversation history */
.convo__history {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem 2rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

.convo__history::-webkit-scrollbar        { width: 4px; }
.convo__history::-webkit-scrollbar-track  { background: transparent; }
.convo__history::-webkit-scrollbar-thumb  { background: rgba(183,229,186,0.15); border-radius: 4px; }

.convo__history-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

/* Message bubbles */
.convo-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.convo-msg--user {
  flex-direction: row-reverse;
}

.convo-msg__avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(183, 229, 186, 0.1);
  border: 1px solid rgba(183, 229, 186, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.convo-msg__bubble {
  max-width: 78%;
}

.convo-msg__text {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Assistant bubble */
.convo-msg--assistant .convo-msg__bubble {
  background: rgba(183, 229, 186, 0.055);
  border: 1px solid rgba(183, 229, 186, 0.12);
  border-radius: 4px 16px 16px 16px;
  padding: 1rem 1.25rem;
  box-shadow: inset 0 1px 0 rgba(183, 229, 186, 0.06);
}

.convo-msg--assistant .convo-msg__text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* User bubble */
.convo-msg--user .convo-msg__bubble {
  background: rgba(40, 135, 96, 0.22);
  border: 1px solid rgba(40, 135, 96, 0.35);
  border-radius: 16px 4px 16px 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 12px rgba(40, 135, 96, 0.1);
}

.convo-msg--user .convo-msg__text {
  color: rgba(240, 250, 241, 0.88);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Streaming response */
.convo__stream-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0 2rem 1rem;
}

.convo__stream-avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(183, 229, 186, 0.1);
  border: 1px solid rgba(183, 229, 186, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

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

.convo__stream-bubble {
  background: rgba(183, 229, 186, 0.055);
  border: 1px solid rgba(183, 229, 186, 0.14);
  border-radius: 4px 16px 16px 16px;
  padding: 1rem 1.25rem;
  max-width: 78%;
  box-shadow: 0 0 20px rgba(183, 229, 186, 0.04);
  animation: bubbleAppear 200ms ease forwards;
}

.convo__stream-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-wrap;
  display: inline;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.convo__stream-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--jade-light);
  margin-left: 2px;
  vertical-align: text-bottom;
  border-radius: 1px;
  animation: cursorBlink 900ms step-end infinite;
}

/* ── INPUT AREA ── */
.convo__input-area {
  flex-shrink: 0;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid rgba(183, 229, 186, 0.08);
}

.convo__input-shell {
  background: rgba(10, 30, 20, 0.6);
  border: 1.5px solid rgba(183, 229, 186, 0.16);
  border-radius: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.convo__input-shell:focus-within {
  border-color: rgba(183, 229, 186, 0.38);
  box-shadow:
    0 0 0 3px rgba(40, 135, 96, 0.12),
    0 4px 20px rgba(0, 0, 0, 0.2);
}

.convo__textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.9rem 1.25rem 0.5rem;
  font-family: var(--font-family);
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.7;
  resize: none;
  outline: none;
  min-height: 56px;
  max-height: 160px;
  overflow-y: auto;
  box-sizing: border-box;
}

.convo__textarea::placeholder {
  color: rgba(183, 229, 186, 0.3);
  font-style: italic;
}

.convo__textarea::-webkit-scrollbar       { width: 4px; }
.convo__textarea::-webkit-scrollbar-thumb { background: rgba(183,229,186,0.2); border-radius: 4px; }

.convo__input-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.9rem 0.6rem 1.25rem;
  border-top: 1px solid rgba(183, 229, 186, 0.07);
  background: rgba(183, 229, 186, 0.02);
}

.convo__char-count {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.convo__send-btn {
  background: var(--jade-deep);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(40, 135, 96, 0.3);
  transition: background 160ms ease, box-shadow 160ms ease, transform 80ms ease;
}
.convo__send-btn:hover:not(:disabled) {
  background: #2d9b6e;
  box-shadow: 0 4px 16px rgba(40, 135, 96, 0.4);
}
.convo__send-btn:active:not(:disabled) { transform: scale(0.93); }
.convo__send-btn:disabled {
  background: rgba(40, 135, 96, 0.25);
  box-shadow: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.convo__input-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-left: 0.25rem;
}

kbd {
  background: rgba(183, 229, 186, 0.1);
  border: 1px solid rgba(183, 229, 186, 0.18);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.65rem;
  font-family: var(--font-family);
}

/* ────────────────────────────────────────────
   RIGHT: DOCUMENT PREVIEW PANEL
   ──────────────────────────────────────────── */
.convo__preview {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(18, 50, 34, 0.55);
  border-left: 1px solid rgba(183, 229, 186, 0.08);
  overflow: hidden;
  transition: width 280ms ease;
}

.convo__preview-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(183, 229, 186, 0.07);
  background: rgba(183, 229, 186, 0.02);
}

.convo__preview-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.convo__preview-toggle {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color 150ms ease, background 150ms ease;
}
.convo__preview-toggle:hover {
  color: var(--text-primary);
  background: rgba(183, 229, 186, 0.07);
}

.convo__preview-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.convo__preview-body::-webkit-scrollbar       { width: 3px; }
.convo__preview-body::-webkit-scrollbar-thumb { background: rgba(183,229,186,0.1); border-radius: 3px; }

/* Document preview content */
.doc-preview__cover {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(183, 229, 186, 0.08);
}

.doc-preview__cover-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.doc-preview__cover-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.3;
}

.doc-preview__section {
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(183, 229, 186, 0.06);
}
.doc-preview__section:last-child { border-bottom: none; }

.doc-preview__section-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 0.88rem;
  font-weight: 500;
  font-style: normal;
  color: var(--jade-soft);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.3;
}

.doc-preview__section--complete .doc-preview__section-title {
  color: var(--jade-light);
}

.doc-preview__section--active .doc-preview__section-title {
  color: var(--jade-light);
}

.doc-preview__section--empty .doc-preview__section-title {
  color: rgba(183, 229, 186, 0.25);
  font-weight: 400;
}

.doc-preview__check {
  color: var(--jade-light);
  font-family: var(--font-family);
  font-size: 0.7rem;
}

/* Pulsing dot for active section */
@keyframes previewPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.doc-preview__pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade-deep);
  animation: previewPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.doc-preview__section--active .doc-preview__section-title {
  color: var(--jade-light);
}

.doc-preview__excerpt {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.65;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}

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

/* ────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .convo__preview { display: none; }
}

@media (max-width: 820px) {
  .convo__sidebar { display: none; }
  .convo__bar-title-wrap { max-width: 200px; }
  .convo__module-meta,
  .convo__question-wrap,
  .convo__history,
  .convo__stream-wrap,
  .convo__input-area { padding-left: 1.25rem; padding-right: 1.25rem; }
  .convo__question { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .convo__bar { padding: 0 1rem; }
  .convo__save-text { display: none; }
  .convo__question { font-size: 1.1rem; }
}

/* ============================================================
   MOBILE RESPONSIVE — Complete Fix
   Covers: hero, sections, animations, layout
   (Nav/hamburger styles are defined inline near .nav__links above)
   ============================================================ */

/* ── 1. PREVENT AUTO-ZOOM: ensure no element forces overflow ── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ── 2. HERO — Fix zoom, overflow, float card ── */
@media (max-width: 900px) {
  .hero > .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .hero__float-card {
    display: none;
  }

  .hero__content {
    max-width: 100%;
    flex-shrink: 1;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    padding-top: 5rem;
    padding-bottom: 3rem;
    align-items: flex-start;
  }

  .hero > .container {
    flex-direction: column;
    gap: 2rem;
  }

  .hero__content {
    max-width: 100%;
    width: 100%;
  }

  .hero__sub {
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    max-width: 100%;
  }

  .hero__badge {
    font-size: 0.7rem;
    margin-bottom: 1.25rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

/* ── 3. SECTIONS — General layout fixes ── */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(3rem, 8vh, 6rem);
  }

  .container {
    padding: 0 1.25rem;
  }

  .section__heading {
    font-size: clamp(1.6rem, 5.5vw, 2.5rem);
  }

  .problem__heading {
    font-size: clamp(1.75rem, 6vw, 2.75rem);
    text-align: left;
  }

  .problem__text {
    text-align: left;
    font-size: var(--fs-base);
    max-width: 100%;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .steps__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .steps__grid {
    grid-template-columns: 1fr;
  }
}

/* ── 4. EXPERIENCE MOCK ── */
@media (max-width: 768px) {
  .mock__body {
    grid-template-columns: 1fr;
  }

  .mock__sidebar {
    display: none;
  }

  .mock__question {
    font-size: var(--fs-xl);
  }
}

/* ── 5. PROFESSIONALS / TESTIMONIALS / PRICING GRID ── */
@media (max-width: 768px) {
  .professionals__grid,
  .testimonials__grid,
  .pricing__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ── 6. SCROLL REVEAL — snappier on mobile ── */
@media (max-width: 768px) {
  .reveal {
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
}

/* ── 7. NAV--APP MODE (dashboard/app views) ── */
@media (max-width: 768px) {
  .nav--app .nav__toggle {
    display: none !important;
  }
}

/* ── 8. FOOTER ── */
@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer__copy {
    text-align: center;
  }
}

/* ── 9. CTA SECTION ── */
@media (max-width: 768px) {
  .cta__heading {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .cta .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ── 10. DASHBOARD — mobile padding fixes ── */
@media (max-width: 480px) {
  .dashboard__main {
    padding: 5rem 1rem 3rem;
  }

  .dashboard__wills-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ── 11. SAFE-AREA INSETS for notched phones ── */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .nav__inner {
      padding-left: max(1.5rem, env(safe-area-inset-left));
      padding-right: max(1.5rem, env(safe-area-inset-right));
    }
  }
}

/* ============================================================
   MOBILE MENU OVERLAY — standalone, outside nav stacking ctx
   backdrop-filter on <nav> would trap fixed children, so this
   element lives as a body-level sibling of <nav> instead.
   ============================================================ */

.mobile-menu {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  /* Hidden by default */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #0c2a1a;
    overflow-y: auto;
    /* Start off-screen to the right, slide in when open */
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Critical: no backdrop-filter here, or it would trap children too */
  }

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

  .mobile-menu__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 5rem 2rem 3rem;
    margin: 0;
    gap: 0;
  }

  .mobile-menu__links li {
    border-bottom: 1px solid rgba(183, 229, 186, 0.1);
  }

  .mobile-menu__links li:first-child {
    border-top: 1px solid rgba(183, 229, 186, 0.1);
  }

  .mobile-menu__links a {
    display: block;
    padding: 1.1rem 0;
    font-family: var(--font-family);
    font-size: 1.25rem;
    font-weight: 600;
    color: #f0faf1;
    text-decoration: none;
    text-align: center;
    letter-spacing: -0.01em;
    transition: color 200ms ease;
  }

  .mobile-menu__links a:hover {
    color: #B7E5BA;
  }

  /* "Get Started" CTA — styled differently */
  .mobile-menu__links li:last-child {
    border: none;
    margin-top: 2rem;
    text-align: center;
  }

  .mobile-menu__links li:last-child a {
    display: inline-block;
    background: #B7E5BA;
    color: #1A5140;
    padding: 0.9rem 2.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    width: auto;
  }

  .mobile-menu__links li:last-child a:hover {
    background: #fff;
    color: #1A5140;
  }

  /* Hamburger toggle — ensure it's above the overlay */
  .nav__toggle {
    display: flex !important;
    position: relative;
    z-index: 10000; /* above mobile-menu z-index: 9999 */
  }

  .nav__toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav__toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
