/* Public website. Mobile first, system fonts, no frameworks: small and fast (N8 Lighthouse >= 90).
   Brand colours arrive as CSS variables from settings (ui.brand_css); the greys here are neutral defaults. */
:root { --ink: #111827; --ink-2: #334155; --muted: #64748B; --line: #E2E8F0; --bg: #FFFFFF; --alt: #F8FAFC;
  --radius: 14px; --wrap: 1160px; --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3, .h1 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, .h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow-text { max-width: 760px; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .3em; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 10px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline-light { border-color: rgba(255,255,255,.8); color: #fff; background: transparent; }
.btn:hover { filter: brightness(1.07); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.logo img { height: 40px; width: auto; }
.logo-text { font-weight: 800; font-size: 1.2rem; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; min-width: 44px; min-height: 44px; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }
.site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 18px; flex-direction: column; }
.site-nav.open { display: flex; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.site-nav a.nav-cta { margin-top: 12px; border: 0; color: var(--accent-ink); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0; border: 0; background: none; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 8px; font-size: .97rem; }
  .site-nav a:hover { background: var(--alt); }
  .site-nav a.nav-cta { margin: 0 0 0 8px; }
  .site-nav a.nav-cta:hover { background: var(--accent); }
}

/* Hero */
.hero { position: relative; background: var(--brand-2); color: var(--brand-2-ink); overflow: hidden; }
.hero-slide { position: relative; min-height: min(78vh, 640px); display: flex; align-items: center; }
.hero-slide[hidden] { display: none; }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.25)); }
.hero-img + .hero-inner { color: #fff; }
.hero-inner { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 72px; }
.hero-inner h1, .hero-inner .h1 { max-width: 16ch; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 46ch; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-placeholder { background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.hero-placeholder .hero-inner { color: var(--brand-2-ink); }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.hero-dots button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.hero-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.hero-dots button.is-active::after { background: #fff; }

/* Sections and cards */
.section { padding: 56px 0; }
.section-alt { background: var(--alt); }
@media (min-width: 900px) { .section { padding: 84px 0; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; }
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 12px 30px rgba(15,23,42,.08); }
.card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--brand); }
.card-body p { color: var(--ink-2); }
.card-tagline { font-weight: 600; color: var(--ink) !important; }
.card-more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: var(--alt); color: var(--ink-2); margin-bottom: 10px; border: 1px solid var(--line); }
.tag-live { background: #DCFCE7; color: #14532D; border-color: transparent; }
.tag-soon { background: #FEF3C7; color: #78350F; border-color: transparent; }
.placeholder { border: 2px dashed var(--line); border-radius: var(--radius); padding: 36px 24px; text-align: center; color: var(--muted); background: var(--alt); }
.placeholder h3 { color: var(--ink-2); }
.reasons { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.reasons li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 18px 20px; }
.reasons p { margin: 0; color: var(--ink-2); }
.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.rounded img, img.rounded { border-radius: var(--radius); }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote figcaption { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.shots { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding-top: 6px; }
.page-head { background: var(--alt); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.page-head .lead { margin: 0; }
.product-head { padding: 56px 0; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { border-left: 4px solid var(--line); margin: 1em 0; padding: .2em 1em; color: var(--ink-2); }
.results { padding-left: 1.2em; font-weight: 600; }
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; min-height: 32px; }
.faq .prose { padding-top: 8px; }
.price { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.plan { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.contact-card { background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-self: start; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
dl.facts dt { color: var(--muted); font-weight: 600; }
dl.facts dd { margin: 0; }

/* CTA band */
.cta-band { background: var(--brand); color: var(--brand-ink); padding: 48px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-inner h2 { margin-bottom: .2em; }
.cta-inner p { margin: 0; opacity: .92; }

/* Forms */
.lead-form { display: grid; gap: 14px; }
.lead-form label { display: block; font-weight: 700; font-size: .95rem; }
.lead-form input, .lead-form select, .lead-form textarea { display: block; width: 100%; margin-top: 4px; padding: 12px 14px; font: inherit; border: 1px solid #CBD5E1; border-radius: 10px; background: #fff; color: var(--ink); }
.lead-form .req { color: #B91C1C; }
.lead-form .error { color: #B91C1C; font-size: .9rem; font-weight: 700; margin: 4px 0 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.flashes { display: grid; gap: 8px; margin: 16px 0; }
.flash { padding: 12px 16px; border-radius: 10px; background: #EFF6FF; }
.flash-success { background: #ECFDF5; color: #065F46; }
.flash-danger { background: #FEF2F2; color: #991B1B; }
.flash-warning { background: #FFFBEB; color: #92400E; }

/* Footer */
.site-footer { background: var(--brand-2); color: var(--brand-2-ink); padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: inherit; }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-weight: 800; font-size: 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.socials { display: flex; flex-wrap: wrap; gap: 14px; }
.muted-light { opacity: .75; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 16px; opacity: .8; font-size: .88rem; }

/* Floating contact (mobile) */
.float-contact { position: fixed; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 10px; z-index: 30; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.float-wa { background: #1A7F45; }
.float-call { background: var(--brand); color: var(--brand-ink); }
@media (min-width: 900px) { .float-call { display: none; } }

/* Preview bar */
.preview-bar { position: sticky; top: 0; z-index: 50; background: #FEF3C7; color: #78350F; padding: 8px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; font-size: 14px; flex-wrap: wrap; }
.preview-bar form { margin: 0; }
.preview-bar button { background: #78350F; color: #fff; border: 0; border-radius: 6px; padding: 4px 10px; cursor: pointer; font: inherit; }
.preview-bar a { color: #78350F; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.verify-ok { border: 2px solid #15803D; background: #F0FDF4; border-radius: var(--radius); padding: 22px; }
.verify-ok h2 { color: #14532D; }
.verify-bad { border: 2px solid #B91C1C; background: #FEF2F2; border-radius: var(--radius); padding: 22px; }
.verify-bad h2 { color: #7F1D1D; }
/* Offscreen sections are rendered only when they come near the viewport (faster first paint on phones). */
main > .section ~ .section, main > .cta-band { content-visibility: auto; contain-intrinsic-size: auto 640px; }
