/* ------------------------------------------------------------------ base
   Shared primitives for every template. Each template's own CSS builds
   its personality on top of these. Colors come from CSS variables that
   the theme injects (--primary, --accent, --on-primary, ...). */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary);
}
.center { text-align: center; }
.muted { color: #6b7280; }

/* buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; cursor: pointer; text-align: center;
  padding: .8rem 1.4rem; border-radius: 10px; border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -8px var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: currentColor; color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-lg { padding: .95rem 1.75rem; font-size: 1.05rem; }

/* stars ------------------------------------------------------------------ */
.stars { color: #f5b301; letter-spacing: 2px; }

/* ------------------------------------------------------------------ header + nav
   Canonical markup shared by all templates; each template restyles it. */
.site-header { position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand img { max-height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { font-weight: 500; font-size: .96rem; }
.site-nav .nav-cta { padding: .6rem 1.15rem; font-size: .9rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 10px;
}
.nav-toggle span { height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.12);
    padding: .5rem; max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .25s ease, visibility .25s;
  }
  .site-header.nav-open .site-nav { max-height: 80vh; visibility: visible; }
  .site-nav a { padding: .85rem 1rem; border-radius: 8px; }
  .site-nav a:hover { background: #f3f4f6; }
  .site-nav .nav-cta { margin: .35rem; text-align: center; }
  .site-header.nav-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}

/* ------------------------------------------------------------------ shared sections */
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; margin: .5rem 0 .75rem; }
.section-head p { color: #6b7280; font-size: 1.05rem; }

/* contact form (display-only for demos) */
.cform { display: grid; gap: .8rem; }
.cform input, .cform textarea {
  font: inherit; width: 100%; padding: .8rem .9rem; border: 1px solid #d1d5db; border-radius: 10px; background: #fff;
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.cform .row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-note { font-size: .8rem; color: #9ca3af; }

/* footer base */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 3.5rem 0 2rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.25rem; color: #fff; margin-bottom: .75rem; }
.footer-brand img { max-height: 40px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin: 0 0 .9rem; }
.footer-col a { display: block; padding: .2rem 0; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .85rem; color: #94a3b8; }
.social-row { display: flex; gap: .6rem; margin-top: .5rem; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--primary); color: var(--on-primary); }

@media (max-width: 780px) {
  .section { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cform .row { grid-template-columns: 1fr; }
}

/* `.reveal` is a marker class only. Content is ALWAYS visible — pages must
   never depend on JS or on scrolling to show their content (so they
   screenshot cleanly and look right the instant they load). */

/* ---- optional scrolling marquee band (toggled per site in the admin) ---- */
.scroll-marquee { background: #0b0b0f; padding: clamp(3rem, 8vw, 7rem) 0; overflow: hidden; border-block: 1px solid rgba(255,255,255,.08); }
.scroll-marquee .mrow { overflow: hidden; display: flex; justify-content: center; }
.scroll-marquee .mrow-inner {
  flex: none; white-space: nowrap; will-change: transform;
  font-family: 'Anton', Impact, system-ui, sans-serif; font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 9rem); line-height: 1.08; letter-spacing: .01em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.4);
}
.scroll-marquee .mrow-inner .hl { color: var(--accent); -webkit-text-stroke: 0; }
@media (prefers-reduced-motion: reduce) { .scroll-marquee .mrow-inner { transform: none !important; } }

/* ---- agency pitch popup (shown on every demo — "like this? contact us") ---- */
.agency-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 1.5rem; }
.agency-modal[hidden] { display: none; }
.am-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(2px); }
.am-card { position: relative; background: #fff; border-radius: 22px; max-width: 420px; width: 100%; padding: 2.2rem 2rem 2rem; box-shadow: 0 30px 80px -20px rgba(0,0,0,.55); text-align: center; animation: am-in .28s cubic-bezier(.2,.8,.3,1); }
@keyframes am-in { from { transform: translateY(18px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.am-close { position: absolute; top: .55rem; right: .8rem; border: none; background: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: #9ca3af; padding: .2rem .4rem; }
.am-close:hover { color: #374151; }
.am-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: .6rem; }
.am-card h3 { font-size: 1.55rem; margin: 0 0 .6rem; color: #0f172a; line-height: 1.2; }
.am-card p { color: #4b5563; margin: 0 0 1.5rem; line-height: 1.6; font-size: 1rem; }
.am-actions { display: flex; flex-direction: column; gap: .7rem; align-items: center; }
.am-btn { display: inline-flex; align-items: center; background: var(--primary); color: var(--on-primary, #fff); font-weight: 700; padding: .85rem 1.7rem; border-radius: 999px; text-decoration: none; }
.am-btn:hover { filter: brightness(.94); }
.am-temp { display: inline-block; background: #f3f4f6; color: #6b7280; font-weight: 600; font-size: .95rem; padding: .75rem 1.5rem; border-radius: 999px; }
.am-phone { color: #6b7280; font-weight: 500; text-decoration: none; }
.am-phone:hover { color: var(--primary); }

/* ---- sticky "make this real" launcher — always visible on every demo ---- */
.pitch-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--primary); color: var(--on-primary, #fff);
  border: none; border-radius: 999px; cursor: pointer;
  padding: .8rem 1.35rem; font-family: inherit; font-size: .9rem; font-weight: 600;
  line-height: 1; max-width: calc(100vw - 2.5rem);
  box-shadow: 0 14px 34px -10px rgba(15,23,42,.45);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.pitch-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(15,23,42,.55); filter: brightness(.97); }
.pitch-fab:focus-visible { outline: 3px solid var(--on-primary, #fff); outline-offset: 2px; }
.pitch-fab .pf-icon { display: inline-flex; }
.pitch-fab .pf-hook { font-weight: 500; opacity: .9; }
.pitch-fab .pf-go { font-weight: 700; }
@media (max-width: 560px) {
  .pitch-fab { right: .9rem; bottom: .9rem; padding: .75rem 1.05rem; }
  .pitch-fab .pf-hook { display: none; }
}
