/* ===============================
   WTFU – Base theme + layout
   =============================== */
:root{
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #5b5b5b;
  --card: #ffffff;
  --border: #e6e6e6;
  --primary: #000000;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}
:root.dark{
  --bg: #0b0b0c;
  --text: #ffffff;
  --muted: #cfcfcf;
  --card: #101012;
  --border: #222228;
  --primary: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a{color:inherit;text-decoration:none}
.muted{color:var(--muted)}
.small{font-size:12px}
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.page-hero{padding:50px 0;border-bottom:1px solid var(--border)}
.section{padding:60px 0}
.cards{display:grid;gap:16px}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.narrow{max-width:800px}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 16px;border-radius:14px;border:1px solid var(--border);
  background: transparent;color: var(--text);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  cursor:pointer;font-weight:600
}
.btn--primary{background:var(--primary);color:var(--bg);border-color:var(--primary)}
.btn--primary:hover{transform:translateY(-1px)}
.btn--ghost:hover{background:rgba(0,0,0,.05)}
:root.dark .btn--ghost:hover{background:rgba(255,255,255,.06)}
.card{border:1px solid var(--border);background:var(--card);border-radius:22px;padding:20px;box-shadow: var(--shadow)}
.hover-lift{transition:transform .15s ease}
.hover-lift:hover{transform:translateY(-4px)}
.card__icon{font-size:22px}

/* Nav */
.nav{position:sticky;top:0;backdrop-filter:saturate(180%) blur(10px);background: rgba(255,255,255,.7);border-bottom:1px solid var(--border);z-index:1000}
:root.dark .nav{background: rgba(11,11,12,.7)}
.nav__inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:flex;align-items:center;gap:10px;font-weight:700}
.logo__mark{height:36px;width:36px;border-radius:12px;background:var(--primary);color:var(--bg);display:grid;place-items:center;font-weight:800}
.nav__links{display:flex;align-items:center;gap:18px}
.nav__menu{display:none;background:none;border:none;font-size:20px}

/* Footer */
.footer{border-top:1px solid var(--border);padding:30px 0;margin-top:40px}
.footer__inner{display:grid;grid-template-columns:1fr auto auto;gap:18px;align-items:center}
.footer__brand{display:flex;gap:12px;align-items:center}
.footer__links{display:flex;gap:18px;align-items:center}

/* Wizard + Calendly */
.wizard__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
label{display:flex;flex-direction:column;gap:6px;font-weight:600}
input,select,textarea{border:1px solid var(--border);border-radius:12px;padding:12px;background:var(--card);color:var(--text);outline:none}
input:focus,select:focus,textarea:focus{border-color:#8a8a8a}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.wizard__step.hidden{display:none}
.dots{display:flex;gap:6px}
.dot{width:22px;height:8px;background:#d9d9d9;border-radius:999px}
.dot.active{background:var(--primary)}
.wizard__actions{display:flex;justify-content:space-between;margin-top:14px}
.calendly iframe{width:100%;height:850px;border:1px solid var(--border);border-radius:18px;background:var(--card)}
.note{margin-top:14px}
.btn.shake{animation:shake .2s linear 1}
@keyframes shake{0%,100%{transform:translateX(0)}50%{transform:translateX(2px)}}

/* ---------- Centered modal tiles (overlay) ---------- */
.uc-modal.hidden { display: none !important; }
.uc-modal {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2147483647 !important;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all;
}
.uc-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.uc-modal__dialog {
  position: relative; z-index: 2; background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  padding: 22px; width: min(92vw,520px); max-width: 520px; max-height: 85vh; overflow: auto;
  animation: modalFade .25s ease;
}
@keyframes modalFade{from{transform:scale(.97);opacity:0}to{transform:scale(1);opacity:1}}
.uc-modal__actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}
.uc-close{position:absolute;top:10px;right:12px;border:none;background:transparent;color:var(--text);font-size:20px;cursor:pointer}
body.has-modal{overflow:hidden;touch-action:none}

/* Responsive */
@media (max-width: 900px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:1fr}
  .footer__inner{grid-template-columns:1fr}
  .nav__menu{display:block}
  .nav__links{display:none}
  .nav__links.open{
    display:flex;flex-direction:column;position:absolute;top:64px;left:0;right:0;
    background:var(--bg);padding:16px;border-bottom:1px solid var(--border);z-index:1001
  }
}

/* Global hide helper for JS toggles */
.hidden { display: none !important; }
