/* Estigator landing page, sign-in and registration in the Simple look.

   The three logged-out screens (#landing-page, #login-overlay, #register-workshop-overlay) carry
   class "sx lp": .sx gives them the Simple tokens, type and form fields (simple/simple.css), .lp
   the layout below. White page, navy hero band, blue buttons; no outline-only controls. The
   positioning (fixed, full screen, z-index tiers) stays in app.css's id rules. */

/* ── Shared ── */
.lp { --lp-max: 1120px; background: var(--sx-bg); }
.lp .lp-mark {
  width: 48px; height: 48px; border-radius: 13px; background: var(--sx-navy); color: #fff;
  display: grid; place-items: center; overflow: hidden; flex: 0 0 auto;
}
.lp .lp-mark svg { width: 24px; height: 24px; }
.lp .lp-mark img { width: 100%; height: 100%; object-fit: cover; }
.lp .lp-mark-sm { width: 38px; height: 38px; border-radius: 10px; }
.lp .lp-mark-sm svg { width: 20px; height: 20px; }
.lp .lp-brand-name { font-family: var(--sx-font-head); font-size: 22px; font-weight: 700; color: var(--sx-text); margin: 0; letter-spacing: -0.2px; }
.lp .lp-brand-name strong { color: var(--sx-blue); font-weight: 700; }
.lp .lp-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--sx-blue-soft); color: var(--sx-blue);
  display: grid; place-items: center; flex: 0 0 auto;
}
.lp .lp-icon svg { width: 22px; height: 22px; }
.lp .lp-center { text-align: center; }
.lp .sx-btn .icon, .lp .sx-btn svg { width: 18px; height: 18px; }
/* Filled alternatives to the outlined secondary button (design rule: no outline-only controls). */
.lp .lp-btn-soft { background: var(--sx-blue-soft); color: var(--sx-blue); }
.lp .lp-btn-soft:hover { background: #dfe8ff; }
.lp .lp-btn-light { background: #fff; color: var(--sx-navy); }
.lp .lp-btn-light:hover { background: var(--sx-blue-soft); }

/* ── Sign-in and registration ── */
#login-overlay.lp, #register-workshop-overlay.lp {
  background: var(--sx-bg-2); gap: 0; padding: 32px 16px; justify-content: flex-start; min-height: 0;
}
.lp-gate-panel { width: min(440px, 100%); margin: auto; display: flex; flex-direction: column; gap: 22px; }
.lp-gate-wide { width: min(980px, 100%); }
.lp-gate-brand { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.lp-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--sx-blue-soft); color: var(--sx-blue);
}
.lp-card {
  background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-r-lg);
  box-shadow: 0 10px 30px rgba(10, 18, 32, 0.07);
}
.lp-login-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.lp .lp-card-title { font-family: var(--sx-font-head); font-size: 24px; font-weight: 700; }
.lp .lp-wide { width: 100%; }
.lp-error {
  padding: 10px 14px; border-radius: var(--sx-r-sm); background: #fdecea; color: var(--sx-danger);
  font-size: 14px; font-weight: 600;
}
.lp-or { display: flex; align-items: center; gap: 12px; color: var(--sx-muted); font-size: 13px; }
.lp-or::before, .lp-or::after { content: ""; flex: 1; height: 1px; background: var(--sx-line); }
.lp-or[hidden] { display: none; }
.lp .lp-alt { text-align: center; color: var(--sx-muted); font-size: 15px; }
.lp .lp-alt a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.lp .lp-alt a svg { width: 16px; height: 16px; }
.lp .lp-opt { font-weight: 500; color: var(--sx-muted); }
.lp .lp-hint { font-size: 13px; font-weight: 500; color: var(--sx-muted); }
.lp .lp-password { position: relative; }
.lp .lp-password input { width: 100%; padding-right: 50px; }
.lp .lp-password .password-toggle-btn { height: 50px; width: 48px; color: var(--sx-muted); }

