/* ==========================================================================
   Growth Plan Builder - page styles (loaded only on /plan and /el/plan)
   Uses the design tokens from style.css (navy + green, Inter, JetBrains Mono)
   ========================================================================== */

[hidden] { display: none !important; }

@property --gp-a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* ---------- top section: hero + builder ---------- */
.gp-top {
  position: relative; overflow: hidden;
  padding: calc(var(--nav) + clamp(2.5rem, 5vw, 4rem)) clamp(1rem, 4vw, 3rem) clamp(3.5rem, 7vw, 6rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.gp-top::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(26,58,92,.10) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 28%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 60% at 50% 28%, #000 25%, transparent 78%);
}
.gp-aurora span { position: absolute; border-radius: 50%; pointer-events: none; }
.gp-aurora span:nth-child(1) {
  width: 640px; height: 640px; top: -280px; left: -180px;
  background: radial-gradient(circle, rgba(45,90,128,.16), transparent 65%);
  animation: gp-drift 18s ease-in-out infinite;
}
.gp-aurora span:nth-child(2) {
  width: 560px; height: 560px; top: 60px; right: -220px;
  background: radial-gradient(circle, rgba(106,143,66,.16), transparent 65%);
  animation: gp-drift 22s ease-in-out infinite reverse;
}
.gp-aurora span:nth-child(3) {
  width: 420px; height: 420px; bottom: -220px; left: 35%;
  background: radial-gradient(circle, rgba(77,107,47,.10), transparent 65%);
  animation: gp-drift 26s ease-in-out infinite;
}
@keyframes gp-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, 30px) scale(1.06); }
  66%      { transform: translate(-30px, -20px) scale(.96); }
}
.gp-top-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }

.gp-hero { text-align: center; max-width: 780px; margin: 0 auto; }
.gp-hero .blog-eyebrow { justify-content: center; }
.gp-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 900; color: var(--navy);
  letter-spacing: -.035em; line-height: 1.08;
  animation: gp-rise .8s cubic-bezier(.2,1,.3,1) backwards;
}
.gp-hero p {
  color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.65;
  max-width: 600px; margin: .9rem auto 0;
  animation: gp-rise .8s cubic-bezier(.2,1,.3,1) .08s backwards;
}
.gp-hero-chips {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-top: 1.3rem;
  animation: gp-rise .8s cubic-bezier(.2,1,.3,1) .16s backwards;
}
.gp-hero-chips li {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 600; color: var(--navy);
  padding: .38rem .85rem; border-radius: 99px;
  background: rgba(255,255,255,.85); border: 1px solid var(--border);
}
.gp-hero-chips li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

@keyframes gp-rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- app shell ---------- */
.gp-app {
  max-width: 1080px; margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  view-transition-name: gp-app;
  animation: gp-rise .9s cubic-bezier(.2,1,.3,1) .22s backwards;
}
::view-transition-old(gp-app) { animation: gp-vt-out .32s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(gp-app) { animation: gp-vt-in .6s cubic-bezier(.2,1,.3,1) both; }
@keyframes gp-vt-out { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes gp-vt-in  { from { opacity: 0; transform: translateY(26px) scale(.985); } }

.gp-noscript {
  text-align: center; padding: 2rem; border-radius: 24px;
  background: #fff; border: 1px solid var(--border);
}
.gp-noscript p { color: var(--muted); margin-bottom: 1rem; }

/* ---------- stage (wizard card) ---------- */
.gp-stage {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  min-height: 540px;
  border-radius: 28px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--gp-a), rgba(26,58,92,.10), rgba(77,107,47,.55) 18%, rgba(45,90,128,.40) 32%, rgba(26,58,92,.10) 52%, rgba(26,58,92,.10)) border-box;
  box-shadow: 0 40px 90px -40px rgba(26,58,92,.45), 0 2px 10px rgba(26,58,92,.05);
  overflow: hidden;
  animation: gp-border 9s linear infinite;
}
@keyframes gp-border { to { --gp-a: 360deg; } }

