/* ============================================
   How It Works Page — light / 1px visual language
   ============================================ */

/* Hero */

.how-hero {
  --how-section-padding: 88px;
  padding: var(--how-section-padding) 0 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.how-hero > .container {
  position: relative;
}

.how-hero > .container::before {
  left: 32px;
}

.how-hero > .container::after {
  right: 32px;
}

.how-hero-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 70px;
  align-items: center;
  padding-bottom: 88px;
}

.how-hero-copy {
  max-width: 760px;
  text-align: left;
}

.how-eyebrow {
  margin: 0 0 16px;
  color: var(--label-ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.how-hero-copy h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-family-editorial);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.how-lead {
  margin: 24px 0 0;
  max-width: 620px;
  color: var(--muted-ink);
  font-size: 1.05rem;
  line-height: 1.85;
}

.how-hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Hero visual */

.how-hero-visual {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.how-hero-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-visual-dots {
  display: inline-flex;
  gap: 6px;
}

.hero-visual-dots span {
  width: 9px;
  height: 9px;
  background: var(--line);
}

.hero-visual-search {
  flex: 1;
  height: 34px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}

.how-hero-infographic {
  display: grid;
  gap: 10px;
}

.infographic-step {
  padding: 20px;
  border: 1px solid var(--line-soft);
  background: rgba(248, 250, 252, 0.94);
}

.infographic-step-accent {
  border-color: rgba(31, 122, 87, 0.3);
  box-shadow: inset 0 0 0 1px rgba(31, 122, 87, 0.12);
}

.infographic-step-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.infographic-step-head > div {
  text-align: left;
}

.infographic-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 750;
}

.infographic-step small {
  display: block;
  margin-bottom: 6px;
  color: var(--label-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.infographic-step strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.infographic-step p {
  margin: 14px 0 0;
  color: var(--muted-ink);
  font-size: 0.92rem;
  line-height: 1.75;
}

.infographic-connector {
  display: flex;
  justify-content: center;
  height: 16px;
}

.infographic-connector span {
  width: 1px;
  background: var(--line);
}

/* Journey section */

.how-journey {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
  background-color: rgba(248, 250, 252, 0.94);
}

.how-section-header {
  max-width: 780px;
  margin-bottom: 36px;
  text-align: left;
}

.how-section-header.narrow {
  max-width: 720px;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--label-ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.how-section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-align: left;
}

.how-section-header p:last-child {
  margin-top: 18px;
  color: var(--muted-ink);
  font-size: 1rem;
  line-height: 1.85;
}

.how-journey-track {
  display: flex;
  align-items: center;
  max-width: 440px;
  margin-bottom: 36px;
}

.journey-step {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted-ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.journey-step.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.journey-track-line {
  flex: 1;
  height: 1px;
  margin: 0 10px;
  background: var(--line);
}

.journey-blocks {
  display: grid;
  gap: 100px;
}

.journey-block {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 1.04fr);
  gap: 70px;
  align-items: center;
}

.journey-block.reverse {
  direction: rtl;
}

.journey-block.reverse > * {
  direction: ltr;
}

.journey-block-kicker {
  margin: 0 0 14px;
  color: var(--label-ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journey-block h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.journey-block-lead {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.journey-block-text {
  margin: 16px 0 0;
  color: var(--muted-ink);
  font-size: 0.98rem;
  line-height: 1.85;
}

.journey-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.journey-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted-ink);
  font-size: 0.94rem;
  line-height: 1.65;
}

.journey-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 8px;
  height: 8px;
  background: var(--accent-green);
}

/* Journey visual shells */

.journey-block-visual {
  min-width: 0;
}

.journey-visual-window {
  padding: 30px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}

.journey-visual-window p {
  margin: 0 0 14px;
  color: var(--label-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visual-file-list,
.output-grid {
  display: grid;
  gap: 8px;
}

.visual-file-list span,
.output-grid span,
.visual-processing-note {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  background: rgba(248, 250, 252, 0.94);
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.visual-bars {
  height: 130px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.visual-bars span {
  height: var(--bar-size);
  background: rgba(31, 122, 87, 0.42);
}

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

/* Belief section */

.how-belief {
  --how-belief-padding: 88px;
  padding: var(--how-belief-padding) 0;
  background: var(--surface);
}

.how-belief-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 0;
  align-items: center;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

.how-belief-grid::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--how-belief-padding));
  bottom: calc(-1 * var(--how-belief-padding));
  left: 44%;
  width: 1px;
  background: var(--line);
}

.how-belief-grid > * {
  padding: 0 34px;
}

.how-belief-quote {
  padding: 26px 28px;
  border-left: 1px solid var(--line-soft);
  background: var(--surface);
}

.how-belief-quote p,
.how-belief-quote strong {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-family-editorial);
  font-size: clamp(1.35rem, 2vw, 2.05rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.how-belief-quote strong {
  margin-top: 16px;
  color: var(--accent-green);
}

.how-belief-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.how-belief-copy p:last-child {
  margin: 24px 0 0;
  color: var(--muted-ink);
  font-size: 1.02rem;
  line-height: 1.86;
}

/* Outputs section */

.how-outputs {
  padding: 88px 0;
  background: rgba(248, 250, 252, 0.94);
  border-bottom: 1px solid var(--line);
}

.outputs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.output-card {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.output-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.3rem;
}

.output-card p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Audience section */

.how-audience {
  padding: 88px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.audience-card {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0;
}

.audience-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.3rem;
}

.audience-card p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Deployment section */

.deployment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  box-shadow: 0px 3px 9px #bbbbbb26;
}

.deployment-card {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.deployment-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.3rem;
}

.deployment-card p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.95rem;
  line-height: 1.75;
}

.deployment-label {
  display: block;
  margin-bottom: 12px;
  color: var(--label-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Closing section (merged deployment + CTA) */

.how-closing {
  --how-closing-grid-size: 72px;
  padding: 88px 0;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    var(--surface);
  background-size: var(--how-closing-grid-size) var(--how-closing-grid-size);
}

.how-closing-cta {
  max-width: 860px;
  margin: 56px auto 0;
  text-align: center;
}

.how-closing-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.how-closing-cta p {
  max-width: 660px;
  margin: 18px auto 0;
  color: var(--muted-ink);
  font-size: 1rem;
  line-height: 1.8;
}

.how-cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */

@media (max-width: 1100px) {
  .how-hero-inner {
    grid-template-columns: 1fr;
  }

  .how-hero-inner .how-hero-copy {
    order: -1;
  }

  .journey-block,
  .journey-block.reverse {
    grid-template-columns: 1fr;
  }

  .journey-block.reverse {
    direction: ltr;
  }

  .how-belief-grid {
    grid-template-columns: 1fr;
  }

  .how-belief-grid::before {
    display: none;
  }

  .how-belief-grid {
    border-left: 0;
    border-right: 0;
  }

  .how-belief-grid > * {
    padding: 0;
  }

  .how-belief-grid > * + * {
    margin-top: 34px;
    padding-top: 34px;
    border-top: 1px solid var(--line-soft);
  }

  .outputs-grid,
  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .deployment-grid {
    grid-template-columns: 1fr;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .how-hero > .container::before,
  .how-hero > .container::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .how-hero {
    --how-section-padding: 64px;
  }

  .how-belief {
    --how-belief-padding: 64px;
  }

  .how-hero,
  .how-journey,
  .how-outputs,
  .how-audience,
  .how-closing {
    padding: 64px 0;
  }

  .how-hero-inner {
    padding-bottom: 64px;
  }

  .output-grid,
  .outputs-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .how-hero-copy h1 {
    max-width: 12ch;
  }
}

@media (max-width: 576px) {
  .how-hero-actions,
  .how-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .how-hero-actions .button,
  .how-cta-actions .button {
    width: 100%;
  }

  .how-hero-copy h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .journey-visual-shell,
  .output-card,
  .audience-card,
  .deployment-card {
    padding: 22px;
  }
}
