/* Mobile apps — landing pages, App Studio and docs. Loaded after wapenda.css (shared layout); brand and app-specific parts live here. */
:root { --wa: #6D28D9; --wa-600: #5B21B6; --wa-50: #F1EBFE; --wa-ink: #2E1065; }
[data-theme="dark"] { --wa: #A78BFA; --wa-600: #8B5CF6; --wa-50: rgba(167,139,250,.16); --wa-ink: #E9DDFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wa: #A78BFA; --wa-600: #8B5CF6; --wa-50: rgba(167,139,250,.16); --wa-ink: #E9DDFF; } }
[data-theme="dark"] .mb .wa-btn, .mb-dark-btn { color: #1A0B3B; }

.mb .wa-hero { background: radial-gradient(1000px 460px at 85% -10%, rgba(167,139,250,.35), transparent 60%), linear-gradient(135deg, #120A2E 0%, #2E1065 50%, #1E1B4B 100%); }
.mb .wa-dot { background: #C4B5FD; box-shadow: 0 0 0 4px rgba(196,181,253,.28); }
.mb .wa-ticks li::before { color: #C4B5FD; }
.mb .wa-final { background: linear-gradient(135deg, #2E1065, #1E1B4B); }
.mb .wa-plans { grid-template-columns: repeat(4, 1fr); }
.mb .wa-plans.mb-nplans { grid-template-columns: repeat(3, 1fr); }
.mb .wa-plan { position: relative; }
.mb-pop { position: absolute; top: 14px; right: 14px; }

/* hero phone */
.mb-phone { justify-self: center; width: 280px; border-radius: 38px; padding: 11px; background: #0B0820; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.mb-phone-in { border-radius: 28px; overflow: hidden; background: #fff; color: #111827; display: flex; flex-direction: column; height: 500px; font-size: .82rem; }
.mb-sb { display: flex; justify-content: space-between; padding: 8px 16px 6px; background: #6D28D9; color: #fff; font-size: .7rem; font-weight: 600; }
.mb-ab { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #6D28D9; color: #fff; }
.mb-ab b { flex: 1; font-size: .95rem; }
.mb-ab .tx-ico { width: 20px; height: 20px; }
.mb-page { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #F7F5FF; position: relative; }
.mb-banner { border-radius: 14px; padding: 16px; color: #fff; background: linear-gradient(135deg, #7C3AED, #DB2777); display: grid; gap: 2px; }
.mb-banner small { opacity: .85; } .mb-banner b { font-size: 1.15rem; }
.mb-banner span { justify-self: start; margin-top: 8px; background: #fff; color: #6D28D9; font-weight: 700; padding: 4px 10px; border-radius: 999px; font-size: .74rem; }
.mb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mb-grid i { display: block; height: 92px; border-radius: 12px; background: linear-gradient(180deg, #EDE9FE, #DDD6FE); }
.mb-grid i:nth-child(2) { background: linear-gradient(180deg, #FCE7F3, #FBCFE8); } .mb-grid i:nth-child(3) { background: linear-gradient(180deg, #E0F2FE, #BAE6FD); }
.mb-toast { position: absolute; left: 10px; right: 10px; top: 8px; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.97); border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); animation: mbdrop 6s ease-in-out infinite; }
.mb-toast .tx-ico { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: #6D28D9; color: #fff; flex: none; }
.mb-toast b { display: block; font-size: .8rem; } .mb-toast small { color: #6B7280; }
@keyframes mbdrop { 0%, 12% { transform: translateY(-120%); opacity: 0; } 20%, 70% { transform: none; opacity: 1; } 80%, 100% { transform: translateY(-120%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mb-toast { animation: none; } }
.mb-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #E5E7EB; background: #fff; padding: 6px 0 10px; }
.mb-tabs span { display: grid; justify-items: center; gap: 2px; font-size: .66rem; color: #6B7280; }
.mb-tabs span.on { color: #6D28D9; font-weight: 700; }
.mb-tabs .tx-ico { width: 20px; height: 20px; }

/* three ways */
.mb-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mb-way { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 18px; border: 1px solid var(--tx-line); background: var(--tx-surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.mb-way:hover { border-color: var(--wa); box-shadow: var(--tx-sh-lg); transform: translateY(-2px); }
.mb-way .tx-ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--wa-50); color: var(--wa); }
.mb-way h3 { margin: 4px 0 0; } .mb-way p { margin: 0; color: var(--tx-muted); font-size: .93rem; }
.mb-way span { color: var(--wa); font-weight: 700; font-size: .88rem; margin-top: 4px; }

.mb-logos { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; }
.mb-logos li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--tx-line); background: var(--tx-surface); font-weight: 600; font-size: .9rem; }
.mb-steps ol { grid-template-columns: repeat(4, 1fr); }

.mb-fgroups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mb-fg { padding: 20px 22px; border-radius: 18px; border: 1px solid var(--tx-line); background: var(--tx-surface); }
.mb-fg h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.05rem; }
.mb-fg h3 .tx-ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--wa-50); color: var(--wa); }
.mb-fg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mb-fg li { font-size: .9rem; color: var(--tx-muted); padding-left: 16px; position: relative; line-height: 1.45; }
.mb-fg li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--wa); }
.mb-fg li b { color: var(--tx-text); }
.mb-integr { margin-top: 16px; padding: 20px 22px; border-radius: 18px; background: var(--wa-50); }
.mb-integr h3 { margin: 0 0 6px; } .mb-integr p { margin: 0; font-size: .92rem; line-height: 1.6; }

.mb-enterprise { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 16px; border: 1px dashed var(--wa); background: var(--tx-surface); }
.mb-enterprise h3 { margin: 0 0 4px; } .mb-enterprise p { margin: 0; }
.mb-svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mb-svc { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--tx-line); background: var(--tx-surface); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.mb-svc span { color: var(--wa); font-weight: 800; }
.mb-svc p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--tx-muted); font-size: .9rem; }

.mb-native { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.mb-native h2 { margin: 10px 0 8px; }
.mb-ticks li { color: var(--tx-text); }
.mb-ticks li::before { color: var(--wa) !important; }
.mb-nprices { display: grid; gap: 10px; }
.mb-nprices div { display: grid; grid-template-columns: 1fr auto; padding: 16px 18px; border-radius: 14px; background: var(--tx-surface); border: 1px solid var(--tx-line); }
.mb-nprices div.pop { border: 2px solid var(--wa); }
.mb-nprices span { font-weight: 800; color: var(--wa); }
.mb-nprices small { grid-column: 1 / -1; color: var(--tx-muted); }

/* native page */
.mb-kinds { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mb-kinds span { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--tx-line); background: var(--tx-surface); font-weight: 600; font-size: .92rem; }
.mb-kinds .tx-ico { width: 18px; height: 18px; color: var(--wa); }
.mb-compare { width: 100%; border-collapse: collapse; background: var(--tx-surface); border: 1px solid var(--tx-line); border-radius: 16px; overflow: hidden; font-size: .93rem; }
.mb-compare th, .mb-compare td { padding: 12px 16px; border-bottom: 1px solid var(--tx-line); text-align: left; vertical-align: top; }
.mb-compare thead th { background: var(--wa-50); color: var(--wa-ink); }
.mb-compare tr:last-child td { border-bottom: 0; }

/* docs */
.mb-docs { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.mb-toc { position: sticky; top: 84px; display: grid; gap: 2px; font-size: .9rem; }
.mb-toc a { padding: 6px 10px; border-radius: 8px; color: var(--tx-muted); text-decoration: none; }
.mb-toc a:hover { background: var(--wa-50); color: var(--wa); }
.mb-doc h2 { margin-top: 36px; padding-top: 8px; border-top: 1px solid var(--tx-line); }
.mb-doc h2:first-child { margin-top: 0; border-top: 0; }
.mb-doc pre { background: #0F0B24; color: #E9E3FF; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: .84rem; line-height: 1.55; }
.mb-doc table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 10px 0 18px; }
.mb-doc th, .mb-doc td { border-bottom: 1px solid var(--tx-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.mb-doc td code { white-space: nowrap; }

/* App Studio */
.mb-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mb-appc { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid var(--tx-line); background: var(--tx-surface); color: inherit; text-decoration: none; }
.mb-appc:hover { border-color: var(--wa); }
.mb-appc img, .mb-appc .mb-ph { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--wa-50); display: grid; place-items: center; color: var(--wa); font-weight: 800; font-size: 1.3rem; }
.mb-appc b { display: block; } .mb-appc small { color: var(--tx-muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-appc .mb-row { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; font-size: .78rem; }
.mb-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.mb-side { position: sticky; top: 80px; display: grid; gap: 10px; justify-items: center; }
.mb-sec { border: 1px solid var(--tx-line); border-radius: 16px; background: var(--tx-surface); margin-bottom: 14px; }
.mb-sec > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; gap: 10px; align-items: center; font-weight: 700; }
.mb-sec > summary::-webkit-details-marker { display: none; }
.mb-sec > summary .tx-ico { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--wa-50); color: var(--wa); }
.mb-sec > summary small { margin-left: auto; color: var(--tx-muted); font-weight: 500; }
.mb-sec > summary::after { content: "▾"; color: var(--tx-muted); margin-left: 6px; }
.mb-sec[open] > summary::after { content: "▴"; }
.mb-sec-b { padding: 4px 18px 18px; display: grid; gap: 12px; }
.mb-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mb-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mb-color { display: flex; gap: 8px; align-items: center; }
.mb-color input[type=color] { width: 44px; height: 40px; padding: 2px; border-radius: 10px; border: 1px solid var(--tx-line); background: var(--tx-surface); cursor: pointer; flex: none; }
.mb-color input[type=text] { font-family: ui-monospace, Menlo, Consolas, monospace; }
.mb-items { display: grid; gap: 8px; }
.mb-item { display: grid; grid-template-columns: 44px 1fr 1.6fr auto; gap: 6px; align-items: center; }
.mb-item .mb-ibtn { width: 44px; height: 40px; border-radius: 10px; border: 1px solid var(--tx-line); background: var(--tx-surface); display: grid; place-items: center; cursor: pointer; color: var(--tx-text); }
.mb-item .mb-ibtn img { width: 22px; height: 22px; }
[data-theme="dark"] .mb-item .mb-ibtn img, [data-theme="dark"] .mb-iconpick img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mb-item .mb-ibtn img, :root:not([data-theme="light"]) .mb-iconpick img { filter: invert(1); } }
.mb-iconpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; max-height: 360px; overflow-y: auto; }
.mb-iconpick button { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--tx-line); background: var(--tx-surface); cursor: pointer; font-size: .64rem; color: var(--tx-muted); overflow: hidden; }
.mb-iconpick button:hover { border-color: var(--wa); }
.mb-iconpick img { width: 24px; height: 24px; }
.mb-feat { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--tx-line); }
.mb-feat b { font-size: .94rem; } .mb-feat p { margin: 0; color: var(--tx-muted); font-size: .84rem; grid-column: 1; }
.mb-feat .mb-lock { font-size: .72rem; font-weight: 700; color: var(--wa); background: var(--wa-50); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.mb-feat .tx-switch { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.mb-feat-x { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 8px; }
.mb-upl { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.mb-upl .mb-thumb { width: 72px; height: 72px; border-radius: 16px; border: 1px dashed var(--tx-line); display: grid; place-items: center; overflow: hidden; background: repeating-conic-gradient(#f1f1f4 0 25%, #fff 0 50%) 50% / 14px 14px; color: var(--tx-muted); }
.mb-upl .mb-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mb-upl .mb-thumb.round { border-radius: 50%; }

/* live preview phone */
.mb-prev { width: 320px; border-radius: 40px; padding: 10px; background: #0B0820; box-shadow: 0 24px 50px -20px rgba(0,0,0,.5); }
.mb-prev-in { border-radius: 31px; overflow: hidden; background: #fff; height: 620px; display: flex; flex-direction: column; position: relative; }
.mb-prev-sb { height: 26px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; font: 600 11px/1 Inter, sans-serif; }
.mb-prev-ab { height: 46px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px; font: 700 15px/1 Inter, sans-serif; box-shadow: 0 1px 3px rgba(0,0,0,.18); z-index: 1; }
.mb-prev-ab .tx-ico { width: 20px; height: 20px; }
.mb-prev-ab .mb-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-prev-web { flex: 1; position: relative; overflow: hidden; background: #f6f6f8; }
.mb-prev-web iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.mb-prev-tabs { flex: none; display: flex; height: 54px; border-top: 1px solid rgba(0,0,0,.08); }
.mb-prev-tabs div { flex: 1; display: grid; place-content: center; justify-items: center; gap: 3px; font: 500 10px/1 Inter, sans-serif; cursor: pointer; }
.mb-prev-tabs img { width: 22px; height: 22px; }
.mb-prev-fab { position: absolute; right: 16px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0,0,0,.25); z-index: 2; }
.mb-prev-fab img { width: 22px; height: 22px; }
.mb-prev-splash { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; transition: opacity .3s; }
.mb-prev-splash img { max-width: 46%; max-height: 30%; object-fit: contain; }
.mb-prev-splash.full img { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; }
.mb-prev-splash small { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font: 500 11px Inter, sans-serif; opacity: .7; }
.mb-prev-drawer { position: absolute; inset: 0; z-index: 4; display: none; }
.mb-prev-drawer.on { display: flex; }
.mb-prev-drawer > div { width: 78%; background: #fff; display: flex; flex-direction: column; }
.mb-prev-drawer > i { flex: 1; background: rgba(0,0,0,.4); }
.mb-prev-dh { padding: 30px 16px 14px; color: #fff; font: 700 15px Inter, sans-serif; }
.mb-prev-drawer a { display: flex; gap: 14px; align-items: center; padding: 11px 16px; font: 500 13px Inter, sans-serif; color: #111827; text-decoration: none; }
.mb-prev-drawer a img { width: 20px; height: 20px; }
.mb-prev-note { font-size: .78rem; color: var(--tx-muted); max-width: 320px; text-align: center; }
.mb-iconprev { display: flex; gap: 14px; align-items: center; }
.mb-iconprev div { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.mb-iconprev img { object-fit: contain; }

.mb-build { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--tx-line); }
.mb-build:last-child { border-bottom: 0; }
.mb-build > .tx-ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--wa-50); color: var(--wa); }
.mb-build small { color: var(--tx-muted); }
.mb-st { font-size: .76rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.mb-st--success { background: rgba(22,163,74,.12); color: #16A34A; }
.mb-st--queued, .mb-st--building, .mb-st--waiting_team { background: rgba(217,119,6,.12); color: #B45309; }
.mb-st--failed { background: rgba(220,38,38,.1); color: #DC2626; }
.mb-st--cancelled { background: rgba(100,116,139,.14); color: #64748B; }
.mb-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mbspin .8s linear infinite; vertical-align: -2px; }
@keyframes mbspin { to { transform: rotate(360deg); } }
.mb-qr { width: 200px; height: 200px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 8px; display: grid; place-items: center; }
.mb-qr img, .mb-qr svg { width: 184px; height: 184px; }
.mb-log { background: #0F0B24; color: #D8D2F0; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; padding: 12px; border-radius: 10px; max-height: 420px; overflow: auto; white-space: pre-wrap; }
.mb-msgs { display: grid; gap: 10px; max-height: 480px; overflow-y: auto; padding: 4px; }
.mb-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; background: var(--tx-surface-2, rgba(0,0,0,.04)); border: 1px solid var(--tx-line); white-space: pre-wrap; font-size: .92rem; }
.mb-msg.staff { justify-self: start; background: var(--wa-50); border-color: transparent; }
.mb-msg.me { justify-self: end; }
.mb-msg small { display: block; color: var(--tx-muted); font-size: .74rem; margin-top: 4px; }
.mb-progress { height: 10px; border-radius: 999px; background: var(--wa-50); overflow: hidden; }
.mb-progress i { display: block; height: 100%; background: var(--wa); border-radius: inherit; }
.mb-steps-h { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-steps-h span { font-size: .78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--tx-line); color: var(--tx-muted); }
.mb-steps-h span.on { background: var(--wa); color: #fff; border-color: var(--wa); }
.mb-steps-h span.done { background: var(--wa-50); color: var(--wa); border-color: transparent; }

@media (max-width: 1100px) {
  .mb .wa-plans { grid-template-columns: repeat(2, 1fr); }
  .mb-fgroups, .mb-svcs { grid-template-columns: repeat(2, 1fr); }
  .mb-editor { grid-template-columns: 1fr; }
  .mb-side { position: static; }
}
@media (max-width: 900px) {
  .mb-ways, .mb-native, .mb-docs { grid-template-columns: 1fr; }
  .mb-steps ol { grid-template-columns: 1fr 1fr; }
  .mb .wa-plans.mb-nplans { grid-template-columns: 1fr; }
  .mb-toc { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .mb .wa-plans, .mb-fgroups, .mb-svcs, .mb-2, .mb-3, .mb-steps ol { grid-template-columns: 1fr; }
  .mb-phone { width: 250px; } .mb-phone-in { height: 450px; }
  .mb-enterprise { flex-direction: column; align-items: flex-start; }
  .mb-item { grid-template-columns: 40px 1fr auto; } .mb-item input[name$="url"] { grid-column: 1 / -1; }
  .mb-prev { width: 290px; } .mb-prev-in { height: 560px; }
  .mb-build { grid-template-columns: auto 1fr; } .mb-build > :last-child { grid-column: 1 / -1; }
}

/* ── Pricing (px-*): three products, swipeable cards on phones ── */
.px-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 980px; margin: 0 auto 26px; }
.px-tab { display: grid; gap: 4px; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--tx-line); background: var(--tx-surface); color: var(--tx-text); cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s, background .15s; }
.px-tab b { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.px-tab span { color: var(--tx-muted); font-size: .84rem; }
.px-tab em { font-style: normal; font-weight: 800; color: var(--wa); font-size: .86rem; }
.px-tab:hover { border-color: var(--wa); }
.px-tab[aria-selected="true"] { border: 2px solid var(--wa); padding: 15px 17px; background: var(--wa-50); box-shadow: 0 10px 30px -18px var(--wa); }
.px-head { text-align: center; max-width: 720px; margin: 0 auto 22px; }
.px-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 6px; letter-spacing: -.01em; }
.px-head p { margin: 0; color: var(--tx-muted); }
.px-cycle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--tx-surface-2, rgba(0,0,0,.05)); border: 1px solid var(--tx-line); margin-top: 14px; }
.px-cycle button { border: 0; background: none; font: inherit; font-weight: 600; font-size: .9rem; padding: 7px 16px; border-radius: 999px; cursor: pointer; color: var(--tx-muted); display: inline-flex; gap: 6px; align-items: center; }
.px-cycle button[aria-pressed="true"] { background: var(--tx-surface); color: var(--tx-text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.px-cycle small { background: #DCFCE7; color: #166534; font-weight: 700; padding: 1px 7px; border-radius: 999px; font-size: .7rem; }
.px-grid { display: grid; gap: 18px; align-items: stretch; }
.px-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; margin: 0 auto; }
.px-card { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 22px; background: var(--tx-surface); border: 1px solid var(--tx-line); box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: transform .18s, box-shadow .18s; }
.px-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(46,16,101,.45); }
.px-card--pop { border: 2px solid var(--wa); background: linear-gradient(180deg, var(--wa-50), var(--tx-surface) 38%); box-shadow: 0 24px 50px -28px var(--wa); }
.px-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--wa); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; box-shadow: 0 6px 14px -6px var(--wa); }
.px-card header h3 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.px-card header p { margin: 4px 0 0; color: var(--tx-muted); font-size: .9rem; min-height: 2.6em; }
.px-price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 2px; flex-wrap: wrap; }
.px-price b { font-size: 2.5rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.px-price b small { font-size: 1.15rem; font-weight: 700; letter-spacing: 0; color: var(--tx-muted); }
.px-price span { color: var(--tx-muted); font-weight: 600; font-size: .9rem; }
.px-note { margin: 0 0 18px; font-size: .82rem; color: var(--tx-muted); min-height: 1.2em; }
.px-btn { display: flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid var(--tx-line); color: var(--tx-text); background: var(--tx-surface); transition: background .15s, border-color .15s; }
.px-btn:hover { border-color: var(--wa); color: var(--wa); }
.px-btn--pop { background: var(--wa); border-color: var(--wa); color: #fff; }
.px-btn--pop:hover { background: var(--wa-600); border-color: var(--wa-600); color: #fff; }
[data-theme="dark"] .px-btn--pop { color: #1A0B3B; }
.px-list { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--tx-line); display: grid; gap: 10px; font-size: .9rem; }
.px-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.px-ck { width: 18px; height: 18px; color: var(--wa); margin-top: 1px; }
.px-x { width: 18px; height: 18px; color: #94A3B8; }
.px-own { max-width: 1080px; margin: 22px auto 0; display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--tx-line); background: var(--tx-surface); }
.px-own-l { display: flex; gap: 16px; padding: 24px; background: linear-gradient(135deg, #2E1065, #4C1D95); color: #fff; }
.px-own-l h3 { margin: 0 0 6px; color: #fff; }
.px-own-l p { margin: 0 0 6px; opacity: .92; font-size: .94rem; line-height: 1.55; }
.px-own-l a { color: #fff; font-weight: 700; }
.px-own-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; }
.px-trial { font-size: .84rem !important; opacity: .8 !important; }
.px-own-r { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 24px; }
.px-own-r h4 { margin: 0 0 8px; display: flex; gap: 6px; align-items: center; font-size: .92rem; }
.px-own-r ul { margin: 0; padding-left: 18px; color: var(--tx-muted); font-size: .86rem; display: grid; gap: 6px; line-height: 1.45; }
.px-dfy { max-width: 1080px; margin: 22px auto 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: center; padding: 24px; border-radius: 22px; border: 1px dashed var(--wa); background: var(--tx-surface); }
.px-dfy h3 { margin: 8px 0 6px; } .px-dfy p { margin: 0; color: var(--tx-muted); font-size: .92rem; line-height: 1.55; }
.px-pill { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--wa); background: var(--wa-50); padding: 3px 10px; border-radius: 999px; }
.px-dfy-p { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px 12px; align-items: center; text-align: center; }
.px-dfy-p > div { padding: 12px; border-radius: 14px; background: var(--wa-50); }
.px-dfy-p b { display: block; font-size: 1.6rem; font-weight: 800; }
.px-dfy-p span { font-size: .8rem; color: var(--tx-muted); }
.px-dfy-p i { font-style: normal; font-weight: 800; color: var(--tx-muted); }
.px-dfy-p .px-btn { grid-column: 1 / -1; }
.px-dfy-p small { grid-column: 1 / -1; color: var(--tx-muted); font-size: .78rem; }
.px-rets { max-width: 1080px; margin: 22px auto 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: stretch; }
.px-rets-h { padding: 8px 4px; align-self: center; }
.px-rets-h h3 { margin: 0 0 6px; } .px-rets-h p { margin: 0; color: var(--tx-muted); font-size: .92rem; }
.px-ret { padding: 22px; border-radius: 20px; border: 1px solid var(--tx-line); background: var(--tx-surface); }
.px-ret h4 { margin: 0; font-size: 1rem; }
.px-ret-p { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; } .px-ret-p b { font-size: 1.8rem; font-weight: 800; } .px-ret-p span { color: var(--tx-muted); font-weight: 600; }
.px-ret .px-list { margin-top: 12px; padding-top: 12px; }
.px-cmp-wrap { max-width: 1080px; margin: 0 auto; overflow-x: auto; border-radius: 20px; border: 1px solid var(--tx-line); background: var(--tx-surface); }
.px-cmp { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .92rem; }
.px-cmp th, .px-cmp td { padding: 13px 16px; border-bottom: 1px solid var(--tx-line); text-align: center; vertical-align: middle; }
.px-cmp tbody th { text-align: left; font-weight: 600; color: var(--tx-text); width: 28%; }
.px-cmp thead th { padding: 18px 16px; }
.px-cmp thead th span { display: block; font-size: 1rem; font-weight: 800; }
.px-cmp thead th small { color: var(--tx-muted); font-weight: 600; }
.px-cmp .pop { background: var(--wa-50); }
.px-cmp tr:last-child th, .px-cmp tr:last-child td { border-bottom: 0; }
.px-cmp .px-ck { display: inline-block; vertical-align: middle; }
.px-dash { color: #94A3B8; }
.mb-code { margin: 0; background: #0F0B24; color: #E9E3FF; padding: 18px 20px; border-radius: 16px; overflow-x: auto; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.mb-code .c { color: #8B85A8; }

/* product overview cards */
.mb-prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mb-prod { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 22px; border: 1px solid var(--tx-line); background: var(--tx-surface); color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.mb-prod:hover { transform: translateY(-3px); border-color: var(--wa); box-shadow: 0 18px 40px -24px rgba(46,16,101,.45); }
.mb-prod .mb-prod-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--wa-50); color: var(--wa); }
.mb-prod .mb-prod-ico .tx-ico { width: 26px; height: 26px; }
.mb-prod h3 { margin: 4px 0 0; font-size: 1.2rem; }
.mb-prod p { margin: 0; color: var(--tx-muted); font-size: .93rem; line-height: 1.55; flex: 1; }
.mb-prod .mb-prod-price { display: flex; align-items: baseline; gap: 6px; padding-top: 12px; border-top: 1px solid var(--tx-line); }
.mb-prod .mb-prod-price b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.mb-prod .mb-prod-price span { color: var(--tx-muted); font-size: .86rem; font-weight: 600; }
.mb-prod .mb-prod-go { font-weight: 700; color: var(--wa); font-size: .9rem; }
.mb-prod--pop { border: 2px solid var(--wa); }

/* architecture strip (native builder) */
.mb-arch { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1080px; margin: 0 auto; }
.mb-arch > div { position: relative; padding: 22px 20px; border: 1px solid var(--tx-line); background: var(--tx-surface); }
.mb-arch > div:first-child { border-radius: 20px 0 0 20px; } .mb-arch > div:last-child { border-radius: 0 20px 20px 0; }
.mb-arch > div + div { border-left: 0; }
.mb-arch > div:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; font-size: .8rem; z-index: 1; }
.mb-arch b { display: block; margin-bottom: 4px; } .mb-arch span { color: var(--tx-muted); font-size: .88rem; line-height: 1.45; display: block; }
.mb-arch small { display: inline-block; margin-bottom: 8px; font-weight: 800; color: var(--wa); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }

/* quote form */
.mb-quote { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; border-radius: 24px; overflow: hidden; border: 1px solid var(--tx-line); background: var(--tx-surface); box-shadow: 0 30px 60px -40px rgba(46,16,101,.5); }
.mb-quote-l { padding: 32px; background: linear-gradient(160deg, #2E1065, #1E1B4B); color: #fff; display: flex; flex-direction: column; gap: 14px; }
.mb-quote-l h2 { color: #fff; margin: 0; font-size: 1.6rem; letter-spacing: -.01em; }
.mb-quote-l p { margin: 0; opacity: .88; line-height: 1.6; }
.mb-quote-l ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.mb-quote-l li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: .92rem; opacity: .95; }
.mb-quote-l li b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: .8rem; }
.mb-quote form { padding: 30px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.mb-quote form .full { grid-column: 1 / -1; }
.mb-quote .tx-field { margin: 0; }
.mb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mb-quote-done { grid-column: 1 / -1; text-align: center; padding: 30px 10px; }
.mb-quote-done .px-ck { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: #DCFCE7; color: #16A34A; }

@media (max-width: 960px) {
  .px-tabs { grid-template-columns: 1fr; max-width: 520px; }
  .px-tab { padding: 12px 16px; } .px-tab[aria-selected="true"] { padding: 11px 15px; }
  .px-own, .px-dfy, .mb-quote { grid-template-columns: 1fr; }
  .px-rets { grid-template-columns: 1fr 1fr; } .px-rets-h { grid-column: 1 / -1; }
  .mb-prods { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .mb-arch { grid-template-columns: 1fr 1fr; gap: 12px; } .mb-arch > div { border-radius: 18px !important; border-left: 1px solid var(--tx-line) !important; } .mb-arch > div::after { display: none; }
}
/* phones: cards become a swipeable row that snaps, with the next card peeking */
@media (max-width: 760px) {
  .px-grid--3 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 16px 10px; margin: 0 calc(50% - 50vw); /* full-bleed to the screen edges, never wider */ scrollbar-width: none; overscroll-behavior-x: contain; }
  .px-grid--3::-webkit-scrollbar { display: none; }
  .px-grid--3 > .px-card { scroll-snap-align: center; }
  .px-card:hover { transform: none; }
  .px-own-r { grid-template-columns: 1fr; }
  .px-rets { grid-template-columns: 1fr; }
  .px-dfy-p { grid-template-columns: 1fr; } .px-dfy-p i { display: none; }
  .mb-quote form { grid-template-columns: 1fr; padding: 22px 18px; } .mb-quote-l { padding: 24px 20px; }
  .mb-arch { grid-template-columns: 1fr; }
}
.px-swipe { display: none; text-align: center; color: var(--tx-muted); font-size: .8rem; margin-top: 4px; }
@media (max-width: 760px) { .px-swipe { display: block; } }

/* ── App Studio workspace (an app open in the studio) ── */
.ide-on .wp-shell { grid-template-columns: 1fr; max-width: none; padding-top: 12px; padding-bottom: 16px; }
.ide-on #nav { display: none; }
.ide { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100vh - 104px); min-height: 640px; border: 1px solid var(--tx-line); border-radius: 14px; background: var(--tx-surface); overflow: hidden; box-shadow: 0 18px 40px -30px rgba(17, 12, 46, .45); }
.ide-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--tx-line); }
.ide-back { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; border: 1px solid var(--tx-line); color: inherit; }
.ide-back:hover { border-color: var(--wa); color: var(--wa); }
.ide-back .tx-ico { transform: rotate(180deg); }
.ide-ic { width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 800; overflow: hidden; }
.ide-ic img { width: 100%; height: 100%; object-fit: cover; }
.ide-id { min-width: 0; display: grid; line-height: 1.25; }
.ide-id b { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ide-id small { color: var(--tx-muted); font-size: .76rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ide-plan { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--wa-50); color: var(--wa); white-space: nowrap; }
.ide-sp { flex: 1; }
.ide-dirty { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--tx-muted); white-space: nowrap; }
.ide-dirty::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16A34A; }
.ide-dirty.is-dirty::before { background: #F59E0B; }
.ide-dirty.is-warn::before { background: #DC2626; }
.ide-body { display: grid; grid-template-columns: 224px minmax(0, 1fr) 356px; min-height: 0; }
.ide--wide .ide-body { grid-template-columns: 224px minmax(0, 1fr); }
.ide--wide .ide-prev { display: none; }
.ide-nav { display: flex; flex-direction: column; gap: 1px; padding: 8px; border-right: 1px solid var(--tx-line); overflow: auto; background: color-mix(in srgb, var(--tx-surface) 94%, var(--wa)); }
.ide-nav h6 { margin: 12px 10px 5px; font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; color: var(--tx-muted); font-weight: 700; }
.ide-nav h6:first-child { margin-top: 4px; }
.ide-nav a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-size: .86rem; font-weight: 500; }
.ide-nav a:hover { background: var(--wa-50); }
.ide-nav a[aria-current="page"] { background: var(--wa-50); color: var(--wa); font-weight: 650; box-shadow: inset 3px 0 0 var(--wa); }
.ide-nav .tx-ico { width: 16px; height: 16px; flex: none; opacity: .85; }
.ide-nav a.is-run::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #2563EB; animation: ide-pulse 1.4s infinite; }
@keyframes ide-pulse { 50% { opacity: .3; } }
.ide-main { overflow: auto; padding: 22px 28px 48px; min-width: 0; }
.ide-pane, .ide-problems { max-width: 880px; }
.ide-ph { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--tx-line); }
.ide-ph h2 { margin: 0; font-size: 1.12rem; letter-spacing: -.01em; }
.ide-ph p { margin: 3px 0 0; color: var(--tx-muted); font-size: .88rem; }
.ide-ph-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--wa-50); color: var(--wa); }
.ide-pane > .mb-sec-b { padding: 0; display: grid; gap: 14px; }
.ide-problems { margin-bottom: 16px; }
.ide-prev { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-left: 1px solid var(--tx-line); overflow: auto; background: color-mix(in srgb, var(--tx-surface) 92%, var(--tx-line)); }
.ide-ptool { display: flex; align-items: center; gap: 6px; }
.ide-seg { display: inline-flex; border: 1px solid var(--tx-line); border-radius: 8px; overflow: hidden; background: var(--tx-surface); }
.ide-seg button { border: 0; background: transparent; padding: 5px 10px; font: inherit; font-size: .78rem; cursor: pointer; color: inherit; }
.ide-seg button[aria-pressed="true"] { background: var(--wa); color: #fff; }
.ide-tbtn { border: 1px solid var(--tx-line); background: var(--tx-surface); border-radius: 8px; padding: 5px 9px; font: inherit; font-size: .78rem; cursor: pointer; color: inherit; }
.ide-tbtn:hover { border-color: var(--wa); color: var(--wa); }
.ide-prev .mb-prev { margin: 0 auto; transition: border-radius .2s; }
.ide-prev .mb-prev-note { text-align: center; }
.mb-prev--ios { border-radius: 48px; }
.mb-prev--ios .mb-prev-in { border-radius: 38px; }
.ide-status { display: flex; gap: 18px; align-items: center; padding: 6px 14px; border-top: 1px solid var(--tx-line); font-size: .76rem; color: var(--tx-muted); overflow-x: auto; white-space: nowrap; background: color-mix(in srgb, var(--tx-surface) 94%, var(--wa)); }
.ide-status b { color: var(--tx-text, inherit); font-weight: 600; }
.ide-status a { color: var(--wa); }
.ide-status .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: #9CA3AF; vertical-align: 1px; }
.ide-status .dot.ok { background: #16A34A; } .ide-status .dot.run { background: #2563EB; } .ide-status .dot.bad { background: #DC2626; }
.ide-steps { border: 1px solid var(--tx-line); border-radius: 12px; padding: 14px 16px; }
.ide-steps h4 { margin: 0 0 6px; }
.ide-steps ol { margin: 0 0 10px; padding-left: 18px; font-size: .88rem; line-height: 1.6; }
.ide-sub { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; border: 1px solid var(--tx-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .9rem; background: var(--wa-50); }
.ide-bad { color: #DC2626; }
.ide-pay { display: grid; gap: 10px; }
.ide-payopt { display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 1px solid var(--tx-line); border-radius: 12px; padding: 14px; background: var(--tx-surface); cursor: pointer; font: inherit; color: inherit; }
.ide-payopt:hover:not(:disabled) { border-color: var(--wa); box-shadow: 0 0 0 3px var(--wa-50); }
.ide-payopt:disabled { opacity: .55; cursor: not-allowed; }
.ide-payopt b { display: block; margin-bottom: 2px; }
.ide-payopt span { color: var(--tx-muted); font-size: .86rem; }
.ide-payopt > .tx-ico { width: 22px; height: 22px; color: var(--wa); flex: none; margin-top: 2px; }
@media (max-width: 1240px) { .ide-body { grid-template-columns: 200px minmax(0, 1fr) 324px; } .ide--wide .ide-body { grid-template-columns: 200px minmax(0, 1fr); } .ide-prev .mb-prev { width: 296px; } .ide-prev .mb-prev-in { height: 580px; } }
@media (max-width: 1000px) {
  .ide { height: auto; min-height: 0; overflow: visible; }
  .ide-body, .ide--wide .ide-body { grid-template-columns: 1fr; }
  .ide-nav { flex-direction: row; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--tx-line); padding: 8px; position: sticky; top: 64px; z-index: 4; background: var(--tx-surface); }
  .ide-nav h6 { display: none; }
  .ide-nav a { white-space: nowrap; flex: none; }
  .ide-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--wa); }
  .ide-main { padding: 18px 16px 28px; overflow: visible; }
  .ide-prev { border-left: 0; border-top: 1px solid var(--tx-line); }
}
@media (max-width: 620px) { .ide-top { flex-wrap: wrap; } .ide-plan { display: none; } .ide-dirty { order: 6; width: 100%; } .ide-status { gap: 12px; } }

/* project list (My apps) */
.mb-projects { display: grid; gap: 10px; }
.mb-proj { display: grid; grid-template-columns: 48px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--tx-line); border-radius: 14px; background: var(--tx-surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.mb-proj:hover { border-color: var(--wa); box-shadow: 0 10px 24px -18px rgba(76, 29, 149, .55); }
.mb-proj[hidden] { display: none; }
.mb-proj > img, .mb-proj .mb-ph { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.mb-proj-id { display: grid; min-width: 0; line-height: 1.35; }
.mb-proj-id b, .mb-proj-id small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-proj-id small { color: var(--tx-muted); font-size: .8rem; }
.mb-proj-plan { display: grid; gap: 6px; justify-items: start; }
.mb-proj-pf { display: flex; gap: 4px; }
.mb-pf { font-size: .7rem; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--tx-line); color: var(--tx-muted); }
.mb-pf.on { border-color: rgba(22, 163, 74, .35); color: #15803D; background: rgba(22, 163, 74, .08); }
.mb-proj-build { display: grid; gap: 4px; justify-items: start; font-size: .8rem; min-width: 0; }
.mb-proj-build small { color: var(--tx-muted); }
.mb-proj-go { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; font-weight: 600; color: var(--wa); white-space: nowrap; }
.mb-proj-go .tx-ico { width: 14px; height: 14px; }
@media (max-width: 860px) { .mb-proj { grid-template-columns: 48px minmax(0, 1fr); } .mb-proj-plan, .mb-proj-build { grid-column: 2; } .mb-proj-go { display: none; } }

/* App type: choose on New app, switch in Plan & billing */
.mb-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 720px; margin-bottom: 16px; }
.mb-type { display: grid; gap: 6px; align-content: start; text-align: left; padding: 18px; border: 1.5px solid var(--tx-line); border-radius: 16px; background: var(--tx-surface); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.mb-type:hover { border-color: var(--wa); }
.mb-type[aria-checked="true"] { border-color: var(--wa); box-shadow: 0 0 0 3px var(--wa-50); }
.mb-type-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--wa-50); color: var(--wa); }
.mb-type b { font-size: 1.05rem; }
.mb-type-p { font-size: .82rem; font-weight: 700; color: var(--wa); }
.mb-type p { margin: 0; color: var(--tx-muted); font-size: .88rem; }
.mb-type ul { margin: 4px 0 0; padding-left: 18px; font-size: .84rem; line-height: 1.6; }
.mb-type[aria-checked="true"]::after { content: "Selected"; justify-self: start; font-size: .72rem; font-weight: 700; color: #fff; background: var(--wa); padding: 2px 8px; border-radius: 999px; }
.ide-plan--native { background: rgba(14, 165, 233, .12); color: #0369A1; }
[data-theme="dark"] .ide-plan--native { color: #7DD3FC; }
.ide-typesw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 720px; margin-bottom: 14px; }
.ide-typesw button { display: grid; gap: 3px; text-align: left; padding: 12px 14px; border: 1.5px solid var(--tx-line); border-radius: 12px; background: var(--tx-surface); cursor: pointer; font: inherit; color: inherit; }
.ide-typesw button b { display: flex; align-items: center; gap: 8px; }
.ide-typesw button small { color: var(--tx-muted); font-size: .8rem; }
.ide-typesw button[aria-checked="true"] { border-color: var(--wa); background: var(--wa-50); }
.ide-typesw button[aria-checked="true"] b { color: var(--wa); }
.ide-other { margin-top: 28px; border: 1px solid var(--tx-line); border-radius: 14px; padding: 4px 16px 12px; }
.ide-other > summary { cursor: pointer; padding: 10px 0; font-weight: 650; }
a.mb-lock { text-decoration: none; }
@media (max-width: 640px) { .mb-types, .ide-typesw { grid-template-columns: 1fr; } }

/* ── Developer docs (/mobile-apps/docs) ── */
.dx-hero { background: linear-gradient(135deg, #1E1065 0%, #4C1D95 55%, #6D28D9 100%); color: #fff; padding: 40px 0 34px; }
.dx-crumb { display: flex; gap: 8px; font-size: .84rem; opacity: .85; margin-bottom: 10px; }
.dx-crumb a { color: #fff; }
.dx-hero h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.02em; color: #fff; }
.dx-hero p { margin: 0; max-width: 720px; opacity: .9; }
.dx-search { position: relative; max-width: 620px; margin-top: 20px; }
.dx-search .tx-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #6B7280; }
.dx-search input { width: 100%; padding: 13px 48px 13px 42px; border-radius: 12px; border: 0; font: inherit; font-size: 1rem; background: #fff; color: #111827; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.dx-search input:focus { outline: 3px solid rgba(167, 139, 250, .6); }
.dx-search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 .75rem ui-monospace, monospace; border: 1px solid #D1D5DB; border-radius: 6px; padding: 1px 7px; color: #6B7280; background: #F9FAFB; }
.dx-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dx-pills a { color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); }
.dx-pills a:hover { background: rgba(255, 255, 255, .24); }
.dx-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 28px; padding-bottom: 64px; }
.dx-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 6px; }
.dx-g { display: grid; gap: 1px; margin-bottom: 14px; }
.dx-g small { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-muted); padding: 0 10px 4px; }
.dx-g a { padding: 6px 10px; border-radius: 8px; color: var(--tx-text, inherit); text-decoration: none; font-size: .9rem; border-left: 2px solid transparent; }
.dx-g a:hover { background: var(--wa-50); color: var(--wa); }
.dx-g a[aria-current="true"] { color: var(--wa); font-weight: 650; background: var(--wa-50); border-left-color: var(--wa); border-radius: 0 8px 8px 0; }
.dx-doc { min-width: 0; max-width: 860px; }
.dx-sec { scroll-margin-top: 84px; padding-bottom: 8px; }
.dx-doc .dx-sec h2 { margin: 0 0 12px; padding-top: 28px; border-top: 1px solid var(--tx-line); font-size: 1.45rem; letter-spacing: -.01em; }
.dx-doc .dx-sec:first-child h2 { border-top: 0; padding-top: 0; }
.dx-doc p, .dx-doc li { line-height: 1.7; }
.dx-doc code { font-size: .86em; background: var(--wa-50); color: var(--wa-ink, inherit); padding: 1px 6px; border-radius: 6px; }
.dx-doc pre code { background: none; padding: 0; color: inherit; }
.dx-code { position: relative; }
.dx-code pre { margin: 12px 0 16px; padding-top: 18px; }
.dx-copy { position: absolute; top: 8px; right: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #E9E3FF; border-radius: 7px; padding: 3px 9px; font: 600 .74rem Inter, sans-serif; cursor: pointer; opacity: .8; }
.dx-copy:hover { opacity: 1; background: rgba(255, 255, 255, .16); }
.dx-doc table { border: 1px solid var(--tx-line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.dx-doc thead th { background: var(--wa-50); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.dx-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.dx-card { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--tx-line); border-radius: 14px; text-decoration: none; color: inherit; background: var(--tx-surface); transition: border-color .15s, transform .15s; }
.dx-card:hover { border-color: var(--wa); transform: translateY(-1px); }
.dx-card b { color: var(--wa); }
.dx-card span { color: var(--tx-muted); font-size: .88rem; }
.dx-steps { counter-reset: dx; list-style: none; padding: 0; display: grid; gap: 10px; }
.dx-steps li { counter-increment: dx; position: relative; padding: 12px 14px 12px 52px; border: 1px solid var(--tx-line); border-radius: 12px; background: var(--tx-surface); }
.dx-steps li::before { content: counter(dx); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--wa); color: #fff; font-weight: 700; font-size: .84rem; display: grid; place-items: center; }
.dx-note { border-left: 4px solid var(--wa); background: var(--wa-50); padding: 12px 14px; border-radius: 0 10px 10px 0; margin: 14px 0; font-size: .92rem; }
.dx-pager { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 6px; }
.dx-pager a { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--tx-line); border-radius: 12px; text-decoration: none; color: var(--wa); font-weight: 600; font-size: .9rem; min-width: 160px; }
.dx-pager a small { color: var(--tx-muted); font-weight: 500; font-size: .74rem; }
.dx-pager a.next { text-align: right; margin-left: auto; }
.dx-pager a:hover { border-color: var(--wa); }
.dx-help { margin-top: 32px; padding: 18px; border-radius: 14px; background: var(--wa-50); border: 1px solid var(--tx-line); }
.dx-empty { padding: 24px; text-align: center; color: var(--tx-muted); }
.dx-toc-btn { display: none; }
@media (max-width: 900px) {
  .dx-body { grid-template-columns: 1fr; gap: 12px; }
  .dx-toc-btn { display: inline-flex; justify-self: start; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--tx-line); border-radius: 10px; background: var(--tx-surface); font: inherit; font-weight: 600; cursor: pointer; color: inherit; position: sticky; top: 70px; z-index: 5; }
  .dx-side { display: none; position: static; max-height: none; border: 1px solid var(--tx-line); border-radius: 12px; padding: 10px; background: var(--tx-surface); }
  .dx-side.open { display: block; }
  .dx-cards { grid-template-columns: 1fr; }
  .dx-pager a { min-width: 0; }
}

/* ── Search landing pages (/website-to-app, /wordpress-to-app …) ── */
.seo-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.seo-grid p { font-size: 1.04rem; line-height: 1.75; margin: 0 0 14px; }
.seo-glance { padding: 20px; border: 1px solid var(--tx-line); border-radius: 16px; background: var(--wa-50); }
.seo-glance h2 { font-size: 1rem; margin: 0 0 10px; }
.seo-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.seo-steps li { counter-increment: s; position: relative; padding: 22px 20px 20px; border: 1px solid var(--tx-line); border-radius: 16px; background: var(--tx-surface); }
.seo-steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--wa); color: #fff; font-weight: 800; margin-bottom: 10px; }
.seo-steps b { display: block; margin-bottom: 6px; }
.seo-steps p { margin: 0; color: var(--tx-muted); font-size: .92rem; line-height: 1.6; }
.seo-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seo-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.seo-price { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--tx-line); border-radius: 16px; background: var(--tx-surface); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.seo-price:hover { border-color: var(--wa); transform: translateY(-1px); }
.seo-price small { color: var(--tx-muted); font-weight: 600; font-size: .8rem; }
.seo-price b { font-size: 1.6rem; letter-spacing: -.02em; }
.seo-price span { color: var(--tx-muted); font-size: .84rem; }
.seo-price--pop { border: 2px solid var(--wa); }
.seo-rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.seo-rel a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--tx-line); border-radius: 14px; background: var(--tx-surface); color: inherit; text-decoration: none; }
.seo-rel a:hover { border-color: var(--wa); }
.seo-rel b { color: var(--wa); font-size: .95rem; }
.seo-rel span { color: var(--tx-muted); font-size: .82rem; }
@media (max-width: 900px) { .seo-grid, .seo-steps { grid-template-columns: 1fr; } .seo-prices, .seo-feats, .seo-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .seo-prices, .seo-feats, .seo-rel { grid-template-columns: 1fr; } }
