:root {
  --hw-bg: #f4f7fb;
  --hw-surface: #ffffff;
  --hw-ink: #101b31;
  --hw-muted: #56617a;
  --hw-line: #d6dfee;
  --hw-primary: #0050c8;
  --hw-primary-deep: #00398f;
  --hw-dark: #081734;
  --hw-dark-2: #0d2149;
}

.how-it-works-page {
  background: var(--hw-bg);
}

.how-it-works-page .wrap {
  width: 100%;
  margin: 0;
  gap: 0;
}

.hw-section {
  width: 100%;
  padding: clamp(48px, 6vw, 92px) 0;
}

.hw-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.hw-section h1,
.hw-section h2,
.hw-section p,
.hw-section li {
  margin: 0;
}

.hw-section h1,
.hw-section h2 {
  color: var(--hw-ink);
  letter-spacing: -0.03em;
}

.hw-section h1 {
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.04;
  font-weight: 800;
}

.hw-section h2 {
  font-size: clamp(34px, 4.1vw, 56px);
  line-height: 1.1;
  font-weight: 800;
}

.hw-section p,
.hw-section li {
  color: var(--hw-muted);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.62;
}

.hw-btn {
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  padding: 14px 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hw-btn:hover {
  transform: translateY(-1px);
}

.hw-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 80, 200, 0.2);
}

.hw-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--hw-primary) 0%, var(--hw-primary-deep) 100%);
  box-shadow: 0 12px 24px rgba(0, 80, 200, 0.3);
}

.hw-btn-outline {
  color: var(--hw-primary);
  border-color: #b9cef3;
  background: #ffffff;
}

.hw-cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hw-microcopy {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
}

/* Hero */
.hw-hero {
  background: radial-gradient(circle at 90% 12%, #253767 0%, transparent 42%),
    linear-gradient(180deg, var(--hw-dark) 0%, var(--hw-dark-2) 100%);
}

.hw-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.hw-hero-copy h1,
.hw-hero-copy p {
  color: #e8edfb;
}

.hw-subhead {
  margin-top: 14px;
  color: #ffffff;
  font-weight: 700;
}

.hw-body {
  margin-top: 10px;
  max-width: 720px;
}

.hw-hero-visual svg {
  width: min(620px, 100%);
  height: auto;
  display: block;
}

/* Blocks */
.hw-block {
  background: var(--hw-surface);
  border-top: 1px solid var(--hw-line);
}

.hw-block.hw-alt {
  background: #f7faff;
}

.hw-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3.4vw, 48px);
  align-items: center;
}

.hw-copy p {
  margin-top: 12px;
}

.hw-copy ul {
  margin: 18px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.hw-copy li::marker {
  color: var(--hw-primary);
}

.hw-illustration svg {
  width: min(440px, 100%);
  height: auto;
  display: block;
  margin-inline: auto;
}

.hw-publish-panel {
  display: grid;
  gap: 12px;
}

.hw-panel-card {
  border: 1px solid #cfdcf3;
  border-radius: 16px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(19, 34, 61, 0.06);
  display: grid;
  gap: 8px;
}

.hw-panel-card p {
  color: #152244;
  font-size: 16px;
  font-weight: 800;
}

.hw-panel-card span {
  color: #415171;
  font-size: 15px;
  font-weight: 600;
}

.hw-callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #c6d8f7;
  background: #eef5ff;
  color: #213355;
}

/* Install steps */
.hw-install {
  background: #ffffff;
  border-top: 1px solid var(--hw-line);
}

.hw-install-head {
  text-align: center;
  margin-bottom: 20px;
}

.hw-step-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hw-step {
  flex: 0 1 280px;
  min-height: 160px;
  border: 1px solid #d0ddef;
  border-radius: 18px;
  background: #f8fbff;
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: center;
  text-align: center;
}

.hw-step span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--hw-primary) 0%, var(--hw-primary-deep) 100%);
}

.hw-step p {
  color: #24334f;
  font-weight: 700;
}

.hw-link {
  align-self: center;
  color: #3d5990;
  font-size: 32px;
  font-weight: 700;
  padding-inline: 6px;
}

.hw-install-note {
  margin-top: 16px;
  text-align: center;
  color: #2e4164;
  font-weight: 700;
}

/* Final */
.hw-final {
  background: linear-gradient(180deg, #0a1837 0%, #0e234d 100%);
}

.hw-final-inner {
  text-align: center;
}

.hw-final h2,
.hw-final p {
  color: #e9eeff;
}

.hw-final .hw-btn-outline {
  border-color: rgba(223, 232, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  color: #edf2ff;
}

.hw-final-cta-row {
  justify-content: center;
}

/* Reveal animation */
.hw-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hw-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hw-hero-grid,
  .hw-two-col {
    grid-template-columns: 1fr;
  }

  .hw-hero-copy,
  .hw-copy {
    text-align: left;
  }

  .hw-link {
    display: none;
  }
}

@media (max-width: 760px) {
  .hw-container {
    width: min(1200px, calc(100% - 24px));
  }

  .hw-section {
    padding: clamp(38px, 8vw, 72px) 0;
  }

  .hw-cta-row .hw-btn {
    width: 100%;
  }
}
