
/* Big Ambitions components. Every value comes from tokens.css. Prefix: ba- */

.ba { font-family: var(--font-body); color: var(--ink); font-size: 17px; line-height: 1.65; }
.ba-display { font-family: var(--font-display); }

/* ---------- Button ---------- */
.ba-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: 17px; font-weight: 800; line-height: 1; text-decoration: none;
  padding: 15px 24px; border-radius: var(--radius-pill); border: var(--stroke-edge) solid var(--edge);
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  background: var(--surface); color: var(--ink);
}
.ba-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.ba-btn--primary { background: var(--tangerine); color: var(--on-accent); box-shadow: var(--pop); }
.ba-btn--primary:hover { transform: translate(-2px, -2px); box-shadow: var(--pop-lift); }
.ba-btn--primary:active { transform: translate(4px, 4px); box-shadow: none; }
.ba-btn--secondary:hover { background: var(--surface-warm); }
.ba-btn--on-night { background: var(--butter); color: var(--on-accent); border-color: var(--butter); }
.ba-btn--on-night:hover { background: var(--tangerine); border-color: var(--tangerine); }
.ba-btn--small { font-size: 15px; padding: 10px 16px; }
.ba-btn .ba-btn__arrow { display: inline-block; transition: transform .12s ease; }
.ba-btn:hover .ba-btn__arrow { transform: translateX(3px); }

/* ---------- Sticker ---------- */
.ba-sticker {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 15px; font-weight: 800; line-height: 1.1;
  padding: 8px 14px; border-radius: var(--radius-md); border: var(--stroke-edge) solid var(--edge);
  background: var(--butter); color: var(--on-accent); transform: rotate(var(--tilt-left)); white-space: nowrap;
}
.ba-sticker--right { transform: rotate(var(--tilt-right)); }
.ba-sticker--tangerine { background: var(--tangerine); }
.ba-sticker--apricot { background: var(--apricot); }
.ba-sticker--sprout { background: var(--sprout-soft); color: var(--sprout-text); }
.ba-sticker--flat { transform: none; }

/* ---------- Highlight ---------- */
.ba-mark {
  color: inherit; background: none;
  box-shadow: inset 0 -0.42em 0 var(--butter-soft);
  padding: 0 .08em; border-radius: 3px;
}
.ba-mark--butter { box-shadow: inset 0 -0.42em 0 var(--butter); color: inherit; }
.ba-mark--on-night { box-shadow: inset 0 -0.18em 0 var(--tangerine); }

/* ---------- Eyebrow ---------- */
.ba-eyebrow { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--flame-text); display: inline-flex; align-items: center; gap: var(--space-2); }
.ba-eyebrow::before { content: ""; width: 16px; height: 12px; background: var(--flame); clip-path: polygon(0 100%, 33.3% 0, 66.6% 0, 100% 100%, 66.6% 100%, 50% 50%, 33.3% 100%); }

/* ---------- Chevron list ---------- */
.ba-chevrons { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ba-chevrons > li { position: relative; padding-left: 30px; }
.ba-chevrons > li::before {
  content: ""; position: absolute; left: 0; top: .4em; width: 18px; height: 13px; background: var(--tangerine);
  clip-path: polygon(0 100%, 33.3% 0, 66.6% 0, 100% 100%, 66.6% 100%, 50% 50%, 33.3% 100%);
}
.ba-chevrons--done > li::before { background: var(--sprout); }

/* ---------- Card ---------- */
.ba-card { background: var(--surface-raised); border: var(--stroke-hair) solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.ba-card--edge { border: var(--stroke-edge) solid var(--edge); }
.ba-card--pop { border: var(--stroke-edge) solid var(--edge); box-shadow: var(--pop); }
.ba-card--warm { background: var(--surface-warm); border-color: transparent; }
.ba-card--butter { background: var(--butter); color: var(--on-accent); border-color: transparent; }
.ba-card__title { font-family: var(--font-body); font-size: 20px; line-height: 1.35; font-weight: 700; margin: 0; }
.ba-card p { margin: 0; }

/* ---------- Plan card ---------- */
.ba-plan { position: relative; background: var(--surface-raised); border: var(--stroke-edge) solid var(--edge); border-radius: var(--radius-lg); box-shadow: var(--pop); padding: var(--space-8) var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.ba-plan--night { background: var(--night); color: var(--on-night); border-color: var(--night); }
.ba-plan__sticker { position: absolute; top: -16px; right: 20px; }
.ba-plan__name { font-family: var(--font-display); font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; margin: 0; }
.ba-plan__who { font-size: 15px; line-height: 1.55; color: var(--ink-muted); margin: 0; }
.ba-plan--night .ba-plan__who { color: var(--on-night); opacity: .85; }
.ba-plan__price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.ba-plan__price b { font-family: var(--font-display); font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.ba-plan__price span { font-size: 15px; color: var(--ink-muted); }
.ba-plan--night .ba-plan__price span { color: var(--on-night); opacity: .85; }
.ba-plan--night .ba-chevrons > li::before { background: var(--butter); }
.ba-plan__foot { margin-top: auto; padding-top: var(--space-4); border-top: var(--stroke-hair) dashed var(--line); display: grid; gap: var(--space-3); }
.ba-plan--night .ba-plan__foot { border-top-color: var(--on-night); }

/* ---------- Status flag ---------- */
.ba-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; line-height: 1; padding: 6px 12px 6px 10px; border-radius: var(--radius-pill); border: var(--stroke-edge) solid var(--edge); white-space: nowrap; background: var(--surface-raised); color: var(--ink); }
.ba-flag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.ba-flag--fix { background: var(--butter-soft); }
.ba-flag--fix::before { background: var(--flame); }
.ba-flag--watch::before { background: var(--apricot); }
.ba-flag--good { background: var(--sprout-soft); color: var(--sprout-text); }
.ba-flag--good::before { background: var(--sprout); }

/* ---------- Steps ---------- */
.ba-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: ba-step; }
.ba-steps > li { counter-increment: ba-step; position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); padding-bottom: var(--space-8); }
.ba-steps > li::before {
  content: counter(ba-step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  background: var(--butter); color: var(--on-accent); border: var(--stroke-edge) solid var(--edge); position: relative; z-index: 1;
}
.ba-steps > li:nth-child(2)::before { background: var(--apricot); }
.ba-steps > li:nth-child(3)::before { background: var(--tangerine); }
.ba-steps > li:nth-child(n+4)::before { background: var(--flame); }
.ba-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; border-left: var(--stroke-edge) dashed var(--edge); }
.ba-steps__when { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--flame-text); }
.ba-steps__title { font-size: 20px; line-height: 1.35; font-weight: 700; margin: 2px 0 4px; }
.ba-steps p { margin: 0; }

