/* CouplesGPT — Custom Styles */

/* ─── Theme Variables ─────────────────────────────────────────────────────── */
:root {
  /* Background scale */
  --bg-primary: 10 10 10;
  --bg-secondary: #141414;
  --bg-tertiary: #1e1e1e;
  --bg-elevated: #262626;
  --bg-hover: #2a2a2a;

  /* White channel — used by Tailwind for bg-white/5 etc. */
  --color-white: 255 255 255;

  /* Zinc scale */
  --zinc-50: #fafafa;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-700: #3f3f46;

  /* Accent colors */
  --accent-rose: 244 63 94;
  --accent-rose-dark: 225 29 72;
  --accent-rose-light: 251 113 133;
  --accent-warm: 251 146 60;
  --accent-purple: 167 139 250;
  --accent-blue: 96 165 250;

  /* Overlays */
  --overlay-5: rgba(255, 255, 255, 0.05);
  --overlay-6: rgba(255, 255, 255, 0.06);
  --overlay-8: rgba(255, 255, 255, 0.08);
  --overlay-10: rgba(255, 255, 255, 0.1);
  --overlay-15: rgba(255, 255, 255, 0.15);
  --overlay-hover: rgba(255, 255, 255, 0.06);

  /* Glass */
  --glass-bg: rgba(30, 30, 30, 0.95);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-strong-bg: rgba(20, 20, 20, 0.97);
  --glass-strong-border: rgba(255, 255, 255, 0.08);

  /* Input */
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-border: rgba(255, 255, 255, 0.08);
  --input-focus-bg: rgba(255, 255, 255, 0.06);

  /* Scrollbar */
  --scrollbar-thumb: #333;
  --scrollbar-hover: #555;

  /* Shimmer */
  --shimmer-mid: rgba(255, 255, 255, 0.04);

  /* Code / markdown */
  --code-bg: rgba(255, 255, 255, 0.08);

  /* Modal */
  --modal-overlay: rgba(0, 0, 0, 0.75);

  /* Btn secondary */
  --btn-sec-bg: rgba(255, 255, 255, 0.06);
  --btn-sec-border: rgba(255, 255, 255, 0.08);
  --btn-sec-hover-bg: rgba(255, 255, 255, 0.1);
  --btn-sec-hover-border: rgba(255, 255, 255, 0.15);
}

.static-landing-fallback {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: rgb(var(--bg-primary, 10 10 10));
  color: var(--zinc-50, #fafafa);
}

.static-landing-fallback section {
  max-width: 760px;
}

.static-landing-fallback p:first-child {
  margin: 0 0 14px;
  color: rgb(var(--accent-rose, 232 121 160));
  font-weight: 700;
}

.static-landing-fallback h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.static-landing-fallback h1 + p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--zinc-300, #d4d4d8);
  font-size: 1.1rem;
  line-height: 1.65;
}

.static-landing-fallback nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.static-landing-fallback a {
  color: var(--zinc-50, #fafafa);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
}

:root.light {
  --bg-primary: 250 250 250;
  --bg-secondary: #f4f4f5;
  --bg-tertiary: #e4e4e7;
  --bg-elevated: #d4d4d8;
  --bg-hover: #d4d4d8;

  --color-white: 24 24 27;

  --zinc-50: #18181b;
  --zinc-200: #27272a;
  --zinc-300: #3f3f46;
  --zinc-400: #52525b;
  --zinc-500: #71717a;
  --zinc-700: #a1a1aa;

  --accent-rose: 225 29 72;
  --accent-rose-dark: 190 18 60;
  --accent-rose-light: 244 63 94;
  --accent-warm: 234 88 12;
  --accent-purple: 124 58 237;
  --accent-blue: 37 99 235;

  --overlay-5: rgba(0, 0, 0, 0.04);
  --overlay-6: rgba(0, 0, 0, 0.05);
  --overlay-8: rgba(0, 0, 0, 0.06);
  --overlay-10: rgba(0, 0, 0, 0.08);
  --overlay-15: rgba(0, 0, 0, 0.12);
  --overlay-hover: rgba(0, 0, 0, 0.05);

  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-strong-bg: rgba(255, 255, 255, 0.97);
  --glass-strong-border: rgba(0, 0, 0, 0.1);

  --input-bg: rgba(0, 0, 0, 0.03);
  --input-border: rgba(0, 0, 0, 0.1);
  --input-focus-bg: rgba(0, 0, 0, 0.05);

  --scrollbar-thumb: #c4c4c4;
  --scrollbar-hover: #a0a0a0;

  --shimmer-mid: rgba(0, 0, 0, 0.04);

  --code-bg: rgba(0, 0, 0, 0.06);

  --modal-overlay: rgba(0, 0, 0, 0.4);

  --btn-sec-bg: rgba(0, 0, 0, 0.05);
  --btn-sec-border: rgba(0, 0, 0, 0.1);
  --btn-sec-hover-bg: rgba(0, 0, 0, 0.08);
  --btn-sec-hover-border: rgba(0, 0, 0, 0.15);
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

#root {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

@supports (height: 100dvh) {
  html,
  body,
  #root {
    height: 100dvh;
  }
}

body {
  background: rgb(var(--bg-primary));
  color: var(--zinc-50);
  font-family: system-ui, -apple-system, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-hover);
}

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

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

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

@keyframes authToastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(244, 63, 94, 0.3); }
  50% { box-shadow: 0 0 30px rgba(244, 63, 94, 0.5); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
}

@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

.animate-slide-left {
  animation: slideInLeft 0.3s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.3s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.2s ease-out;
}

.animate-heartbeat {
  animation: heartbeat 1.5s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Word-by-word streaming fade-in */
@keyframes wordFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.word-new {
  animation: wordFadeIn 150ms ease-out;
}

/* Typing indicator */
.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zinc-400);
  display: inline-block;
  margin: 0 2px;
}
.typing-dot:nth-child(1) { animation: typing-dot 1.4s infinite 0s; }
.typing-dot:nth-child(2) { animation: typing-dot 1.4s infinite 0.2s; }
.typing-dot:nth-child(3) { animation: typing-dot 1.4s infinite 0.4s; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #f43f5e 0%, #fb7a4f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-rose {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
}
.ai-avatar {
  background: #e879a0;
  color: #fff;
}

.paywall-preview-heart,
.paywall-preview-heart path {
  color: #fff !important;
  fill: #fff !important;
}

.gradient-bg-warm {
  background: linear-gradient(135deg, #f43f5e 0%, #fb923c 50%, #a78bfa 100%);
}

/* Glass effect */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.glass-strong {
  background: var(--glass-strong-bg);
  border: 1px solid var(--glass-strong-border);
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: white;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fb7185, #f43f5e);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--btn-sec-bg);
  color: var(--zinc-300);
  font-weight: 500;
  border: 1px solid var(--btn-sec-border);
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: var(--btn-sec-hover-bg);
  border-color: var(--btn-sec-hover-border);
  color: var(--zinc-50);
}

/* Input styles */
.input-field {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--zinc-50);
  transition: all 0.2s ease;
}
.input-field:focus {
  outline: none;
  border-color: rgb(var(--accent-rose));
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
  background: var(--input-focus-bg);
}
.input-field::placeholder {
  color: var(--zinc-500);
}

.auth-social-block {
  position: relative;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-strong-border);
}

.auth-social-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
}

