/* ==========================================================================
   TAPMEONLINE.COM — DESIGN SYSTEM & STYLESHEET
   Aesthetics: Warm Editorial, Organic Earth Tones, Tactile, Wholesome & Modern
   ========================================================================== */

:root {
  /* Core Brand Colors */
  --bg-main: #FAF8F5;            /* Warm linen */
  --bg-surface: #FFFFFF;         /* Crisp card background */
  --bg-subtle: #F4EFEB;          /* Soft oatmeal / sand */
  --bg-accent-soft: #FBF2EC;     /* Warm terracotta blush */
  --bg-sage-soft: #EEF3ED;       /* Harmonious sage tint */

  /* Text & Ink */
  --text-primary: #1F1A17;       /* Deep espresso */
  --text-secondary: #6B625B;     /* Muted earth gray */
  --text-tertiary: #968D86;      /* Subtle caption stone */
  --text-inverse: #FFFFFF;

  /* Brand Accents */
  --terracotta: #C86D51;         /* Primary "Tap" accent */
  --terracotta-hover: #B45B40;
  --terracotta-glow: rgba(200, 109, 81, 0.25);
  
  --sage: #7E8F7A;               /* Wavelength harmony */
  --sage-dark: #5B6E57;
  --sage-glow: rgba(126, 143, 122, 0.25);

  --amber-sun: #E59866;
  --warm-gold: #D4A373;
  --border-light: #EBE4DC;
  --border-focus: #C86D51;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  /* Shadows & Elevation */
  --shadow-sm: 0 2px 8px rgba(31, 26, 23, 0.04);
  --shadow-md: 0 6px 20px rgba(31, 26, 23, 0.06);
  --shadow-lg: 0 14px 40px rgba(31, 26, 23, 0.09);
  --shadow-card-hover: 0 16px 44px rgba(200, 109, 81, 0.12);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-announcement {
  background: var(--text-primary);
  color: #F8F5F0;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  text-align: center;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.announcement-link {
  color: var(--amber-sun);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url('assets/app-icon-squircle.png') no-repeat center / contain;
  border-radius: 9px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-mark .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 9px;
}

.logo-link:hover .logo-mark {
  transform: rotate(180deg);
}

.logo-mark .mark-inner {
  display: none !important;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: baseline;
}

.logo-text .brand-tap {
  color: var(--terracotta);
}

.logo-text .brand-me {
  color: var(--text-primary);
}

.logo-text .brand-online,
.logo-text > span:last-child {
  color: var(--terracotta);
  font-style: italic;
  font-weight: 400;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  border-left: 1px solid var(--border-light);
  padding-left: 0.75rem;
  display: none;
}

@media (min-width: 900px) {
  .brand-tagline { display: inline-block; }
}

/* Nav Tabs */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}

.nav-btn {
  background: none;
  border: none;
  padding: 0.45rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  color: var(--text-primary);
}

.nav-btn.active {
  background: var(--bg-surface);
  color: var(--terracotta);
  box-shadow: var(--shadow-sm);
}

/* Header Quota Pill */
.header-action-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quota-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  box-shadow: var(--shadow-sm);
}

.tap-dots-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  transition: var(--transition-fast);
}

.tap-dot.active {
  background: var(--terracotta);
  box-shadow: 0 0 5px var(--terracotta-glow);
}

.quota-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

.quota-dot.pulse {
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 109, 81, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(200, 109, 81, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 109, 81, 0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: #FFF;
  box-shadow: 0 4px 14px var(--terracotta-glow);
}

.btn-primary:hover {
  background: var(--terracotta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(200, 109, 81, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-tertiary);
  transform: translateY(-1px);
}

.btn-light {
  background: #FFF;
  color: var(--terracotta);
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: #FFF;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFF;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

/* ==========================================================================
   TAB VIEW TOGGLING
   ========================================================================== */
.tab-view {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-view.active {
  display: block;
}

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

/* ==========================================================================
   HERO SECTION (LANDING PAGE)
   ========================================================================== */
.hero-section {
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(200, 109, 81, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(126, 143, 122, 0.08) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

/* ==========================================================================
   SMART LOCATION COHORT TARGET CARD (HOMEPAGE)
   ========================================================================== */
.smart-cohort-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 242, 0.92));
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(200, 109, 81, 0.32);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px -8px rgba(31, 24, 20, 0.09), 0 0 0 1px rgba(255, 255, 255, 0.7);
  position: relative;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.smart-cohort-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -6px rgba(31, 24, 20, 0.13);
}
.smart-cohort-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}
.smart-cohort-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}
.pulse-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2E7D32;
  box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
  animation: pulseGreen 1.8s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46, 125, 50, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}
.smart-cohort-dismiss-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  transition: color var(--transition-fast);
}
.smart-cohort-dismiss-btn:hover {
  color: var(--text-primary);
}
.smart-cohort-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.smart-cohort-info {
  flex: 1;
  min-width: 220px;
}
.smart-cohort-city-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.smart-cohort-stats-line {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.smart-cohort-bar-wrapper {
  background: rgba(31, 24, 20, 0.08);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  max-width: 280px;
}
.smart-cohort-bar-fill {
  background: linear-gradient(90deg, var(--terracotta), #E07A5F);
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.smart-cohort-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.smart-city-switch-link {
  font-size: 0.8rem;
  color: var(--terracotta);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.smart-city-switch-drawer {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(31, 24, 20, 0.08);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.smart-city-chip {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.smart-city-chip:hover, .smart-city-chip.active {
  background: var(--terracotta);
  color: #FFF;
  border-color: var(--terracotta);
}

.editorial-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  color: var(--terracotta);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.eyebrow-leaf {
  font-size: 0.95rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}

.hero-subhead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.avatar-stack {
  display: flex;
}

.mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #FFF;
  object-fit: cover;
  margin-left: -8px;
}

.mini-avatar:first-child { margin-left: 0; }

.proof-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Hero Floating Card */
.hero-visual-col {
  position: relative;
}

.hero-card-floating {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

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

.floating-badge {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.floating-badge.top-left {
  top: -14px;
  left: 14px;
  color: var(--sage-dark);
}

.floating-badge.bottom-right {
  bottom: -14px;
  right: 14px;
  color: var(--terracotta);
}

.floating-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.hero-card-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 290px;
  background: #EAE3DA;
}

.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s ease;
}

.hero-card-img.stage-0 { filter: blur(34px) brightness(1.08); }
.hero-card-img.stage-1 { filter: blur(20px) brightness(1.05); }
.hero-card-img.stage-2 { filter: blur(9px) brightness(1.02); }
.hero-card-img.stage-3 { filter: blur(0px) brightness(1.0); transform: scale(1.02); }

.hero-blur-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(31, 26, 23, 0.75);
  backdrop-filter: blur(8px);
  color: #FFF;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.hero-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-card-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.hero-card-role {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-rhythm-badge {
  background: var(--bg-sage-soft);
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
}

/* 3-Step Progress Track */
.hero-step-bar-box,
.card-step-bar-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.step-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.step-bar-meta strong {
  color: var(--terracotta);
}

.step-progress-track {
  display: flex;
  gap: 4px;
  height: 6px;
  background: var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  padding: 1px;
}

.step-segment {
  flex: 1;
  background: rgba(200, 109, 81, 0.15);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.step-segment.active {
  background: var(--terracotta);
}

.hero-daylight-timeline {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.hero-daylight-timeline .timeline-nodes {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.hero-daylight-timeline .timeline-nodes .peak-text {
  color: var(--terracotta);
  font-weight: 700;
}

.hero-daylight-timeline .timeline-track {
  height: 6px;
  background: var(--border-light);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.hero-daylight-timeline .timeline-glow-window {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #E59866, var(--terracotta));
  border-radius: 4px;
}

.hero-prompt-quote {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.5;
  border-left: 2.5px solid var(--terracotta);
  padding-left: 0.85rem;
}

.hero-tap-action-btn {
  background: var(--terracotta);
  color: #FFF;
  border: none;
  padding: 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px var(--terracotta-glow);
}

.hero-tap-action-btn:hover {
  background: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 109, 81, 0.4);
}

/* ==========================================================================
   THE 3-TAP REVEAL JOURNEY (POSITIVE, EDUCATIONAL)
   ========================================================================== */
.reveal-journey-section {
  padding: 4.5rem 0;
  background: var(--bg-subtle);
}

.section-badge-center {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.reveal-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.reveal-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.reveal-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}

.step-number-pill {
  display: inline-block;
  align-self: flex-start;
  background: var(--bg-accent-soft);
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.reveal-step-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.reveal-step-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.step-unlock-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage-dark);
  background: var(--bg-sage-soft);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-block;
}

/* ==========================================================================
   THE 3 PILLARS
   ========================================================================== */
.pillars-section {
  padding: 4.5rem 0;
}

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

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}

.pillar-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--bg-subtle);
  font-weight: 700;
}

.pillar-icon-box {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pillar-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   RHYTHM SAMPLER (QUIZ PREVIEW)
   ========================================================================== */
.rhythm-sampler-section {
  padding: 4.5rem 0;
  background: var(--bg-accent-soft);
}

.sampler-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.sampler-text h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin: 0.5rem 0 1rem;
}

.archetype-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.archetype-btn {
  background: var(--bg-subtle);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.archetype-btn:hover {
  background: #FFF;
  border-color: var(--border-light);
}

.archetype-btn.active {
  background: #FFF;
  border-color: var(--terracotta);
  box-shadow: 0 4px 14px var(--terracotta-glow);
}

.arch-icon {
  font-size: 1.8rem;
}

.archetype-btn strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.archetype-btn small {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.sampler-result-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.sampler-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.sampler-match-pill {
  display: inline-block;
  background: var(--bg-sage-soft);
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.sampler-profile-snippet {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.snippet-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  filter: blur(8px);
  transition: var(--transition-smooth);
}

.sampler-quote {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section {
  padding: 4.5rem 0;
}

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

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: var(--amber-sun);
  margin-bottom: 0.75rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  font-size: 1.5rem;
}

.author-row strong {
  display: block;
  font-size: 0.88rem;
}

.author-row small {
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner-section {
  padding: 3rem 0 5rem;
}

.cta-box {
  background: linear-gradient(135deg, var(--terracotta) 0%, #A94E34 100%);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-badge {
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.cta-box h2 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2.25rem;
  opacity: 0.92;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
  background: #171311;
  color: #D6CEC7;
  padding: 4rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col-main .logo-text {
  color: #FFF;
}

.footer-col-main .logo-text .brand-me {
  color: #FFF;
}

.footer-tagline {
  font-size: 0.9rem;
  margin: 1rem 0 1.25rem;
  max-width: 320px;
}

.copyright {
  font-size: 0.78rem;
  color: #8C827A;
}

.footer-col-links h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer-col-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  color: #B5ACA3;
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.footer-link:hover {
  color: var(--amber-sun);
}

/* ==========================================================================
   TAB 2: THE DAILY HORIZON (APP VIEW)
   ========================================================================== */
.hero-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 0 1.5rem;
  margin-bottom: 2rem;
  gap: 2rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 680px;
}

.horizon-status-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.horizon-stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--terracotta);
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

/* ==========================================================================
   LAUNCH COHORT SELECTOR BAR (MULTI-CITY POPULATION ENGINE)
   ========================================================================== */
.cohort-selector-card {
  background: linear-gradient(135deg, #FFFDF9 0%, #FAF6EE 100%);
  border: 1.5px solid rgba(212, 163, 115, 0.45);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(74, 55, 40, 0.05);
  position: relative;
  overflow: hidden;
}

.cohort-selector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #D9623F, #D4A373, #8A4B20);
}

.cohort-selector-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(232, 223, 211, 0.75);
}

.cohort-badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cohort-badge-pulse {
  width: 8px;
  height: 8px;
  background: #2E7D32;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
  animation: cohortPulse 2s infinite ease-in-out;
}

@keyframes cohortPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

.cohort-badge-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8A4B20;
}

.cohort-actions-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cohort-count-pill {
  font-size: 0.76rem;
  color: #5C4F46;
  background: #FFFFFF;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 163, 115, 0.35);
}

.cohort-campaign-link {
  font-size: 0.76rem;
  font-weight: 600;
  color: #D9623F;
  text-decoration: none;
  background: rgba(217, 98, 63, 0.08);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cohort-campaign-link:hover {
  background: #D9623F;
  color: #FFFFFF;
}

.cohort-selector-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .cohort-selector-body {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    align-items: center;
    gap: 1.5rem;
  }
}

.cohort-active-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cohort-flag-avatar {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid rgba(212, 163, 115, 0.35);
  box-shadow: 0 2px 8px rgba(74, 55, 40, 0.06);
  flex-shrink: 0;
}

.cohort-active-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #2D2319;
  margin: 0;
  line-height: 1.2;
}

.cohort-active-meta {
  font-size: 0.82rem;
  color: #7A695C;
  margin: 0.15rem 0 0.15rem 0;
  font-weight: 500;
}

.cohort-active-ritual {
  font-size: 0.74rem;
  color: #8A4B20;
  font-style: italic;
  margin: 0;
}

.cohort-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cohort-city-pill {
  background: #FFFFFF;
  border: 1px solid #E2D7C8;
  color: #5C4F46;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  user-select: none;
}

.cohort-city-pill:hover {
  background: #FAF6EE;
  border-color: #D4A373;
  color: #2D2319;
  transform: translateY(-1px);
}

.cohort-city-pill.active {
  background: #8A4B20;
  border-color: #8A4B20;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(138, 75, 32, 0.25);
}

/* Horizon Filter Bar & Controls */
.horizon-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.horizon-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-pill {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-pill:hover {
  background: #FFF;
  border-color: var(--border-light);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--terracotta);
  color: #FFF;
  border-color: var(--terracotta);
  box-shadow: 0 2px 8px var(--terracotta-glow);
}

.card-chosen-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--terracotta);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 3;
}

.profile-card.is-chosen {
  border-color: var(--terracotta);
  box-shadow: 0 8px 30px rgba(200, 109, 81, 0.18);
}

.profile-card.is-locked {
  opacity: 0.85;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

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

.profile-media-box {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #E8E0D7;
}

.profile-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.8s ease, transform 0.6s ease;
}

.profile-media-img.stage-0 { filter: blur(34px) brightness(1.08); }
.profile-media-img.stage-1 { filter: blur(20px) brightness(1.05); }
.profile-media-img.stage-2 { filter: blur(9px) brightness(1.02); }
.profile-media-img.stage-3 { filter: blur(0px) brightness(1.0); }

/* 3 Photos Strip */
.card-photo-thumbnails {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.card-photo-thumbnails-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-right: auto;
}

.mini-photo-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  background: #E0D7CE;
  transition: var(--transition-fast);
}

.mini-photo-thumb:hover:not(.locked) {
  transform: translateY(-2px);
  border-color: var(--terracotta);
}

.mini-photo-thumb.active {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 2px rgba(200, 109, 81, 0.4);
}

.mini-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s ease;
}

