/* ============================================================
   Estura landing layer — the premium "lp-" section/component system.
   Shared across every marketing page (home, features, pricing, …).
   Built on estura.css tokens (theme-aware). Depth via layering /
   shadow / hairlines / dot-texture + motion — no colour gradients
   or glow. Scoped under .lp- so nothing collides with the base system.
   Pages that use it set <body class="lp"> and load estura.css first.
   ============================================================ */
.lp { --lp-max: 1120px; --lp-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px -24px rgba(0,0,0,.28); }
:root[data-theme="dark"] .lp { --lp-shadow: 0 1px 2px rgba(0,0,0,.4), 0 40px 80px -32px rgba(0,0,0,.7); }
.lp-wrap { width: 100%; max-width: var(--lp-max); margin-inline: auto; padding-inline: clamp(18px, 5vw, 32px); }
.lp section { position: relative; }
.lp-sec { padding-block: clamp(64px, 9vw, 128px); }
.lp-sec.tight { padding-block: clamp(44px, 6vw, 84px); }

.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-strong); margin: 0 0 16px; }
.lp-eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--brand); opacity: .6; }
.lp-head { max-width: 640px; }
.lp-head.center { margin-inline: auto; text-align: center; }
.lp-head.center .lp-eyebrow::before { display: none; }
.lp-h2 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -.028em; font-weight: 800; margin: 0 0 16px; text-wrap: balance; }
.lp-sub { font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.6; color: var(--text-2); margin: 0; max-width: 60ch; }
.lp-head.center .lp-sub { margin-inline: auto; }

/* ---------- HERO ---------- */
.lp-hero { overflow: hidden; padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(56px, 8vw, 104px); }
.lp-hero::before { /* subtle dot texture */
  content: ""; position: absolute; inset: -2px 0 auto; height: 620px; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--border) 1px, transparent 1.4px);
  background-size: 24px 24px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%); mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  opacity: .5;
}
.lp-hero-inner { position: relative; z-index: 1; text-align: center; }
.lp-hero-inner.left { text-align: left; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 560; color: var(--text-2); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.lp-badge .live { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.lp-h1 { font-size: clamp(38px, 6.6vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 830; margin: 24px auto 0; max-width: 16ch; text-wrap: balance; }
.lp-hero-inner.left .lp-h1 { margin-inline: 0; }
.lp-h1 .accent { color: var(--brand); }
.lp-lede { font-size: clamp(16.5px, 1.8vw, 20px); line-height: 1.55; color: var(--text-2); margin: 22px auto 0; max-width: 56ch; }
.lp-hero-inner.left .lp-lede { margin-inline: 0; }
.lp-lede strong { color: var(--text); font-weight: 680; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.lp-hero-inner.left .lp-cta { justify-content: flex-start; }
.lp-microtrust { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-top: 20px; font-size: 13.5px; color: var(--text-3); }
.lp-microtrust span { display: inline-flex; align-items: center; gap: 7px; }
.lp-microtrust svg { width: 15px; height: 15px; color: var(--brand); flex: none; }

/* hero stage + window + floating callouts */
.lp-stage { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.lp-window { position: relative; z-index: 2; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--lp-shadow); overflow: hidden; }
.lp-winbar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; border-bottom: 1px solid var(--border); background: var(--surface); }
.lp-winbar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.lp-window img { display: block; width: 100%; height: auto; }
.lp-callout { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--elevated); box-shadow: var(--lp-shadow); }
.lp-callout .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand); flex: none; }
.lp-callout .ico svg { width: 18px; height: 18px; }
.lp-callout .txt { display: flex; flex-direction: column; gap: 1px; }
.lp-callout .k { font-size: 12px; color: var(--text-3); line-height: 1.1; }
.lp-callout .v { font-size: 15px; font-weight: 720; color: var(--text); line-height: 1.15; }
.lp-callout.a { top: 6%; left: -24px; }
.lp-callout.b { top: 45%; right: -24px; }
.lp-callout.c { bottom: -22px; left: 8%; }
@media (max-width: 860px) { .lp-callout { display: none; } }

