/* ===== FINDOMI PRO V2 — inspired by Meta / TikTok / Airbnb ===== */
:root {
  --fp-bg: #FAFAFA;
  --fp-surface: #FFFFFF;
  --fp-text: #0A0A0A;
  --fp-text-secondary: #737373;
  --fp-text-muted: #A3A3A3;
  --fp-border: #E5E5E5;
  --fp-terra: #D4581A;
  --fp-terra-hover: #B84A15;
  --fp-terra-soft: #FEF3EE;
  --fp-terra-border: #F5C4A0;
  --fp-green: #0F9D6A;
  --fp-green-soft: #EDFAF4;
  --fp-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  --fp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --fp-shadow-terra: 0 4px 14px rgba(212, 88, 26, 0.35);
  --fp-radius: 12px;
  --fp-radius-lg: 16px;
  --fp-radius-pill: 999px;
  --pwa-banner-h: 76px;
  /* map legacy vars */
  --cream: var(--fp-bg);
  --brown: var(--fp-text);
  --terra: var(--fp-terra);
  --sage: var(--fp-green);
  --bg: var(--fp-bg);
  --bg2: #F5F5F5;
  --bg3: #EEEEEE;
  --text: var(--fp-text);
  --text2: var(--fp-text-secondary);
  --text3: var(--fp-text-muted);
  --terra-bg: var(--fp-terra-soft);
  --terra-bd: var(--fp-terra-border);
  --sage-bg: var(--fp-green-soft);
  --sage-bd: rgba(15, 157, 106, 0.25);
  --blue: var(--fp-terra);
  --blue-bg: var(--fp-terra-soft);
  --blue-bd: var(--fp-terra-border);
  --bd: var(--fp-border);
  --bd2: #D4D4D4;
  --white: #FFFFFF;
  --sh: var(--fp-shadow);
  --sh2: var(--fp-shadow-md);
  --r: var(--fp-radius-lg);
  --rsm: var(--fp-radius);
}

/* Base */
html, body {
  background: var(--fp-bg) !important;
  color: var(--fp-text) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
}

.screen.active {
  background: var(--fp-bg);
  padding-bottom: calc(var(--nbh) + 1.25rem);
}

body.pwa-banner-visible .screen.active {
  padding-bottom: calc(var(--nbh) + var(--pwa-banner-h) + 1.25rem) !important;
}

/* Splash */
#splash {
  background: var(--fp-surface) !important;
}
.sp-logo {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 800 !important;
  color: var(--fp-text) !important;
  letter-spacing: -0.03em;
}
.sp-logo em {
  font-style: normal !important;
  color: var(--fp-terra) !important;
}
.sp-tag { color: var(--fp-text-secondary) !important; }
.sp-dot { background: var(--fp-terra) !important; }

/* ===== LANDING TikTok-style ===== */
#land.screen.active {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--fp-surface) !important;
  padding: 0 !important;
  overflow: hidden;
}

body.land-open {
  overflow: hidden;
}

#land.screen.active {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: 0;
}

.land-v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: max(0.75rem, env(safe-area-inset-top)) 1rem 0.5rem;
  flex-shrink: 0;
}

.land-v2-logo--header {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.land-v2-inner {
  width: 100%;
  max-width: 360px;
  padding: 1rem 1.75rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.land-v2-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fp-terra);
  margin-bottom: 2.5rem;
}

.land-v2-logo span {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--fp-terra-soft);
  color: var(--fp-terra);
  border: 1px solid var(--fp-terra-border);
  letter-spacing: 0.06em;
}

.land-v2-headline {
  font-size: clamp(1.75rem, 7vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fp-text);
  margin-bottom: 3rem;
}

.land-v2-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-xl {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--fp-radius);
}

