/* Bizello "launching soon" page: one centered screen on navy with the banig weave. */

/*
 * Fonts are served from this site (Latin subset, variable weight), so the first paint
 * waits on no third-party request. All three are SIL Open Font License fonts.
 */
@font-face {
  font-family: "Parkinsans";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/parkinsans-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

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

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

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--bz-navy-200);
  font-family: var(--bz-font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
}

p,
h1 {
  margin: 0;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.icon {
  flex: none;
  width: 18px;
  height: 18px;
}

:focus-visible {
  outline: 2px solid var(--bz-teal-300);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Frame: header, the centered stage, and the footer fill exactly one screen. */
.launch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: stretch;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  background:
    radial-gradient(
      42% 38% at 50% 30%,
      rgba(37, 99, 235, 0.18),
      transparent 70%
    ),
    radial-gradient(
      55% 50% at 100% 0%,
      rgba(20, 184, 166, 0.12),
      transparent 70%
    ),
    radial-gradient(
      55% 55% at 0% 100%,
      rgba(37, 99, 235, 0.16),
      transparent 70%
    ),
    var(--navy-deep);
}

/*
 * Banig weave, the same tiles as the landing footer, faint across the whole screen and
 * cleared in the middle behind the text. A mouse lights a brighter copy near the pointer.
 */
.launch::before,
.launch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: 30px 30px;
  pointer-events: none;
}

