/* ============================================================
   DateRhythm Marketing Website -- Complete Stylesheet
   ============================================================ */

/* ----- Reset and Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #1A2B1D;
  background-color: #EEEAE3;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: opacity 0.2s ease; }
a:hover { opacity: 0.85; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ----- Design Tokens ----- */
:root {
  --sage-dark: #1A2B1D;
  --greige: #EEEAE3;
  --sage-accent: #4E6B54;
  --sage-bright: #8FB896;
  --sage-soft: #E4E8E4;
  --white: #FFFFFF;
  --radius-pill: 99px;
  --radius-card: 16px;
  --radius-phone: 40px;
  --transition: 0.3s ease;
}

/* ----- Typography ----- */
.h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.3;
}

.p { font-size: 16px; line-height: 1.65; }
.p-large { font-size: 18px; line-height: 1.7; }

.text-color_white { color: var(--white); }
.text-color_dark { color: var(--sage-dark); }
.text-color_sage-bright { color: var(--sage-bright); }
.text-color_white-70 { color: rgba(255,255,255,0.7); }
.text-align-center { text-align: center; }
.text-wrap-balance { text-wrap: balance; }
.max-width_832px { max-width: 832px; margin-left: auto; margin-right: auto; }
.max-width_950px { max-width: 950px; margin-left: auto; margin-right: auto; }
.margin-top_32px { margin-top: 32px; }
.margin-top_48px { margin-top: 48px; }
.margin-top_64px { margin-top: 64px; }
.margin-top_128px { margin-top: 128px; }
.overflow-hidden { overflow: hidden; }
.rotate_180 { transform: rotate(180deg); }

/* ----- Container ----- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 767px) {
  .container { padding: 0 20px; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background-color: rgba(26, 43, 29, 0.95);
  backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}

.navbar.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 450;
  font-size: 22px;
  letter-spacing: 0.5px;
  font-variation-settings: 'opsz' 72, 'SOFT' 30, 'WONK' 0;
  color: var(--white);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  opacity: 0.85;
}

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

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  opacity: 1;
}

.button-accent {
  background-color: var(--sage-bright);
  color: var(--sage-dark);
}

.button.is--signup {
  background-color: var(--sage-dark);
  color: var(--white);
}

.button.is--login {
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.button-outline {
  background-color: transparent;
  color: var(--sage-bright);
  border: 1.5px solid var(--sage-bright);
}

.wide_button { min-width: 220px; }

.button-outline-dark {
  background-color: transparent;
  color: var(--sage-dark);
  border: 1.5px solid var(--sage-dark);
}

.download-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-text > .button { align-self: flex-start; }

.app-button {
  background-color: rgba(255,255,255,0.1);
  color: var(--white);
  padding: 10px 20px;
  font-size: 14px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  min-height: min(calc(100vh - 160px), 700px);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-text-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(143,184,150,0.15);
  border: 1px solid rgba(143,184,150,0.25);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  width: fit-content;
}

.social-proof-img { width: 80px; height: auto; }

.hero-disclaimer { font-size: 14px; }

.hero-home-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

/* ----- Hero Single Full-Frame Device ----- */

/*
 * Source truth: Remotion PhoneFrame = 340×700px bezel, 9:19.5 screen.
 * We render at native 340×700 internally and use transform:scale()
 * to fill the available space, preserving exact proportions.
 */
.hero-device {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.device-bezel {
  /* Native Remotion dimensions */
  width: 340px;
  height: 700px;
  border-radius: 44px;
  background: #1A1A1A;
  padding: 8px;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  /* Scale up to fill hero — use transform to keep pixel-perfect proportions */
  transform: scale(var(--device-scale, 0.92));
  transform-origin: top center;
}

.device-island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  border-radius: 14px;
  background: #000;
  z-index: 5;
}

.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #EEEAE3;
  position: relative;
  font-family: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  color: #374151;
  /* Internal font size at native 340px width — all child elements use em or px */
  font-size: 14px;
}

/* Carousel dots */
.hero-carousel-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
  background: var(--sage-bright);
  transform: scale(1.3);
}

/* Bottom fade so device dissolves into hero bg */
.device-bezel::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -10px;
  right: -10px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--sage-dark));
  pointer-events: none;
  z-index: 10;
  border-radius: 0 0 44px 44px;
}

/* Scale breakpoints — device fills right column */
:root { --device-scale: 0.82; }

