/* Public website features: accessibility, preview, showcase, pricing, demo, blog, articles, help, status, newsletter.
   Loaded after site.css by the public layout; uses its --lp-* variables. */

.lp-reduce-motion *, .lp-reduce-motion *::before, .lp-reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.lp-reduce-motion.lp-js [data-reveal] { opacity: 1; transform: none; }

/* Accessibility menu */
.lp-a11y { position: relative; }
.lp-a11y > summary { list-style: none; }
.lp-a11y > summary::-webkit-details-marker { display: none; }
.lp-a11y-panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
    width: 230px; padding: 14px; border-radius: 16px;
    border: 1px solid var(--lp-border-strong); background: var(--lp-surface-solid); box-shadow: var(--lp-shadow);
}
.lp-a11y-panel p { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--lp-muted); }
.lp-a11y-row { display: flex; gap: 8px; margin-bottom: 12px; }
.lp-a11y-row .lp-icon-btn { flex: 1; font-weight: 700; font-family: inherit; }
.lp-a11y-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
@media (max-width: 960px) { .lp-a11y-panel { left: 0; right: auto; } }

/* Admin preview */
.lp-preview-bar {
    position: sticky; top: 72px; z-index: 900;
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center;
    margin-top: 72px; padding: 10px 16px;
    background: #f59e0b; color: #111827; font-size: 14px;
}
.lp-preview-bar + main .lp-hero { padding-top: 70px; }
.lp-preview-bar a { color: #111827; font-weight: 700; }
.lp-is-hidden { outline: 2px dashed #f59e0b; outline-offset: -12px; }
.lp-hidden-badge, [data-hidden-item]::after {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    background: #f59e0b; color: #111827; font-size: 12px; font-weight: 700;
}
[data-hidden-item] { position: relative; outline: 2px dashed #f59e0b; outline-offset: 3px; }
[data-hidden-item]::after { content: attr(data-hidden-item); position: absolute; top: 10px; right: 10px; z-index: 3; }

/* Shared small parts */
.lp-kicker { display: inline-block; margin-bottom: 10px; color: var(--lp-primary); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lp-center { text-align: center; margin-top: 36px; }
.lp-empty { padding: 40px 20px; text-align: center; color: var(--lp-muted); border: 1px dashed var(--lp-border-strong); border-radius: 18px; }
.lp-subhead { margin: 0 0 22px; font-size: 1.5rem; letter-spacing: -.02em; }
.lp-section-tight { padding: 56px 0 90px; }
.lp-narrow { max-width: 820px; }
.lp-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--lp-primary) 14%, transparent); color: var(--lp-primary); font-size: 12px; font-weight: 600; text-decoration: none; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lp-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--lp-border-strong); color: var(--lp-muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: all .2s; }
.lp-chip:hover { color: var(--lp-text); border-color: var(--lp-primary); }
.lp-chip.is-active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent)); }

/* Page header of subpages */
.lp-page-hero { position: relative; padding: 130px 0 50px; overflow: hidden; isolation: isolate; }
.lp-page-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(40% 60% at 30% 30%, color-mix(in srgb, var(--lp-primary) 25%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.lp-page-hero h1 { margin: 12px 0 12px; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; letter-spacing: -.03em; }
.lp-page-hero > .lp-container > p { margin: 0; max-width: 640px; color: var(--lp-muted); font-size: 1.1rem; }
.lp-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--lp-faint); font-size: 14px; }
.lp-breadcrumb a { color: var(--lp-muted); text-decoration: none; }
.lp-breadcrumb a:hover { color: var(--lp-primary); }
.lp-center-page { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.lp-center-page .lp-narrow { margin: 0 auto; }
.lp-center-actions { justify-content: center; }
.lp-big-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Showcase */
.lp-showcase { display: grid; gap: 70px; }
.lp-show { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lp-show.is-reversed .lp-show-media { order: 2; }
.lp-show-media { border-radius: 24px; overflow: hidden; border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow); aspect-ratio: 4 / 3; background: var(--lp-surface-strong); }
.lp-show-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.lp-show:hover .lp-show-media img { transform: scale(1.03); }
.lp-show-media .lp-video-thumb { height: 100%; }
.lp-show-placeholder { display: grid; place-items: center; height: 100%; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--lp-primary) 30%, transparent), transparent 60%); }
.lp-show-placeholder .lp-icon { width: 96px; height: 96px; border-radius: 28px; }
.lp-show-placeholder .lp-icon svg { width: 48px; height: 48px; }
.lp-show-body h3 { margin: 0 0 14px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; }
.lp-show-text ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.lp-show-text li { position: relative; padding-left: 28px; }
.lp-show-text li::before { content: "✓"; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; color: #fff; background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-2)); }
.lp-show-body .lp-btn { margin-top: 22px; }

/* Pricing */
.lp-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 22px; align-items: stretch; padding-top: 14px; }
.lp-plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; border-radius: 24px; border: 1px solid var(--lp-border); background: var(--lp-surface); transition: transform .3s, box-shadow .3s; }
.lp-plan:hover { transform: translateY(-6px); box-shadow: var(--lp-shadow); }
.lp-plan.is-popular { background: linear-gradient(var(--lp-surface-solid), var(--lp-surface-solid)) padding-box, linear-gradient(135deg, var(--lp-primary), var(--lp-accent)) border-box; border: 2px solid transparent; box-shadow: var(--lp-glow); }
.lp-plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent)); }
.lp-plan h3 { margin: 0; font-size: 1.25rem; }
.lp-plan-sub { margin: -6px 0 0; color: var(--lp-muted); font-size: 14px; }
.lp-plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.lp-plan-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.lp-plan-period { color: var(--lp-muted); font-size: 14px; }
.lp-plan-features { flex: 1; }
.lp-plan-features ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-plan-features li { position: relative; padding-left: 26px; color: var(--lp-text); }
.lp-plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--lp-success); font-weight: 800; }
.lp-plan .lp-btn { width: 100%; }