.mini-photo-thumb.locked {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.5);
}

.mini-photo-thumb.locked .thumb-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 23, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #FFF;
}

.profile-media-img.unblurred {
  filter: blur(0px) brightness(1.0);
}

.match-score-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage-dark);
  box-shadow: var(--shadow-sm);
}

.stage-pill {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(31, 26, 23, 0.75);
  backdrop-filter: blur(8px);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

.profile-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.profile-headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.profile-headline h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.profile-city {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.profile-vibe-tag {
  background: var(--bg-sage-soft);
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

/* Card mini canvas waveform */
.card-rhythm-strip {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.rhythm-strip-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.card-prompts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.card-prompt-item {
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  font-size: 0.85rem;
}

.card-prompt-item strong {
  display: block;
  font-size: 0.75rem;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.card-prompt-item p {
  color: var(--text-secondary);
  line-height: 1.45;
}

.card-tap-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 0.95rem;
}

.card-tap-btn.tapped {
  background: var(--bg-subtle);
  color: var(--sage-dark);
  border: 1px solid var(--sage);
  cursor: default;
  box-shadow: none;
}

.horizon-completion-card {
  text-align: center;
  background: var(--bg-surface);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 650px;
  margin: 0 auto 4rem;
}

.completion-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.horizon-completion-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.horizon-completion-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   TAB 3: MY RHYTHM (MAPPER & CANVAS)
   ========================================================================== */
.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 2.5rem auto 3rem;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin: 0.5rem 0 0.75rem;
}

.rhythm-workspace {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.wave-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.wave-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.wave-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.text-muted {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.wave-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.user-color { background: var(--terracotta); }
.legend-dot.candidate-color { background: var(--sage); }

.canvas-wrapper {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

#rhythmCanvas {
  width: 100%;
  height: 260px;
  display: block;
}

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

.wave-metric-box {
  background: #FAF7F2;
  border: 1px solid #EBE4DC;
  border-radius: var(--radius-md);
  padding: 1.1rem 0.9rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.wave-metric-box:hover {
  border-color: #D4A373;
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(31, 26, 23, 0.04);
}

.metric-val {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.metric-lbl {
  font-size: 0.74rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.controls-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.controls-card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
}

.slider-val {
  color: var(--terracotta);
  font-weight: 700;
}

.rhythm-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #EBE4DC;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.rhythm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3.5px solid var(--terracotta);
  box-shadow: 0 2px 8px rgba(200, 109, 81, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rhythm-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(200, 109, 81, 0.45);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* Three Quiet Reflections Styling (Human & Warm) */
.reflection-prompt-block {
  background: #FAF7F2;
  border: 1px solid #EBE4DC;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.reflection-prompt-block:hover {
  border-color: #D4A373;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(212, 163, 115, 0.08);
}

.reflection-prompt-block label {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 0.5rem;
  display: block;
}

.reflection-prompt-block input {
  border: 1px solid #E8E0D7;
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  background: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-primary);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reflection-prompt-block input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(200, 109, 81, 0.12);
}

.btn-swap-prompt {
  background: #FFFFFF;
  border: 1px solid #E5DDD5;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.22rem 0.65rem;
  transition: all 0.2s ease;
}

.btn-swap-prompt:hover {
  background: var(--bg-subtle);
  color: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateY(-1px);
}

.rhythm-save-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.sync-confirm {
  font-size: 0.85rem;
  color: var(--sage-dark);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sync-confirm.visible {
  opacity: 1;
}

.baseline-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-sage-soft);
  color: var(--sage-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(91, 110, 87, 0.2);
  margin-top: 0.75rem;
}

.baseline-status-pill .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.baseline-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  background: var(--bg-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}

/* Glimpse Card Layout */
.glimpse-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.glimpse-header {
  margin-bottom: 1.5rem;
}

.glimpse-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

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

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

.glimpse-slot-card {
  background: #FAF7F2;
  border: 1px solid #EBE4DC;
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: all 0.2s ease;
}

.glimpse-slot-card:hover {
  border-color: #D4A373;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(31, 26, 23, 0.05);
}

.glimpse-slot-top {
  margin-bottom: 0.75rem;
}

.glimpse-slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.glimpse-slot-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--terracotta);
}

.glimpse-slot-card label {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
  display: block;
}

.glimpse-slot-card textarea,
.glimpse-slot-card input {
  border: 1.5px solid #E8E0D7;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  width: 100%;
  min-height: 110px;
  line-height: 1.55;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glimpse-slot-card textarea:focus,
.glimpse-slot-card input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(200, 109, 81, 0.14);
}

/* Member Portal Header Elements */
.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-accent-soft);
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.btn-exit-home {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-exit-home:hover {
  color: var(--terracotta);
  background: var(--bg-subtle);
  border-color: var(--border-light);
}

/* ==========================================================================
   TAB 4: MUTUAL MILESTONES (PROGRESSIVE UNBLUR DEMO)
   ========================================================================== */
.milestones-demo-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: flex-start;
}

.stage-control-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stage-control-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.stage-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stage-btn {
  background: var(--bg-subtle);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.stage-btn:hover {
  background: #FFF;
  border-color: var(--border-light);
}

.stage-btn.active {
  background: #FFF;
  border-color: var(--terracotta);
  box-shadow: 0 4px 14px var(--terracotta-glow);
}

.stage-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--terracotta);
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.stage-btn strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
}

.stage-btn small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.privacy-guarantee-box {
  background: var(--bg-sage-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.82rem;
}

.shield-icon {
  font-size: 1.5rem;
}

.privacy-guarantee-box strong {
  display: block;
  color: var(--sage-dark);
  margin-bottom: 0.2rem;
}

.privacy-guarantee-box p {
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   PROGRESSIVE DISCLOSURE & 3-TAP MILESTONE STYLES
   ========================================================================== */
.milestones-demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .milestones-demo-layout {
    grid-template-columns: 1fr;
  }
}

.demo-profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.demo-media-box {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #EAE3DA;
}

.demo-media-box img,
#milestoneDemoImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s ease;
}

/* Universal Progressive Unblur Filter Rules */
.stage-0,
img.stage-0,
.profile-media-img.stage-0,
#milestoneDemoImg.stage-0,
.hero-card-img.stage-0 {
  filter: blur(26px) grayscale(35%) brightness(1.06) contrast(90%);
  transform: scale(1.08); /* Prevents edge distortion from blur filter */
}

.stage-1,
img.stage-1,
.profile-media-img.stage-1,
#milestoneDemoImg.stage-1,
.hero-card-img.stage-1 {
  filter: blur(14px) grayscale(15%) brightness(1.03) contrast(95%);
  transform: scale(1.04);
}

.stage-2,
img.stage-2,
.profile-media-img.stage-2,
#milestoneDemoImg.stage-2,
.hero-card-img.stage-2 {
  filter: blur(5px) brightness(1.01) contrast(98%);
  transform: scale(1.02);
}

.stage-3,
img.stage-3,
.profile-media-img.stage-3,
#milestoneDemoImg.stage-3,
.hero-card-img.stage-3 {
  filter: blur(0px) brightness(1.0) contrast(100%);
  transform: scale(1.0);
}

.demo-blur-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(31, 26, 23, 0.82);
  backdrop-filter: blur(12px);
  color: #FFF;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.demo-profile-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.demo-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.demo-profile-header h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.demo-role {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.demo-harmony-pill {
  background: var(--bg-sage-soft);
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(91, 110, 87, 0.2);
}

.unlocked-layer-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.unlocked-layer-feed .feed-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  opacity: 0.45;
  transition: all 0.3s ease;
}

.unlocked-layer-feed .feed-item.active {
  opacity: 1;
  background: #FFFFFF;
  border-color: var(--terracotta);
  box-shadow: 0 2px 10px rgba(200, 109, 81, 0.08);
}

.unlocked-layer-feed .feed-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.unlocked-layer-feed .feed-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.unlocked-layer-feed .feed-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.milestone-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.milestone-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.milestone-stepper .step-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.milestone-stepper .step-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.milestone-stepper .step-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FFFFFF;
  box-shadow: 0 2px 8px var(--terracotta-glow);
}

