/* PayerScape marketing landing — standalone from app bundle */

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface2: #f4f7ff;
  --border: #e9eaf3;
  --text: #0b0e2c;
  --muted: #6f7182;
  --text-secondary: #303350;
  --accent: #1476ff;
  --accent-dim: #0d5fd4;
  --green: #05c168;
  --green-soft: #ecfdf5;
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 2px 12px rgba(11, 22, 44, 0.06);
  --shadow-lg: 0 20px 50px rgba(11, 22, 44, 0.1);
  --max: 1120px;
  --header-h: 4.5rem;
  --logo-h: 6.25rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.lp-container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.65rem;
}

.lp-logo {
  flex-shrink: 1;
  min-width: 0;
  line-height: 0;
}

.lp-logo img {
  height: var(--logo-h);
  width: auto;
  max-width: min(100%, 22rem);
  object-fit: contain;
  object-position: left center;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}

.lp-nav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.lp-nav a:hover { color: var(--accent); text-decoration: none; }

.lp-nav-login {
  display: none;
}

.lp-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lp-nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  color: var(--text);
}

/* Buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.lp-btn:hover { text-decoration: none; }

.lp-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 118, 255, 0.28);
}

.lp-btn-primary:hover {
  background: var(--accent-dim);
  color: #fff;
}

.lp-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.lp-btn-ghost:hover {
  background: var(--surface2);
  color: var(--text);
}

.lp-btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.lp-btn-compact {
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
}

/* Hero */
.lp-hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(20, 118, 255, 0.12), transparent),
    var(--bg);
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.lp-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(20, 118, 255, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.lp-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.lp-hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.lp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.lp-hero-note {
  font-size: 0.875rem;
  color: var(--muted);
}

.lp-hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  overflow: hidden;
}

.lp-mock-header {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.lp-mock-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--border);
}

.lp-mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.lp-mock-table th,
.lp-mock-table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.lp-mock-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lp-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.lp-badge-named { background: #ecfdf5; color: #047857; }
.lp-badge-mh { background: #fffbeb; color: #b45309; }

/* Trust strip */
.lp-trust {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.lp-trust p {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

/* Sections */
.lp-section {
  padding: 4.5rem 0;
}

.lp-section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.lp-section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.lp-section-head h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.lp-section-head p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

/* Features */
.lp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.lp-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.lp-section-alt .lp-feature {
  background: var(--bg);
}

.lp-feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--surface2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.lp-feature h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.lp-feature p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Steps */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.lp-step {
  text-align: center;
}

.lp-step-num {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-step h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.lp-step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Pricing */
.lp-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 52rem;
  margin: 0 auto;
}

.lp-plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.lp-plan-featured {
  border-color: rgba(20, 118, 255, 0.35);
  box-shadow: 0 12px 40px rgba(20, 118, 255, 0.12);
  position: relative;
}

.lp-plan-badge {
  position: absolute;
  top: -0.65rem;
  left: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.lp-plan h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.lp-plan-price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.75rem 0;
}

.lp-plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.lp-plan-list {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  flex: 1;
}

.lp-plan-list li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.lp-plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.lp-plan-list li.muted::before {
  content: "—";
  color: var(--muted);
}

.lp-plan-list li.muted {
  color: var(--muted);
}

/* FAQ */
.lp-faq {
  max-width: 40rem;
  margin: 0 auto;
}

.lp-faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}

.lp-faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  padding-right: 2rem;
  position: relative;
}

.lp-faq summary::-webkit-details-marker { display: none; }

.lp-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
}

.lp-faq details[open] summary::after { content: "−"; }

.lp-faq p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* CTA band */
.lp-cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0b0e2c 0%, #1a2a5e 100%);
  color: #fff;
  text-align: center;
}

.lp-cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.lp-cta-band p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  font-size: 1.0625rem;
}

.lp-cta-band .lp-btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: none;
}

.lp-cta-band .lp-btn-primary:hover {
  background: var(--surface2);
  color: var(--accent-dim);
}