.auth-social-provider {
  height: 44px;
  width: 100%;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.auth-social-provider:disabled {
  pointer-events: none;
  opacity: 0.62;
}

.auth-social-provider:not(:disabled):hover {
  transform: translateY(-1px);
}

.auth-social-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-social-loading {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  opacity: 0.7;
  animation: spin 0.8s linear infinite;
}

.auth-social-provider-google {
  color: var(--zinc-800);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.auth-social-provider-google:not(:disabled):hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.auth-social-provider-apple {
  color: #fff;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.auth-social-provider-apple:not(:disabled):hover {
  background: #111;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.auth-toast {
  position: absolute;
  top: calc(100% + 0.72rem);
  left: 50%;
  z-index: 80;
  width: min(100%, 390px);
  transform: translateX(-50%);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.62rem 0.8rem;
  border-radius: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: authToastIn 0.18s ease;
}

.auth-toast::before {
  content: '';
  flex: 0 0 auto;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgb(var(--accent-rose));
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.auth-toast-warn {
  color: #3f3f46;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16),
              0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

/* Paywall data-control tooltip */
.paywall-tooltip-wrap {
  position: relative;
}
.paywall-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.625rem);
  width: min(18rem, calc(100vw - 2rem));
  transform: translateX(-50%) translateY(0.25rem);
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.875rem;
  background: var(--glass-strong-bg);
  color: var(--zinc-300);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 30;
}
.paywall-tooltip-wrap:hover .paywall-tooltip,
.paywall-tooltip-wrap:focus-within .paywall-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Chat message styles */
.message-user {
  background: rgba(244, 63, 94, 0.08);
  border-left: 3px solid rgb(var(--accent-rose));
}

.message-partner {
  background: rgba(167, 139, 250, 0.08);
  border-left: 3px solid rgb(var(--accent-purple));
}

.message-ai {
  background: transparent;
}

/* Sidebar conversation item */
.conv-item {
  transition: all 0.15s ease;
  border-radius: 8px;
}
.conv-item:hover {
  background: var(--overlay-hover);
}
.conv-item.active {
  background: rgba(244, 63, 94, 0.1);
  border-right: 2px solid rgb(var(--accent-rose));
}
.conv-item.drag-above {
  box-shadow: 0 -2px 0 0 rgb(var(--accent-rose));
}
.conv-item.drag-below {
  box-shadow: 0 2px 0 0 rgb(var(--accent-rose));
}

/* Modal overlay */
.modal-overlay {
  background: var(--modal-overlay);
}

/* Onboard button glow */
.onboard-btn {
  position: relative;
  overflow: hidden;
}
.onboard-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #f43f5e, #fb923c, #a78bfa);
  border-radius: inherit;
  z-index: -1;
}
.onboard-btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-tertiary);
  border-radius: inherit;
  z-index: -1;
}

/* Markdown-like content styles */
.ai-content p {
  margin-bottom: 0.75em;
}
.ai-content p:last-child {
  margin-bottom: 0;
}
.ai-content strong {
  color: var(--zinc-50);
  font-weight: 600;
}
.ai-content em {
  color: var(--zinc-300);
  font-style: italic;
}
.ai-content ul, .ai-content ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}
.ai-content li {
  margin-bottom: 0.25em;
}
.ai-content blockquote {
  border-left: 3px solid rgb(var(--accent-rose));
  padding-left: 1em;
  margin: 0.75em 0;
  color: var(--zinc-400);
  font-style: italic;
}

/* Inline session creation cards */
.session-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  margin: 0.75rem 0;
}
.session-card-couple {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.2);
}
.session-card-private {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
}
.session-card-icon {
  font-size: 0.875rem;
  flex-shrink: 0;
}
.session-card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
}
.session-card-couple .session-card-label {
  color: rgb(var(--accent-rose));
}
.session-card-private .session-card-label {
  color: rgb(var(--accent-purple));
}
.session-card-exercise {
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.2);
  cursor: default;
}
.session-card-exercise .session-card-label {
  color: #14b8a6;
}
.exercise-start-btn {
  margin-left: auto;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.exercise-start-btn:hover {
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(20, 184, 166, 0.3);
}
.session-card-topic {
  display: block;
  font-size: 0.875rem;
  color: var(--zinc-200);
}

/* Noreply nod — inline presence cue */
.noreply-nod {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  margin: 0.25rem auto;
  max-width: 32rem;
}
.noreply-nod-icon {
  font-size: 0.875rem;
  flex-shrink: 0;
}
.noreply-nod-text {
  font-size: 0.8125rem;
  color: var(--zinc-400);
  font-style: italic;
  text-align: center;
  line-height: 1.4;
}

/* Loading shimmer */
.shimmer {
  background: linear-gradient(90deg, transparent 0%, var(--shimmer-mid) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Responsive */
@media (min-width: 1536px) {
  html { font-size: 115%; }
}
@media (max-width: 768px) {
  .chat-layout {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
  }

  .sidebar-responsive {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(18rem, calc(100vw - 2.25rem));
    max-width: calc(100vw - 2.25rem);
    height: 100%;
    max-height: 100%;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: 16px 0 50px rgba(0, 0, 0, 0.32);
  }

  @supports (height: 100dvh) {
    .chat-layout,
    .sidebar-responsive {
      height: 100dvh;
      min-height: 100dvh;
      max-height: 100dvh;
    }
  }

  .sidebar-responsive .sidebar-header {
    padding-top: max(1rem, calc(env(safe-area-inset-top) + 0.75rem));
  }

  .sidebar-responsive .sidebar-footer {
    padding-bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.75rem));
  }

  .sidebar-responsive .setup-progress-card {
    border-radius: 0.875rem;
    padding: 0.875rem;
  }

  .sidebar-responsive .setup-step-row {
    align-items: flex-start;
  }

  .sidebar-responsive .setup-step-name,
  .sidebar-responsive .setup-step-status {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .sidebar-responsive .setup-step-name {
    flex: 1 1 auto;
  }

  .sidebar-responsive .setup-step-status {
    flex: 0 1 58%;
    text-align: right;
  }

  .mobile-chat-topbar {
    padding-top: max(0.75rem, calc(env(safe-area-inset-top) + 0.5rem));
  }

  .message-input-form,
  .locked-input-inner {
    padding-bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.75rem));
  }
}

@media (max-width: 360px) {
  .sidebar-responsive {
    width: min(18rem, calc(100vw - 1.25rem));
    max-width: calc(100vw - 1.25rem);
  }

  .sidebar-responsive .setup-progress-card {
    padding: 0.75rem;
  }

  .sidebar-responsive .setup-step-row {
    flex-wrap: wrap;
  }

  .sidebar-responsive .setup-step-status {
    flex-basis: 100%;
    text-align: left;
  }
}

/* Auth card floating hearts decoration */
.floating-hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ─── Landing page ───────────────────────────────────────────────────────── */

.landing-root {
  min-height: 100%;
  background: rgb(var(--bg-primary));
  color: var(--zinc-50);
  display: flex;
  flex-direction: column;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid background — was glass-strong-bg + backdrop-filter, but the
     filter caused a seizure-inducing flicker on scroll-start (browser
     re-rendering the filter every frame against the elastic-bounce
     offset). The glass-strong-bg base is already 97% opaque so visually
     near-identical. Pinning to a compositor layer with translateZ(0) +
     will-change avoids re-layout when the nav crosses pixel boundaries. */
  background: var(--glass-strong-bg);
  border-bottom: 1px solid var(--glass-strong-border);
  transform: translateZ(0);
  will-change: transform;
}

.landing-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
}

.landing-nav-brand img {
  width: 28px;
  height: 28px;
}

/* Solid brand-rose wordmark — the 3-color gradient-text reads muddy at
   nav-size; a confident single color matches the heart mark beside it. */
.landing-nav-brand-text {
  color: rgb(var(--accent-rose));
  letter-spacing: -0.01em;
}

.landing-nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}
@media (min-width: 900px) {
  .landing-nav-links { display: flex; }
}

.landing-nav-link {
  position: relative;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zinc-400);
  border-radius: 0.5rem;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.landing-nav-link:hover {
  color: var(--zinc-50);
  background: var(--overlay-5);
}

/* Active section indicator — animated underline that scales in from the
   center when scroll-spy promotes this link, and an accent-rose color
   shift. The underline lives on a pseudo-element so the transform animates
   independently from the link's own hover/color transition. */
.landing-nav-link::after {
  content: '';
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 0.125rem;
  height: 2px;
  background: rgb(var(--accent-rose));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  pointer-events: none;
}
.landing-nav-link.is-active {
  color: var(--zinc-50);
  background: var(--overlay-5);
}
.landing-nav-link.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-nav-login {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  color: var(--zinc-200);
  border: 1px solid var(--btn-sec-border);
  background: var(--btn-sec-bg);
  transition: all 0.2s ease;
}
.landing-nav-login:hover {
  background: var(--btn-sec-hover-bg);
  border-color: var(--btn-sec-hover-border);
  color: var(--zinc-50);
}