.milestone-explainer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.milestone-explainer-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.explainer-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.explainer-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.point-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.point-num {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--terracotta);
  background: var(--bg-accent-soft);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.point-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.point-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Voice Player */
.voice-player-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-smooth);
  opacity: 0.5;
  pointer-events: none;
}

.voice-player-card.unlocked {
  opacity: 1;
  pointer-events: auto;
  border: 1px solid var(--border-light);
}

.voice-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #FFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.voice-play-btn:hover {
  transform: scale(1.08);
}

.voice-meta {
  flex-grow: 1;
}

.voice-meta strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.voice-waveform-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.voice-waveform-bar .bar {
  width: 4px;
  background: var(--terracotta);
  border-radius: 2px;
  animation: soundWave 1.4s infinite ease-in-out alternate;
}

@keyframes soundWave {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1.0); }
}

.voice-status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-tertiary);
}

.rhythm-insight-box {
  background: var(--bg-sage-soft);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.insight-icon {
  font-size: 1.4rem;
}

.rhythm-insight-box strong {
  display: block;
  font-size: 0.88rem;
  color: var(--sage-dark);
  margin-bottom: 0.2rem;
}

.rhythm-insight-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Dialogue Bridge */
.dialogue-bridge-box {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  display: none;
}

.dialogue-bridge-box.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.bridge-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--terracotta);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.dialogue-header h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.prompt-chips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.chip-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip-btn:hover {
  background: var(--bg-accent-soft);
  border-color: var(--terracotta);
}

.dialogue-input-area {
  display: flex;
  gap: 0.75rem;
}

.dialogue-input {
  flex-grow: 1;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.dialogue-input:focus {
  border-color: var(--terracotta);
  background: #FFF;
}

/* ==========================================================================
   TAB 5: THE MANIFESTO
   ========================================================================== */
.manifesto-wrapper {
  max-width: 860px;
  margin: 3.5rem auto 5rem;
  text-align: center;
}

.manifesto-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin: 0.75rem 0 1.5rem;
}

.manifesto-quote {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 3rem;
  line-height: 1.4;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: left;
  margin-bottom: 4rem;
}

.manifesto-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.m-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.manifesto-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.manifesto-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.comparison-section {
  text-align: left;
  margin-top: 3rem;
}

.comparison-section h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.table-responsive {
  overflow-x: auto;
}

.manifesto-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.manifesto-table th, 
.manifesto-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.manifesto-table th {
  background: var(--bg-subtle);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
}

.manifesto-table td {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   TAB 6: DOCUMENTATION HUB VIEWER
   ========================================================================== */
.docs-browser-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  margin: 3rem 0 5rem;
}

.docs-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
}

.docs-sidebar-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.docs-sidebar-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.docs-nav-group {
  margin-bottom: 1.5rem;
}

.group-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.doc-link {
  width: 100%;
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.doc-link:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.doc-link.active {
  background: var(--bg-accent-soft);
  color: var(--terracotta);
  font-weight: 700;
}

.docs-content-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.doc-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.doc-path-tag {
  display: inline-block;
  font-family: monospace;
  font-size: 0.78rem;
  background: var(--bg-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.doc-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
}

.doc-body {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.doc-body h1, .doc-body h2, .doc-body h3 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

.doc-body code {
  font-family: monospace;
  background: var(--bg-subtle);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.doc-body pre {
  background: #1F1A17;
  color: #F8F5F0;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.doc-body th, .doc-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
}

.doc-body th {
  background: var(--bg-subtle);
  font-weight: 700;
}

/* ==========================================================================
   TAP MODAL & CELEBRATION
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 26, 23, 0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--border-light);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-tertiary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.modal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--terracotta);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.scarcity-reminder-pill {
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  color: #9A3412;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.tap-textarea {
  width: 100%;
  background: var(--bg-main);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
  transition: var(--transition-fast);
}

.tap-textarea:focus {
  border-color: var(--terracotta);
  background: #FFF;
}

.char-counter {
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.quick-prompts {
  margin-bottom: 1.5rem;
}

.quick-prompt-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quick-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-chip:hover {
  background: var(--bg-accent-soft);
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

/* Tap Celebration Overlay */
.tap-celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 26, 23, 0.7);
  backdrop-filter: blur(8px);
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.tap-celebration-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.celebration-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 3rem 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.tap-ripple-anim {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tap-hand-emoji {
  font-size: 2.8rem;
  position: relative;
  z-index: 5;
  animation: gentleBounce 1.5s infinite ease-in-out;
}

.ripple-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--terracotta);
  opacity: 0;
  animation: rippleSpread 2s infinite ease-out;
}

.ripple-ring.r1 { width: 40px; height: 40px; animation-delay: 0s; }
.ripple-ring.r2 { width: 70px; height: 70px; animation-delay: 0.5s; }
.ripple-ring.r3 { width: 100px; height: 100px; animation-delay: 1s; }

@keyframes rippleSpread {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.celebration-box h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.celebration-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 2rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--text-primary);
  color: #FFF;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

/* ==========================================================================
   PRICING & HONEST SUBSCRIPTION (NO YEARLY PASSES)
   ========================================================================== */
.pricing-section {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 420px));
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

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

.pricing-card {
  background: #FAF7F2;
  border: 1px solid #EBE4DC;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(31, 26, 23, 0.08);
}

.pricing-card.featured {
  background: #FFFFFF;
  border: 2px solid var(--terracotta);
  box-shadow: 0 8px 24px var(--terracotta-glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--terracotta);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #EBE4DC;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pricing-features li .check-icon {
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 1rem;
}

.pricing-note-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: #F4EFEB;
  border: 1px solid #E2D9CE;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
}

.pricing-note-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.pricing-note-box strong {
  color: var(--terracotta);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .comparison-deck,
  .pillars-grid,
  .testimonials-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .sampler-box,
  .rhythm-workspace,
  .milestones-demo-layout,
  .docs-browser-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none; /* Collapses to responsive view or drawer */
  }
}

/* ==========================================================================
   AUTHENTICATION & OAUTH MODAL STYLES (GOOGLE, MICROSOFT, FACEBOOK)
   ========================================================================== */
.auth-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(31, 26, 23, 0.25);
  border: 1px solid var(--border-light);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-accent-soft);
  color: var(--terracotta);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.auth-header h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.auth-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #F4EFEB;
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid #E5DFD7;
  background: #FFFFFF;
  color: var(--text-primary);
  text-decoration: none;
}

.btn-oauth:hover {
  background: #FAF8F5;
  border-color: #D3C9BE;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-oauth svg {
  flex-shrink: 0;
}

.btn-oauth.google:hover {
  border-color: #4285F4;
}

.btn-oauth.microsoft:hover {
  border-color: #00A4EF;
}

.btn-oauth.facebook:hover {
  border-color: #1877F2;
}

.oauth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.35rem 0;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #EBE4DC;
}

.oauth-divider span {
  padding: 0 0.85rem;
}

.magic-auth-box {
  display: flex;
  gap: 0.5rem;
}

.magic-auth-input {
  flex: 1;
  border: 1.5px solid #E5DFD7;
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-primary);
  background: #FAF8F5;
  transition: all 0.2s ease;
}

.magic-auth-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(200, 109, 81, 0.12);
}

.btn-send-magic {
  background: var(--text-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-send-magic:hover {
  background: var(--terracotta);
}

.auth-privacy-box {
  background: var(--bg-sage-soft);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--sage-dark);
  line-height: 1.45;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.auth-privacy-box strong {
  display: block;
  margin-bottom: 0.15rem;
}

/* OAuth Simulation Modal */
.oauth-sim-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  z-index: 10;
  animation: fadeIn 0.2s ease;
}

.oauth-sim-overlay.active {
  display: flex;
}

.oauth-sim-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #EBE4DC;
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.25rem;
}

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

.oauth-sim-provider-logo {
  margin-bottom: 1rem;
}

.oauth-sim-overlay h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.oauth-sim-overlay p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Member Profile Pill in Header */
.member-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem 0.25rem 0.35rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.member-profile-pill:hover {
  border-color: var(--terracotta);
  background: #FAF8F5;
  box-shadow: 0 4px 14px rgba(200, 109, 81, 0.15);
}

.chamber-photos-portfolio-strip img:hover {
  transform: scale(1.03);
}

.community-story-share-card:hover {
  box-shadow: 0 6px 24px rgba(92, 78, 66, 0.08);
}

.member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--sage);
}

.member-name-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-switch-account {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0 0.2rem;
  transition: color 0.2s ease;
}

.btn-switch-account:hover {
  color: var(--terracotta);
}

/* ==========================================================================
   GUIDED DIALOGUE BRIDGE & CONNECTIONS ROOM
   ========================================================================== */
.nav-badge-pill {
  background: var(--terracotta);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-left: 0.35rem;
}

.dialogue-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.75rem;
  margin-top: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .dialogue-layout {
    grid-template-columns: 1fr;
  }
}

/* 1. Connections Sidebar */
.connections-sidebar {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.connections-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #F0EAE1;
}

.connections-sidebar-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0;
}

.connections-count-tag {
  background: var(--bg-sage-soft);
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.connections-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.connection-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: #FAF7F2;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.connection-item:hover {
  background: #F4EFEB;
  border-color: #E2D9CE;
}

.connection-item.active {
  background: #FFFFFF;
  border-color: var(--terracotta);
  box-shadow: 0 4px 16px rgba(200, 109, 81, 0.12);
}

.connection-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.connection-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
}

.connection-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #48BB78;
  border: 2px solid #FFFFFF;
}

.connection-info {
  flex: 1;
  min-width: 0;
}