@media (min-width: 1440px) {
  :root { --device-scale: 0.88; }
}

@media (max-width: 991px) {
  :root { --device-scale: 0.65; }
}

@media (max-width: 767px) {
  :root { --device-scale: 0.55; }
}

/* ============================================================
   HERO PHONE ANIMATION INTERNALS
   Native 340×700 coordinate system (matches Remotion source)
   ============================================================ */

/* --- Shared: Immersive Header Card --- */
.anim-header {
  background: #1A2B1D;
  border-radius: 20px;
  padding: 20px;
  margin: 0 16px 12px;
}
.anim-header-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: #FFF;
  line-height: 1.2;
}
.anim-header-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* --- Shared: Pill Navbar --- */
.anim-navbar {
  position: absolute;
  bottom: 8px;
  left: 16px;
  right: 16px;
  height: 48px;
  border-radius: 24px;
  background: #1A2B1D;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 16px;
}
.anim-navbar svg { width: 20px; height: 20px; }

/* --- Shared: Status Bar --- */
.anim-statusbar {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ============================================================
   COACH CONVERSATION ANIMATION
   ============================================================ */
.coach-anim {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.coach-messages {
  flex: 1;
  overflow: hidden;
  padding: 0 16px;
  position: relative;
}
.coach-messages-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 2.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.coach-bubble, .user-bubble {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.coach-bubble.visible, .user-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}
.user-bubble {
  display: flex;
  justify-content: flex-end;
}
.user-bubble-text {
  max-width: 72%;
  background: #1A2B1D;
  border-radius: 14px 3px 14px 14px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #FFF;
}
.coach-bubble {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.coach-avatar {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: #1A2B1D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 20px;
}
.coach-avatar span {
  font-size: 12px;
  font-weight: 600;
  color: #FFF;
}
.coach-bubble-content {
  max-width: 78%;
  display: flex;
  flex-direction: column;
}
.coach-bubble-label {
  font-size: 9px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.coach-bubble-text {
  background: #FFFFFF;
  border-radius: 3px 14px 14px 14px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.typing-indicator.visible { opacity: 1; }
.typing-dots {
  background: #FFFFFF;
  border-radius: 3px 14px 14px 14px;
  padding: 10px 14px;
  display: flex;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 3.5px;
  background: #9CA3AF;
  animation: typingPulse 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Coach input bar */
.coach-input-bar {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  padding: 24px 12px 8px;
  background: linear-gradient(transparent, #EEEAE3 35%);
}
.coach-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.coach-input-field {
  flex: 1;
  height: 36px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #FFF;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 11px;
  color: #9CA3AF;
}
.coach-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: #1A2B1D;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coach-send-btn svg { width: 14px; height: 14px; }

/* ============================================================
   SWIPE MATCH ANIMATION
   ============================================================ */
.swipe-anim {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  align-items: center;
}
.swipe-name-label {
  font-size: 18px;
  font-weight: 600;
  color: #1A2B1D;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 4px;
  transition: opacity 0.5s ease;
}
.swipe-counter {
  font-size: 17px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  margin-bottom: 16px;
}
.swipe-card-area {
  position: relative;
  width: 280px;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swipe-card {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: none;
}
.swipe-card.swiping-left {
  animation: swipeLeft 0.6s ease-in forwards;
}
.swipe-card.swiping-right {
  animation: swipeRight 0.6s ease-in forwards;
}
.swipe-card.bg-card {
  transform: scale(0.95) translateY(4px);
  opacity: 0.85;
  z-index: 0;
}
.swipe-card.bg-card.promoted {
  animation: promoteCard 0.4s ease-out forwards;
}

@keyframes swipeLeft {
  0% { transform: translateX(0) rotate(0); opacity: 1; }
  100% { transform: translateX(-150%) rotate(-15deg); opacity: 0; }
}
@keyframes swipeRight {
  0% { transform: translateX(0) rotate(0); opacity: 1; }
  100% { transform: translateX(150%) rotate(15deg); opacity: 0; }
}
@keyframes promoteCard {
  0% { transform: scale(0.95) translateY(4px); opacity: 0.85; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.swipe-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: #E4E8E4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swipe-card-icon svg { width: 32px; height: 32px; }
.swipe-card-title {
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  text-align: center;
}
.swipe-card-desc {
  font-size: 13px;
  color: #6B7280;
  text-align: center;
  line-height: 1.5;
  padding: 0 8px;
}
.swipe-card-chips {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.swipe-chip {
  background: #E4E8E4;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

/* Swipe overlay stamps */
.swipe-stamp {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}
.swipe-stamp.like {
  right: 16px;
  color: #34C759;
  border: 3px solid #34C759;
  transform: rotate(-15deg);
}
.swipe-stamp.nope {
  left: 16px;
  color: #FF3B30;
  border: 3px solid #FF3B30;
  transform: rotate(15deg);
}
.swipe-stamp.flash { animation: stampFlash 0.5s ease-out forwards; }

@keyframes stampFlash {
  0% { opacity: 0; transform: rotate(var(--stamp-rotate, 15deg)) scale(1.3); }
  40% { opacity: 1; }
  100% { opacity: 1; transform: rotate(var(--stamp-rotate, 15deg)) scale(1); }
}

/* Action buttons */
.swipe-actions {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-top: 16px;
}
.swipe-btn {
  border-radius: 50%;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.15s ease;
}
.swipe-btn.nope-btn { width: 56px; height: 56px; }
.swipe-btn.like-btn { width: 72px; height: 72px; }
.swipe-btn.pressed { transform: scale(0.85); }
.swipe-btn svg { pointer-events: none; }

/* Match reveal overlay */
.match-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.5s ease;
  border-radius: 36px;
  overflow: hidden;
}
.match-overlay.visible {
  opacity: 1;
  backdrop-filter: blur(12px);
  background: rgba(26,43,29,0.6);
}
.match-heart {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: #1A2B1D;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: matchPulse 1.5s ease-in-out infinite;
}
@keyframes matchPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.match-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #FFF;
}
.match-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  text-align: center;
}
.match-idea-box {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.match-idea-icon {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: #8FB896;
  display: flex;
  align-items: center;
  justify-content: center;
}
.match-idea-text {
  font-size: 15px;
  font-weight: 600;
  color: #FFF;
}
.match-cta {
  margin-top: 8px;
  background: #8FB896;
  border-radius: 26px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #FFF;
}

/* Confetti */
.confetti-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  animation: confettiFall 1.5s ease-out forwards;
  z-index: 25;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--cx, 0), var(--cy, 100px)) rotate(var(--cr, 360deg)); }
}

/* ============================================================
   CALENDAR AVAILABILITY ANIMATION
   ============================================================ */
.cal-anim {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.cal-body {
  flex: 1;
  padding: 0 16px;
  overflow: hidden;
}
.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin-bottom: 8px;
}
.cal-month-label {
  font-size: 17px;
  font-weight: 600;
  color: #374151;
}
.cal-month-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}
.cal-month-arrow svg { width: 14px; height: 14px; }
.cal-week-strip {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.cal-day-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cal-day-abbr {
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 500;
}
.cal-day-num {
  width: 34px;
  height: 34px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
}
.cal-day-num.today {
  background: #1A2B1D;
  color: #FFF;
}
.cal-day-num.tapped {
  background: rgba(26,43,29,0.15);
  transform: scale(0.88);
}
.cal-day-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
  opacity: 0;
  transform: scale(0);
}
.cal-day-dot.one-free {
  border: 1.5px solid #8FB896;
  opacity: 1;
  transform: scale(1);
}
.cal-day-dot.both-free {
  background: #8FB896;
  opacity: 1;
  transform: scale(1);
}
.cal-day-dot.booked {
  background: #1A2B1D;
  opacity: 1;
  transform: scale(1);
}

/* Calendar legend */
.cal-legend {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6B7280;
}
.cal-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
}

/* Calendar availability card */
.cal-avail-card {
  background: #FFF;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cal-avail-title {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}
.cal-avail-desc {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.4;
}

/* Bottom sheet */
.cal-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFF;
  border-radius: 20px 20px 0 0;
  padding: 16px 20px 64px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.1);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 10;
}
.cal-sheet.open { transform: translateY(0); }
.cal-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #E5E7EB;
  margin: 0 auto 16px;
}
.cal-sheet-title {
  font-size: 17px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.cal-sheet-partner {
  font-size: 12px;
  color: #8FB896;
  margin-bottom: 8px;
  font-weight: 500;
}
.cal-slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.cal-slot {
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  background: #F5F3EF;
  color: #374151;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.cal-slot.selected {
  background: #1A2B1D;
  color: #FFF;
}
.cal-slot.partner-slot {
  background: #8FB896;
  color: #FFF;
}
.cal-sheet-cta {
  width: 100%;
  height: 48px;
  border-radius: 26px;
  background: #E4E8E4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #9CA3AF;
  transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
}
.cal-sheet-cta.active {
  background: #1A2B1D;
  color: #FFF;
}
.cal-sheet-cta.pressed { transform: scale(0.95); }

/* Notification toast */
.cal-toast {
  position: absolute;
  top: 54px;
  left: 12px;
  right: 12px;
  background: #FFF;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 15;
  transform: translateY(-60px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
}
.cal-toast.visible {
  transform: translateY(0);
  opacity: 1;
}
.cal-toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: #1A2B1D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cal-toast-icon svg { width: 16px; height: 16px; }
.cal-toast-app {
  font-size: 11px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cal-toast-msg {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

/* AI suggestion overlay */
.cal-ai-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.5s ease;
  border-radius: 36px;
  overflow: hidden;
}
.cal-ai-overlay.visible {
  opacity: 1;
  backdrop-filter: blur(10px);
  background: rgba(26,43,29,0.6);
}
.cal-ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cal-ai-loading.visible { opacity: 1; }
.cal-ai-sparkle {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: #1A2B1D;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sparkleRotate 2s linear infinite;
}
.cal-ai-sparkle svg { width: 24px; height: 24px; }
@keyframes sparkleRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cal-ai-loading-text {
  font-size: 22px;
  font-weight: 600;
  color: #FFF;
}
.cal-ai-shimmer {
  width: 200px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-200px); }
  100% { transform: translateX(200px); }
}

.cal-ai-card {
  background: #FFF;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 90%;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.cal-ai-card.visible {
  opacity: 1;
  transform: scale(1);
}
.cal-ai-badge {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: #8FB896;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-ai-badge svg { width: 28px; height: 28px; }
.cal-ai-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8FB896;
}
.cal-ai-title {
  font-size: 22px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  line-height: 1.3;
}
.cal-ai-desc {
  font-size: 14px;
  color: #6B7280;
  text-align: center;
  line-height: 1.4;
}
.cal-ai-chips {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.cal-ai-cta {
  margin-top: 8px;
  width: 100%;
  height: 48px;
  border-radius: 26px;
  background: #1A2B1D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #FFF;
  transition: transform 0.15s ease;
}
.cal-ai-cta.pressed { transform: scale(0.95); }

/* Phone Placeholder */
.phone-placeholder {
  width: 280px;
  height: 560px;
  background: linear-gradient(160deg, rgba(143,184,150,0.2), rgba(78,107,84,0.3));
  border: 1px solid rgba(143,184,150,0.3);
  border-radius: var(--radius-phone);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
}

.phone-placeholder-label {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
}

.phone-placeholder-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

.phone-placeholder-mini {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: linear-gradient(160deg, rgba(143,184,150,0.15), rgba(78,107,84,0.25));
  border: 1px solid rgba(143,184,150,0.2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section {
  padding: 120px 0;
}

.padding-xlarge { padding: 140px 0; }

.background-color_sage-dark { background-color: var(--sage-dark); }
.background-color_greige { background-color: var(--greige); }
.background-color_sage-soft { background-color: var(--sage-soft); }
.background-color_white { background-color: var(--white); }

.flex-vertical {
  display: flex;
  flex-direction: column;
}

.flex-horizontal {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.vertical-align-center { align-items: center; }

.align-center { align-items: center; }

.gap_16px { gap: 16px; }
.gap_48px { gap: 48px; }
.gap_80px { gap: 80px; }

.text-center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* ============================================================
   SOCIAL PROOF SLIDER
   ============================================================ */
.social-proof-slide {
  width: auto !important;
}

.social-proof-card {
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(26,43,29,0.06);
}

.social-proof-card-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.social-proof-card > div:last-child {
  padding: 20px;
}

.social-proof-name {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 4px;
}

.social-proof-title {
  font-size: 14px;
  color: rgba(26,43,29,0.6);
}

.marquee-swiper-wrapper {
  transition-timing-function: linear !important;
}

/* ============================================================
   FEATURE TABS + CARD SLIDERS
   ============================================================ */
.tabs-container {
  width: 100%;
  margin-top: 48px;
}

.pricing-tabs-menu {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: fit-content;
  margin: 0 auto 48px;
  border: 1px solid rgba(26,43,29,0.1);
}

.pricing-tab {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: rgba(26,43,29,0.6);
  transition: all var(--transition);
  background: transparent;
}

.pricing-tab.active {
  background-color: var(--sage-dark);
  color: var(--white);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.tab-pane { position: relative; }

.overflow-slider { overflow: hidden; }

.overflow-swiper-slide {
  width: auto;
}

.overflow-slider-card {
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
  width: 380px;
  display: flex;
  flex-direction: column;
  height: 520px;
}

.overflow-slider-card .img-100 {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 0;
  flex-shrink: 0;
}

.card-text-block {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-bg-dark { background-color: var(--sage-dark); }
.card-bg-sage { background-color: var(--sage-accent); }
.card-bg-warm { background-color: #5C4033; }
.card-bg-greige { background-color: #B8AFA6; }

/* Swiper Arrows */
.swiper-arrows {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.arrow-prev, .arrow-next,
.overflow-swiper-arrow, .arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(26,43,29,0.2);
  background: transparent;
  color: var(--sage-dark);
  cursor: pointer;
  transition: all var(--transition);
}

.arrow-prev:hover, .arrow-next:hover,
.overflow-swiper-arrow:hover, .arrow-btn:hover {
  background-color: var(--sage-dark);
  color: var(--white);
  border-color: var(--sage-dark);
  opacity: 1;
}

.text-color_white .arrow-prev,
.text-color_white .arrow-next {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.swiper-button-next, .swiper-button-prev { display: none; }

/* ============================================================
   APP DEMO VIDEO GRID
   ============================================================ */
.demo-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 64px;
  max-width: 900px;
}

.demo-video-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.demo-video-wrapper {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.demo-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-card);
}

.demo-video-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--sage-dark);
}

/* ============================================================
   PHONE MOCKUP CARDS
   ============================================================ */
.profile-card-slide { width: auto !important; }

.marketing-bio-card {
  width: 260px;
  border-radius: 28px;
  overflow: hidden;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bio-card-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.card-bg-greige .bio-card-label { color: var(--sage-dark); }

.mobile_only { display: none; }

/* ============================================================
   FEATURE HIGHLIGHTS (alternating sections)
   ============================================================ */
.feature-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-image {
  flex: 1;
}

.img-100 {
  width: 100%;
  border-radius: var(--radius-card);
}

.video-rounded { border-radius: var(--radius-card); }

/* ----- Image fade/blend overlays (matching app onboarding style) ----- */
.feature-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  pointer-events: none;
}

/* Fade to greige (light sections) */
.background-color_greige .feature-image::after,
.background-color_sage-soft .feature-image::after,
.background-color_white .feature-image::after {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 50%,
    rgba(238, 234, 227, 0.3) 70%,
    rgba(238, 234, 227, 0.7) 85%,
    rgba(238, 234, 227, 0.95) 100%
  );
}

/* Fade to dark sage (dark sections) */
.background-color_sage-dark .feature-image::after {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 45%,
    rgba(26, 43, 29, 0.4) 65%,
    rgba(26, 43, 29, 0.8) 82%,
    rgba(26, 43, 29, 1) 100%
  );
}

/* Feature cards: fade bottom of image into card bg */
.overflow-slider-card {
  position: relative;
}

.overflow-slider-card .img-100 {
  position: relative;
}

.overflow-slider-card::before {
  content: '';
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  height: 160px;
  z-index: 1;
  pointer-events: none;
}

.card-bg-dark::before {
  background: linear-gradient(to bottom, transparent, var(--sage-dark));
}

.card-bg-sage::before {
  background: linear-gradient(to bottom, transparent, var(--sage-accent));
}

.card-bg-warm::before {
  background: linear-gradient(to bottom, transparent, #5C4033);
}

.overflow-slider-card .card-text-block {
  position: relative;
  z-index: 2;
}

/* Social proof cards: subtle bottom fade */
.social-proof-card {
  position: relative;
  overflow: hidden;
}

.social-proof-card-img {
  position: relative;
}

/* Gradient overlay removed — was bleeding over card headings */

/* Testimonial images: side fade */
.testimonial-swiper-slide {
  position: relative;
}

.testimonial-img {
  position: relative;
  mask-image: linear-gradient(to right, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
}

/* Community photo grid: bottom fade */
.community-photos {
  position: relative;
}

.grid-photo {
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-container { position: relative; }

.testimonial-swiper-slide {
  display: flex !important;
  gap: 48px;
  align-items: center;
}

.testimonial-img {
  width: 45%;
  max-height: 500px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-card);
  flex-shrink: 0;
}

.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.4;
  font-style: italic;
}

.testimonial-source-name { font-weight: 600; font-size: 17px; }
.testimonial-source-title { font-size: 14px; color: rgba(26,43,29,0.6); }

.platform-display {
  max-width: 400px;
  margin: 0 auto;
}

.platform-img {
  width: 100%;
  border-radius: var(--radius-card);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  border-radius: 24px;
  padding: 80px 64px;
  overflow: hidden;
}

.how-it-works-mobile { display: none; }

.how-it-works-desktop {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  margin-top: 48px;
}

.how-it-works-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-it-works-tab {
  padding: 24px;
  border-left: 3px solid rgba(255,255,255,0.15);
  text-align: left;
  transition: border-color var(--transition);
  cursor: pointer;
}

.how-it-works-tab.active {
  border-left-color: var(--sage-bright);
}

.how-it-works-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.how-it-works-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 15px;
  line-height: 1.6;
}

.how-it-works-tab.active .how-it-works-desc {
  max-height: 120px;
}

/* hiw-image transitions handled in phone mockup section below */

.how-it-works-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, rgba(143,184,150,0.15), rgba(78,107,84,0.25));
  border: 1px solid rgba(143,184,150,0.2);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.how-it-works-placeholder.large {
  min-height: 350px;
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 400;
  color: var(--sage-bright);
  line-height: 1;
}

/* --- How It Works: Auto-play progress bar --- */
.hiw-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--sage-bright);
  border-radius: 0 2px 2px 0;
  transition: none;
}

.hiw-progress-bar.animating {
  transition: width linear;
}

.how-it-works-tab {
  position: relative;
  overflow: hidden;
}

/* --- How It Works: Phone Mockup --- */
.hiw-phone {
  width: 280px;
  height: 570px;
  margin: 0 auto;
  border-radius: 36px;
  background: #1A1A1A;
  padding: 6px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
}

.hiw-phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  border-radius: 12px;
  background: #000;
  z-index: 5;
}

.hiw-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #EEEAE3;
  position: relative;
  font-family: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  color: #374151;
}

/* Immersive screen (dark sage bg) */
.hiw-phone-screen.immersive {
  background: #1A2B1D;
}

.hiw-phone-statusbar {
  height: 44px;
}

/* --- Screen 1: Survey --- */
.hiw-survey {
  padding: 0 16px;
  height: calc(100% - 44px);
  display: flex;
  flex-direction: column;
}

.hiw-survey-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.hiw-survey-logo svg {
  width: 28px;
  height: 28px;
}

.hiw-survey-progress {
  display: flex;
  gap: 3px;
  margin-bottom: 24px;
}

.hiw-survey-progress-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
}

