/* ==========================================================================
   Landing page (index.html). Colours come from the tokens in app.css,
   so light and dark mode follow the user's setting. Solid colours only.
   The "Shared" block further down is also used by pricing, developers and docs.
   ========================================================================== */

.lp {
  --lp-max: 1200px;
  --lp-pad: 24px;
  --lp-radius: 18px;
  --lp-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 18px 40px -18px rgba(16, 24, 40, .25);
  /* The document in the demo is paper: it stays light in both themes */
  --lp-paper: #ffffff; --lp-ink: #1c1d1a; --lp-ink-2: #5d5f57; --lp-rule: #e3e3db; --lp-mark: #ede9fe; --lp-mark-ink: #4c1d95; --lp-pen: #1e3a8a;
  --lp-green: #067647; --lp-code-bg: #0f1117; --lp-code-ink: #e5e7eb; --lp-code-key: #c4b5fd; --lp-code-str: #86efac;
  background: var(--bg); overflow-x: clip;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp { --lp-green: #47cd89; --lp-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .7); --lp-paper: #f7f7f3; } }
:root[data-theme="dark"] .lp { --lp-green: #47cd89; --lp-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .7); --lp-paper: #f7f7f3; }

.lp-wrap { max-width: var(--lp-max, 1200px); margin: 0 auto; }
.lp-section { padding: 120px var(--lp-pad, 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 scale: 76 / 48 / 20 / 18 / 15 / 13 */
.lp-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--accent-text); margin: 0 0 14px; letter-spacing: .01em; }
.lp-h2 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 18px; font-weight: 700; text-wrap: balance; }
.lp-lead { font-size: 18px; color: var(--muted); line-height: 1.6; margin: 0; text-wrap: pretty; }
.lp-lead a { font-weight: 600; }
.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-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--text); }
.lp-more .i { transition: transform .15s; }
.lp-more:hover { text-decoration: none; }
.lp-more:hover .i { transform: translateX(3px); }
.lp-fine { text-align: center; color: var(--muted); font-size: 13.5px; margin: 22px auto 0; max-width: 720px; }
.lp-fine a { font-weight: 600; }
.lp-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.lp-list li { display: flex; gap: 12px; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.lp-list .i { color: var(--success); margin-top: 3px; flex: none; }

/* 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: 11px; }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.lp-actions.center { justify-content: center; margin-top: 48px; }
.lp-actions .btn { height: 44px; padding: 0 18px; border-radius: 10px; font-size: 14.5px; }

/* Window frame for live UI and screenshots: one radius, one shadow everywhere */
.lp-win { min-width: 0; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; box-shadow: var(--lp-shadow, var(--shadow-lg)); }
.lp-win-bar { position: relative; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.lp-dots { display: flex; gap: 6px; flex: none; }
.lp-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.lp-win-title { position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 150px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); font-weight: 500; }
.lp-win-tag { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--accent-text); background: var(--accent-soft); padding: 2px 8px; border-radius: 99px; }
.lp-win-shot .lp-win-body { background: var(--surface-2); }
.lp-img { display: block; width: 100%; height: auto; }

/* ==========================================================================
   Hero with the live demo
   ========================================================================== */
.lp-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 88px var(--lp-pad, 24px) 104px; }
.lp-hero-copy { text-align: center; max-width: 860px; margin: 0 auto; }
.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, 6vw, 76px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; margin: 0 auto 24px; text-wrap: balance; }
.lp-hero h1 span { color: var(--accent-text); }
.lp-hero-lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 640px; margin: 0 auto 36px; text-wrap: pretty; }
.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(--success); }

.lp-demo { max-width: 1080px; margin: 64px auto 0; padding: 40px; border-radius: 28px; background: var(--accent-soft);
  display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.12fr); gap: 20px; align-items: center; }
.lp-demo-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent-text); border: 1px solid var(--border); box-shadow: var(--shadow); }
.lp-demo-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.lp-demo-note .i { color: var(--accent-text); flex: none; }

