/* ==========================================================
   HOW IT WORKS — PAGE STYLES
   Depends on: /global.css (variables, layout utilities)
========================================================== */


/* ── Page Wrapper ──────────────────────────────────────── */

.hiw-main {
  width: 100%;
  overflow: hidden;
}


/* ==========================================================
   HERO
========================================================== */

.hiw-hero {
  padding-top: 160px;
  padding-bottom: var(--section-y);
  background: var(--color-bg);
}

/* Two-column grid */
.hiw-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 60px;
}

/* Left side */
.hiw-hero-left .section-label {
  margin-bottom: 18px;
}

.hiw-hero-left h1 {
  margin: 0 0 22px;
}

.hiw-hero-left h1 span {
  color: var(--color-primary);
}

.hiw-hero-text {
  max-width: 500px;
  margin: 0 0 36px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 2rem;
}

.hiw-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Right side — what Wedsi replaces */
.hiw-hero-preview {
  background: var(--card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 32px;
}

.hiw-hero-preview-label {
  font-family: var(--body-font-family);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

/* Scattered chaos chips */
.hiw-chaos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hiw-chaos-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--body-font-family);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1;
}

.hiw-chaos-chip i {
  font-size: 0.72rem;
  color: #8a817c;
}

/* Arrow divider */
.hiw-replace-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hiw-replace-divider-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.hiw-replace-divider i {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* Wedsi solution row */
.hiw-replace-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.hiw-replace-bottom > i {
  font-size: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hiw-replace-bottom > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hiw-replace-bottom strong {
  font-family: var(--body-font-family);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.hiw-replace-bottom span {
  font-family: var(--body-font-family);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Stats bar */
.hiw-hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px 36px;
  width: fit-content;
  box-sizing: border-box;
}

.hiw-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hiw-hero-stat strong {
  font-family: var(--display-font-family);
  font-size: 1.45rem;
  color: var(--color-primary);
  line-height: 1;
}

.hiw-hero-stat span {
  font-family: var(--body-font-family);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hiw-hero-stat-divider {
  width: 1px;
  height: 34px;
  background: var(--color-border);
  flex-shrink: 0;
}


/* ==========================================================
   STEPS
========================================================== */

.hiw-steps {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--color-white);
}

.hiw-steps-list {
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.hiw-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Step tag row */
.hiw-step-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hiw-step-num {
  font-family: var(--display-font-family);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-primary);
  user-select: none;
}

.hiw-step-badge {
  font-family: var(--body-font-family);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(166, 45, 13, 0.08);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
}

/* Content */
.hiw-step-content h3 {
  margin: 0 0 16px;
  color: var(--color-text);
}

.hiw-step-content p {
  color: var(--color-text-muted);
  margin: 0 0 24px;
}

/* Bullet points */
.hiw-step-points {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.hiw-step-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-family: var(--body-font-family);
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.65;
}

.hiw-step-points li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Step CTA link */
.hiw-step-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body-font-family);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.25s ease;
}

.hiw-step-link i {
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

.hiw-step-link:hover {
  gap: 13px;
}

.hiw-step-link:hover i {
  transform: translateX(3px);
}

/* Image panel */
.hiw-step-img-wrap {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-secondary);
  aspect-ratio: 4 / 3;

}

.hiw-step-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ==========================================================
   PLATFORM TOOLS
========================================================== */

.hiw-tools {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--color-bg);
}

.hiw-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.hiw-tool-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 38px 36px;
  background: var(--card-bg);
  border: 1px solid var(--card-border-color);
  border-radius: var(--card-radius);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.hiw-tool-card:hover {
  transform: translateY(-5px);
}

