/* ==========================================================================
   Landing page (index.html). One brand accent, all colours come
   from the tokens in app.css. No gradients.
   The "Shared" block near the end is also used by pricing, developers and docs.
   ========================================================================== */

.lp { background: var(--bg); overflow-x: clip; }
.lp-wrap { max-width: 1180px; margin: 0 auto; }
.lp-section { padding: 112px 24px; }
.lp-section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.lp-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 14px; letter-spacing: .01em; }
.lp-kicker .i { color: var(--accent-text); }
.lp-h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -.035em; line-height: 1.1; margin: 0 0 16px; font-weight: 700; text-wrap: balance; }
.lp-lead { font-size: 17.5px; color: var(--muted); line-height: 1.6; margin: 0; text-wrap: pretty; }
.lp-head { max-width: 720px; margin: 0 0 56px; }
.lp-head.center, .lp-center { text-align: center; margin-left: auto; margin-right: auto; }
.lp-center { max-width: 720px; margin-bottom: 48px; }
.lp-new { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: var(--on-accent); }
.lp-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--text); }
.lp-more .i { transition: transform .15s; }
.lp-more:hover { text-decoration: none; }
.lp-more:hover .i { transform: translateX(3px); }
.lp-center-link { text-align: center; margin: 36px 0 0; }

/* Buttons */
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lp-cta.center { justify-content: center; }
.lp-cta .btn.big { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 10px; }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.lp-actions.center { justify-content: center; margin-top: 40px; }
.lp-actions .btn { height: 42px; padding: 0 18px; border-radius: 9px; font-size: 14px; }

/* Screenshot frame */
.lp-shot { margin: 0; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 24px 48px -16px rgba(16, 24, 40, .22); }
.lp-shot-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.lp-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); flex: none; }
.lp-shot-bar span { margin: 0 auto; font-size: 11.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 2px 14px;
  min-width: 0; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transform: translateX(-20px); }
.lp-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--surface-2); }

/* ---------- Hero ---------- */
.lp-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 72px 24px 0; text-align: center; }
.lp-pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 5px 14px 5px 5px; border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 500; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.lp-pill:hover { border-color: var(--border-strong); text-decoration: none; color: var(--text); }
.lp-pill b { background: var(--accent); color: var(--on-accent); font-size: 11.5px; padding: 3px 9px; border-radius: 99px; flex: none; }
.lp-pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; max-width: 980px; margin: 0 auto 24px; text-wrap: balance; }
.lp-hero h1 span { color: var(--muted); }
.lp-hero-lead { font-size: 19px; max-width: 680px; margin: 0 auto 36px; }
.lp-hero .lp-cta { justify-content: center; }
.lp-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13.5px; color: var(--muted); }
.lp-trust li { display: inline-flex; align-items: center; gap: 6px; }
.lp-trust .i { color: var(--text-2); }
.lp-hero-shot { max-width: 1120px; margin: 64px auto 0; position: relative; }
.lp-hero-shot .lp-shot { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.lp-hero-shot .lp-shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }

/* Quick start */
.lp-quick { padding: 40px 24px 0; }
.lp-quick-card { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); }
.lp-quick .dropzone { padding: 18px 20px; display: flex; align-items: center; gap: 14px; text-align: left; flex-wrap: wrap; }
.lp-quick .dropzone .dz-icon { margin: 0; width: 42px; height: 42px; flex: none; }
.lp-quick .dropzone h3 { font-size: 15px; flex: 1 1 200px; }
.lp-quick .dropzone .muted { flex-basis: 100%; margin: -10px 0 0 56px; }
.lp-quick .dropzone .btn { display: none; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 310px; }
.lp-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--surface); }
.lp-chips a:hover { border-color: var(--text); color: var(--text); text-decoration: none; }

