/* Components shared by the homepage, For you and For partners pages (lifted from the homepage inline styles). */
main section { position: relative; }
main section > .container { position: relative; z-index: 1; }
.reveal.is-visible .card-node { opacity: 1; transform: scale(1); }
/* Glowing accent node on each post-journey card — echoes the journey's node
   spheres; pulses in the card's own --accent hue. */
.node-card { position: relative; overflow: visible; }
.node-card .card-node {
  position: absolute;
  top: -7px; left: 30px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent, var(--lilac));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, var(--lilac)) 22%, transparent),
              0 0 16px 2px var(--accent, var(--lilac));
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.5s var(--ease-out) 0.25s, transform 0.5s var(--ease-out) 0.25s;
}
.node-card .card-node::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 1.5px; height: 16px;
  transform: translate(-50%, 4px);
  background: linear-gradient(to bottom, var(--accent, var(--lilac)), transparent);
  opacity: 0.5;
}
.post-journey .reveal.is-visible .card-node { opacity: 1; transform: scale(1); }
.node-card .card-node { animation: nodePulse 3.4s ease-in-out infinite; }
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, var(--lilac)) 18%, transparent), 0 0 14px 2px var(--accent, var(--lilac)); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent, var(--lilac)) 10%, transparent), 0 0 22px 4px var(--accent, var(--lilac)); }
}
.node-card:hover { border-color: color-mix(in srgb, var(--accent, var(--lilac)) 45%, transparent); }
.node-card:hover .card-icon {
  color: var(--accent, var(--lilac-light));
  border-color: color-mix(in srgb, var(--accent, var(--lilac)) 40%, transparent);
}

/* Parallax depth layers for ambient section glows (driven by inline JS). */
.parallax { will-change: transform; }
.section-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}
.post-journey section { position: relative; }

/* =================== Audience selector =================== */
#audience .aud-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 8px;
}
.aud-tab {
  --acc: var(--lilac);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 34px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), border-color 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}
.aud-tab::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.aud-tab:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--acc) 45%, transparent); box-shadow: var(--glow-purple); }
.aud-tab:hover::before,
.aud-tab.is-active::before { opacity: 1; }
.aud-tab.is-active { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), var(--glow-purple); }
.aud-tab .aud-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--acc);
  background: color-mix(in srgb, var(--acc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
}
.aud-tab .aud-ico svg { width: 26px; height: 26px; }
.aud-tab h3 { margin: 4px 0 0; font-size: clamp(21px, 2.2vw, 27px); }
.aud-tab p { margin: 0; font-size: 14.5px; max-width: 42ch; }
.aud-tab .aud-open {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--acc);
}
.aud-tab .aud-open svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease-out); }
.aud-tab.is-active .aud-open svg { transform: rotate(90deg); }

/* expanding panel — smooth auto-height via grid-rows */
.aud-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out), opacity 0.4s ease, margin 0.5s var(--ease-out);
  opacity: 0;
  margin-top: 0;
}
.aud-panel.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 24px; }
.aud-panel > .aud-panel-inner { overflow: hidden; min-height: 0; }

.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aud-item {
  display: block;                 /* --acc inherits from the panel (teal / pink) */
  padding: 24px 22px;
  border-radius: 15px;
  border: 1px solid var(--card-border);
  background: rgba(155,127,212,0.04);
  color: inherit;
  transition: transform 0.24s var(--ease-out), border-color 0.24s var(--ease-out), background-color 0.24s ease;
}
.aud-item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--acc) 40%, transparent); background: color-mix(in srgb, var(--acc) 7%, transparent); }
.aud-item .aud-ico {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 11px; color: var(--acc);
  background: color-mix(in srgb, var(--acc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc) 26%, transparent);
  margin-bottom: 15px;
}
.aud-item .aud-ico svg { width: 21px; height: 21px; }
.aud-item h4 { margin: 0 0 8px; font-size: 16px; }
.aud-item p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; }
.aud-item .aud-tests {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--text-dim); text-transform: uppercase; line-height: 1.7;
  display: block; margin-bottom: 14px;
}
.aud-item .aud-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--acc);
}
.aud-item .aud-more svg { width: 14px; height: 14px; transition: transform 0.22s var(--ease-out); }
.aud-item:hover .aud-more svg { transform: translateX(4px); }

.aud-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 26px; padding-top: 24px;
  border-top: 1px solid rgba(155,127,212,0.12);
}
.aud-ctas .btn { min-height: 44px; padding: 10px 20px; font-size: 14px; }
@media (max-width: 900px) {
  #audience .aud-picker { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .aud-tab { padding: 14px 12px; gap: 8px; }
  .aud-tab .aud-ico { width: 34px; height: 34px; border-radius: 9px; }
  .aud-tab .aud-ico svg { width: 17px; height: 17px; }
  .aud-tab h3 { font-size: 14.5px; }
  .aud-tab p { font-size: 11px; line-height: 1.5; }
  .aud-tab .aud-open { font-size: 11px; margin-top: 2px; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .aud-item { padding: 13px 12px; border-radius: 12px; }
  .aud-item .aud-ico { width: 30px; height: 30px; border-radius: 8px; margin-bottom: 9px; }
  .aud-item .aud-ico svg { width: 16px; height: 16px; }
  .aud-item h4 { font-size: 13px; margin-bottom: 5px; }
  .aud-item p { font-size: 11px; line-height: 1.5; margin-bottom: 8px; }
  .aud-item .aud-tests { font-size: 8.5px; line-height: 1.6; margin-bottom: 8px; }
  .aud-item .aud-more { font-size: 11px; }
  .aud-ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .node-card .card-node { animation: none; opacity: 1; transform: scale(1); } .parallax { transform: none !important; } }
#all-stages .svc-program { margin-top: 52px; }
.svc-program-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.svc-program-head h3 { margin: 0; font-size: 22px; color: var(--text); }
.svc-program-head h3::before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--acc); margin-right: 11px; box-shadow: 0 0 10px var(--acc);
}
.svc-program-link { font-size: 13.5px; font-weight: 500; color: var(--lilac); }
.svc-program-link:hover { text-decoration: underline; }
.svc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.svc-duo .aud-item { padding: 30px 26px; }
.svc-duo .aud-item h4 { font-size: 19px; }
@media (max-width: 620px) {
  .svc-duo { grid-template-columns: 1fr; }
  .svc-program-head h3 { font-size: 17px; }
  #all-stages .svc-program { margin-top: 34px; }
}
@media (max-width: 620px) {
/* ---- Mobile: half-height boxes, details expand on tap ---- */
@media (max-width: 620px) {
  .aud-tab p { display: none; }
  .aud-tab h3 { margin-top: 2px; }
  .aud-item p, .aud-item .aud-tests, .aud-item .aud-more,
  .grid-3 .card p, .grid-3 .card .card-link { display: none; }
  .aud-item.m-open p, .grid-3 .card.m-open p { display: block; }
  .aud-item.m-open .aud-tests { display: block; }
  .aud-item.m-open .aud-more, .grid-3 .card.m-open .card-link { display: inline-flex; }
  .aud-item h4, .grid-3 .card h4 { margin-bottom: 0; }
  .aud-item.m-open h4, .grid-3 .card.m-open h4 { margin-bottom: 6px; }
  .aud-item::after, .grid-3 .card::after {
    content: "Tap for details \25BE"; display: block; margin-top: 7px;
    font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim);
  }
  .aud-item.m-open::after, .grid-3 .card.m-open::after { content: none; }
}