/* Interactive demo */
.lp-demo { border-radius: 24px; border: 1px solid var(--lp-border-strong); background: var(--lp-surface); box-shadow: var(--lp-shadow); overflow: hidden; }
.lp-demo-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--lp-border); background: var(--lp-surface-strong); font-size: 14px; font-weight: 600; }
.lp-demo-dots { display: flex; gap: 6px; }
.lp-demo-dots i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.lp-demo-dots i:nth-child(2) { background: #fbbf24; }
.lp-demo-dots i:nth-child(3) { background: #34d399; }
.lp-demo-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--lp-muted); font-weight: 500; }
.lp-demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 18px; }
.lp-widget { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; border: 1px solid var(--lp-border); background: var(--lp-bg); min-height: 170px; }
.lp-widget-wide { grid-column: 1 / -1; min-height: 0; }
.lp-widget-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; }
.lp-widget-head small { color: var(--lp-faint); font-weight: 500; font-size: 12px; text-align: right; }
.lp-widget-value { margin-top: auto; font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.lp-widget-state { font-size: 1.2rem; }
.lp-gauge { position: relative; margin-top: auto; text-align: center; }
.lp-gauge svg { width: 100%; max-width: 170px; }
.lp-gauge path { fill: none; stroke-width: 10; stroke-linecap: round; }
.lp-gauge-track { stroke: var(--lp-border-strong); }
.lp-gauge-fill { stroke: var(--lp-primary); stroke-dasharray: 157; stroke-dashoffset: 60; transition: stroke-dashoffset 1s, stroke .5s; }
.lp-gauge strong { position: absolute; left: 0; right: 0; bottom: 2px; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.lp-demo-chart { width: 100%; height: 70px; }
.lp-demo-line { fill: none; stroke: var(--lp-primary-2); stroke-width: 2.5; }
.lp-demo-area { fill: color-mix(in srgb, var(--lp-primary-2) 18%, transparent); stroke: none; }
.lp-switch { position: relative; width: 74px; height: 40px; margin-top: 10px; padding: 0; border-radius: 999px; border: 1px solid var(--lp-border-strong); background: var(--lp-surface-strong); cursor: pointer; transition: background-color .3s; }
.lp-switch-knob { position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: transform .3s; }
.lp-switch[aria-checked="true"] { background: var(--lp-success); }
.lp-switch[aria-checked="true"] .lp-switch-knob { transform: translateX(34px); }
.lp-range { width: 100%; margin-top: 14px; accent-color: var(--lp-primary); }
.lp-demo-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; max-height: 150px; overflow: hidden; }
.lp-demo-log li { display: flex; gap: 12px; color: var(--lp-muted); animation: lp-log-in .4s ease; }
.lp-demo-log time { color: var(--lp-faint); }
.lp-demo-log b { color: var(--lp-text); font-weight: 600; }
@keyframes lp-log-in { from { opacity: 0; transform: translateY(-6px); } }

/* Blog cards */
.lp-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 24px; }
.lp-post { display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--lp-border); background: var(--lp-surface); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.lp-post:hover { transform: translateY(-5px); box-shadow: var(--lp-shadow); }
.lp-post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--lp-surface-strong); }
.lp-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.lp-post:hover .lp-post-media img { transform: scale(1.04); }
.lp-post-placeholder { display: grid; place-items: center; height: 100%; font-size: 3rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent)); }
.lp-post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.lp-post-body h3 { margin: 0; font-size: 1.2rem; line-height: 1.35; }
.lp-post-body h3 a { color: var(--lp-text); text-decoration: none; }
.lp-post-body h3 a:hover { color: var(--lp-primary); }
.lp-post-body p { margin: 0; color: var(--lp-muted); }
.lp-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--lp-faint); font-size: 13px; }
.lp-author { display: inline-flex; align-items: center; gap: 8px; color: var(--lp-text); font-weight: 600; }
.lp-author .lp-avatar { width: 28px; height: 28px; font-size: 13px; }
.lp-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.lp-pager a { text-decoration: none; font-weight: 600; }
.lp-pager a.is-current { color: #fff; border-color: transparent; background: var(--lp-primary); }

/* Article page */
.lp-article-hero { padding-bottom: 30px; }
.lp-article-lead { margin: 0 0 18px; color: var(--lp-muted); font-size: 1.2rem; }
.lp-article-langs { margin-top: 14px; }
.lp-article-cover { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 22px; margin: 0 0 36px; border: 1px solid var(--lp-border); }
.lp-article-body { font-size: 1.08rem; line-height: 1.8; color: var(--lp-text); }
.lp-article-body p { margin: 1em 0; }
.lp-article-body h2 { font-size: 1.6rem; margin-top: 1.6em; }
.lp-article-body h3 { font-size: 1.3rem; margin-top: 1.4em; }
.lp-article-tags { margin-top: 34px; }
.lp-article-share { display: flex; align-items: center; gap: 10px; margin: 34px 0 10px; padding-top: 24px; border-top: 1px solid var(--lp-border); color: var(--lp-muted); font-size: 14px; }
.lp-article-share .lp-icon-btn { text-decoration: none; font-weight: 700; font-family: inherit; }
.lp-help-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--lp-border); background: var(--lp-surface); }