/* trust bar under hero */
.lp-trustbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: 34px; }
.lp-hero-inner.left .lp-trustbar { justify-content: flex-start; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 560; color: var(--text-2); }
.lp-pill svg { width: 15px; height: 15px; color: var(--brand); flex: none; }

/* ---------- BAND (surface-tinted section) ---------- */
.lp-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-money { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- BENTO FEATURES ---------- */
.lp-bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 16px; margin-top: 44px; }
.lp-tile { grid-column: span 2; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.lp-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--lp-shadow); }
.lp-tile-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--brand) 13%, var(--surface)); color: var(--brand); }
.lp-tile-ico svg { width: 21px; height: 21px; }
.lp-tile h3 { font-size: 16.5px; font-weight: 700; margin: 4px 0 0; letter-spacing: -.01em; }
.lp-tile p { font-size: 14px; line-height: 1.55; color: var(--text-2); margin: 0; }
.lp-tile--feature { grid-column: span 3; grid-row: span 2; padding: 0; overflow: hidden; }
.lp-tile--feature .lp-tile-body { padding: 22px 22px 0; display: flex; flex-direction: column; gap: 8px; }
.lp-tile--feature .lp-tile-shot { margin: 14px 0 -1px 22px; border: 1px solid var(--border); border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; overflow: hidden; }
.lp-tile--feature .lp-tile-shot img { display: block; width: 100%; height: auto; }
.lp-tile--wide { grid-column: span 3; }
.lp-tile--accent { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 24%, var(--border)); }
@media (max-width: 900px) { .lp-bento { grid-template-columns: repeat(2, 1fr); } .lp-tile, .lp-tile--wide { grid-column: span 1; } .lp-tile--feature { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .lp-bento { grid-template-columns: 1fr; } .lp-tile, .lp-tile--wide, .lp-tile--feature { grid-column: span 1; } }

/* ---------- PRODUCT DEEP-DIVE (alternating) ---------- */
.lp-deep-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.lp-deep-row + .lp-deep-row { margin-top: clamp(56px, 8vw, 104px); }
.lp-deep-row.flip .lp-deep-copy { order: 2; }
.lp-deep-copy h3 { font-size: clamp(23px, 3vw, 32px); letter-spacing: -.02em; font-weight: 780; margin: 12px 0 14px; line-height: 1.1; }
.lp-deep-copy p { font-size: 16px; line-height: 1.6; color: var(--text-2); margin: 0 0 18px; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-checks li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text); }
.lp-checks svg { width: 19px; height: 19px; color: var(--brand); flex: none; margin-top: 1px; }
@media (max-width: 820px) { .lp-deep-row, .lp-deep-row.flip { grid-template-columns: 1fr; } .lp-deep-row.flip .lp-deep-copy { order: 0; } }