/* Footer */
.lp-footer {
  padding: 3rem 0 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.lp-footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 20rem;
}

.lp-footer h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.lp-footer ul {
  list-style: none;
}

.lp-footer li { margin-bottom: 0.45rem; }

.lp-footer a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  text-decoration: none;
}

.lp-footer a:hover { color: var(--accent); }

.lp-footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  :root {
    --header-h: auto;
    --logo-h: 4.75rem;
  }

  .lp-container {
    width: min(100% - 1.25rem, var(--max));
  }

  .lp-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo logo"
      "actions toggle"
      "nav nav";
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.5rem;
    padding-block: 0.75rem 0.65rem;
  }

  .lp-logo {
    grid-area: logo;
    justify-self: stretch;
  }

  .lp-logo img {
    height: var(--logo-h);
    max-width: min(100%, 20rem);
    margin-inline: auto;
    object-position: center center;
  }

  .lp-header-actions {
    grid-area: actions;
    gap: 0;
    justify-self: start;
  }

  .lp-header-actions .lp-header-login {
    display: none;
  }

  .lp-header-actions .lp-btn-primary {
    padding: 0.6rem 0.95rem;
    font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(20, 118, 255, 0.22);
  }

  .lp-nav-toggle {
    display: inline-flex;
    grid-area: toggle;
    justify-self: end;
    width: 3rem;
    height: 3rem;
  }

  .lp-nav {
    grid-area: nav;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: unset;
    justify-content: flex-start;
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .lp-nav.is-open {
    display: flex;
  }

  .lp-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }

  .lp-nav a:last-child {
    border-bottom: none;
  }

  .lp-nav-login {
    display: block;
    margin-top: 0.25rem;
    padding-top: 0.85rem !important;
    border-top: 1px solid var(--border);
    font-weight: 600;
    color: var(--accent) !important;
  }

  .lp-hero-grid,
  .lp-features,
  .lp-steps,
  .lp-pricing,
  .lp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lp-hero-visual { order: -1; }
}

@media (max-width: 480px) {
  :root {
    --logo-h: 4.25rem;
  }

  .lp-header-inner {
    padding-block: 0.65rem 0.55rem;
    row-gap: 0.45rem;
  }

  .lp-logo img {
    max-width: min(100%, 17.5rem);
  }

  .lp-header-actions .lp-btn-primary {
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
  }

  .lp-nav-toggle {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.125rem;
  }

  .lp-hero { padding-top: 2rem; }
  .lp-hero-cta { flex-direction: column; }
  .lp-hero-cta .lp-btn { width: 100%; }
}

/* Legal pages */
.lp-legal-header .lp-header-inner,
.lp-legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: auto;
  padding-block: 0.85rem;
}

.lp-legal-header .lp-logo img {
  height: clamp(3rem, 8vw, 4.5rem);
}

.lp-legal {
  padding: 2.5rem 0 4rem;
}

.lp-legal-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.lp-legal-head h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.lp-legal-updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

.lp-legal-body {
  max-width: 42rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.7;
}

.lp-legal-body h2 {
  color: var(--text);
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
}

.lp-legal-body h3 {
  color: var(--text);
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.lp-legal-body p,
.lp-legal-body ul {
  margin-bottom: 1rem;
}

.lp-legal-body ul {
  padding-left: 1.35rem;
}

.lp-legal-body li {
  margin-bottom: 0.4rem;
}

.lp-legal-body a {
  font-weight: 500;
}

.lp-legal-footer {
  padding: 1.5rem 0;
}

.lp-legal-footer .lp-footer-bottom {
  padding-top: 0;
  border-top: none;
}

.lp-legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.lp-legal-footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
}

.lp-legal-footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .lp-legal-header .lp-header-inner {
    display: flex;
    grid-template-areas: unset;
    grid-template-columns: unset;
  }

  .lp-legal-header .lp-logo img {
    height: 3.5rem;
    margin-inline: 0;
    max-width: min(70vw, 14rem);
    object-position: left center;
  }
}