/* Help center */
.lp-help-hero { text-align: center; }
.lp-help-hero .lp-narrow { margin: 0 auto; }
.lp-help-hero .lp-breadcrumb { justify-content: center; }
.lp-search { position: relative; display: flex; gap: 10px; margin-top: 26px; }
.lp-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--lp-faint); pointer-events: none; }
.lp-search input { flex: 1; min-width: 0; padding: 16px 18px 16px 50px; border-radius: 16px; border: 1px solid var(--lp-border-strong); background: var(--lp-input-bg); color: var(--lp-text); font: inherit; font-size: 1.05rem; box-shadow: var(--lp-shadow); }
.lp-search input:focus { outline: none; border-color: var(--lp-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-primary) 20%, transparent); }
.lp-help-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.lp-help-topic { padding: 24px; border-radius: 20px; border: 1px solid var(--lp-border); background: var(--lp-surface); }
.lp-help-topic h2 { display: flex; justify-content: space-between; margin: 0 0 14px; font-size: 1.1rem; }
.lp-help-topic h2 small { color: var(--lp-faint); font-weight: 500; }
.lp-help-topic ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-help-topic a { color: var(--lp-muted); text-decoration: none; }
.lp-help-topic a:hover { color: var(--lp-primary); }
.lp-help-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.lp-help-list a { display: grid; gap: 4px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--lp-border); background: var(--lp-surface); color: var(--lp-text); text-decoration: none; transition: border-color .2s; }
.lp-help-list a:hover { border-color: var(--lp-primary); }
.lp-help-list span { color: var(--lp-muted); font-size: 14px; }
.lp-help-list em { color: var(--lp-primary); font-size: 12px; font-style: normal; font-weight: 600; }
.lp-help-contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 46px; padding: 26px 28px; border-radius: 22px; border: 1px solid var(--lp-border); background: linear-gradient(135deg, color-mix(in srgb, var(--lp-primary) 12%, transparent), transparent); }
.lp-help-contact h2 { margin: 0 0 4px; font-size: 1.25rem; }
.lp-help-contact p { margin: 0; color: var(--lp-muted); }