.lp-demo-form { padding: 22px 22px 24px; display: grid; gap: 14px; }
.lp-demo-head b { display: block; font-size: 17px; letter-spacing: -.01em; }
.lp-demo-head span { font-size: 13px; color: var(--muted); }
.lp-demo-field { display: grid; gap: 6px; min-width: 0; }
.lp-demo-field > span, .lp-demo-seg legend { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 0; }
.lp-demo-field input, .lp-demo-field select { height: 40px; font-size: 14px; }
.lp-demo-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.lp-demo-seg { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 6px; }
.lp-demo-seg legend { margin-bottom: 6px; }
.lp-demo-seg > div { display: flex; gap: 6px; }
.lp-demo-seg label { flex: 1; position: relative; min-width: 0; }
.lp-demo-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.lp-demo-seg span { display: grid; place-items: center; height: 40px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.lp-demo-seg input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.lp-demo-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-demo-agree { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.lp-demo-agree input { width: 16px; height: 16px; margin: 0; }
.lp-demo-error { margin: -6px 0 0; font-size: 13px; color: var(--danger, #b42318); min-height: 0; }
.lp-demo-error:empty { display: none; }
.lp-demo-sign { height: 44px; font-size: 14.5px; border-radius: 10px; }

.lp-win-doc .lp-win-body { background: var(--surface-3); padding: 22px; }
.lp-doc { background: var(--lp-paper); color: var(--lp-ink); border-radius: 4px; padding: 26px 28px 20px; box-shadow: 0 1px 2px rgba(16, 24, 40, .1), 0 8px 24px -10px rgba(16, 24, 40, .3);
  font-family: Georgia, 'Times New Roman', serif; font-size: 14px; line-height: 1.6; }
.lp-doc p { margin: 0 0 14px; color: var(--lp-ink); }
.lp-doc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--lp-ink); }
.lp-doc-head b { display: block; font-family: var(--font); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-ink-2); }
.lp-doc-head div > span { font-size: 22px; letter-spacing: -.01em; }
.lp-doc-no { font-family: var(--font); font-size: 11.5px; color: var(--lp-ink-2); white-space: nowrap; }
.lp-fill { background: var(--lp-mark); color: var(--lp-mark-ink); padding: 0 2px; border-radius: 3px; font-weight: 600; }
.lp-fill.flash { animation: lp-flash .9s ease; }
@keyframes lp-flash { 0% { background: #c4b5fd; } 100% { background: var(--lp-mark); } }
.lp-doc-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 14px; border-top: 1px solid var(--lp-rule); }
.lp-doc-terms div { padding: 8px 0; border-bottom: 1px solid var(--lp-rule); min-width: 0; }
.lp-doc-terms div:nth-child(odd) { padding-right: 12px; }
.lp-doc-terms dt { font-family: var(--font); font-size: 11px; color: var(--lp-ink-2); text-transform: uppercase; letter-spacing: .06em; }
.lp-doc-terms dd { margin: 2px 0 0; }
.lp-doc-pets { font-size: 13.5px; }
.lp-doc-sigs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 22px; }
.lp-sig { min-width: 0; display: grid; gap: 2px; }
.lp-sig-line { height: 50px; border-bottom: 1px solid var(--lp-ink); display: flex; align-items: flex-end; padding-bottom: 2px; overflow: hidden; }
.lp-sig-ink { font-family: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive; font-size: 32px; line-height: 1; color: var(--lp-pen); white-space: nowrap; animation: lp-ink .5s ease; }
.lp-sig-ink:empty { animation: none; }
@keyframes lp-ink { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.lp-sig-wait { font-family: var(--font); font-size: 12px; color: var(--lp-ink-2); font-style: italic; }
.lp-sig small { font-family: var(--font); font-size: 11.5px; color: var(--lp-ink-2); }
.lp-sig-meta:empty { display: none; }
.lp-doc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--lp-rule); font-family: var(--font); font-size: 12px; }
.lp-doc-status { color: var(--lp-ink-2); background: #f1f1ec; padding: 3px 10px; border-radius: 99px; font-weight: 500; }
.lp-doc.signed .lp-doc-status { color: #05603a; background: #dcfae6; }
.lp-doc-saved { display: inline-flex; align-items: center; gap: 6px; color: var(--lp-ink-2); }
.lp-doc.signed .lp-doc-saved { color: #05603a; }

/* ==========================================================================
   How it works
   ========================================================================== */
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lp-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--lp-radius, 18px); overflow: hidden; display: flex; flex-direction: column; }
.lp-step-art { height: 264px; background: var(--surface-2); border-bottom: 1px solid var(--border); display: grid; place-items: center; padding: 24px; overflow: hidden; }
.lp-step-text { padding: 26px 28px 30px; }
.lp-step-num { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 3px 10px; border-radius: 99px; margin-bottom: 14px; }
.lp-step h3 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 8px; }
.lp-step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Drawings of the product (decorative, aria-hidden) */
.lp-ill { width: 100%; max-width: 330px; font-size: 12px; color: var(--text); }
.lp-ill b { font-weight: 600; }
.lp-ill-build { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; }
.lp-ill-palette { display: grid; gap: 6px; }
.lp-ill-palette > span { display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: 11px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; white-space: nowrap; }
.lp-ill-palette .i, .lp-ill-ic .i { width: 13px; height: 13px; }
.lp-ill-palette .i { color: var(--accent-text); }
.lp-ill-canvas { display: grid; gap: 7px; min-width: 0; }
.lp-ill-q { display: flex; align-items: center; gap: 7px; padding: 7px 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.lp-ill-q > span:last-child { min-width: 0; }
.lp-ill-q b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-ill-q small { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; }
.lp-ill-grip { color: var(--muted); display: grid; flex: none; }
.lp-ill-grip .i { width: 12px; height: 12px; }
.lp-ill-ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.lp-ill-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
.lp-ill-pair .lp-ill-grip { display: none; }
.lp-ill-slot { height: 40px; border: 1.5px dashed var(--accent); border-radius: 10px; background: var(--surface); }
.lp-ill-q.dragging { margin: -34px -6px 0 14px; transform: rotate(-2.5deg); border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; }

.lp-ill-share { display: grid; gap: 12px; }
.lp-ill-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: 12.5px; min-width: 0; }
.lp-ill-link > .i { color: var(--muted); flex: none; }
.lp-ill-link > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-ill-link b { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; flex: none; }
.lp-ill-link b .i { width: 12px; height: 12px; }
.lp-ill-share-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-ill-tile { display: grid; justify-items: center; align-content: center; gap: 8px; padding: 12px 8px; height: 112px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.lp-ill-tile small { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.25; }
.lp-qr { width: 56px; height: 56px; color: var(--text); display: block; }
.lp-ill-code code { font: 10px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-2); text-align: center; word-break: break-all; }
.lp-ill-code i { font-style: normal; color: var(--accent-text); }
.lp-ill-code em { font-style: normal; color: var(--lp-green); }
.lp-ill-popup { width: 60px; height: 46px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; position: relative; }
.lp-ill-popup i:first-child { width: 30px; height: 24px; border-radius: 4px; background: var(--surface); border: 1px solid var(--accent); box-shadow: var(--shadow); }
.lp-ill-popup i:last-child { position: absolute; right: 4px; bottom: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.lp-ill-docs { display: grid; justify-items: center; gap: 14px; }
.lp-ill-page { position: relative; width: 196px; padding: 16px 16px 12px; background: var(--lp-paper); color: var(--lp-ink); border-radius: 4px; font-family: Georgia, serif;
  box-shadow: 6px 6px 0 -1px var(--surface), 6px 6px 0 0 var(--border-strong), 0 6px 16px -6px rgba(16, 24, 40, .25); }
.lp-ill-page > b { display: block; font-size: 13px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1.5px solid var(--lp-ink); }
.lp-ill-page p { margin: 0 0 4px; font-size: 10.5px; color: var(--lp-ink-2); }
.lp-ill-page mark { background: var(--lp-mark); color: var(--lp-mark-ink); padding: 0 3px; border-radius: 2px; font-weight: 600; }
.lp-ill-lines i { display: block; height: 4px; border-radius: 2px; background: var(--lp-rule); margin: 6px 0; }
.lp-ill-lines i:nth-child(2) { width: 88%; }
.lp-ill-lines i:nth-child(3) { width: 64%; }
.lp-ill-sig { margin-top: 10px; border-bottom: 1px solid var(--lp-ink); display: flex; justify-content: space-between; align-items: flex-end; }
.lp-ill-sig span { font-family: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive; font-size: 21px; line-height: 1.1; color: var(--lp-pen); }
.lp-ill-sig small { font-family: var(--font); font-size: 9.5px; color: var(--lp-ink-2); padding-bottom: 2px; }
.lp-ill-badge { position: absolute; top: -10px; right: -18px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: #067647; color: #fff; font-family: var(--font); font-size: 11px; font-weight: 600; box-shadow: var(--shadow); }
.lp-ill-badge .i { width: 13px; height: 13px; }
.lp-ill-drive { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: 11.5px; color: var(--text-2); max-width: 100%; min-width: 0; }
.lp-ill-drive > .i { color: var(--success); flex: none; }
.lp-ill-drive > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-ill-drive i { font-style: normal; color: var(--muted); margin: 0 5px; }

/* ==========================================================================
   Template showcase
   ========================================================================== */
.lp-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.lp-head-row .lp-head { margin: 0; }
.lp-head-row .lp-h2 { margin: 0; }
.lp-head-btn { flex: none; height: 44px; padding: 0 18px; border-radius: 10px; font-size: 14.5px; }
.lp-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.lp-cats a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--border); border-radius: 99px; font-size: 13.5px; font-weight: 500; color: var(--text-2); background: var(--bg); }
.lp-cats a:hover { border-color: var(--text); color: var(--text); text-decoration: none; }
.lp-tpl-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lp-tpl { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--bg); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.lp-tpl:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--lp-shadow, var(--shadow-lg)); transform: translateY(-3px); }
.lp-tpl-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.lp-tpl-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lp-tpl-meta { display: grid; gap: 3px; padding: 14px 16px 16px; }
.lp-tpl-meta b { font-size: 15px; font-weight: 600; }
.lp-tpl-meta small { font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Feature rows
   ========================================================================== */
.lp-row + .lp-row { padding-top: 0; }
.lp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; 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-visual { min-width: 0; }
.lp-stack { position: relative; }
.lp-float { position: absolute; left: -28px; bottom: -24px; display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--lp-shadow, var(--shadow-lg)); }
.lp-float > .i { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: var(--success-soft); color: var(--success); flex: none; box-sizing: border-box; }
.lp-float b { display: block; font-size: 13.5px; }
.lp-float small { display: block; font-size: 12px; color: var(--muted); }