/* Accent card (Planner) */
.hiw-tool-card--accent {
  background: linear-gradient(145deg, #a62d0d 0%, #8b2309 100%);
  border-color: transparent;
}

.hiw-tool-card.hiw-tool-card--accent h3,
.hiw-tool-card.hiw-tool-card--accent p {
  color: rgba(255, 255, 255, 0.95);
}

.hiw-tool-card.hiw-tool-card--accent .hiw-tool-cta {
  color: rgba(255, 255, 255, 0.9);
}

.hiw-tool-card.hiw-tool-card--accent .hiw-tool-icon {
  background: rgba(255, 255, 255, 0.15);
}

.hiw-tool-card.hiw-tool-card--accent .hiw-tool-icon i {
  color: #ffffff;
}

/* Icon circle */
.hiw-tool-icon {
  width: 54px;
  height: 54px;
  background: rgba(166, 45, 13, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hiw-tool-icon i {
  font-size: 1.2rem;
  color: var(--color-primary);
}

.hiw-tool-card h3 {
  font-size: 1.4rem;
  line-height: 1.9rem;
  margin: 0;
}

.hiw-tool-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.75rem;
  flex: 1;
}

.hiw-tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--body-font-family);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
  transition: gap 0.25s ease;
}

.hiw-tool-card:hover .hiw-tool-cta {
  gap: 11px;
}


/* ==========================================================
   TRUST POINTS
========================================================== */

