/* Zan Psychology */

:root {
  --dusk: #2b2233;
  --dusk-2: #3a2e45;
  --mist: #f4eff5;
  --tint: #ebe2ee;
  --lilac: #e6d3e8;
  --heather: #7d5a8c;
  --ink: #2b2233;
  --slate: #5f5866;
  --white: #ffffff;

  --display: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --space: clamp(52px, 6.5vw, 92px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--heather); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--dusk); }

:focus-visible {
  outline: 2px solid var(--heather);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible, .contact :focus-visible { outline-color: var(--lilac); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--ink); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  text-wrap: balance;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.005em; }

p { margin: 0 0 1em; max-width: 64ch; }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}
.btn-light { background: var(--lilac); color: var(--dusk); }
.btn-light:hover { background: var(--white); color: var(--dusk); }
.btn-ghost { color: var(--lilac); padding-left: 0.4em; padding-right: 0.4em; text-decoration: underline; text-underline-offset: 5px; }
.btn-ghost:hover { color: var(--white); }
.btn-dark { background: var(--dusk); color: var(--white); }
.btn-dark:hover { background: var(--heather); color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--dusk);
  color: var(--mist);
  padding-bottom: clamp(64px, 8vw, 116px);
}

.hero-bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 28px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--lilac); }
.brand-mark { width: 38px; height: 38px; }
.brand-mark path, .brand-mark circle { stroke: var(--lilac); fill: none; }
.brand-mark .core { fill: rgba(230, 211, 232, 0.16); }
.brand-mark .dot { fill: var(--lilac); stroke: none; }

nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
nav a {
  color: var(--lilac);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.98rem;
}
nav a:hover { color: var(--white); text-decoration: underline; }

.hero-body { position: relative; z-index: 2; padding-top: clamp(40px, 6vw, 84px); }
.hero-text { max-width: 640px; }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 0.45em;
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--lilac);
  max-width: 34em;
  margin-bottom: 2em;
}

/* The symbol: three soft shapes that open out and gather in around the centre */
.soft {
  position: absolute;
  z-index: 1;
  width: min(50vw, 600px);
  aspect-ratio: 1;
  right: max(-8vw, calc((100vw - 1120px) / 2 - 150px));
  top: 50%;
  transform: translateY(-46%);
  pointer-events: none;
}
.soft-layer { position: absolute; transform: scale(var(--min, .4)); }
.soft-layer.l1 { inset: 4.5%; --min: .36; }
.soft-layer.l2 { inset: 17%;  --min: .42; }
.soft-layer.l3 { inset: 29%;  --min: .5; }
.shape { width: 100%; height: 100%; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--lilac); }
.l1 .shape { opacity: 0.32; border-width: 1px; background: rgba(230, 211, 232, 0.03); }
.l2 .shape { opacity: 0.62; border-width: 1.2px; background: rgba(230, 211, 232, 0.07); }
.l3 .shape { border-width: 1.6px; background: rgba(230, 211, 232, 0.14); }
.soft-dot {
  position: absolute; inset: 46.5%;
  border-radius: 50%;
  background: var(--lilac);
}

@media (prefers-reduced-motion: no-preference) {
  .soft-layer { animation: gather 9s ease-in-out infinite; }
  .l1 { animation-name: gather-1; }
  .l2 { animation-name: gather-2; }
  .l3 { animation-name: gather-3; }
  .shape { animation: morph 9s ease-in-out infinite; }
  .shape.alt { animation-name: morph-alt; }
}
@media (prefers-reduced-motion: reduce) {
  .l1 { transform: scale(.85); } .l2 { transform: scale(.9); } .l3 { transform: scale(.95); }
}
@keyframes gather-1 { 0%, 100% { transform: scale(.36); } 50% { transform: scale(1.04); } }
@keyframes gather-2 { 0%, 100% { transform: scale(.42); } 50% { transform: scale(1.07); } }
@keyframes gather-3 { 0%, 100% { transform: scale(.5); }  50% { transform: scale(1.1); } }
@keyframes morph {
  0%, 100% { border-radius: 50%; transform: rotate(0deg); }
  25% { border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%; }
  50% { border-radius: 60% 40% 52% 48% / 42% 60% 40% 58%; transform: rotate(14deg); }
  75% { border-radius: 44% 56% 47% 53% / 56% 44% 54% 46%; }
}
@keyframes morph-alt {
  0%, 100% { border-radius: 50%; transform: rotate(0deg); }
  25% { border-radius: 45% 55% 42% 58% / 55% 45% 58% 42%; }
  50% { border-radius: 42% 58% 60% 40% / 58% 40% 60% 42%; transform: rotate(-14deg); }
  75% { border-radius: 53% 47% 44% 56% / 46% 54% 45% 55%; }
}

/* ---------- Sections ---------- */

.section { padding: var(--space) 0; }
.section-tint { background: var(--tint); }

