/* The plan finder is a ship's flight computer: dark in day and night alike, like any screen in a cabin.
   Motion follows one easing and three durations. Amber always means "chosen"; pale blue means "in progress". */
@property --pf-orbit { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.nova .pf {
  --pf-cabin: #0a1430;
  --pf-raised: #14244f;
  --pf-signal: #3459e6;
  --pf-signal-lift: #4769ef;
  --pf-ion: #8fd8f0;
  --pf-solar: #f2c17c;
  --pf-star: #edf1fb;
  --pf-mute: #a7b4d4;
  --pf-line: rgba(160, 180, 235, .17);
  --pf-line-strong: rgba(160, 180, 235, .36);
  --pf-ease: cubic-bezier(.22, .8, .24, 1);
  --pf-fast: .16s;
  --pf-base: .26s;
  --pf-slow: .55s;
  --pf-progress: 0;
  max-width: 1180px;
  margin-inline: auto;
}

.nova .pf-console {
  position: relative;
  overflow: hidden;
  overflow: clip; /* hidden is still scrollable by fragments and focus, and that cut off the title */
  isolation: isolate;
  color: var(--pf-star);
  border: 1px solid var(--pf-line);
  border-radius: 24px;
  background: radial-gradient(85% 60% at 90% -14%, rgba(52, 89, 230, .34), transparent 64%), var(--pf-cabin);
  box-shadow: 0 28px 60px -30px rgba(10, 20, 48, .55);
}

.nova .pf-stars,
.nova .pf-stars::after {
  position: absolute;
  inset: 0 0 -420px;
  z-index: -1;
  pointer-events: none;
  background-size: 420px 420px;
  animation: pf-drift 150s linear infinite;
}
.nova .pf-stars {
  background-image:
    radial-gradient(1.2px 1.2px at 40px 60px, #fff, transparent),
    radial-gradient(1px 1px at 130px 200px, #dfe7fb, transparent),
    radial-gradient(1.3px 1.3px at 250px 90px, #fff, transparent),
    radial-gradient(1px 1px at 340px 300px, #dfe7fb, transparent),
    radial-gradient(1.1px 1.1px at 90px 350px, #fff, transparent);
  opacity: .5;
}
.nova .pf-stars::after {
  content: '';
  background-image:
    radial-gradient(1.5px 1.5px at 190px 40px, #fff, transparent),
    radial-gradient(1.2px 1.2px at 60px 260px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 380px 230px, #fff, transparent);
  opacity: .34;
  animation-duration: 96s;
}

.nova .pf-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px clamp(20px, 4vw, 44px);
  border-bottom: 1px solid var(--pf-line);
  color: var(--pf-mute);
  font-size: .86rem;
}
.nova .pf-leds { display: inline-flex; gap: 6px; }
.nova .pf-leds i { width: 8px; height: 8px; border-radius: 50%; background: rgba(160, 180, 235, .2); transition: background-color var(--pf-base) var(--pf-ease); }
.nova .pf-leds i.is-on { background: var(--pf-solar); }
.nova .pf-bar-count { margin-left: auto; font-variant-numeric: tabular-nums; }

.nova .pf-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr);
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(24px, 4vw, 44px);
}
.nova .pf h1 {
  margin: 0;
  color: var(--pf-star);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.14;
  text-wrap: balance;
}
.nova .pf-intro { margin: 12px 0 0; max-width: 54ch; color: var(--pf-mute); font-size: 1.05rem; line-height: 1.55; }

.nova .pf-route { position: relative; height: 50px; margin: 24px 18px 6px 8px; }
.nova .pf-rail,
.nova .pf-rail-fill { position: absolute; left: 0; top: 50%; height: 2px; border-radius: 2px; transform: translateY(-50%); }
.nova .pf-rail { right: 0; background: var(--pf-line); }
.nova .pf-rail-fill { width: calc(var(--pf-progress) * 100%); background: var(--pf-ion); transition: width var(--pf-slow) var(--pf-ease); }
.nova .pf-point {
  position: absolute;
  left: var(--pf-at);
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pf-cabin);
  border: 1.5px solid var(--pf-line-strong);
  transform: translate(-50%, -50%);
  transition: background-color var(--pf-base) var(--pf-ease), border-color var(--pf-base) var(--pf-ease);
}
.nova .pf-point.is-passed { background: var(--pf-ion); border-color: var(--pf-ion); }
.nova .pf-planet { position: absolute; left: 100%; top: 50%; font-size: 1.35rem; transform: translate(-30%, -50%); }
.nova .pf-rocket {
  position: absolute;
  left: calc(var(--pf-progress) * 100%);
  top: 50%;
  font-size: 1.35rem;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: left var(--pf-slow) var(--pf-ease), opacity var(--pf-base) ease;
}

.nova .pf-form { display: grid; gap: 22px; }
.nova .pf-question { min-width: 0; margin: 0; padding: 0; border: 0; }
.nova .pf-form.is-wizard .pf-question { display: none; }
.nova .pf-form.is-wizard .pf-question.is-current { display: block; animation: pf-step var(--pf-base) var(--pf-ease) both; }
.nova .pf-question legend { margin-bottom: 13px; padding: 0; color: var(--pf-star); font-size: 1.22rem; font-weight: 700; }
.nova .pf-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.nova .pf-choice { position: relative; display: block; margin: 0; cursor: pointer; }
.nova .pf-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

.nova .pf-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 13px 42px 13px 13px;
  border: 1px solid var(--pf-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  transition: transform var(--pf-base) var(--pf-ease), border-color var(--pf-fast) ease, background-color var(--pf-fast) ease;
}
/* The same point of light that circles the site's recommended plan cards. */
.nova .pf-tile::before,
.nova .pf-ghost::before,
.nova .pf-launch::before,
.nova .pf a.pf-choose::before,
.nova .pf-module.is-primary::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--pf-orbit), transparent 0 66%, var(--pf-signal) 80%, var(--pf-ion) 90%, #fff 94%, var(--pf-signal) 98%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--pf-fast) ease;
}
.nova .pf-choice:hover .pf-tile::before,
.nova .pf-choice input:focus-visible + .pf-tile::before,
.nova .pf-ghost:hover::before,
.nova .pf-launch:hover::before,
.nova .pf a.pf-choose:hover::before { opacity: 1; animation: pf-orbit 2.8s linear infinite; }
.nova .pf-module.is-primary::before { padding: 2px; opacity: 1; animation: pf-orbit 8s linear infinite; }
.nova .pf-emoji {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
  font-size: 1.32rem;
  line-height: 1;
  transition: background-color var(--pf-fast) ease, transform var(--pf-base) var(--pf-ease);
}
.nova .pf-label { position: relative; font-weight: 600; line-height: 1.35; }
.nova .pf-check {
  position: absolute;
  right: 14px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pf-solar);
  color: var(--pf-cabin);
  font-size: .7rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-50%) scale(.6);
  transition: transform var(--pf-base) var(--pf-ease), opacity var(--pf-fast) ease;
}
.nova .pf-choice:hover .pf-tile { transform: translateY(-1px); border-color: var(--pf-line-strong); background: rgba(255, 255, 255, .06); }
.nova .pf-choice:hover .pf-emoji { transform: translateY(-1px) scale(1.05); background: rgba(255, 255, 255, .1); }
.nova .pf-choice:active .pf-tile { transform: none; }
.nova .pf-choice input:checked + .pf-tile { border-color: var(--pf-solar); background: rgba(242, 193, 124, .09); }
.nova .pf-choice input:checked + .pf-tile .pf-emoji { background: rgba(242, 193, 124, .18); }
.nova .pf-choice input:checked + .pf-tile .pf-check { opacity: 1; transform: translateY(-50%) scale(1); }
.nova .pf-choice input:focus-visible + .pf-tile { outline: 2px solid var(--pf-ion); outline-offset: 2px; }

