/* Remixly – public site pages of builder A (home, templates, CMS pages, create account). Design classes stay in
   home.css / app.css; this file adds what the live data needs: real photos, plan counts, the gallery preview, the page
   prose, the contact form. Colours only through the design tokens. */

/* ---------- home: real photos inside the product picture ---------- */
.mc-img.rx-photo { background: var(--rx-surface-3); overflow: hidden; }
.mc-img.rx-photo::after { display: none; }
.mc-img.rx-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-cards .rx-mc-card { overflow: hidden; height: 54px; }
.mc-cards .rx-mc-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* home: template cards with real pictures */
.rx-tpl-img { display: block; aspect-ratio: 640 / 430; background: var(--rx-surface-3); overflow: hidden; }
.rx-tpl-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .35s ease; }
.tpl:hover .rx-tpl-img img, .tcard:hover .rx-tpl-img img { transform: scale(1.03); }
.rx-tpl-none { display: grid; place-items: center; height: 100%; color: var(--rx-ink-3); }
.sec-head.head-left p { margin: 8px 0 0; }

/* ---------- pricing (home + [pricing] page block) ---------- */
.rx-period-wrap { display: flex; justify-content: center; margin: -18px 0 34px; }
.plans.rx-plans-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.plans.rx-plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin-inline: auto; }
.plans.rx-plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan li.rx-off { color: var(--rx-ink-3); }
.plan li.rx-off .ico { color: var(--rx-ink-3); }
.rx-plan-mine { vertical-align: middle; margin-left: 6px; }
.packs.rx-packs-1 { grid-template-columns: 1.6fr 1fr; }
.packs.rx-packs-2 { grid-template-columns: 1.6fr repeat(2, 1fr); }
.packs.rx-packs-4 { grid-template-columns: 1.4fr repeat(4, 1fr); }
.rx-small-print { margin-top: 14px; }
.rx-small-print .ico { display: inline; vertical-align: -3px; }
.rx-compare { margin-top: 40px; }
.rx-compare h3 { margin-bottom: 12px; }
.rx-compare-table th[scope="row"] { font-weight: 600; text-align: left; }
.rx-compare-table td, .rx-compare-table thead th { text-align: center; }
.rx-compare-table thead th:first-child { text-align: left; }
.rx-yes, .rx-no { display: inline-flex; vertical-align: middle; }
.rx-yes { color: var(--rx-ok); }
.rx-no { color: var(--rx-ink-3); }
.rx-compare-table tbody th { text-transform: none; letter-spacing: 0; font: 600 14px/1.35 var(--rx-font); color: var(--rx-ink); background: none; white-space: normal; min-width: 150px; }
.rx-compare-table td { white-space: nowrap; }
@media (max-width: 1100px) { .plans.rx-plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .plans.rx-plans-2, .plans.rx-plans-4 { grid-template-columns: 1fr; max-width: 520px; } .packs[class*="rx-packs-"] { grid-template-columns: 1fr; } }

/* empty states (x-empty) */
.empty-note { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 40px 16px; border: 1px dashed var(--rx-line-2); border-radius: var(--rx-r-lg); background: var(--rx-surface); }
.empty-note .big-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--rx-tint); color: var(--rx-tint-ink); }
.empty-note h3 { margin: 4px 0 0; font-size: 1.1rem; }
.empty-note .s { margin: 0; color: var(--rx-ink-3); font-size: 14px; max-width: 46ch; }

/* ---------- templates gallery ---------- */
.rx-cats { flex-wrap: wrap; }
.rx-cats .chip { text-decoration: none; }
.rx-tcount { margin-left: auto; }
.tcard[hidden] { display: none; }
.tcard.rx-hit { box-shadow: 0 0 0 3px var(--rx-violet), var(--rx-shadow); }
.rx-tpl-shot { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.rx-tc-meta { margin-top: 4px; }
.tcard .tc-foot .btn { min-height: 38px; }
.rx-tpl-modal.modal-box.wide { width: min(1200px, 100%); display: flex; flex-direction: column; }
.rx-tpl-modal .modal-head { gap: 12px; }
.rx-tpl-devs { gap: 4px; flex-wrap: nowrap; }
.rx-tpl-devs [aria-pressed="true"] { background: var(--rx-tint); color: var(--rx-tint-ink); }
.rx-tpl-stage { padding: 14px; background: var(--rx-bg-2); }
.rx-tpl-frame { position: relative; margin: 0 auto; height: min(68vh, 760px); overflow: hidden; border-radius: var(--rx-r); border: 1px solid var(--rx-line); background: var(--rx-surface); }
.rx-tpl-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: var(--rx-surface); }
.rx-tpl-modal .modal-foot { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 640px) {
  .rx-tpl-modal .modal-head { flex-wrap: wrap; }
  .rx-tpl-frame { height: 62vh; }
}

