/* Custom bestilling (komadev.dk/bestilling/). Uses the tokens from assets/css/app.css. */

.bs-page {
  padding-bottom: 2rem;
}

.bs-ic {
  width: 1.4rem;
  height: 1.4rem;
}

.bs-grad {
  background: linear-gradient(110deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */

.bs-hero {
  display: grid;
  gap: clamp(3rem, 6vw, 4rem);
  align-items: center;
  margin-top: 2.5rem;
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.bs-hero__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Two calm lines: "Your idea," / "built properly." with an underline that draws in. */
.bs-hero__title {
  margin-top: 1.3rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.35rem, 4.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.bs-hero__line {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.bs-hero__line--accent {
  position: relative;
  padding-bottom: 0.18em;
}

.bs-hero__line--accent::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.1em;
  bottom: 0;
  height: 0.075em;
  min-height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 70%, transparent);
  opacity: 0.85;
  transform-origin: left;
  animation: bs-underline 1.1s 0.55s var(--ease) both;
}

@keyframes bs-underline {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 0.85; }
}

.bs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.bs-hero__chips {
  margin-top: 1.8rem;
}

.bs-hero__visual {
  position: relative;
  min-width: 0;
  padding-bottom: 2.5rem;
}

/* Code window */

.bs-win {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, #13131b, #0a0a0e);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 40px 100px -30px rgba(169, 155, 255, 0.35),
    0 20px 50px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.bs-win::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 155, 255, 0.7), rgba(111, 227, 255, 0.6), transparent);
}

.bs-win__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.bs-win__dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.bs-win__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.bs-win__dots i:nth-child(1) { background: #ff6b6b; opacity: 0.75; }
.bs-win__dots i:nth-child(2) { background: var(--wip); opacity: 0.75; }
.bs-win__dots i:nth-child(3) { background: var(--done); opacity: 0.75; }

.bs-win__tabs {
  display: flex;
  gap: 0.25rem;
  min-width: 0;
  overflow: hidden;
}

.bs-win__tab {
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  white-space: nowrap;
  transition: color 0.3s ease, background 0.3s ease;
}

.bs-win__tab.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.bs-win__body {
  position: relative;
  display: grid;
  min-height: 15.5rem;
  padding: 1.1rem 0;
}

.bs-code {
  grid-area: 1 / 1;
  margin: 0;
  padding: 0 1.1rem;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.6vw, 0.84rem);
  line-height: 1.75;
  color: #d8d8e4;
  white-space: normal;
  overflow: hidden;
  counter-reset: line;
  visibility: hidden;
}

.bs-code.is-active {
  visibility: visible;
}

.bs-code code {
  font: inherit;
}

.bs-l {
  display: block;
  min-height: 1.75em;
  white-space: pre;
}

.bs-l::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 1.6rem;
  margin-right: 1rem;
  text-align: right;
  color: rgba(255, 255, 255, 0.18);
}

.js .bs-code .bs-l {
  opacity: 0;
  transform: translateX(-6px);
}

.js .bs-code.is-active .bs-l {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}

.js .bs-code.is-active .bs-l:nth-child(1) { transition-delay: 0.05s; }
.js .bs-code.is-active .bs-l:nth-child(2) { transition-delay: 0.13s; }
.js .bs-code.is-active .bs-l:nth-child(3) { transition-delay: 0.21s; }
.js .bs-code.is-active .bs-l:nth-child(4) { transition-delay: 0.29s; }
.js .bs-code.is-active .bs-l:nth-child(5) { transition-delay: 0.37s; }
.js .bs-code.is-active .bs-l:nth-child(6) { transition-delay: 0.45s; }
.js .bs-code.is-active .bs-l:nth-child(7) { transition-delay: 0.53s; }
.js .bs-code.is-active .bs-l:nth-child(8) { transition-delay: 0.61s; }

.bs-code.is-active .bs-l:last-child::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--accent);
  animation: bs-caret 1.1s steps(1) infinite;
}