.gp-stage-main { position: relative; padding: clamp(1.5rem, 3.4vw, 2.75rem); display: flex; flex-direction: column; min-width: 0; }

.gp-progress { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 1.6rem; }
.gp-seg { height: 5px; border-radius: 99px; background: rgba(26,58,92,.08); overflow: hidden; }
.gp-seg i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--navy-mid), var(--green), #6a8f42);
  transition: width .6s cubic-bezier(.2,1,.3,1);
}
.gp-seg.is-done i { width: 100%; }
.gp-seg.is-cur i  { width: 42%; animation: gp-seg 1.8s ease-in-out infinite; }
@keyframes gp-seg { 50% { opacity: .55; } }

.gp-qwrap { flex: 1; display: flex; flex-direction: column; }
.gp-q { display: flex; flex-direction: column; flex: 1; }
.gp-q-meta { display: flex; align-items: center; justify-content: space-between; min-height: 34px; margin-bottom: .5rem; }
.gp-q-count {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green);
}
.gp-back {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 0; padding: .4rem .75rem; border-radius: 99px;
  font: 600 .85rem var(--sans); color: var(--muted);
  transition: color .2s, background .2s;
}
.gp-back:hover { color: var(--navy); background: var(--bg-alt); }
.gp-back:focus-visible { outline: 2px solid rgba(77,107,47,.5); outline-offset: 2px; }

.gp-q-title {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem); font-weight: 800; color: var(--navy);
  letter-spacing: -.028em; line-height: 1.18; outline: none;
}
.gp-q-sub { color: var(--muted); font-size: .95rem; margin-top: .35rem; }

.gp-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.gp-opt {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: .9rem;
  min-height: 78px; padding: 1rem 1.1rem; text-align: left;
  font: inherit; color: var(--text);
  background: #fff; border: 1.5px solid rgba(26,58,92,.12); border-radius: 16px;
  transition: transform .28s cubic-bezier(.2,1,.3,1), border-color .25s, box-shadow .28s, background .25s;
}
.gp-opt::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(106,143,66,.13), transparent 62%);
  transition: opacity .3s;
}
.gp-opt:hover { transform: translateY(-3px); border-color: rgba(77,107,47,.5); box-shadow: 0 16px 32px -16px rgba(26,58,92,.4); }
.gp-opt:hover::before { opacity: 1; }
.gp-opt:active { transform: translateY(-1px) scale(.99); }
.gp-opt:focus-visible { outline: 3px solid rgba(77,107,47,.35); outline-offset: 2px; }
.gp-opt-ic {
  flex: 0 0 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-alt); color: var(--navy);
  transition: background .3s, color .3s, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.gp-opt:hover .gp-opt-ic { transform: scale(1.07) rotate(-5deg); }