/* ---------- BIG STATS ---------- */
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.lp-stats.three { grid-template-columns: repeat(3, 1fr); }
.lp-stat { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 26px 22px; }
.lp-stat.hero { background: var(--brand); border-color: var(--brand); }
.lp-stat.hero .lp-statnum, .lp-stat.hero h4, .lp-stat.hero p { color: var(--brand-fg, #04140d); }
.lp-stat.hero p { opacity: .82; }
.lp-statnum { font-size: clamp(34px, 4.4vw, 48px); font-weight: 830; letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.lp-stat h4 { font-size: 15px; font-weight: 680; margin: 8px 0 8px; }
.lp-stat p { font-size: 13.5px; line-height: 1.5; color: var(--text-2); margin: 0; }
@media (max-width: 820px) { .lp-stats, .lp-stats.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .lp-stats, .lp-stats.three { grid-template-columns: 1fr; } }

/* ---------- FOUNDER ---------- */
.lp-founder { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-founder-card { max-width: 760px; margin-inline: auto; text-align: center; }
.lp-founder-mark { width: 46px; height: 46px; margin: 0 auto 22px; }
.lp-quote { font-size: clamp(20px, 2.6vw, 29px); line-height: 1.4; letter-spacing: -.01em; font-weight: 560; color: var(--text); margin: 0; text-wrap: pretty; }
.lp-quote .accent { color: var(--brand); font-weight: 680; }
.lp-sig { margin-top: 26px; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.lp-sig .name { font-weight: 720; font-size: 15px; }
.lp-sig .role { font-size: 13.5px; color: var(--text-3); }

/* ---------- TRUST STRIP ---------- */
.lp-trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-trust-strip.three { grid-template-columns: repeat(3, 1fr); }
.lp-trust-item { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.lp-trust-item .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 13%, var(--surface)); color: var(--brand); }
.lp-trust-item .ico svg { width: 20px; height: 20px; }
.lp-trust-item h4 { font-size: 15px; font-weight: 680; margin: 2px 0 0; }
.lp-trust-item p { font-size: 13.5px; line-height: 1.5; color: var(--text-2); margin: 0; }
@media (max-width: 820px) { .lp-trust-strip, .lp-trust-strip.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .lp-trust-strip, .lp-trust-strip.three { grid-template-columns: 1fr; } }

/* ---------- STEPS ---------- */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.lp-step { position: relative; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 26px 24px; }
.lp-step .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-fg, #04140d); font-weight: 760; font-size: 15px; margin-bottom: 14px; }
.lp-step h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.lp-step p { font-size: 14px; line-height: 1.55; color: var(--text-2); margin: 0; }
@media (max-width: 720px) { .lp-steps { grid-template-columns: 1fr; } }

/* ---------- PRICING TEASER / CARD ---------- */
.lp-price { border: 1px solid var(--border); border-radius: 22px; background: var(--surface); padding: clamp(30px, 5vw, 52px); text-align: center; box-shadow: var(--lp-shadow); }
.lp-price .amt { font-size: clamp(44px, 7vw, 66px); font-weight: 840; letter-spacing: -.03em; line-height: 1; }
.lp-price .amt small { display: block; font-size: 15px; font-weight: 560; color: var(--text-3); letter-spacing: 0; margin-top: 10px; }
.lp-price .psub { font-size: 15.5px; color: var(--text-2); margin: 18px auto 26px; max-width: 46ch; }
.lp-price .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lp-price .tiers { margin-top: 24px; font-size: 13px; color: var(--text-3); }

/* ---------- FAQ ---------- */
.lp-faq { max-width: 780px; margin: 40px auto 0; display: grid; gap: 12px; }
.lp-faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.lp-faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 640; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary .chev { width: 20px; height: 20px; color: var(--text-3); transition: transform .2s ease; flex: none; }
.lp-faq details[open] summary .chev { transform: rotate(180deg); }
.lp-faq .ans { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }

/* ---------- FINAL CTA ---------- */
.lp-final { text-align: center; }
.lp-final-card { border: 1px solid var(--border); border-radius: 24px; background: var(--surface); padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 40px); position: relative; overflow: hidden; box-shadow: var(--lp-shadow); }
.lp-final-card::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(var(--border) 1px, transparent 1.4px); background-size: 24px 24px; opacity: .4; -webkit-mask-image: radial-gradient(circle at 50% 0, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 0, #000, transparent 70%); }
.lp-final-card > * { position: relative; z-index: 1; }
.lp-final h2 { font-size: clamp(28px, 4.6vw, 48px); letter-spacing: -.03em; font-weight: 820; margin: 0 0 14px; line-height: 1.05; text-wrap: balance; }
.lp-final p { font-size: 17px; color: var(--text-2); margin: 0 auto 28px; max-width: 44ch; }

/* ---------- STICKY MOBILE CTA ---------- */
.lp-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--elevated) 92%, transparent); backdrop-filter: blur(10px); box-shadow: var(--lp-shadow); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.lp-sticky.show { transform: translateY(0); }
.lp-sticky .st-price { font-weight: 720; font-size: 15px; }
.lp-sticky .st-price small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
@media (max-width: 720px) { .lp-sticky { display: flex; } }

/* ---------- reveal motion (extends site.js .reveal) ---------- */
.lp .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 60ms); }
.lp .reveal.is-visible { opacity: 1; transform: none; }
.lp-callout.reveal { transform: translateY(10px) scale(.96); }
.lp-callout.reveal.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) { .lp .reveal { opacity: 1 !important; transform: none !important; } }
