.how-it-works {
  --sqrl-cream-50: #f8f4ee;
  --sqrl-sand-100: #ede0d0;
  --sqrl-sage-200: #eaebc4;
  --sqrl-acorn-400: #e6974c;
  --sqrl-cinnamon-500: #c19a77;
  --sqrl-bark-600: #a87555;
  --sqrl-bg-default: var(--sqrl-cream-50);
  --sqrl-bg-highlight: var(--sqrl-sage-200);
  --sqrl-border-default: var(--sqrl-cinnamon-500);
  --sqrl-accent: var(--sqrl-acorn-400);
  --sqrl-text-brand: var(--sqrl-bark-600);
  --sqrl-font-heading: "Montserrat", "Inter", sans-serif;
  --sqrl-font-body: "Inter", "Montserrat", sans-serif;
  --sqrl-text-body-sm: 1rem;
  --sqrl-text-body-md: 1.25rem;
  --sqrl-text-h1: 2.5rem;
  --sqrl-space-1: 0.375rem;
  --sqrl-space-2: 0.75rem;
  --sqrl-space-3: 1.125rem;
  --sqrl-space-4: 1.5rem;
  --sqrl-space-5: 1.875rem;
  --sqrl-space-6: 2.25rem;
  --sqrl-space-8: 3rem;
  --sqrl-space-10: 3.75rem;
  --sqrl-space-12: 4.5rem;
  --sqrl-radius-sm: 0.375rem;
  --sqrl-radius-md: 0.75rem;
  background: var(--sqrl-bg-default);
  color: #2a170d;
  font-family: var(--sqrl-font-body);
}

.how-it-works *,
.how-it-works *::before,
.how-it-works *::after {
  box-sizing: border-box;
}

.hiw-container {
  margin: 0 auto;
  max-width: 1164px;
  padding: 0 var(--sqrl-space-4);
  width: 100%;
}

.hiw-watch {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--sqrl-bg-default) 100%);
  min-height: calc(100svh - 60px);
  padding: var(--sqrl-space-6) 0 var(--sqrl-space-8);
}

.hiw-watch__inner {
  align-items: center;
  display: grid;
  gap: var(--sqrl-space-5);
  justify-items: center;
}

.hiw-watch__header {
  max-width: 780px;
  text-align: center;
}

