:root {
  --black: #050505;
  --white: #ffffff;
  --grey: #dededc;
  --light-grey: #f3f3f1;
  --blue: #142b8f;
  --line: 1px solid var(--black);
  --smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.cart-items::-webkit-scrollbar,
.search-results::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  overflow-x: hidden;

  background: var(--white);
  color: var(--black);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 13px;
  font-weight: 700;

  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

/* LOADER */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: grid;
  place-items: center;

  background: var(--black);
  color: var(--white);

  transition:
    opacity 850ms var(--smooth),
    visibility 850ms var(--smooth);
}

.page-loader span {
  font-family:
    "Arial Black",
    Impact,
    sans-serif;

  font-size: clamp(52px, 11vw, 170px);
  letter-spacing: -0.1em;

  animation:
    loaderPulse 1s var(--smooth)
    infinite alternate;
}

.page-loader.hidden {
  visibility: hidden;
  opacity: 0;
}

@keyframes loaderPulse {
  from {
    opacity: 0.45;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* PROMO */

.promo-bar {
  min-height: 25px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  padding: 5px 16px;

  background: var(--blue);
  color: var(--white);

  font-size: 10px;
  letter-spacing: 0.05em;
}

.promo-bar a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* HEADER */

.site-header {
  position: absolute;
  top: 25px;
  left: 0;
  z-index: 50;

  width: 100%;
  padding: 18px 20px 0;

  opacity: 0;
  transform: translateY(-18px);

  transition:
    opacity 950ms var(--smooth),
    transform 950ms var(--smooth);
}

body.loaded .site-header {
  opacity: 1;
  transform: translateY(0);
}

.utility-row,
.main-row {
  display: flex;
  align-items: stretch;

  background: rgba(255, 255, 255, 0.98);
  border: var(--line);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.utility-row {
  min-height: 42px;

  border-bottom: 0;
}

.utility-tab,
.utility-button {
  display: flex;
  align-items: center;

  padding: 0 22px;

  background: transparent;
  border: 0;
  border-right: var(--line);

  font-size: 11px;

  transition:
    background 350ms var(--smooth),
    color 350ms var(--smooth);
}

.utility-tab.active {
  background: var(--blue);
  color: var(--white);
}

.utility-spacer {
  flex: 1;
}

.utility-button:last-child {
  border-right: 0;
  border-left: var(--line);
}

.utility-tab:hover,
.utility-button:hover {
  background: var(--black);
  color: var(--white);
}

.main-row {
  min-height: 73px;

  align-items: center;

  padding: 0 28px;
}

.logo {
  margin-right: auto;

  font-family:
    "Arial Black",
    Impact,
    sans-serif;

  font-size: clamp(30px, 3vw, 46px);
  letter-spacing: -0.09em;
  line-height: 1;

  transition:
    transform 500ms var(--smooth);
}

.logo:hover {
  transform: scale(1.015);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 29px;
}

.desktop-nav a {
  position: relative;

  font-size: 11px;
  letter-spacing: 0.04em;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;

  height: 1px;

  content: "";

  background: currentColor;

  transform: scaleX(0);
  transform-origin: right;

  transition:
    transform 420ms var(--smooth);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-action,
.mobile-menu-button {
  margin-left: 30px;
  padding: 0;

  background: transparent;
  border: 0;

  font-size: 11px;
}

.mobile-menu-button,
.mobile-menu {
  display: none;
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;

  min-height: 100vh;

  background: #17120e;
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: -3%;

  background-image:
    url("/assets/hero/billzap-hero.png"),
    linear-gradient(
      120deg,
      #0c0908 20%,
      #3a281d 58%,
      #c5893e 100%
    );

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  opacity: 0;
  transform: scale(1.12);

  transition:
    opacity 1.4s var(--smooth),
    transform 2.5s var(--smooth);
}

body.loaded .hero-image {
  opacity: 1;
  transform: scale(1.035);
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.86),
      rgba(0, 0, 0, 0.47) 42%,
      rgba(0, 0, 0, 0.08) 78%
    ),
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.35),
      transparent 50%
    );
}