.nova .pf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nova .pf-ghost,
.nova .pf-launch,
.nova .pf a.pf-choose {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--pf-base) var(--pf-ease), background-color var(--pf-fast) ease, border-color var(--pf-fast) ease;
}
.nova .pf-ghost { border: 1px solid var(--pf-line-strong); background: transparent; color: var(--pf-star); }
.nova .pf-ghost:hover { border-color: var(--pf-ion); }
.nova .pf-launch,
.nova .pf a.pf-choose { border: 1px solid transparent; background: var(--pf-signal); color: #fff; }
.nova .pf-launch:hover,
.nova .pf a.pf-choose:hover { background: var(--pf-signal-lift); transform: translateY(-1px); }
.nova .pf-launch:active,
.nova .pf a.pf-choose:active { transform: none; }
.nova .pf-module:not(.is-primary) a.pf-choose { background: transparent; border-color: var(--pf-line-strong); }
.nova .pf-module:not(.is-primary) a.pf-choose:hover { background: rgba(255, 255, 255, .06); border-color: var(--pf-ion); }
.nova .pf-launch-rocket { display: inline-block; transition: transform var(--pf-base) var(--pf-ease), opacity var(--pf-base) ease; }
.nova .pf-launch:hover .pf-launch-rocket { transform: translate(2px, -2px); }
.nova .pf-ghost:focus-visible,
.nova .pf-launch:focus-visible,
.nova .pf a.pf-choose:focus-visible,
.nova .pf-edit summary:focus-visible { outline: 2px solid var(--pf-ion); outline-offset: 2px; }

/* The co-pilot and the log stay in view while the results scroll past. */
.nova .pf-side {
  position: sticky;
  top: calc(var(--nova-header-height, 76px) + 28px);
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 18px;
  min-width: 0;
}
.nova .pf-mascot { position: relative; width: min(244px, 100%); aspect-ratio: 1; margin-inline: auto; }
.nova .pf-mascot img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgba(3, 8, 26, .5));
  animation: pf-float 7s ease-in-out infinite;
  transition: opacity var(--pf-fast) ease;
}
.nova .pf-mascot img.is-swapping { opacity: 0; }
.nova .pf-orbit { position: absolute; inset: 3%; border: 1px dashed var(--pf-line); border-radius: 50%; animation: pf-spin 48s linear infinite; }
.nova .pf-orbit::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -3px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--pf-ion);
}
.nova .pf-orbit-far { inset: -7%; border-style: solid; border-color: rgba(160, 180, 235, .08); animation: none; }
.nova .pf-orbit-far::after { display: none; }

