/* Dedicated How It Works public page — extends hero.css tokens */

.hiw-page {
  background: #ffffff;
  color: #111827;
}

.hiw-breadcrumb {
  padding: 1.25rem 0 0;
}

.hiw-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.hiw-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: #94a3b8;
}

.hiw-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.hiw-breadcrumb a:hover,
.hiw-breadcrumb a:focus-visible {
  text-decoration: underline;
}

.hiw-hero {
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 70%);
}

.hiw-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.hiw-hero-copy h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111827;
}

.hiw-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hiw-hero-glow {
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 70%);
  pointer-events: none;
}

.hiw-flow-svg {
  width: min(100%, 560px);
  height: auto;
  position: relative;
  filter: drop-shadow(0 18px 40px rgba(37, 99, 235, 0.12));
}

.hiw-section {
  padding: 4rem 0;
}

.hiw-band {
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.hiw-section-head {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.hiw-section-head--left {
  margin-left: 0;
  text-align: left;
}

.hiw-section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  color: #111827;
}

.hiw-section-head p {
  margin: 0;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hiw-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.hiw-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.hiw-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.hiw-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  color: #111827;
}

.hiw-step p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.hiw-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hiw-workflow-item {
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: #fff;
}

.hiw-workflow-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  color: #1e3a8a;
}

.hiw-workflow-item p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
  font-size: 0.98rem;
}

.hiw-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.hiw-checklist {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.hiw-checklist li {
  position: relative;
  padding-left: 1.7rem;
  color: #475569;
  line-height: 1.55;
}

.hiw-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.hiw-aside {
  padding: 1.5rem;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
}

.hiw-aside h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: #111827;
}

.hiw-aside p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.hiw-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hiw-cards--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hiw-card {
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.hiw-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.hiw-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
  font-size: 0.98rem;
}

.hiw-note {
  margin: 0 0 1.25rem;
  color: #64748b;
  font-size: 0.95rem;
}

.hiw-status-list {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.hiw-status-list > div {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.hiw-status-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hiw-status-list dt {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.2rem;
}

.hiw-status-list dd {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.45;
}

.hiw-faq-wrap {
  max-width: 860px;
}

.hiw-faq {
  display: grid;
  gap: 0.75rem;
}

.hiw-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 0.15rem 1rem 0.15rem;
}

.hiw-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 600;
  color: #111827;
}

.hiw-faq-item summary::-webkit-details-marker {
  display: none;
}

.hiw-faq-item summary::after {
  content: "+";
  float: right;
  color: #2563eb;
  font-weight: 700;
}

.hiw-faq-item[open] summary::after {
  content: "–";
}

.hiw-faq-item p {
  margin: 0 0 1rem;
  color: #64748b;
  line-height: 1.6;
}

.hiw-page .final-cta-actions {
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hiw-hero-grid,
  .hiw-split,
  .hiw-workflow,
  .hiw-cards,
  .hiw-cards--4 {
    grid-template-columns: 1fr;
  }

  .hiw-hero {
    padding-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hiw-step {
    grid-template-columns: 1fr;
  }

  .hiw-section {
    padding: 3rem 0;
  }
}
