/* ==========================================================
   Unchaos — shared site styles for the practitioner-first rebuild
   (header dropdown nav, footer, waitlist form, live counter,
    concentric-circles hero motif). Layers on top of base.css.
   ========================================================== */

/* ---------------- HEADER / NAV ---------------- */
.topnav-inner { max-width: 1240px; }

.topnav-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topnav-nav > .nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  background: none;
  font-family: var(--sans);
  letter-spacing: .005em;
  transition: background .2s ease, color .2s ease;
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-item.open > .nav-link,
.nav-link.active { background: var(--ink); color: var(--bg); }
.nav-link .caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .25s ease;
  opacity: .8;
}
.nav-item.open > .nav-link .caret { transform: rotate(-135deg) translate(-1px, -1px); }

/* Dropdown panel */
.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 230px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.nav-menu::before {
  /* hover bridge so the gap between trigger and menu stays hoverable */
  content: "";
  position: absolute;
  left: 0; right: 0; top: -14px; height: 14px;
}
.nav-item:hover > .nav-menu,
.nav-item:focus-within > .nav-menu,
.nav-item.open > .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}
.nav-menu a .mini {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--accent-deep);
  opacity: .85;
}
.nav-menu a:hover,
.nav-menu a:focus-visible { background: var(--bg-alt); color: var(--accent-deep); }

.nav-cta {
  margin-left: 8px;
  padding: 10px 20px;
  font-size: 13.5px;
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-cta:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--accent-deep); color: var(--bg); }

/* Mobile menu toggle */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-burger span {
  width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-burger { display: flex; }
  .topnav-nav {
    position: fixed;
    top: 74px; left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--card);
    border: 1.5px solid var(--ink);
    border-radius: 20px;
    box-shadow: 8px 8px 0 var(--ink);
    padding: 14px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 540;
  }
  body.nav-open .topnav-nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { width: 100%; justify-content: space-between; font-size: 16px; padding: 13px 16px; }
  .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 2px 0 6px 16px;
    padding: 2px 0 2px 8px;
    min-width: 0;
    display: none;
  }
  .nav-item.open > .nav-menu { display: flex; }
  .nav-menu::before { display: none; }
  .nav-cta { margin: 8px 0 0; width: 100%; justify-content: center; }
}

/* ---------------- CONCENTRIC HERO ---------------- */
.launch-hero {
  position: relative;
  overflow: hidden;
  padding: 170px 0 96px;
  text-align: center;
}
.launch-hero .blob { z-index: 0; }
.lh-blob-1 { width: 460px; height: 460px; background: var(--accent-2); top: -130px; right: -60px; opacity: .42; }
.lh-blob-2 { width: 380px; height: 380px; background: var(--accent-3); bottom: -150px; left: -110px; opacity: .26; }

/* concentric rings, centered behind the content */
.lh-rings {
  position: absolute;
  top: 50%; left: 50%;
  width: min(1080px, 150vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  display: grid;
  place-items: center;
}
.lh-rings span {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  width: 100%; height: 100%;
  opacity: 0;
  animation: lh-ripple 7s ease-out infinite;
}
.lh-rings span:nth-child(1) { animation-delay: 0s; }
.lh-rings span:nth-child(2) { animation-delay: 1.4s; }
.lh-rings span:nth-child(3) { animation-delay: 2.8s; }
.lh-rings span:nth-child(4) { animation-delay: 4.2s; }
.lh-rings span:nth-child(5) { animation-delay: 5.6s; }
@keyframes lh-ripple {
  0%   { transform: scale(.12); opacity: 0; }
  12%  { opacity: .5; }
  70%  { opacity: .12; }
  100% { transform: scale(1); opacity: 0; }
}
/* steady guide rings so something is always visible */
.lh-rings::before,
.lh-rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--line);
}
.lh-rings::before { width: 46%; height: 46%; }
.lh-rings::after { width: 72%; height: 72%; border-style: dashed; border-color: color-mix(in oklab, var(--accent) 45%, transparent); }

.lh-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22%; height: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, color-mix(in oklab, var(--accent-2) 60%, var(--card)), var(--card) 70%);
  border: 1.5px solid var(--accent);
  animation: lh-breathe 6s ease-in-out infinite;
}
@keyframes lh-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.06); }
}