/* ---------- CMS pages ---------- */
.rx-page-hero { padding-bottom: 20px; }
.rx-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--rx-ink-3); margin-bottom: 14px; }
.rx-crumbs a { color: var(--rx-ink-3); }
.rx-updated { margin-top: 10px; }
.rx-page-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--rx-r-lg); margin-top: 12px; }
.rx-page { padding: 24px 0 80px; }
.rx-page-in { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
.rx-page-in.rx-page-wide { grid-template-columns: minmax(0, 1fr); }
.rx-page-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.rx-page-main > * { min-width: 0; }
.rx-page-in:not(.rx-page-wide) .rx-page-main { max-width: 760px; }
.rx-prose { font-size: 16px; line-height: 1.75; color: var(--rx-ink-2); overflow-wrap: anywhere; }
.rx-page-wide .rx-prose { max-width: 760px; }
.rx-prose h2 { font-size: 1.45rem; color: var(--rx-ink); margin: 1.6em 0 .5em; }
.rx-prose h3 { font-size: 1.15rem; color: var(--rx-ink); margin: 1.4em 0 .4em; }
.rx-prose > :first-child { margin-top: 0; }
.rx-prose p, .rx-prose ul, .rx-prose ol { margin: 0 0 1em; }
.rx-prose ul, .rx-prose ol { padding-left: 1.3em; }
.rx-prose li { margin: .3em 0; }
.rx-prose a { color: var(--rx-link); text-decoration: underline; text-underline-offset: 2px; }
.rx-prose img { max-width: 100%; height: auto; border-radius: var(--rx-r); }
.rx-prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--rx-violet); background: var(--rx-surface); border-radius: 0 var(--rx-r) var(--rx-r) 0; }
.rx-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.rx-prose th, .rx-prose td { border: 1px solid var(--rx-line); padding: 8px 10px; text-align: left; }
.rx-page-side { position: sticky; top: calc(var(--rx-head-h) + 20px); padding: 18px; border: 1px solid var(--rx-line); border-radius: var(--rx-r-lg); background: var(--rx-surface); }
.rx-page-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rx-page-side li a { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 10px; border-radius: var(--rx-r-sm); color: var(--rx-ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.rx-page-side li a:hover { background: var(--rx-tint); color: var(--rx-tint-ink); }
.rx-page-pricing .rx-period-wrap { margin-top: 0; }
.rx-page-wide .rx-page-side { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rx-page-wide .rx-page-side .sub-h { margin: 0; }
.rx-page-wide .rx-page-side ul { display: flex; flex-wrap: wrap; gap: 4px; }
.rx-page-wide .rx-page-side .btn { width: auto; margin: 0 0 0 auto; }
@media (max-width: 640px) { .rx-page-wide .rx-page-side .btn { width: 100%; margin: 0; } }
@media (max-width: 900px) { .rx-page-in { grid-template-columns: minmax(0, 1fr); gap: 28px; } .rx-page-side { position: static; } }

/* contact form */
.rx-contact h2 { font-size: 1.3rem; margin-bottom: 14px; }
.rx-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.rx-contact-grid .field + .field { margin-top: 0; }
.rx-contact .field { margin-bottom: 14px; }
.rx-contact .field + .field { margin-top: 0; }
.rx-contact .btn { margin-top: 4px; }
@media (max-width: 640px) { .rx-contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* create account */
.rx-join-note { margin: 0 0 16px; }
@media (max-width: 640px) {
  .rx-compare-table th, .rx-compare-table td { padding: 9px 6px; font-size: 13px; }
  .rx-compare-table td { white-space: normal; overflow-wrap: anywhere; }
  .rx-compare-table tbody th { min-width: 0; width: 34%; font-size: 13px; }
  .rx-compare-table thead th { white-space: normal; }
}
.rx-contact-grid .field { margin-bottom: 0; }
.page-hero .rx-updated { font-size: 13px; margin-top: 12px; }

/* Free screenshot page (no sign-in) */
.fs-page { padding: 8px 0 72px; }
.fs-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.fs-form-card, .fs-result { padding: 22px; }
.fs-mt { margin-top: 18px; }
.fs-row { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.fs-row .field { display: grid; gap: 8px; }
.fs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fs-result .fs-actions { margin-top: 14px; }
.fs-err { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--rx-danger-soft); color: var(--rx-danger); font-weight: 600; font-size: 14px; }
.fs-off { display: flex; gap: 12px; align-items: flex-start; }
.fs-off .ico { width: 22px; height: 22px; color: var(--rx-amber-ink); flex: none; }
.fs-off p { margin: 4px 0 0; color: var(--rx-ink-2); }
.fs-empty { display: grid; justify-items: center; gap: 10px; color: var(--rx-ink-3); text-align: center; font-weight: 600; }
.fs-empty .ico { width: 34px; height: 34px; }
.fs-result .preview { min-height: 340px; }
.fs-busy { opacity: .55; }
.fs-busy::after { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--rx-line-2); border-top-color: var(--rx-violet); animation: fsSpin .8s linear infinite; }
@keyframes fsSpin { to { transform: rotate(360deg); } }
.fs-cta { margin: 14px 0 0; }
.fs-cta a { color: var(--rx-link); font-weight: 700; }
@media (max-width: 860px) { .fs-grid { grid-template-columns: 1fr; } .fs-result .preview { min-height: 240px; } }