.hiw-survey-progress-dot.filled {
  background: #8FB896;
}

.hiw-survey-progress-dot.active {
  background: #FFF;
}

.hiw-survey-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: #FFF;
  line-height: 1.3;
  margin-bottom: 6px;
}

.hiw-survey-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  line-height: 1.4;
}

.hiw-survey-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.hiw-survey-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  transition: all 0.4s ease;
  cursor: default;
}

.hiw-survey-option.selected {
  border-color: #8FB896;
  background: rgba(143,184,150,0.15);
}

.hiw-survey-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.hiw-survey-option.selected .hiw-survey-radio {
  border-color: #8FB896;
  background: #8FB896;
}

.hiw-survey-radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFF;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.hiw-survey-option.selected .hiw-survey-radio-inner {
  opacity: 1;
  transform: scale(1);
}

.hiw-survey-btn {
  margin-top: auto;
  margin-bottom: 16px;
  background: #FFF;
  color: #1A2B1D;
  border: none;
  border-radius: 26px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

/* --- Screen 2: Invite Code --- */
.hiw-invite {
  padding: 0 20px;
  height: calc(100% - 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hiw-invite-logo {
  margin-bottom: 32px;
}

.hiw-invite-logo svg {
  width: 48px;
  height: 48px;
}

.hiw-invite-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: #FFF;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 8px;
}

.hiw-invite-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 32px;
}

.hiw-invite-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: #FFF;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}

.hiw-invite-input.focused {
  border-color: #8FB896;
}

.hiw-invite-input .cursor {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: #8FB896;
  vertical-align: middle;
  animation: hiw-blink 1s step-end infinite;
}

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

.hiw-invite-btn {
  width: 100%;
  background: #FFF;
  color: #1A2B1D;
  border: none;
  border-radius: 26px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  transition: opacity 0.3s ease;
}

.hiw-invite-btn.disabled {
  opacity: 0.4;
}

.hiw-invite-skip {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* --- Screen 3: Calendar --- */
.hiw-calendar {
  height: calc(100% - 44px);
  overflow: hidden;
}

.hiw-cal-header {
  background: #1A2B1D;
  border-radius: 16px;
  padding: 16px;
  margin: 0 12px 12px;
}

.hiw-cal-header-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: #FFF;
  line-height: 1.2;
}

.hiw-cal-header-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* Swipe hero card */
.hiw-cal-swipe-hero {
  background: #1A2B1D;
  border-radius: 14px;
  padding: 14px;
  margin: 0 12px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hiw-cal-swipe-text {
  flex: 1;
}

.hiw-cal-swipe-title {
  font-size: 13px;
  font-weight: 600;
  color: #FFF;
  margin-bottom: 3px;
}

.hiw-cal-swipe-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  line-height: 1.3;
}

.hiw-cal-swipe-btn {
  background: #8FB896;
  color: #1A2B1D;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}

.hiw-cal-swipe-cards {
  position: relative;
  width: 48px;
  height: 56px;
  flex-shrink: 0;
}

.hiw-cal-mini-card {
  position: absolute;
  width: 36px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.hiw-cal-mini-card.back {
  top: 0;
  left: 0;
  transform: rotate(-8deg);
  color: rgba(239,83,80,0.8);
}

.hiw-cal-mini-card.front {
  top: 4px;
  left: 10px;
  transform: rotate(6deg);
  background: rgba(255,255,255,0.15);
  color: #8FB896;
}

/* Week strip */
.hiw-cal-week {
  padding: 0 12px;
  margin-bottom: 12px;
}

.hiw-cal-month-label {
  font-size: 12px;
  font-weight: 600;
  color: #1A2B1D;
  margin-bottom: 8px;
}

.hiw-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.hiw-cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hiw-cal-day-label {
  font-size: 9px;
  color: rgba(26,43,29,0.5);
  text-transform: uppercase;
  font-weight: 500;
}

.hiw-cal-day-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #1A2B1D;
}

.hiw-cal-day-num.today {
  background: #1A2B1D;
  color: #FFF;
}

.hiw-cal-day-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.hiw-cal-day-dot.booked {
  background: #8FB896;
}

.hiw-cal-day-dot.both-free {
  background: rgba(143,184,150,0.3);
  border-radius: 2px;
}

.hiw-cal-day-dot.empty {
  background: transparent;
}

/* Section headers */
.hiw-cal-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #1A2B1D;
  padding: 0 12px;
  margin-bottom: 8px;
}

/* Suggestion cards */
.hiw-cal-suggestions {
  display: flex;
  gap: 8px;
  padding: 0 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.hiw-cal-suggestion {
  flex: 0 0 auto;
  width: 120px;
  background: #FFF;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.hiw-cal-suggestion-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(143,184,150,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 16px;
}

.hiw-cal-suggestion-title {
  font-size: 11px;
  font-weight: 600;
  color: #1A2B1D;
  margin-bottom: 2px;
}

.hiw-cal-suggestion-meta {
  font-size: 9px;
  color: rgba(26,43,29,0.5);
}

/* Bottom navbar for calendar screen */
.hiw-cal-navbar {
  position: absolute;
  bottom: 6px;
  left: 12px;
  right: 12px;
  height: 44px;
  border-radius: 22px;
  background: #1A2B1D;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
}

.hiw-cal-navbar svg {
  width: 18px;
  height: 18px;
}

.hiw-cal-navbar-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw-cal-navbar-item.active svg path {
  fill: #FFF;
}

/* --- Screen transitions --- */
.how-it-works-images {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hiw-image {
  display: none;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hiw-image.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

/* Animated elements inside phone screens */
@keyframes hiw-fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hiw-animate-in {
  opacity: 0;
  animation: hiw-fadeSlideUp 0.5s ease forwards;
}

.hiw-animate-in:nth-child(1) { animation-delay: 0.1s; }
.hiw-animate-in:nth-child(2) { animation-delay: 0.2s; }
.hiw-animate-in:nth-child(3) { animation-delay: 0.3s; }
.hiw-animate-in:nth-child(4) { animation-delay: 0.4s; }
.hiw-animate-in:nth-child(5) { animation-delay: 0.5s; }
.hiw-animate-in:nth-child(6) { animation-delay: 0.6s; }

/* Survey selection animation */
@keyframes hiw-selectPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.hiw-survey-option.selecting {
  animation: hiw-selectPulse 0.3s ease;
}

/* Typing animation for invite code */
@keyframes hiw-typeChar {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hiw-typed-char {
  display: inline-block;
  animation: hiw-typeChar 0.15s ease forwards;
}

/* --- How It Works: Mobile Carousel --- */
.hiw-mobile-carousel {
  margin-top: 32px;
}

.hiw-mobile-slides {
  position: relative;
  min-height: 620px;
}

.hiw-mobile-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hiw-mobile-slide.active {
  display: flex;
  opacity: 1;
}

.hiw-mobile-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.hiw-mobile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hiw-mobile-dot.active {
  background: var(--sage-bright);
  transform: scale(1.3);
}

/* ============================================================
   COMMUNITY / CTA
   ============================================================ */
.community-photos { flex: 1; }

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-photo {
  border-radius: var(--radius-card);
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 10%;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 120px 0; }

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item-wrap {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}

.faq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  transition: background-color var(--transition);
}

.faq-head:hover { background-color: rgba(255,255,255,0.04); }

.faq-question {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
}

.toggle-arrow-faq {
  color: var(--white);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.toggle-arrow-faq.rotate { transform: rotate(180deg); }

.faq-body { display: none; }

.faq-body-text {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 100px 0 60px; }

.footer-cta {
  text-align: center;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.footer-download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.footer-content { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 48px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sage-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.footer-link:hover { color: var(--white); opacity: 1; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}

.footer-app-buttons { display: flex; gap: 12px; }

.footer-legal-text { font-size: 13px; }

/* ============================================================
   RESPONSIVE: TABLET (max-width: 991px)
   ============================================================ */
@media (max-width: 991px) {
  .nav-menu, .nav-buttons { display: none !important; }
  .nav-hamburger { display: flex; }

  .nav-menu.is-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--sage-dark);
    padding: 100px 48px 48px;
    gap: 24px;
    z-index: 999;
  }

  .nav-menu.is-open .nav-link {
    font-size: 24px;
    opacity: 1;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-text { align-items: center; }
  .hero-text > .button { align-self: center; }

  .hero-home-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }

  .flex-horizontal {
    flex-direction: column;
    gap: 48px;
  }

  .first_mobile { order: -1; }

  .section { padding: 80px 0; }
  .padding-xlarge { padding: 100px 0; }

  .how-it-works { padding: 48px 32px; }

  .overflow-slider-card { width: 320px; height: 480px; }
}

/* ============================================================
   RESPONSIVE: MOBILE (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
  .mobile_only { display: flex; }
  .hide-mobile-portrait { display: none !important; }
  .how-it-works-mobile { display: block; }
  .how-it-works-desktop { display: none; }

  .testimonial-swiper-slide {
    flex-direction: column;
    gap: 24px;
  }

  .testimonial-img { width: 100%; max-height: 300px; }

  .photo-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .grid-photo { height: 180px; }

  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .how-it-works { padding: 40px 20px; }
}

/* ============================================================
   RESPONSIVE: SMALL MOBILE (max-width: 479px)
   ============================================================ */
@media (max-width: 479px) {
  .nav-container { padding: 0 20px; }
  .overflow-slider-card { width: 85vw; height: 520px; }
  .social-proof-card { width: 280px; }
  .social-proof-card-img { width: 280px; height: 320px; }
  .marketing-bio-card { width: 200px; }
  .phone-placeholder { width: 220px; height: 440px; }
  .demo-video-grid { grid-template-columns: 1fr; max-width: 320px; }
}

/* ============================================================
   SWIPER OVERRIDES
   ============================================================ */
.swiper-wrapper { overflow: visible !important; }
.swiper-slide { height: auto; }
.swiper-pagination { display: none; }

/* Selection */
::selection {
  background-color: rgba(143, 184, 150, 0.3);
  color: var(--sage-dark);
}