.hiw-eyebrow {
  color: var(--sqrl-text-brand);
  font-family: var(--sqrl-font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0 0 var(--sqrl-space-2);
  text-transform: uppercase;
}

.hiw-watch h1 {
  color: #2a170d;
  font-family: var(--sqrl-font-heading);
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
}

.hiw-watch__lede {
  color: #4d4038;
  font-size: var(--sqrl-text-body-md);
  line-height: 1.55;
  margin: var(--sqrl-space-3) auto 0;
  max-width: 600px;
}

.hiw-video-stage {
  align-items: center;
  display: grid;
  gap: var(--sqrl-space-3);
  justify-items: center;
  width: 100%;
}

.hiw-video-card {
  background: #ffffff;
  border: 1px solid rgba(193, 154, 119, 0.45);
  border-radius: var(--sqrl-radius-md);
  max-width: 432px;
  padding: var(--sqrl-space-4);
  width: min(100%, 432px);
}

.hiw-video-card__header {
  align-items: start;
  display: flex;
  gap: var(--sqrl-space-3);
  justify-content: space-between;
  margin-bottom: var(--sqrl-space-3);
}

.hiw-video-card__kicker {
  color: var(--sqrl-text-brand);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0 0 var(--sqrl-space-1);
  text-transform: uppercase;
}

.hiw-video-card h2 {
  color: #2a170d;
  font-family: var(--sqrl-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.hiw-video-card__badge {
  background: var(--sqrl-bg-highlight);
  border-radius: var(--sqrl-radius-sm);
  color: #2a170d;
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: var(--sqrl-space-1) var(--sqrl-space-2);
}

.hiw-video-shell {
  background: #2a170d;
  border-radius: 1.875rem;
  box-shadow: 0 24px 48px rgba(42, 23, 13, 0.18);
  margin: 0 auto;
  max-width: 366px;
  padding: var(--sqrl-space-2);
  position: relative;
}

.hiw-video {
  aspect-ratio: 9 / 16;
  background: #000000;
  border: 0;
  border-radius: 1.5rem;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.hiw-play-button {
  align-items: center;
  background: rgba(42, 23, 13, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--sqrl-radius-pill, 9999px);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--sqrl-font-heading);
  font-size: 0.9375rem;
  font-weight: 800;
  gap: var(--sqrl-space-2);
  left: 50%;
  min-height: 60px;
  padding: var(--sqrl-space-2) var(--sqrl-space-4);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 160ms ease, opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  white-space: nowrap;
}

.hiw-play-button:hover,
.hiw-play-button:focus-visible {
  background: rgba(42, 23, 13, 0.78);
  transform: translate(-50%, -50%) scale(1.03);
}

.hiw-play-button__icon {
  border-bottom: 12px solid transparent;
  border-left: 18px solid #ffffff;
  border-top: 12px solid transparent;
  display: block;
  height: 0;
  margin-left: var(--sqrl-space-1);
  width: 0;
}

.hiw-video-shell.is-playing .hiw-play-button {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.hiw-demo__caption {
  color: #5b4e4b;
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  max-width: 432px;
  text-align: center;
}

.hiw-flow {
  background: #ffffff;
  padding: var(--sqrl-space-10) 0;
}

.hiw-section-heading {
  margin: 0 auto var(--sqrl-space-6);
  max-width: 720px;
  text-align: center;
}

.hiw-section-heading h2,
.hiw-assurance h2 {
  color: #2a170d;
  font-family: var(--sqrl-font-heading);
  font-size: clamp(2rem, 3.5vw, var(--sqrl-text-h1));
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
}

.hiw-step-grid {
  display: grid;
  gap: var(--sqrl-space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hiw-step {
  background: var(--sqrl-bg-default);
  border: 1px solid rgba(193, 154, 119, 0.5);
  border-radius: var(--sqrl-radius-sm);
  min-height: 204px;
  padding: var(--sqrl-space-4);
}

.hiw-step__number {
  align-items: center;
  background: var(--sqrl-accent);
  border-radius: var(--sqrl-radius-sm);
  color: #2a170d;
  display: inline-flex;
  font-family: var(--sqrl-font-heading);
  font-size: 0.9375rem;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  margin-bottom: var(--sqrl-space-3);
  width: 36px;
}

.hiw-step h3 {
  color: #2a170d;
  font-family: var(--sqrl-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 var(--sqrl-space-2);
}

.hiw-step p {
  color: #4d4038;
  font-size: var(--sqrl-text-body-sm);
  line-height: 1.65;
  margin: 0;
}

.hiw-assurance {
  background: var(--sqrl-bg-highlight);
  padding: var(--sqrl-space-10) 0;
}

.hiw-assurance__grid {
  align-items: start;
  display: grid;
  gap: var(--sqrl-space-6);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
}

.hiw-assurance__copy {
  color: #3f342d;
  font-size: var(--sqrl-text-body-md);
  line-height: 1.65;
}

.hiw-assurance__copy p {
  margin: 0 0 var(--sqrl-space-4);
}

.hiw-inline-link {
  color: #2a170d;
  display: inline-flex;
  font-family: var(--sqrl-font-heading);
  font-size: 0.9375rem;
  font-weight: 800;
  text-decoration-color: var(--sqrl-accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.hiw-inline-link:hover {
  color: var(--sqrl-text-brand);
}

@media (min-width: 960px) {
  .hiw-watch {
    align-items: center;
    display: flex;
  }

  .hiw-watch__inner {
    gap: var(--sqrl-space-8);
    grid-template-columns: minmax(0, 0.92fr) minmax(348px, 432px);
    justify-items: stretch;
  }

  .hiw-watch__header {
    max-width: 560px;
    text-align: left;
  }

  .hiw-watch h1 {
    font-size: clamp(2.5rem, 4.2vw, 3.75rem);
  }

  .hiw-watch__lede {
    margin-left: 0;
    margin-right: 0;
    max-width: 510px;
  }

  .hiw-video-stage {
    justify-items: center;
  }
}

@media (max-width: 900px) {
  .hiw-watch {
    min-height: auto;
    padding-top: var(--sqrl-space-6);
  }

  .hiw-assurance__grid {
    grid-template-columns: 1fr;
  }

  .hiw-step-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hiw-container {
    padding: 0 var(--sqrl-space-3);
  }

  .hiw-watch {
    padding: var(--sqrl-space-5) 0 var(--sqrl-space-8);
  }

  .hiw-watch h1 {
    font-size: 2.25rem;
  }

  .hiw-watch__lede,
  .hiw-assurance__copy {
    font-size: var(--sqrl-text-body-sm);
  }

  .hiw-video-card {
    padding: var(--sqrl-space-3);
  }

  .hiw-video-shell {
    border-radius: 1.5rem;
    padding: var(--sqrl-space-1);
  }

  .hiw-video {
    border-radius: 1.125rem;
  }

  .hiw-play-button {
    min-height: 54px;
    padding: var(--sqrl-space-2) var(--sqrl-space-3);
  }

  .hiw-play-button__label {
    display: none;
  }

  .hiw-flow,
  .hiw-assurance {
    padding: var(--sqrl-space-8) 0;
  }
}
