/* =========================================================
   HOW IT WORKS PAGE
   ========================================================= */

.how-page {
  overflow: hidden;
  color: var(--ink);
}

.how-page a {
  text-decoration: none;
}

.how-container {
  width: min(1184px, calc(100% - 56px));
  margin: 0 auto;
}

/* Shared site hero with a page-specific launch preview. */
.how-hero-visual {
  overflow: visible;
}

.how-hero-window {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow:
    0 30px 65px rgba(24, 58, 48, 0.22),
    0 5px 15px rgba(23, 58, 48, 0.06);
  transform: rotate(1.5deg);
}

.how-hero-window-top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 13px;
  border-bottom: 1px solid #e9ece9;
  color: #87958f;
  font:
    9px "DM Mono",
    monospace;
  letter-spacing: 0.06em;
}

.how-window-dots {
  display: flex;
  gap: 4px;
}

.how-window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ee7a71;
}

.how-window-dots i:nth-child(2) {
  background: var(--yellow);
}
.how-window-dots i:nth-child(3) {
  background: var(--green-soft);
}
.how-window-menu {
  margin-left: auto;
}

.how-hero-window-content {
  min-height: 330px;
  padding: 27px 30px 23px;
  background: linear-gradient(135deg, #f5fbf7 0%, #fff 58%, #eff8f2 100%);
}

.how-window-kicker {
  margin: 0 0 17px;
  color: #567068;
  font:
    500 9px "DM Mono",
    monospace;
  letter-spacing: 0.1em;
}

.how-hero-window-content h2 {
  margin: 0;
  color: var(--ink);
  font:
    700 clamp(37px, 4.3vw, 52px)/0.95 "Inter",
    Arial,
    sans-serif;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.how-hero-window-content h2 em {
  color: var(--green-soft);
  font-style: normal;
}

.how-window-progress {
  display: flex;
  gap: 7px;
  margin: 25px 0 17px;
}

.how-window-progress span {
  height: 5px;
  flex: 1;
  border-radius: 99px;
  background: var(--mint);
}

.how-window-progress span:nth-child(2) {
  background: var(--coral);
}
.how-window-progress span:nth-child(3) {
  background: var(--yellow);
}

.how-window-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.85);
}

.how-status-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.how-window-status > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.how-window-status strong {
  color: var(--ink);
  font-size: 11px;
}
.how-window-status small {
  color: var(--muted);
  font-size: 9px;
}
.how-window-status > b {
  margin-left: auto;
  color: var(--green-dark);
  font:
    600 8px "DM Mono",
    monospace;
  letter-spacing: 0.08em;
}

.how-hero-badge {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(219, 225, 220, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 25px rgba(23, 58, 48, 0.1);
}

.how-hero-badge-top {
  top: 56px;
  right: -4px;
  transform: rotate(3deg);
}
.how-hero-badge-top strong {
  color: var(--coral);
  font:
    700 30px/1 "Inter",
    Arial,
    sans-serif;
  letter-spacing: -0.06em;
}
.how-hero-badge span {
  color: #71817b;
  font:
    600 8px/1.35 "DM Mono",
    monospace;
  letter-spacing: 0.07em;
}
.how-hero-badge-bottom {
  bottom: 35px;
  left: -5px;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  transform: rotate(-2deg);
}
.how-hero-badge-bottom strong {
  color: var(--ink);
  font-size: 11px;
}
.how-hero-badge-bottom strong b {
  padding-left: 9px;
  color: var(--green-dark);
  font-size: 15px;
}

/* Shared section headings and process cards. */
.how-steps-section,
.how-included-section,
.how-faq-section {
  padding: 100px 28px;
}

.how-steps-section {
  background: var(--white);
}

.how-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.65fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 48px;
}

.how-page .eyebrow {
  margin-bottom: 18px;
}

.how-section-heading h2,
.how-included-heading h2,
.how-faq-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 4.5vw, 62px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.how-section-heading h2 em,
.how-included-heading h2 em,
.how-faq-heading h2 em {
  color: var(--green-soft);
  font-style: normal;
}

.how-section-heading > p {
  max-width: 390px;
  margin: 0 0 3px auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.how-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.how-process-card {
  position: relative;
  min-height: 286px;
  padding: 25px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(23, 58, 48, 0.055);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.how-process-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 10;
  top: 37px;
  right: -31px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--green-dark);
  font-size: 18px;
}

.how-process-card:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 36, 33, 0.15);
  box-shadow: 0 22px 45px rgba(23, 36, 33, 0.09);
}

.process-card-1 {
  transform: translateY(15px);
}

.process-card-3 {
  transform: translateY(-10px);
}

.how-process-number {
  position: absolute;
  top: 23px;
  right: 23px;
  color: #83928c;
  font:
    600 10px "DM Mono",
    monospace;
}

.how-process-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 27px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
}

