/* universalpractices.com site layer v2, modeled on the Team-X page system.
   Layers over ai-iq.css (color tokens + base typography). */

/* ── NAV ─────────────────────────────── */
nav.site-nav {
  background: var(--navy);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-brand {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.06em;
}
.nav-brand em { color: var(--orange); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-links a.nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { color: var(--blue); }
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--orange);
  transition: background 0.18s, transform 0.18s;
}
.nav-pill:hover { background: #e08800; transform: translateY(-1px); }

/* ── HERO ────────────────────────────── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 76px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero.compact { padding: 48px 24px 18px; }
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(51,173,225,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -60px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,153,0,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
}
.hero.compact h1 { font-size: 34px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero.compact .hero-sub { margin-bottom: 0; font-size: 15.5px; }
.hero-sub em { color: var(--blue); font-style: normal; font-weight: 600; }
.hero-sub a { color: var(--blue); }
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 38px;
  border-radius: 50px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 6px 28px rgba(255,153,0,0.38);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(255,153,0,0.48);
}
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-ghost {
  display: inline-block;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.22);
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.btn-ghost.dark {
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn-ghost.dark:hover { background: var(--navy-05); color: var(--navy); }

/* ── STATS BAND ──────────────────────── */
.stats-band {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-cell {
  padding: 22px 36px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-cell .n {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-cell .n .o { color: var(--orange); }
.stat-cell .n .b { color: var(--blue); }
.stat-cell .k {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-60);
  font-weight: 600;
}

/* ── SECTION HELPERS ─────────────────── */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.sec { padding: 64px 0; }
.sec.tight { padding: 6px 0; }
.sec-bg-white { background: #fff; border-top: 1px solid var(--border); }
.sec-bg-tint  { background: var(--navy-05); }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin: 0 0 8px;
}
.sec-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.sec-title em { color: var(--orange); font-style: normal; }
.sec-body {
  font-size: 15.5px;
  color: var(--navy-80);
  line-height: 1.72;
  margin: 0 0 20px;
  width: 100%;
  max-width: 1200px;
}
.sec-body b, .sec-body strong { color: var(--navy); }
a.plain { color: var(--blue); text-decoration: none; font-weight: 700; }
a.plain:hover { text-decoration: underline; }

/* ── FEATURE / AMPLIFIER CARDS ───────── */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
  align-items: stretch;
}
.fit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  border-top: 4px solid var(--blue);
  box-shadow: 0 1px 4px rgba(15,23,63,0.04);
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}
a.fit-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,63,0.12); }
.fit-card.orange { border-top-color: var(--orange); }
.fit-card.navy-t { border-top-color: var(--navy); }
.fit-card.red-t  { border-top-color: var(--gap); }
.fit-card .kicker {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--navy-60);
  margin-bottom: 8px;
}
.fit-card.orange .kicker { color: #8a5200; }
.fit-card.red-t .kicker  { color: var(--gap); }
.fit-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--navy);
  line-height: 1.3;
}
.fit-card p {
  font-size: 13.5px;
  color: var(--navy-80);
  margin: 0;
  line-height: 1.62;
}
.fit-card .go { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--blue); }