.nova .pf-terminal {
  min-height: 150px;
  padding: 14px 16px;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  background: rgba(6, 14, 38, .62);
  font-family: ui-monospace, 'Cascadia Code', 'Courier New', 'Nova Georgian', monospace;
  font-size: .86rem;
  line-height: 1.65;
}
.nova .pf-command { margin: 0; color: var(--pf-mute); }
.nova .pf-log { margin: 3px 0; padding: 0; list-style: none; color: #d3def7; }
.nova .pf-log li::before { content: '› '; color: var(--pf-mute); }
.nova .pf-log li.is-new { animation: pf-type .42s steps(24) both; }
.nova .pf-status { margin: 0; color: var(--pf-mute); }
.nova .pf-cursor { display: inline-block; width: .5em; height: 1em; margin-left: 6px; background: var(--pf-solar); vertical-align: -.14em; animation: pf-blink 1.1s steps(1) infinite; }

.nova .pf.is-launching .pf-rocket { left: 116%; opacity: 0; transition: left .68s cubic-bezier(.6, 0, .9, .4), opacity .68s ease; }
.nova .pf.is-launching .pf-launch-rocket { transform: translate(16px, -42px); opacity: 0; transition-duration: .6s; }
.nova .pf.is-launching .pf-mascot img { animation: pf-liftoff .7s cubic-bezier(.6, 0, .9, .4) forwards; }

.nova .pf-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 14px; margin-top: 22px; }
.nova .pf-module {
  position: relative;
  padding: 22px;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  background: var(--pf-raised);
  animation: pf-dock var(--pf-slow) var(--pf-ease) both;
  transition: border-color var(--pf-fast) ease;
}
.nova .pf-module + .pf-module { animation-delay: .09s; }
.nova .pf-module:hover { border-color: var(--pf-line-strong); }
.nova .pf-module.is-primary { border-color: rgba(242, 193, 124, .62); }
.nova .pf-module.is-primary:hover { border-color: var(--pf-solar); }
.nova .pf-module-art { position: absolute; right: 16px; top: 16px; width: 72px; height: 72px; object-fit: contain; transition: transform var(--pf-base) var(--pf-ease); }
.nova .pf-module:hover .pf-module-art { transform: translateY(-2px); }
.nova .pf-module-heading { margin: 0 84px 3px 0; color: var(--pf-mute); font-size: .92rem; font-weight: 600; }
.nova .pf-module.is-primary .pf-module-heading { color: var(--pf-solar); }
.nova .pf-module h2 { margin: 0 84px 0 0; color: var(--pf-star); font-size: 1.5rem; }
.nova .pf-price { margin: 10px 0; color: var(--pf-star); font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.nova .pf-price small { color: var(--pf-mute); font-size: .9rem; font-weight: 500; }
.nova .pf-module-text { margin: 0; max-width: 58ch; color: var(--pf-mute); line-height: 1.55; }
.nova .pf-module ul { margin: 14px 0 18px; padding: 0; list-style: none; }
.nova .pf-module li { position: relative; margin: 5px 0; padding-left: 22px; }
.nova .pf-module li::before { content: '✓'; position: absolute; left: 0; color: var(--pf-ion); font-weight: 700; }
.nova .pf-empty { color: var(--pf-star); }

.nova .pf-edit { margin-top: 18px; }
.nova .pf-edit summary { display: inline-flex; color: var(--pf-ion); font-weight: 600; cursor: pointer; list-style: none; text-underline-offset: 3px; }
.nova .pf-edit summary:hover { text-decoration: underline; }
.nova .pf-edit summary::-webkit-details-marker { display: none; }
.nova .pf-edit[open] summary { margin-bottom: 10px; }

@keyframes pf-orbit { to { --pf-orbit: 360deg; } }
@keyframes pf-drift { to { transform: translateY(-420px); } }
@keyframes pf-float { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@keyframes pf-spin { to { transform: rotate(360deg); } }
@keyframes pf-step { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes pf-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes pf-blink { 50% { opacity: 0; } }
@keyframes pf-liftoff { to { transform: translateY(-170px); opacity: 0; } }
@keyframes pf-dock { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .nova .pf-body { grid-template-columns: minmax(0, 1fr); }
  .nova .pf-side { position: static; display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; }
  .nova .pf-mascot { width: 96px; }
  .nova .pf-orbit-far { inset: -3%; }
  .nova .pf-terminal { min-height: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  .nova .pf *, .nova .pf *::before, .nova .pf *::after { animation: none !important; transition: none !important; }
}
html[data-nova-effects=reduced] .nova .pf *,
html[data-nova-effects=reduced] .nova .pf *::before,
html[data-nova-effects=reduced] .nova .pf *::after { animation: none !important; transition: none !important; }