.gp-opt-txt { display: flex; flex-direction: column; min-width: 0; }
.gp-opt-l { font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--navy); }
.gp-opt-s { font-size: .82rem; line-height: 1.35; color: var(--muted); margin-top: .12rem; }
.gp-opt-k {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--mono); font-size: .7rem; line-height: 1.5; color: var(--dim);
  padding: 0 .42rem; border-radius: 6px;
  border: 1px solid rgba(26,58,92,.14); background: var(--bg-alt);
  transition: opacity .2s;
}
.gp-opt-check {
  position: absolute; top: 9px; right: 9px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #6a8f42, var(--green));
  transform: scale(0); transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.gp-opt.is-on {
  border-color: var(--green);
  background: linear-gradient(135deg, #fff 0%, var(--green-bg) 100%);
  box-shadow: 0 0 0 4px rgba(77,107,47,.12), 0 16px 32px -18px rgba(77,107,47,.5);
}
.gp-opt.is-on .gp-opt-ic { background: linear-gradient(135deg, #6a8f42, var(--green)); color: #fff; }
.gp-opt.is-on .gp-opt-check { transform: scale(1); }
.gp-opt.is-on .gp-opt-k { opacity: 0; }

.gp-pop { animation: gp-pop .45s cubic-bezier(.2,1,.3,1); }
@keyframes gp-pop { 35% { transform: scale(.965); } 100% { transform: scale(1); } }

.gp-q-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: auto; padding-top: 1.4rem; min-height: 3.6rem; }
.gp-next { padding: .8rem 1.6rem; }
.gp-next svg { transition: transform .3s cubic-bezier(.2,1,.3,1); }
.gp-next:hover svg { transform: translateX(4px); }
.gp-err { color: #b4432c; font-size: .86rem; font-weight: 600; }
.gp-hint { font-size: .8rem; color: var(--dim); }

/* question transitions (fill-mode backwards so hover transforms keep working) */
.gp-in-fwd .gp-q-meta, .gp-in-fwd .gp-q-title, .gp-in-fwd .gp-q-sub { animation: gp-in-r .5s cubic-bezier(.2,1,.3,1) backwards; }
.gp-in-fwd .gp-q-title { animation-delay: .03s; }
.gp-in-fwd .gp-q-sub   { animation-delay: .06s; }
.gp-in-fwd .gp-opt { animation: gp-in-r .6s cubic-bezier(.2,1,.3,1) backwards; animation-delay: calc(90ms + var(--i) * 50ms); }
.gp-in-back .gp-q-meta, .gp-in-back .gp-q-title, .gp-in-back .gp-q-sub { animation: gp-in-l .5s cubic-bezier(.2,1,.3,1) backwards; }
.gp-in-back .gp-opt { animation: gp-in-l .6s cubic-bezier(.2,1,.3,1) backwards; animation-delay: calc(90ms + var(--i) * 50ms); }
.gp-out-fwd  { animation: gp-out-l .22s cubic-bezier(.4,0,1,1) forwards; }
.gp-out-back { animation: gp-out-r .22s cubic-bezier(.4,0,1,1) forwards; }
@keyframes gp-in-r  { from { opacity: 0; transform: translateX(30px); } }
@keyframes gp-in-l  { from { opacity: 0; transform: translateX(-30px); } }
@keyframes gp-out-l { to { opacity: 0; transform: translateX(-24px); filter: blur(3px); } }
@keyframes gp-out-r { to { opacity: 0; transform: translateX(24px); filter: blur(3px); } }

/* ---------- live mix panel ---------- */
.gp-live {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(160deg, #102a44 0%, var(--navy) 55%, #1f4636 135%);
}
.gp-live::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 15%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse at 75% 15%, #000 15%, transparent 75%);
}
.gp-live::after {
  content: ''; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(143,209,106,.28), transparent 65%);
  animation: gp-drift 14s ease-in-out infinite;
}
.gp-live-head { position: relative; z-index: 1; display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1.3rem; }
.gp-live-dot {
  flex-shrink: 0; width: 10px; height: 10px; margin-top: .42rem; border-radius: 50%;
  background: #8fd16a; animation: gp-live 2s ease-out infinite;
}
@keyframes gp-live {
  0%   { box-shadow: 0 0 0 0 rgba(143,209,106,.6); }
  100% { box-shadow: 0 0 0 10px rgba(143,209,106,0); }
}
.gp-live-title { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.3; }
.gp-live-sub { font-size: .8rem; color: rgba(255,255,255,.58); }

.gp-tiles { position: relative; z-index: 1; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.gp-tile {
  display: flex; align-items: center; gap: .55rem; min-width: 0;
  padding: .5rem .6rem; border-radius: 12px;
  font-size: .76rem; font-weight: 600; line-height: 1.2;
  color: rgba(255,255,255,.36);
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08);
  transition: color .5s, background .5s, border-color .5s, box-shadow .5s;
}
.gp-tile-l { min-width: 0; overflow-wrap: anywhere; }
.gp-tile-ic {
  flex: 0 0 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; background: rgba(255,255,255,.05);
  transition: background .5s, color .5s;
}
.gp-tile.is-on {
  color: #fff; background: rgba(106,143,66,.16);
  border-color: rgba(143,209,106,.45);
  box-shadow: 0 0 24px -8px rgba(143,209,106,.6);
}
.gp-tile.is-on .gp-tile-ic { background: linear-gradient(135deg, #7aa64c, var(--green)); color: #fff; }
.gp-tile.is-later { color: rgba(255,255,255,.72); border-style: dashed; border-color: rgba(255,255,255,.32); }
.gp-tile.is-later .gp-tile-ic { background: rgba(255,255,255,.1); }

/* ---------- building overlay ---------- */
.gp-building {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .35s;
}
.gp-building.is-on { opacity: 1; }
.gp-orbit { position: relative; width: 112px; height: 112px; }
.gp-orbit span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2.5px solid transparent; border-top-color: var(--green);
  animation: gp-spin 1.1s linear infinite;
}
.gp-orbit span:nth-child(2) { inset: 12px; border-top-color: var(--navy-mid); animation-duration: 1.6s; animation-direction: reverse; }
.gp-orbit span:nth-child(3) { inset: 24px; border-top-color: #8fb865; animation-duration: 2.2s; }
.gp-orbit-core {
  position: absolute; inset: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--green));
  animation: gp-breathe 1.4s ease-in-out infinite;
}
@keyframes gp-spin { to { transform: rotate(360deg); } }
@keyframes gp-breathe { 50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(77,107,47,.12); } }
.gp-building-t { font-weight: 800; font-size: 1.2rem; color: var(--navy); letter-spacing: -.01em; }
.gp-building-steps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.2rem; }
.gp-building-steps li {
  display: flex; align-items: center; gap: .35rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); transition: color .3s;
}
.gp-building-steps li svg { color: var(--green); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.gp-building-steps li.is-done { color: var(--navy); }
.gp-building-steps li.is-done svg { opacity: 1; transform: none; }

/* ---------- result header ---------- */
.gp-res-head { text-align: center; max-width: 780px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.gp-res-head > * { animation: gp-rise .75s cubic-bezier(.2,1,.3,1) backwards; }
.gp-res-head > :nth-child(2) { animation-delay: .06s; }
.gp-res-head > :nth-child(3) { animation-delay: .12s; }
.gp-res-head > :nth-child(4) { animation-delay: .18s; }
.gp-res-head > :nth-child(5) { animation-delay: .24s; }
.gp-res-head > :nth-child(6) { animation-delay: .3s; }
.gp-res-head .blog-eyebrow { justify-content: center; margin-bottom: .9rem; }
.gp-res-title {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.1;
  background: linear-gradient(135deg, var(--navy) 0%, #1e5c8a 45%, var(--green) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.gp-res-sub { color: var(--muted); font-size: 1.05rem; margin-top: .6rem; }
.gp-res-prof { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.15rem; }
.gp-res-prof li {
  padding: .36rem .9rem; border-radius: 99px;
  font-size: .82rem; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--border);
}
.gp-focus {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem;
  padding: .5rem 1rem; border-radius: 99px;
  font-size: .85rem; font-weight: 600; color: var(--green-dark); background: var(--green-bg);
}
.gp-res-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .6rem; margin-top: 1rem; }
.gp-link {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: 0; padding: .45rem .75rem; border-radius: 99px;
  font: 600 .85rem var(--sans); color: var(--muted);
  transition: color .2s, background .2s;
}
.gp-link:hover { color: var(--navy); background: rgba(26,58,92,.06); }
.gp-link:focus-visible { outline: 2px solid rgba(77,107,47,.5); outline-offset: 2px; }
.gp-link.is-ok { color: var(--green); }

/* ---------- the path ---------- */
.gp-path { position: relative; max-width: 980px; margin: 0 auto; }
.gp-path-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.gp-road { fill: none; stroke: rgba(26,58,92,.18); stroke-width: 2; stroke-dasharray: 1 9; stroke-linecap: round; }
.gp-line {
  fill: none; stroke: url(#gpGrad); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px rgba(77,107,47,.28));
}
.gp-flow { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 2; stroke-dasharray: 2 24; stroke-linecap: round; opacity: 0; transition: opacity .6s; }
.gp-path-svg.is-done .gp-flow { opacity: 1; animation: gp-flow 1.8s linear infinite; }
@keyframes gp-flow { to { stroke-dashoffset: -26; } }
.gp-traveler {
  fill: #fff; stroke: var(--green); stroke-width: 3.5; opacity: 0;
  filter: drop-shadow(0 0 7px rgba(106,143,66,.95));
  transition: opacity .35s;
}
.gp-path-svg.is-moving .gp-traveler { opacity: 1; }
.gp-path-svg.is-done .gp-traveler { opacity: 0; }

.gp-start {
  position: relative; z-index: 1; width: max-content; margin: 0 auto clamp(2.6rem, 5vw, 3.4rem);
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem 1.1rem; border-radius: 99px;
  font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: #fff; background: var(--navy);
  box-shadow: 0 10px 24px -10px rgba(26,58,92,.7);
}
.gp-start-dot { width: 8px; height: 8px; border-radius: 50%; background: #8fd16a; animation: gp-live 2s ease-out infinite; }

.gp-stations { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; }
.gp-st {
  position: relative;
  display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.5rem);
  margin-bottom: clamp(3.2rem, 6vw, 4.2rem);
}
.gp-st.is-r { flex-direction: row-reverse; }

.gp-node {
  position: relative; flex: 0 0 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--navy); background: #fff;
  border: 2px solid rgba(26,58,92,.14);
  box-shadow: 0 12px 26px -12px rgba(26,58,92,.45);
  opacity: 0; transform: scale(.35);
  transition: transform .65s cubic-bezier(.34,1.56,.64,1), opacity .3s;
}
.gp-st.is-in .gp-node { opacity: 1; transform: none; }
.gp-node-ring { position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(106,143,66,.55); opacity: 0; }
.gp-st.is-in .gp-node-ring { animation: gp-ring 1.2s ease-out .1s; }
@keyframes gp-ring { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.55); } }
.gp-st.is-key .gp-node {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--navy) 0%, var(--green) 100%);
  box-shadow: 0 14px 32px -10px rgba(77,107,47,.65);
}
.gp-st.is-later .gp-node { border-style: dashed; border-color: rgba(26,58,92,.3); }