@keyframes bs-caret {
  50% { opacity: 0; }
}

.t-k { color: #c792ea; }
.t-f { color: var(--accent-2); }
.t-s { color: #a5e8a0; }
.t-c { color: #6c6c78; font-style: italic; }
.t-n { color: #f7a26b; }
.t-v { color: #ffd479; }

.bs-float {
  position: absolute;
  left: clamp(-1rem, -2vw, 0rem);
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem 0.75rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(16, 16, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8);
  animation: bs-float 6s ease-in-out infinite;
}

.bs-float__icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(61, 220, 120, 0.14);
  color: var(--done);
}

.bs-float__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.bs-float strong,
.bs-float small {
  display: block;
  line-height: 1.3;
}

.bs-float strong {
  font-size: 0.92rem;
  font-weight: 500;
}

.bs-float small {
  font-size: 0.78rem;
  color: var(--faint);
}

@keyframes bs-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Services ---------- */

.bs-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.bs-svc {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: border-color 0.35s ease, transform 0.5s var(--ease);
}

.bs-svc:hover {
  border-color: var(--line-2);
}

.bs-svc__icon,
.bs-factor__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(169, 155, 255, 0.16), rgba(111, 227, 255, 0.05));
  color: var(--accent);
}

.bs-svc__title {
  margin-top: 1.3rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.bs-svc__text {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.99rem;
}

.bs-svc__tags {
  margin-top: 1.1rem;
}

.bs-svc__go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--accent);
  transition: gap 0.35s var(--ease), color 0.3s ease;
}

.bs-svc__go svg {
  width: 0.95rem;
  height: 0.95rem;
}

.bs-svc__go:hover {
  gap: 0.7rem;
  color: var(--ink);
}

/* Four equal services, each with its own soft glow. */
.bs-svc--web,
.bs-svc--fivem,
.bs-svc--fix,
.bs-svc--discord {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px circle at var(--glow-at, 100% 0%), var(--glow, rgba(169, 155, 255, 0.14)), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.bs-svc--web { --glow: rgba(111, 227, 255, 0.12); --glow-at: 100% 0%; }
.bs-svc--fivem { --glow: rgba(169, 155, 255, 0.16); --glow-at: 100% 0%; }
.bs-svc--fix { --glow: rgba(255, 190, 120, 0.1); --glow-at: 0% 100%; }
.bs-svc--discord { --glow: rgba(120, 132, 255, 0.16); --glow-at: 100% 100%; }

.bs-svc .bs-svc__title {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.bs-svc__text {
  max-width: 34rem;
}

.bs-fw {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.bs-fw span {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(6, 6, 8, 0.5);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
}

.bs-fw span:first-child {
  border-color: rgba(169, 155, 255, 0.5);
  box-shadow: 0 0 24px -6px rgba(169, 155, 255, 0.5);
}


/* Proof */

.bs-proof {
  display: grid;
  gap: 1.4rem;
  margin-top: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
}

.bs-proof__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.bs-proof__logo {
  width: 1.5rem;
  color: var(--accent);
}

.bs-proof__text {
  margin-top: 0.4rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.bs-proof__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-content: center;
}

.bs-proof__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.bs-proof__link svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}

.bs-proof__link:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.bs-proof__link:hover svg {
  transform: translateX(3px);
}

.bs-proof__link--alt {
  border-style: dashed;
  color: var(--muted);
}

/* ---------- Process ---------- */

.bs-process-wrap {
  position: relative;
}

.bs-process {
  position: relative;
  display: grid;
  gap: 1.6rem;
}

.bs-process__rail {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 1px;
  background: var(--line-2);
}

.bs-process__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.8s var(--ease) 0.3s;
}

.bs-process-wrap.is-in .bs-process__fill {
  transform: none;
}

html:not(.js) .bs-process__fill {
  transform: none;
}

.bs-process__step {
  position: relative;
  padding-left: 4.5rem;
}

.bs-process__num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  box-shadow: 0 0 0 6px var(--bg);
}

.bs-process__step:last-child .bs-process__num {
  border-color: rgba(169, 155, 255, 0.6);
  background: linear-gradient(140deg, rgba(169, 155, 255, 0.25), rgba(111, 227, 255, 0.1)), var(--bg);
  color: var(--ink);
}

.bs-process__title {
  padding-top: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
}

.bs-process__text {
  margin-top: 0.35rem;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Price ---------- */

.bs-price {
  display: grid;
  gap: 2.5rem;
}

.bs-price .section__header {
  margin-bottom: 0;
}

.bs-note {
  display: flex;
  gap: 1rem;
  max-width: 30rem;
  margin-top: 2rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(61, 220, 120, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(61, 220, 120, 0.05);
}

.bs-note__icon {
  flex: none;
  color: var(--done);
}

.bs-note__icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.bs-note__title {
  font-weight: 500;
}

.bs-note__text {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.bs-factors {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.bs-factor {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.bs-factor__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
}

.bs-factor__icon .bs-ic {
  width: 1.2rem;
  height: 1.2rem;
}

.bs-factor__title {
  margin-top: 0.9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.bs-factor__text {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Brief ---------- */

.bs-brief {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.bs-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.bs-form-card {
  padding: clamp(1.2rem, 3.5vw, 2.4rem);
  box-shadow: 0 50px 120px -50px rgba(169, 155, 255, 0.3);
}

.bs-form {
  display: flex;
  flex-direction: column;
}

.bs-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Stepper */

.bs-stepper {
  margin-bottom: 2rem;
}

html:not(.js) .bs-stepper,
html:not(.js) .bs-nav__next,
html:not(.js) .bs-nav__prev,
html:not(.js) .bs-nav__count {
  display: none;
}

.bs-stepper__list {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.bs-stepper__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--faint);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.bs-stepper__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.78rem;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.bs-stepper__num svg {
  position: absolute;
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.bs-stepper__item.is-active {
  color: var(--ink);
}

.bs-stepper__item.is-active .bs-stepper__num {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(169, 155, 255, 0.12);
}

.bs-stepper__item.is-done {
  color: var(--muted);
}

.bs-stepper__item.is-done .bs-stepper__num {
  border-color: transparent;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #0b0b0f;
}

.bs-stepper__item.is-done .bs-stepper__num span {
  opacity: 0;
}

.bs-stepper__item.is-done .bs-stepper__num svg {
  opacity: 1;
  transform: none;
}

.bs-stepper__bar {
  height: 3px;
  margin-top: 1rem;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.bs-stepper__bar span {
  display: block;
  height: 100%;
  width: 33.33%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.6s var(--ease);
}

/* Steps */

.bs-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.js .bs-step:not(.is-active) {
  display: none;
}

.js .bs-step.is-active {
  animation: bs-step-in 0.55s var(--ease) both;
}

.js .bs-step.is-back {
  animation-name: bs-step-back;
}

@keyframes bs-step-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes bs-step-back {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: none; }
}

html:not(.js) .bs-step + .bs-step {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.bs-q {
  display: block;
  margin-bottom: 0.85rem;
  padding: 0;
  font-weight: 500;
  font-size: 1.05rem;
}

.bs-q small {
  display: block;
  margin-top: 0.15rem;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--faint);
}

.bs-group + .bs-group,
.bs-group + .bs-row,
.bs-row + .bs-group {
  margin-top: 1.8rem;
}

.bs-group[hidden] + .bs-group {
  margin-top: 0;
}

.bs-row {
  display: grid;
  gap: 1.8rem;
}

/* Type cards */

.bs-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.bs-type {
  position: relative;
  display: block;
  cursor: pointer;
}

.bs-type input,
.bs-tog input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.bs-type__box {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease), box-shadow 0.3s ease;
}

.bs-type:hover .bs-type__box {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.bs-type__icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  transition: background 0.3s ease, color 0.3s ease;
}

.bs-type__icon .bs-ic {
  width: 1.2rem;
  height: 1.2rem;
}

.bs-type__label {
  margin-top: 0.85rem;
  font-weight: 500;
  line-height: 1.25;
}

.bs-type__hint {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--faint);
}

.bs-type__check {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #0b0b0f;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.4s var(--ease);
}

.bs-type__check svg {
  width: 0.8rem;
  height: 0.8rem;
  stroke-width: 3;
}

.bs-type input:checked + .bs-type__box {
  border-color: rgba(169, 155, 255, 0.7);
  background: linear-gradient(140deg, rgba(169, 155, 255, 0.14), rgba(111, 227, 255, 0.04));
  box-shadow: 0 14px 40px -18px rgba(169, 155, 255, 0.6);
}

.bs-type input:checked + .bs-type__box .bs-type__icon {
  background: rgba(169, 155, 255, 0.2);
  color: var(--accent);
}

.bs-type input:checked + .bs-type__box .bs-type__check {
  opacity: 1;
  transform: none;
}

.bs-type input:focus-visible + .bs-type__box,
.bs-tog input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Toggles */

.bs-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bs-tog {
  position: relative;
  cursor: pointer;
}

.bs-tog[hidden] {
  display: none;
}

.bs-tog > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
  color: var(--muted);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  user-select: none;
}

.bs-tog:hover > span {
  border-color: var(--line-strong);
  color: var(--ink);
}

.bs-tog__ic {
  width: 0;
  height: 0.9rem;
  margin-right: -0.45rem;
  stroke-width: 2.6;
  opacity: 0;
  transition: width 0.3s var(--ease), margin 0.3s var(--ease), opacity 0.2s ease;
}

.bs-tog input:checked + span {
  border-color: rgba(169, 155, 255, 0.65);
  background: rgba(169, 155, 255, 0.14);
  color: var(--ink);
}

.bs-tog input:checked + span .bs-tog__ic {
  width: 0.9rem;
  margin-right: 0;
  opacity: 1;
  color: var(--accent);
}

/* Inputs */

.bs-field {
  position: relative;
  display: block;
}

.bs-input {
  display: block;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(6, 6, 8, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.bs-input::placeholder {
  color: #6f6f6b;
}

.bs-input:hover {
  border-color: var(--line-strong);
}

.bs-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(6, 6, 8, 0.8);
  box-shadow: 0 0 0 4px rgba(169, 155, 255, 0.14);
}

.bs-textarea {
  min-height: 11rem;
  padding-bottom: 2rem;
  resize: vertical;
  line-height: 1.6;
}

.bs-count {
  position: absolute;
  right: 0.9rem;
  bottom: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  pointer-events: none;
}

.bs-count.is-low {
  color: var(--wip);
}

.bs-count.is-ok {
  color: var(--done);
}

.bs-input-wrap {
  position: relative;
  display: block;
}

.bs-input-wrap__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  transform: translateY(-50%);
  color: #8b93ff;
  pointer-events: none;
}

.bs-input--icon {
  padding-left: 2.75rem;
}

.bs-field.is-invalid .bs-input,
.bs-field.is-invalid .bs-input:focus {
  border-color: #ff7a7a;
  box-shadow: 0 0 0 4px rgba(255, 122, 122, 0.12);
}

.bs-types.is-invalid .bs-type__box {
  border-color: rgba(255, 122, 122, 0.45);
}

.is-shake {
  animation: bs-shake 0.45s ease;
}

@keyframes bs-shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.bs-me {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(61, 220, 120, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(61, 220, 120, 0.05);
}

.bs-me img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.bs-me small {
  display: block;
  font-size: 0.75rem;
  color: var(--faint);
}

.bs-me strong {
  font-weight: 500;
}

.bs-me em {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--faint);
}

.bs-me__ok {
  width: 1.2rem;
  height: 1.2rem;
  margin-left: auto;
  color: var(--done);
}

.bs-privacy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--faint);
}

.bs-privacy svg {
  flex: none;
  width: 1rem;
  height: 1rem;
}

/* Alerts */

.bs-alert {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.94rem;
  color: var(--muted);
}

.bs-alert svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
}

.bs-alert--error {
  border-color: rgba(255, 122, 122, 0.35);
  background: rgba(255, 122, 122, 0.07);
  color: #ffc9c9;
}

.bs-alert--error svg {
  color: #ff8a8a;
}

.bs-alert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.bs-alert__actions .btn {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

/* Nav */

.bs-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.bs-nav__count {
  margin-right: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
}

.bs-nav__prev + .bs-nav__count {
  margin-left: 0.25rem;
}

.js .bs-nav__send {
  display: none;
}

.js .bs-form.is-last .bs-nav__send {
  display: inline-flex;
}

.js .bs-form.is-last .bs-nav__next {
  display: none;
}

html:not(.js) .bs-nav__send {
  margin-left: auto;
}

.bs-nav__send[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* Done */

.bs-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3.5rem) 0.5rem;
  text-align: center;
}

.bs-done:focus {
  outline: none;
}

.bs-done__check {
  width: 5rem;
  height: 5rem;
  color: var(--done);
  filter: drop-shadow(0 0 24px rgba(61, 220, 120, 0.4));
}

.bs-done__check svg {
  width: 100%;
  height: 100%;
}

.bs-done__check circle,
.bs-done__check path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.bs-done:not([hidden]) .bs-done__check circle {
  animation: draw 0.8s var(--ease) both;
}

.bs-done:not([hidden]) .bs-done__check path {
  animation: draw 0.6s var(--ease) 0.45s both;
}

.bs-done__title {
  margin-top: 1.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.bs-done__text {
  max-width: 28rem;
  margin-top: 0.8rem;
  color: var(--muted);
}

.bs-done__ref {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--faint);
}

.bs-done__ref code {
  margin-left: 0.3rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-family: var(--mono);
  color: var(--ink);
}

.bs-done__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Summary */

.bs-summary {
  padding: clamp(1.2rem, 3vw, 1.7rem);
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.9), rgba(10, 10, 14, 0.9));
}

.bs-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bs-summary__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.bs-summary__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(61, 220, 120, 0.3);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--done);
}