.connection-top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.connection-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.connection-harmony-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--terracotta);
  background: rgba(200, 109, 81, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.connection-snippet {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.connection-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-bottom: 0.35rem;
}

.connection-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: #73675C;
  font-weight: 500;
}

.connection-progress-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
}

.connection-progress-badge.unlocked {
  background: #E8F2E5;
  color: #2D5A27;
}

.connection-progress-badge.in-progress {
  background: rgba(200, 109, 81, 0.1);
  color: var(--terracotta);
}

.connection-progress-track {
  display: flex;
  gap: 3px;
  height: 4px;
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.2rem;
}

.connection-progress-segment {
  flex: 1;
  height: 100%;
  background: #E5DDD3;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.connection-progress-segment.active {
  background: var(--terracotta);
}

.connection-progress-segment.unlocked {
  background: #38A169;
}

/* Connection Timeline Strip (Chamber Header Sub-bar) */
.chamber-timeline-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0.95rem 2.25rem;
  background: #FFFFFF;
  border-bottom: 1.5px solid #EAE0D3;
}

@media (max-width: 860px) {
  .chamber-timeline-strip {
    grid-template-columns: 1fr;
  }
}

.timeline-metric {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.timeline-metric-icon {
  font-size: 1.15rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #FAF7F2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #EBE3D7;
}

.timeline-metric-info {
  display: flex;
  flex-direction: column;
}

.timeline-metric-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 0.1rem;
}

.timeline-metric-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tapped-slot-added-date {
  font-size: 0.72rem;
  color: #7A6F64;
  margin-bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* 2. Main Dialogue Chamber (Elevated & Expansive) */
.dialogue-chamber {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(35, 27, 22, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 880px;
  transition: all 0.3s ease;
}

.chamber-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: #FAF8F5;
  border-bottom: 1.5px solid #EBE4DC;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.chamber-user-meta {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
}

.chamber-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chamber-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--terracotta);
  box-shadow: 0 4px 12px rgba(200, 109, 81, 0.2);
}

.chamber-online-pulse {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  background: #38A169;
  border: 2.5px solid #FFFFFF;
  border-radius: 50%;
}

.chamber-user-info {
  min-width: 0;
}

.chamber-user-info h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 0 0 0.2rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.chamber-user-info p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0 0 0.35rem;
}

.chamber-circadian-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #F0F6EE;
  color: #2D5A27;
  border: 1px solid #D4E6CF;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.chamber-actions-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.btn-chamber-action {
  background: #FFFFFF;
  border: 1.5px solid #D9D2C9;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-chamber-action:hover {
  background: #FAF7F2;
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 109, 81, 0.15);
}

/* 3. Shared Resonance Banner (Anti-Small-Talk Starters) */
.chamber-resonance-banner {
  background: linear-gradient(135deg, #FAF5EE 0%, #F4ECE1 100%);
  border-bottom: 1.5px solid #EAE0D3;
  padding: 1.25rem 2.25rem;
}

.resonance-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--terracotta);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resonance-summary {
  font-size: 0.9rem;
  color: #594D43;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.resonance-chips-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.resonance-starter-chip {
  background: #FFFFFF;
  border: 1px solid #DDD1C3;
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.resonance-starter-chip:hover {
  background: #FFF9F5;
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 109, 81, 0.15);
}

/* 4. Porch Letters Stream (Handcrafted Stationery Aesthetic) */
.porch-letters-stream {
  flex: 1;
  padding: 2.25rem 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
  background: #FAF7F2;
  scroll-behavior: smooth;
}

.letter-date-marker {
  text-align: center;
  position: relative;
  margin: 1rem 0;
}

.letter-date-marker::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  border-bottom: 1px dashed #E2D7CB;
  z-index: 1;
}

.letter-date-marker span {
  position: relative;
  z-index: 2;
  background: #FAF7F2;
  padding: 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.letter-card {
  max-width: 82%;
  border-radius: 18px;
  padding: 1.6rem 2rem;
  line-height: 1.75;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(35, 27, 22, 0.05);
  position: relative;
  transition: transform 0.2s ease;
}

.letter-card:hover {
  transform: translateY(-1px);
}

.letter-card.received {
  align-self: flex-start;
  background: #FFFFFF;
  border: 1px solid #EBE4DA;
  border-left: 5px solid var(--sage);
  color: var(--text-primary);
}

.letter-card.sent {
  align-self: flex-end;
  background: #FFFDFC;
  border: 1px solid #EBDDD3;
  border-right: 5px solid var(--terracotta);
  color: var(--text-primary);
}

.letter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.letter-author-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.letter-author-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.letter-author {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.letter-waking-tag {
  background: rgba(91, 110, 87, 0.12);
  color: var(--sage-dark);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.letter-card.sent .letter-waking-tag {
  background: rgba(200, 109, 81, 0.12);
  color: var(--terracotta);
}

.letter-body {
  margin: 0;
  white-space: pre-line;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2C241F;
}

/* 5. Expanded Letter Composer (Stationery Desk Aesthetic) */
.letter-composer {
  padding: 1.75rem 2.25rem 2rem;
  background: #FFFFFF;
  border-top: 1.5px solid #EAE2D8;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.composer-stationery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.stationery-recipient {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.stationery-recipient strong {
  color: var(--text-primary);
}

.stationery-pacing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--sage-dark);
  background: #F0F6EE;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.pacing-pulse-dot {
  width: 7px;
  height: 7px;
  background: #38A169;
  border-radius: 50%;
  animation: pulsePacing 2.5s infinite ease-in-out;
}

@keyframes pulsePacing {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.composer-textarea-wrap {
  position: relative;
  background: #FAF8F5;
  border: 1.5px solid #DDD5CA;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
}

.composer-textarea-wrap:focus-within {
  background: #FFFFFF;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(200, 109, 81, 0.14), inset 0 1px 3px rgba(0, 0, 0, 0.01);
}

.composer-textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.75;
  resize: vertical;
  min-height: 160px;
}

.composer-textarea::placeholder {
  color: #A3968A;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1rem;
}

.composer-textarea:focus {
  outline: none;
}

.composer-inspiration-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  padding: 0 0.25rem;
}

.inspiration-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mini-prompt-chip {
  background: #F4EFEB;
  border: 1px solid #E2D9CE;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mini-prompt-chip:hover {
  background: #FFFFFF;
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.composer-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.35rem;
}

.circadian-delivery-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #F9F7F4;
  border: 1px solid #E5DDD3;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.circadian-delivery-pill:hover {
  background: #F4EFEB;
  border-color: #D6C8B8;
}

.circadian-delivery-pill input[type="checkbox"] {
  accent-color: var(--terracotta);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-send-letter {
  background: linear-gradient(135deg, var(--terracotta) 0%, #B35237 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.85rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 4px 16px var(--terracotta-glow);
}

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

/* ==========================================================================
   TAPPED MEMBERS SHOWCASE TRAY (THE 3 DAILY RESONANCES)
   ========================================================================== */
.tapped-members-tray {
  background: linear-gradient(135deg, #FFFFFF 0%, #FDFBF8 100%);
  border: 1.5px solid #EAE0D3;
  border-radius: 20px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(45, 35, 28, 0.05);
}

.tapped-tray-header {
  margin-bottom: 1.5rem;
}

.tapped-tray-title-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.tapped-tray-badge {
  background: rgba(200, 109, 81, 0.12);
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tapped-tray-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0;
  color: var(--text-primary);
}

.tapped-slot-counter {
  background: #F0F6EE;
  color: #2D5A27;
  border: 1px solid #D4E6CF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-left: auto;
}

.tapped-tray-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.tapped-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .tapped-slots-grid {
    grid-template-columns: 1fr;
  }
}

/* Occupied Slot Card */
.tapped-slot-card {
  background: #FFFFFF;
  border: 1.5px solid #EBE2D7;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.tapped-slot-card.is-unlocked {
  border-color: #D4E6CF;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFCF9 100%);
}

.tapped-slot-card.is-active {
  border-color: var(--terracotta);
  box-shadow: 0 6px 20px rgba(200, 109, 81, 0.12);
}

.tapped-slot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(35, 27, 22, 0.08);
}

.tapped-slot-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.tapped-slot-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--terracotta);
  background: rgba(200, 109, 81, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.tapped-slot-card.is-unlocked .tapped-slot-tag {
  color: #2D5A27;
  background: #E8F2E5;
}

.tapped-slot-harmony {
  font-size: 0.74rem;
  font-weight: 700;
  color: #4A5568;
}

.tapped-slot-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.tapped-slot-avatar-box {
  position: relative;
  flex-shrink: 0;
}

.tapped-slot-avatar {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid #E5DFD7;
}

.tapped-slot-info h4 {
  font-size: 1rem;
  margin: 0 0 0.15rem;
  color: var(--text-primary);
  font-weight: 700;
}

.tapped-slot-role {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tapped-slot-city {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* Progressive Tap Stepper inside slot */
.tapped-progress-box {
  background: #FAF7F3;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
}

.tapped-pips-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.tapped-pip {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #E2D9CE;
  transition: all 0.3s ease;
}

.tapped-pip.active {
  background: var(--terracotta);
}

.tapped-pip.unlocked {
  background: #38A169;
}

.tapped-stage-text {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Action button inside slot */
.btn-slot-action {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1.5px solid transparent;
}

.btn-slot-action.btn-next-tap {
  background: var(--terracotta);
  color: #FFFFFF;
  border-color: var(--terracotta);
  box-shadow: 0 2px 8px var(--terracotta-glow);
}

.btn-slot-action.btn-next-tap:hover {
  background: #B35237;
  transform: translateY(-1px);
}

.btn-slot-action.btn-dialogue-open {
  background: #F0F6EE;
  color: #2D5A27;
  border-color: #D4E6CF;
}

.btn-slot-action.btn-dialogue-open:hover {
  background: #E2EFE0;
  border-color: #38A169;
  transform: translateY(-1px);
}

/* Empty Resonance Slot */
.tapped-slot-empty {
  border: 2px dashed #DDD1C3;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  background: #FAF8F5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.25s ease;
  min-height: 220px;
}

.tapped-slot-empty:hover {
  border-color: var(--terracotta);
  background: #FFFDFB;
}

.slot-empty-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.slot-empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.slot-empty-sub {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  max-width: 220px;
}

.slot-empty-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--terracotta);
  background: rgba(200, 109, 81, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

/* Organized Categories in Dialogue Sidebar */
.sidebar-category-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  margin: 1.25rem 0 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #F0E8DD;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-category-count {
  background: #FAF0EB;
  color: var(--terracotta);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
}

/* ==========================================================================
   ORIGIN CHRONICLE & GRADUATION KEEPSAKE STORYBOOK MODAL
   ========================================================================== */
.chronicle-modal-card {
  max-width: 900px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #FAF7F2;
  border: 1.5px solid #D6C7B7;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(44, 34, 26, 0.28);
}

.chronicle-actions-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: #F3ECE2;
  border-bottom: 1.5px solid #E4D7C7;
  flex-wrap: wrap;
  gap: 1rem;
}

.chronicle-badge-tag {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chronicle-btn-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chronicle-scroll-area {
  overflow-y: auto;
  padding: 2.5rem 3rem;
  flex: 1;
}

@media (max-width: 768px) {
  .chronicle-scroll-area {
    padding: 1.5rem 1.25rem;
  }
  .chronicle-actions-top {
    padding: 1rem 1.25rem;
  }
}

.chronicle-document {
  background: #FFFFFF;
  border: 2px solid #E5DDD3;
  border-radius: 14px;
  padding: 3.5rem 3rem;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.04);
  font-family: var(--font-serif);
  position: relative;
  line-height: 1.7;
  color: #2D231B;
}

@media (max-width: 768px) {
  .chronicle-document {
    padding: 2rem 1.5rem;
  }
}

.chronicle-seal-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.wax-seal-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B54F35 0%, #8A3018 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-serif);
  box-shadow: 0 6px 16px rgba(181, 79, 53, 0.45);
  border: 2.5px solid #F09B84;
  letter-spacing: 0.08em;
}

.chronicle-doc-header {
  text-align: center;
  margin-bottom: 2.75rem;
  border-bottom: 1.5px solid #EAE0D3;
  padding-bottom: 2rem;
}

.chronicle-registry-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
  display: block;
}

