/* How It Works page — snapped-how-it-works design by Nick */

.hiw-page {
  --hiw-bg: #ffffff;
  --hiw-text: #0f172a;
  --hiw-muted: #475569;
  --hiw-muted-light: #64748b;
  --hiw-border: #e2e8f0;
  --hiw-brand: #ff4b0a;
  --hiw-panel-bg-1: #1e293b;
  --hiw-panel-bg-2: #334155;
  --hiw-goal-bg-1: #0f172a;
  --hiw-goal-bg-2: #1e293b;
  --hiw-shell: #f1f5f9;
  --hiw-container: 1280px;

  min-height: 100vh;
  background: #fff;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--hiw-text);
}

.hiw-page img {
  display: block;
  max-width: 100%;
}

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

/* Hero */
.hiw-hero {
  overflow: hidden;
}

.hiw-hero-grid {
  display: grid;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hiw-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hiw-brand);
  margin: 0;
}

.hiw-eyebrow-center {
  display: block;
  text-align: center;
}

.hiw-heading-wrap {
  margin-top: 1.5rem;
}

.hiw-page h1,
.hiw-page h2,
.hiw-page h3,
.hiw-page p {
  margin: 0;
}

.hiw-hero-title {
  font-size: 2.5rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: #020617;
}

.hiw-accent-line {
  width: 2.5rem;
  height: 0.25rem;
  background: var(--hiw-brand);
  border-radius: 9999px;
}

.hiw-heading-wrap .hiw-accent-line {
  margin-top: 1.5rem;
}

.hiw-hero-text {
  max-width: 40rem;
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  line-height: 2rem;
  color: var(--hiw-muted);
}

.hiw-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hiw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.hiw-btn-primary {
  background: var(--hiw-brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.hiw-btn-secondary {
  background: #fff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

/* Hero panel */
.hiw-panel-shell {
  border: 1px solid var(--hiw-border);
  border-radius: 1.5rem;
  background: var(--hiw-shell);
  padding: 1rem;
}

.hiw-panel {
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--hiw-panel-bg-1), var(--hiw-panel-bg-2));
  padding: 1.25rem;
  color: #fff;
}

.hiw-panel-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.hiw-panel-heading .hiw-accent-line {
  margin-top: 0.75rem;
}

.hiw-panel-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.hiw-panel-item {
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
}

.hiw-panel-item-highlight {
  background: var(--hiw-brand);
  color: #fff;
  font-weight: 600;
}

/* Divider */
.hiw-divider {
  width: 100%;
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--hiw-border);
}

/* Sections */
.hiw-section {
  padding: 2.5rem 0;
}

.hiw-section-tight {
  padding-top: 2rem;
}

.hiw-section-heading {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.hiw-section-heading h2 {
  margin-top: 1rem;
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: #020617;
}

.hiw-section-text {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 2rem;
  color: var(--hiw-muted);
}

/* Cards grid */
.hiw-cards-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* Step cards */
.hiw-step-card {
  border: 1px solid var(--hiw-border);
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.hiw-step-number {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--hiw-brand);
}

.hiw-step-card h3 {
  margin-top: 1rem;
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
}

.hiw-step-card p {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--hiw-muted);
}

.hiw-card-image-wrap {
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--hiw-border);
  border-radius: 0.75rem;
}

.hiw-card-image-wrap img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
}

/* Benefit cards */
.hiw-benefit-card {
  border: 1px solid rgba(255, 75, 10, 0.4);
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.75rem 1.5rem;
}

.hiw-benefit-card h3 {
  font-size: 1.1875rem;
  line-height: 1.4;
  font-weight: 600;
  color: #0f172a;
}

.hiw-benefit-card .hiw-accent-line {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.hiw-benefit-card p {
  font-size: 1.125rem;
  line-height: 2rem;
  color: var(--hiw-muted);
}

/* Goal section */
.hiw-goal-section {
  margin-top: 3rem;
  padding-bottom: 4rem;
}

.hiw-goal-card {
  border-radius: 1.75rem;
  background: linear-gradient(135deg, var(--hiw-goal-bg-1), var(--hiw-goal-bg-2));
  padding: 2rem 1.5rem;
  color: #fff;
}

.hiw-goal-content {
  display: grid;
  gap: 2rem;
}

.hiw-goal-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.hiw-goal-card h2 {
  margin-top: 1rem;
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.hiw-goal-text {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.hiw-goal-btn {
  width: 100%;
}

/* Responsive */
@media (min-width: 640px) {
  .hiw-container {
    width: min(100% - 3rem, var(--hiw-container));
  }

  .hiw-hero-grid {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hiw-eyebrow {
    font-size: 0.8125rem;
    letter-spacing: 0.25em;
  }

  .hiw-hero-title {
    font-size: 3rem;
  }

  .hiw-hero-text {
    font-size: 1.125rem;
  }

  .hiw-hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hiw-btn {
    width: auto;
  }

  .hiw-panel-shell {
    border-radius: 1.75rem;
    padding: 1.5rem;
  }

  .hiw-panel {
    padding: 1.5rem;
  }

  .hiw-divider {
    margin: 2.5rem 0;
  }

  .hiw-step-card {
    border-radius: 1.75rem;
    padding: 2rem;
  }

  .hiw-card-image-wrap img {
    height: 12rem;
  }

  .hiw-benefit-card {
    padding: 2.25rem 2rem;
  }

  .hiw-goal-section {
    margin-top: 3.5rem;
    padding-bottom: 5rem;
  }

  .hiw-goal-card {
    border-radius: 2rem;
    padding: 2.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .hiw-container {
    width: min(100% - 4rem, var(--hiw-container));
  }

  .hiw-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 3.5rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .hiw-hero-title {
    font-size: 3.75rem;
  }

  .hiw-cards-grid-steps,
  .hiw-cards-grid-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hiw-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hiw-goal-content {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2.5rem;
  }

  .hiw-goal-btn {
    width: auto;
  }
}