/* ── MID CTA ─────────────────────────── */
.mid-cta {
  background: var(--navy);
  padding: 60px 0px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mid-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(51,173,225,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.mid-cta-inner { position: relative; z-index: 1; }
.mid-cta h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.mid-cta h2 em { color: var(--orange); font-style: normal; }
.mid-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.68;
}

/* ── FOOTER ──────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.45);
  padding: 36px 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
}
.site-footer a { color: var(--blue); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .foot-brand {
  color: #fff; font-weight: 800; font-size: 14px;
  letter-spacing: 0.06em; text-decoration: none;
}
.site-footer .foot-brand em { color: var(--orange); font-style: normal; }
.site-footer .fine {
  margin-top: 10px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.3);
}

/* ── FILTER PANEL (catalog) ──────────── */
.filter-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(15,23,63,0.04);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.filter-panel .search-row { display: flex; gap: 10px; margin-bottom: 14px; }
.filter-panel input[type="search"] {
  flex: 1;
  font-size: 14px;
  font-family: inherit;
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  color: var(--navy);
  background: var(--navy-05);
}
.filter-panel input[type="search"]:focus { outline: 2px solid var(--blue); background: #fff; }
.filter-group { margin-bottom: 10px; }
.filter-group .fg-label {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 800; color: var(--navy-60);
  margin-bottom: 6px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12.5px;
  padding: 5px 13px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--navy-80);
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.chip:hover { border-color: var(--blue); color: var(--navy); transform: translateY(-1px); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.on.amp { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.chip .n { opacity: 0.6; font-size: 11px; margin-left: 3px; }
.filter-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--navy-60); font-weight: 600;
  border-top: 1px solid var(--border);
  padding-top: 12px; margin-top: 6px;
}
.filter-meta .clear { margin-left: auto; }

/* ── PRACTICE CARDS ──────────────────── */
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.pcard {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--blue);
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(15,23,63,0.04);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pcard:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,63,0.12); }
.pcard.amp-friction { border-left-color: var(--gap); }
.pcard.amp-shared { border-left-color: var(--blue); }
.pcard.amp-cog { border-left-color: var(--orange); }
.pcard .pid-row { display: flex; gap: 8px; align-items: baseline; margin-bottom: 7px; flex-wrap: wrap; }
.pcard .pid {
  font-size: 11px; font-weight: 800; color: var(--navy-60);
  background: var(--navy-05); border-radius: 6px; padding: 2px 8px;
  letter-spacing: 0.04em;
}
.pcard .mini-tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pcard .mini-tag.friction { color: var(--gap); }
.pcard .mini-tag.shared { color: var(--blue); }
.pcard .mini-tag.cog { color: #8a5200; }
.pcard h3 { font-size: 15px; font-weight: 800; color: var(--navy); margin: 0 0 8px; line-height: 1.35; }
.pcard .barrier { font-size: 13px; color: var(--navy-80); margin: 0; line-height: 1.55; }
.pcard .barrier b { color: var(--gap); font-weight: 700; }
.pcard .foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.pcard .foot .t {
  font-size: 10.5px; background: var(--navy-05); color: var(--navy-60);
  border-radius: 10px; padding: 3px 9px; font-weight: 600;
}

/* ── DETAIL OVERLAY ──────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,63,0.55);
  display: none;
  z-index: 300;
  overflow-y: auto;
  padding: 4vh 16px;
}
.overlay.open { display: block; }
.detail {
  max-width: 860px;
  margin: 0 auto;
  background: var(--navy-05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,23,63,0.35);
}
.detail .d-head {
  background: var(--navy);
  color: #fff;
  padding: 24px 28px;
  position: relative;
}
.detail .d-head .eyebrow { color: var(--blue); margin-bottom: 10px; }
.detail .d-head h2 { font-size: 20px; font-weight: 800; margin: 0; line-height: 1.4; letter-spacing: -0.01em; }
.detail .d-head .close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.detail .d-head .close:hover { background: rgba(255,255,255,0.25); }
.detail .d-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.detail .d-tags .t {
  font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  border-radius: 12px; padding: 3px 11px;
}
.detail .d-tags .t.orange { background: rgba(255,153,0,0.18); border-color: var(--orange); color: var(--orange); }
.detail .d-body { padding: 20px 28px 28px; }
.d-sec {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 12px;
}
.d-sec .hd {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-60); margin-bottom: 8px;
}
.d-sec p { font-size: 13.5px; color: var(--navy-80); margin: 0 0 8px; line-height: 1.62; white-space: pre-line; }
.d-sec p:last-child { margin-bottom: 0; }
.d-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.d-sec.gap-side { border-top: 3px solid var(--gap); }
.d-sec.gap-side .hd { color: var(--gap); }
.d-sec.good-side { border-top: 3px solid var(--blue); }
.d-sec.good-side .hd { color: var(--blue); }
.d-benefits { display: flex; flex-wrap: wrap; gap: 6px; }
.benefit-chip {
  font-size: 12px; padding: 4px 12px; border-radius: 12px; font-weight: 600;
  background: var(--blue-20); color: var(--navy);
}
.d-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.d-nav button {
  background: #fff; border: 1px solid var(--border-strong); border-radius: 20px;
  font-size: 12.5px; font-weight: 700; color: var(--navy); padding: 9px 18px;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
.d-nav button:hover:not(:disabled) { background: var(--navy-05); }
.d-nav button:disabled { opacity: 0.4; cursor: default; }

/* ── WIZARD ──────────────────────────── */
.wiz-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 1px 4px rgba(15,23,63,0.04); padding: 24px 26px;
}
.wiz-card .q { font-size: 18px; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.wiz-card .hint { font-size: 13px; color: var(--navy-60); margin: 0 0 16px; }
.wiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wiz-opt {
  background: #fff; border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 14px 17px; cursor: pointer; text-align: left; font-family: inherit;
  font-size: 14px; color: var(--navy); font-weight: 700; line-height: 1.45;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.wiz-opt:hover { border-color: var(--blue); background: var(--blue-10); transform: translateY(-1px); }
.wiz-opt.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.wiz-opt .sub { display: block; font-size: 12px; color: var(--navy-60); margin-top: 3px; font-weight: 400; }
.wiz-opt.on .sub { color: rgba(255,255,255,0.72); }

/* ── GATE FORM ───────────────────────── */
.gate-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 1px 4px rgba(15,23,63,0.04); padding: 28px 30px; max-width: 560px;
}
.gate-card label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.gate-card input[type="email"], .gate-card input[type="text"] {
  width: 100%; font-size: 14px; font-family: inherit;
  padding: 11px 16px; border: 1px solid var(--border-strong); border-radius: 10px;
  color: var(--navy); background: var(--navy-05); margin-bottom: 14px;
}
.gate-card input:focus { outline: 2px solid var(--blue); background: #fff; }
.form-err {
  display: none;
  background: var(--gap-bg); color: var(--gap);
  font-size: 13px; font-weight: 600;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
}
.form-ok {
  display: none;
  background: var(--good-bg); color: var(--good);
  font-size: 13px; font-weight: 600;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
}
.fine-print { font-size: 11.5px; color: var(--navy-60); margin-top: 12px; line-height: 1.5; }

/* ── PILLAR STRIP + ROWS ─────────────── */
.pillar-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 34px;
}
.pillar-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  border-top: 3px solid var(--blue);
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pillar-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,63,0.12); }
.pillar-chip:nth-child(odd) { border-top-color: var(--orange); }
.pillar-chip .p-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--navy-60);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pillar-chip h3 { font-size: 15px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.pillar-chip p { font-size: 12.5px; color: var(--navy-80); line-height: 1.5; margin: 0; }
.pillar-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 1px 4px rgba(15,23,63,0.04); padding: 22px 24px; margin-bottom: 14px;
  align-items: start;
}
.pillar-row .pn {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy); color: var(--orange);
  font-size: 21px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.pillar-row h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--navy); }
.pillar-row p { margin: 0; font-size: 14px; color: var(--navy-80); line-height: 1.62; }
.pillar-row .count {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-60); white-space: nowrap;
  background: var(--navy-05); border-radius: 12px; padding: 5px 12px;
}

/* ── GATE LAYOUT ─────────────────────── */
.gate-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 880px) {
  .gate-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero.compact h1 { font-size: 27px; }
  .hero-sub { font-size: 15px; }
  .sec-title { font-size: 26px; }
  .mid-cta h2 { font-size: 27px; }
  .fit-grid, .pcards, .d-two, .wiz-options { grid-template-columns: 1fr; }
  .pillar-strip { grid-template-columns: 1fr 1fr; }
  .pillar-row { grid-template-columns: 46px 1fr; }
  .pillar-row .count { grid-column: 2; justify-self: start; }
  .stat-cell { padding: 16px 20px; }
  .nav-links a.nav-link { display: none; }
  .nav-links a.nav-link.keep { display: inline; }
}
@media (max-width: 520px) {
  .hero { padding: 52px 20px 44px; }
  nav.site-nav { padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 44px 0; }
  .pillar-strip { grid-template-columns: 1fr; }
}