.lang-switcher-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--btn-sec-bg);
  border: 1px solid var(--btn-sec-border);
  color: var(--zinc-300);
  transition: all 0.2s ease;
}
.lang-switcher-compact:hover {
  background: var(--btn-sec-hover-bg);
  border-color: var(--btn-sec-hover-border);
  color: var(--zinc-50);
}

.lang-search-input {
  min-height: 2.5rem;
  color: var(--zinc-50);
  caret-color: rgb(var(--accent-rose));
}

.lang-search-input::placeholder {
  color: var(--zinc-500);
}

.language-settings-scroll {
  max-height: min(24rem, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
}

@media (max-width: 640px) {
  .language-settings-scroll {
    max-height: min(18rem, 48vh);
  }
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.landing-section {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  scroll-margin-top: 4.5rem;
}
@media (min-width: 768px) {
  .landing-section { padding: 5rem 2rem; }
}

.landing-section-tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.landing-hero {
  width: 100%;
  background:
    radial-gradient(60% 60% at 20% 0%, rgba(244, 63, 94, 0.10), transparent 70%),
    radial-gradient(50% 50% at 90% 30%, rgba(167, 139, 250, 0.08), transparent 70%);
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .landing-hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
}

.landing-hero-headline {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--zinc-50);
  margin-bottom: 1rem;
}

.landing-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.55;
  color: var(--zinc-300);
  margin-bottom: 1.75rem;
  max-width: 38rem;
}

.landing-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}
.landing-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--zinc-300);
  line-height: 1.5;
}
.landing-bullet-glyph {
  flex-shrink: 0;
  margin-top: 0.125rem;
  font-size: 1rem;
  line-height: 1;
}

/* ─── Cross-platform store badges (hero) ─────────────────────────────────── */

.app-stores {
  margin-top: 1.25rem;
}
.app-stores-label {
  font-size: 0.8125rem;
  color: var(--zinc-400);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  max-width: 30rem;
}
.app-stores-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

/* The badge flips contrast in light vs dark theme automatically — bg uses
   --zinc-50 (which is near-black in light mode and near-white in dark mode),
   text uses bg-primary (the inverse). Matches the App Store badge convention
   of "light pill on dark page, dark pill on light page". */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.9375rem;
  border-radius: 0.625rem;
  background: var(--zinc-50);
  color: rgb(var(--bg-primary));
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  min-width: 9.5rem;
  border: 1px solid var(--overlay-10);
  opacity: 0.92;
}
.app-store-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.35);
}
.app-store-btn-disabled {
  cursor: default;
  opacity: 0.66;
}
.app-store-btn-disabled:hover {
  transform: none;
  box-shadow: none;
}
.app-store-btn svg {
  flex-shrink: 0;
}
.app-store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.app-store-btn-tag {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.72;
}
.app-store-btn-name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.app-store-coming-soon {
  margin-top: 0.125rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-store-coming-soon-ios {
  color: #93c5fd;
}
.app-store-coming-soon-android {
  color: #a16207;
}

.landing-form-card {
  background: var(--glass-strong-bg);
  border: 1px solid var(--glass-strong-border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5),
              0 0 0 1px var(--glass-strong-border);
}
@media (min-width: 1024px) {
  .landing-form-card { padding: 2rem; }
}

/* Section eyebrow + headline */
.landing-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--accent-rose));
  margin-bottom: 0.75rem;
}

.landing-section-headline {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--zinc-50);
  margin-bottom: 0.75rem;
  max-width: 38rem;
}

.landing-section-sub {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--zinc-400);
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

/* Signup flow */
.landing-section-flow {
  padding-top: 0;
}
.signup-flow-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(244, 63, 94, 0.07), transparent 46%),
    var(--bg-secondary);
  border: 1px solid var(--overlay-8);
}
@media (min-width: 900px) {
  .signup-flow-card {
    grid-template-columns: minmax(20rem, 0.78fr) minmax(30rem, 1fr);
    align-items: center;
    gap: clamp(2.25rem, 4vw, 4.25rem);
    padding: clamp(2.25rem, 4vw, 3.35rem);
  }
}
.signup-flow-copy .landing-section-headline {
  max-width: 26rem;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 1.04;
  margin-bottom: 0.85rem;
}
.signup-flow-sub {
  max-width: 31rem;
  margin: 0;
  color: var(--zinc-400);
  font-size: 0.98rem;
  line-height: 1.58;
}
.signup-flow-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  padding: 0.25rem 0;
  width: 100%;
  max-width: 49rem;
  justify-self: end;
}
.signup-flow-steps::before {
  content: "";
  position: absolute;
  left: 1.375rem;
  top: 1.7rem;
  bottom: 1.7rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(244, 63, 94, 0.24),
    rgba(244, 63, 94, 0.08)
  );
}
.signup-flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2.875rem minmax(0, 1fr);
  align-items: start;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.72rem 1rem 0.72rem 0;
  border-radius: 0.875rem;
}
.signup-flow-step-3 {
  margin: 0.25rem 0;
  padding: 0.72rem 1rem 0.72rem 0;
  max-width: 44rem;
}
.signup-flow-step-3 + .signup-flow-step {
  padding-top: 0.85rem;
}
.signup-flow-marker {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 0.05rem;
}
.signup-flow-number {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: rgb(var(--accent-rose));
  border: 1px solid rgba(244, 63, 94, 0.24);
  box-shadow: 0 0 0 6px var(--bg-secondary);
  font-size: 0.9rem;
  font-weight: 800;
}
.signup-flow-step-3 .signup-flow-number {
  background: var(--bg-secondary);
  background: color-mix(in srgb, rgb(var(--accent-rose)) 14%, var(--bg-secondary));
  border-color: rgba(244, 63, 94, 0.34);
  box-shadow: 0 0 0 4px var(--bg-secondary), 0 10px 24px rgba(244, 63, 94, 0.08);
}
.signup-flow-step-copy {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding-top: 0.24rem;
}
.signup-flow-step-title {
  color: var(--zinc-50);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
}
.signup-flow-step-body {
  color: var(--zinc-400);
  font-size: 0.92rem;
  line-height: 1.45;
}
.signup-flow-step-3 .signup-flow-step-copy {
  margin-left: -0.35rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 0.875rem;
  background:
    linear-gradient(135deg, rgba(244, 63, 94, 0.08), transparent 62%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 14px 36px rgba(244, 63, 94, 0.06);
}
@media (max-width: 640px) {
  .signup-flow-card {
    padding: 1.25rem 1rem;
  }
  .signup-flow-steps {
    padding-right: 0.75rem;
  }
  .signup-flow-step {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.65rem;
  }
  .signup-flow-number {
    width: 2.2rem;
    height: 2.2rem;
    box-shadow: 0 0 0 5px var(--bg-secondary);
  }
  .signup-flow-steps::before {
    left: 1.1rem;
  }
  .signup-flow-step-3 {
    width: calc(100% - 2.25rem);
    margin-right: 1.5rem;
    padding: 0.72rem 0.75rem 0.72rem 0;
  }
  .signup-flow-step-3 .signup-flow-step-copy {
    margin-left: -0.25rem;
    padding: 0.75rem;
  }
}

/* Growth exercises */
.landing-section-growth {
  max-width: 76rem;
}

.growth-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(244, 63, 94, 0.13);
  background:
    radial-gradient(70% 90% at 5% 0%, rgba(244, 63, 94, 0.08), transparent 58%),
    radial-gradient(60% 90% at 100% 20%, rgba(20, 184, 166, 0.07), transparent 60%),
    var(--bg-secondary);
}

@media (min-width: 1024px) {
  .growth-shell {
    grid-template-columns: minmax(22rem, 0.9fr) minmax(34rem, 1.15fr);
    align-items: center;
    gap: 2rem;
    padding: clamp(1.75rem, 3vw, 2.5rem);
  }
}

