/* Landing page + account access (auth gate). Loaded last; scoped to .lp */
.auth-gate.lp {
  display: block;
  min-height: 100vh;
  padding: 0;
  place-items: initial;
  background: #fcfbf8;
  color: #182a2e;
  --lp-teal: #12343b;
  --lp-teal-2: #1d4a4f;
  --lp-gold: #c7942e;
  --lp-gold-soft: #f4dea9;
  --lp-ink: #182a2e;
  --lp-muted: #5f6b6c;
  --lp-line: #ebe4d4;
  --lp-cream: #faf6ec;
  font-size: 16px;
}
.auth-gate.lp[hidden] { display: none; }
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp a { color: inherit; }
.lp-inner, .lp-nav-inner, .lp-hero-inner { width: min(100% - 40px, 1120px); margin: 0 auto; }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 20; background: rgba(18, 52, 59, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(244, 222, 169, .14); }
.lp-nav-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff !important; }
.lp-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; flex: none; background: linear-gradient(145deg,#275552,#12343b); border: 1px solid rgba(199,148,46,.55); }
.lp-brand-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; margin: 0; color: #fff; }
.lp-nav-links { display: flex; gap: 22px; margin-left: 12px; }
.lp-nav-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem; font-weight: 600; }
.lp-nav-links a:hover { color: #fff; }
.lp-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lp-link-button { background: none; border: 0; color: rgba(255,255,255,.85); font: inherit; font-weight: 700; font-size: .9rem; padding: 8px 10px; cursor: pointer; }
.lp-link-button:hover { color: #fff; }

/* Buttons */
.lp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #d9a640, #c08a22); color: #1b1404; font: inherit; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; cursor: pointer; box-shadow: 0 8px 24px rgba(199, 148, 46, .35), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; text-decoration: none; }
.lp-cta:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 12px 28px rgba(199, 148, 46, .42), inset 0 1px 0 rgba(255,255,255,.35); }
.lp-cta:focus-visible, .lp-ghost:focus-visible, .lp-auth-tabs button:focus-visible { outline: 3px solid #f4dea9; outline-offset: 2px; }
.lp-cta:disabled { opacity: .6; cursor: progress; transform: none; }
.lp-cta-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; border-radius: 10px; box-shadow: none; }
.lp-cta-block { width: 100%; }
.lp-cta-light { background: #fff; color: var(--lp-teal); border: 1px solid var(--lp-line); box-shadow: none; }
.lp-ghost { display: inline-flex; align-items: center; min-height: 52px; padding: 0 6px; color: #f4dea9 !important; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Hero */
.lp-hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(ellipse at 85% 10%, rgba(199,148,46,.28), transparent 45%),
  radial-gradient(ellipse at 0% 100%, rgba(39,85,82,.9), transparent 55%),
  linear-gradient(160deg, #12343b 0%, #0e262b 60%, #1a2a22 100%); }
.lp-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='140' viewBox='0 0 520 140'%3E%3Cg fill='none' stroke='%23f4dea9' stroke-opacity='.10' stroke-width='2.5' stroke-linejoin='round'%3E%3Cpath d='M20 140V70l50-38 50 38v70M150 140V52l80-46 80 46v88M340 140V82l45-34 45 34v58M450 140V96l30-22 30 22v44'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom / 520px 140px; pointer-events: none; }
.lp-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 56px; align-items: center; padding: 64px 0 96px; }
.lp-eyebrow { margin: 0 0 14px; color: var(--lp-gold); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lp-hero .lp-eyebrow { color: #f4dea9; }
.lp-headline { margin: 0; font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 850; color: #fff; max-width: 17ch; }
.lp-headline em { display: block; margin-top: 10px; font-style: normal; color: #f4dea9; }
.lp-sub { margin: 22px 0 0; max-width: 54ch; color: rgba(255,255,255,.82); font-size: 1.1rem; line-height: 1.6; }
.lp-proof-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.lp-proof-points li { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.9); font-size: .92rem; font-weight: 650; }
.lp-proof-points li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(199,148,46,.22); color: #f4dea9; font-size: .72rem; font-weight: 900; }
.lp-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }

/* Auth card */
.lp-auth { scroll-margin-top: 84px; }
.lp-auth-card.auth-form { display: block; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.6); border-radius: 20px; background: #fff; color: var(--lp-ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.lp-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f4f0e6; padding: 6px; gap: 6px; }
.lp-auth-tabs button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--lp-muted); font: inherit; font-weight: 750; font-size: .92rem; cursor: pointer; }
.lp-auth-tabs button[aria-selected="true"] { background: #fff; color: var(--lp-teal); box-shadow: 0 2px 8px rgba(18,52,59,.08); }
.lp-auth-body, .lp-check-inbox, .lp-auth-card .password-recovery-panel { padding: 24px 24px 8px; }
.lp-auth-title { margin: 0; font-size: 1.35rem; font-weight: 850; letter-spacing: -.03em; color: var(--lp-ink); }
.lp-auth-copy { margin: 6px 0 18px; color: var(--lp-muted); font-size: .92rem; line-height: 1.5; }
.lp-fields { display: grid; gap: 14px; }
.lp-fields label, .lp-auth-card .password-recovery-panel label { display: grid; gap: 6px; color: var(--lp-ink); font-size: .84rem; font-weight: 700; }
.lp-fields input[type="text"], .lp-fields input[type="email"], .lp-fields input[type="password"], .lp-fields select, .lp-auth-card .password-recovery-panel input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid #e2dccd; border-radius: 11px; background: #fff; color: var(--lp-ink); font: inherit; font-size: 1rem; font-weight: 500; }
.lp-fields input:focus, .lp-fields select:focus, .lp-auth-card .password-recovery-panel input:focus { outline: none; border-color: var(--lp-gold); box-shadow: 0 0 0 4px rgba(199,148,46,.18); }
.lp-fields input[aria-invalid="true"] { border-color: #b3261e; }
.lp-password-wrap { position: relative; display: block; }
.lp-password-wrap input { padding-right: 70px !important; }
.lp-show-password { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: #f4f0e6; color: var(--lp-teal); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.lp-check { grid-template-columns: auto 1fr !important; align-items: center; gap: 10px !important; font-weight: 550 !important; color: var(--lp-muted) !important; }
.lp-check input { width: 18px; height: 18px; accent-color: var(--lp-teal); }
.lp-auth-actions { margin-top: 18px; }
.lp-auth-card .auth-reset-button { display: block; margin: 12px auto 0; color: var(--lp-teal); font-weight: 700; }
.lp-auth-fineprint { margin: 12px 0 0; color: var(--lp-muted); font-size: .8rem; text-align: center; line-height: 1.45; }
.lp-auth-card .auth-status { margin: 0; padding: 12px 24px 20px; min-height: 1em; color: var(--lp-muted); font-size: .84rem; line-height: 1.45; text-align: center; }
.lp-auth-card .auth-status.is-error { color: #b3261e; font-weight: 650; }
.lp-auth-card .auth-status.is-success { color: #28724f; font-weight: 650; }
.lp-auth-card .auth-status:empty { display: none; }
.lp-check-inbox { text-align: center; }
.lp-check-inbox .text-button { margin-top: 10px; color: var(--lp-teal); font-weight: 700; }
.lp-check-inbox .lp-cta { margin-top: 16px; }
.lp-inbox-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%; background: #f8f0dc; color: var(--lp-gold); font-size: 1.8rem; }
.lp [hidden] { display: none !important; }

/* Sections */
.lp-section { padding: 88px 0; }
.lp-h2 { margin: 0 0 14px; max-width: 26ch; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 850; color: var(--lp-ink); }
.lp-lead { margin: 0; max-width: 52ch; color: var(--lp-muted); font-size: 1.05rem; line-height: 1.6; }

.lp-pain { background: #fff; }
.lp-pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.lp-pain-item { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 16px; background: var(--lp-cream); border: 1px solid var(--lp-line); }
.lp-pain-item strong { font-size: 1.02rem; letter-spacing: -.01em; color: var(--lp-ink); }
.lp-pain-item span { color: var(--lp-muted); font-size: .92rem; line-height: 1.5; }
.lp-pain-close { margin: 28px 0 0; max-width: 70ch; padding-left: 16px; border-left: 3px solid var(--lp-gold); color: var(--lp-ink); font-size: 1.05rem; font-weight: 600; line-height: 1.55; }

.lp-stack { background: var(--lp-cream); }
.lp-stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.lp-stack-item { display: flex; flex-direction: column; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--lp-line); box-shadow: 0 6px 24px rgba(72,54,17,.05); }
.lp-stack-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lp-teal); color: #f4dea9; font-size: 1.15rem; font-weight: 800; }
.lp-stack-item h3 { margin: 16px 0 8px; font-size: 1.12rem; letter-spacing: -.02em; color: var(--lp-ink); }
.lp-stack-item p { margin: 0 0 16px; color: var(--lp-muted); font-size: .94rem; line-height: 1.55; }
.lp-stack-item small { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--lp-line); color: #8a6420; font-size: .8rem; font-weight: 700; }

.lp-how { background: #fff; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: none; }
.lp-steps li { display: flex; gap: 16px; padding: 22px; border-radius: 16px; border: 1px solid var(--lp-line); }
.lp-steps li > span { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #d9a640, #c08a22); color: #1b1404; font-weight: 900; }
.lp-steps strong { display: block; margin-top: 8px; font-size: 1.02rem; color: var(--lp-ink); }
.lp-steps p { margin: 6px 0 0; color: var(--lp-muted); font-size: .92rem; line-height: 1.5; }

.lp-demo { background: linear-gradient(160deg, #12343b, #0e262b); color: #fff; }
.lp-demo .lp-h2 { color: #fff; }
.lp-demo .lp-lead { color: rgba(255,255,255,.78); }
.lp-demo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lp-demo-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-demo-card { display: grid; gap: 4px; padding: 22px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(244,222,169,.25); color: #fff !important; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.lp-demo-card:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.lp-demo-card strong { font-size: 1.1rem; color: #f4dea9; }
.lp-demo-card span { color: rgba(255,255,255,.72); font-size: .84rem; }

.lp-risk { background: #fff; }
.lp-risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.lp-risk-grid div { display: grid; gap: 6px; padding: 20px; border-radius: 14px; background: #f3f7f5; border: 1px solid #dde8e3; }
.lp-risk-grid strong { color: var(--lp-teal); font-size: 1rem; }
.lp-risk-grid span { color: var(--lp-muted); font-size: .9rem; line-height: 1.45; }

.lp-faq { background: var(--lp-cream); }
.lp-faq-inner { max-width: 780px; }
.lp-faq details { border-bottom: 1px solid var(--lp-line); }
.lp-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 1.05rem; font-weight: 750; color: var(--lp-ink); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--lp-gold); font-size: 1.4rem; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 0 0 20px; color: var(--lp-muted); line-height: 1.6; }

.lp-final { padding: 88px 0; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(199,148,46,.3), transparent 60%), #12343b; color: #fff; }
.lp-final h2 { margin: 0 auto; max-width: 20ch; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.08; letter-spacing: -.04em; color: #fff; }
.lp-final p { margin: 14px auto 28px; color: rgba(255,255,255,.8); font-size: 1.08rem; }
.lp-final small { display: block; margin-top: 14px; color: rgba(255,255,255,.6); font-size: .85rem; }

.lp-footer { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 24px; background: #0c2125; color: rgba(255,255,255,.55); font-size: .85rem; }
.lp-footer a { color: rgba(255,255,255,.75) !important; text-decoration: none; }
.lp-footer .lp-link-button { font-size: .85rem; color: rgba(255,255,255,.75); padding: 0; }

/* Responsive */
@media (max-width: 960px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 80px; }
  .lp-headline { max-width: 18ch; }
  .lp-pain-grid, .lp-risk-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-stack-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-demo-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lp-inner, .lp-nav-inner, .lp-hero-inner { width: min(100% - 28px, 1120px); }
  .lp-nav-links { display: none; }
  .lp-nav-inner { gap: 10px; min-height: 58px; }
  .lp-brand-name { font-size: .95rem; }
  .lp-nav-actions .lp-link-button { padding: 8px 4px; }
  .lp-headline { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .lp-sub { font-size: 1rem; }
  .lp-hero-actions { flex-direction: column; align-items: stretch; }
  .lp-hero-actions .lp-cta { width: 100%; }
  .lp-ghost { justify-content: center; }
  .lp-section, .lp-final { padding: 60px 0; }
  .lp-pain-grid, .lp-stack-grid, .lp-risk-grid { grid-template-columns: 1fr; }
  .lp-demo-links { grid-template-columns: 1fr; }
  .lp-auth-body, .lp-check-inbox, .lp-auth-card .password-recovery-panel { padding: 20px 18px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-cta, .lp-demo-card { transition: none; }
  .lp-cta:hover, .lp-demo-card:hover { transform: none; }
}
