/* Public landing page at "/". Same palette as app.css: pale page, indigo pills, rounded cards. */
:root {
  --ink: #1a162f;
  --muted: #64748b;
  --muted-2: #5d5d74;
  --accent: #4c5fff;
  --accent-hover: #3b4bea;
  --accent-soft: #eef0ff;
  --warm: #f2936e;
  --blue: #4287f5;
  --violet: #7a68f6;
  --success-ink: #047857;
  --success-bg: #ecfdf5;
  --page: #f8f9fd;
  --surface: #ffffff;
  --line: rgba(26, 22, 47, 0.08);
  --shadow: 0 1px 2px rgba(26, 22, 47, 0.04), 0 18px 44px rgba(76, 95, 255, 0.08);
  --radius: 28px;
  --display: "Syne", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft YaHei", sans-serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
html, body { margin: 0; }
body.lp {
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
body.lp::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(540px 340px at 8% -6%, rgba(242, 147, 110, 0.32), transparent 70%),
    radial-gradient(620px 420px at 96% -8%, rgba(120, 87, 255, 0.26), transparent 68%),
    radial-gradient(480px 320px at 72% 22%, rgba(66, 135, 245, 0.16), transparent 70%),
    linear-gradient(rgba(26, 22, 47, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 22, 47, 0.045) 1px, transparent 1px);
  background-size: auto, auto, auto, 56px 56px, 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
}
.lp main, .lp footer, .lp-top-slot { position: relative; z-index: 1; }
.lp a { color: inherit; }
.lp :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.lp h1, .lp h2, .lp h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.lp p { margin: 0; }
.lp svg { width: 1.25rem; height: 1.25rem; flex: none; }

.lp-wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

/* Header */
.lp-top-slot { position: sticky; top: 0; z-index: 10; padding: 0.85rem 0 0.2rem; }
.lp-top {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.4rem 0.42rem 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 10px 36px rgba(26, 22, 47, 0.06), inset 0 0 0 1px var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lp-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.lp-mark {
  width: 2.15rem; height: 2.15rem; border-radius: 12px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
}
.lp-mark-mini { width: 1.75rem; height: 1.75rem; border-radius: 10px; font-size: 0.82rem; }
.lp-word { font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.03em; }
.lp-nav { display: flex; gap: 0.15rem; }
.lp-nav a {
  text-decoration: none; color: var(--muted-2); font-weight: 600; font-size: 0.92rem;
  padding: 0.45rem 0.8rem; border-radius: 999px;
}
.lp-nav a:hover { color: var(--ink); background: rgba(76, 95, 255, 0.07); }
.lp-top-actions { display: flex; align-items: center; gap: 0.45rem; }
.lp-lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff;
}
.lp-lang a {
  text-decoration: none; color: var(--muted-2); font-weight: 700; font-size: 0.78rem;
  padding: 0.32rem 0.62rem; letter-spacing: 0.02em;
}
.lp-lang a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Buttons */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  text-decoration: none; font-weight: 650; line-height: 1.2;
  border-radius: 999px; padding: 0.82rem 1.35rem; border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.lp-btn-primary { background: var(--accent); color: #fff !important; box-shadow: 0 10px 26px rgba(76, 95, 255, 0.28); }
.lp-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.lp-btn-quiet { background: rgba(255, 255, 255, 0.75); border-color: var(--line); color: var(--ink); }
.lp-btn-quiet:hover { border-color: rgba(26, 22, 47, 0.22); }
.lp-btn-ghost { padding: 0.52rem 1rem; font-size: 0.9rem; background: var(--accent); color: #fff !important; }
.lp-btn-ghost:hover { background: var(--accent-hover); }
.lp-btn-light { background: #fff; color: var(--accent) !important; }
.lp-btn-light:hover { background: var(--accent-soft); }

/* Hero */
.lp-hero {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 3rem; align-items: center;
  padding: 4.5rem 0 2.5rem;
}
.lp-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 0.28rem 0.75rem; border-radius: 999px;
  margin-bottom: 1rem !important;
}
.lp-hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 3.05rem); line-height: 1.1;
}
html[lang="zh-CN"] .lp-hero h1 { line-height: 1.22; letter-spacing: 0; }
.lp-lede { margin-top: 1.1rem !important; color: var(--muted-2); font-size: 1.12rem; max-width: 36rem; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.9rem; }
.lp-note { display: flex; align-items: center; gap: 0.45rem; margin-top: 1.1rem !important; color: var(--muted); font-size: 0.9rem; }
.lp-note svg { width: 1rem; height: 1rem; }

.lp-card {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lp-chat { position: relative; margin: 0; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.85rem; }
.lp-chip {
  position: absolute; top: -0.7rem; right: 1.2rem; font-size: 0.72rem; font-weight: 700; color: var(--muted-2);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.6rem;
}
.lp-bubble { border-radius: 22px; padding: 0.85rem 1rem; font-size: 0.95rem; max-width: 88%; }
.lp-bubble-you { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 8px; }
.lp-bubble-bot { align-self: flex-start; background: #f3f4fb; border-bottom-left-radius: 8px; }
.lp-task { border: 1px dashed rgba(76, 95, 255, 0.35); border-radius: 20px; padding: 0.85rem 1rem; background: #fbfbff; }
.lp-task-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.lp-task-rows li { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; background: #fff; border-radius: 14px; padding: 0.55rem 0.75rem; font-size: 0.86rem; font-weight: 600; border: 1px solid var(--line); }
.lp-task-actions { display: flex; gap: 0.5rem; margin-top: 0.65rem; }
.lp-fake-btn { font-size: 0.8rem; font-weight: 650; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.lp-fake-primary { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Sections */
.lp-section { padding: 3.6rem 0 1rem; }
.lp-section > h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; max-width: 38rem;
}
html[lang="zh-CN"] .lp-section > h2 { letter-spacing: 0; line-height: 1.3; }
.lp-grid { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.lp-grid-5 { grid-template-columns: repeat(5, 1fr); counter-reset: none; }
.lp-section > .lp-lede { max-width: 40rem; }
.lp-service { padding: 1.35rem 1.3rem 1.45rem; }
.lp-service h3 { font-size: 1.02rem; }
.lp-service p { font-size: 0.93rem; }
.lp-extras { margin-top: 1rem; }
.lp-service-small { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.3rem; box-shadow: none; background: rgba(255, 255, 255, 0.66); }
.lp-service-small .lp-icon { margin: 0; width: 2.3rem; height: 2.3rem; }
.lp-service-small h3 { font-size: 0.98rem; }
.lp-service-small p { margin-top: 0.15rem; }
.lp-step-you { background: var(--accent); border-color: var(--accent); color: #fff; }
.lp-step-you p { color: rgba(255, 255, 255, 0.86) !important; }
.lp-step-you .lp-step-n { background: rgba(255, 255, 255, 0.2); color: #fff; }
.lp-grid h3, .lp-safe h3 { font-size: 1.05rem; font-weight: 700; }
.lp-grid p, .lp-safe p { color: var(--muted-2); margin-top: 0.35rem; font-size: 0.95rem; }
.lp-step { padding: 1.4rem 1.3rem; position: relative; }
.lp-step h3 { margin-top: 2.7rem !important; }
.lp-step-n { position: absolute; top: 1rem; left: 1.3rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; background: var(--accent-soft); color: var(--accent); }
.lp-icon {
  width: 2.6rem; height: 2.6rem; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 0.9rem;
}
.lp-tone-accent { background: var(--accent-soft); color: var(--accent); }
.lp-tone-soft { background: #f1f1f6; color: var(--muted-2); }
.lp-tone-warm { background: #fdeee7; color: #c4552c; }
.lp-tone-blue { background: #e8f0fe; color: var(--blue); }
.lp-tone-violet { background: #efecfe; color: var(--violet); }
.lp-tone-ink { background: #eceaf3; color: var(--ink); }

.lp-status { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; background: #fff; color: var(--muted-2); border: 1px solid var(--line); white-space: nowrap; }
.lp-status-tried { background: var(--success-bg); color: var(--success-ink); border-color: transparent; }
.lp-status-wait { background: #fff7ed; color: #c2410c; border-color: transparent; }
.lp-status-draft { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.lp-safe { list-style: none; margin: 1.8rem 0 0; padding: 0.6rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.2rem; }
.lp-safe-item { grid-column: span 2; }
.lp-safe-item:nth-child(n+4) { grid-column: span 3; }
.lp-safe-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; }
.lp-safe-item .lp-icon { margin: 0; background: var(--success-bg); color: var(--success-ink); }

.lp-final {
  text-align: center; border-radius: 34px; padding: 3.2rem 1.5rem; color: #fff;
  background:
    radial-gradient(420px 220px at 10% 0%, rgba(242, 147, 110, 0.55), transparent 70%),
    radial-gradient(480px 260px at 100% 100%, rgba(66, 135, 245, 0.5), transparent 70%),
    linear-gradient(135deg, #5b4cf6, #4c5fff);
  box-shadow: 0 24px 60px rgba(76, 95, 255, 0.25);
}
.lp-final h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
html[lang="zh-CN"] .lp-final h2 { letter-spacing: 0; }
.lp-final p { margin: 0.8rem auto 1.6rem !important; max-width: 34rem; color: rgba(255, 255, 255, 0.88); font-size: 1.05rem; }

.lp-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem;
  padding: 3rem 0 2.5rem; color: var(--muted); font-size: 0.9rem;
}
.lp-foot .lp-word { color: var(--ink); font-size: 1rem; }
.lp-foot-links { display: flex; gap: 1.2rem; align-items: center; }
.lp-foot-links a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* Responsive */
@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; gap: 2.4rem; padding-top: 3rem; }
  .lp-grid-3 { grid-template-columns: 1fr; }
  .lp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .lp-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .lp-step-you { grid-column: span 2; }
  .lp-safe { grid-template-columns: 1fr 1fr; }
  .lp-safe-item, .lp-safe-item:nth-child(n+4) { grid-column: auto; }
  .lp-nav { display: none; }
}
@media (max-width: 680px) {
  .lp-grid-2, .lp-grid-4, .lp-grid-5, .lp-safe { grid-template-columns: 1fr; }
  .lp-step-you { grid-column: auto; }
  .lp-chat { padding: 1.1rem; }
  .lp-bubble { max-width: 94%; }
  .lp-actions .lp-btn { flex: 1 1 100%; }
  .lp-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 340px) {
  .lp-top-slot .lp-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-btn { transition: none; }
}
html[lang="zh-CN"] .lp-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.lp-keep { display: inline-block; }

/* Header log in link (small, for existing users) */
.lp-login {
  text-decoration: none; font-weight: 650; font-size: 0.9rem; color: var(--ink);
  padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
}
.lp-login:hover { border-color: rgba(26, 22, 47, 0.22); }

/* Waitlist */
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.lp-waitlist { position: relative; margin-top: 1.7rem; padding: 1.35rem 1.4rem 1.15rem; max-width: 36rem; }
.lp-wl-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.lp-wl-pricing { margin-top: 0.3rem !important; color: var(--muted-2); font-size: 0.93rem; }
.lp-wl-form { margin-top: 0.95rem; }
.lp-wl-row { display: flex; gap: 0.5rem; }
.lp-wl-row input {
  flex: 1; min-width: 0; font: inherit; color: var(--ink);
  border: 1px solid rgba(26, 22, 47, 0.14); border-radius: 999px; padding: 0.78rem 1.1rem; background: #fbfbfe;
}
.lp-wl-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76, 95, 255, 0.16); background: #fff; }
#wl-code { letter-spacing: 0.3em; font-weight: 650; }
#wl-code::placeholder { letter-spacing: 0.02em; font-weight: 400; }
.lp-wl-row .lp-btn { border: 0; cursor: pointer; font: inherit; font-weight: 650; }
.lp-wl-row .lp-btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.lp-wl-consent { display: flex; gap: 0.55rem; align-items: flex-start; margin-top: 0.8rem; font-size: 0.88rem; color: var(--muted-2); cursor: pointer; }
.lp-wl-consent input { margin: 0.2rem 0 0; width: 1rem; height: 1rem; accent-color: var(--accent); flex: none; }
.lp-wl-links { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.7rem !important; color: var(--muted); font-size: 0.88rem; }
.lp-linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; }
.lp-linkish:hover { text-decoration: underline; }
.lp-wl-error, .lp-wl-status { margin-top: 0.75rem !important; padding: 0.6rem 0.8rem; border-radius: 14px; font-size: 0.9rem; }
.lp-wl-error { background: #fef2f2; color: #b91c1c; }
.lp-wl-status { background: var(--success-bg); color: var(--success-ink); }
.lp-wl-done { display: flex; gap: 0.9rem; align-items: flex-start; }
.lp-wl-check { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--success-bg); color: var(--success-ink); flex: none; }
.lp-wl-foot { margin-top: 0.95rem !important; padding-top: 0.85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.lp-wl-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
[hidden] { display: none !important; }

/* Unsubscribe page */
.lp-unsub { padding: 2.5rem 0 4rem; }
.lp-unsub-card { max-width: 34rem; margin: 2.2rem auto 0; padding: 2rem; }
.lp-unsub-card h1 { font-family: var(--display); font-size: 1.6rem; }
html[lang="zh-CN"] .lp-unsub-card h1 { letter-spacing: 0; }
.lp-unsub-card p { color: var(--muted-2); margin-top: 0.8rem !important; }
.lp-unsub-card form { margin-top: 1.3rem; }
.lp-unsub-card button { border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.lp-unsub-home a { color: var(--accent); font-weight: 600; text-decoration: none; }

@media (max-width: 680px) {
  .lp-waitlist { padding: 1.15rem; }
  .lp-wl-row { flex-direction: column; }
  .lp-wl-row .lp-btn { width: 100%; }
  .lp-login { padding: 0.45rem 0.8rem; font-size: 0.86rem; }
}

/* "See it in action" examples */
.lp-demo { margin-top: 1.8rem; }
.lp-demo-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.lp-demo-tab {
  font: inherit; font-size: 0.9rem; font-weight: 650; color: var(--muted-2); cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lp-demo-tab:hover { color: var(--ink); border-color: rgba(76, 95, 255, 0.35); }
.lp-demo-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.lp-demo-panel { padding: 1.6rem 1.7rem 1.4rem; margin-bottom: 1rem; }
.lp-demo-js .lp-demo-panel { margin-bottom: 0; }
.lp-demo-head { display: grid; gap: 0.35rem; margin-bottom: 1.3rem; max-width: 44rem; }
.lp-demo-head h3 { font-size: 1.25rem; }
.lp-demo-badge {
  justify-self: start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #9a3412; background: #fff7ed; border: 1px dashed #fdba74; border-radius: 999px; padding: 0.12rem 0.6rem;
}
.lp-demo-muted { color: var(--muted); font-size: 0.9rem; }
.lp-demo-label { font-size: 0.78rem; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem !important; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
html[lang="zh-CN"] .lp-demo-label { letter-spacing: 0.02em; }
.lp-demo-note { margin-top: 1.2rem !important; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.9rem; }
.lp-demo-foot { margin-top: 0.4rem !important; font-size: 0.85rem; color: var(--muted); max-width: 48rem; }
.lp-demo-cap { margin-top: 0.55rem !important; font-size: 0.82rem; }
.lp-demo-img { display: block; width: 100%; height: auto; }
.lp-demo-photo { border-radius: 16px; border: 1px solid var(--line); background: #f1efea; }
.lp-demo-shot { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(26, 22, 47, 0.08); background: #f4f2ee; }
.lp-fake-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem !important; }
.lp-fake-dark { background: var(--ink); color: #fff; border-color: var(--ink); display: inline-block; }

/* before → after layout */
.lp-ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.lp-ba-side { margin: 0; border-radius: 20px; padding: 1.1rem 1.15rem 1.2rem; position: relative; min-width: 0; }
.lp-ba-before { background: #f6f6f8; border: 1px solid var(--line); }
.lp-ba-after { background: #fbfbff; border: 1px solid rgba(76, 95, 255, 0.25); }
.lp-ba-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.12rem 0.55rem; border-radius: 999px; margin-bottom: 0.75rem; background: #e9e9ef; color: var(--muted-2);
}
.lp-ba-after > .lp-ba-tag, .lp-serp:not(.lp-serp-before) > .lp-ba-tag { background: var(--accent); color: #fff; }
.lp-ba-arrow { align-self: center; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--accent); }
.lp-ba-arrow svg { width: 1.1rem; height: 1.1rem; }
.lp-ba-photos .lp-demo-photo { aspect-ratio: 1; object-fit: cover; max-width: 21rem; margin: 0 auto; }
.lp-ba-photos .lp-demo-cap { text-align: center; }
.lp-ba-theme { align-items: start; }

/* health (real case): two PageSpeed Insights reports with our own score summary */
.lp-psi { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.lp-psi-side { margin: 0; min-width: 0; border-radius: 20px; padding: 1.1rem 1.15rem 1.2rem; background: #fbfbff; border: 1px solid rgba(76, 95, 255, 0.25); }
.lp-psi-tag { background: var(--accent); color: #fff; }
.lp-psi-scores { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.lp-psi-score { --c: #0b8a47; --bg: #e8f8ef; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; font-size: 0.78rem; line-height: 1.25; color: var(--muted); }
.lp-psi-mid { --c: #c25400; --bg: #fff3e0; }
.lp-psi-low { --c: #c62828; --bg: #fdecec; }
.lp-psi-ring {
  width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--bg) 80%, transparent 82% 100%), conic-gradient(var(--c) calc(var(--score) * 1%), #e3e5ea 0);
}
.lp-psi-ring b { font-size: 1.05rem; color: var(--c); font-variant-numeric: tabular-nums; }
.lp-psi .lp-shot-frame::after { display: none; }
.lp-psi .lp-shot-frame .lp-demo-shot { background: #fff; box-shadow: none; }

/* audit (real case): redacted store audit with a few highlighted findings */
.lp-redact { display: inline-block; background: var(--ink); color: var(--ink); border-radius: 3px; letter-spacing: -0.12em; line-height: 1.15; padding: 0 0.18em; vertical-align: -0.05em; user-select: none; }
.lp-audit-facts { display: grid; grid-template-columns: auto 1fr auto; gap: 0.8rem 1.4rem; margin: 0 0 1rem; padding: 0.9rem 1.1rem; background: #f6f6f8; border: 1px solid var(--line); border-radius: 16px; font-size: 0.88rem; }
.lp-audit-facts dt { font-size: 0.72rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.15rem; }
.lp-audit-facts dd { margin: 0; }
.lp-audit-counts { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.lp-prio { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 600; padding: 0.1rem 0.55rem 0.1rem 0.15rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.lp-prio b { color: #fff; border-radius: 999px; padding: 0 0.4rem; font-size: 0.7rem; background: #64748b; }
.lp-prio-p0 b { background: #dc2626; } .lp-prio-p1 b { background: #ea580c; } .lp-prio-p2 b { background: #2563eb; }
.lp-audit-conclusion { border-left: 3px solid var(--accent-soft); padding-left: 0.9rem; margin-bottom: 1.1rem; }
.lp-audit-conclusion p:last-child { font-size: 0.95rem; color: #334155; }
.lp-audit-findings { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.lp-audit-finding { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0.95rem 1.05rem; }
.lp-audit-ftitle { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; margin-bottom: 0.6rem !important; line-height: 1.4; }
.lp-audit-finding dl { margin: 0; display: grid; gap: 0.2rem; font-size: 0.86rem; }
.lp-audit-finding dt { font-size: 0.72rem; font-weight: 750; color: var(--accent); margin-top: 0.35rem; }
.lp-audit-finding dt::before { content: "【"; } .lp-audit-finding dt::after { content: "】"; }
html[lang="en"] .lp-audit-finding dt::before, html[lang="en"] .lp-audit-finding dt::after { content: none; }
.lp-audit-finding dd { margin: 0; color: #334155; }
.lp-audit-more { margin-top: 1rem !important; }
.lp-audit-open { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; font-size: 0.9rem; font-weight: 700; padding: 0.55rem 1.1rem; }
.lp-audit-open svg { width: 1rem; height: 1rem; }

/* sourcing / copy */
.lp-raw { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.84rem; line-height: 1.55; color: #475569; background: #fff; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 0.8rem 0.9rem; word-break: break-word; }
.lp-fields { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1rem; margin: 0; font-size: 0.9rem; }
.lp-fields dt { color: var(--muted); }
.lp-fields dd { margin: 0; font-weight: 600; }
.lp-copy-title { font-weight: 700; font-size: 1.02rem; margin-bottom: 0.35rem !important; }
.lp-copy-weak { color: var(--muted-2); font-weight: 500; }
.lp-ticks { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.lp-ticks li { display: flex; align-items: center; gap: 0.45rem; }
.lp-ticks svg { width: 1rem; height: 1rem; color: var(--success-ink); }

/* listing (real case): two sheets side by side, then the image set */
.lp-listing { display: grid; gap: 1rem; }
.lp-listing-sheets { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: start; }
.lp-step { margin: 0; border-radius: 20px; padding: 1.1rem 1.15rem 1.2rem; min-width: 0; background: #fbfbff; border: 1px solid rgba(76, 95, 255, 0.25); }
.lp-step-before { background: #f6f6f8; border-color: var(--line); }
.lp-step-tag { display: inline-flex; align-items: center; gap: 0.4rem; text-transform: none; letter-spacing: 0.02em; background: var(--accent); color: #fff; padding-left: 0.2rem; }
.lp-step-before .lp-step-tag { background: #e9e9ef; color: var(--muted-2); }
.lp-step-tag b { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: rgba(255, 255, 255, 0.25); font-size: 0.7rem; }
.lp-step-before .lp-step-tag b { background: #fff; }
.lp-listing-sheets .lp-shot-frame .lp-demo-shot { background: #fff; }
.lp-listing-sheets .lp-shot-frame::after { display: none; }
.lp-listing-sheets .lp-shot-frame .lp-demo-shot { box-shadow: none; }
.lp-listing-sheets .lp-shot-more { bottom: 0.6rem; font-size: 0.8rem; padding: 0.4rem 0.85rem; }
.lp-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 182px)); gap: 0.6rem; }
.lp-gallery li { min-width: 0; }
.lp-gallery-img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #f4f2ee; }

/* seo + image tables */
.lp-seo-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.lp-seo-table th, .lp-seo-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.lp-seo-table tr:last-child th, .lp-seo-table tr:last-child td { border-bottom: 0; }
.lp-seo-table thead th { background: #f6f6f8; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); }
.lp-seo-table tbody th { color: var(--muted); font-weight: 600; width: 9.5rem; }
.lp-seo-table td { word-break: break-word; }
.lp-seo-table thead th:first-child { width: 9.5rem; }
.lp-seo-table thead th:nth-child(2) { width: 34%; }
.lp-seo-table code { word-break: break-all; font-size: 0.82rem; background: #f3f4fb; padding: 0.05rem 0.35rem; border-radius: 6px; }
.lp-weak { color: var(--muted); }
.lp-serps { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lp-serp { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 1rem; font-family: Arial, var(--sans); }
.lp-serp-before { background: #f6f6f8; }
.lp-serp-url { font-size: 0.8rem; color: #4d5156; word-break: break-all; }
.lp-serp-title { font-size: 1.12rem; color: #1a0dab; margin: 0.15rem 0 0.25rem !important; line-height: 1.3; }
.lp-serp-desc { font-size: 0.86rem; color: #4d5156; line-height: 1.45; }
.lp-imgopt { display: grid; grid-template-columns: 13rem 1fr; gap: 1.3rem; align-items: start; }
.lp-imgopt .lp-seo-table { margin-bottom: 0; }

/* blog */
.lp-blog { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem 1.3rem; }
.lp-blog-title { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.25; margin: 0.6rem 0 0.25rem !important; }
html[lang="zh-CN"] .lp-blog-title { letter-spacing: 0; }
.lp-blog-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.4rem; margin-top: 1.1rem; }
.lp-outline { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; font-size: 0.92rem; }
.lp-blog-excerpt { font-size: 0.95rem; color: #334155; border-left: 3px solid var(--accent-soft); padding-left: 0.8rem; }

/* theme */
.lp-ba-theme { grid-template-columns: 0.85fr auto 1.4fr; }
.lp-demo-badge-real { color: var(--success-ink); background: var(--success-bg); border: 1px solid #6ee7b7; }
.lp-shot-frame { position: relative; display: block; border-radius: 12px; overflow: hidden; text-decoration: none; cursor: zoom-in; }
.lp-shot-frame .lp-demo-shot { border-radius: 12px; }
.lp-shot-frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(transparent, rgba(10, 18, 14, 0.55)); pointer-events: none; border-radius: 0 0 12px 12px; }
.lp-shot-more {
  position: absolute; z-index: 1; left: 50%; bottom: 1rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff; color: var(--ink); font-size: 0.85rem; font-weight: 700; padding: 0.5rem 1rem; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); white-space: nowrap;
}
.lp-shot-more svg { width: 1rem; height: 1rem; }
.lp-shot-frame:hover .lp-shot-more { background: var(--accent); color: #fff; }
.lp-lightbox { width: min(980px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 20px; background: #0f1512; color: #fff; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.lp-lightbox[open] { display: flex; flex-direction: column; }
.lp-lightbox::backdrop { background: rgba(10, 12, 20, 0.72); }
.lp-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.8rem 0.7rem 1.2rem; background: #fff; color: var(--ink); font-weight: 700; font-size: 0.92rem; }
.lp-lightbox-close { flex: none; white-space: nowrap; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.4rem 0.95rem; }
.lp-lightbox-close:hover { border-color: var(--accent); color: var(--accent); }
.lp-lightbox-body { overflow-y: auto; overscroll-behavior: contain; }
.lp-lightbox-img { display: block; width: 100%; height: auto; }
.lp-lightbox-wide { width: min(1400px, calc(100% - 2rem)); }
.lp-lightbox-wide .lp-lightbox-body { overflow: auto; background: #fff; }
.lp-lightbox-wide .lp-lightbox-img { min-width: 1000px; }
.lp-lightbox-doc { width: min(900px, calc(100% - 2rem)); height: calc(100vh - 2rem); }
.lp-lightbox-doc .lp-lightbox-body { flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.lp-lightbox-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.lp-lightbox-report { width: min(1100px, calc(100% - 2rem)); }
.lp-lightbox-report .lp-lightbox-body { overflow: auto; background: #fff; }

@media (max-width: 960px) {
  .lp-ba-theme { grid-template-columns: 1fr; }
  .lp-ba-theme .lp-ba-arrow { transform: rotate(90deg); justify-self: center; }
  .lp-listing-sheets { grid-template-columns: 1fr; gap: 0.6rem; }
  .lp-psi { grid-template-columns: 1fr; }
  .lp-audit-findings { grid-template-columns: 1fr; }
  .lp-audit-facts { grid-template-columns: 1fr 1fr; }
  .lp-audit-scope { grid-column: 1 / -1; grid-row: 2; }
  .lp-listing-sheets .lp-ba-arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 680px) {
  .lp-demo-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1rem 0.9rem; padding: 0 1rem 0.3rem; scrollbar-width: none; scroll-snap-type: x proximity; }
  .lp-demo-tabs::-webkit-scrollbar { display: none; }
  .lp-demo-tabs::after { content: ""; flex: 0 0 0.5rem; }
  .lp-demo-tab { flex: none; scroll-snap-align: start; }
  .lp-demo-panel { padding: 1.2rem 1rem 1.1rem; border-radius: 22px; }
  .lp-ba { grid-template-columns: 1fr; gap: 0.6rem; }
  .lp-ba-arrow { transform: rotate(90deg); justify-self: center; width: 2rem; height: 2rem; }
  .lp-ba-side { padding: 0.95rem; }
  .lp-serps, .lp-blog-cols, .lp-imgopt { grid-template-columns: 1fr; }
  .lp-imgopt-photo { max-width: 12rem; }
  .lp-seo-table tbody th { width: auto; }
  .lp-seo-table, .lp-seo-table tbody, .lp-seo-table tr { display: block; }
  .lp-seo-table thead { display: none; }
  .lp-seo-table tbody tr { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; }
  .lp-seo-table tbody tr:last-child { border-bottom: 0; }
  .lp-seo-table tbody th { grid-column: 1 / -1; padding-bottom: 0.1rem; border: 0; font-size: 0.78rem; }
  .lp-seo-table tbody td { border: 0; padding-top: 0.25rem; }
  .lp-seo-table tbody td::before { content: attr(data-label); display: block; font-size: 0.68rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.1rem; }
  .lp-seo-table tbody td:not(.lp-weak)::before { color: var(--accent); }
  .lp-shot-more { font-size: 0.8rem; bottom: 0.7rem; }
  .lp-lightbox { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); border-radius: 16px; }
  .lp-lightbox-doc { height: calc(100vh - 1rem); }
  .lp-step, .lp-psi-side { padding: 0.95rem; }
  .lp-psi-ring { width: 2.9rem; height: 2.9rem; }
  .lp-psi-scores { gap: 0.3rem; }
  .lp-psi-score { font-size: 0.68rem; hyphens: auto; overflow-wrap: anywhere; }
  .lp-lightbox-report .lp-lightbox-img { min-width: 640px; }
  .lp-gallery { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 0.3rem; overscroll-behavior-x: contain; }
  .lp-gallery li { scroll-snap-align: start; }
}