.lh-inner {
  position: relative; z-index: 2; max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.lh-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1.5px solid var(--ink);
  padding: 9px 18px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 4px;
}
.lh-eyebrow .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 70%, transparent);
  animation: livepulse 2.4s infinite;
}
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.launch-hero h1 {
  font-size: clamp(46px, 6.6vw, 96px);
  font-weight: 300; letter-spacing: -0.03em; line-height: 1.06;
  margin: 0; text-wrap: balance;
}
.launch-hero h1 em { color: var(--accent-deep); font-weight: 400; }
.lh-sub {
  font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-soft);
  max-width: 52ch; margin: 0; text-wrap: pretty;
}
.lh-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted);
  margin: 2px 0 6px;
}
.lh-meta span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.lh-meta span:not(:last-child)::after { content: "·"; color: var(--accent); margin-left: 12px; }
.lh-cta .btn-primary { border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 16px 30px; font-size: 16px; }
.lh-cta .btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--accent-deep); }

@media (max-width: 600px) {
  .launch-hero { padding: 132px 0 64px; }
  .lh-rings { width: 150vw; }
}

/* ---------------- SECTION HELPERS ---------------- */
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { margin: 16px 0 0; font-weight: 300; }
.sec-head h2 em { color: var(--accent-deep); font-weight: 400; }
.sec-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); line-height: 1.6; margin-top: 18px; max-width: 64ch; text-wrap: pretty; }
.sec-head.center .sec-lead { margin-left: auto; margin-right: auto; }

.prose p { font-size: 18px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 18px; max-width: 66ch; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.footnote {
  font-family: var(--mono); font-size: 12px; letter-spacing: .03em;
  color: var(--muted); margin-top: 14px; line-height: 1.6;
}

/* ---------------- WAITLIST BLOCK ---------------- */
.waitlist-section { padding: 24px 0 88px; }
.wl-shell {
  background: var(--ink); color: var(--bg);
  border-radius: 30px; padding: 56px;
  border: 1.5px solid var(--ink); box-shadow: 12px 12px 0 var(--accent);
  position: relative; overflow: hidden;
}
.wl-shell::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 88% 8%, color-mix(in oklab, var(--accent) 38%, transparent), transparent 46%),
    radial-gradient(circle at 4% 96%, color-mix(in oklab, var(--accent-3) 32%, transparent), transparent 50%);
}
.wl-shell > * { position: relative; z-index: 1; }
.wl-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: start; }

.wl-copy .eyebrow { color: var(--accent-2); }
.wl-copy h2 { color: var(--bg); margin: 16px 0 16px; font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); }
.wl-copy h2 em { color: var(--accent-2); font-weight: 400; }
.wl-copy p { color: color-mix(in oklab, var(--bg) 82%, transparent); font-size: 16.5px; line-height: 1.62; max-width: 44ch; }

/* live counter */
.wl-counter {
  display: flex; flex-direction: column; gap: 6px;
  margin: 26px 0 4px; padding: 22px 24px;
  background: color-mix(in oklab, var(--bg) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent-2) 45%, transparent);
  border-radius: 16px;
}
.wl-counter .count-line {
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; line-height: 1.15;
  color: var(--bg);
}
.wl-counter .count-line b {
  font-style: italic; color: var(--accent-2); font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.wl-counter .count-urgency {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  color: color-mix(in oklab, var(--bg) 65%, transparent); text-transform: uppercase;
}

/* the form / accordion */
.wl-panel {
  background: var(--card); color: var(--ink);
  border-radius: 22px; padding: 12px;
  box-shadow: 6px 6px 0 var(--accent-2);
}
.wl-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 24px;
  background: var(--accent); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 14px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wl-toggle:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--accent-2); }
.wl-block.is-open .wl-toggle { display: none; }

.wl-form-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s cubic-bezier(.4,0,.2,1);
}
.wl-block.is-open .wl-form-wrap { grid-template-rows: 1fr; }
.wl-form-inner { overflow: hidden; min-height: 0; }
.wl-form { display: flex; flex-direction: column; gap: 14px; padding: 14px 12px 8px; }