.chronicle-main-title {
  font-size: 2.2rem;
  font-family: var(--font-serif);
  color: #2C221A;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.chronicle-couple-names {
  font-size: 1.25rem;
  color: #5A4C40;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.chronicle-metadata-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: #FAF7F2;
  padding: 1.15rem 1.5rem;
  border-radius: 10px;
  border: 1px solid #E8DFD3;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-align: left;
}

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

.chronicle-meta-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

.chronicle-meta-item span {
  color: var(--text-secondary);
  font-size: 0.76rem;
}

/* Chapters Timeline */
.chronicle-chapters-stream {
  margin-top: 2.5rem;
}

.chronicle-chapter {
  margin-bottom: 2.75rem;
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid #EAE0D3;
}

.chapter-node {
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid #FFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.chapter-node.unlocked {
  background: #38A169;
}

.chapter-meta-line {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  margin-bottom: 0.35rem;
}

.chapter-heading {
  font-size: 1.35rem;
  font-family: var(--font-serif);
  color: #2C221A;
  margin: 0 0 0.85rem;
}

.chapter-body {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.65;
  color: #4A3E34;
}

.chapter-quote-box {
  background: #FAF7F2;
  border-left: 3.5px solid var(--terracotta);
  padding: 1rem 1.35rem;
  margin: 1rem 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  color: #3A2F26;
  line-height: 1.6;
}

.chapter-photo-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.chapter-photo-card {
  text-align: center;
}

.chapter-photo-thumb {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #E0D6CB;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.chapter-photo-caption {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 0.35rem;
}

/* Graduation & Sabbatical Seal Box */
.chronicle-graduation-seal-box {
  background: linear-gradient(135deg, #FDFBF8 0%, #F6EEE2 100%);
  border: 2px dashed #C86D51;
  border-radius: 14px;
  padding: 2.25rem 2rem;
  text-align: center;
  margin-top: 3.5rem;
}

.graduation-seal-title {
  font-size: 1.4rem;
  font-family: var(--font-serif);
  color: var(--terracotta);
  margin: 0 0 0.5rem;
}

.graduation-seal-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.65;
  color: #524438;
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

.graduation-signatures-row {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  border-top: 1px solid #E0D3C4;
  padding-top: 1.75rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.signature-block {
  text-align: center;
}

.signature-line {
  border-bottom: 1.5px solid #8A7A6C;
  min-width: 200px;
  padding-bottom: 0.35rem;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #3A2E24;
}

.signature-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8A7A6C;
  margin-top: 0.4rem;
  display: block;
}

.chronicle-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #F3ECE2;
  border-top: 1.5px solid #E4D7C7;
  gap: 1rem;
}

.chronicle-footnote {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* Note: Unified 300-DPI Luxury Letterpress Print Engine is configured at the end of this stylesheet */


/* ==========================================================================
   PHOTOBOOK STORYBOOK SPREADS & GROWTH ARC STYLING
   ========================================================================== */
.album-tag-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.storybook-mode-toggles {
  display: flex;
  gap: 0.35rem;
  background: #E8DED2;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
}

.btn-storybook-toggle {
  border: none;
  background: transparent;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: #5A4C40;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-storybook-toggle.active {
  background: #FFFFFF;
  color: var(--terracotta);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.storybook-spread-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.25rem;
  background: #F8F2E9;
  border-bottom: 1.5px solid #E6DCD0;
}

.btn-spread-nav {
  border: 1.5px solid #D8CABE;
  background: #FFFFFF;
  color: #3A2F26;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-spread-nav:hover {
  background: var(--terracotta);
  color: #FFFFFF;
  border-color: var(--terracotta);
}

/* Storybook Wax Seal & Insignia Styles */
.chronicle-seal-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.wax-seal-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #A83A20, #6E2210);
  border: 3px solid #D4A373;
  box-shadow: 0 4px 16px rgba(110, 34, 16, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.25), inset 0 -2px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  margin: 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wax-seal-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(110, 34, 16, 0.45);
}

.wax-seal-badge .wax-seal-botanical {
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.wax-seal-badge .wax-seal-initials {
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FBE6D2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1;
  margin-top: 1px;
}

/* Print Dropdown Menu Styles */
.print-menu-dropdown {
  animation: fadeInDown 0.2s ease forwards;
}

.print-menu-item:hover {
  background: #FAF7F2 !important;
}

.print-menu-item:active {
  background: #F2ECE1 !important;
}


.spread-indicator-wrap {
  text-align: center;
}

.spread-number-text {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: #3A2F26;
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}

.spread-dots-row {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
}

.spread-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D9CFC4;
  cursor: pointer;
  transition: all 0.25s ease;
}

.spread-dot.active {
  background: var(--terracotta);
  width: 24px;
  border-radius: 5px;
}

/* Album Spread Layout */
.album-spread-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: #FFFDF9;
  border: 2px solid #E5DBD0;
  border-radius: 14px;
  padding: 3rem 2.75rem;
  box-shadow: inset 0 0 50px rgba(220, 205, 190, 0.18), 0 10px 35px rgba(0, 0, 0, 0.06);
  min-height: 520px;
  position: relative;
  margin-bottom: 2rem;
}

@media (max-width: 850px) {
  .album-spread-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
}

.album-spine-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(200, 180, 160, 0.05), rgba(180, 160, 140, 0.35) 50%, rgba(200, 180, 160, 0.05));
  transform: translateX(-50%);
}

@media (max-width: 850px) {
  .album-spine-line {
    display: none;
  }
}

.album-page-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.album-cover-spread {
  grid-template-columns: 1fr !important;
  text-align: center;
  background: linear-gradient(135deg, #FBF8F3 0%, #F4ECE0 100%);
  border: 3px double #CDBAA7;
}

.album-gold-border {
  border: 2px solid #C5A069;
  padding: 3.5rem 2.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 30px rgba(197, 160, 105, 0.08);
}

.album-title-gold {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: #2C221A;
  margin: 0.75rem 0 0.5rem;
  letter-spacing: 0.02em;
}

.album-subtitle-folio {
  font-style: italic;
  color: #6A5B4F;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.album-meta-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.album-meta-pill {
  background: #FFFDF9;
  border: 1px solid #E2D7CB;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: #4A3E34;
  font-family: var(--font-sans);
}

/* Photo Progression Gallery with Vintage Mounts */
.photo-mount-progression {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.photo-mount-frame {
  background: #FFFFFF;
  border: 1px solid #E2D9CE;
  padding: 0.6rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
}

.photo-mount-frame img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
}

.photo-corner-tabs::before,
.photo-corner-tabs::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #8C7B6C;
  border-style: solid;
  pointer-events: none;
}

.photo-corner-tabs::before {
  top: 4px;
  left: 4px;
  border-width: 2px 0 0 2px;
}

.photo-corner-tabs::after {
  bottom: 4px;
  right: 4px;
  border-width: 0 2px 2px 0;
}

.photo-mount-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 0.4rem;
}

.photo-mount-stage {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

/* The Arc of Mutual Growth Section */
.chronicle-growth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.growth-stat-card {
  background: #FAF7F2;
  border: 1px solid #E8DFD3;
  border-radius: 10px;
  padding: 1.1rem;
  text-align: left;
}

.growth-stat-icon {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.growth-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2C221A;
  font-family: var(--font-serif);
}

.growth-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.growth-stat-sub {
  font-size: 0.74rem;
  color: #6A5C50;
  line-height: 1.45;
  font-family: var(--font-sans);
}

.growth-narrative-box {
  background: #FBF7F0;
  border-left: 3.5px solid #C5A069;
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4A3E34;
  margin-top: 1rem;
}

/* Future Anniversary & The Living Folio (Continuing Chapters) */
.anniversary-leaves-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

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

.anniversary-mount-placeholder {
  border: 2px dashed #D6C7B7;
  border-radius: 10px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FAF8F5;
  text-align: center;
  padding: 1.5rem;
  color: #7A6A5C;
  transition: all 0.2s ease;
}

.anniversary-mount-placeholder:hover {
  background: #F5EFE6;
  border-color: var(--terracotta);
}

.anniversary-mount-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.anniversary-mount-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #3A2F26;
  margin-bottom: 0.35rem;
}

.anniversary-mount-hint {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  max-width: 220px;
}

/* Ceremonial QR Code Block */
.ceremonial-qr-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #FAF7F2;
  border: 1px solid #EAE0D3;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-top: 1.75rem;
}

.ceremonial-qr-box {
  width: 64px;
  height: 64px;
  background: #FFFFFF;
  border: 1.5px solid #2C221A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.ceremonial-qr-info strong {
  display: block;
  font-size: 0.85rem;
  color: #2C221A;
  margin-bottom: 0.2rem;
}

.ceremonial-qr-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   3RD-PARTY LOCAL PRINT & HARDCOVER ALBUM DISPATCH MODAL
   ========================================================================== */
.print-order-modal-card {
  max-width: 860px;
  width: 95%;
  max-height: 92vh;
  overflow-y: auto;
}

.local-lab-routing-banner {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.local-lab-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #166534;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.lab-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

.local-lab-routing-banner h4 {
  font-size: 1.05rem;
  color: #14532D;
  margin: 0 0 0.4rem;
}

.local-lab-desc {
  font-size: 0.84rem;
  color: #166534;
  line-height: 1.5;
  margin: 0;
}

.print-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

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

.print-product-card {
  border: 2px solid #E2D7CB;
  border-radius: 12px;
  padding: 1.5rem 1.15rem;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
}

.print-product-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.print-product-card.selected {
  border-color: var(--terracotta);
  background: #FDF9F7;
  box-shadow: 0 6px 20px rgba(200, 109, 81, 0.18);
}

.product-badge-fav {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terracotta);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.product-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.print-product-card h4 {
  font-size: 1.05rem;
  color: #2C221A;
  margin: 0 0 0.35rem;
}

.product-specs {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--terracotta);
  margin-bottom: 0.65rem;
}