/* ---------- Quote ---------- */
.ba-quote { margin: 0; background: var(--butter); color: var(--on-accent); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-3); position: relative; }
.ba-quote__result { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.ba-quote q { font-size: 17px; line-height: 1.55; quotes: "\201C" "\201D"; }
.ba-quote cite { font-style: normal; font-size: 15px; }
.ba-quote cite b { display: block; }
.ba-quote__source { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Band ---------- */
.ba-band { background: var(--night); color: var(--on-night); border-radius: var(--radius-lg); padding: var(--space-12) var(--space-8); position: relative; overflow: hidden; display: grid; gap: var(--space-4); }
.ba-band__title { font-family: var(--font-display); font-size: 44px; line-height: 1.05; font-weight: 800; letter-spacing: -.025em; margin: 0; max-width: 16ch; color: var(--on-night); }
.ba-band p { margin: 0; max-width: 46ch; }
.ba-band__art { position: absolute; right: -10px; bottom: -10px; width: 220px; height: auto; pointer-events: none; }
.ba-band__art .c1 { fill: var(--tangerine); } .ba-band__art .c2 { fill: var(--flame); }
.ba-band__art .c3 { fill: var(--butter); } .ba-band__art .c4 { fill: var(--apricot); }
.ba-band > :not(.ba-band__art) { position: relative; z-index: 1; }

/* ---------- Ready to Grow pill (journey) ---------- */
.ba-journey { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.ba-journey__stage { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); border: var(--stroke-edge) solid var(--edge); font-weight: 800; font-size: 15px; background: var(--surface-raised); color: var(--ink); }
.ba-journey__stage[aria-current="step"] { background: var(--tangerine); color: var(--on-accent); box-shadow: var(--pop); }
.ba-journey__arrow { width: 18px; height: 14px; background: var(--ink-muted); clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%, 50% 50%); }

@media (prefers-reduced-motion: reduce) {
  .ba-btn, .ba-btn .ba-btn__arrow { transition: none; }
  .ba-btn--primary:hover { transform: none; }
}

/* ---------- Case label (typewriter) ---------- */
.ba-case { font-family: var(--font-mono); font-size: 12px; line-height: 1.3; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.ba-case--chip { display: inline-block; background: var(--surface-raised); color: var(--ink); border: var(--stroke-hair) solid var(--line); border-radius: var(--radius-sm); padding: 4px 8px; }
.ba-tape { display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--surface); padding: 6px 14px; transform: rotate(var(--tilt-left)); clip-path: polygon(3% 0, 100% 6%, 97% 100%, 0 94%); }

/* ---------- Peel label (headline) ---------- */
.ba-peel { position: relative; display: inline-block; padding: 0 .28em .06em; margin: .04em .06em; transform: rotate(-2deg); color: var(--on-accent); z-index: 0; }
.ba-peel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tangerine);
  border-radius: 6px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - .5em), calc(100% - .5em) 100%, 0 100%);
}
.ba-peel::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: .5em; height: .5em; z-index: -1;
  background: linear-gradient(135deg, var(--butter) 0 50%, transparent 50% 100%);
  border-top-left-radius: 4px;
}
.ba-peel--butter::before { background: var(--butter); }
.ba-peel--butter::after { background: linear-gradient(135deg, var(--apricot) 0 50%, transparent 50% 100%); }