/* ---------- Feature overview ---------- */
.lp-fgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-fcard-all { background: var(--surface-2); border-style: dashed; }
.lp-fcard-all .lp-ic { background: var(--surface); color: var(--accent-text); border: 1px solid var(--border); }
.lp-fcard { position: relative; height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.lp-fcard:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lp-fcard > .i { position: absolute; top: 18px; right: 18px; color: var(--muted); opacity: 0; transition: opacity .15s; }
.lp-fcard:hover > .i { opacity: 1; }
.lp-fcard-text { display: grid; gap: 5px; }
.lp-fcard b { font-size: 15px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-fcard b em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: var(--on-accent); }
.lp-fcard-text > span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.lp-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }

/* ---------- Feature rows ---------- */
.lp-row { background: var(--bg); }
.lp-row + .lp-row { padding-top: 0; }
.lp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.lp-row.flip .lp-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.lp-row.flip .lp-copy { order: 2; }
.lp-copy { min-width: 0; }
.lp-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.lp-list li { display: flex; gap: 12px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.lp-list .i { color: var(--success, #16a34a); margin-top: 3px; }
.lp-caps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-caps li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.4; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.lp-caps .i { color: var(--accent-text); margin-top: 1px; }

/* ---------- AI ---------- */
.lp-wide-shot { max-width: 1040px; margin: 0 auto 48px; }
.lp-cards3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lp-card { padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.lp-card .lp-ic { margin-bottom: 16px; width: 36px; height: 36px; border-radius: 9px; }
.lp-card h3 { font-size: 16px; margin: 0 0 6px; }
.lp-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.lp-ai-foot { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 18px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.lp-ai-foot p { margin: 0; color: var(--text-2); font-size: 15px; }
.lp-ai-foot .lp-actions { margin: 0; }

/* ---------- Tools ---------- */
.lp-tools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lp-tools a { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text); font-weight: 500; font-size: 14px; transition: border-color .15s, background .15s; min-width: 0; }
.lp-tools a .i { color: var(--text-2); }
.lp-tools a:hover { border-color: var(--text); text-decoration: none; }

/* ---------- Languages ---------- */
.lp-langs { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-langs li { padding: 6px 13px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 15px; color: var(--text); }

/* ---------- API ---------- */
#api .lp-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lp-code { border-radius: 14px; background: #0b0f17; border: 1px solid #1f2937; overflow: hidden; box-shadow: 0 24px 48px -16px rgba(16, 24, 40, .35); min-width: 0; }
.lp-code-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #1f2937; font-size: 12px; color: #9ca3af; }
.lp-code-bar a { color: #e5e7eb; font-weight: 500; }
.lp-code pre { margin: 0; padding: 18px; overflow-x: auto; color: #e5e7eb; font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- Pricing ---------- */
.lp-note { text-align: center; color: var(--muted); margin: 24px 0 0; font-size: 14.5px; }
.lp-note a { font-weight: 600; }

/* ---------- Final CTA ---------- */
/* A band in the brand accent with its contrasting ink (both from app.css, so it follows light and dark mode). */
.lp-final { --band: var(--accent); --band-ink: var(--on-accent); background: var(--band); color: var(--band-ink); text-align: center; padding: 104px 24px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-final { --band: var(--surface); --band-ink: var(--text); border-top: 1px solid var(--border); } }
:root[data-theme="dark"] .lp-final { --band: var(--surface); --band-ink: var(--text); border-top: 1px solid var(--border); }
.lp-final-logo { display: block; margin: 0 auto 22px; border-radius: 12px; outline: 1px solid color-mix(in srgb, var(--band-ink) 25%, transparent); }
.lp-final h2 { color: var(--band-ink); font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.04em; line-height: 1.05; margin: 0 0 14px; }
.lp-final p { color: color-mix(in srgb, var(--band-ink) 72%, transparent); font-size: 17.5px; margin: 0 auto 32px; max-width: 560px; }
.lp-final .lp-invert { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.lp-final .lp-invert:hover { background: color-mix(in srgb, var(--band-ink) 88%, var(--band)); color: var(--band); }
.lp-final .lp-ghost { background: transparent; color: var(--band-ink); border-color: color-mix(in srgb, var(--band-ink) 35%, transparent); box-shadow: none; }
.lp-final .lp-ghost:hover { background: color-mix(in srgb, var(--band-ink) 10%, transparent); color: var(--band-ink); }

/* Sticky mobile CTA */
.lp-sticky { display: none; }

/* ==========================================================================
   Shared with pricing.html, developers.html and docs
   ========================================================================== */
.lp-pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 22px; }
.price-card { padding: 30px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 2px solid var(--accent); }
.price-card .tag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.price-card h3 { font-size: 18px; margin-bottom: 6px; }
.price-card .amount { font-size: 46px; font-weight: 700; letter-spacing: -.04em; margin: 10px 0 2px; }
.price-card .amount small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .lp-list { flex: 1; margin-bottom: 28px; }
.price-card .btn { width: 100%; height: 46px; }

.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); font-weight: 400; transition: transform .15s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; line-height: 1.65; font-size: 15px; }

/* Pricing page */
.pp-head { text-align: center; padding: 56px 20px 20px; }
.pp-head h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; }
.pp-head p { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto; }
.pp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 22px; padding: 28px 20px 10px; }
.pp-current { display: inline-block; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-text); padding: 3px 10px; border-radius: 99px; margin-left: 8px; vertical-align: middle; }
.pp-compare { max-width: 820px; margin: 40px auto; padding: 0 20px; }
.pp-compare table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.pp-compare th, .pp-compare td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.pp-compare th:not(:first-child), .pp-compare td:not(:first-child) { text-align: center; width: 26%; }
.pp-compare thead th { background: var(--surface-2); font-size: 13px; }
.pp-compare tr:last-child td { border-bottom: 0; }
.pp-usage { max-width: 820px; margin: 0 auto 10px; padding: 0 20px; }
.pp-usage .card { padding: 16px 20px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.pp-usage .card div { font-size: 13px; color: var(--muted); }
.pp-usage .card b { display: block; font-size: 16px; color: var(--text); }
.pp-continue { text-align: center; margin: 6px 0 40px; }
.pp-actions { display: grid; gap: 8px; }
.pp-pastdue { max-width: 760px; margin: 0 auto 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 860px) { .pp-cards { grid-template-columns: minmax(0, 1fr); } }

/* Comparison table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 15px 16px; border-bottom: 1px solid var(--border); text-align: center; font-size: 14px; color: var(--text-2); font-weight: 400; }
.cmp th:first-child, .cmp td:first-child, .cmp tbody th { text-align: left; color: var(--text); font-weight: 500; }
.cmp thead th { background: var(--surface-2); font-size: 14px; color: var(--text); font-weight: 600; }
.cmp .us { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.cmp thead .us { background: var(--accent); color: var(--on-accent); }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }
.cmp-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.cmp-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.cmp-note { font-size: 12.5px; text-align: center; max-width: 760px; margin: 16px auto 0; }
.lp-code.legacy, pre.code.lp-code { margin: 0; font-size: 12.5px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .lp-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-fcard { flex-direction: row; align-items: flex-start; }
  .lp-fcard-text { padding-right: 20px; }
}
@media (max-width: 960px) {
  .lp-section { padding: 88px 24px; }
  .lp-split, .lp-row.flip .lp-split, #api .lp-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lp-row.flip .lp-copy { order: 0; }
  .lp-copy { max-width: 680px; }
  .lp-cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-quick-card { grid-template-columns: minmax(0, 1fr); }
  .lp-chips { max-width: none; }
  .lp-pricing { grid-template-columns: minmax(0, 440px); }
}
@media (max-width: 760px) {
  .lp-hero-shot { margin-top: 48px; }
}
@media (max-width: 640px) {
  .cmp { min-width: 0; table-layout: fixed; }
  .cmp th, .cmp td { padding: 10px 6px; font-size: 12px; overflow-wrap: anywhere; }
  .cmp thead th { overflow-wrap: normal; font-size: 11.5px; }
  .cmp th:first-child, .cmp td:first-child { width: 34%; padding-left: 12px; }
  .cmp-yes, .cmp-no { width: 22px; height: 22px; }
}
@media (max-width: 600px) {
  .lp-section { padding: 68px 16px; }
  .lp-head { margin-bottom: 36px; }
  .lp-lead { font-size: 16px; }
  .lp-hero { padding: 44px 16px 0; }
  .lp-pill { font-size: 12.5px; margin-bottom: 22px; }
  .lp-hero h1 { font-size: clamp(36px, 10.5vw, 44px); }
  .lp-hero-lead { font-size: 16.5px; margin-bottom: 28px; }
  .lp-cta .btn.big { width: 100%; }
  .lp-hero-shot { margin-top: 40px; }
  .lp-shot-bar { height: 26px; padding: 0 10px; }
  .lp-shot-bar i { width: 7px; height: 7px; }
  .lp-shot-bar span { font-size: 10px; padding: 1px 10px; }
  .lp-shot { border-radius: 10px; }
  .lp-quick { padding: 24px 16px 0; }
  .lp-quick .dropzone .muted { margin-left: 0; margin-top: 0; }
  .lp-fgrid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lp-fcard { flex-direction: row; align-items: flex-start; padding: 16px; gap: 14px; }
  .lp-fcard > .i { opacity: 1; top: 16px; right: 14px; }
  .lp-fcard-text { padding-right: 18px; }
  .lp-caps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lp-caps li { padding: 9px 12px; }
  .lp-hero-shot .lp-shot img { aspect-ratio: 4 / 3; object-position: 30% 0; }
  .lp-fgrid { gap: 8px; }
  .lp-cards3 { grid-template-columns: minmax(0, 1fr); }
  .lp-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lp-tools a { padding: 11px 10px; font-size: 13px; gap: 8px; }
  .lp-actions { gap: 12px 18px; }
  .lp-ai-foot { padding: 16px; }
  .lp-code pre { font-size: 11.5px; padding: 14px; }
  .lp-final { padding: 76px 16px; }
  .price-card { padding: 24px; }
  .lp-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(16, 24, 40, .1); transform: translateY(110%); transition: transform .25s ease; }
  .lp-sticky.show { transform: none; }
  .lp-sticky .btn { width: 100%; height: 46px; }
  body.lp { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-fcard, .lp-more .i, .lp-sticky { transition: none; }
}

/* ---------- MCP section ---------- */
.lp-mcp-can { list-style: none; padding: 0; margin: 18px 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.lp-mcp-can li { display: flex; gap: 11px; align-items: flex-start; }
.lp-mcp-can .lp-ic { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.lp-mcp-can b { display: block; font-size: 14px; color: var(--text); }
.lp-mcp-can small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.lp-mcp-note { font-size: 13px; margin: 0 0 18px; }
.lp-mcp-setup { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 16px 4px; box-shadow: var(--shadow); }
.lp-mcp-setup-head { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); font-size: 14px; }
.lp-mcp-setup .lang-tabs { flex-wrap: wrap; }
.lp-mcp-setup pre.code { white-space: pre; font-size: 12px; }
@media (max-width: 600px) { .lp-mcp-can { grid-template-columns: 1fr; } }
@media (pointer: coarse) { .lp-more { min-height: 44px; display: inline-flex; align-items: center; } }

/* ==========================================================================
   SlidesBat additions
   ========================================================================== */
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.lp-steps li { position: relative; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.lp-steps li > .i { color: var(--accent-text); width: 26px; height: 26px; margin-bottom: 10px; }
.lp-steps h3 { font-size: 17px; margin: 0 0 6px; }
.lp-steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.lp-step-n { position: absolute; top: 18px; right: 20px; font-size: 13px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.lp-fgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px 14px 0 0; }
.lp-collage.two { grid-template-columns: 1fr 1fr; border-radius: 14px; }
.lp-collage img, .lp-tcard img, .tg-card img, .tp-main img, .tp-layouts img, .ft-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--surface-2); box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 10px 24px -10px rgba(16,24,40,.25); }
.lp-visual { min-width: 0; }
.lp-tstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lp-tcard, .tg-card { display: grid; gap: 8px; color: var(--text); }
.lp-tcard:hover, .tg-card:hover { text-decoration: none; }
.lp-tcard:hover img, .tg-card:hover img { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-tcard span { font-weight: 600; font-size: 14px; }
.lp-formats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 48px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.lp-formats span { width: 96px; height: 120px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); display: grid; place-items: end center; padding-bottom: 14px; font-weight: 800; letter-spacing: .04em; color: var(--accent-text); position: relative; }
.lp-formats span::before { content: ""; position: absolute; top: 16px; left: 16px; right: 16px; height: 8px; border-radius: 4px; background: var(--border); box-shadow: 0 16px 0 var(--border), 0 32px 0 var(--border); }
.lp-caps.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; margin: 0 auto; }
.lp-apps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-apps a { display: grid; grid-template-columns: 14px 1fr; gap: 2px 10px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
.lp-apps a:hover { border-color: var(--border-strong); text-decoration: none; }
.lp-apps span:last-child { grid-column: 2; font-size: 13.5px; color: var(--muted); }
.lp-app-dot { width: 12px; height: 12px; border-radius: 4px; }
/* Feature, compare and template pages */
.ft-crumbs, .crumbs { max-width: 1180px; margin: 0 auto; padding: 18px 24px 0; font-size: 13px; color: var(--muted); display: block; }
.ft-hero { padding-bottom: 64px; }
.ft-hero .lp-kicker { justify-content: center; }
.ft-hero .lp-hero-shot { margin-top: 48px; }
.ft-hero .lp-hero-shot:empty { display: none; }
.ft-fig { margin: 0 auto; max-width: 880px; }
.ft-sec { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.ft-sec .lp-list { margin: 0; }
.ft-narrow { max-width: 760px; }
.nf-hero { padding: 96px 24px; }
.lp-memos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lp-memos a { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); height: 100%; }
.lp-memos a:hover { border-color: var(--accent); text-decoration: none; }
.lp-memos span { color: var(--muted); font-size: 14px; }
.lp-memos em { font-style: normal; font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.tg-section { padding-top: 40px; }
.tg-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; justify-content: center; }
.tg-filter a { padding: 7px 14px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.tg-filter a:hover { text-decoration: none; border-color: var(--border-strong); }
.tg-filter a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tg-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.tg-grid li[hidden] { display: none; }
.tg-meta { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tg-meta span { font-size: 12.5px; color: var(--muted); }
.tp-top { padding-top: 32px; }
.tp-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.tp-side h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.035em; margin: 0 0 12px; }
.tp-side .lp-cta { margin: 24px 0 8px; }
.tg-sws { display: flex; gap: 8px; margin-top: 18px; }
.tg-sw { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border-strong); }
.tp-layouts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tp-layouts span { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 600; text-align: center; }
.pp-wrap { padding: 24px 20px 0; }
.cmp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cmp-col { padding: 26px; }
.cmp-col h2 { font-size: 20px; margin: 0; }
.cmp-col.us { border: 2px solid var(--accent); }
.cmp-col .lp-list { margin-top: 18px; }
/* Blog */
.bl-post { max-width: 760px; margin: 0 auto; padding: 8px 24px 80px; }
.bl-post .crumbs { padding: 18px 0 0; }
.bl-post h1 { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -.035em; line-height: 1.1; margin: 22px 0 8px; }
.bl-date { margin: 0 0 28px; }
.bl-body { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.bl-body h2 { font-size: 26px; margin: 36px 0 10px; letter-spacing: -.02em; }
.bl-body li { margin-bottom: 6px; }
.bl-cta { margin: 40px 0; padding: 22px; display: grid; gap: 8px; justify-items: start; }
.bl-cta p { margin: 0 0 6px; }
.bl-more { margin-top: 40px; }
.bl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bl-list.big { max-width: 820px; margin: 0 auto; }
.bl-list a { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
.bl-list a:hover { border-color: var(--accent); text-decoration: none; }
.bl-list span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 960px) {
  .lp-steps, .lp-fgrid.three, .lp-apps { grid-template-columns: minmax(0, 1fr); }
  .lp-tstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-caps.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-sec, .tp-grid, .cmp-two { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tp-layouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .lp-collage { grid-template-columns: 1fr; padding: 10px; }
  .lp-collage img:nth-child(n+2) { display: none; }
  .lp-collage.two img:nth-child(2) { display: block; }
  .lp-tstrip { gap: 12px; }
  .lp-caps.wide { grid-template-columns: minmax(0, 1fr); }
  .tg-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-layouts { grid-template-columns: minmax(0, 1fr); }
  .lp-formats span { width: 70px; height: 88px; }
  .bl-post { padding: 0 16px 60px; }
}

/* ===================== v2: real output, motion, charts ===================== */
.hero2 .lp-hero-shot { max-width: 1180px; margin-top: 56px; }
/* Hero stage: real slides crossfading, a real memo page beside them */
.hs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 0 40px; }
.hs-main { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; width: 100%; }
.hs-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: 0 2px 6px rgba(16,24,40,.06), 0 30px 70px rgba(16,24,40,.18); }
.hs-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity .8s ease, transform 1.2s ease; }
.hs-frame img.on { opacity: 1; transform: none; }
.hs-cap { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.hs-cap .i { color: var(--accent-text); }
.hs-cap b { color: var(--text-2); font-weight: 600; margin-left: 4px; }
.hs-memo { position: absolute; z-index: 2; right: -1%; bottom: 64px; width: 18%; margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 50px rgba(16,24,40,.22); border: 1px solid var(--border); transform: rotate(3deg); background: #fff; }
.hs-memo img { display: block; width: 100%; height: auto; }
.hs-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.hs-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--border-strong); cursor: pointer; transition: width .25s, background .25s; }
.hs-dots button.on { width: 26px; border-radius: 6px; background: var(--accent); }
.hs-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Number band */
.lp-band { padding: 34px 24px; border-bottom: 1px solid var(--border); background: var(--bg); }
.lp-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; text-align: center; }
.lp-stats b { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1.05; }
.lp-stats span { font-size: 13.5px; color: var(--muted); }
/* AI flow */
.ai-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.ai-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: grid; gap: 12px; box-shadow: var(--shadow-sm); }
.ai-step h3 { margin: 0; font-size: 16px; }
.ai-step p { margin: 0; font-size: 13.5px; }
.ai-n { position: absolute; top: -12px; left: 20px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.ai-prompt { margin: 0; padding: 14px 16px; border-radius: 12px 12px 12px 4px; background: var(--accent-soft); color: var(--text); font-size: 15px; line-height: 1.5; }
.ai-outline { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.ai-outline img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 20%; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ai-grid img, .ch-grid img, .ch-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
/* Charts */
.ch-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ch-grid figure { margin: 0; }
.ch-grid figcaption { margin-top: 8px; font-size: 13.5px; font-weight: 600; text-align: center; color: var(--text-2); }
.ch-grid img { transition: transform .25s ease, box-shadow .25s ease; }
.ch-grid li:hover img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ch-tags { list-style: none; padding: 0; margin: 32px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; }
.ch-tags li { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg); font-size: 13px; color: var(--text-2); font-weight: 500; }
.ch-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 1040px; margin: 0 auto; }
/* Motion demo */
.mo-split { align-items: center; }
.mo-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mo-btns .chip { font-size: 13px; padding: 6px 14px; }
.mo-btns .chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mo-note { font-size: 13px; margin: 12px 0 0; }
.mo-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); background: #000; box-shadow: var(--shadow-lg); perspective: 1600px; }
.mo-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; }
/* Memos */
.mm-stack { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin: 0 auto; }
.mm-stack img { position: absolute; width: 62%; height: auto; border-radius: 6px; border: 1px solid var(--border); box-shadow: 0 18px 44px rgba(16,24,40,.18); background: #fff; }
.mm-stack .mm-p0 { left: 4%; top: 0; z-index: 2; }
.mm-stack .mm-p1 { right: 2%; top: 9%; transform: rotate(4deg); }
/* Export */
.ex-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ex-grid li { display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.ex-grid b { font-size: 15px; }
.ex-grid span:last-child { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.ex-tag { justify-self: start; font: 800 12px/1 ui-monospace, Menlo, monospace; letter-spacing: .04em; padding: 7px 9px; border-radius: 7px; background: var(--accent); color: var(--on-accent); }
/* Template marquee */
.lp-marquee { overflow: hidden; padding: 6px 0 4px; -webkit-mask: none; }
.lp-mq-track { list-style: none; margin: 0; padding: 0 24px; display: flex; gap: 20px; width: max-content; animation: lp-mq 70s linear infinite; }
.lp-mq-track li { width: 300px; flex: none; }
.lp-marquee:hover .lp-mq-track, .lp-marquee:focus-within .lp-mq-track { animation-play-state: paused; }
@keyframes lp-mq { to { transform: translateX(-50%); } }
/* Gallery */
.tg-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.tg-bar .tg-filter { margin: 0; justify-content: flex-start; }
.tg-filter a em { font-style: normal; font-weight: 500; opacity: .7; margin-left: 2px; }
.tg-search { position: relative; display: flex; align-items: center; flex: 0 1 300px; }
.tg-search .i { position: absolute; left: 12px; color: var(--muted); }
.tg-search input { padding-left: 36px; height: 40px; border-radius: 99px; }
.tg-grid.big { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.tg-card img { transition: opacity .2s ease; }
.tg-card .tg-meta { align-items: center; flex-wrap: wrap; }
.tg-sws.sm { margin: 0 0 0 auto; gap: 4px; }
.tg-sws.sm i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--border-strong); }
.tg-empty { text-align: center; padding: 40px 0; }
/* Template page viewer */
.tp-viewer { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); background: var(--surface-2); }
.tp-viewer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: 0; transition: opacity .35s ease; aspect-ratio: auto; }
.tp-viewer img.on { opacity: 1; }
.tp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s; box-shadow: var(--shadow); }
.tp-viewer:hover .tp-nav, .tp-nav:focus-visible { opacity: 1; }
.tp-nav.prev { left: 12px; } .tp-nav.next { right: 12px; }
@media (hover: none) { .tp-nav { opacity: 1; } }
.tp-strip { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tp-strip button { display: grid; gap: 5px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; color: var(--text-2); font: inherit; font-size: 12px; }
.tp-strip img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; border: 2px solid transparent; }
.tp-strip button.on img { border-color: var(--accent); }
.tp-strip button.on { color: var(--accent-text); font-weight: 600; }
/* Reveal on scroll (only when scripts run and motion is welcome) */
html.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.rv-on .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.rv-on .rv { opacity: 1; transform: none; transition: none; }
  .lp-mq-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .lp-mq-track li[aria-hidden="true"] { display: none; }
  .hs-frame img { transition: none; }
}
@media (max-width: 1100px) {
  .ch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ai-flow { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hs-memo { display: none; }
  .lp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ex-grid { grid-template-columns: minmax(0, 1fr); }
  .ch-grid { gap: 12px; }
  .ch-hero { grid-template-columns: minmax(0, 1fr); }
  .lp-mq-track li { width: 240px; }
  .tg-search { flex-basis: 100%; }
  .tg-grid.big { grid-template-columns: minmax(0, 1fr); }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-stats li:last-child { grid-column: 1 / -1; }
  .mm-stack { aspect-ratio: 5 / 6; }
  .mm-stack img { width: 70%; }
  .tp-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}
