/* ============================================================================
   The DoC — persona gate: first-visit "customer or cleaner?" splash.
   Rendered hidden in the HTML (crawlers see the real page behind it); JS reveals
   it only for first-time human visitors, then remembers the choice. SEO-safe.
   ============================================================================ */
.persona-gate {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 32px; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, #14407E 0%, #0B2A5B 58%, #061a3a 100%);
  animation: pg-in .35s ease both;
}
.persona-gate[hidden] { display: none; }
.persona-gate.closing { animation: pg-out .4s ease forwards; }
@keyframes pg-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pg-out { to { opacity: 0; visibility: hidden; } }

.pg-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.pg-logo { display: block; width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 6px 22px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.12); }
.pg-brand small { display: block; font-weight: 500; font-size: 11px; opacity: .65; letter-spacing: .12em; text-transform: uppercase; }
.pg-title { color: #fff; font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.pg-sub { color: #bcd3f0; font-size: 16px; margin: -10px 0 2px; }

.pg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: 100%; max-width: 640px; }
@media (max-width: 560px) { .pg-cards { grid-template-columns: 1fr; } }

.pg-card {
  appearance: none; cursor: pointer; font: inherit; text-align: left;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff;
  border-radius: 18px; padding: 30px 26px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .2s cubic-bezier(.22,1,.36,1), background .2s ease, border-color .2s ease;
}
.pg-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); border-color: #2E86E0; }
.pg-card .ico { font-size: 34px; line-height: 1; }
.pg-card .h { font-size: 20px; font-weight: 800; }
.pg-card .p { font-size: 14px; color: #bcd3f0; line-height: 1.45; }
.pg-card .go { margin-top: 4px; color: #7BB8F3; font-weight: 700; font-size: 14px; }

.pg-skip { background: none; border: none; color: #9bb4d4; font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.pg-skip:hover { color: #cfe0f5; }

@media (prefers-reduced-motion: reduce) {
  .persona-gate, .persona-gate.closing { animation: none; }
  .pg-card { transition: none; }
}

/* ============================================================================
   Cleaner app offer — pops when a visitor picks "I'm a cleaner". Sells the
   Pro Rota perks and points at the download. Bottom-sheet on mobile, centred
   card on desktop. JS-revealed (hidden in HTML), so it never blocks crawlers.
   ============================================================================ */
.app-offer { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-end; justify-content: center; }
.app-offer[hidden] { display: none; }
@media (min-width: 560px) { .app-offer { align-items: center; } }

.ao-backdrop { position: absolute; inset: 0; background: rgba(6, 26, 58, .62); backdrop-filter: blur(3px); animation: ao-fade .25s ease both; }
@keyframes ao-fade { from { opacity: 0; } to { opacity: 1; } }

.ao-sheet {
  position: relative; width: 100%; max-width: 480px;
  background: #fff; color: #0B2A5B;
  border-radius: 22px 22px 0 0; padding: 28px 24px 22px;
  box-shadow: 0 -10px 40px rgba(6,26,58,.35);
  animation: ao-up .34s cubic-bezier(.22,1,.36,1) both;
  max-height: 92vh; overflow-y: auto;
}
@media (min-width: 560px) { .ao-sheet { border-radius: 22px; margin: 20px; animation-name: ao-pop; } }
@keyframes ao-up  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes ao-pop { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.app-offer.closing .ao-sheet { animation: ao-down .3s ease forwards; }
.app-offer.closing .ao-backdrop { animation: ao-fade .3s ease reverse forwards; }
@keyframes ao-down { to { transform: translateY(100%); opacity: 0; } }

.ao-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #EEF3FA; color: #5b7aa3; font-size: 15px; cursor: pointer; line-height: 1; }
.ao-x:hover { background: #e0e9f5; }

.ao-badge { display: inline-block; background: #EAF3FF; color: #2E86E0; font-weight: 800; font-size: 12px; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; }
.ao-title { font-size: clamp(22px, 5vw, 27px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 8px; line-height: 1.18; }
.ao-title strong { color: #2E86E0; }
.ao-sub { font-size: 15px; line-height: 1.5; color: #4b647f; margin: 0 0 18px; }

.ao-perks { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.ao-perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: #2a3f57; }
.ao-perks strong { color: #0B2A5B; }
.ao-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #F2F7FD; display: grid; place-items: center; font-size: 18px; }

.ao-actions { display: flex; flex-direction: column; gap: 12px; }
.ao-btn {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 15px 18px; border-radius: 14px; font-weight: 800; font-size: 16px;
  text-decoration: none; transition: transform .15s ease, filter .15s ease;
}
.ao-btn-primary { background: linear-gradient(135deg, #2E86E0, #1f6fc4); color: #fff; box-shadow: 0 8px 22px rgba(46,134,224,.35); }
.ao-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.ao-btn-sub { font-weight: 600; font-size: 12px; opacity: .85; margin-top: 3px; letter-spacing: .01em; }

.ao-stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.ao-store {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px;
  border: 1px solid #dde7f2; border-radius: 12px; background: #f8fbff;
  color: #8298b3; cursor: not-allowed; user-select: none;
}
.ao-store-ico { font-size: 22px; filter: grayscale(.2); }
.ao-store-txt { display: flex; flex-direction: column; font-weight: 800; font-size: 13.5px; color: #5b7aa3; line-height: 1.15; }
.ao-store-txt small { font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #9fb3cc; }

.ao-skip { display: block; margin: 16px auto 2px; background: none; border: none; color: #7990ab; font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; }
.ao-skip:hover { color: #4b647f; }

/* hero cta row + ghost button + crm app link (cleaner-side) */
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.value-applink { display: inline-block; margin-top: 10px; color: #2E86E0; font-weight: 800; font-size: 14px; text-decoration: none; }
.value-applink:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .ao-backdrop, .ao-sheet { animation: none; }
}

/* ============================================================================
   Log in — nav button + persona-aware chooser modal (reuses .ao-backdrop/.ao-x).
   ============================================================================ */
/* Once a visitor has committed to a persona, the "For customers/cleaners"
   section labels are redundant — hide them (they only help in "show everything"). */
body.mode-customer .section-kicker-persona,
body.mode-cleaner .section-kicker-persona { display: none; }

.nav-auth { display: inline-flex; gap: 8px; align-items: center; }
.nav-cta-login {
  background: transparent; color: #0B2A5B;
  border: 1px solid rgba(11,42,91,.22); font-weight: 800;
}
.nav-cta-login:hover { background: rgba(11,42,91,.06); border-color: #2E86E0; color: #2E86E0; }
.nav-cta-signup { background: #2E86E0; color: #fff; font-weight: 800; border: 1px solid #2E86E0; }
.nav-cta-signup:hover { background: #1f6fc4; border-color: #1f6fc4; color: #fff; }

/* segmented Sign in / Create account toggle (top of the customer auth modal) */
.ca-seg { display: flex; gap: 4px; background: #eef3fa; border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.ca-seg-btn { flex: 1; appearance: none; border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 800; font-size: 14px; color: #5b7aa3; padding: 9px 10px; border-radius: 9px; }
.ca-seg-btn.is-on { background: #fff; color: #0B2A5B; box-shadow: 0 1px 3px rgba(11,42,91,.12); }

.login-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-end; justify-content: center; }
.login-modal[hidden] { display: none; }
@media (min-width: 560px) { .login-modal { align-items: center; } }

.lm-sheet {
  position: relative; width: 100%; max-width: 460px;
  background: #fff; color: #0B2A5B;
  border-radius: 22px 22px 0 0; padding: 28px 24px 24px;
  box-shadow: 0 -10px 40px rgba(6,26,58,.35);
  animation: ao-up .34s cubic-bezier(.22,1,.36,1) both;
}
@media (min-width: 560px) { .lm-sheet { border-radius: 22px; margin: 20px; animation-name: ao-pop; } }
.login-modal.closing .lm-sheet { animation: ao-down .3s ease forwards; }
.login-modal.closing .ao-backdrop { animation: ao-fade .3s ease reverse forwards; }

.lm-title { font-size: clamp(21px, 4.5vw, 25px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.lm-sub { font-size: 15px; color: #4b647f; margin: 0 0 18px; }

.lm-choices { display: flex; flex-direction: column; gap: 12px; }
.lm-choice {
  display: flex; align-items: center; gap: 14px; text-align: left;
  appearance: none; cursor: pointer; font: inherit; width: 100%;
  background: #f8fbff; border: 1px solid #dde7f2; border-radius: 14px; padding: 16px 16px;
  color: #0B2A5B; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.lm-choice:hover { transform: translateY(-2px); border-color: #2E86E0; background: #f2f8ff; }
.lm-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #EAF3FF; display: grid; place-items: center; font-size: 22px; }
.lm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lm-h { font-weight: 800; font-size: 16px; }
.lm-p { font-size: 13px; color: #5b7aa3; line-height: 1.4; }
.lm-go { flex: none; font-weight: 800; font-size: 13px; color: #2E86E0; }
.lm-go.lm-soon { color: #9fb3cc; }

.lm-note {
  margin: 14px 0 0; padding: 11px 13px; border-radius: 10px;
  background: #EAF3FF; color: #0B2A5B; font-size: 13px; line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .lm-sheet { animation: none; }
  .lm-choice:hover { transform: none; }
}

/* ---- customer auth (login / signup / account) inside the lm-sheet ---- */
.ca-msg { border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0 0 12px; line-height: 1.45; }
.ca-err  { background: #FDECEC; color: #B42318; border: 1px solid #F3C2BE; }
.ca-note { background: #EAF3FF; color: #0B2A5B; border: 1px solid #cfe0f5; }
.ca-magic { background: #f2f6fc; color: #0B2A5B; border: 1px solid #dde7f2; margin-top: 10px; }
.ca-magic:hover { background: #e8f0fb; }
.lm-link { display: block; width: 100%; margin-top: 14px; padding: 6px; background: none; border: none; cursor: pointer; color: #2E86E0; font: inherit; font-size: 13.5px; font-weight: 700; text-align: center; }
.lm-link:hover { text-decoration: underline; }
.ca-card { margin-top: 6px; border: 1px solid #e6edf5; border-radius: 14px; padding: 16px; background: #f8fbff; }
.ca-card-h { font-weight: 800; font-size: 14px; color: #0B2A5B; margin-bottom: 6px; }
.ca-empty { margin: 0; font-size: 13px; color: #5b7aa3; line-height: 1.5; }
.ca-signout { margin-top: 14px; background: #fff; color: #B42318; border: 1px solid #f3c2be; }
.ca-signout:hover { background: #fdf3f3; }
