/* ==========================================================================
   EasyCom Plus — public landing page. Builds on front.css tokens and buttons.
   ========================================================================== */

.lp { background: var(--surface); }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.lp :where(h1, h2, h3) { margin: 0; text-wrap: balance; }
.lp :where(p) { margin: 0; }

/* ---------- Top bar ---------- */
.lp-top {
    position: sticky; top: 0; z-index: 40;
    padding-top: var(--safe-t);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s;
}
.lp-top.is-scrolled { border-bottom-color: var(--border); }
.lp-top-inner { height: 64px; display: flex; align-items: center; gap: 12px; }
.lp-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.lp-logo span { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--brand), #FF9A3D); box-shadow: 0 6px 14px rgba(255, 107, 0, .28); }
.lp-top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* ---------- Hero ---------- */
.lp-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--brand-50) 0%, var(--surface) 100%); }
.lp-hero::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 0, .16), transparent 70%); pointer-events: none; }
.lp-hero-grid { position: relative; display: grid; gap: 36px; padding-top: 40px; padding-bottom: 56px; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--brand-100); color: var(--brand-600); font-size: 13px; font-weight: 600; }
.lp-hero h1 { margin-top: 16px; font-size: clamp(30px, 7.4vw, 52px); line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
.lp-hero h1 em { font-style: normal; color: var(--brand); white-space: nowrap; }
.lp-lead { margin-top: 14px; max-width: 560px; font-size: 16.5px; color: var(--text-2); line-height: 1.65; }
.lp-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-cta .btn { min-height: 50px; padding: 0 22px; font-size: 16px; }
.lp-trust { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13.5px; }
.lp-trust span { display: inline-flex; align-items: center; gap: 6px; }
.lp-trust i { color: var(--success); }
.lp-play { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 14px; border-radius: 12px; background: #0B0F19; color: #fff; transition: transform .15s var(--ease), box-shadow .15s; }
.lp-play:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 23, 42, .25); }
.lp-play small { display: block; font-size: 10px; letter-spacing: .06em; opacity: .8; line-height: 1.1; }
.lp-play strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }

/* Product preview (illustrative, labelled as a sample) */
.lp-preview { position: relative; width: 100%; max-width: 380px; margin: 0 auto; }
.lp-phone { position: relative; border-radius: 28px; padding: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 30px 70px rgba(15, 23, 42, .14), 0 8px 20px rgba(15, 23, 42, .06); }
.lp-sample { position: absolute; top: -12px; right: 18px; z-index: 1; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--text); color: #fff; font-size: 11.5px; font-weight: 600; }
.lp-today { border-radius: 18px; padding: 18px; color: #fff; background: linear-gradient(135deg, var(--brand), #FF9A3D); }
.lp-today .lbl { font-size: 13px; opacity: .9; }
.lp-today .amt { margin-top: 2px; font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
.lp-today .meta { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.lp-today .meta span { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12.5px; }
.lp-rows { margin-top: 12px; display: flex; flex-direction: column; }
.lp-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.lp-row:last-child { border-bottom: 0; }
.lp-row .ic { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: var(--brand-50); color: var(--brand); font-size: 14px; }
.lp-row .tx { flex: 1; min-width: 0; }
.lp-row .tx b { display: block; font-size: 14px; font-weight: 600; }
.lp-row .tx span { font-size: 12.5px; color: var(--muted); }
.lp-row .am { font-weight: 600; color: var(--success); white-space: nowrap; }
.lp-rate { margin-top: 6px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--border-strong); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.lp-rate i { color: var(--brand); }

/* ---------- Sections ---------- */
.lp-section { padding: 64px 0; }
.lp-section.alt { background: var(--bg); }
.lp-head { max-width: 620px; margin: 0 auto 32px; text-align: center; }
.lp-head h2 { font-size: clamp(24px, 5.4vw, 34px); line-height: 1.25; font-weight: 700; }
.lp-head p { margin-top: 10px; color: var(--muted); font-size: 16px; }

.lp-features { display: grid; gap: 12px; }
.lp-feature { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.lp-feature:hover { border-color: var(--brand-100); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lp-feature .ic { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border-radius: 12px; background: var(--brand-50); color: var(--brand); font-size: 18px; }
.lp-feature h3 { font-size: 16px; font-weight: 600; }
.lp-feature p { margin-top: 4px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.lp-steps { display: grid; gap: 12px; counter-reset: step; }
.lp-step { position: relative; padding: 20px 20px 20px 72px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.lp-step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 6px 14px rgba(255, 107, 0, .28); }
.lp-step h3 { font-size: 16px; font-weight: 600; }
.lp-step p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }

.lp-founder { max-width: 440px; margin: 0 auto; padding: 28px 24px; text-align: center; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.lp-avatar { width: 88px; height: 88px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 34px; font-weight: 700; background: linear-gradient(135deg, var(--brand), #FF9A3D); box-shadow: 0 0 0 6px var(--brand-50); }
.lp-founder h3 { margin-top: 16px; font-size: 19px; font-weight: 700; }
.lp-founder .role { margin-top: 4px; color: var(--brand-600); font-size: 13.5px; font-weight: 600; }
.lp-founder blockquote { margin: 14px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.lp-social { margin-top: 18px; display: flex; justify-content: center; gap: 8px; }
.lp-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); color: var(--muted); transition: color .15s, border-color .15s, background .15s; }
.lp-social a:hover { color: var(--brand); border-color: var(--brand-100); background: var(--brand-50); }

.lp-final { padding: 56px 0; }
.lp-final-box { padding: 32px 24px; border-radius: 24px; text-align: center; color: #fff; background: linear-gradient(135deg, #FF6B00, #FF9A3D); box-shadow: 0 24px 60px rgba(255, 107, 0, .28); }
.lp-final-box h2 { font-size: clamp(22px, 5vw, 30px); font-weight: 700; }
.lp-final-box p { margin-top: 8px; opacity: .92; }
.lp-final-box .lp-cta { justify-content: center; }
.lp-final-box .btn-white { background: #fff; border-color: #fff; color: var(--brand-600); box-shadow: 0 8px 20px rgba(15, 23, 42, .15); }
.lp-final-box .btn-white:hover { background: var(--brand-50); }
.lp-final-box .btn-line { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.lp-final-box .btn-line:hover { background: rgba(255, 255, 255, .12); }

.lp-foot { padding: 28px 0 calc(28px + var(--safe-b)); border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
.lp-foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lp-foot a:hover { color: var(--brand-600); }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
    .lp-wrap { padding: 0 28px; }
    .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-final-box { padding: 44px 32px; }
}
@media (min-width: 960px) {
    .lp-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 88px; }
    .lp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-feature { flex-direction: column; padding: 22px; }
    .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-section { padding: 88px 0; }
}
@media (max-width: 400px) {
    .lp-top-actions .btn-ghost { padding: 0 10px; }
    .lp-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-feature, .lp-play { transition: none; }
    .lp-feature:hover, .lp-play:hover { transform: none; }
}

/* ---------- Error pages ---------- */
.err { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.err .lp-top { background: var(--surface); border-bottom-color: var(--border); }
.err-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px calc(32px + var(--safe-b)); }
.err-card { width: 100%; max-width: 460px; padding: 32px 24px; text-align: center; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.err-icon { width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; border-radius: 22px; font-size: 30px; background: var(--brand-50); color: var(--brand); }
.err-icon.err-warn { background: var(--warning-50); color: var(--warning); }
.err-icon.err-danger { background: var(--danger-50); color: var(--danger); }
.err-code { margin-top: 16px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--faint); }
.err-card h1 { margin-top: 4px; font-size: 24px; line-height: 1.3; font-weight: 700; }
.err-card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.err-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.err-actions .btn { min-height: 46px; }
.err-help { margin-top: 18px; color: var(--muted); font-size: 13.5px; text-align: center; }
.err-help a { color: var(--brand-600); }
@media (max-width: 400px) { .err-actions .btn { flex: 1 1 100%; } }

/* ---------- Long-form pages (privacy policy) ---------- */
.lp-page { padding: 32px 0 56px; background: var(--bg); }
.lp-prose { max-width: 820px; margin: 0 auto; padding: 28px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text-2); font-size: 15.5px; line-height: 1.8; }
.lp-prose h1 { color: var(--text); font-size: clamp(26px, 6vw, 34px); line-height: 1.25; font-weight: 700; }
.lp-prose .meta { margin-top: 6px; color: var(--muted); font-size: 14px; }
.lp-prose h2 { margin: 30px 0 8px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text); font-size: 19px; font-weight: 600; line-height: 1.4; }
.lp-prose h3 { margin: 16px 0 4px; color: var(--text); font-size: 16px; font-weight: 600; }
.lp-prose p { margin: 0 0 10px; }
.lp-prose ul { margin: 0 0 12px; padding-left: 1.3em; }
.lp-prose li { margin-bottom: 4px; }
.lp-prose .box { margin-top: 10px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.lp-prose .toc { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-prose .toc a { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.lp-prose .toc a:hover { border-color: var(--brand-100); color: var(--brand-600); background: var(--brand-50); }
.lp-prose h2[id] { scroll-margin-top: calc(80px + var(--safe-t)); }
@media (min-width: 640px) { .lp-prose { padding: 40px 48px; } .lp-page { padding: 48px 0 80px; } }
@media print { .lp-top, .lp-foot, .lp-prose .toc { display: none; } .lp-prose { border: 0; box-shadow: none; padding: 0; } }