.hero-copy {
  position: absolute;
  left: 4.5%;
  bottom: 10%;
  z-index: 2;

  max-width: 800px;
}

.hero-copy > * {
  opacity: 0;

  filter: blur(8px);
  transform: translateY(25px);

  transition:
    opacity 1s var(--smooth),
    filter 1s var(--smooth),
    transform 1s var(--smooth);
}

body.loaded .hero-copy > * {
  opacity: 1;

  filter: blur(0);
  transform: translateY(0);
}

body.loaded
.hero-copy > *:nth-child(1) {
  transition-delay: 350ms;
}

body.loaded
.hero-copy > *:nth-child(2) {
  transition-delay: 450ms;
}

body.loaded
.hero-copy > *:nth-child(3) {
  transition-delay: 560ms;
}

body.loaded
.hero-copy > *:nth-child(4) {
  transition-delay: 680ms;
}

.hero-label {
  margin: 0 0 14px;

  font-size: 11px;
}

.hero h1 {
  margin: 0;

  font-family:
    "Arial Black",
    Impact,
    sans-serif;

  font-size: clamp(62px, 7.2vw, 132px);
  letter-spacing: -0.075em;
  line-height: 0.8;
}

.hero-copy > p:not(.hero-label) {
  margin: 19px 0;
}

.primary-button {
  position: relative;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 155px;
  min-height: 43px;

  background: var(--white);
  color: var(--black);
  border: var(--line);
}

.primary-button::before {
  position: absolute;
  inset: 0;

  content: "";

  background: var(--black);

  transform: translateY(102%);

  transition:
    transform 520ms var(--smooth);
}

.primary-button span {
  position: relative;
  z-index: 1;

  transition:
    color 420ms var(--smooth);
}

.primary-button:hover::before {
  transform: translateY(0);
}

.primary-button:hover span {
  color: var(--white);
}

.hero-counter {
  position: absolute;
  right: 28px;
  bottom: 25px;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 10px;
}

.counter-line {
  width: 70px;
  height: 1px;

  background:
    rgba(255, 255, 255, 0.65);
}

/* REVEALS */

.reveal {
  opacity: 0;

  filter: blur(6px);
  transform: translateY(42px);

  transition:
    opacity 950ms var(--smooth),
    filter 950ms var(--smooth),
    transform 950ms var(--smooth);
}

.reveal.visible {
  opacity: 1;

  filter: blur(0);
  transform: translateY(0);
}

/* CATEGORY BAR */

.category-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  border-bottom: var(--line);
}

.category-bar button {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  min-height: 64px;

  background: var(--white);
  border: 0;
  border-right: var(--line);

  font-size: 11px;

  transition:
    color 400ms var(--smooth);
}

.category-bar button:last-child {
  border-right: 0;
}

.category-bar button::before {
  position: absolute;
  inset: 0;
  z-index: -1;

  content: "";

  background: var(--black);

  transform: translateY(101%);

  transition:
    transform 500ms var(--smooth);
}

.category-bar button:hover,
.category-bar button.active {
  color: var(--white);
}

.category-bar button:hover::before,
.category-bar button.active::before {
  transform: translateY(0);
}

/* SHOP */

.shop {
  border-bottom: var(--line);
}

.section-header {
  min-height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 20px;

  border-bottom: var(--line);
}

.section-header h2 {
  margin: 0;

  font-size: 15px;
}

.section-tools {
  display: flex;
  align-items: center;
  gap: 24px;

  font-size: 10px;
}