.bs-summary__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  color: rgba(61, 220, 120, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

.bs-summary__live i {
  background: var(--done);
}

.bs-summary__empty {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--faint);
}

.bs-summary__name {
  margin-top: 0.9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.bs-summary__list {
  display: grid;
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.bs-summary__list > div {
  display: grid;
  grid-template-columns: 6.8rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.bs-summary__list > div[hidden] {
  display: none;
}

.bs-summary__list dt {
  color: var(--faint);
}

.bs-summary__list dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.bs-summary__list dd.is-empty {
  color: #5d5d59;
}

.bs-summary__list dd.is-flash {
  animation: bs-flash 0.8s ease;
}

@keyframes bs-flash {
  0% { color: var(--accent); }
  100% { color: var(--ink); }
}

.bs-summary__desc {
  display: -webkit-box;
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-line;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.bs-summary__desc[hidden] {
  display: none;
}

.bs-scope {
  margin-top: 1.4rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.bs-scope__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--faint);
}

.bs-scope__head strong {
  font-weight: 500;
  color: var(--ink);
}

.bs-scope__bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 0.7rem;
}

.bs-scope__bar i {
  height: 6px;
  border-radius: 6px;
  background: var(--line-2);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.bs-scope__bar[data-bs-scope="1"] i:nth-child(-n + 1),
.bs-scope__bar[data-bs-scope="2"] i:nth-child(-n + 2),
.bs-scope__bar[data-bs-scope="3"] i {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px -2px rgba(169, 155, 255, 0.6);
}

.bs-scope__note {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--faint);
}

.bs-summary__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.bs-summary__foot .btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.bs-copy.is-copied {
  border-color: rgba(61, 220, 120, 0.5);
  color: var(--done);
}

/* ---------- FAQ ---------- */

.bs-faq {
  display: grid;
  gap: 1rem;
}

.bs-faq__list {
  display: grid;
  gap: 0.6rem;
}

.bs-qa {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.bs-qa[open] {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
}

.bs-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 500;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}

.bs-qa summary::-webkit-details-marker {
  display: none;
}

.bs-qa summary i {
  position: relative;
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.bs-qa summary i::before,
.bs-qa summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.7rem;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.bs-qa summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.4s var(--ease);
}

.bs-qa[open] summary i {
  border-color: rgba(169, 155, 255, 0.6);
  background: rgba(169, 155, 255, 0.12);
  color: var(--accent);
}

.bs-qa[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.bs-qa summary:hover i {
  border-color: var(--line-strong);
}

.bs-qa__a {
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.bs-qa[open] .bs-qa__a {
  animation: bs-qa-in 0.45s var(--ease);
}

@keyframes bs-qa-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.bs-end__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* The last type card fills the row instead of leaving a gap. */
.bs-type:last-child {
  grid-column: 1 / -1;
}

/* ---------- Larger screens ---------- */

@media (min-width: 560px) {
  .bs-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .bs-factors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .bs-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bs-proof {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .bs-proof__links {
    justify-content: flex-end;
    max-width: 30rem;
  }

  .bs-types {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bs-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .bs-process__rail {
    display: none;
  }
}

@media (min-width: 960px) {
  .bs-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    margin-top: 3rem;
  }

  .bs-hero__visual {
    padding-bottom: 3rem;
  }

  .bs-win {
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
    transition: transform 0.9s var(--ease);
  }

  .bs-hero__visual:hover .bs-win {
    transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
  }

  .bs-float {
    left: -2.2rem;
  }

  .bs-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Diagonal bento: wide, narrow / narrow, wide. */
  .bs-svc--web,
  .bs-svc--discord {
    grid-column: span 2;
  }

  .bs-process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .bs-process__rail {
    display: block;
    left: 1.5rem;
    right: calc(25% - 1.5rem);
    top: 1.5rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .bs-process__fill {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
  }

  .bs-process__step {
    padding-left: 0;
    padding-top: 4.4rem;
  }

  .bs-process__title {
    padding-top: 0;
  }

  .bs-price {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: start;
  }

  .bs-price .section__title,
  .bs-faq .section__title {
    font-size: clamp(2.2rem, 3.9vw, 3.3rem);
  }

  .bs-price__copy {
    position: sticky;
    top: 7rem;
  }

  .bs-brief {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 1.25rem;
  }

  .bs-summary {
    position: sticky;
    top: 6.5rem;
  }

  .bs-faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
    align-items: start;
  }

  .bs-faq__head {
    position: sticky;
    top: 7rem;
  }
}

@media (min-width: 1100px) {
  .bs-hero__line {
    white-space: nowrap;
  }
}

@media (max-width: 479px) {
  .bs-stepper__label {
    display: none;
  }

  .bs-stepper__item.is-active .bs-stepper__label {
    display: inline;
  }

  .bs-hero__actions .btn {
    flex: 1 1 100%;
  }

  .bs-nav .btn {
    padding-inline: 1.1rem;
  }

  .bs-win__tab:not(.is-active) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bs-hero__line--accent::after,
  .bs-float,
  .bs-code.is-active .bs-l:last-child::after,
  .bs-summary__live i {
    animation: none;
  }

  .js .bs-code .bs-l,
  .js .bs-step.is-active {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .bs-process__fill {
    transform: none !important;
    transition: none;
  }

  .bs-win {
    transform: none !important;
  }
}

/* Login card shown in place of the form for visitors who are not logged in. */
.bs-gate {
  max-width: 38rem;
}

.bs-gate .gate__points {
  justify-self: stretch;
}
