/* How it works page (rebuild 19/10/26). Builds on the shared .hp styles in
   home.css; everything here is page-specific and prefixed .hiw-. */

/* Genuine app screenshots, framed as a phone, tap to enlarge */
.hiw-shot { display: block; margin: 0 auto; max-width: 300px; cursor: zoom-in; border-radius: 52px; }
.hiw-shot img { width: 100%; filter: drop-shadow(0 18px 32px rgba(18, 26, 45, .2)); transition: transform .2s ease; }
.hiw-shot:hover img { transform: translateY(-3px); }
.hiw-shot:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }

/* 1. Hero */
.hiw-hero { padding: 56px 0 72px; }
.hiw-hero .hp-hero__grid { grid-template-columns: .95fr 1.05fr; }
.hiw-hero__photo { border-radius: 24px; box-shadow: 0 18px 44px rgba(18, 26, 45, .16); }

/* 2. Three steps */
.hiw-steps { list-style: none; padding: 0; margin: 40px 0 0; text-align: left; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hiw-step { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 30px; }
.hiw-step__no { font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--green); margin-bottom: 8px; }
.hiw-step .hp-h3 { margin-bottom: 10px; }
.hiw-step p { font-size: 16px; }
.hiw-step .hiw-shot { margin-top: auto; padding-top: 14px; max-width: 250px; }

/* 3. Understanding your results */
.hiw-results { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: left; }
.hiw-result { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; border-top: 6px solid var(--line); }
.hiw-result--clear { border-top-color: var(--green); }
.hiw-result--match { border-top-color: #E8A200; }
.hiw-result--more { border-top-color: #F07A1A; }
.hiw-result .hiw-shot { max-width: 230px; margin-bottom: 22px; }
.hiw-result .hp-h3 { font-size: 19px; margin-bottom: 6px; }
.hp .hiw-result__quote { font-weight: 600; color: var(--ink); font-size: 16px; }
.hiw-result p { font-size: 15.5px; }
.hiw-info { display: flex; gap: 14px; align-items: flex-start; max-width: 860px; margin: 36px auto 0; padding: 18px 22px; background: #EEF5FB; border: 1px solid #D7E6F2; border-radius: 14px; text-align: left; }
.hiw-info svg { flex: 0 0 auto; color: var(--btn); margin-top: 2px; }
.hp .hiw-info p { font-size: 15px; margin: 0; color: var(--ink); }

/* Trusted Products re-scan explainer */
.hiw-more { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.hiw-more summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.hiw-more summary::-webkit-details-marker { display: none; }
.hiw-more summary::after { content: "+"; color: var(--btn); font-size: 20px; line-height: 1; }
.hiw-more[open] summary::after { content: "-"; }
.hiw-more div { padding: 0 18px 4px; }
.hiw-more p { font-size: 15.5px; }

/* 8. Tips */
.hiw-tips { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; text-align: left; }
.hiw-tip { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; }
.hiw-tip__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.hiw-tip h3 { font-size: 16px; line-height: 1.3; color: var(--navy); margin: 0 0 6px; }
.hiw-tip p { font-size: 14.5px; margin: 0; }

/* Tap-to-enlarge viewer */
.hiw-zoom { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.hiw-zoom::backdrop { background: rgba(10, 16, 30, .82); }
.hiw-zoom img { display: block; max-height: 90vh; max-width: 92vw; width: auto; height: auto; }
.hiw-zoom button { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }

/* Mobile */
@media (max-width: 900px) {
  .hiw-hero { padding: 28px 0 56px; }
  .hiw-hero .hp-hero__grid { grid-template-columns: 1fr; }
  .hiw-steps, .hiw-results { grid-template-columns: 1fr; gap: 20px; }
  .hiw-tips { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 520px) {
  .hiw-tips { grid-template-columns: 1fr; }
}