.growth-copy .landing-section-headline {
  max-width: 28rem;
}

.growth-copy .landing-section-sub {
  max-width: 36rem;
  margin-bottom: 1.25rem;
}

.growth-cta {
  margin-top: 0.9rem;
}

/* Growth exercise top-tab layout */
.growth-shell {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.growth-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
}

@media (min-width: 900px) {
  .growth-header {
    grid-template-columns: minmax(0, 0.82fr) minmax(22rem, 0.24fr);
  }
}

.growth-copy .landing-section-headline {
  max-width: 44rem;
}

.growth-copy .landing-section-sub {
  max-width: 48rem;
  margin-bottom: 0;
}

.growth-more-panel {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 28rem;
  color: var(--zinc-400);
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(20, 184, 166, 0.24);
  background: rgba(20, 184, 166, 0.08);
}

@media (min-width: 900px) {
  .growth-more-panel {
    justify-self: end;
  }
}

.growth-more-number {
  flex: 0 0 auto;
  color: #14b8a6;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.growth-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.growth-tab {
  appearance: none;
  border: 1px solid var(--overlay-8);
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  cursor: pointer;
  min-width: 0;
  text-align: left;
  border-radius: 0.9rem;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.72rem;
  align-items: start;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.growth-tab:hover,
.growth-tab:focus-visible,
.growth-tab.is-active {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(244, 63, 94, 0.28);
  background: rgba(244, 63, 94, 0.08);
  box-shadow: 0 14px 34px -28px rgba(244, 63, 94, 0.5);
}

.growth-tab.is-featured {
  border-color: rgba(20, 184, 166, 0.24);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(244, 63, 94, 0.045)),
    rgba(255, 255, 255, 0.035);
}

.growth-tab.is-featured:hover,
.growth-tab.is-featured:focus-visible,
.growth-tab.is-featured.is-active {
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: 0 16px 38px -28px rgba(20, 184, 166, 0.55);
}

.growth-tab-icon {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(244, 63, 94, 0.11);
  font-size: 1rem;
}

.growth-tab.is-featured .growth-tab-icon {
  background: rgba(20, 184, 166, 0.15);
}

.growth-tab-copy {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}

.growth-tab-kicker {
  color: rgb(var(--accent-rose));
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.growth-tab.is-featured .growth-tab-kicker {
  color: #14b8a6;
}

.growth-tab-title {
  color: var(--zinc-50);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.18;
}

.growth-tab-desc {
  color: var(--zinc-400);
  font-size: 0.74rem;
  line-height: 1.38;
}

.growth-preview-fp {
  width: 100%;
  margin-top: 1.15rem;
  background: var(--bg-secondary);
  border: 1px solid var(--overlay-15);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--overlay-8);
  font-family: system-ui, -apple-system, sans-serif;
}

.growth-preview-fp .fp-app {
  min-height: 660px;
}

.growth-preview-fp .fp-app-thread {
  padding-top: 8px;
  animation: growthPreviewFade 0.24s ease both;
}

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

.growth-preview-fp .fp-app-msg {
  padding-top: 9px;
  padding-bottom: 9px;
}

.growth-preview-fp .fp-app-msg-body {
  font-size: 13px;
  line-height: 1.5;
}

.growth-preview-fp .fp-app-msg-body p {
  max-width: 58rem;
}

.growth-preview-sidebar-row {
  appearance: none;
  width: 100%;
  border: 0;
  border-right: 2px solid transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.growth-preview-sidebar-row:hover,
.growth-preview-sidebar-row:focus-visible {
  outline: none;
  background: var(--overlay-5);
}

.growth-preview-sidebar-row.is-active {
  background: rgba(244, 63, 94, 0.1);
  border-right-color: rgb(var(--accent-rose));
}

.growth-preview-fp .fp-app-msg-self {
  background: rgba(20, 184, 166, 0.08);
  border-left-color: #14b8a6;
}

.growth-preview-fp .fp-app-msg-self .fp-app-msg-avatar,
.growth-preview-fp .fp-app-user-avatar {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(20, 184, 166, 0.36);
  color: #0d9488;
}

.growth-preview-fp .fp-app-msg-self .fp-app-msg-name {
  color: #0d9488;
}

.growth-footer-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

@media (max-width: 900px) {
  .growth-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.7rem;
    padding-bottom: 0.2rem;
    scroll-snap-type: x proximity;
  }

  .growth-tab {
    min-width: 16rem;
    scroll-snap-align: start;
  }

  .growth-preview-fp .fp-app-sidebar {
    display: none;
  }

  .growth-preview-fp .fp-app {
    display: block;
    height: auto;
    min-height: 0;
  }

  .growth-preview-fp .fp-app-thread {
    max-height: none;
    overflow: visible;
  }

  .growth-preview-fp .fp-app-msg {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .growth-preview-fp .fp-desktop-title {
    justify-content: flex-start;
    left: 4.4rem;
    right: 4.4rem;
  }

  .growth-footer-row {
    justify-content: flex-start;
  }
}

/* Comparison */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .comparison-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.comparison-card {
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--overlay-8);
}
.comparison-card-them {
  background: var(--overlay-5);
}
.comparison-card-us {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.10), rgba(167, 139, 250, 0.08));
  border-color: rgba(244, 63, 94, 0.25);
}

.comparison-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.comparison-card-them .comparison-card-title { color: var(--zinc-500); }
.comparison-card-us .comparison-card-title {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.diff-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--zinc-300);
}
.diff-row + .diff-row { border-top: 1px solid var(--overlay-5); }
.diff-row-glyph {
  flex-shrink: 0;
  width: 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 0.0625rem;
}
.diff-row-them .diff-row-glyph { color: var(--zinc-500); }
.diff-row-us .diff-row-glyph { color: rgb(var(--accent-rose)); }

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.how-step {
  border-radius: 1rem;
  padding: 1.5rem;
  background: var(--overlay-5);
  border: 1px solid var(--overlay-8);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.how-step:hover {
  border-color: rgba(244, 63, 94, 0.25);
  background: var(--overlay-6);
  transform: translateY(-1px);
}

.how-step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--zinc-50);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.how-step-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--zinc-400);
}

/* Proof — stats + avatar cluster */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.proof-tile {
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--overlay-5);
  border: 1px solid var(--overlay-8);
}
.proof-tile-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--accent-rose));
  margin-bottom: 0.5rem;
}
.proof-tile-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--zinc-50);
  margin-bottom: 0.5rem;
}
.proof-tile-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--zinc-400);
}
@media (min-width: 768px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

.stat-tile {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: 0.875rem;
  background: var(--overlay-5);
  border: 1px solid var(--overlay-8);
}
.stat-tile-n {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #f43f5e, #fb923c, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.25rem;
}
.stat-tile-l {
  font-size: 0.75rem;
  color: var(--zinc-400);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.avatar-cluster-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--overlay-5);
  border: 1px solid var(--overlay-8);
  border-radius: 1rem;
  /* No flex-wrap: avatars stay inline with the caption column even in the
     narrower hero column. The caption uses flex:1 + min-width:0 below so
     long text wraps internally instead of bumping the avatars to their
     own row. */
}
.avatar-cluster {
  display: flex;
  flex-shrink: 0;
}
.avatar-cluster-item {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 2px solid rgb(var(--bg-primary));
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.25);
}
.avatar-cluster-item + .avatar-cluster-item { margin-left: -0.625rem; }
.avatar-cluster-item-plus {
  background: linear-gradient(135deg, #a78bfa, #fb7185);
}
.avatar-cluster-caption {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.9375rem;
  color: var(--zinc-200);
  line-height: 1.45;
}
.avatar-cluster-caption strong { color: var(--zinc-50); font-weight: 700; }
.avatar-cluster-caption .stars {
  color: rgb(var(--accent-rose));
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.25rem;
}

/* Blog teaser */
.landing-blog-divider {
  border: 0;
  border-top: 1px solid var(--overlay-8);
  margin: 3rem 0 2.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
@media (min-width: 1120px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.5rem;
  background: var(--overlay-5);
  border: 1px solid var(--overlay-8);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.2s ease;
  color: var(--zinc-200);
  text-decoration: none;
}
.blog-card:hover {
  background: var(--overlay-6);
  border-color: rgba(244, 63, 94, 0.25);
  transform: translateY(-1px);
}
.blog-card-media {
  position: relative;
  margin: -1.5rem -1.5rem 0.5rem;
  aspect-ratio: 16 / 8.1;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(20, 184, 166, 0.06)),
    var(--overlay-6);
  border-bottom: 1px solid var(--overlay-8);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.025);
}
.blog-card-media-product img {
  object-position: center;
}
.blog-card-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zinc-500);
}
.blog-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--zinc-50);
}
.blog-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--zinc-400);
}
.blog-card-arrow {
  margin-top: auto;
  font-size: 0.875rem;
  color: rgb(var(--accent-rose));
  font-weight: 600;
}

