:root {
  --magenta: #e91e8c;
  --magenta-bright: #f01992;
  --cyan: #22d3ee;
  --orange: #ff8a3d;
  --night: #12091f;
  --indigo: #20103b;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, .76);
  --ink-muted: rgba(255, 255, 255, .54);
  --line: rgba(255, 255, 255, .13);
  --surface: rgba(255, 255, 255, .055);
}

html { min-height: 100%; background: var(--night); }

body.bua-growth-app {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at 9% 5%, rgba(233, 30, 140, .24), transparent 31rem),
    radial-gradient(circle at 91% 69%, rgba(34, 211, 238, .15), transparent 35rem),
    linear-gradient(145deg, #12091f 0%, #20103b 51%, #0c1730 100%);
  background-attachment: fixed;
}

.bua-growth-app .growth-atmosphere,
.bua-growth-app .growth-atmosphere > span { position: fixed; pointer-events: none; }
.bua-growth-app .growth-atmosphere { inset: 0; z-index: 0; overflow: hidden; }
.bua-growth-app .growth-glow {
  border-radius: 50%;
  filter: blur(22px);
  animation: growthBreathe 9s ease-in-out infinite alternate;
}
.bua-growth-app .growth-glow-magenta {
  width: 25rem; height: 25rem; top: -12rem; left: -8rem;
  background: rgba(233, 30, 140, .17);
}
.bua-growth-app .growth-glow-cyan {
  width: 30rem; height: 30rem; right: -13rem; bottom: -13rem;
  background: rgba(34, 211, 238, .12); animation-delay: -3s;
}
.bua-growth-app .growth-ribbon {
  width: 48rem; height: 13rem;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%;
}
.bua-growth-app .growth-ribbon-one { top: 17%; right: -26rem; transform: rotate(-24deg); }
.bua-growth-app .growth-ribbon-two { bottom: 3%; left: -27rem; transform: rotate(17deg); }
@keyframes growthBreathe { to { transform: translate3d(1.2rem, 1rem, 0) scale(1.08); } }

.bua-growth-app .wrap {
  position: relative; z-index: 1;
  width: min(calc(100% - 3rem), 74rem); max-width: none;
  min-height: 100svh; margin: 0 auto; padding: 1.1rem 0 3rem;
}