.gp-card {
  position: relative; flex: 0 1 560px; min-width: 0;
  padding: 1.15rem 1.35rem 1.25rem; border-radius: 20px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 22px 44px -28px rgba(26,58,92,.45);
  opacity: 0; transform: translateX(-28px);
  transition: opacity .6s ease .08s, transform .75s cubic-bezier(.2,1,.3,1) .08s;
}
.gp-st.is-r .gp-card { transform: translateX(28px); }
.gp-st.is-in .gp-card { opacity: 1; transform: none; }
.gp-st.is-key .gp-card {
  border-color: rgba(77,107,47,.35);
  background: linear-gradient(160deg, #fff 50%, var(--green-bg) 140%);
}
.gp-card-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.gp-card-n { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--green); }
.gp-badge {
  font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 99px;
}
.gp-badge--key { color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.gp-badge--later { color: var(--muted); background: var(--bg-alt); border: 1px dashed rgba(26,58,92,.28); }
.gp-card-t { font-size: 1.16rem; font-weight: 800; line-height: 1.25; letter-spacing: -.015em; color: var(--navy); }
.gp-card-s { font-size: .88rem; line-height: 1.45; color: var(--muted); margin-top: .15rem; }
.gp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.gp-chips li {
  padding: .28rem .68rem; border-radius: 99px;
  font-size: .78rem; font-weight: 600; color: var(--navy);
  background: var(--bg-alt); border: 1px solid rgba(26,58,92,.08);
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s, transform .55s cubic-bezier(.2,1,.3,1);
  transition-delay: calc(.28s + var(--j) * 50ms);
}
.gp-st.is-in .gp-chips li { opacity: 1; transform: none; }
.gp-chips li.is-later { color: var(--muted); background: transparent; border-style: dashed; border-color: rgba(26,58,92,.25); }
.gp-st.is-key .gp-chips li { background: #fff; border-color: rgba(77,107,47,.25); }

.gp-ghost {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-weight: 700; line-height: 1;
  font-size: clamp(3.2rem, 7vw, 5.6rem); letter-spacing: -.04em;
  color: rgba(26,58,92,.05); pointer-events: none; user-select: none;
  opacity: 0; transition: opacity 1s ease .3s;
}
.gp-st.is-in .gp-ghost { opacity: 1; }
.gp-st.is-l .gp-ghost { right: 3%; }
.gp-st.is-r .gp-ghost { left: 3%; }

/* ---------- destination: the collaboration card ---------- */
.gp-dest {
  position: relative; z-index: 1; overflow: hidden; isolation: isolate;
  max-width: 660px; margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 2.6rem;
  border-radius: 28px; text-align: center; color: #fff;
  background: linear-gradient(150deg, #102a44 0%, var(--navy) 48%, #2a5638 110%);
  box-shadow: 0 40px 80px -34px rgba(26,58,92,.7);
  opacity: 0; transform: translateY(34px) scale(.97);
  transition: opacity .7s, transform .95s cubic-bezier(.2,1,.3,1);
}
.gp-dest.is-in { opacity: 1; transform: none; }
.gp-dest::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
.gp-dest-glow {
  position: absolute; z-index: -1; left: 50%; top: -230px;
  width: 460px; height: 460px; margin-left: -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(143,209,106,.34), transparent 65%);
  animation: gp-glow 5s ease-in-out infinite; pointer-events: none;
}
@keyframes gp-glow { 50% { transform: scale(1.15); opacity: .75; } }
.gp-dest-flag {
  width: 66px; height: 66px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #8fd16a, var(--green));
  box-shadow: 0 0 0 8px rgba(143,209,106,.14), 0 0 44px rgba(143,209,106,.5);
}
.gp-dest.is-in .gp-dest-flag { animation: gp-flag 2.8s ease-in-out .9s infinite; }
@keyframes gp-flag { 50% { transform: translateY(-5px) rotate(-4deg); } }
.gp-dest-label {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: #a8d98a;
}
.gp-dest-t { font-size: clamp(1.75rem, 3.6vw, 2.45rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.12; margin-top: .35rem; }
.gp-dest-s { color: rgba(255,255,255,.74); max-width: 440px; margin: .65rem auto 1.6rem; line-height: 1.6; }
.gp-cta svg { transition: transform .3s cubic-bezier(.2,1,.3,1); }
.gp-cta:hover svg { transform: translateX(4px); }

.gp-formwrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.2,1,.3,1); }
.gp-formwrap.is-open { grid-template-rows: 1fr; }
.gp-formwrap-in { overflow: hidden; min-height: 0; }
.gp-form { text-align: left; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); }
.gp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.gp-f { display: flex; flex-direction: column; gap: .35rem; }
.gp-f--full { grid-column: 1 / -1; }
.gp-f-l { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.82); }
.gp-f-l em { font-style: normal; font-weight: 500; color: rgba(255,255,255,.45); }
.gp-f input, .gp-f textarea {
  width: 100%; font: inherit; font-size: .95rem; color: #fff;
  padding: .75rem .9rem; border-radius: 12px; outline: none; resize: vertical;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.gp-f input:focus, .gp-f textarea:focus {
  border-color: #8fd16a; background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 4px rgba(143,209,106,.16);
}
.gp-f.is-bad input { border-color: #f5a08a; box-shadow: 0 0 0 4px rgba(245,160,138,.14); }
.gp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gp-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; margin-top: 1.15rem; }
.gp-form-note { font-size: .78rem; color: rgba(255,255,255,.56); }
.gp-form-note a { color: #a8d98a; text-decoration: underline; text-underline-offset: 2px; }
.gp-form-err { min-height: 1.2em; margin-top: .6rem; font-size: .86rem; font-weight: 600; color: #fbb4a5; }
.gp-send.is-busy { opacity: .8; }
.gp-send.is-busy svg { animation: gp-fly 1s ease-in-out infinite; }
@keyframes gp-fly { 50% { transform: translate(3px, -3px); } }

.gp-success { padding: 1.6rem 0 .4rem; animation: gp-rise .6s cubic-bezier(.2,1,.3,1) backwards; }
.gp-success-ic { display: block; width: 66px; height: 66px; margin: 0 auto .8rem; }
.gp-success-ic circle { fill: none; stroke: #8fd16a; stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: gp-draw .7s ease-out forwards; }
.gp-success-ic path { fill: none; stroke: #8fd16a; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: gp-draw .45s ease-out .55s forwards; }
@keyframes gp-draw { to { stroke-dashoffset: 0; } }
.gp-success h4 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.gp-success p { color: rgba(255,255,255,.74); margin-top: .3rem; }

/* ---------- methodology ---------- */
.gp-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gp-method {
  padding: 1.45rem 1.4rem 1.5rem; border-radius: 18px;
  background: #fff; border: 1px solid var(--border);
}
.gp-method-ic {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: .9rem;
  display: grid; place-items: center; color: var(--green); background: var(--green-bg);
}
.gp-method h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: .4rem; letter-spacing: -.01em; }
.gp-method p { font-size: .92rem; line-height: 1.62; color: var(--muted); }
.gp-method--key {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.1rem; align-items: start;
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--navy) 0%, #24506f 60%, #2a5638 100%);
}
.gp-method--key .gp-method-ic { grid-row: span 2; margin-bottom: 0; color: #fff; background: rgba(255,255,255,.12); }
.gp-method--key h3 { color: #fff; }
.gp-method--key p { color: rgba(255,255,255,.76); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .gp-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .gp-stage { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 24px; }
  .gp-live { order: -1; padding: .95rem 1rem 1rem; }
  .gp-live::after { width: 220px; height: 220px; }
  .gp-live-head { margin-bottom: .7rem; align-items: center; }
  .gp-live-dot { margin-top: 0; }
  .gp-live-title { font-size: .92rem; }
  .gp-live-sub { display: none; }
  .gp-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; }
  .gp-tile { justify-content: center; padding: .38rem; }
  .gp-tile-l { display: none; }
  .gp-tile-ic { flex-basis: 30px; height: 30px; }
}
@media (max-width: 640px) {
  .gp-top { padding-left: 1rem; padding-right: 1rem; }
  .gp-stage-main { padding: 1.25rem 1.05rem 1.35rem; }
  .gp-progress { margin-bottom: 1.2rem; gap: 4px; }
  .gp-opts { grid-template-columns: minmax(0, 1fr); gap: .55rem; margin-top: 1.15rem; }
  .gp-opt { min-height: 64px; padding: .8rem .9rem; border-radius: 14px; }
  .gp-opt-ic { flex-basis: 38px; height: 38px; border-radius: 10px; }
  .gp-opt:hover { transform: none; }
  .gp-q-foot { padding-top: 1rem; min-height: 0; }
  .gp-node { flex-basis: 48px; height: 48px; }
  .gp-node svg { width: 20px; height: 20px; }
  .gp-card { flex: 1 1 auto; padding: .95rem 1rem 1.05rem; border-radius: 16px; }
  .gp-card-t { font-size: 1.05rem; }
  .gp-st { margin-bottom: 2.9rem; }
  .gp-ghost { display: none; }
  .gp-line { filter: none; }
  .gp-dest { padding: 2.4rem 1.15rem 2rem; border-radius: 24px; }
  .gp-form-grid { grid-template-columns: minmax(0, 1fr); }
  .gp-method-grid { grid-template-columns: minmax(0, 1fr); }
  .gp-method--key { grid-template-columns: minmax(0, 1fr); }
  .gp-method--key .gp-method-ic { grid-row: auto; margin-bottom: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gp-page *, .gp-page *::before, .gp-page *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .gp-app, ::view-transition-group(*) { animation: none !important; }
}