/* ==========================================================================
   Everything else grid
   ========================================================================== */
.lp-bento { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--lp-radius, 18px); overflow: hidden; padding-bottom: 26px; }
.lp-card-art { height: 184px; display: grid; place-items: center; padding: 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); overflow: hidden; }
.lp-card h3 { font-size: 17px; letter-spacing: -.015em; margin: 22px 24px 6px; }
.lp-card p { margin: 0 24px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.lp-mini { width: 100%; max-width: 280px; font-size: 12px; color: var(--text); }
.lp-mini b { font-weight: 600; }
.lp-mini-logic { display: grid; gap: 8px; }
.lp-mini-rule, .lp-mini-calc { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.lp-mini-rule span { color: var(--muted); }
.lp-mini-rule b { padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); }
.lp-mini-rule .i { width: 13px; height: 13px; color: var(--muted); }
.lp-mini-calc { justify-content: space-between; }
.lp-mini-calc code { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.lp-mini-pay { display: flex; align-items: center; justify-content: center; gap: 7px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.lp-mini-oneq { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.lp-mini-progress { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted); margin-bottom: 10px; }
.lp-mini-progress > i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.lp-mini-progress > i > i { display: block; width: 38%; height: 100%; border-radius: 2px; background: var(--accent); }
.lp-mini-oneq > b { font-size: 14px; display: block; line-height: 1.3; }
.lp-mini-input { margin: 10px 0; padding: 7px 10px; border: 1px solid var(--accent); border-radius: 8px; box-shadow: 0 0 0 3px var(--ring); font-size: 12.5px; }
.lp-mini-ok { display: flex; align-items: center; gap: 8px; }
.lp-mini-ok span { padding: 4px 14px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.lp-mini-ok small { color: var(--muted); font-size: 10.5px; }
.lp-mini-code { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--lp-code-bg); color: var(--lp-code-ink); font: 11.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; overflow: hidden; }
.lp-mini-code i { font-style: normal; color: var(--lp-code-key); }
.lp-mini-code em { font-style: normal; color: var(--lp-code-str); }
.lp-mini-steps, .lp-mini-team, .lp-mini-resume { display: grid; gap: 7px; }
.lp-mini-steps > div, .lp-mini-team > div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.lp-mini-steps b, .lp-mini-steps small { display: block; }
.lp-mini-steps small { font-size: 10.5px; color: var(--muted); }
.lp-mini-steps .ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); flex: none; }
.lp-mini-steps .ok .i { width: 12px; height: 12px; }
.lp-mini-steps .wait { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--border-strong); flex: none; box-sizing: border-box; }
.lp-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 10px; font-weight: 700; flex: none; }
.lp-mini-team b { flex: 1; }
.lp-mini-team small { font-size: 10.5px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.lp-mini-banner { display: flex; gap: 8px; padding: 9px 11px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; line-height: 1.4; color: var(--text-2); }
.lp-mini-banner .i { color: var(--accent-text); flex: none; margin-top: 1px; }
.lp-mini-later { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; font-weight: 600; color: var(--text-2); }
.lp-mini-domain { display: grid; justify-items: center; gap: 10px; }
.lp-mini-url { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 9px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; font-size: 13px; color: var(--muted); box-shadow: var(--shadow); }
.lp-mini-url .i { color: var(--success); flex: none; }
.lp-mini-url > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-mini-url b { color: var(--text); }
.lp-mini-domain small { font-size: 11px; color: var(--muted); }
.lp-mini-embed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lp-mini-embed > div { display: grid; justify-items: center; gap: 7px; }
.lp-mini-embed small { font-size: 11px; color: var(--muted); }
.lp-mini-page { position: relative; width: 100%; max-width: 78px; height: 62px; padding: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.lp-mini-page > i { display: block; height: 4px; width: 70%; border-radius: 2px; background: var(--surface-3); margin-bottom: 5px; }
.lp-mini-page > i + i { width: 46%; }
.lp-mini-page em { position: absolute; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 4px; }
.lp-mini-page.inline em { left: 7px; right: 7px; bottom: 7px; height: 26px; }
.lp-mini-page.popup em { left: 18px; right: 18px; top: 14px; bottom: 12px; box-shadow: var(--shadow); }
.lp-mini-page.slider em { top: 0; right: 0; bottom: 0; width: 42%; border-radius: 0; border-width: 0 0 0 1px; }

/* ==========================================================================
   Comparison, plans, FAQ
   ========================================================================== */
.lp-cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--lp-radius, 18px); background: var(--surface); }
.lp-cmp-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-cmp { width: 100%; border-collapse: collapse; min-width: 760px; }
.lp-cmp th, .lp-cmp td { padding: 16px 18px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; color: var(--text-2); font-weight: 400; vertical-align: middle; line-height: 1.45; }
.lp-cmp thead th { background: var(--surface-2); font-size: 14px; color: var(--text); font-weight: 600; }
.lp-cmp thead th a { color: var(--text); }
.lp-cmp tbody th { color: var(--text); font-weight: 500; width: 30%; }
.lp-cmp .us { background: var(--accent-soft); color: var(--text); font-weight: 600; width: 15%; }
.lp-cmp thead .us { color: var(--accent-text); }
.lp-cmp tr:last-child td, .lp-cmp tr:last-child th { border-bottom: 0; }
.lp-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }

.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 0 auto; }
.lp-plan { display: flex; flex-direction: column; padding: 32px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; }
.lp-plan.featured { background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--lp-shadow, var(--shadow-lg)); }
.lp-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lp-plan h3 { font-size: 20px; margin: 0; }
.lp-plan-tag { font-size: 12px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 3px 10px; border-radius: 99px; }
.lp-plan-blurb { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; }
.lp-plan-price { margin: 20px 0 0; display: flex; align-items: baseline; gap: 8px; }
.lp-plan-price b { font-size: 48px; letter-spacing: -.04em; line-height: 1; }
.lp-plan-price span { color: var(--muted); font-size: 15px; }
.lp-plan .lp-list { flex: 1; margin: 24px 0 30px; }
.lp-plan .btn { width: 100%; height: 48px; border-radius: 11px; font-size: 15px; }

.lp-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 72px; align-items: start; }
.lp-faq-side { position: sticky; top: calc(var(--header-h, 60px) + 32px); }
.lp-faq-side .lp-head { margin-bottom: 0; }
.lp-faq-side .lp-lead { font-size: 16px; }
.lp-faq-grid .faq { max-width: none; margin: 0; }

/* ---------- 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: 112px var(--lp-pad, 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 h2 { color: var(--band-ink); font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.04em; line-height: 1.05; margin: 0 auto 16px; max-width: 760px; text-wrap: balance; }
.lp-final p { color: var(--band-ink); opacity: .85; font-size: 18px; margin: 0 auto 34px; 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) 40%, var(--band)); box-shadow: none; }
.lp-final .lp-ghost:hover { background: color-mix(in srgb, var(--band-ink) 10%, var(--band)); color: var(--band-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-final .lp-invert { background: var(--accent); border-color: var(--accent); color: #17121f; } }
:root[data-theme="dark"] .lp-final .lp-invert { background: var(--accent); border-color: var(--accent); color: #17121f; }

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

/* API code block (developers page) */
.lp-code { border-radius: 14px; background: var(--lp-code-bg, #0f1117); border: 1px solid #1f2937; overflow: hidden; min-width: 0; }
.lp-code pre { margin: 0; padding: 18px; overflow-x: auto; color: #e5e7eb; font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Wide feature row: copy on top, a large window below */
.lp-row.wide .lp-split { grid-template-columns: minmax(0, 1fr); gap: 56px; }
.lp-row.wide .lp-copy { text-align: center; max-width: 760px; margin: 0 auto; }
.lp-row.wide .lp-list { grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: center; gap: 12px 32px; text-align: left; }
.lp-row.wide .lp-actions { justify-content: center; }
.lp-row.wide .lp-visual { max-width: 1120px; margin: 0 auto; width: 100%; }

/* ==========================================================================
   Responsive: 1440, 1024, 768 and 390 are the reference widths
   ========================================================================== */
@media (max-width: 1100px) {
  .lp-split { gap: 48px; }
  .lp-tpl-grid { gap: 16px; }
  .lp-step-art { height: 248px; padding: 18px; }
  .lp-float { left: -12px; }
}
@media (max-width: 1023px) {
  .lp-section { padding: 96px var(--lp-pad, 24px); }
  .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-bento > li:last-child { grid-column: 1 / -1; }
  .lp-steps { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin: 0 auto; }
  .lp-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-step-art { height: auto; min-height: 240px; border-bottom: 0; border-right: 1px solid var(--border); }
  .lp-step-text { align-self: center; }
  .lp-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lp-faq-side { position: static; }
}
@media (max-width: 960px) {
  .lp-split, .lp-row.flip .lp-split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .lp-row.flip .lp-copy { order: 0; }
  .lp-copy { max-width: 680px; }
  .lp-demo { grid-template-columns: minmax(0, 1fr); max-width: 600px; padding: 28px; gap: 16px; }
  .lp-demo-arrow { justify-self: center; transform: rotate(90deg); }
  .lp-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-float { left: 16px; bottom: -22px; }
}
@media (max-width: 700px) {
  .lp-steps { max-width: 460px; }
  .lp-step { display: flex; }
  .lp-step-art { border-right: 0; border-bottom: 1px solid var(--border); min-height: 0; height: 240px; }
  .lp-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .lp-bento { grid-template-columns: minmax(0, 1fr); }
  .lp-row.wide .lp-list { grid-template-columns: minmax(0, 1fr); justify-content: start; }
  .lp-row.wide .lp-copy { text-align: left; }
  .lp-row.wide .lp-actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .lp, .lp-section, .lp-final, .lp-hero { --lp-pad: 16px; }
  .lp-section { padding: 72px var(--lp-pad, 24px); }
  .lp-head { margin-bottom: 36px; }
  .lp-lead { font-size: 16.5px; }
  .lp-hero { padding: 48px var(--lp-pad, 24px) 64px; }
  .lp-pill { font-size: 12.5px; margin-bottom: 22px; }
  .lp-hero h1 { font-size: clamp(36px, 10.4vw, 46px); }
  .lp-hero-lead { font-size: 16.5px; margin-bottom: 28px; }
  .lp-cta .btn.big { width: 100%; }
  .lp-trust { flex-direction: column; align-items: center; gap: 6px; }
  .lp-demo { margin: 44px -6px 0; padding: 14px; border-radius: 22px; }
  .lp-demo-form { padding: 18px; }
  .lp-win-doc .lp-win-body { padding: 12px; }
  .lp-doc { padding: 20px 18px 16px; font-size: 13.5px; }
  .lp-doc-head div > span { font-size: 19px; }
  .lp-doc-sigs { gap: 16px; }
  .lp-tpl-grid { gap: 12px; }
  .lp-tpl-meta { padding: 10px 12px 12px; }
  .lp-tpl-meta b { font-size: 14px; }
  .lp-tpl-meta small { font-size: 12px; }
  .lp-cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--lp-pad, 24px)) 24px; padding: 0 var(--lp-pad, 24px) 2px; scrollbar-width: none; }
  .lp-cats::-webkit-scrollbar { display: none; }
  .lp-cats a { flex: none; }
  .lp-step-text { padding: 22px 22px 24px; }
  .lp-card h3 { margin: 20px 20px 6px; }
  .lp-card p { margin: 0 20px; }
  .lp-plan { padding: 24px; }
  .lp-plans { grid-template-columns: minmax(0, 1fr); }
  .lp-float { position: relative; left: auto; bottom: auto; margin: -18px 12px 0; }
  .lp-win-bar { height: 30px; padding: 0 10px; }
  .lp-dots i { width: 8px; height: 8px; }
  .lp-win-title { font-size: 11px; }
  .lp-final { padding: 80px var(--lp-pad, 24px); }
  .lp-final p { font-size: 16.5px; }
  .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 (max-width: 380px) {
  .lp-demo-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-tpl, .lp-more .i, .lp-sticky, .lp-doc-saved { transition: none; }
  .lp-fill.flash, .lp-sig-ink { animation: none; }
}
@media (pointer: coarse) { .lp-more { min-height: 44px; } }

/* ==========================================================================
   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; }
.cmp-note a { text-decoration: underline; text-underline-offset: 2px; }
.lp-code.legacy, pre.code.lp-code { margin: 0; font-size: 12.5px; }


/* ---------- 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; } }

@media (max-width: 600px) { .price-card { padding: 24px; } }