.launch::before {
  background-image: url("../assets/banig.svg");
  -webkit-mask-image: radial-gradient(
    75% 75% at 50% 46%,
    transparent 25%,
    rgba(0, 0, 0, 0.35) 65%,
    rgba(0, 0, 0, 0.8) 100%
  );
  mask-image: radial-gradient(
    75% 75% at 50% 46%,
    transparent 25%,
    rgba(0, 0, 0, 0.35) 65%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.launch::after {
  background-image: url("../assets/banig-lit.svg");
  opacity: 0;
  -webkit-mask-image: radial-gradient(
    260px circle at var(--fx, 50%) var(--fy, 50%),
    #000,
    transparent 72%
  );
  mask-image: radial-gradient(
    260px circle at var(--fx, 50%) var(--fy, 50%),
    #000,
    transparent 72%
  );
  transition: opacity 500ms ease;
}

.launch.is-lit::after {
  opacity: 1;
}

.ribbons {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ribbon {
  fill: none;
  stroke-linecap: round;
}

.ribbon--wide {
  stroke: rgba(37, 99, 235, 0.15);
  stroke-width: 70;
}

.ribbon--thin {
  stroke: rgba(20, 184, 166, 0.13);
  stroke-width: 16;
}

/* Header */
.launch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(16px, 3vh, 28px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.wordmark {
  font-family: var(--font-brand);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.header-link {
  color: var(--bz-navy-200);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

/* Stage */
.launch-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 0 clamp(16px, 3vh, 40px);
  text-align: center;
}

/* The hanging sign */
.sign-rig {
  --sign-w: clamp(200px, min(21vw, 36vh), 300px);
  margin-bottom: clamp(14px, 3vh, 32px);
}

.sign {
  position: relative;
  width: var(--sign-w);
  padding-top: calc(var(--sign-w) * 0.27);
  transform-origin: 50% 0;
  transform: rotate(var(--swing, 0deg));
  will-change: transform;
}

.sign-cords {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--sign-w) * 0.29);
  overflow: visible;
}

.sign-cords path {
  fill: none;
  stroke: rgba(203, 213, 225, 0.55);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.sign-nail {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e2e8f0, #64748b 70%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sign-board {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: calc(var(--sign-w) * 0.075) 18px calc(var(--sign-w) * 0.065);
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0) 40%
    ),
    var(--bz-offwhite);
  color: var(--bz-navy);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 -3px 0 rgba(11, 31, 68, 0.12) inset,
    0 0 80px rgba(37, 99, 235, 0.25);
}

.sign-hole {
  position: absolute;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: inset 0 1px 2px rgba(11, 31, 68, 0.6);
}

.sign-hole--l {
  left: calc(15% - 4.5px);
}

.sign-hole--r {
  right: calc(15% - 4.5px);
}

.sign-small {
  color: var(--bz-teal-700);
  font-family: var(--font-brand);
  font-size: calc(var(--sign-w) * 0.052);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sign-big {
  font-family: var(--bz-font-display);
  font-size: calc(var(--sign-w) * 0.118);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sign-rule {
  width: 38%;
  height: 3px;
  margin-block: 6px 2px;
  border-radius: 3px;
  background: var(--bz-gradient);
}

.sign-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bz-navy-600);
  font-family: var(--font-brand);
  font-size: calc(var(--sign-w) * 0.046);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sign-brand img {
  width: calc(var(--sign-w) * 0.055);
  height: auto;
}

/* Copy */
.launch-title {
  max-width: 14ch;
  color: #fff;
  font-family: var(--bz-font-display);
  font-size: clamp(2.3rem, calc(min(5.6vw, 8.2vh) * var(--type-scale)), 5.5rem);
  font-weight: var(--hero-weight);
  line-height: 1.02;
  letter-spacing: var(--hero-tracking);
  text-wrap: balance;
}

.title-accent {
  background: linear-gradient(90deg, var(--bz-cobalt-400), var(--bz-teal-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The 404 page uses a smaller headline. */
.launch-title--small {
  max-width: 16ch;
  font-size: clamp(2.2rem, calc(min(4.6vw, 7vh) * var(--type-scale)), 4.25rem);
}

.launch-lead {
  max-width: 36rem;
  margin-top: clamp(12px, 2.2vh, 22px);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: balance;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(18px, 3.4vh, 32px);
}

.launch-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(14px, 2.6vh, 26px);
  padding: 8px 16px 8px 13px;
  border: 1px solid rgba(20, 184, 166, 0.26);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.07);
  color: var(--bz-navy-100);
  font-size: 0.875rem;
  text-align: left;
}

.launch-chip strong {
  color: var(--bz-teal-300);
  font-weight: 700;
  white-space: nowrap;
}

.live-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bz-teal);
}

/* Buttons */
.btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 0.9375rem/1 var(--bz-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    border-color 160ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-lg {
  --btn-h: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 1rem;
}

.btn-accent {
  background: var(--bz-teal);
  color: var(--bz-navy);
  box-shadow:
    0 12px 32px -12px rgba(20, 184, 166, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-accent .icon {
  transition: transform 200ms var(--ease-out);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .header-link:hover,
  .footer-contact a:hover {
    color: #fff;
  }

  .btn-accent:hover {
    background: var(--bz-teal-400);
  }

  .btn-accent:hover .icon {
    transform: translateX(3px);
  }

  .btn-ghost-light:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.09);
  }
}

/* "What is Bizello?" link at the bottom of the first screen */
.scroll-hint {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 6px;
  margin-bottom: clamp(14px, 2.6vh, 24px);
  padding: 6px 10px;
  color: var(--bz-navy-300);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.scroll-hint .icon {
  width: 16px;
  height: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .scroll-hint:hover {
    color: #fff;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js.is-ready .scroll-hint .icon {
    animation: nudge 2.4s var(--ease-in-out) 2.4s infinite;
  }
}

@keyframes nudge {
  0%,
  60%,
  100% {
    transform: none;
  }
  30% {
    transform: translateY(3px);
  }
}

html {
  scroll-behavior: smooth;
}

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

/* Answers: what Bizello is, in plain questions and answers. */
.answers {
  scroll-margin-top: 24px;
  padding-block: clamp(56px, 10vh, 112px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #071633, var(--navy-deep) 60%);
}

.answers-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.answers-intro {
  position: sticky;
  top: 40px;
}

.answers-title {
  margin: 0;
  color: #fff;
  font-family: var(--bz-font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: var(--head-tracking);
}

.answers-lead {
  margin-top: 18px;
  color: var(--bz-navy-100);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}

.answers-note {
  margin: 14px 0 28px;
  font-size: 0.9375rem;
}

.answers-note strong {
  color: var(--bz-teal-300);
}

.qa {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qa-item {
  padding-block: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.qa-item h3 {
  margin: 0;
  color: #fff;
  font-family: var(--bz-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.qa-item p {
  margin-top: 8px;
  line-height: 1.65;
}

/* Footer */
.launch-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: clamp(14px, 2.6vh, 22px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--bz-navy-300);
  font-size: 0.875rem;
}

.footer-contact {
  display: flex;
  gap: 20px;
}

.footer-contact a {
  text-decoration: none;
  transition: color 160ms ease;
}

/*
 * Motion. Without JavaScript everything is simply visible. With it, the sign drops in on
 * its cords (js/launch.js swings it), then the copy rises in beneath it.
 */
@media (prefers-reduced-motion: no-preference) {
  .js [data-enter] {
    opacity: 0;
    transform: translateY(14px);
  }

  .js.is-ready [data-enter] {
    opacity: 1;
    transform: none;
    transition:
      opacity 700ms ease calc(250ms + var(--i, 0) * 80ms),
      transform 900ms var(--ease-out) calc(250ms + var(--i, 0) * 80ms);
  }

  .js .sign-rig {
    opacity: 0;
    transform: translateY(-60px);
  }

  .js.is-ready .sign-rig {
    opacity: 1;
    transform: none;
    transition:
      opacity 400ms ease,
      transform 900ms cubic-bezier(0.34, 1.4, 0.64, 1);
  }

  .js.is-ready .live-dot {
    animation: live-pulse 2.4s var(--ease-out) infinite;
  }

  .js .ribbon {
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
  }

  .js.is-ready .ribbon {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 2.6s var(--ease-in-out) 300ms;
  }

  .js.is-ready .ribbon--thin {
    transition-delay: 600ms;
  }
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(20, 184, 166, 0);
  }
}

@media (max-width: 640px) {
  .header-link {
    display: none;
  }

  .answers-grid {
    gap: 28px;
  }

  .answers-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .answers-intro {
    position: static;
  }

  .sign-rig {
    --sign-w: min(250px, 66vw);
  }

  .launch-title {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .launch-actions {
    width: 100%;
  }

  .launch-actions .btn {
    flex: 1 1 100%;
  }

  .launch-footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

/* Tablets: the answers stack under their heading. */
@media (max-width: 899px) {
  .answers-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .answers-intro {
    position: static;
  }
}