.landing-blog-cta {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: rgb(var(--accent-rose));
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.landing-blog-cta:hover { text-decoration: underline; }

/* Price hint — affirmative green tones (contrasts with the rose-tinted
   rest of the page, pulls the eye toward the offer). Same intensity as the
   rose card pattern; only the hue shifts. */
.price-hint-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(74, 222, 128, 0.06)),
    var(--glass-strong-bg);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 1.25rem;
}
@media (min-width: 768px) {
  .price-hint-card { grid-template-columns: 5fr 7fr; gap: 2.5rem; align-items: center; padding: 2.5rem; }
}

.price-hint-numbers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.price-hint-amount {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--zinc-50);
}
.price-hint-amount .price-hint-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--zinc-400);
  margin-left: 0.25rem;
}
.price-hint-meta {
  font-size: 0.875rem;
  color: var(--zinc-400);
  line-height: 1.45;
}

.stripe-currency-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
  max-width: 100%;
  padding: 0.35rem 0.6rem 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--overlay-10);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)), var(--bg-tertiary);
  color: var(--zinc-200);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.stripe-currency-trigger:hover,
.stripe-currency-trigger:focus-visible {
  border-color: rgba(var(--accent-rose), 0.45);
  color: var(--zinc-50);
  outline: none;
}
.stripe-currency-trigger-compact {
  min-height: 2.25rem;
  height: 2.25rem;
  padding: 0.25rem 0.55rem 0.25rem 0.35rem;
  border-radius: 0.5rem;
  background: var(--btn-sec-bg);
  border-color: var(--btn-sec-border);
  font-size: 0.75rem;
}
.stripe-currency-trigger-compact:hover,
.stripe-currency-trigger-compact:focus-visible {
  background: var(--btn-sec-hover-bg);
  border-color: var(--btn-sec-hover-border);
}
.stripe-currency-trigger-compact .stripe-currency-chip {
  width: 1.55rem;
  height: 1.55rem;
}
.stripe-currency-trigger-text {
  min-height: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--zinc-400);
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.22rem;
}
.stripe-currency-trigger-text:hover,
.stripe-currency-trigger-text:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--zinc-200);
}
.stripe-currency-trigger-text .stripe-currency-chip {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: rgb(var(--accent-rose));
  font-size: 0.92rem;
}
.stripe-currency-trigger-text .stripe-currency-trigger-code {
  letter-spacing: 0;
}
.stripe-currency-chip {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(var(--accent-rose), 0.13);
  color: rgb(var(--accent-rose));
  border: 1px solid rgba(var(--accent-rose), 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}
.stripe-currency-trigger-code {
  letter-spacing: 0.02em;
}
.stripe-currency-trigger-caret {
  color: var(--zinc-500);
  font-size: 0.9rem;
  line-height: 1;
  transform: translateY(-1px);
}
.stripe-currency-modal {
  width: min(92vw, 440px);
  border-radius: 1.25rem;
  border: 1px solid var(--overlay-10);
  padding: 1rem;
  max-height: min(620px, 88vh);
  display: flex;
  flex-direction: column;
}
.stripe-currency-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.stripe-currency-modal-head h2 {
  font-size: 1rem;
  font-weight: 750;
  color: var(--zinc-50);
  margin: 0 0 0.25rem;
}
.stripe-currency-modal-head p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--zinc-500);
  margin: 0;
}
.stripe-currency-close {
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--zinc-400);
  border: 1px solid var(--overlay-8);
  background: var(--overlay-5);
}
.stripe-currency-close:hover {
  color: var(--zinc-50);
  background: var(--overlay-hover);
}
.stripe-currency-search {
  width: 100%;
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.stripe-currency-list {
  overflow-y: auto;
  display: grid;
  gap: 0.35rem;
  padding-right: 0.2rem;
}
.language-modal {
  width: min(92vw, 480px);
  border-radius: 1.25rem;
  border: 1px solid var(--overlay-10);
  padding: 1rem;
  max-height: min(640px, 88vh);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.language-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.language-modal-head h2 {
  margin: 0;
  color: var(--zinc-100);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}
.language-modal-search {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 0.85rem;
  padding: 0.65rem 0.8rem;
  color: var(--zinc-50);
}
.language-modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.language-modal-option {
  width: 100%;
  min-height: 3.25rem;
  border-radius: 0.8rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--zinc-300);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.language-modal-option:hover,
.language-modal-option:focus-visible {
  background: var(--overlay-5);
  color: var(--zinc-50);
  outline: none;
}
.language-modal-option.active {
  background: rgba(var(--accent-rose), 0.1);
  border-color: rgba(var(--accent-rose), 0.18);
  color: rgb(var(--accent-rose));
}
.language-modal-flag {
  flex: 0 0 auto;
  width: 1.5rem;
  text-align: center;
}
.language-modal-option-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.15;
}
.language-modal-option-copy span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}
.language-modal-option-copy span:last-child:not(:first-child) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--zinc-500);
  font-size: 0.75rem;
}
.language-modal-check {
  flex: 0 0 auto;
  color: rgb(var(--accent-rose));
  font-weight: 800;
}
.stripe-currency-option {
  min-height: 3.15rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.875rem;
  border: 1px solid transparent;
  color: var(--zinc-300);
  background: transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.stripe-currency-option:hover {
  background: var(--overlay-hover);
  color: var(--zinc-50);
}
.stripe-currency-option.active {
  background: rgba(var(--accent-rose), 0.1);
  border-color: rgba(var(--accent-rose), 0.22);
  color: var(--zinc-50);
}
.stripe-currency-option-copy {
  min-width: 0;
  flex: 1;
  text-align: left;
  line-height: 1.25;
}
.stripe-currency-option-copy span:first-child {
  display: block;
  font-size: 0.84rem;
  font-weight: 750;
  color: inherit;
}
.stripe-currency-option-copy span:last-child {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: var(--zinc-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stripe-currency-check {
  color: rgb(var(--accent-rose));
  font-size: 0.85rem;
  font-weight: 800;
}

.price-hint-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}
@media (min-width: 640px) {
  .price-hint-features { grid-template-columns: 1fr 1fr; }
}
.price-hint-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--zinc-200);
  line-height: 1.45;
}
.price-hint-feature-glyph {
  flex-shrink: 0;
  color: #22c55e;
  font-weight: 700;
  margin-top: 0.125rem;
}

/* ─── How-it-works side-peek (SessionPreview) ────────────────────────────── */

/* The how section becomes a positioning context so the peek can anchor to
   its right edge. overflow: visible is the default and is preserved so the
   peek can extend out past the section content; #root has overflow-x: hidden
   so anything past the viewport edge is clipped (no horizontal scrollbar). */
.landing-section-how {
  position: relative;
  overflow: visible;
}

/* Mobile / tablet: side-peek is hidden — the wider .how-mid-preview between
   the two card rows carries the chat-preview visual instead. The side-peek
   only makes sense when there's real right-side whitespace to overflow into. */
.how-side-peek { display: none; }

