/* Public SaaS site + subscriber websites. Builds on the base UI. */
@import url("app.css");
:root { --accent: #f4a261; }
body.site { background: var(--surface); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.05rem; min-height: 50px; }
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; flex-wrap: wrap; }
.site-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none !important; }
.store-logo { max-height: 44px; width: auto; }
.store-foot-logo { max-height: 48px; max-width: 200px; width: auto; display: block; margin-bottom: .5rem; }
.site-nav { display: flex; gap: 1rem; flex-wrap: wrap; flex: 1; }
.site-nav a { color: var(--ink-2); font-weight: 500; }
.site-cta { display: flex; gap: .5rem; }
main#main { min-height: 60vh; }
.hero { background: linear-gradient(160deg, var(--brand-soft), transparent 70%); padding: 3.5rem 0; margin-bottom: 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 1rem; }
.hero .actions { margin: 1.25rem 0 .75rem; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1.25rem; }
.hero-img { width: 100%; border-radius: 16px; object-fit: cover; max-height: 380px; }
.mock-row { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.mock-total { padding-top: .8rem; }
.features { margin: 2rem auto 3rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; background: var(--surface); }
.feature h3 { margin: 0 0 .35rem; font-size: 1rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.band { background: var(--bg); padding: 2.5rem 0; margin: 2.5rem 0; }
.cta-band { text-align: center; padding: 2.5rem 1.25rem 3.5rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.post-card { display: flex; flex-direction: column; gap: .35rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; color: var(--ink); text-decoration: none !important; background: var(--surface); }
.post-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }
.post-card:hover { border-color: var(--brand); }
.post-hero { width: 100%; border-radius: 12px; margin: 1rem 0; }
.page-body { padding: 2rem 1.25rem 3rem; }
.page-body h1 { font-size: 2rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.service h3 { margin: 0 0 .3rem; }
.price { font-weight: 800; font-size: 1.15rem; margin: .25rem 0 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.gallery figure { margin: 0; }
.review { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-foot { border-top: 1px solid var(--line); background: var(--bg); padding: 2rem 0 1rem; margin-top: 3rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.foot-grid li { margin: .25rem 0; }
.track { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .5rem; }
.track li { display: flex; justify-content: space-between; padding: .75rem 1rem; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.track li.done { color: var(--ink); background: var(--ok-soft); border-color: transparent; }
.track li.now { outline: 2px solid var(--brand); font-weight: 700; }
.pay-card { text-align: center; }
.pay-qr svg { width: 220px; height: 220px; margin: .5rem auto; display: block; }
.pay-qr-img { max-width: 240px; }
.portal-nav { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; margin: 1.25rem 0; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.portal-nav a { color: var(--ink-2); }
.portal-nav a.active { color: var(--brand); font-weight: 700; }
.portal-nav form { margin: 0 0 0 auto; }
/* templates */
.tpl-modern .hero { background: #111827; color: #f9fafb; }
.tpl-modern .hero .lead, .tpl-modern .hero .small { color: #d1d5db; }
.tpl-modern .hero .btn-ghost { color: #f9fafb; border-color: #4b5563; }
.tpl-modern h1, .tpl-modern h2 { letter-spacing: -.02em; }
.tpl-modern .service, .tpl-modern .feature { border-radius: 16px; }
.tpl-minimal .hero { background: none; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.tpl-minimal .hero h1 { font-size: 2rem; }
.tpl-minimal .hero-card { display: none; }
.tpl-minimal .hero-grid { grid-template-columns: 1fr; }
.tpl-classic .btn-primary { background: var(--brand); }
.store .btn-primary { background: var(--brand); }
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .site-head .wrap { flex-wrap: wrap; row-gap: .5rem; }
    .site-nav { order: 3; width: 100%; flex: 1 1 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .5rem; }
    .site-cta { margin-left: auto; }
}

/* ---- searchable select (js-searchable) ---- */
.ss { position: relative; }
.ss-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; bottom: 0; left: 50%; }
.ss-btn { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; text-align: left; font: inherit; color: var(--ss-ink); background: var(--ss-bg); border: 1px solid var(--ss-line); border-radius: var(--ss-radius, 8px); cursor: pointer; }
.ss-btn::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; transition: transform .2s; flex: none; }
.ss.is-open .ss-btn::after { transform: rotate(-135deg) translateY(-2px); }
.ss-btn.is-placeholder { color: var(--ss-muted); }
.ss-btn:focus-visible, .ss.is-open .ss-btn { outline: none; border-color: var(--ss-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ss-accent) 20%, transparent); }
.ss.is-invalid .ss-btn { border-color: var(--ss-err, #b3261e); }
.ss-panel { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; padding: .45rem; background: var(--ss-bg); border: 1px solid var(--ss-line); border-radius: var(--ss-radius, 8px); box-shadow: 0 16px 36px -12px rgba(15, 23, 42, .35); animation: ss-in .14s ease-out; }
@keyframes ss-in { from { opacity: 0; transform: translateY(-4px); } }
.ss-search { width: 100%; min-height: 38px; margin: 0 0 .35rem; }
.ss-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.ss-list li { padding: .5rem .6rem; border-radius: 6px; cursor: pointer; color: var(--ss-ink); }

.ss-list li.is-active { background: color-mix(in srgb, var(--ss-accent) 14%, transparent); }
.ss-list li[aria-selected="true"] { font-weight: 600; color: var(--ss-accent); }
.ss-list li.ss-placeholder { color: var(--ss-muted); }
.ss-empty { margin: .4rem .6rem; color: var(--ss-muted); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .ss-panel { animation: none; } .ss-btn::after { transition: none; } }
:root { --ss-ink: var(--ink); --ss-bg: var(--surface); --ss-line: var(--line); --ss-accent: var(--brand); --ss-muted: var(--muted, #6b7a86); --ss-radius: 8px; }
.captcha-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.captcha-img { border-radius: 8px; border: 1px solid var(--line); background: #f1f5fb; }
.captcha-refresh { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.15rem; cursor: pointer; }
.captcha-input { width: 90px !important; text-align: center; font-size: 1.1rem; }

/* Social profile icons (only configured links are rendered) */
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: .6rem 0 0; padding: 0; }
.soc { --soc: #475569; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--text, #1f2937); background: var(--surface, #fff); border: 1px solid var(--line, #e2e8f0); transition: transform .22s ease, background-color .22s, color .22s, border-color .22s, box-shadow .22s; }
.soc .ic, .soc img { width: 18px; height: 18px; }
.soc:hover, .soc:focus-visible { transform: translateY(-3px) scale(1.06); color: #fff; background: var(--soc); border-color: var(--soc); box-shadow: 0 10px 20px -8px var(--soc); text-decoration: none; }
.soc:active { transform: scale(.94); }
.soc-facebook { --soc: #1877f2; } .soc-instagram { --soc: #d62976; } .soc-linkedin { --soc: #0a66c2; } .soc-youtube { --soc: #e62117; }
.soc-x { --soc: #111; } .soc-whatsapp { --soc: #1faa55; } .soc-telegram { --soc: #229ed9; } .soc-threads { --soc: #333; } .soc-pinterest { --soc: #c8232c; } .soc-google { --soc: #4285f4; }
@media (prefers-reduced-motion: reduce) { .soc { transition: none; } .soc:hover { transform: none; } }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
