/* =============================================
   Public landing page (index.php)
   Uses the shared theme tokens, so light / dark just work.
   ============================================= */

.landing-body { display: block; min-height: 100vh; position: relative; }
.lp-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; position: relative; z-index: 2; }
.lp-center { text-align: center; margin-top: 40px; }

/* ---- Header ---- */
.lp-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-primary) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.lp-header-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.lp-header .login-brand { margin: 0; }
.lp-nav { display: flex; gap: 4px; margin-left: auto; }
.lp-nav a {
  padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500;
}
.lp-nav a:hover { color: var(--text-primary); background: var(--bg-hover); }
.lp-header-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) {
  .lp-nav { display: none; }
  .lp-header-actions { margin-left: auto; }
  .lp-hide-sm { display: none; }
}

/* ---- Hero ---- */
.lp-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.lp-eyebrow {
  font: 700 12px var(--font-display); letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}
.lp-hero h1, .lp-section h2, .lp-final h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--text-primary);
}
.lp-hero h1 { font-size: clamp(34px, 4.8vw, 52px); }
.lp-lead { font-size: 18px; line-height: 1.65; color: var(--text-secondary); margin: 20px 0 28px; max-width: 540px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-cta-center { justify-content: center; margin-top: 28px; }
.lp-btn-lg { padding: 14px 26px; font-size: 15px; text-decoration: none; }
.lp-assure { list-style: none; display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 26px; color: var(--text-secondary); font-size: 14px; }
.lp-assure li { display: flex; align-items: center; gap: 8px; }
.lp-assure li::before {
  content: ''; width: 16px; height: 16px; flex: none; background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Decorative reminder stack */
.lp-hero-art { display: flex; justify-content: center; }
.lp-phone {
  width: min(100%, 340px); padding: 22px 18px; border-radius: 32px;
  background: var(--bg-card); border: 1px solid var(--border-hover); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 12px;
}
.lp-note {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.lp-note:nth-child(even) { margin-left: 18px; }
.lp-note:nth-child(odd)  { margin-right: 18px; }
.lp-note-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.lp-note-ico svg { width: 20px; height: 20px; }
.lp-note strong { display: block; font: 700 14px var(--font-display); color: var(--text-primary); }
.lp-note small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-secondary); }
@media (max-width: 880px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; gap: 40px; }
}

/* ---- Sections ---- */
.lp-section { padding-top: 72px; padding-bottom: 72px; }
.lp-section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.lp-section h2 { font-size: clamp(26px, 3.2vw, 34px); }
.lp-sub { color: var(--text-secondary); font-size: 16.5px; line-height: 1.65; margin-top: 14px; }
.lp-band { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; z-index: 2; }
.lp-narrow { max-width: 780px; }

/* Benefit cards */
.lp-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 26px; transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.lp-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lp-card-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 18px; }
.lp-card h3 { font: 700 18px var(--font-display); color: var(--text-primary); margin-bottom: 8px; }
.lp-card p { font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
@media (max-width: 960px) { .lp-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .lp-cards { grid-template-columns: 1fr; } }

/* Steps */
.lp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.lp-steps li { padding: 0 6px; }
.lp-step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-fill); color: var(--on-accent); font: 800 18px var(--font-display); margin-bottom: 16px;
}
.lp-steps h3 { font: 700 18px var(--font-display); color: var(--text-primary); margin-bottom: 8px; }
.lp-steps p { font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
@media (max-width: 760px) { .lp-steps { grid-template-columns: 1fr; } }

/* FAQ (native <details>: keyboard and screen-reader friendly with no script) */
.lp-faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; }
.lp-faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font: 600 16px var(--font-display); color: var(--text-primary); border-radius: var(--radius-md);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-secondary); border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg); transition: transform var(--transition);
}
.lp-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.lp-faq details p { padding: 0 22px 20px; font-size: 15px; line-height: 1.7; color: var(--text-secondary); }

/* Closing CTA */
.lp-final {
  text-align: center; margin: 24px auto 80px; padding: 56px 24px;
  border-radius: var(--radius-xl); background: var(--bg-card); border: 1px solid var(--border);
  max-width: 1072px; box-shadow: var(--shadow-md);
}
.lp-final h2 { font-size: clamp(26px, 3.4vw, 38px); }
.lp-final p { color: var(--text-secondary); font-size: 16.5px; margin-top: 12px; }

/* Footer */
.lp-footer { position: relative; z-index: 2; padding: 0 0 48px; }
.lp-footer .med-notice { max-width: 760px; margin: 0 auto 8px; }
.lp-copy { text-align: center; margin-top: 16px; color: var(--text-muted); font-size: 12.5px; }

@media (max-width: 480px) {
  .lp-wrap { padding-left: 16px; padding-right: 16px; }
  .lp-header-in { gap: 10px; }
  .lp-header-actions { gap: 8px; }
  .lp-header .login-brand .brand-icon { width: 36px; height: 36px; }
  .lp-header .login-brand .brand-name { font-size: 18px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lp-btn-lg { width: 100%; justify-content: center; }
  .lp-final { padding: 40px 18px; }
}
