/* /how-it-works only: a visual tour for chiefs. Navy hero, four drawn steps, a privacy band, FAQ, preview form. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/fraunces-700-latin.woff2) format("woff2");
}
.how-page {
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --cream: #f6f0e4;
  background: var(--snow);
}
.how-page h1, .how-page h2, .how-page h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
.how-page h2 { font-size: 1.9rem; margin: 0 0 0.5em; }
.how-page h3 { font-size: 1.35rem; margin: 0 0 0.3em; }
.how-page .wrap-wide { max-width: 1120px; }
.how-page .center { text-align: center; }
.how-page p, .how-page li { overflow-wrap: break-word; }

.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { background: rgba(15, 27, 45, 0.35); border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* Hero */
.how-hero { background: var(--navy); color: #fff; padding: 44px 0 0; position: relative; isolation: isolate; }
.how-hero-text { padding-bottom: 36px; }
/* Phones, bigger text and high contrast: the text sits on plain navy and the painting is its own band below it. */
.how-hero-art { display: block; }
.how-hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 72% 40%; }
.how-hero h1 { color: #fff; font-size: 2.4rem; line-height: 1.1; margin: 0 0 0.4em; max-width: 14em; }
.how-hero .lede { font-size: 1.2rem; max-width: 32em; margin: 0 0 1.4em; color: #eef1f7; }
.how-hero .actions { margin: 0; }
.how-hero .actions .btn { flex: 1 1 100%; }
.how-hero .tour-note { margin: 1.2em 0 0; font-size: 0.95rem; color: #d9deea; }
.how-hero .tour-note a { color: #fff; }

/* Steps */
.band { padding: 44px 0; }
.band-white { background: #fff; }
.band-cream { background: var(--cream); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy h2 { color: #fff; }
.lead-in { max-width: 36em; margin: 0 auto 2em; font-size: 1.1rem; color: var(--muted); }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.step { display: grid; gap: 20px; align-items: center; margin: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; margin-bottom: 10px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1;
}
.step-text p { margin: 0 0 0.8em; }
.step-text .step-note { font-size: 0.95rem; color: var(--muted); }
.step-hands {
  margin: 1em 0 0.8em; padding: 12px 14px; background: var(--warn-bg); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700; color: var(--navy);
}
.step-art { margin: 0; display: flex; justify-content: center; }
.step-art svg { display: block; width: 100%; max-width: 380px; height: auto; }

/* Privacy band */
.private-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.private-grid li { margin: 0; padding: 18px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--radius); }
.private-grid h3 { color: var(--gold); font-size: 1.2rem; }
.private-grid p { margin: 0; color: #eef1f7; }
.private-fine { max-width: 40em; margin: 1.6em 0 0; color: #d9deea; font-size: 0.98rem; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 12px 16px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--navy); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.6rem; line-height: 1; color: var(--red-dark); }
.faq details[open] > summary::after { content: "\2212"; }
.faq details[open] > summary { border-bottom: 1px solid var(--line); }
.faq .faq-a { padding: 12px 16px 16px; }
.faq .faq-a p { margin: 0 0 0.6em; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* Preview form */
.how-cta { display: grid; gap: 24px; align-items: start; }
.free-note { display: inline-block; font-weight: 700; color: var(--pine); border-left: 4px solid var(--gold); padding: 2px 0 2px 12px; margin: 0 0 1em; }
.how-form { display: grid; gap: 14px; padding: 20px; background: #fff; border: 2px solid var(--gold); box-shadow: 0 0 0 8px rgba(242, 184, 75, 0.18); }
.how-form .btn { min-height: 58px; font-size: 1.2rem; }
.how-form .preview-fine { margin: 0; font-size: 0.95rem; color: var(--muted); }
.how-more { margin-top: 22px; }
.how-more .btn { flex: 1 1 100%; }

/* Straight talk */
.straight { max-width: 760px; margin: 0 auto; }
.straight ul { margin: 0; padding-left: 1.2em; }
.straight li { margin-bottom: 0.5em; }

/* The pulse on the truck dot. Off with Less motion and prefers-reduced-motion. */
.pulse { transform-box: fill-box; transform-origin: center; animation: how-pulse 2s ease-out infinite; }
@keyframes how-pulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; opacity: 0; } }
html.a11y-motion .pulse { animation: none; opacity: 0; }

@media (min-width: 480px) {
  .how-hero .actions .btn, .how-more .btn { flex: 0 1 auto; }
}
@media (min-width: 640px) {
  .how-hero-art img { aspect-ratio: 2.4 / 1; }
  .private-grid { grid-template-columns: 1fr 1fr; }
}
/* Two columns only at the normal text size; with bigger text, everything stays stacked. */
@media (min-width: 860px) {
  html:not(.a11y-contrast):not([class*="a11y-text-"]) .how-hero { padding: 72px 0 76px; min-height: 540px; display: flex; align-items: center; }
  html:not(.a11y-contrast):not([class*="a11y-text-"]) .how-hero-text { position: relative; z-index: 1; padding-bottom: 0; width: 100%; }
  html:not(.a11y-contrast):not([class*="a11y-text-"]) .how-hero-text > * { max-width: min(30rem, 46%); }
  html:not(.a11y-contrast):not([class*="a11y-text-"]) .how-hero h1 { font-size: 3rem; max-width: min(30rem, 46%); }
  html:not(.a11y-contrast):not([class*="a11y-text-"]) .how-hero .lede { max-width: min(26rem, 46%); }
  /* The painting fills the right side. A navy wash on its left edge keeps the text readable (4.5:1). */
  html:not(.a11y-contrast):not([class*="a11y-text-"]) .how-hero-art { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 70%; }
  html:not(.a11y-contrast):not([class*="a11y-text-"]) .how-hero-art img { height: 100%; aspect-ratio: auto; object-position: 85% 30%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
  html:not(.a11y-contrast):not([class*="a11y-text-"]) .how-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(15, 27, 45, 0.9) 0, rgba(15, 27, 45, 0.78) 34%, rgba(15, 27, 45, 0) 60%); pointer-events: none; }
  html:not([class*="a11y-text-"]) .band { padding: 64px 0; }
  html:not([class*="a11y-text-"]) .steps-list { gap: 72px; }
  html:not([class*="a11y-text-"]) .step { grid-template-columns: 1fr 1fr; gap: 56px; }
  html:not([class*="a11y-text-"]) .step:nth-child(even) .step-art { order: -1; }
  html:not([class*="a11y-text-"]) .private-grid { grid-template-columns: repeat(4, 1fr); }
  html:not([class*="a11y-text-"]) .how-cta { grid-template-columns: 1fr 1fr; gap: 48px; }
}