.section-tools button {
  background: transparent;
  border: 0;

  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

.product-card {
  min-width: 0;

  opacity: 0;
  transform: translateY(32px);

  border-right: var(--line);
  border-bottom: var(--line);

  transition:
    opacity 800ms var(--smooth),
    transform 800ms var(--smooth);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:nth-child(2n) {
  border-right: 0;
}

.product-grid.compact
.product-card:nth-child(2n) {
  border-right: var(--line);
}

.product-grid.compact
.product-card:nth-child(3n) {
  border-right: 0;
}

.product-visual {
  position: relative;
  overflow: hidden;

  aspect-ratio: 4 / 3;

  display: grid;
  place-items: center;

  background: var(--grey);
}

.product-visual img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 750ms var(--smooth);
}

.product-card:hover
.product-visual img {
  transform: scale(1.025);
}

.product-placeholder {
  width: 68%;
  aspect-ratio: 1;

  display: grid;
  place-items: center;

  padding: 22px;

  background: var(--black);
  color: var(--white);

  font-family:
    "Arial Black",
    Impact,
    sans-serif;

  font-size: clamp(30px, 5vw, 85px);
  letter-spacing: -0.07em;
  line-height: 0.82;
  text-align: center;
}

.product-labels {
  position: absolute;
  top: 13px;
  left: 12px;
  z-index: 2;

  display: flex;
  gap: 7px;
}

.product-label {
  padding: 5px 9px;

  background: var(--black);
  color: var(--white);

  font-size: 10px;
}

.product-label.blue {
  background: var(--blue);
}

.product-info {
  min-height: 105px;

  padding: 16px 18px;

  border-top: var(--line);
}

.product-info h3 {
  margin: 0;

  font-size: 13px;
}

.product-info p {
  margin: 8px 0 0;

  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.product-info .product-price {
  font-weight: 700;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;

  border-top: var(--line);
}

.product-actions a,
.product-actions button {
  min-height: 44px;

  display: grid;
  place-items: center;

  background: var(--white);
  border: 0;

  font-size: 10px;

  transition:
    background 380ms var(--smooth),
    color 380ms var(--smooth);
}

.product-actions a {
  border-right: var(--line);
}

.product-actions a:hover,
.product-actions button:hover {
  background: var(--black);
  color: var(--white);
}

.empty-shop {
  grid-column: 1 / -1;

  min-height: 360px;

  display: grid;
  place-items: center;

  border-bottom: var(--line);
}

/* BLUE FEATURE */

.blue-feature {
  min-height: 500px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  overflow: hidden;

  background: var(--blue);
  color: var(--white);

  border-bottom: var(--line);
}

.blue-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 38px 24px;

  border-right:
    1px solid rgba(255, 255, 255, 0.4);
}

.blue-feature-copy p {
  margin: 0 0 18px;

  font-size: 11px;
}

.blue-feature-copy h2 {
  margin: 0;

  font-family:
    "Arial Black",
    Impact,
    sans-serif;

  font-size: clamp(60px, 7vw, 120px);
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.blue-feature-copy a {
  width: fit-content;

  margin-top: 30px;
  padding-bottom: 4px;

  border-bottom:
    1px solid currentColor;
}

.blue-feature-mark {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;

  overflow: hidden;

  font-family:
    "Arial Black",
    Impact,
    sans-serif;

  font-size: clamp(80px, 10vw, 180px);
  letter-spacing: -0.1em;
  line-height: 0.78;
  text-align: center;
  white-space: nowrap;

  transform: translateX(-0.04em);

  transition:
    transform 1.2s var(--smooth);
}

.blue-feature:hover .blue-feature-mark {
  transform:
    translateX(-0.04em)
    scale(1.025);
}

.blue-feature:hover
.blue-feature-mark {
  transform: scale(1.035);
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;

  border-bottom: var(--line);
}

.faq-title {
  min-height: 500px;

  padding: 35px 22px;

  border-right: var(--line);
}

.faq-title p {
  margin: 0 0 30px;

  font-size: 10px;
}

.faq-title h2 {
  margin: 0;

  font-family:
    "Arial Black",
    Impact,
    sans-serif;

  font-size: clamp(80px, 10vw, 180px);
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.faq-list {
  padding: 35px 22px;
}

.faq-item {
  border-top: var(--line);
}

.faq-item:last-child {
  border-bottom: var(--line);
}

.faq-question {
  width: 100%;
  min-height: 74px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 0;

  background: transparent;
  border: 0;

  text-align: left;
  font-size: 12px;

  transition:
    padding-left 500ms var(--smooth);
}

.faq-question:hover {
  padding-left: 8px;
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;

  transition:
    transform 600ms var(--smooth);
}

.faq-item.open
.faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;

  opacity: 0;

  transition:
    height 650ms var(--smooth),
    opacity 450ms ease;
}

.faq-item.open
.faq-answer {
  opacity: 1;
}

.faq-answer-inner {
  padding: 0 50px 28px 0;

  font-size: 11px;
  line-height: 1.55;

  transform: translateY(-8px);

  transition:
    transform 650ms var(--smooth);
}

.faq-item.open
.faq-answer-inner {
  transform: translateY(0);
}

/* FOOTER */

.footer {
  min-height: 420px;

  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 35px;

  padding: 35px 22px;

  background: var(--black);
  color: var(--white);
}

.footer-logo {
  font-family:
    "Arial Black",
    Impact,
    sans-serif;

  font-size: clamp(70px, 12vw, 210px);
  letter-spacing: -0.1em;
  line-height: 0.75;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column p {
  margin: 0 0 15px;

  opacity: 0.55;
}

.footer-column a,
.footer-column p {
  font-size: 11px;
}

.footer-bottom {
  align-self: end;
  grid-column: 1 / -1;

  display: flex;
  justify-content: space-between;

  padding-top: 20px;

  border-top:
    1px solid rgba(255, 255, 255, 0.35);

  font-size: 9px;
}

/* CART */

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 110;

  width: min(480px, 100%);
  height: 100dvh;

  display: flex;
  flex-direction: column;

  visibility: hidden;
  opacity: 0;

  background: var(--white);
  border-left: var(--line);

  filter: blur(4px);
  transform:
    translateX(105%)
    scale(0.985);

  transition:
    transform 700ms var(--smooth),
    opacity 450ms ease,
    filter 700ms var(--smooth),
    visibility 700ms;
}

.cart-drawer.open {
  visibility: visible;
  opacity: 1;

  filter: blur(0);
  transform:
    translateX(0)
    scale(1);
}

.drawer-header {
  min-height: 62px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 18px;

  border-bottom: var(--line);
}

.drawer-header h2 {
  margin: 0;

  font-size: 13px;
}

.drawer-header button {
  background: transparent;
  border: 0;

  font-size: 10px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;

  padding: 0 18px;

  scrollbar-width: none;
}

.empty-cart {
  margin: 22px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 85px 1fr auto;
  gap: 13px;

  padding: 18px 0;

  border-bottom: var(--line);
}

.cart-item-visual {
  width: 85px;
  height: 85px;

  display: grid;
  place-items: center;

  background: var(--grey);
}

.cart-item-visual img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.cart-item-placeholder {
  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;

  padding: 8px;

  background: var(--black);
  color: var(--white);

  font-size: 9px;
  text-align: center;
}

.cart-item p {
  margin: 0;
}

.cart-item p + p {
  margin-top: 8px;
}

.remove-button {
  align-self: start;

  padding: 0;

  background: transparent;
  border: 0;

  font-size: 9px;
  text-decoration: underline;
}

.cart-footer {
  padding: 18px;

  border-top: var(--line);
}

.cart-total {
  display: flex;
  justify-content: space-between;

  margin-bottom: 18px;
}

.checkout-button {
  width: 100%;
  min-height: 50px;

  background: var(--black);
  color: var(--white);
  border: var(--line);
}

/* SEARCH */

.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;

  width: 100%;

  visibility: hidden;
  opacity: 0;

  background:
    rgba(255, 255, 255, 0.98);

  border-bottom: var(--line);

  filter: blur(6px);
  transform: translateY(-105%);

  transition:
    transform 700ms var(--smooth),
    opacity 450ms ease,
    filter 700ms var(--smooth),
    visibility 700ms;
}

.search-panel.open {
  visibility: visible;
  opacity: 1;

  filter: blur(0);
  transform: translateY(0);
}

.search-row {
  min-height: 78px;

  display: grid;
  grid-template-columns: 1fr auto;

  border-bottom: var(--line);
}

.search-row input {
  width: 100%;

  padding: 0 22px;

  background: transparent;
  border: 0;
  outline: 0;

  font-size: 25px;
  font-weight: 900;
}

.search-row button {
  padding: 0 25px;

  background: transparent;
  border: 0;
  border-left: var(--line);
}

.search-results {
  max-height: 500px;

  display: grid;
  grid-template-columns:
    repeat(4, 1fr);

  overflow-y: auto;

  scrollbar-width: none;
}

.search-result {
  min-height: 95px;

  padding: 18px;

  background: var(--white);
  border: 0;
  border-right: var(--line);
  border-bottom: var(--line);

  text-align: left;

  transition:
    background 350ms var(--smooth),
    color 350ms var(--smooth);
}

.search-result:hover {
  background: var(--black);
  color: var(--white);
}

.search-result p {
  margin: 0;
}

.search-result p + p {
  margin-top: 7px;
}

/* OVERLAY */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;

  visibility: hidden;
  opacity: 0;

  background:
    rgba(0, 0, 0, 0.38);

  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);

  transition:
    opacity 550ms var(--smooth),
    backdrop-filter 550ms var(--smooth),
    visibility 550ms;
}