.hiw-trust {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.hiw-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.hiw-trust-item {
  padding: 34px 28px;
  background: var(--color-white);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
}

.hiw-trust-icon {
  width: 50px;
  height: 50px;
  background: rgba(166, 45, 13, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.hiw-trust-icon i {
  font-size: 1.1rem;
  color: var(--color-primary);
}

.hiw-trust-item h4 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.65rem;
  color: var(--color-text);
}

.hiw-trust-item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.75rem;
}


/* ==========================================================
   SCROLL REVEAL
========================================================== */

.reveal-step,
.reveal-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-step.is-visible,
.reveal-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings in grids */
.hiw-tools-grid .hiw-tool-card:nth-child(2)  { transition-delay: 0.09s; }
.hiw-tools-grid .hiw-tool-card:nth-child(3)  { transition-delay: 0.18s; }
.hiw-tools-grid .hiw-tool-card:nth-child(4)  { transition-delay: 0.27s; }

.hiw-trust-grid .hiw-trust-item:nth-child(2) { transition-delay: 0.09s; }
.hiw-trust-grid .hiw-trust-item:nth-child(3) { transition-delay: 0.18s; }
.hiw-trust-grid .hiw-trust-item:nth-child(4) { transition-delay: 0.27s; }


/* ==========================================================
   RESPONSIVE
========================================================== */

/* ── 1200px ── */
/* ==========================================================
   FAQ  (mirrors homepage faq-section design)
========================================================== */

.faq-section {
  position: relative;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 120px;
}

.faq-intro h2 {
  margin: 0 0 16px;
  color: #111111;
}

.faq-intro h2 span {
  color: #a62d0d;
}

.faq-intro-text {
  max-width: 360px;
  color: #5f5a56;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border-color);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.faq-item.active {
  border-color: var(--card-border-color);
}

.faq-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.faq-toggle span:first-child {
  color: #171717;
  font-size: 1rem;
  line-height: 1.7rem;
  font-weight: 600;
  font-family: var(--body-font-family);
}

.faq-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7f1ed;
  border: 1px solid #e4d5d5;
  color: #a62d0d;
  transition: transform 0.3s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.faq-icon i {
  font-size: 0.92rem;
}

.faq-item.active .faq-icon {
  background-color: #a62d0d;
  color: #ffffff;
  border-color: #a62d0d;
  transform: rotate(45deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.active .faq-content {
  grid-template-rows: 1fr;
}

.faq-content-inner {
  overflow: hidden;
  padding: 0 24px;
}

.faq-item.active .faq-content-inner {
  padding-bottom: 24px;
}

.faq-content-inner p {
  margin: 0;
  color: #5a5551;
  line-height: 1.85rem;
}

.faq-content-inner p + p {
  margin-top: 14px;
}

.faq-list .faq-item:nth-child(2) { transition-delay: 0.04s; }
.faq-list .faq-item:nth-child(3) { transition-delay: 0.08s; }
.faq-list .faq-item:nth-child(4) { transition-delay: 0.12s; }


@media (max-width: 1200px) {
  .hiw-step {
    gap: 56px;
  }

  .hiw-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-intro {
    position: static;
    text-align: center;
  }

  .faq-intro-text {
    max-width: 680px;
    margin: 0 auto;
  }

  .hiw-hero {
    padding-top: 130px;
    padding-bottom: var(--section-y-md);
  }

  .hiw-hero-grid {
    gap: 48px;
    margin-bottom: 48px;
  }

  .hiw-steps,
  .hiw-tools,
  .hiw-trust {
    padding-top: var(--section-y-md);
    padding-bottom: var(--section-y-md);
  }

  .hiw-steps-list {
    gap: 72px;
  }

  .hiw-step {
    gap: 44px;
  }

  .hiw-tools-grid {
    gap: 18px;
  }

  .hiw-tool-card {
    padding: 30px 28px;
  }
}

/* ── 768px ── */
@media (max-width: 768px) {
  .faq-layout { gap: 24px; }
  .faq-list { gap: 14px; }
  .faq-item { border-radius: 18px; }
  .faq-toggle { padding: 20px 18px; gap: 14px; }
  .faq-toggle span:first-child { font-size: 0.92rem; line-height: 1.6rem; }
  .faq-icon { width: 34px; height: 34px; }
  .faq-content-inner { padding: 0 18px; }
  .faq-item.active .faq-content-inner { padding-bottom: 20px; }
  .faq-content-inner p { line-height: 1.7rem; }

  .hiw-hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hiw-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 36px;
  }

  .hiw-hero-text {
    max-width: 100%;
  }

  .hiw-hero-stats {
    padding: 16px 26px;
    gap: 22px;
    width: 100%;
    justify-content: center;
  }

  .hiw-hero-stat strong {
    font-size: 1.2rem;
  }

  .hiw-hero-right {
    display: none;
  }

  .hiw-steps,
  .hiw-tools,
  .hiw-trust {
    padding-top: var(--section-y-sm);
    padding-bottom: var(--section-y-sm);
  }

  .hiw-steps-list {
    gap: 56px;
  }

  /* Stack steps — content always above image */
  .hiw-step {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hiw-step--even .hiw-step-visual {
    order: 2;
  }

  .hiw-step--even .hiw-step-content {
    order: 1;
  }

  .hiw-step-num {
    font-size: 3rem;
  }

  .hiw-tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hiw-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hiw-trust-item {
    padding: 26px 20px;
  }
}

/* ── 440px ── */
@media (max-width: 440px) {
  .faq-item { border-radius: 16px; }
  .faq-toggle { padding: 18px 16px; }
  .faq-toggle span:first-child { font-size: 0.86rem; line-height: 1.5rem; }
  .faq-icon { width: 30px; height: 30px; }
  .faq-icon i { font-size: 0.8rem; }
  .faq-content-inner { padding: 0 16px; }
  .faq-item.active .faq-content-inner { padding-bottom: 18px; }
  .faq-content-inner p { line-height: 1.6rem; }

  .hiw-hero {
    padding-top: 110px;
    padding-bottom: 50px;
  }

  .hiw-hero-grid {
    margin-bottom: 28px;
  }

  .hiw-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hiw-hero-actions a {
    text-align: center;
  }

  .hiw-hero-stats {
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px;
    border-radius: var(--radius-xl);
    width: 100%;
  }

  .hiw-hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .hiw-step-img-wrap {
    border-radius: var(--radius-lg);
  }

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

  .hiw-tool-card {
    padding: 26px 22px;
  }
}