/* Status page */
.lp-status-banner { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 20px 22px; border-radius: 18px; color: #fff; }
.lp-status-banner.is-ok { background: linear-gradient(135deg, #059669, #10b981); }
.lp-status-banner.is-degraded { background: linear-gradient(135deg, #d97706, #f59e0b); }
.lp-status-banner.is-down { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.lp-status-banner strong { display: block; font-size: 1.15rem; }
.lp-status-banner small { opacity: .85; }
.lp-status-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: 20px; font-weight: 800; }
.lp-status-list { border-radius: 18px; border: 1px solid var(--lp-border); background: var(--lp-surface); overflow: hidden; margin-top: 10px; }
.lp-status-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.lp-status-row + .lp-status-row { border-top: 1px solid var(--lp-border); }
.lp-status-name { flex: 1; font-weight: 600; }
.lp-status-state { color: var(--lp-muted); font-size: 14px; }
.lp-status-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.lp-status-dot.is-ok { background: var(--lp-success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-success) 22%, transparent); }
.lp-status-dot.is-down { background: var(--lp-danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-danger) 22%, transparent); }
.lp-uptime { margin: 28px 0 46px; padding: 22px; border-radius: 18px; border: 1px solid var(--lp-border); background: var(--lp-surface); }
.lp-uptime-head, .lp-uptime-foot { display: flex; justify-content: space-between; gap: 10px; }
.lp-uptime-head { margin-bottom: 14px; font-size: 14px; color: var(--lp-muted); }
.lp-uptime-head strong { color: var(--lp-text); }
.lp-uptime-foot { margin-top: 8px; font-size: 12px; color: var(--lp-faint); }
.lp-uptime-bars { display: flex; gap: 2px; height: 36px; }
.lp-bar { flex: 1; border-radius: 3px; background: var(--lp-success); opacity: .85; }
.lp-bar.is-degraded { background: #f59e0b; opacity: 1; }
.lp-bar.is-down { background: var(--lp-danger); opacity: 1; }
.lp-bar.is-maint { background: #60a5fa; opacity: 1; }
.lp-bar.is-nodata { background: var(--lp-faint); opacity: .35; }
.lp-uptime-note { margin: 10px 0 0; font-size: 12px; color: var(--lp-faint); }
.lp-bar:hover { opacity: 1; transform: scaleY(1.1); }
.lp-incident { margin-bottom: 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--lp-border); border-left: 4px solid var(--lp-faint); background: var(--lp-surface); }
.lp-incident.lp-sev-minor { border-left-color: #f59e0b; }
.lp-incident.lp-sev-major { border-left-color: var(--lp-danger); }
.lp-incident.lp-sev-maintenance { border-left-color: #60a5fa; }
.lp-incident.is-open { box-shadow: var(--lp-shadow); }
.lp-incident-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.lp-incident p { margin: 8px 0; color: var(--lp-muted); }
.lp-incident small { color: var(--lp-faint); }

/* Newsletter (footer) */
.lp-newsletter { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; margin-bottom: 36px; padding: 28px 30px; border-radius: 22px; border: 1px solid var(--lp-border); background: linear-gradient(135deg, color-mix(in srgb, var(--lp-primary) 14%, transparent), color-mix(in srgb, var(--lp-accent) 8%, transparent)); }
.lp-newsletter h2 { margin: 0 0 6px; font-size: 1.3rem; }
.lp-newsletter p { margin: 0; color: var(--lp-muted); }
.lp-newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-newsletter-form input[type="email"] { flex: 1; min-width: 200px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--lp-border-strong); background: var(--lp-input-bg); color: var(--lp-text); font: inherit; }
.lp-newsletter-form input[type="email"]:focus { outline: none; border-color: var(--lp-primary); }
.lp-newsletter-form .lp-form-status { flex-basis: 100%; font-size: 14px; }
.lp-footer-links { display: inline-flex; gap: 18px; }
.lp-footer-links a { color: var(--lp-muted); text-decoration: none; }

@media (max-width: 1100px) {
    .lp-demo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .lp-show, .lp-show.is-reversed { grid-template-columns: 1fr; gap: 26px; }
    .lp-show.is-reversed .lp-show-media { order: 0; }
    .lp-newsletter { grid-template-columns: 1fr; }
    .lp-preview-bar { top: 64px; margin-top: 64px; }
}
@media (max-width: 640px) {
    .lp-page-hero { padding: 104px 0 36px; }
    .lp-demo-grid { grid-template-columns: 1fr; padding: 12px; }
    .lp-search { flex-direction: column; }
    .lp-search svg { top: 30px; }
    .lp-showcase { gap: 48px; }
    .lp-newsletter { padding: 22px 18px; }
    .lp-footer-bottom { flex-direction: column; }
}

.lp-flash { animation: lp-flash 1s ease; }
@keyframes lp-flash { 0% { color: var(--lp-primary-2); } 100% { color: inherit; } }