.overlay.visible {
  visibility: visible;
  opacity: 1;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* TABLET */

@media (max-width: 1050px) {
  .desktop-nav,
  .header-action {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .mobile-menu {
    flex-direction: column;

    max-height: 0;
    overflow: hidden;

    background: var(--white);
    border: var(--line);
    border-top: 0;

    opacity: 0;

    transition:
      max-height 650ms var(--smooth),
      opacity 450ms ease;
  }

  .mobile-menu.open {
    display: flex;

    max-height: 500px;

    opacity: 1;
  }

  .mobile-menu a,
  .mobile-menu button {
    padding: 17px 20px;

    background: var(--white);
    border: 0;
    border-bottom: var(--line);

    text-align: left;
    font-size: 11px;
  }

  .blue-feature,
  .faq {
    grid-template-columns: 1fr;
  }

  .blue-feature-copy,
  .faq-title {
    border-right: 0;
    border-bottom: var(--line);
  }
}

/* PHONE */

@media (max-width: 650px) {
  .site-header {
    top: 32px;

    padding: 10px 10px 0;
  }

  .promo-bar {
    min-height: 32px;

    font-size: 8px;
  }

  .utility-row {
    display: none;
  }

  .main-row {
    min-height: 58px;

    padding: 0 15px;
  }

  .logo {
    font-size: 29px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-image {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0.62) 36%,
        rgba(0, 0, 0, 0.1) 78%
      );
  }

  .hero-copy {
    right: 20px;
    bottom: 64px;
    left: 20px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-counter {
    display: none;
  }

  .category-bar {
    grid-template-columns: 1fr 1fr;
  }

  .category-bar button:nth-child(2n) {
    border-right: 0;
  }

  .product-grid,
  .product-grid.compact {
    grid-template-columns: 1fr;
  }

  .product-card,
  .product-card:nth-child(2n),
  .product-grid.compact
  .product-card {
    border-right: 0;
  }

  .blue-feature-copy h2 {
    font-size: 56px;
  }

  .faq-title h2 {
    font-size: 90px;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    grid-column: auto;
    flex-direction: column;
    gap: 10px;
  }

  .search-results {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}