.product-detail-text {
  font-size: 0.78rem;
  color: #6A5C50;
  line-height: 1.45;
  margin: 0;
  text-align: left;
}

.print-order-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  background: #FAF7F2;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #E8DFD3;
}

@media (max-width: 600px) {
  .print-order-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Mutual Accord Two-Key Gate Card (Zero Entitlement Protocol)
   ========================================================================== */
.mutual-accord-gate-card {
  background: linear-gradient(145deg, #FAF7F2 0%, #F5EFE6 100%);
  border: 1px solid #E4D7C8;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin: 1.25rem 0 0.5rem;
  box-shadow: 0 4px 18px rgba(62, 44, 30, 0.05);
}

.mutual-accord-gate-card .gate-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.25rem;
}

.mutual-accord-gate-card h4 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.mutual-accord-gate-card p {
  font-size: 0.88rem;
  color: #5A4C40;
  max-width: 580px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.mutual-accord-gate-card .gate-actions-row {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-gate-reciprocate {
  background: var(--terracotta);
  color: #FFFFFF;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 24px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(193, 107, 79, 0.2);
}

.btn-gate-reciprocate:hover {
  background: #A85338;
  transform: translateY(-1px);
}

.btn-gate-part {
  background: #FFFFFF;
  color: #6B5D52;
  border: 1px solid #D8CCBE;
  padding: 0.65rem 1.15rem;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gate-part:hover {
  background: #F2ECE4;
  color: #3A2F26;
  border-color: #BDB0A0;
}

/* ==========================================================================
   Discrete Proximity Horizon Tier Cards & Picker
   ========================================================================== */
.proximity-tier-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.proximity-tier-btn {
  background: #FAF7F2;
  border: 1px solid #E4D7C8;
  border-radius: 8px;
  padding: 0.5rem 0.25rem;
  font-size: 0.72rem;
  cursor: pointer;
  text-align: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.proximity-tier-btn strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.proximity-tier-btn span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

.proximity-tier-btn:hover {
  background: #FFFFFF;
  border-color: #D4A373;
}

.proximity-tier-btn.active {
  background: #FFFFFF;
  border: 2px solid var(--terracotta);
  box-shadow: 0 2px 10px rgba(193, 107, 79, 0.16);
}

.proximity-tier-btn.active strong {
  color: var(--terracotta);
}

.proximity-tier-btn.active span {
  color: var(--terracotta);
  font-weight: 600;
}

/* ==========================================================================
   Bilateral Shared Graduation Modal & Ceremony
   ========================================================================== */
.graduation-modal-card {
  max-width: 620px;
  width: 92%;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 20px 60px rgba(58, 47, 38, 0.25);
  border: 1px solid #E8DFD3;
  overflow: hidden;
}

.graduation-modal-header {
  background: linear-gradient(135deg, #FAF7F2, #F4EBE1);
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid #E8DFD3;
}

.graduation-step-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.grad-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.grad-step .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E8DFD3;
  color: #7A6C60;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.grad-step.active .step-num {
  background: var(--terracotta);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(193, 107, 79, 0.35);
}

.grad-step.completed .step-num {
  background: #2E7D32;
  color: #FFFFFF;
}

.grad-step .step-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.grad-step.active .step-lbl {
  color: var(--text-primary);
}

.grad-step-line {
  flex: 1;
  height: 2px;
  background: #E8DFD3;
  margin: 0 0.5rem 1rem;
  max-width: 60px;
}

.grad-step-line.completed {
  background: var(--terracotta);
}

.graduation-modal-body {
  padding: 1.5rem 1.75rem;
  max-height: 70vh;
  overflow-y: auto;
}

.graduation-modal-footer {
  padding: 1rem 1.75rem;
  background: #FAF7F2;
  border-top: 1px solid #E8DFD3;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================================
   Ambient Voice Reflection Player (Tap 2 Milestone)
   ========================================================================== */
.voice-reflection-chamber-widget {
  background: #FFFFFF;
  border: 1px solid #E8DFD3;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(58, 47, 38, 0.04);
}

.voice-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.voice-widget-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.voice-note-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3A2F26;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.voice-unlocked-tag {
  font-size: 0.72rem;
  color: #2E7D32;
  background: #E8F5E9;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
}

.voice-timer {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: monospace;
}

.voice-widget-controls-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.btn-voice-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(193, 107, 79, 0.25);
}

.btn-voice-play:hover {
  background: #A85338;
  transform: scale(1.05);
}

.voice-waveform-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: #FAF7F2;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  border: 1px solid #E8DFD3;
}

.voice-waveform-wrap canvas {
  width: 100%;
  height: 36px;
  display: block;
}

.voice-scrubber-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.voice-transcript-box {
  background: #FAF7F2;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--terracotta);
  font-size: 0.82rem;
  color: #5C4E42;
  line-height: 1.5;
}

.transcript-speaker {
  font-weight: 700;
  color: #3A2F26;
  margin-right: 0.35rem;
}

.transcript-quote {
  font-style: italic;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (< 768px) & TOUCH OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .main-nav {
    overflow-x: auto;
    width: 100%;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.5rem;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  .proximity-tier-cards {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.4rem;
  }

  .voice-waveform-wrap {
    padding: 0.25rem 0.4rem;
  }

  .voice-widget-header {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .voice-transcript-box {
    font-size: 0.78rem;
  }

  .sanctuary-hero-card {
    padding: 1.75rem 1rem !important;
  }

  .chronicle-modal-card {
    width: 98% !important;
    max-height: 96vh !important;
  }

  .album-spread-card {
    padding: 1.5rem 1rem !important;
    gap: 1.5rem !important;
  }

  .chronicle-actions-top {
    padding: 1rem !important;
  }
}

/* ==========================================================================
   ARCHIVAL 300-DPI LUXURY LETTERPRESS PRINT ENGINE (@media print)
   Formats both Bound Album (Spreads) & Full Folio (Roll) into museum-grade
   physical keepsakes with exact landscape geometry, zero modal leakage,
   and authentic gold borders & embossed wax seals.
   ========================================================================== */
@media print {
  @page {
    size: 11in 8.5in; /* US Letter Landscape */
    margin: 0.3in 0.35in;
  }

  /* Universal high-fidelity color reproduction */
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
    box-sizing: border-box !important;
  }

  html, body {
    background: #FFFDF9 !important;
    color: #2A1F17 !important;
    font-size: 9.5pt !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Strictly suppress all other page elements, background views, and other modals */
  .app-header,
  .app-footer,
  .app-main,
  .main-nav,
  .no-print,
  .chronicle-actions-top,
  .storybook-spread-nav,
  .chronicle-modal-footer,
  .modal-close-btn,
  .toast-container,
  .header-action-group,
  .view-mode-pill,
  .persona-toggle-btn,
  .print-dropdown-wrapper,
  .print-menu-dropdown,
  .modal-backdrop:not(#chronicleModalBackdrop),
  button {
    display: none !important;
  }

  /* Elevate ONLY the chronicle backdrop to an unconstrained document container */
  #chronicleModalBackdrop {
    display: block !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .chronicle-modal-card {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .chronicle-scroll-area {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .chronicle-document {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* ------------------------------------------------------------------------
     1. BOUND ALBUM MODE: EXACT LANDSCAPE 2-PAGE SPREADS
     ------------------------------------------------------------------------ */
  .album-spread-card {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
    width: 100% !important;
    height: 7.7in !important;
    max-height: 7.7in !important;
    margin: 0 0 0.4in 0 !important;
    padding: 0.32in 0.38in !important;
    background: #FFFDF9 !important;
    border: 2pt solid #C5A069 !important;
    border-radius: 8pt !important;
    box-shadow: inset 0 0 25pt rgba(197, 160, 105, 0.08) !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: always !important;
    break-after: page !important;
    position: relative !important;
    overflow: hidden !important;
  }

  /* Cover Spread: Centered Full Opening */
  .album-cover-spread {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: linear-gradient(135deg, #FBF8F3 0%, #F4ECE0 100%) !important;
    border: 3.5pt double #C5A069 !important;
    padding: 0.35in !important;
  }

  .album-cover-spread .album-gold-border {
    width: 96% !important;
    height: 92% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0.35in 0.45in !important;
    border: 1.5pt solid #C5A069 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    margin: 0 auto !important;
  }

  .album-cover-spread .album-title-gold {
    font-size: 19pt !important;
    margin: 0.4rem 0 0.25rem !important;
    color: #2C221A !important;
    line-height: 1.25 !important;
  }

  .album-cover-spread .album-subtitle-folio {
    font-size: 12pt !important;
    margin-bottom: 1rem !important;
    color: #6A5B4F !important;
  }

  /* Center Stitched Spine Line */
  .album-spine-line {
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 2px !important;
    border-left: 1.2pt dashed #C5A069 !important;
    background: none !important;
    display: block !important;
    transform: translateX(-50%) !important;
    opacity: 0.85 !important;
  }

  /* Left & Right Page Columns */
  .album-page-column {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    overflow: hidden !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    padding: 0.05in 0 !important;
  }

  .chapter-heading {
    font-size: 12.5pt !important;
    margin-bottom: 0.2rem !important;
    color: #2C221A !important;
  }

  .chronicle-registry-tag {
    font-size: 7pt !important;
    letter-spacing: 0.08em !important;
    color: #8A4B20 !important;
  }

  /* Photo Mount Progressions */
  .photo-mount-progression {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.45rem !important;
    margin: 0.45rem 0 !important;
  }

  .photo-mount-frame {
    border: 1pt solid #D4A373 !important;
    background: #FFFFFF !important;
    padding: 3pt !important;
    box-shadow: none !important;
    text-align: center !important;
  }

  .photo-mount-frame img {
    width: 100% !important;
    height: 0.9in !important;
    object-fit: cover !important;
    display: block !important;
    image-rendering: -webkit-optimize-contrast !important;
  }

  .photo-mount-label {
    font-size: 6.5pt !important;
    font-weight: 700 !important;
    color: #8A4B20 !important;
    margin-top: 2pt !important;
  }

  .photo-mount-stage {
    font-size: 6pt !important;
    color: #5C4E42 !important;
  }

  /* Quote Boxes & Milestone Cards */
  .chapter-quote-box {
    background: #FAF7F2 !important;
    border-left: 2pt solid #8A4B20 !important;
    padding: 0.35rem 0.55rem !important;
    font-size: 7.5pt !important;
    line-height: 1.35 !important;
    margin: 0.3rem 0 0 !important;
  }

  .growth-narrative-box {
    background: #FAF7F2 !important;
    border: 1pt solid #E8DFD3 !important;
    padding: 0.35rem 0.55rem !important;
    font-size: 7.5pt !important;
    line-height: 1.35 !important;
  }

  .chronicle-growth-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
    margin-bottom: 0.4rem !important;
  }

  .growth-stat-card {
    background: #FFFFFF !important;
    border: 1pt solid #E8DFD3 !important;
    padding: 0.3rem 0.45rem !important;
    text-align: center !important;
  }

  .growth-stat-val {
    font-size: 9.5pt !important;
    font-weight: 700 !important;
    color: #8A4B20 !important;
  }

  .growth-stat-label {
    font-size: 6.5pt !important;
    font-weight: 600 !important;
    color: #3A2F26 !important;
  }

  .growth-stat-sub {
    font-size: 6pt !important;
    color: #7A6C60 !important;
    line-height: 1.2 !important;
  }

  /* Signatures & Wax Seals */
  .signature-line {
    border-bottom: 1pt solid #3A2F26 !important;
    font-family: 'Brush Script MT', 'Great Vibes', 'Bickham Script Pro', cursive, serif !important;
    font-size: 14pt !important;
    color: #2A1F17 !important;
    padding-bottom: 1pt !important;
  }

  .signature-label {
    font-size: 6pt !important;
    color: #7A6C60 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
  }

  .wax-seal-badge {
    width: 44pt !important;
    height: 44pt !important;
    border-radius: 50% !important;
    background: #8A3018 !important;
    border: 2pt solid #C5A069 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    margin: 0 auto !important;
  }

  .wax-seal-badge .wax-seal-botanical {
    font-size: 12pt !important;
    line-height: 1 !important;
  }

  .wax-seal-badge .wax-seal-initials {
    font-family: 'Cinzel', serif !important;
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    color: #F8E7D1 !important;
  }

  /* Anniversary Mount Placeholders */
  .anniversary-mount-placeholder {
    border: 1.5pt dashed #C5A069 !important;
    background: #FAF7F2 !important;
    padding: 0.5in 0.35in !important;
    text-align: center !important;
    margin: 0.35rem 0 !important;
  }

  /* ------------------------------------------------------------------------
     2. CONTINUOUS FULL FOLIO ROLL PRINT MODE
     ------------------------------------------------------------------------ */
  .print-full-folio .album-spread-card {
    height: auto !important;
    max-height: none !important;
    margin-bottom: 0.35in !important;
    page-break-after: always !important;
    break-after: page !important;
  }

  /* Single Spread Print Mode */
  .print-single-spread .album-spread-card {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
}

/* ==========================================================================
   PLAYFUL, SEXY & MODERN LANDING PAGE UI ENGINE
   Aesthetics: Ambient Warm Velvet, Seductive Embers, Sculpted Glassmorphism,
   Tactile Depth, and Sophisticated Editorial Rhythm
   ========================================================================== */

/* 1. Global Atmosphere & Canvas Glow */
body {
  background-color: #FAF6F0 !important;
  background-image: 
    radial-gradient(ellipse 60% 45% at 88% 8%, rgba(224, 109, 83, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 12% 38%, rgba(244, 162, 97, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 65% 50% at 85% 75%, rgba(217, 98, 63, 0.06) 0%, transparent 60%) !important;
  color: #1F1916;
}

/* 2. Seductive Top Announcement Bar */
.top-announcement {
  background: linear-gradient(90deg, #181310 0%, #281C16 50%, #181310 100%) !important;
  border-bottom: 1px solid rgba(224, 109, 83, 0.28) !important;
  color: #F8EFE8 !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.02em !important;
  padding: 0.65rem 0 !important;
  box-shadow: 0 4px 20px rgba(24, 19, 16, 0.25) !important;
}

.announcement-inner span {
  opacity: 0.95;
}

.announcement-inner strong {
  color: #FFB088;
  font-weight: 700;
}

.announcement-link {
  color: #FFB088 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  padding: 0.25rem 0.8rem !important;
  background: rgba(224, 109, 83, 0.16) !important;
  border: 1px solid rgba(255, 176, 136, 0.35) !important;
  border-radius: 999px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.announcement-link:hover {
  background: rgba(224, 109, 83, 0.32) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 4px 12px rgba(224, 109, 83, 0.3) !important;
}

/* 3. Modern Frosted Floating Sticky Header */
.app-header {
  background: rgba(250, 246, 240, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(225, 205, 190, 0.5) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.app-header.scrolled {
  background: rgba(250, 246, 240, 0.95) !important;
  box-shadow: 0 10px 32px rgba(44, 34, 26, 0.08) !important;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-btn {
  color: #3D322B !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 999px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
}

.nav-btn:hover {
  color: #D9623F !important;
  background: rgba(217, 98, 63, 0.08) !important;
  transform: translateY(-1px);
}

/* 4. Hero Section — Sensual & Playful Polish */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem !important;
}

.editorial-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  color: #B84724 !important;
  border: 1px solid rgba(224, 109, 83, 0.26) !important;
  padding: 0.42rem 1.15rem !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 18px rgba(224, 109, 83, 0.1) !important;
  margin-bottom: 1.5rem !important;
}

.hero-headline {
  font-family: var(--font-serif) !important;
  font-size: 3.65rem !important;
  font-weight: 600 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  color: #1C1512 !important;
  margin-bottom: 1.4rem !important;
}

.hero-accent {
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  background: linear-gradient(135deg, #D9623F 10%, #E76F51 50%, #B84724 95%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
  padding-right: 0.15em;
}

.hero-subhead {
  font-size: 1.12rem !important;
  color: #5E524A !important;
  line-height: 1.72 !important;
  margin-bottom: 2.25rem !important;
}

/* Playful & Sexy CTA Buttons */
.btn-primary {
  background: linear-gradient(135deg, #E26D52 0%, #C35134 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.9rem 1.85rem !important;
  box-shadow: 0 8px 24px rgba(195, 81, 52, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2.5px) scale(1.02) !important;
  box-shadow: 0 14px 34px rgba(195, 81, 52, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  color: #2D221C !important;
  border: 1.5px solid rgba(224, 109, 83, 0.24) !important;
  border-radius: 999px !important;
  padding: 0.9rem 1.7rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(44, 34, 26, 0.05) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #FFFFFF !important;
  border-color: #D9623F !important;
  color: #D9623F !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(217, 98, 63, 0.15) !important;
}

/* Seductive Floating Hero Profile Card */
.hero-card-floating {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(24px) !important;
  border: 1.5px solid rgba(224, 109, 83, 0.22) !important;
  border-radius: 28px !important;
  padding: 1.35rem !important;
  box-shadow: 
    0 24px 60px rgba(34, 24, 18, 0.12),
    0 4px 18px rgba(224, 109, 83, 0.08),
    inset 0 1px 0 #FFFFFF !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-card-floating:hover {
  transform: translateY(-6px) !important;
  box-shadow: 
    0 32px 75px rgba(34, 24, 18, 0.16),
    0 8px 28px rgba(224, 109, 83, 0.15),
    inset 0 1px 0 #FFFFFF !important;
}

.floating-badge {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(224, 109, 83, 0.24) !important;
  box-shadow: 0 8px 22px rgba(30, 22, 16, 0.08) !important;
  padding: 0.48rem 1.05rem !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}

.floating-badge.top-left {
  color: #2F6340 !important;
  border-color: rgba(47, 99, 64, 0.28) !important;
}

.floating-badge.top-left .badge-dot {
  background: #2F6340 !important;
  box-shadow: 0 0 10px rgba(47, 99, 64, 0.7) !important;
}

.floating-badge.bottom-right {
  color: #B84724 !important;
}

.hero-tap-action-btn {
  background: linear-gradient(135deg, #E26D52 0%, #B84724 100%) !important;
  box-shadow: 0 8px 26px rgba(195, 81, 52, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  padding: 0.95rem 1.25rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-tap-action-btn:hover {
  transform: translateY(-2.5px) scale(1.02) !important;
  box-shadow: 0 14px 34px rgba(195, 81, 52, 0.5) !important;
}

/* 5. Section 2: The Rhythm of Connection — Sculpted & Sexy */
.pillars-section {
  background: linear-gradient(180deg, rgba(250, 246, 240, 0.4) 0%, #FFFFFF 100%) !important;
  position: relative;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  align-items: stretch;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(225, 205, 190, 0.65) !important;
  border-radius: 26px !important;
  padding: 2.75rem 2.15rem !important;
  box-shadow: 0 10px 30px rgba(44, 34, 26, 0.05), inset 0 1px 0 #FFFFFF !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pillar-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(224, 109, 83, 0.5) !important;
  box-shadow: 0 22px 50px rgba(224, 109, 83, 0.14), 0 4px 14px rgba(44, 34, 26, 0.04) !important;
}

/* Highlight the Center Card (Focus on Up to 3) as the provocative focal point */
.pillar-card:nth-child(2) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF7F2 100%) !important;
  border: 1.5px solid rgba(224, 109, 83, 0.4) !important;
  box-shadow: 0 18px 45px rgba(224, 109, 83, 0.12), inset 0 1px 0 #FFFFFF !important;
  transform: translateY(-4px);
}

.pillar-card:nth-child(2):hover {
  transform: translateY(-12px) !important;
  box-shadow: 0 28px 65px rgba(224, 109, 83, 0.22) !important;
}

.pillar-number {
  position: absolute !important;
  top: 1.75rem !important;
  right: 2rem !important;
  font-family: var(--font-serif) !important;
  font-size: 2.8rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, rgba(224, 109, 83, 0.28) 0%, rgba(224, 109, 83, 0.08) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  line-height: 1 !important;
}

.pillar-icon-box {
  width: 60px !important;
  height: 60px !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, #FFF5ED 0%, #FDE7D7 100%) !important;
  border: 1px solid rgba(224, 109, 83, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.75rem !important;
  margin-bottom: 1.65rem !important;
  box-shadow: 0 6px 18px rgba(224, 109, 83, 0.14) !important;
}

.pillar-card h3 {
  font-family: var(--font-serif) !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: #201713 !important;
  margin-bottom: 0.9rem !important;
  line-height: 1.3 !important;
}

.pillar-card p {
  font-size: 0.95rem !important;
  color: #5C5047 !important;
  line-height: 1.7 !important;
  margin-bottom: 1.75rem !important;
}

.pillar-tag {
  align-self: flex-start !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #B84724 !important;
  background: rgba(224, 109, 83, 0.09) !important;
  border: 1px solid rgba(224, 109, 83, 0.24) !important;
  padding: 0.38rem 0.95rem !important;
  border-radius: 999px !important;
}

/* 6. Section 3: Our Vision — Bespoke Editorial Styling */
.reveal-journey-section {
  background: #FAF6F0 !important;
  position: relative;
}

.vision-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(225, 205, 190, 0.65) !important;
  border-radius: 26px !important;
  padding: 2.5rem 2.15rem !important;
  box-shadow: 0 10px 30px rgba(44, 34, 26, 0.04), inset 0 1px 0 #FFFFFF !important;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.vision-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(224, 109, 83, 0.4) !important;
  box-shadow: 0 24px 55px rgba(44, 34, 26, 0.1) !important;
}

/* 7. Section 4: Member Reflections — Intimate Pull-Quote Cards */
.alumni-stories-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF6F0 100%) !important;
}

.story-card {
  border-radius: 26px !important;
  padding: 2.5rem !important;
  box-shadow: 0 10px 32px rgba(44, 34, 26, 0.05), inset 0 1px 0 #FFFFFF !important;
  border: 1px solid rgba(225, 205, 190, 0.65) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.story-card::before {
  content: '“';
  position: absolute;
  top: 0.75rem;
  right: 1.75rem;
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: rgba(224, 109, 83, 0.08);
  pointer-events: none;
}

.story-card:hover {
  transform: translateY(-7px) !important;
  box-shadow: 0 24px 55px rgba(224, 109, 83, 0.12) !important;
  border-color: rgba(224, 109, 83, 0.4) !important;
}

/* 8. Section 5: Pricing — Velvet Midnight Featured Crown Jewel */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: center;
  max-width: 980px;
  margin: 3.5rem auto 2.5rem;
}

.pricing-card.featured {
  background: linear-gradient(155deg, #221A16 0%, #15100E 100%) !important;
  color: #F8EFE8 !important;
  border: 1.5px solid #D4A373 !important;
  border-radius: 28px !important;
  padding: 3.25rem 2.4rem !important;
  box-shadow: 0 28px 70px rgba(25, 18, 14, 0.3), 0 0 0 1px rgba(212, 163, 115, 0.25) !important;
  position: relative;
  transform: scale(1.03);
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-6px) !important;
  box-shadow: 0 34px 85px rgba(25, 18, 14, 0.38), 0 0 30px rgba(212, 163, 115, 0.35) !important;
}

.pricing-card.featured .pricing-header h3 {
  color: #FFFFFF !important;
  font-family: var(--font-serif) !important;
  font-size: 1.65rem !important;
}

.pricing-card.featured .pricing-desc {
  color: #D6C8BE !important;
}

.pricing-card.featured .pricing-price .price-currency,
.pricing-card.featured .pricing-price .price-amount {
  color: #FFB088 !important;
}

.pricing-card.featured .pricing-price .price-period {
  color: #BDB0A6 !important;
}

.pricing-card.featured .pricing-features li {
  color: #F0E6DD !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pricing-card.featured .pricing-features .check-icon {
  background: rgba(212, 163, 115, 0.22) !important;
  color: #FFB088 !important;
}

.pricing-card.featured .pricing-badge {
  background: linear-gradient(135deg, #D4A373 0%, #B8860B 100%) !important;
  color: #17120F !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  box-shadow: 0 4px 16px rgba(212, 163, 115, 0.45) !important;
}

.pricing-card:not(.featured) {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(225, 205, 190, 0.65) !important;
  border-radius: 26px !important;
  padding: 2.85rem 2.15rem !important;
  box-shadow: 0 10px 30px rgba(44, 34, 26, 0.04), inset 0 1px 0 #FFFFFF !important;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pricing-card:not(.featured):hover {
  transform: translateY(-6px) !important;
  border-color: rgba(224, 109, 83, 0.4) !important;
  box-shadow: 0 20px 48px rgba(44, 34, 26, 0.08) !important;
}

/* 9. Closing CTA Banner — Glowing Midnight Aura */
.cta-box {
  background: linear-gradient(145deg, #241B16 0%, #16110E 100%) !important;
  border: 1.5px solid rgba(212, 163, 115, 0.35) !important;
  border-radius: 34px !important;
  padding: 4.85rem 3rem !important;
  box-shadow: 0 30px 80px rgba(25, 18, 14, 0.35) !important;
  color: #FFFFFF !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(224, 109, 83, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.cta-badge {
  background: rgba(224, 109, 83, 0.22) !important;
  color: #FFB088 !important;
  border: 1px solid rgba(255, 176, 136, 0.35) !important;
  border-radius: 999px !important;
  padding: 0.42rem 1.15rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.cta-box h2 {
  font-family: var(--font-serif) !important;
  font-size: 2.9rem !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  margin-bottom: 1.35rem !important;
  line-height: 1.2 !important;
}

.cta-box p {
  color: #D6C8BE !important;
  max-width: 640px !important;
  margin: 0 auto 2.6rem !important;
  font-size: 1.12rem !important;
  line-height: 1.72 !important;
}

/* 10. Footer — Luxury Midnight Baseline */
.app-footer {
  background: #17120F !important;
  color: #FAF6F0 !important;
  border-top: 1px solid rgba(224, 109, 83, 0.2) !important;
  padding: 4.5rem 0 3rem !important;
}

.footer-tagline, .copyright {
  color: #A89B91 !important;
}

.footer-col-links h4 {
  color: #FFB088 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 1.25rem !important;
}

.footer-link {
  color: #D6C8BE !important;
  transition: color 0.2s ease !important;
}

.footer-link:hover {
  color: #FFFFFF !important;
}

/* ==========================================================================
   BESPOKE EDITORIAL OVERHAUL (KILLING THE AI TEMPLATE LOOK)
   ========================================================================== */

/* Seductive Hero Soft Focus */
.hero-card-img.stage-0 { filter: blur(9px) contrast(1.05) brightness(1.03) !important; }
.hero-card-img.stage-1 { filter: blur(6px) contrast(1.03) brightness(1.02) !important; }
.hero-card-img.stage-2 { filter: blur(3px) contrast(1.01) brightness(1.01) !important; }
.hero-card-img.stage-3 { filter: blur(0px) brightness(1.0) !important; transform: scale(1.02); }

.hero-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B84724;
  background: rgba(224, 109, 83, 0.1);
  border: 1px solid rgba(224, 109, 83, 0.25);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

/* Asymmetrical Modern Rhythm Header */
.rhythm-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid rgba(225, 205, 190, 0.6);
  padding-bottom: 2rem;
}

.rhythm-editorial-title {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  font-weight: 600;
  color: #1F1814;
  margin-top: 0.4rem;
  line-height: 1.15;
}

.editorial-kicker-clean {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D9623F;
}

.rhythm-lead-text {
  font-size: 1.1rem;
  color: #5C4F46;
  max-width: 480px;
  line-height: 1.7;
}

.rhythm-flow-container {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 2.25rem;
  align-items: stretch;
}

.rhythm-card {
  background: #FFFFFF;
  border: 1px solid rgba(225, 205, 190, 0.65);
  border-radius: 28px;
  padding: 2.4rem 2.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 32px rgba(44, 34, 26, 0.05), inset 0 1px 0 #FFFFFF;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.rhythm-card:hover {
  transform: translateY(-8px);
  border-color: rgba(224, 109, 83, 0.5);
  box-shadow: 0 24px 55px rgba(224, 109, 83, 0.15);
}

.rhythm-card-focal {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F4 100%);
  border: 1.5px solid rgba(224, 109, 83, 0.45);
  box-shadow: 0 16px 45px rgba(224, 109, 83, 0.12), inset 0 1px 0 #FFFFFF;
  transform: translateY(-6px);
}

.rhythm-card-focal:hover {
  transform: translateY(-12px);
  box-shadow: 0 28px 65px rgba(224, 109, 83, 0.22);
}

.rhythm-card-visual {
  margin-bottom: 1.75rem;
}

.rhythm-avatars-pair {
  position: relative;
  display: flex;
  align-items: center;
  height: 85px;
}

.rhythm-avatar-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFFFFF;
  box-shadow: 0 8px 24px rgba(44, 34, 26, 0.14);
}

.rhythm-avatar-photo.photo-2 {
  margin-left: -24px;
  border-color: #FAF5EE;
}

.rhythm-sunrise-stamp {
  margin-left: 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #B84724;
  background: rgba(224, 109, 83, 0.1);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(224, 109, 83, 0.22);
}

.rhythm-taps-display {
  display: flex;
  gap: 0.85rem;
}

.tap-circle-indicator {
  flex: 1;
  background: linear-gradient(135deg, #FFF4ED 0%, #FDE7D8 100%);
  border: 1.5px solid rgba(224, 109, 83, 0.3);
  border-radius: 20px;
  padding: 0.95rem 0.5rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(224, 109, 83, 0.12);
  transition: transform 0.25s ease;
}

.tap-circle-indicator:hover {
  transform: translateY(-2px);
}

.tap-circle-indicator span {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #B84724;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.tap-circle-indicator small {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8A4322;
}

.rhythm-polaroid-trio {
  display: flex;
  gap: 0.6rem;
}

.polaroid-mini {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #FFFFFF;
  box-shadow: 0 6px 18px rgba(44, 34, 26, 0.12);
  background: #EAE3DA;
  transition: transform 0.25s ease;
}

.polaroid-mini:hover {
  transform: scale(1.05);
}

.polaroid-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rhythm-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.rhythm-num {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #D9623F;
  line-height: 1;
}

.rhythm-badge-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B84724;
  background: rgba(224, 109, 83, 0.08);
  border: 1px solid rgba(224, 109, 83, 0.22);
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
}

.rhythm-badge-pill.focal-pill {
  background: #B84724;
  color: #FFFFFF;
  border-color: #B84724;
}

.rhythm-card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #1F1814;
  margin-bottom: 0.85rem;
}

.rhythm-card p {
  font-size: 0.95rem;
  color: #5C5047;
  line-height: 1.7;
}

/* ==========================================================================
   VELVET MIDNIGHT SANCTUARY (SECTION 3)
   ========================================================================== */
.velvet-midnight-section {
  background: #140F0D !important;
  color: #FAF5EE !important;
  padding: 6.5rem 0 !important;
  position: relative;
  overflow: hidden;
}

.velvet-midnight-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 10%, rgba(224, 109, 83, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.velvet-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 2;
}

.velvet-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D4A373;
  margin-bottom: 0.85rem;
}

.velvet-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.velvet-sub {
  font-size: 1.12rem;
  color: #D4C6BC;
  line-height: 1.75;
}

.velvet-manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  position: relative;
  z-index: 2;
}

.velvet-card {
  background: linear-gradient(160deg, #221A16 0%, #17120F 100%);
  border: 1px solid rgba(212, 163, 115, 0.28);
  border-radius: 26px;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.velvet-card:hover {
  transform: translateY(-8px);
  border-color: #D4A373;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 163, 115, 0.2);
}

.velvet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
}

.velvet-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: #D4A373;
  line-height: 1;
}

.velvet-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFB088;
  background: rgba(224, 109, 83, 0.16);
  border: 1px solid rgba(255, 176, 136, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.velvet-card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.95rem;
  line-height: 1.3;
}

.velvet-card p {
  font-size: 0.95rem;
  color: #CFC1B5;
  line-height: 1.72;
  margin-bottom: 1.75rem;
}

.velvet-card-footer {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 700;
  color: #E8DDD3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.velvet-check {
  color: #D4A373;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .rhythm-hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .rhythm-flow-container,
  .velvet-manifesto-grid {
    grid-template-columns: 1fr;
  }
}