/* Desktop: anchor to the section's right edge and lift up to the headline
   row so the peek floats alongside the feature grid. Slight rotation +
   subtle hover-straighten for the "break the column, look cool" feel. The
   right offset grows with the viewport so on wider screens more of the
   preview lives in the page's right whitespace. */
@media (min-width: 1024px) {
  .how-side-peek {
    display: block;
    position: absolute;
    top: 6rem;
    right: -0.5rem;
    z-index: 5;
    transform: rotate(2.5deg);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .how-side-peek:hover { transform: rotate(0deg); }
}
@media (min-width: 1280px) { .how-side-peek { right: -3rem; } }
@media (min-width: 1440px) { .how-side-peek { right: -6rem; } }
@media (min-width: 1600px) { .how-side-peek { right: -9rem; } }

/* Wide chat preview sitting BETWEEN sections (after the differentiator,
   before How-it-works). Centered, always visible at every viewport size;
   the .session-preview-wide modifier just raises the max-width. The padding
   creates breathing room above and below since the preview lives outside
   any landing-section's own padding. */
.between-section-preview {
  display: flex;
  justify-content: center;
  padding: 0 1.25rem 1rem;
  margin: 0 auto;
  max-width: 72rem;
}
@media (min-width: 768px) {
  .between-section-preview {
    padding: 0 2rem 1.5rem;
  }
}

/* ─── Session preview — macOS-windowed mini chat ─────────────────────────── */
.session-preview {
  width: 100%;
  max-width: 340px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--overlay-15);
  overflow: hidden;
  box-shadow:
    0 28px 70px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px var(--overlay-8);
  font-family: system-ui, -apple-system, sans-serif;
}

/* Wide variant — used by the mid-row chat preview with the input bar.
   Larger max-width + slightly bumped message padding so the bigger window
   doesn't read as a thin band of text. */
.session-preview-wide {
  max-width: 640px;
}
.session-preview-wide .preview-msg { padding: 14px 18px; }
.session-preview-wide .preview-msg-text { font-size: 13px; }
.session-preview-wide .preview-msg-avatar {
  width: 26px;
  height: 26px;
  font-size: 11.5px;
}

.session-preview-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--overlay-8);
  min-height: 32px;
}

.session-preview-dots {
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.session-preview-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  /* Subtle inner rim — matches macOS Big Sur traffic lights at small sizes. */
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.session-preview-dot-red    { background: #ff5f57; }
.session-preview-dot-yellow { background: #febc2e; }
.session-preview-dot-green  { background: #28c840; }

.session-preview-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--zinc-400);
  font-weight: 500;
  pointer-events: none;
}

.session-preview-body {
  padding: 0;
}

/* Message row — flex layout matching the actual MessageBubble in the chat
   (avatar circle + name + content). Background-tinted full-width rows with
   left-border accent — same structure as .message-user / .message-partner /
   .message-ai but scaled down for the preview. */
.preview-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
}
.preview-msg-user {
  background: rgba(244, 63, 94, 0.08);
  border-left: 2px solid rgb(var(--accent-rose));
}
.preview-msg-partner {
  background: rgba(167, 139, 250, 0.08);
  border-left: 2px solid rgb(var(--accent-purple));
}
.preview-msg-ai {
  background: transparent;
}

.preview-msg-avatar {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
}
.preview-msg-user .preview-msg-avatar {
  background: rgba(244, 63, 94, 0.2);
  color: rgb(var(--accent-rose));
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.preview-msg-partner .preview-msg-avatar {
  background: rgba(167, 139, 250, 0.2);
  color: rgb(var(--accent-purple));
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.preview-msg-avatar-ai {
  /* Matches the live product .ai-avatar — same pink, same white HeartIcon. */
  background: #e879a0;
  color: #fff;
  border: none;
}

.preview-msg-stack {
  flex: 1;
  min-width: 0;
}
.preview-msg-name {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 10.5px;
  font-weight: 600;
  margin-bottom: 2px;
}
.preview-msg-platform {
  display: inline-flex;
  align-items: center;
  color: var(--zinc-500);
  opacity: 0.85;
}
.preview-msg-user .preview-msg-name { color: rgb(var(--accent-rose)); }
.preview-msg-partner .preview-msg-name { color: rgb(var(--accent-purple)); }
.preview-msg-ai .preview-msg-name {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preview-msg-text {
  font-size: 11.75px;
  line-height: 1.5;
  color: var(--zinc-200);
}
.preview-msg-ai strong {
  font-weight: 700;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Input bar — mimics the real product's MessageInput styling
   (border-top, rounded-2xl rose-focus-able pill, rose gradient send button)
   but read-only since the whole preview is aria-hidden + non-interactive. */
.session-preview-input {
  padding: 12px 14px;
  border-top: 1px solid var(--overlay-8);
  background: var(--bg-secondary);
}
.session-preview-input-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--overlay-8);
  border-radius: 14px;
}
.session-preview-input-placeholder {
  flex: 1;
  font-size: 13px;
  color: var(--zinc-500);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-preview-input-send {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

/* Footer */
.landing-footer {
  border-top: 1px solid var(--overlay-8);
  background: var(--overlay-5);
  margin-top: 2rem;
}
.landing-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .landing-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 2rem;
  }
}
.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}
.landing-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.landing-footer-links a {
  color: var(--zinc-400);
  text-decoration: none;
}
.landing-footer-links a:hover { color: var(--zinc-200); }
.landing-footer-pickers {
  display: inline-flex;
  align-items: center;
  gap: 1.05rem;
}
.landing-footer-text-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--zinc-400);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.landing-footer-text-trigger:hover,
.landing-footer-text-trigger:focus-visible {
  color: var(--zinc-200);
  outline: none;
}
.landing-footer-trigger-icon {
  font-size: 0.95rem;
  line-height: 1;
}
.landing-footer-trigger-caret {
  color: var(--zinc-500);
  font-size: 0.9rem;
  line-height: 1;
}
.landing-footer-tag {
  font-size: 0.75rem;
  color: var(--zinc-500);
  line-height: 1.4;
}
.landing-footer-disclaimer {
  max-width: 36rem;
  font-size: 0.75rem;
  color: var(--zinc-500);
  line-height: 1.45;
}

/* ─── Exercise Browser ───────────────────────────────────────────────────── */

.exercise-tabs {
  display: flex;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
}

.exercise-tab {
  flex: 1;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--overlay-10);
  background: transparent;
  color: var(--zinc-400);
  cursor: pointer;
  transition: all 0.2s ease;
}
.exercise-tab:hover {
  background: var(--overlay-5);
  color: var(--zinc-200);
}
.exercise-tab.active {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.3);
  color: #5eead4;
}

.exercise-scroll {
  max-height: 320px;
  overflow-y: auto;
  padding: 0 0.5rem 0.5rem;
}

.exercise-category {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zinc-500);
  padding: 0.5rem 0.25rem 0.25rem;
}

.exercise-card {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.25rem;
  border-radius: 0.625rem;
  background: var(--overlay-5);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.2s ease;
}
.exercise-card:hover {
  background: var(--overlay-8);
  border-color: var(--overlay-15);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.exercise-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.exercise-card-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--zinc-200);
}
.exercise-card-duration {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--zinc-500);
  background: var(--overlay-5);
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.exercise-card-desc {
  font-size: 0.6875rem;
  color: var(--zinc-400);
  line-height: 1.35;
}

/* ─── Chat scroll UX: floating typing pill + new-messages pill ──────────────
   The message list never auto-scrolls a reader who has scrolled up. Typing is
   shown in a floating pill (bottom-left); unseen arrivals are surfaced by a
   voluntary "N new messages" pill (bottom-centre). See design/chat-scroll-ux.md. */
@keyframes chatFloatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-float-in {
  animation: chatFloatIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* New-messages pill — kept horizontally centred via translateX(-50%); the
   entrance keyframe and :active state preserve that offset so the pill never
   jumps sideways. Hover uses filter (not transform) for the same reason. */
@keyframes chatPillIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.92); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.chat-newmsg-pill {
  transform: translateX(-50%);
  animation: chatPillIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: filter 0.14s ease;
}
.chat-newmsg-pill:hover { filter: brightness(1.09); }
.chat-newmsg-pill:active { transform: translateX(-50%) scale(0.95); }