.land-v2-login {
  background: none;
  border: none;
  color: var(--fp-text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

.land-v2-login strong,
.land-v2-login:hover {
  color: var(--fp-terra);
}

/* Buttons */
.btn-terra {
  background: var(--fp-terra) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: var(--fp-shadow-terra) !important;
  border-radius: var(--fp-radius) !important;
}

.btn-terra:active { opacity: 0.92; }

.btn-outline {
  background: var(--fp-surface) !important;
  border: 1.5px solid var(--fp-border) !important;
  color: var(--fp-text) !important;
}

.btn-ghost {
  background: transparent !important;
  color: var(--fp-text-secondary) !important;
  border: 1.5px solid var(--fp-border) !important;
}

.btn-dark {
  background: var(--fp-text) !important;
}

/* Topbar */
.topbar {
  background: var(--fp-surface) !important;
  border-bottom: 1px solid var(--fp-border) !important;
  height: 56px;
}

.logo {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.125rem !important;
  color: var(--fp-terra) !important;
  letter-spacing: -0.03em;
}

.logo em {
  font-style: normal !important;
  color: var(--fp-terra) !important;
}

.logo-pro {
  background: var(--fp-terra-soft) !important;
  color: var(--fp-terra) !important;
  border: 1px solid var(--fp-terra-border) !important;
}

.btn-icon {
  background: transparent !important;
  color: var(--fp-text-muted) !important;
  font-size: 1.15rem;
  padding: 0.4rem !important;
}

.btn-icon .dash-action-ic svg {
  stroke: var(--fp-text-muted);
  color: var(--fp-text-muted);
}

/* Hero — white, bold (Instagram-style) */
.hero {
  background: var(--fp-surface) !important;
  border-bottom: 1px solid var(--fp-border);
  padding: 1.5rem 1.25rem 1.25rem !important;
}

.hero-glow { display: none !important; }

.hero-badge {
  background: var(--fp-terra-soft) !important;
  border: 1px solid var(--fp-terra-border) !important;
  color: var(--fp-terra) !important;
  font-weight: 700;
  font-size: 0.6875rem;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-badge .dot-live {
  background: var(--fp-terra) !important;
  width: 6px;
  height: 6px;
}

.hero-t {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 1.625rem !important;
  font-weight: 800 !important;
  color: var(--fp-text) !important;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-s {
  font-size: 0.9375rem !important;
  color: var(--fp-text-secondary) !important;
  margin-top: 0.35rem;
  line-height: 1.45;
}

.dash-value-line {
  color: var(--fp-text-secondary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Stats — Airbnb airy cards */
.pad { padding: 1.25rem !important; }
.gap { gap: 1.25rem !important; }

.grid2 {
  gap: 0.75rem !important;
}

.stat-card {
  background: var(--fp-surface) !important;
  border: 1px solid var(--fp-border) !important;
  border-radius: var(--fp-radius-lg) !important;
  padding: 1.1rem 1rem !important;
  box-shadow: var(--fp-shadow) !important;
}

.stat-n {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--fp-terra) !important;
  letter-spacing: -0.02em;
}

.stat-l {
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  color: var(--fp-text-secondary) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
}

.section-t {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  color: var(--fp-text-muted) !important;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem !important;
}

/* Quick actions — 2 col, visual */
.dash-actions {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.75rem !important;
}

.dash-action {
  height: auto !important;
  min-height: 96px !important;
  max-height: none !important;
  padding: 1rem 0.75rem !important;
  background: var(--fp-surface) !important;
  border: 1px solid var(--fp-border) !important;
  border-radius: var(--fp-radius-lg) !important;
  box-shadow: var(--fp-shadow) !important;
  gap: 0.5rem !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.dash-action-primary {
  background: var(--fp-terra) !important;
  border-color: var(--fp-terra) !important;
  box-shadow: var(--fp-shadow-terra) !important;
  grid-column: span 2;
  min-height: 72px !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.85rem !important;
  padding: 1rem 1.15rem !important;
}

.dash-action-primary .dash-action-ic {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-action-primary .dash-action-ic svg {
  stroke: #fff !important;
  color: #fff !important;
}

.dash-action-primary .dash-action-t {
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-align: left;
}

.dash-action-ic {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 10px;
  background: var(--fp-terra-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem !important;
}

.dash-action-ic svg {
  width: 22px;
  height: 22px;
  stroke: var(--fp-terra);
  color: var(--fp-terra);
}

.dash-action-t {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--fp-text) !important;
  line-height: 1.25;
}

/* Lists — Airbnb cards */
.litem {
  background: var(--fp-surface) !important;
  border: 1px solid var(--fp-border) !important;
  border-radius: var(--fp-radius-lg) !important;
  box-shadow: var(--fp-shadow) !important;
  margin-bottom: 0.5rem;
}

.litem-ic {
  background: var(--fp-terra-soft) !important;
  border: 1px solid var(--fp-terra-border) !important;
  border-radius: 12px !important;
  width: 48px !important;
  height: 48px !important;
}

.litem-t { font-weight: 700 !important; font-size: 0.9375rem !important; }
.litem-s { color: var(--fp-text-secondary) !important; }
.litem-btns { background: var(--fp-bg) !important; border-top: 1px solid var(--fp-border) !important; }

/* Badges */
.badge-terra {
  background: var(--fp-terra-soft) !important;
  border-color: var(--fp-terra-border) !important;
  color: var(--fp-terra) !important;
}

.badge-sage {
  background: var(--fp-green-soft) !important;
  border-color: rgba(15, 157, 106, 0.25) !important;
  color: var(--fp-green) !important;
}

.badge-neutral {
  background: var(--fp-bg) !important;
  border-color: var(--fp-border) !important;
  color: var(--fp-text-secondary) !important;
}

/* Cards & modals */
.card,
.empty,
.modal,
.freemium-banner,
.plan-card,
.msg-conv-item,
.prof-section,
.onboarding-tooltip {
  background: var(--fp-surface) !important;
  border: 1px solid var(--fp-border) !important;
  border-radius: var(--fp-radius-lg) !important;
  box-shadow: var(--fp-shadow) !important;
}

.modal { border-radius: 20px 20px 0 0 !important; }

/* Auth */
.auth-hero {
  background: var(--fp-surface) !important;
  border-bottom: 1px solid var(--fp-border);
}

.auth-logo {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 800 !important;
  color: var(--fp-terra) !important;
}

.auth-logo em { font-style: normal !important; color: var(--fp-terra) !important; }
.auth-sub { color: var(--fp-text-secondary) !important; }
.auth-body { background: var(--fp-bg); }

.prof-hero {
  background: var(--fp-surface) !important;
  border-bottom: 1px solid var(--fp-border);
}

/* Bottom nav — TikTok clear, always above PWA banner */
.nav {
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid var(--fp-border) !important;
  backdrop-filter: blur(12px);
  height: 60px;
  z-index: 10200 !important;
}

.nav-btn svg {
  stroke: #C4B8B0 !important;
  width: 24px !important;
  height: 24px !important;
}

.nav-btn span {
  color: #C4B8B0 !important;
  font-size: 0.625rem !important;
  font-weight: 600 !important;
}

.nav-btn.on svg { stroke: var(--fp-terra) !important; }
.nav-btn.on span { color: var(--fp-terra) !important; }

/* Forms */
.finput, .fselect, .ftextarea {
  background: var(--fp-surface) !important;
  border: 1.5px solid var(--fp-border) !important;
  border-radius: var(--fp-radius) !important;
  font-size: 1rem !important;
  padding: 0.85rem 1rem !important;
}

.finput:focus, .ftextarea:focus {
  border-color: var(--fp-terra) !important;
  box-shadow: 0 0 0 3px rgba(212, 88, 26, 0.12) !important;
}

.flabel {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--fp-text-secondary);
}

/* Trial banner */
.trial-banner-global {
  background: var(--fp-terra-soft) !important;
  border-color: var(--fp-terra-border) !important;
  color: var(--fp-text-secondary) !important;
}

.trial-banner-text strong { color: var(--fp-terra) !important; }
.trial-banner-cta { background: var(--fp-terra) !important; }

/* First EDL CTA */
.first-edl-hero {
  background: var(--fp-surface) !important;
  border: 1px solid var(--fp-border) !important;
  border-radius: var(--fp-radius-lg) !important;
  padding: 1.25rem !important;
  box-shadow: var(--fp-shadow) !important;
}

.first-edl-hero-badge { color: var(--fp-terra) !important; }
.first-edl-step-num {
  background: var(--fp-terra-soft) !important;
  color: var(--fp-terra) !important;
  border: 1px solid var(--fp-terra-border);
}

/* Planning / EDL prog */
.edl-prog, .room-head, .planning-cal {
  background: var(--fp-surface) !important;
  border-color: var(--fp-border) !important;
}

.planning-wd-row { background: var(--fp-bg) !important; }

/* Hide old landing clutter if any remains */
.land-hero, .land-body { display: none !important; }

@media (min-width: 768px) {
  .dash-actions { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Loader overlay */
#ls {
  background: var(--fp-surface) !important;
}

/* PWA banner — above nav, dismissible */
.pwa-install-banner {
  z-index: 10100 !important;
  bottom: calc(var(--nbh) + env(safe-area-inset-bottom, 0px)) !important;
  padding: 0.5rem 0.75rem 0.65rem !important;
}

.pwa-install-inner {
  background: var(--fp-surface) !important;
  border: 1px solid var(--fp-border) !important;
  box-shadow: var(--fp-shadow-md) !important;
}

.pwa-install-title { color: var(--fp-text) !important; }
.pwa-install-sub { color: var(--fp-text-secondary) !important; }
.pwa-install-btn { background: var(--fp-terra) !important; }

.pwa-install-close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  border-radius: 50% !important;
  background: var(--fp-bg) !important;
  border: 1px solid var(--fp-border) !important;
  color: var(--fp-text-secondary) !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0 !important;
}

.pwa-install-close:active {
  background: var(--fp-terra-soft) !important;
  color: var(--fp-terra) !important;
}

body.pwa-banner-visible .emergency-fab,
body.pwa-banner-visible .support-fab {
  bottom: calc(var(--nbh) + var(--pwa-banner-h) + 1rem) !important;
}

/* Empty states */
.empty-ic { opacity: 0.5; }
.empty-t { font-weight: 700 !important; color: var(--fp-text) !important; }
.empty-s { color: var(--fp-text-secondary) !important; }

/* Page headers */
.page-h {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.375rem !important;
  color: var(--fp-text) !important;
}

/* Tabs */
.tab-bar { background: var(--fp-bg) !important; border-bottom: 1px solid var(--fp-border) !important; }
.tab-btn.on { color: var(--fp-terra) !important; border-color: var(--fp-terra) !important; }

/* FAB */
.fab-emergency { box-shadow: var(--fp-shadow-md) !important; }

/* Google auth button */
.btn-google {
  background: var(--fp-surface) !important;
  border: 1.5px solid var(--fp-border) !important;
  color: var(--fp-text) !important;
}

/* Freemium / growth */
.growth-card, .referral-card {
  background: var(--fp-surface) !important;
  border: 1px solid var(--fp-border) !important;
}

/* EDL progress */
.edl-step.on .edl-step-n {
  background: var(--fp-terra) !important;
  color: #fff !important;
}

/* Messages */
.msg-bubble-me { background: var(--fp-terra) !important; }
.msg-bubble-them { background: var(--fp-surface) !important; border: 1px solid var(--fp-border) !important; }

/* Legal */
.legal-body { color: var(--fp-text-secondary) !important; }