/* ---------- Handwritten note ---------- */
.ba-note { display: inline-flex; align-items: flex-end; gap: 4px; font-family: var(--font-hand); font-size: 26px; line-height: 1.05; font-weight: 600; color: var(--flame-text); transform: rotate(-3deg); }
.ba-note svg { width: 44px; height: 36px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba-note--below { flex-direction: column; align-items: flex-start; }
.ba-note--flip svg { transform: scaleX(-1); }

/* ---------- Spinning stamp ---------- */
.ba-stamp { position: relative; display: inline-grid; place-items: center; width: 128px; height: 128px; border-radius: 50%; background: var(--butter); border: var(--stroke-edge) solid var(--edge); box-shadow: var(--pop); text-decoration: none; color: var(--on-accent); transition: transform .12s ease, box-shadow .12s ease; }
.ba-stamp:hover { transform: translate(-2px, -2px) rotate(-4deg); box-shadow: var(--pop-lift); }
.ba-stamp:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.ba-stamp__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: ba-spin 18s linear infinite; }
.ba-stamp__ring text { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; fill: var(--on-accent); }
.ba-stamp__core { width: 64px; height: 64px; border-radius: 50%; background: var(--night); display: grid; place-items: center; }
.ba-stamp__core svg { width: 34px; height: auto; }
.ba-stamp__core .c1 { fill: var(--tangerine); } .ba-stamp__core .c2 { fill: var(--flame); } .ba-stamp__core .c3 { fill: var(--butter); } .ba-stamp__core .c4 { fill: var(--apricot); }
.ba-stamp--fixed { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; }
@keyframes ba-spin { to { transform: rotate(360deg); } }

/* ---------- Name tag ---------- */
.ba-nametag { display: grid; width: 236px; background: var(--surface-raised); border: var(--stroke-edge) solid var(--edge); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--pop); transform: rotate(var(--tilt-left)); text-align: center; color: var(--ink); }
.ba-nametag:nth-child(even) { transform: rotate(var(--tilt-right)); }
.ba-nametag__head { background: var(--tangerine); color: var(--on-accent); padding: 8px 12px 6px; }
.ba-nametag__hello { display: block; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: .02em; }
.ba-nametag__sub { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.ba-nametag__body { padding: 14px 14px 12px; display: grid; justify-items: center; gap: 6px; }
.ba-nametag__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: var(--stroke-edge) solid var(--edge); background: var(--surface-warm); }
.ba-nametag__name { font-family: var(--font-hand); font-weight: 700; font-size: 30px; line-height: 1; color: var(--ink); }
.ba-nametag__role { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.ba-nametag__fixes { font-size: 14px; line-height: 1.4; border-top: var(--stroke-hair) dashed var(--line); padding-top: 8px; width: 100%; }
.ba-nametag--night .ba-nametag__head { background: var(--night); color: var(--on-night); }
.ba-nametag--butter .ba-nametag__head { background: var(--butter); }
.ba-nametag--sprout .ba-nametag__head { background: var(--sprout-soft); color: var(--sprout-text); }
.ba-nametags { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: center; padding: var(--space-4) 0; }

/* ---------- Node map ---------- */
.ba-nodemap { position: relative; padding: var(--space-6); border-radius: var(--radius-lg); background-color: var(--surface-warm);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px; }
.ba-nodemap__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12) var(--space-16); align-items: center; z-index: 1; }
.ba-nodemap__wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.ba-nodemap__wires path { fill: none; stroke: var(--edge); stroke-width: 2; stroke-dasharray: 6 6; }
.ba-node { position: relative; background: var(--surface-raised); border: var(--stroke-edge) solid var(--edge); border-radius: var(--radius-md); padding: 12px 14px; display: grid; gap: 6px; }
.ba-node__label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); display: flex; justify-content: space-between; gap: 8px; }
.ba-node__title { font-weight: 700; font-size: 17px; line-height: 1.3; margin: 0; }
.ba-node p { margin: 0; font-size: 14px; line-height: 1.45; }
.ba-node--you { background: var(--tangerine); color: var(--on-accent); box-shadow: var(--pop); }
.ba-node--you .ba-node__label { color: var(--on-accent); }
.ba-node::before, .ba-node::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--surface-raised); border: var(--stroke-edge) solid var(--edge); }
.ba-node::before { left: -7px; } .ba-node::after { right: -7px; }
.ba-node--start::before, .ba-node--end::after { display: none; }
@media (max-width: 720px) {
  .ba-nodemap__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .ba-nodemap__wires { display: none; }
  .ba-node::before, .ba-node::after { display: none; }
  .ba-nodemap__grid > * + * { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  .ba-stamp__ring { animation: none; }
  .ba-stamp, .ba-stamp:hover { transition: none; transform: none; }
}
