/* ==========================================================================
   SurveyTo - Landing page (2026)
   Mobile first, works in browsers and the in-app WebView.
   ========================================================================== */

:root {
  --lp-ink: #0b1220;
  --lp-ink-2: #1e293b;
  --lp-text: #334155;
  --lp-muted: #64748b;
  --lp-line: #e8edf4;
  --lp-bg: #f6f8fc;
  --lp-orange: #ff7a1a;
  --lp-grad: linear-gradient(135deg, #fd972e 0%, #fb6a3c 55%, #fa5563 100%);
  --lp-blue: #1d4ed8;
  --lp-green: #16a34a;
  --lp-radius: 20px;
  --lp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .07);
  --lp-safe-t: env(safe-area-inset-top, 0px);
  --lp-safe-b: env(safe-area-inset-bottom, 0px);
  --lp-header-h: 64px;
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.lp {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--lp-text);
  background: var(--lp-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow-x: clip) { body.lp { overflow-x: clip; } }
body.lp h1, body.lp h2, body.lp h3, body.lp h4, body.lp h5, body.lp h6 { font-family: inherit; color: var(--lp-ink); letter-spacing: -.02em; }
body.lp a { text-decoration: none; }
body.lp img { max-width: 100%; }

.lp-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.lp-grad { background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #c2410c;
  background: #fff1e6; border: 1px solid #ffe0c7;
  padding: 6px 12px; border-radius: 999px;
}
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-green); box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: lpPulse 1.8s infinite; }
@keyframes lpPulse { 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 13px 20px; border-radius: 14px; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  touch-action: manipulation; cursor: pointer; white-space: nowrap;
}
.lp-btn:active { transform: scale(.98); }
.lp-btn-primary { background: var(--lp-grad); color: #fff !important; box-shadow: 0 8px 20px rgba(250, 100, 60, .30); }
.lp-btn-primary:hover { box-shadow: 0 10px 26px rgba(250, 100, 60, .40); }
.lp-btn-ghost { background: #fff; color: var(--lp-ink) !important; border: 1px solid var(--lp-line); }
.lp-btn-ghost:hover { border-color: #cbd5e1; }
.lp-btn-light { background: #fff; color: var(--lp-ink) !important; }
.lp-btn-lg { padding: 16px 24px; font-size: 16px; border-radius: 16px; }
.lp-btn-sm { padding: 10px 14px; font-size: 14px; border-radius: 12px; }
.lp-btn-block { width: 100%; padding: 15px 20px; font-size: 16px; }
.lp-link { color: var(--lp-blue) !important; font-weight: 600; }

/* ---------- Header ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 1030;
  padding-top: var(--lp-safe-t);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lp-header.is-scrolled { border-bottom-color: var(--lp-line); box-shadow: 0 6px 20px rgba(15, 23, 42, .05); }
.lp-header-inner { height: var(--lp-header-h); display: flex; align-items: center; gap: 16px; }
.lp-logo img { height: 36px; width: auto; display: block; }
.lp-nav { display: none; }
.lp-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lp-burger {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--lp-line); background: #fff;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0;
}
.lp-burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--lp-ink); transition: transform .2s ease, opacity .2s ease; }
.lp-header.is-open .lp-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lp-header.is-open .lp-burger span:nth-child(2) { opacity: 0; }
.lp-header.is-open .lp-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile dropdown menu */
.lp-header.is-open .lp-nav {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; left: 12px; right: 12px; top: calc(var(--lp-header-h) + var(--lp-safe-t) + 6px);
  background: #fff; border: 1px solid var(--lp-line); border-radius: 18px; padding: 10px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, .14);
  animation: lpDrop .18s ease;
}
@keyframes lpDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lp-nav > a {
  display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px;
  color: var(--lp-ink-2); font-weight: 600; font-size: 15px;
}
.lp-nav > a i { color: var(--lp-orange); font-size: 18px; }
.lp-nav > a:hover { background: #f8fafc; }
.lp-nav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--lp-line); }

/* ---------- Hero ---------- */
.lp-hero {
  position: relative; overflow: hidden;
  padding: 22px 0 28px;
  background:
    radial-gradient(600px 300px at 90% -10%, rgba(253, 151, 46, .18), transparent 60%),
    radial-gradient(500px 280px at -10% 30%, rgba(29, 78, 216, .08), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--lp-bg) 100%);
}
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.lp-hero-grid > *, .lp-steps > *, .lp-live-grid > *, .lp-logos > *, .lp-footer-grid > * { min-width: 0; }
.lp-hero-copy h1 { font-size: 34px; line-height: 1.12; font-weight: 800; margin: 14px 0 16px; }
.lp-checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; }
.lp-checks li { min-width: 0; overflow-wrap: anywhere; display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; font-weight: 500; color: var(--lp-ink-2); line-height: 1.35; }
.lp-checks i { color: var(--lp-green); font-size: 18px; line-height: 1.2; }
.lp-hero-cta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; margin-bottom: 18px; }
.lp-hero-cta .lp-btn { white-space: normal; text-align: center; line-height: 1.2; min-height: 54px; padding-left: 12px; padding-right: 12px; font-size: 15px; }
.lp-trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  background: #fff; border: 1px solid var(--lp-line); border-radius: 16px; padding: 12px;
  margin-bottom: 18px;
}
.lp-trust-item { text-align: center; min-width: 0; }
.lp-trust-item + .lp-trust-item { border-left: 1px solid var(--lp-line); }
.lp-trust-item b { display: block; font-size: clamp(13px, 4vw, 16px); color: var(--lp-ink); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.lp-trust-item span { display: block; font-size: 12px; color: var(--lp-muted); font-weight: 600; line-height: 1.25; }
.lp-paywith span { display: block; font-size: 13px; font-weight: 600; color: var(--lp-muted); margin-bottom: 8px; }
.lp-paywith img { width: 100%; max-width: 420px; height: auto; }

/* ---------- Cards / login ---------- */
.lp-card { background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); box-shadow: var(--lp-shadow); }
.lp-login { padding: 22px 18px; }
.lp-login-head { text-align: center; margin-bottom: 16px; }
.lp-login-head h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.lp-login-head p { margin: 0; color: var(--lp-muted); font-size: 14px; }
.lp-field {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: #f8fafc; border: 1px solid var(--lp-line); border-radius: 14px;
  padding: 0 14px; margin-bottom: 10px; height: 52px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.lp-field:focus-within { background: #fff; border-color: #fdba74; box-shadow: 0 0 0 4px rgba(253, 151, 46, .15); }
.lp-field i { color: #94a3b8; font-size: 18px; }
.lp-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--lp-ink); font-family: inherit; }
.lp-captcha { margin: 6px 0 10px; display: flex; justify-content: center; }
.lp-login-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 2px 14px; font-size: 14px; }
.lp-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--lp-text); cursor: pointer; }
.lp-check input { width: 18px; height: 18px; accent-color: var(--lp-orange); }
.lp-or { display: flex; align-items: center; gap: 12px; color: #94a3b8; font-size: 13px; margin: 14px 0; }
.lp-or::before, .lp-or::after { content: ''; flex: 1; height: 1px; background: var(--lp-line); }
.lp-google { display: flex; justify-content: center; min-height: 44px; }
.lp-login-foot { text-align: center; margin: 14px 0 0; font-size: 14px; color: var(--lp-muted); }
#loginStatus .alert { border-radius: 12px; font-size: 14px; }

/* ---------- Sections ---------- */
.lp-section { padding: 28px 0; }
.lp-head { text-align: center; margin-bottom: 20px; }
.lp-head h2 { font-size: 26px; font-weight: 800; line-height: 1.2; margin: 12px 0 0; }

.lp-stats-wrap { padding-top: 8px; }
.lp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-stat { background: #fff; border: 1px solid var(--lp-line); border-radius: 18px; padding: 16px 12px; text-align: center; box-shadow: var(--lp-shadow); }
.lp-stat-ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff1e6; color: var(--lp-orange); font-size: 20px; margin-bottom: 8px; }
.lp-stat b { display: block; font-size: 22px; font-weight: 800; color: var(--lp-ink); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-stat span:last-child { font-size: 13px; color: var(--lp-muted); font-weight: 600; }

.lp-steps { display: grid; gap: 12px; }
.lp-step { position: relative; background: #fff; border: 1px solid var(--lp-line); border-radius: 18px; padding: 18px 18px 18px 72px; min-height: 92px; }
.lp-step > i { position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 12px; background: var(--lp-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.lp-step-n { position: absolute; right: 16px; top: 12px; font-size: 32px; font-weight: 800; color: #f1f5f9; line-height: 1; }
.lp-step h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 4px; }
.lp-step p { margin: 0; font-size: 14px; color: var(--lp-muted); }

.lp-live-grid { display: grid; gap: 14px; }
.lp-feed { padding: 6px 0 4px; overflow: hidden; }
.lp-feed-head { padding: 14px 18px 8px; }
.lp-feed-head h3 { font-size: 16px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; }
.lp-feed-head h3 i { color: var(--lp-orange); }
.lp-feed-list { list-style: none; margin: 0; padding: 0; }
.lp-feed-list li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid #f1f5f9; }
.lp-feed-empty { justify-content: center; color: var(--lp-muted); font-size: 14px; }
.lp-avatar { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #c2410c; background: #fff1e6; }
.lp-avatar-alt { color: var(--lp-blue); background: #e0e7ff; }
.lp-feed-main { flex: 1; min-width: 0; }
.lp-feed-main b { display: block; font-size: 14.5px; color: var(--lp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-feed-main small { font-size: 12.5px; color: var(--lp-muted); }
.lp-feed-method { flex-shrink: 0; display: inline-flex; align-items: center; max-width: 76px; overflow: hidden; }
.lp-feed-method img { margin: 0 !important; height: 20px !important; width: auto; max-width: 76px; object-fit: contain; }
.lp-feed-amount { flex-shrink: 0; font-weight: 800; color: var(--lp-green); background: #f0fdf4; border-radius: 999px; padding: 5px 10px; font-size: 14px; }

.lp-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lp-logo-tile { background: #fff; border: 1px solid var(--lp-line); border-radius: 16px; height: 72px; display: flex; align-items: center; justify-content: center; padding: 10px 12px; }
.lp-logo-tile img { max-height: 44px; width: auto; object-fit: contain; }

.lp-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px; padding: 26px 22px; color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
}
.lp-cta::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(253,151,46,.35), transparent 70%); }
.lp-cta > * { position: relative; z-index: 1; }
body.lp .lp-cta h2 { color: #fff; font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.lp-cta p { margin: 0; color: #cbd5e1; }

/* ---------- Footer ---------- */
.lp-footer { background: #fff; border-top: 1px solid var(--lp-line); padding: 32px 0 calc(90px + var(--lp-safe-b)); margin-top: 16px; }
.lp-footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.lp-footer-brand { grid-column: 1 / -1; }
.lp-footer-brand img { height: 36px; width: auto; margin-bottom: 12px; }
.lp-footer-brand p { color: var(--lp-muted); font-size: 14px; line-height: 1.7; margin: 0; }
.lp-footer h6 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--lp-ink); font-weight: 800; margin: 0 0 10px; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lp-footer ul a { color: var(--lp-muted); font-size: 14.5px; }
.lp-footer ul a:hover { color: var(--lp-orange); }
.lp-footer-bottom { border-top: 1px solid var(--lp-line); margin-top: 24px; padding-top: 16px; text-align: center; color: #94a3b8; font-size: 13px; }

/* ---------- Recover modal (Bootstrap 4) ---------- */
#recoverModal .modal-dialog { margin: 16px; }
#recoverModal .modal-content { border: 0; border-radius: 20px; box-shadow: 0 30px 60px rgba(15,23,42,.25); }
#recoverModal .modal-header, #recoverModal .modal-footer { border: 0; padding: 18px 20px; }
#recoverModal .modal-title { font-weight: 800; }
#recoverModal .form-control { height: 50px; border-radius: 14px; font-size: 16px; background: #f8fafc; border-color: var(--lp-line); }
#recoverModal .btn-primary { background: var(--lp-grad); border: 0; border-radius: 14px; padding: 12px 20px; font-weight: 700; width: 100%; }
.custom-close-button { background: #f1f5f9; border: 0; width: 36px; height: 36px; border-radius: 10px; font-size: 22px; line-height: 1; margin-left: auto; color: var(--lp-ink); }

/* ---------- Floating widgets ---------- */
html:not(.in-app) #gt_float_wrapper { left: 10px !important; bottom: calc(76px + var(--lp-safe-b)) !important; transform: none !important; }
#gt_float_wrapper .gt_float_switcher { font-size: 13px !important; border-radius: 999px !important; overflow: hidden; box-shadow: 0 6px 18px rgba(15,23,42,.14) !important; }
#gt_float_wrapper .gt_float_switcher .gt-selected .gt-current-lang { padding: 6px 10px !important; }
#gt_float_wrapper .gt_float_switcher img { width: 22px !important; height: auto; }

.lp-only-mobile { display: inline-flex; }

/* ==========================================================================
   Tablet / desktop
   ========================================================================== */
@media (min-width: 769px) {
  html:not(.in-app) #gt_float_wrapper { bottom: 20px !important; }
  .lp-footer { padding-bottom: 32px; }
}

@media (min-width: 992px) {
  :root { --lp-header-h: 76px; }
  .lp-container { padding: 0 32px; }
  .lp-burger, .lp-only-mobile { display: none; }
  .lp-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .lp-nav > a { padding: 10px 14px; font-size: 15px; }
  .lp-nav > a i { font-size: 16px; }
  .lp-nav-cta { display: flex; gap: 8px; border: 0; margin: 0 0 0 10px; padding: 0; }
  .lp-header-actions { display: none; }
  .lp-logo img { height: 42px; }

  .lp-hero { padding: 56px 0 64px; }
  .lp-hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
  .lp-hero-copy h1 { font-size: 56px; margin-top: 18px; }
  .lp-checks { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .lp-hero-cta { display: flex; gap: 12px; }
  .lp-trust { max-width: 520px; }
  .lp-login { padding: 30px 28px; }
  .lp-login-head h2 { font-size: 26px; }

  .lp-section { padding: 56px 0; }
  .lp-head { margin-bottom: 32px; }
  .lp-head h2 { font-size: 38px; }
  .lp-stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .lp-stat { padding: 24px 16px; }
  .lp-stat b { font-size: 30px; }
  .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .lp-step { padding: 26px 22px; min-height: 0; }
  .lp-step > i { position: static; margin-bottom: 16px; width: 48px; height: 48px; font-size: 22px; }
  .lp-step-n { font-size: 48px; right: 20px; top: 16px; }
  .lp-live-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .lp-logos { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .lp-logo-tile { height: 88px; transition: transform .2s ease, box-shadow .2s ease; }
  .lp-logo-tile:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow); }
  .lp-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 48px; }
  .lp-cta h2 { font-size: 32px; }
  .lp-footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
  .lp-footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   In-app WebView (app hides our bottom bar, positions the language switcher
   and injects its native "Login with Google" button after the payment logos)
   ========================================================================== */
html.in-app .lp-footer { padding-bottom: 24px; }
#custom-google-button {
  width: 100% !important;
  max-width: 420px;
  min-height: 52px;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  margin: 4px 0 18px !important;
  padding: 14px 18px !important;
}
/* In the app the web Google sign-in does not work; the app injects its own green button instead */
html.in-app .lp-google,
html.in-app .lp-or { display: none !important; }