.bua-growth-app .growth-brand {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.75rem; padding: .2rem .25rem 1rem;
}
.bua-growth-app .growth-wordmark {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--ink); text-decoration: none;
}
.bua-growth-app .growth-wordmark-emblem {
  display: grid; width: 3.2rem; height: 3.2rem; place-items: center;
  border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%;
  background: rgba(255, 255, 255, .055); box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .18);
}
.bua-growth-app .growth-wordmark-emblem img { width: 2.45rem; height: 2.45rem; object-fit: contain; }
.bua-growth-app .growth-wordmark > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.bua-growth-app .growth-wordmark strong { font-size: 1.05rem; font-weight: 900; letter-spacing: -.035em; }
.bua-growth-app .growth-wordmark small {
  margin-top: .28rem; color: var(--ink-muted); font-size: .67rem;
  font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.bua-growth-app .growth-help {
  min-height: 44px; padding: .6rem .25rem; border: 0;
  color: rgba(255, 255, 255, .7); font: 700 .75rem/1 "Montserrat", sans-serif;
  background: transparent; cursor: pointer;
}
.bua-growth-app .growth-help:hover { color: var(--cyan); }

.bua-growth-app .journeybar {
  position: sticky; top: 0; z-index: 20; padding: .65rem .25rem .55rem; border: 0;
  background: linear-gradient(180deg, rgba(18, 9, 31, .97) 65%, rgba(18, 9, 31, 0));
  backdrop-filter: blur(8px);
}
.bua-growth-app .journeybar .track { height: 3px; background: rgba(255, 255, 255, .1); }
.bua-growth-app .journeybar .track span {
  background: linear-gradient(90deg, var(--magenta), var(--orange), var(--cyan));
  box-shadow: 0 0 16px rgba(233, 30, 140, .42);
}
.bua-growth-app .journeybar .stepline { margin-top: .65rem; }
.bua-growth-app .journeybar .stepline .btn { display: none; }

.bua-growth-app .growth-layout {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .9fr);
  align-items: start; gap: clamp(2.5rem, 7vw, 7rem);
}
.bua-growth-app main { min-width: 0; }
.bua-growth-app .screen {
  min-height: min(42rem, calc(100svh - 10.5rem));
  padding: clamp(2.25rem, 6vh, 5rem) 0 2rem;
  animation: stageIn .48s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes stageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bua-growth-app .screen.leaving { animation: stageOut .18s ease both; }
@keyframes stageOut { to { opacity: 0; transform: translateY(-8px); } }

.bua-growth-app h1,
.bua-growth-app h2,
.bua-growth-app h3,
.bua-growth-app .serif,
.bua-growth-app .done h1,
.bua-growth-app .jhead h1 { font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif; }
.bua-growth-app .prompt { padding: 0 0 1.3rem; }
.bua-growth-app .prompt .lead,
.bua-growth-app .cap {
  display: block; margin-bottom: .9rem; color: #9beaf4;
  font-size: .73rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
}
.bua-growth-app .prompt .q,
.bua-growth-app .done h1,
.bua-growth-app .jhead h1 {
  max-width: 12ch; margin-bottom: 1rem; color: #fff;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(2.45rem, 5vw, 4.65rem); font-weight: 900;
  line-height: .98; letter-spacing: -.06em; overflow-wrap: anywhere;
  background: linear-gradient(102deg, #fff 18%, #f6b3dc 48%, #9beaf4 77%, #fff 94%);
  background-size: 210% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bua-growth-app p { color: var(--ink-soft); }
.bua-growth-app .prompt .statement {
  max-width: 46ch; margin-top: 1.6rem; padding: .9rem 0 .9rem 1.2rem;
  border-left: 2px solid var(--magenta); color: rgba(255, 255, 255, .88);
  font-size: clamp(1.05rem, 2vw, 1.32rem); font-style: normal; line-height: 1.55;
}
.bua-growth-app .consent-hero { display: block; min-height: 0; margin: 0; padding: 0; }
.bua-growth-app .consent-hero-visual { display: none; }
.bua-growth-app #view-consent > ul { display: grid !important; gap: .25rem; margin: .65rem 0 1.6rem !important; }
.bua-growth-app #view-consent > ul li {
  margin: 0 !important; color: var(--ink-soft) !important; font-size: .9rem; line-height: 1.55;
}

.bua-growth-app .answers { gap: .72rem; padding: 1.35rem 0; }
.bua-growth-app .opt,
.bua-growth-app .mood,
.bua-growth-app .lk,
.bua-growth-app .mirror,
.bua-growth-app .aside,
.bua-growth-app .revisitcard,
.bua-growth-app .stat,
.bua-growth-app .commit {
  border: 1px solid var(--line);
  background: radial-gradient(circle at 8% 0%, rgba(233, 30, 140, .075), transparent 54%), var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 18px 42px rgba(0, 0, 0, .13);
  backdrop-filter: blur(12px);
}
.bua-growth-app .opt,
.bua-growth-app .lk {
  min-height: 66px; padding: .95rem 1.15rem; border-radius: 1rem;
  color: rgba(255, 255, 255, .9); font-family: "Montserrat", sans-serif;
  font-weight: 600; line-height: 1.35;
}
.bua-growth-app .opt:hover,
.bua-growth-app .opt:focus-visible,
.bua-growth-app .lk:hover,
.bua-growth-app .lk:focus-visible,
.bua-growth-app .mood:hover,
.bua-growth-app .mood:focus-visible {
  border-color: rgba(34, 211, 238, .48); background: rgba(34, 211, 238, .09);
  transform: translateY(-2px);
}
.bua-growth-app .opt[aria-pressed="true"],
.bua-growth-app .lk[aria-pressed="true"],
.bua-growth-app .mood[aria-pressed="true"] {
  border-color: rgba(233, 30, 140, .62); background: rgba(233, 30, 140, .13);
  box-shadow: 0 0 0 1px rgba(233, 30, 140, .14), 0 1rem 2.5rem rgba(0, 0, 0, .18);
}
.bua-growth-app .opt .dot { border-color: rgba(255, 255, 255, .5); }
.bua-growth-app .opt[aria-pressed="true"] .dot { border-color: var(--magenta); background: var(--magenta); }

.bua-growth-app .btn {
  min-height: 50px; border-radius: 999px; color: #fff;
  font-family: "Montserrat", sans-serif; font-size: .92rem; font-weight: 800;
  background: linear-gradient(112deg, #bd1575, var(--magenta-bright) 52%, #8c42d7);
  box-shadow: 0 .9rem 2rem rgba(189, 21, 117, .22);
}
.bua-growth-app .btn:hover {
  background: linear-gradient(112deg, #d51a87, #ff2aa3 52%, #9b55e1);
  box-shadow: 0 1rem 2.4rem rgba(189, 21, 117, .3);
}
.bua-growth-app .btn.quiet,
.bua-growth-app .btn.ghost {
  color: #b5eff7; border: 1px solid rgba(34, 211, 238, .22);
  background: rgba(34, 211, 238, .075); box-shadow: none;
}
.bua-growth-app .btn.ghost { border-color: transparent; }
.bua-growth-app .btnrow { gap: .65rem; }

.bua-growth-app .growth-stage-art {
  position: sticky; top: 8.6rem; display: flex; min-width: 0;
  min-height: min(39rem, calc(100svh - 11rem)); margin: 0;
  align-items: center; justify-content: center; flex-direction: column;
  overflow: visible; isolation: isolate;
}
.bua-growth-app .growth-stage-art::before {
  content: ""; position: absolute; z-index: -1; width: min(34vw, 27rem); aspect-ratio: 1;
  border: 1px solid rgba(34, 211, 238, .16); border-radius: 47% 53% 57% 43%;
  transform: rotate(-8deg); animation: lineDrift 10s ease-in-out infinite alternate;
}
@keyframes lineDrift { to { transform: rotate(3deg) scale(1.04); border-radius: 56% 44% 45% 55%; } }
.bua-growth-app .growth-stage-art img {
  display: block; width: min(100%, 34rem); height: auto;
  max-height: min(34rem, calc(100svh - 15rem));
  object-fit: contain; object-position: center;
  filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, .34));
  animation: artFloat 7s ease-in-out infinite alternate;
}
@keyframes artFloat { to { transform: translateY(-.7rem); } }
.bua-growth-app .growth-stage-art figcaption {
  max-width: 31ch; margin-top: .8rem; color: var(--ink-muted);
  font-size: .77rem; font-weight: 600; line-height: 1.55; text-align: center;
}

.bua-growth-app .mirror,
.bua-growth-app .aside,
.bua-growth-app .revisitcard { border-radius: 1.15rem; padding: 1.3rem 1.4rem; }
.bua-growth-app .mirror {
  border-color: rgba(233, 30, 140, .25);
  background: linear-gradient(145deg, rgba(233, 30, 140, .12), rgba(34, 211, 238, .055));
}
.bua-growth-app .mirror p { color: #fff; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.bua-growth-app .aside.lesson { border-color: rgba(34, 211, 238, .25); }
.bua-growth-app .moods { gap: .7rem; padding: 1.35rem 0; }
.bua-growth-app .mood {
  min-height: 76px; border-radius: 1rem; color: var(--ink-soft);
  font-family: "Montserrat", sans-serif; font-weight: 700;
}
.bua-growth-app .lk .steps i { background: rgba(255, 255, 255, .13); }
.bua-growth-app .lk .steps i.f { background: var(--magenta); }
.bua-growth-app details.why { margin-top: 1.1rem; }
.bua-growth-app details.why summary { color: var(--ink-muted); font-weight: 700; }
.bua-growth-app details.why summary::before { color: var(--cyan); }
.bua-growth-app details.why p { color: var(--ink-muted); }

.bua-growth-app #view-summary .done { padding: 0; }
.bua-growth-app .checkring { width: 68px; height: 68px; margin-bottom: 1.4rem; }
.bua-growth-app .checkring .ringfill,
.bua-growth-app .checkring .tick { stroke: var(--magenta-bright); }
.bua-growth-app .done .muted,
.bua-growth-app .muted { color: var(--ink-muted); }
.bua-growth-app .jhead { padding: 0 0 1.5rem; align-items: center; }
.bua-growth-app .jhead h1 { max-width: 9ch; }
.bua-growth-app .path { margin: 1.25rem 0 2rem; }
.bua-growth-app .streakring .t { stroke: rgba(255, 255, 255, .12); }
.bua-growth-app .streakring .v,
.bua-growth-app .node.done,
.bua-growth-app .checkring .ringfill { filter: hue-rotate(286deg) saturate(1.35); }
.bua-growth-app .stats { gap: .7rem; }
.bua-growth-app .stat { border-radius: 1rem; }
.bua-growth-app .badge { border-color: rgba(255, 255, 255, .13); color: var(--ink-muted); }
.bua-growth-app .badge.earned { color: #a8edf5; background: rgba(34, 211, 238, .1); }
.bua-growth-app .privline { padding: 1.2rem .25rem .4rem; color: var(--ink-muted); }

.bua-growth-app .sheetbg { background: rgba(7, 3, 13, .76); backdrop-filter: blur(12px); }
.bua-growth-app .sheet {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(38, 19, 67, .98), rgba(14, 20, 43, .98));
}
.bua-growth-app input[type="text"] {
  border-color: var(--line); color: #fff; background: rgba(255, 255, 255, .06);
}
.bua-growth-app input[type="text"]:focus { border-color: var(--cyan); }
.bua-growth-app #installBtn {
  right: 1rem !important; bottom: 1rem !important; width: auto;
  min-height: 44px; padding-inline: 1.1rem; font-size: .78rem;
}
.bua-growth-app :focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

@media (max-width: 860px) {
  .bua-growth-app .wrap { width: min(calc(100% - 1.4rem), 42rem); padding-top: .55rem; }
  .bua-growth-app .growth-brand { min-height: 4.2rem; }
  .bua-growth-app .growth-layout { display: flex; flex-direction: column; gap: 0; }
  .bua-growth-app main { width: 100%; }
  .bua-growth-app .screen { min-height: 0; padding: 2.35rem .35rem 1.5rem; }
  .bua-growth-app .prompt .q,
  .bua-growth-app .done h1,
  .bua-growth-app .jhead h1 { max-width: 13ch; font-size: clamp(2.25rem, 11vw, 3.6rem); }
  .bua-growth-app .growth-stage-art {
    position: relative; top: auto; width: 100%; min-height: 21rem; padding: 1rem .5rem 3rem;
  }
  .bua-growth-app .growth-stage-art::before { width: min(78vw, 22rem); }
  .bua-growth-app .growth-stage-art img { width: min(100%, 27rem); max-height: 22rem; }
  .bua-growth-app #view-journey { padding-top: 2rem; }
}

@media (max-width: 520px) {
  .bua-growth-app .growth-wordmark small { font-size: .58rem; }
  .bua-growth-app .growth-help { max-width: 8rem; line-height: 1.25; text-align: right; }
  .bua-growth-app .journeybar { padding-inline: .35rem; }
  .bua-growth-app .screen { padding-top: 1.8rem; }
  .bua-growth-app .stats { grid-template-columns: 1fr 1fr; }
  .bua-growth-app #installBtn span { display: none; }
  .bua-growth-app #installBtn { width: 48px !important; padding: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .bua-growth-app *,
  .bua-growth-app *::before,
  .bua-growth-app *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