.lp-register { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); overflow: hidden; }
.lp-register-form { padding: 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.lp-grid .lp-span { grid-column: 1 / -1; }
.lp-grid .sx-field input, .lp-grid .sx-field select { width: 100%; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-register-side {
  background: var(--sx-navy); color: #dbe4f3; padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.lp .lp-register-side h3 { color: #fff; font-family: var(--sx-font-head); font-size: 20px; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.lp-checks li[hidden] { display: none; }
.lp-checks li svg { width: 20px; height: 20px; flex: 0 0 auto; color: #8fb2ff; margin-top: 1px; }
.lp-checks strong { color: #fff; }
.lp-side-prices {
  margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.lp-side-prices > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.lp-side-v { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-side-v .lp-price-period { font-weight: 500; color: #b7c4da; font-size: 13px; margin-left: 2px; }

@media (max-width: 820px) {
  .lp-register { grid-template-columns: 1fr; }
  .lp-register-side { order: -1; }
  .lp-side-prices { margin-top: 0; }
}
@media (max-width: 560px) {
  .lp-grid { grid-template-columns: 1fr; }
  .lp-login-card, .lp-register-form, .lp-register-side { padding: 22px 18px; }
  .lp-actions .sx-btn { flex: 1 1 100%; }
  #login-overlay.lp, #register-workshop-overlay.lp { padding: 20px 16px; }
}

/* ── Landing page ── */
#landing-page.lp { min-height: 0; display: block; background: var(--sx-bg); }
.lp-nav {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - var(--lp-max)) / 2)); background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--sx-line); backdrop-filter: saturate(1.4) blur(6px);
}
.lp-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp-nav-links { display: flex; gap: 4px; }
.lp-nav-links a {
  color: var(--sx-muted); font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 12px; border-radius: 10px;
}
.lp-nav-links a:hover { color: var(--sx-text); background: var(--sx-bg-2); }
@media (max-width: 760px) { .lp-nav-links { display: none; } }

.lp-hero { position: relative; overflow: hidden; background: var(--sx-navy); color: #fff; isolation: isolate; }
/* The hero photo (default marketing/hero-collision-cc0.jpg from app.css's .hero-photo, or the admin's
   own image set by applyBranding()) sits under a navy wash so the text always reads. */
.lp .lp-hero-photo { opacity: 0.32; z-index: -2; }
.lp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--sx-navy) 30%, rgba(10, 18, 32, 0.72) 65%, rgba(26, 51, 88, 0.55));
}
.lp-hero-inner {
  max-width: var(--lp-max); margin: 0 auto; padding: 84px 16px 92px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 20px;
}
.lp-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #9dbbff;
  padding: 6px 12px; border-radius: 999px; background: rgba(43, 108, 246, 0.18);
}
.lp .lp-headline { font-family: var(--sx-font-head); font-size: clamp(34px, 5.4vw, 56px); line-height: 1.05; max-width: 15ch; letter-spacing: -0.8px; color: #fff; }
.lp .lp-subhead { font-size: clamp(17px, 2vw, 19px); line-height: 1.55; max-width: 60ch; color: #c9d4e6; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lp .lp-hero-note { font-size: 15px; color: #c9d4e6; font-weight: 600; }

.lp-stats {
  max-width: var(--lp-max); margin: -40px auto 0; position: relative; z-index: 1; padding: 0 16px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.lp-stat {
  background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-r); padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(10, 18, 32, 0.08);
}
.lp-stat-num { font-family: var(--sx-font-head); font-size: 30px; font-weight: 700; color: var(--sx-blue); line-height: 1; }
.lp-stat-label { margin-top: 6px; font-size: 14px; color: var(--sx-muted); line-height: 1.4; }
@media (max-width: 760px) { .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -28px; } }

.lp-section { padding: 72px max(16px, calc((100% - var(--lp-max)) / 2)); }
.lp-tint { background: var(--sx-bg-2); }
.lp .lp-section-title { font-family: var(--sx-font-head); font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; text-align: center; letter-spacing: -0.4px; }
.lp .lp-section-sub { margin: 10px auto 0; max-width: 60ch; text-align: center; color: var(--sx-muted); font-size: 17px; }

.lp-money-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.lp-money-card {
  border: 1px solid var(--sx-line); border-top: 4px solid var(--sx-blue); border-radius: var(--sx-r-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 12px; background: #fff;
}
.lp-money-card[hidden] { display: none; }
.lp .lp-money-card h3, .lp .lp-feature h3, .lp .lp-price-card h3, .lp .lp-steps h3 { font-size: 18px; font-weight: 800; }
.lp .lp-money-card p, .lp .lp-feature p { color: var(--sx-muted); font-size: 15.5px; line-height: 1.55; }
.lp .lp-fine { font-size: 14px !important; color: var(--sx-text) !important; font-weight: 600; }

.lp-feature-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-feature {
  background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-r); padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
@media (max-width: 960px) { .lp-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lp-feature-grid { grid-template-columns: 1fr; } }

.lp-pricing-grid { margin: 36px auto 18px; max-width: 760px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-price-card {
  border: 1px solid var(--sx-line); border-radius: var(--sx-r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px;
}
.lp-price-featured { background: var(--sx-navy); color: #fff; border-color: var(--sx-navy); }
.lp-price-featured p { color: #c9d4e6; }
.lp .lp-price-card p { font-size: 15px; line-height: 1.5; }
.lp-price-card:not(.lp-price-featured) p { color: var(--sx-muted); }
.lp-price { font-family: var(--sx-font-head); font-size: 40px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-price-period { font-family: var(--sx-font); font-size: 16px; font-weight: 600; opacity: 0.7; margin-left: 4px; }
@media (max-width: 600px) { .lp-pricing-grid { grid-template-columns: 1fr; } }

.lp-steps {
  list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.lp-steps li { background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-r); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.lp-steps p { color: var(--sx-muted); font-size: 15px; }
.lp-step-num {
  width: 34px; height: 34px; border-radius: 999px; background: var(--sx-blue); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
}
@media (max-width: 860px) { .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .lp-steps { grid-template-columns: 1fr; } }

.lp-faq-list { max-width: 780px; margin: 30px auto 24px; display: flex; flex-direction: column; gap: 10px; }
.lp-faq-list details { border: 1px solid var(--sx-line); border-radius: var(--sx-r); background: #fff; }
.lp-faq-list summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 16px; position: relative;
}
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--sx-blue);
}
.lp-faq-list details[open] summary::after { content: "–"; }
.lp-faq-list details p { padding: 0 18px 18px; color: var(--sx-muted); line-height: 1.6; }

.lp-cta-band {
  background: var(--sx-navy); color: #fff; padding: 56px 16px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.lp .lp-cta-band h2 { font-family: var(--sx-font-head); font-size: clamp(24px, 3vw, 32px); color: #fff; }
.lp-cta-band .lp-cta-row { justify-content: center; }

.lp-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 22px max(16px, calc((100% - var(--lp-max)) / 2)); font-size: 14px; color: var(--sx-muted);
  border-top: 1px solid var(--sx-line);
}
.lp-footer a { color: var(--sx-muted); }
@media (max-width: 480px) {
  .lp-hero-inner { padding: 56px 16px 72px; }
  .lp-cta-row .sx-btn { flex: 1 1 100%; }
  .lp-section { padding-top: 56px; padding-bottom: 56px; }
}
.lp .sx-field > label { all: unset; display: block; font: inherit; color: inherit; }

/* ── Product screenshots (real estimates from a sample shop; see docs/marketing-screens.md) ── */
.lp-hero-inner { flex-direction: row; align-items: center; gap: 48px; max-width: 1240px; }
.lp-hero-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.lp .lp-hero-fact { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #c9d4e6; }
.lp .lp-hero-fact svg { width: 18px; height: 18px; color: #8fb2ff; flex: 0 0 auto; }
.lp-shot { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-shot img {
  display: block; width: 100%; height: auto; border-radius: var(--sx-r); background: #fff;
  border: 1px solid var(--sx-line); box-shadow: 0 18px 50px rgba(10, 18, 32, 0.16);
}
.lp-shot figcaption { font-size: 13px; color: var(--sx-muted); text-align: center; }
.lp-hero-shot { flex: 1.15 1 0; }
.lp-hero-shot img { border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.lp-hero-shot figcaption { color: #b7c4da; }
@media (max-width: 960px) {
  .lp-hero-inner { flex-direction: column; align-items: stretch; gap: 32px; }
  .lp-hero-shot { flex: none; }
}

.lp-split {
  margin-top: 44px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center;
}
.lp-split[hidden] { display: none; }
.lp-split-flip .lp-split-text { order: 2; }
.lp-split-text { display: flex; flex-direction: column; gap: 12px; }
.lp .lp-split-text h3 { font-family: var(--sx-font-head); font-size: 26px; font-weight: 700; }
.lp .lp-split-text p { color: var(--sx-muted); font-size: 16.5px; line-height: 1.6; }
.lp-money-grid { margin-top: 44px; }
@media (max-width: 860px) {
  .lp-split { grid-template-columns: 1fr; gap: 20px; }
  .lp-split-flip .lp-split-text { order: 0; }
}