/* Cycling language flag — see FlagCycle in app.js. Layers are stacked and
   crossfaded by opacity ONLY (compositor-cheap, no layout/paint). The first
   layer stays in flow to size the box; the rest are absolutely positioned
   over it. There is no perpetual animation here — the transition only runs
   during the ~1.7s fade, then everything is idle until the next swap. */
.flag-cycle { position: relative; display: inline-block; }
.flag-cycle-layer { transition: opacity 1.7s ease; }
.flag-cycle-layer:not(:first-child) { position: absolute; left: 0; top: 0; }
@media (prefers-reduced-motion: reduce) {
  .flag-cycle-layer { transition: none; }
}

/* ─── Full preview section — macOS desktop + iPhone cross-platform demo ──── */

.landing-section-full {
  position: relative;
  overflow: visible;
}

.fp-stage {
  position: relative;
  margin-top: 1.75rem;
}

/* ─── Desktop window chrome ────────────────────────────────────── */
.fp-desktop {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--overlay-15);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--overlay-8);
  font-family: system-ui, -apple-system, sans-serif;
}
@media (max-width: 767px) { .fp-desktop { display: none; } }

.fp-desktop-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--overlay-8);
}
.fp-desktop-dots { display: flex; gap: 6px; position: relative; z-index: 1; }
.fp-dot {
  width: 12px; height: 12px; border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.fp-dot-red    { background: #ff5f57; }
.fp-dot-yellow { background: #febc2e; }
.fp-dot-green  { background: #28c840; }
.fp-desktop-title {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--zinc-400); font-weight: 500;
  pointer-events: none;
}
.fp-desktop-viewer {
  margin-left: auto; position: relative; z-index: 1;
  font-size: 11px; color: var(--zinc-500);
  background: var(--overlay-5);
  border: 1px solid var(--overlay-8);
  padding: 3px 8px;
  border-radius: 9999px;
}

.fp-desktop-body { display: flex; min-height: 460px; }

/* ─── Sidebar ──────────────────────────────────────────────────── */
.fp-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--overlay-8);
  padding: 14px 10px;
  overflow: hidden;
}
.fp-sidebar-connect {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 11px; font-weight: 600;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 10px;
}
.fp-sidebar-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.fp-sidebar-newbtn {
  font-size: 12px; color: var(--zinc-300);
  padding: 9px 10px; border-radius: 9px;
  background: var(--overlay-5);
  border: 1px solid var(--overlay-8);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 500;
}
.fp-sidebar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 9px;
  margin-top: 2px;
  border-left: 2px solid transparent;
}
.fp-sidebar-item.is-active {
  background: rgba(244, 63, 94, 0.10);
  border-left-color: rgb(var(--accent-rose));
  padding-left: 8px;
}
.fp-sidebar-item-glyph { font-size: 14px; flex-shrink: 0; }
.fp-sidebar-item-text { flex: 1; min-width: 0; }
.fp-sidebar-item-title {
  font-size: 12.5px; color: var(--zinc-300);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 500;
}
.fp-sidebar-item-sub {
  font-size: 10px; color: var(--zinc-500);
  margin-top: 1px;
}
.fp-sidebar-item.is-active .fp-sidebar-item-title { color: var(--zinc-50); font-weight: 600; }

