/* wholesale.misfitschaos.com: white, ink and the logo green (#00ff30), the
   Archivo wide type of the password page. Mobile first, almost no words.
   Width is set through the font's "wdth" axis (font-variation-settings). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-e3a28eade2.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --grey: #f4f4f2;
  --green: #00ff30;
  --error: #c4001a;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

.kicker,
.bar,
.top__tag,
.top__apply,
.cta,
.field__label,
.perk b,
.path,
.piece__title {
  font-variation-settings: "wdth" 125;
}

/* ---------- top bar and header ---------- */

.bar {
  margin: 0;
  padding: 9px var(--gutter);
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.bar__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 1px 0;
  border-radius: 50%;
  background: var(--green);
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.top__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.top__logo {
  width: 150px;
}

.top__tag {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.top__apply {
  flex-shrink: 0;
  padding: 9px 14px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

/* ---------- type ---------- */

.kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__title,
.block__title,
.card__title {
  margin: 0;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.01em;
  line-height: 1.06;
  text-wrap: balance;
}

/* ---------- the button (same shine as Add to Cart) ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background-color: var(--green);
  background-image: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 62%);
  background-repeat: no-repeat;
  background-size: 250% 100%;
  background-position: 160% 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  animation: cta-shine 3.6s ease-in-out 1s infinite;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}

.cta:active {
  transform: scale(0.985);
}

.cta:focus-visible,
.chip:focus-visible,
.top__apply:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.apply .cta:focus-visible {
  outline-color: var(--ink);
}

.cta[disabled] {
  cursor: default;
  opacity: 0.65;
  animation: none;
}

.cta--wide {
  display: flex;
  width: 100%;
}

@keyframes cta-shine {
  0% {
    background-position: 160% 0;
  }
  55%,
  100% {
    background-position: -60% 0;
  }
}

/* ---------- hero ---------- */

.hero {
  padding: 30px var(--gutter) 0;
}

.hero__title {
  font-size: clamp(34px, 10vw, 60px);
}

.hero__lede {
  margin: 12px 0 22px;
  color: #2b2b2b;
  font-size: 17px;
}

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticks li::before {
  content: "";
  width: 11px;
  height: 6px;
  margin-top: -3px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.hero__photo {
  margin: 26px auto 0;
  max-width: 520px;
}

/* ---------- the doubts, answered in two words ---------- */

.perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.perk {
  display: grid;
  gap: 2px;
  padding: 16px 10px;
  background: #fff;
  text-align: center;
}

.perk b {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.perk span {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- the line ---------- */

.block {
  padding: 48px var(--gutter);
}

.block__title {
  font-size: clamp(26px, 7vw, 40px);
}

.pieces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.piece__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--grey);
}

/* Mock-ups are never cropped: the whole piece always shows. Photos on
   white blend into the grey. */
.piece__photo img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.piece__title {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- application ---------- */

.apply {
  padding: 40px var(--gutter) 48px;
  background: var(--ink);
  scroll-margin-top: 60px;
}

.path {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 520px;
  margin: 0 auto 18px;
  padding: 0;
  list-style: none;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.path li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.path span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--green);
  color: var(--ink);
  letter-spacing: 0;
}

.card {
  max-width: 520px;
  margin: 0 auto;
  padding: 26px 22px 24px;
  background: #fff;
}

.card__title {
  font-size: 28px;
}

.card__lede {
  margin: 8px 0 20px;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

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

.field__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field__opt {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.field.is-bad input {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}

.field__error {
  color: var(--error);
  font-size: 13px;
}

.field__error:empty,
.form__note:empty {
  display: none;
}

.form__note {
  margin: 0;
  color: var(--error);
  font-size: 14px;
}

.form__fine {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.group {
  display: grid;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.group legend {
  margin-bottom: 10px;
  padding: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.skip {
  justify-self: center;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.done__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  background: var(--green);
}

.done__mark svg {
  width: 30px;
  height: 30px;
}

[data-done-title]:focus {
  outline: none;
}

/* ---------- footer and the bar that follows you ---------- */

.foot {
  padding: 32px var(--gutter) 110px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.foot__logo {
  width: 130px;
  margin: 0 auto 10px;
}

.foot p {
  margin: 0;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.dock.is-on {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta {
    animation: none;
    background-image: none;
  }

  .bar__dot {
    animation: none;
  }
}

@media (max-width: 419px) {
  .top__tag {
    display: none;
  }
}

@media (max-width: 899px) {
  .hero .cta {
    display: flex;
    width: 100%;
  }
}

.card .cta {
  padding: 0 12px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* ---------- wider screens ---------- */

@media (min-width: 900px) {
  :root {
    --gutter: 40px;
  }

  .top__logo {
    width: 180px;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    align-items: center;
    gap: 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 48px;
    padding-bottom: 8px;
  }

  .hero__photo {
    margin: 0;
  }

  .perks {
    grid-template-columns: repeat(4, 1fr);
  }

  .block {
    padding-block: 72px;
  }

  .block > * {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }

  .block__title {
    text-align: center;
  }

  .pieces {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .block .cta--wide {
    max-width: 420px;
  }

  .apply {
    padding-block: 64px 72px;
  }

  .card {
    padding: 36px 40px 30px;
  }

  .dock {
    display: none;
  }

  .foot {
    padding-bottom: 32px;
  }
}