.intro { font-size: 1.15rem; color: var(--slate); margin-bottom: 1.6em; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split-head p { color: var(--slate); }

.split-head h3 { margin: 1.8em 0 0.4em; font-size: 1.1rem; }

.concerns { border-top: 1px solid rgba(43, 34, 51, 0.14); }
.concerns details { border-bottom: 1px solid rgba(43, 34, 51, 0.14); }
.concerns summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 0.7em 2.2em 0.7em 1.6em;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.concerns summary::-webkit-details-marker { display: none; }
/* ring marker: fills when the item is open */
.concerns summary::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 0.6em; height: 0.6em;
  border: 1.5px solid var(--heather);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background-color 0.2s;
}
/* plus sign that turns into a cross */
.concerns summary::after {
  content: "+";
  position: absolute; right: 0.1em; top: 50%;
  transform: translateY(-52%);
  font-weight: 400;
  color: var(--heather);
  transition: transform 0.2s;
}
.concerns summary:hover { color: var(--heather); }
.concerns details[open] summary::before { background: var(--heather); }
.concerns details[open] summary::after { transform: translateY(-52%) rotate(45deg); }
.concerns details p {
  margin: -0.2em 0 0;
  padding: 0 2.2em 1.1em calc(clamp(1.2rem, 2vw, 1.5rem) * 1.6);
  color: var(--slate);
  font-size: 1rem;
}
@media (prefers-reduced-motion: reduce) {
  .concerns summary::before, .concerns summary::after { transition: none; }
}

.approaches {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.approaches dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  padding-top: 1em;
  border-top: 2px solid var(--heather);
  margin-bottom: 0.5em;
}
.approaches dd { margin: 0; color: var(--slate); }

.steps {
  list-style: none; margin: 1.4em 0 0; padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.steps li { counter-increment: step; position: relative; padding-top: 72px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--heather);
  color: var(--heather);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
}
.steps li:first-child::before { background: var(--heather); color: var(--white); }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute; top: 24px; left: 60px; right: -12px;
  border-top: 1px dashed rgba(125, 90, 140, 0.5);
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { color: var(--slate); font-size: 1rem; }

.fee-panel {
  background: var(--white);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
}
.fees { margin: 0 0 28px; }
.fees > div {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 0.9em 0;
  border-bottom: 1px solid rgba(43, 34, 51, 0.12);
}
.fees > div:first-child { padding-top: 0; }
.fees dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.fees dd { margin: 0; color: var(--slate); text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.per { font-size: 0.92rem; margin-top: 2px; }
.fee-note { display: block; font-family: var(--body); font-weight: 400; font-size: 0.92rem; color: var(--slate); margin-top: 2px; }
.price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--dusk);
  letter-spacing: -0.02em;
  margin-right: 0.35em;
}
.fine { margin-top: 24px; }
.fine h3 { font-size: 1.05rem; margin: 1.4em 0 0.3em; }
.fine p { color: var(--slate); font-size: 0.98rem; margin-bottom: 0; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.portrait { margin: 0; position: sticky; top: 32px; }
.portrait img { border-radius: 200px 200px 20px 20px; width: 100%; height: auto; }
.about-text h3 { margin: 1.5em 0 0.6em; }
.creds { list-style: none; margin: 0; padding: 0; }
.creds li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 0.55em 0;
  border-bottom: 1px solid rgba(43, 34, 51, 0.12);
  font-size: 1rem;
}
.creds span { color: var(--slate); font-variant-numeric: tabular-nums; }
.links { display: flex; gap: 24px; margin-top: 1.6em; font-family: var(--display); }

.contact { background: var(--dusk); color: var(--mist); }
.contact h2 { color: var(--white); }
.contact .intro { color: var(--lilac); }
.email {
  color: var(--white);
  font-family: var(--display);
  font-size: 1.15rem;
}
.email:hover { color: var(--lilac); }
.crisis {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(230, 211, 232, 0.2);
  font-size: 0.92rem;
  color: rgba(230, 211, 232, 0.8);
  max-width: 780px;
  text-wrap: balance;
}

.footer { background: var(--dusk); color: rgba(230, 211, 232, 0.6); font-size: 0.88rem; }
.footer .wrap { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(230, 211, 232, 0.12); }
.footer p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split, .about { grid-template-columns: 1fr; }
  .approaches { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
  .portrait { position: static; max-width: 360px; }
}

@media (max-width: 640px) {
  nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .soft { width: 130vw; right: -62vw; opacity: 0.35; }
  .fees > div { flex-direction: column; gap: 4px; }
  .fees dd { text-align: left; align-items: flex-start; }
}
.price { margin-right: 0; line-height: 1; }

/* Contact and footer: centred */
.contact .wrap, .footer .wrap { text-align: center; }
.contact .intro, .contact .crisis { margin-left: auto; margin-right: auto; }
.contact .actions { justify-content: center; }
.footer p { margin-left: auto; margin-right: auto; }

/* Tighter end of page */
.contact { padding-bottom: clamp(40px, 5vw, 64px); }
.footer .wrap { padding-top: 20px; padding-bottom: 24px; }