/* ─── Chat thread + input ──────────────────────────────────────── */
.fp-chat {
  flex: 1;
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--bg-primary);
}
.fp-chat-thread { flex: 1; padding: 14px 0; overflow: hidden; }
.fp-chat-inputbar {
  padding: 14px 20px 16px;
  border-top: 1px solid var(--overlay-8);
  background: var(--bg-secondary);
}
.fp-chat-input {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--overlay-8);
  border-radius: 14px;
  font-size: 13px; color: var(--zinc-500);
}
.fp-chat-input > span:first-child {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fp-chat-send {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.fp-chat-send-sm { width: 24px; height: 24px; border-radius: 7px; }
.fp-chat-disclaimer {
  margin-top: 10px;
  font-size: 11px; color: var(--zinc-500); text-align: center;
}

/* ─── Message rows ─────────────────────────────────────────────── */
.fp-msg {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 20px;
}
.fp-msg-self {
  background: rgba(244, 63, 94, 0.08);
  border-left: 3px solid rgb(var(--accent-rose));
}
.fp-msg-other {
  background: rgba(167, 139, 250, 0.08);
  border-left: 3px solid rgb(var(--accent-purple));
}
.fp-msg-ai { background: transparent; }
.fp-msg-continued {
  background: transparent;
  padding-top: 2px; padding-bottom: 4px;
}

.fp-msg-avatar {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.fp-msg-self .fp-msg-avatar {
  background: rgba(244, 63, 94, 0.2);
  color: rgb(var(--accent-rose));
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.fp-msg-other .fp-msg-avatar {
  background: rgba(167, 139, 250, 0.2);
  color: rgb(var(--accent-purple));
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.fp-msg-ai .fp-msg-avatar { background: #e879a0; color: #fff; }
.fp-msg-continued .fp-msg-avatar { visibility: hidden; }

.fp-msg-stack { flex: 1; min-width: 0; }
.fp-msg-name { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.fp-msg-self .fp-msg-name { color: rgb(var(--accent-rose)); }
.fp-msg-other .fp-msg-name { color: rgb(var(--accent-purple)); }
.fp-msg-ai .fp-msg-name {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fp-msg-text { font-size: 13.5px; line-height: 1.55; color: var(--zinc-200); }

/* ─── iPhone frame ─────────────────────────────────────────────── */
.fp-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .fp-phone { display: none; }
}
@media (min-width: 1024px) {
  .fp-phone {
    position: absolute;
    top: 3.4rem;
    right: -1.25rem;
    margin-top: 0;
    z-index: 4;
  }
}
@media (min-width: 1280px) { .fp-phone { right: -3.5rem; } }
@media (min-width: 1440px) { .fp-phone { right: -6.5rem; } }
@media (min-width: 1600px) { .fp-phone { right: -8.5rem; } }

.fp-phone-frame {
  width: 312px;
  height: 646px;
  background: #18181b;
  border-radius: 46px;
  padding: 8px;
  position: relative;
  box-shadow:
    0 40px 90px -25px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.06);
}
@media (max-width: 380px) {
  .fp-phone-frame {
    width: 280px;
    height: 580px;
  }
}
.fp-phone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 25px;
  border-radius: 14px;
  background: #000;
  z-index: 5;
}

.fp-phone-screen {
  width: 100%; height: 100%;
  border-radius: 38px;
  background: rgb(var(--bg-primary));
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}

.fp-phone-statusbar {
  position: relative;
  height: 44px;
  padding: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--zinc-50);
  flex-shrink: 0;
}
.fp-phone-time {
  position: absolute;
  left: 31px;
  top: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.fp-phone-statusicons {
  position: absolute;
  right: 21px;
  top: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--zinc-50);
  height: 14px;
}
.fp-phone-status-icon {
  display: block;
  flex-shrink: 0;
  shape-rendering: geometricPrecision;
}
.fp-phone-status-icon * {
  vector-effect: non-scaling-stroke;
}
.fp-phone-cellular-icon {
  margin-top: 1px;
}
.fp-phone-wifi-icon {
  margin-top: 0.5px;
}
.fp-phone-battery-icon {
  margin-left: 1px;
}

@media (max-width: 380px) {
  .fp-phone-island {
    width: 84px;
    height: 23px;
  }
  .fp-phone-statusicons {
    right: 18px;
    gap: 4px;
  }
}

.fp-phone-header {
  display: flex; align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--overlay-8);
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.fp-phone-back { font-size: 20px; line-height: 1; color: rgb(var(--accent-rose)); width: 24px; }
.fp-phone-header-title {
  flex: 1; text-align: center;
  font-size: 13px; font-weight: 600;
  color: var(--zinc-50);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fp-phone-header-spacer { width: 24px; }

.fp-phone-thread { flex: 1; overflow: hidden; }
.fp-phone-thread .fp-msg { padding: 8px 10px; gap: 7px; }
.fp-phone-thread .fp-msg-avatar { width: 22px; height: 22px; font-size: 10px; }
.fp-phone-thread .fp-msg-name { font-size: 10.5px; }
.fp-phone-thread .fp-msg-text { font-size: 11.5px; line-height: 1.45; }

.fp-phone-input {
  display: flex; align-items: center; gap: 8px;
  margin: 6px 12px 18px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--overlay-8);
  border-radius: 16px;
  font-size: 11px; color: var(--zinc-500);
  flex-shrink: 0;
}
.fp-phone-input > span:first-child {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.fp-phone-home {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  border-radius: 2px;
  background: var(--zinc-300);
  opacity: 0.55;
}

.fp-phone-viewer {
  margin-top: 0.875rem;
  font-size: 12px;
  color: var(--zinc-500);
  text-align: center;
  background: var(--overlay-5);
  border: 1px solid var(--overlay-8);
  padding: 4px 12px;
  border-radius: 9999px;
}

/* ─── 1:1 product chat inside the Mac window ─────────────────────────────── */
/* These classes render the actual CouplesGPT app surface — sidebar with the
   conversation list, Solo-Session banner, multi-paragraph AI message, user
   message, guided-exercise card, input bar with disclaimer. CSS variables
   drive light/dark theme — same theme as the rest of the page. */

.fp-app {
  display: flex;
  min-height: 610px;
  background: rgb(var(--bg-primary));
}

/* ─── Sidebar ──────────────────────────────────────────────────── */
.fp-app-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--overlay-8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fp-app-sidebar-top {
  padding: 14px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.fp-app-connected {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #16a34a;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 10px;
  padding: 8px 10px;
}
.fp-app-connected-glyph { font-size: 12px; flex-shrink: 0; }
.fp-app-newconv {
  font-size: 12.5px;
  color: var(--zinc-300);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--overlay-5);
  border: 1px solid var(--overlay-8);
  text-align: center;
  font-weight: 500;
}
.fp-app-conv-list {
  flex: 1;
  overflow: hidden;
  padding: 4px 8px 8px;
}
.fp-app-conv {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border-radius: 8px;
  margin-top: 1px;
  border-right: 2px solid transparent;
  /* Match .conv-item rhythm from the live product */
}
.fp-app-conv.is-active {
  background: rgba(244, 63, 94, 0.10);
  border-right-color: rgb(var(--accent-rose));
}
.fp-app-conv-glyph { font-size: 14px; flex-shrink: 0; }
.fp-app-conv-stack { flex: 1; min-width: 0; }
.fp-app-conv-title {
  font-size: 12.5px;
  color: var(--zinc-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.fp-app-conv.is-active .fp-app-conv-title { color: var(--zinc-50); font-weight: 600; }
.fp-app-conv-meta {
  font-size: 10px;
  color: var(--zinc-500);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-app-sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--overlay-8);
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.fp-app-user-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.2);
  color: rgb(var(--accent-rose));
  border: 1px solid rgba(244, 63, 94, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
}
.fp-app-user-info { flex: 1; min-width: 0; }
.fp-app-user-name { font-size: 12px; font-weight: 600; color: var(--zinc-50); }
.fp-app-user-email {
  font-size: 10.5px;
  color: var(--zinc-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-app-user-cog {
  flex-shrink: 0;
  color: var(--zinc-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─── Chat main ────────────────────────────────────────────────── */
.fp-app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgb(var(--bg-primary));
}

.fp-app-solo-banner,
.fp-app-couple-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  color: #d97706;
  background: rgba(251, 191, 36, 0.10);
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
}
.fp-app-solo-banner strong { color: #d97706; font-weight: 700; }
.fp-app-couple-banner {
  color: rgb(var(--accent-rose));
  background: rgba(244, 63, 94, 0.07);
  border-bottom-color: rgba(244, 63, 94, 0.18);
}
.fp-app-couple-banner strong {
  color: rgb(var(--accent-rose));
  font-weight: 700;
}

.fp-app-thread {
  flex: 1;
  overflow: hidden;
  padding: 12px 0 4px;
}

/* ─── Message rows (desktop + reused on phone) ─────────────────── */
.fp-app-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 38px;
}
.fp-app-msg-self {
  background: rgba(244, 63, 94, 0.08);
  border-left: 3px solid rgb(var(--accent-rose));
}
.fp-app-msg-partner {
  background: rgba(167, 139, 250, 0.08);
  border-left: 3px solid rgb(var(--accent-purple));
}
.fp-app-msg-ai { background: transparent; }
.fp-app-msg-continued {
  background: transparent;
  padding-top: 2px;
  padding-bottom: 6px;
}

.fp-app-msg-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.fp-app-msg-self .fp-app-msg-avatar {
  background: rgba(244, 63, 94, 0.2);
  color: rgb(var(--accent-rose));
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.fp-app-msg-partner .fp-app-msg-avatar {
  background: rgba(167, 139, 250, 0.2);
  color: rgb(var(--accent-purple));
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.fp-app-msg-avatar-ai { background: #e879a0; color: #fff; border: none; }
.fp-app-msg-continued .fp-app-msg-avatar { visibility: hidden; }

.fp-app-msg-stack { flex: 1; min-width: 0; }
.fp-app-msg-name {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.fp-app-msg-self .fp-app-msg-name { color: rgb(var(--accent-rose)); }
.fp-app-msg-partner .fp-app-msg-name { color: rgb(var(--accent-purple)); }
.fp-app-msg-ai .fp-app-msg-name {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fp-app-msg-body { color: var(--zinc-200); font-size: 13.25px; line-height: 1.55; }
.fp-app-msg-body p { margin-bottom: 0.55em; }
.fp-app-msg-body p:last-child { margin-bottom: 0; }
.fp-app-msg-body strong { color: var(--zinc-50); font-weight: 700; }

/* ─── Guided exercise card (inside an AI message) ──────────────── */
.fp-app-exercise {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.10);
  border: 1px solid rgba(20, 184, 166, 0.28);
  margin-top: 4px;
}
.fp-app-exercise-text { flex: 1; min-width: 0; }
.fp-app-exercise-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #14b8a6;
}
.fp-app-exercise-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--zinc-50);
  margin-top: 2px;
}
.fp-app-exercise-start {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  border-radius: 8px;
}

/* ─── Input bar + footer ───────────────────────────────────────── */
.fp-app-input-area {
  flex-shrink: 0;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--overlay-8);
  background: var(--bg-secondary);
}
.fp-app-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--overlay-8);
  border-radius: 14px;
}
.fp-app-input-placeholder {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--zinc-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-app-input-send {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--zinc-500);
}

.fp-app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--zinc-500);
}
.fp-app-footer-disclaimer {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-app-footer-feedback {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* ─── Phone surface — same message classes, scaled smaller ─────── */
.fp-phone-thread .fp-app-msg { padding: 8px 12px; gap: 7px; }
.fp-phone-thread .fp-app-msg-avatar { width: 22px; height: 22px; font-size: 10px; }
.fp-phone-thread .fp-app-msg-name { font-size: 10.5px; }
.fp-phone-thread .fp-app-msg-body { font-size: 12px; line-height: 1.45; }
.fp-phone-thread .fp-app-msg-body p { margin-bottom: 0; }

.fp-phone-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: rgb(var(--accent-rose));
}

.fp-phone-input-send {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  opacity: 0.85;
}

/* ─── Narrow viewports: scale the desktop down so it doesn't overflow ─── */
@media (max-width: 1023px) {
  .fp-app-sidebar { width: 200px; }
  .fp-app-msg { padding: 10px 18px; }
  .fp-app-msg-body { font-size: 12.5px; }
}
@media (max-width: 767px) {
  /* Phone-only on mobile — same rule the existing .fp-desktop has. */
  .fp-desktop { display: none; }
}