.how-process-card:nth-child(2) .how-process-icon {
  background: #ffe3df;
  color: var(--coral);
}
.how-process-card:nth-child(3) .how-process-icon {
  background: #fff5c9;
  color: #786414;
}

.how-process-label {
  margin: 0 0 8px;
  color: var(--muted);
  font:
    600 8px "DM Mono",
    monospace;
  letter-spacing: 0.12em;
}

.how-process-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.how-process-card > p:last-child {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.how-delivery-note {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 750px;
  margin: 32px auto 0;
  padding: 16px 20px;
  border: 1px solid #cbe9d9;
  border-radius: 8px;
  background: #effaf4;
}

.how-delivery-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.how-delivery-note p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}
.how-delivery-note strong {
  color: var(--ink);
  font-size: 13px;
}
.how-delivery-note p span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* What you get */
.how-included-section {
  background: #eaf7ef;
}

.how-included-heading {
  max-width: 720px;
  margin: 0 auto 45px;
  text-align: center;
}

.how-included-heading > p:last-child {
  max-width: 570px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.how-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.how-benefit-card {
  min-height: 190px;
  padding: 23px;
  border: 1px solid rgba(219, 225, 220, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(23, 36, 33, 0.035);
}

.how-benefit-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font:
    700 9px "DM Mono",
    monospace;
}

.how-benefit-card:nth-child(3n + 2) .how-benefit-icon {
  background: var(--yellow);
}
.how-benefit-card:nth-child(3n) .how-benefit-icon {
  background: var(--coral);
}

.how-benefit-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.how-benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.how-care-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.how-care-strip > div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 17px 20px;
  border: 1px solid rgba(23, 36, 33, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.how-care-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--mint);
  font:
    700 12px "DM Mono",
    monospace;
}

.how-care-strip p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.how-care-strip strong {
  color: var(--ink);
  font-size: 12px;
}
.how-care-strip p span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* FAQ */
.how-faq-section {
  background: var(--white);
}

.how-faq-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: 85px;
  align-items: start;
}

.how-faq-heading > p:last-child {
  max-width: 320px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.how-faq-list {
  border-top: 1px solid var(--line);
}

.how-faq-item {
  border-bottom: 1px solid var(--line);
}

.how-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}

.how-faq-item summary::-webkit-details-marker {
  display: none;
}
.how-faq-item summary::marker {
  content: "";
}
.how-faq-item summary span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--green-dark);
  font-size: 17px;
  font-weight: 400;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.how-faq-item[open] summary span {
  transform: rotate(45deg);
  border-color: var(--mint);
  background: var(--mint);
  color: var(--ink);
}

.how-faq-item > p {
  max-width: 620px;
  margin: -4px 45px 21px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.how-faq-item summary:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 4px;
}

@media (max-width: 950px) {
  .how-hero-visual {
    height: 450px;
  }
  .how-section-heading {
    gap: 35px;
  }
  .how-faq-layout {
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .how-container {
    width: calc(100% - 40px);
  }
  .how-steps-section,
  .how-included-section,
  .how-faq-section {
    padding: 76px 20px;
  }
  .how-section-heading {
    display: block;
    margin-bottom: 32px;
  }
  .how-section-heading > p {
    margin: 17px 0 0;
  }
  .how-process-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .how-process-card {
    min-height: 0;
    padding: 22px;
  }
  .how-process-card:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: 22px;
    bottom: -26px;
    width: 34px;
    height: 34px;
  }
  .how-process-card:not(:last-child) {
    margin-bottom: 10px;
  }
  .how-process-icon {
    margin-bottom: 20px;
  }
  .how-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .how-benefit-card {
    min-height: 0;
  }
  .how-faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .how-hero-visual {
    height: 345px;
    margin-top: 12px;
  }
  .how-hero-window {
    width: 88%;
  }
  .how-hero-window-content {
    min-height: 260px;
    padding: 22px 19px 18px;
  }
  .how-hero-window-content h2 {
    font-size: 38px;
  }
  .how-hero-badge-top {
    top: 18px;
    right: 0;
  }
  .how-hero-badge-bottom {
    bottom: 8px;
    left: 0;
  }
  .how-hero-badge-top strong {
    font-size: 25px;
  }
  .how-benefits-grid,
  .how-care-strip {
    grid-template-columns: 1fr;
  }
  .how-benefit-card {
    padding: 20px;
  }
  .how-benefit-icon {
    margin-bottom: 15px;
  }
  .how-included-heading {
    margin-bottom: 32px;
    text-align: left;
  }
  .how-included-heading > p:last-child {
    margin-left: 0;
  }
  .how-faq-item summary {
    padding: 18px 0;
    font-size: 14px;
  }
  .how-faq-item > p {
    margin-right: 36px;
  }

  .page-float-top-right {
    top: 0;
  }

  .page-float-bottom-left {
    bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-process-card,
  .how-faq-item summary span {
    transition: none;
  }
}