.wl-fld { display: flex; flex-direction: column; gap: 7px; }
.wl-fld label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 500;
}
.wl-fld input,
.wl-fld select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-family: var(--sans); font-size: 15.5px;
  background: var(--bg); color: var(--ink);
  outline: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.wl-fld select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-deep) 50%),
    linear-gradient(135deg, var(--accent-deep) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.wl-fld input:focus,
.wl-fld select:focus {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
.wl-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* conditional accrediting-body field */
.wl-conditional {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s ease;
}
.wl-conditional.show { grid-template-rows: 1fr; }
.wl-conditional > div { overflow: hidden; min-height: 0; }
.wl-conditional .wl-fld { padding-top: 4px; }

.wl-value-label {
  font-family: var(--sans); font-size: 14.5px; line-height: 1.5;
  color: var(--ink); font-weight: 500;
}
.wl-submit {
  margin-top: 4px;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  background: var(--ink); color: var(--bg);
  border: 1.5px solid var(--ink); border-radius: 12px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  box-shadow: 4px 4px 0 var(--accent);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wl-submit:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--accent); background: var(--accent-deep); }
.wl-submit[disabled] { opacity: .65; cursor: progress; transform: none; }

.wl-quiet {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 22%, transparent);
}
.wl-quiet p {
  font-size: 13.5px; line-height: 1.5;
  color: color-mix(in oklab, var(--bg) 72%, transparent); margin: 0; max-width: none;
}
.wl-quiet a { color: var(--accent-2); }
.wl-quiet a:hover { color: var(--bg); }

/* success state */
.wl-success { display: none; padding: 20px 14px 14px; text-align: center; }
.wl-block.is-success .wl-panel .wl-toggle,
.wl-block.is-success .wl-form-wrap { display: none; }
.wl-block.is-success .wl-success { display: block; animation: pop .3s ease; }
.wl-success .tick {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); border: 1.5px solid var(--ink);
  display: grid; place-items: center; margin: 4px auto 16px;
  font-size: 24px; color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.wl-success h3 {
  font-family: var(--serif); font-weight: 400; font-size: 26px;
  color: var(--ink); margin-bottom: 8px;
}
.wl-success p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; max-width: 36ch; margin: 0 auto 20px; }
.wl-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--accent-3); color: var(--bg);
  border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wl-whatsapp:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: var(--bg); }

@media (max-width: 900px) {
  .wl-grid { grid-template-columns: 1fr; gap: 36px; }
  .wl-shell { padding: 40px 26px; box-shadow: 8px 8px 0 var(--accent); }
  .wl-row2 { grid-template-columns: 1fr; }
}

/* ---------------- FOUNDER NOTE ---------------- */
.founder { padding: 8px 0 88px; }
.founder-card {
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 52px; align-items: center;
  background: var(--bg-alt); border: 1.5px solid var(--line);
  border-radius: 28px; padding: 44px;
}
.founder-photo {
  border: 1.5px solid var(--ink); border-radius: 20px; overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink); aspect-ratio: 4/5; background: var(--bg);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.founder-body .eyebrow { margin-bottom: 14px; }
.founder-body .prose p { font-size: 17px; }
.founder-sign {
  font-family: var(--serif); font-style: italic; font-size: 19px;
  color: var(--accent-deep); margin-top: 20px;
}
.founder-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-deep); border-bottom: 1px solid var(--accent-deep); padding-bottom: 4px; width: fit-content;
}
.founder-link:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 820px) {
  .founder-card { grid-template-columns: 1fr; gap: 32px; padding: 30px 24px; }
  .founder-photo { max-width: 320px; }
}

/* ---------------- FOOTER (socials) ---------------- */
.sitefoot-grid { grid-template-columns: 1.5fr 1fr 1fr; }
.foot-socials { display: flex; flex-direction: column; gap: 9px; }
.foot-socials a {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 14.5px; color: var(--ink-soft);
}
.foot-socials a .ic {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--card); color: var(--ink);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.foot-socials a:hover { color: var(--accent-deep); }
.foot-socials a:hover .ic { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.foot-bottomline { font-family: var(--serif); font-style: italic; color: var(--accent-deep); }

@media (max-width: 820px) {
  .sitefoot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sitefoot-grid { grid-template-columns: 1fr; }
}

/* ---------------- REDUCED MOTION ---------------- */
@media (prefers-reduced-motion: reduce) {
  .lh-rings span { animation: none; opacity: .14; transform: scale(.7); }
  .lh-rings span:nth-child(2) { transform: scale(.5); }
  .lh-rings span:nth-child(3) { transform: scale(.9); }
  .lh-rings span:nth-child(4),
  .lh-rings span:nth-child(5) { display: none; }
  .lh-core { animation: none; }
  .lh-eyebrow .dot { animation: none; }
  .blob { animation: none; }
  .reveal { transition: none; }
}
