/* =========================
   PetDentify · How it works (page-specific)
   Depends on: base.css, components.css, header.css
   ========================= */

/* Layout container for this page */
.how-main{
  max-width: var(--container);
  margin: 56px auto 72px;        /* breathing room below header + before footer */
  padding: 0 20px;
}

/* Headings & tone */
.how-main h1{
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 6px;
  font-weight: 800;
}
.how-main .lede{ font-size: 18px; color:#111; margin: 0 0 8px; }
.how-main p, .how-main li{ color: var(--muted); line-height: 1.65; }

/* Two-column grid (content + aside) */
.how-grid{
  display:grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 40px;
  align-items:start;
  margin-top: 18px;
}
@media (max-width: 960px){
  .how-grid{ grid-template-columns:1fr; gap:22px; }
}

/* Steps section */
.kicker{
  color: var(--green);
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 10px;
}
.steps{ display:grid; gap:14px; counter-reset: step; }

/* Individual step card */
.step{
  display:grid;
  grid-template-columns: 52px 1fr;
  gap:14px;
  align-items:center;
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:14px;
  padding:14px 16px;
  box-shadow: 0 1px 2px rgba(2,6,12,.04);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.step:hover{
  border-color:#e3e8ee;
  box-shadow: 0 8px 22px rgba(2,6,12,.08);
  transform: translateY(-1px);
}
.step h3{
  margin:0 0 4px;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.01em;
}
.step p{ margin:0; }

/* Icon token */
.ico{
  width:44px; height:44px;
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:#ecfdf5;            /* mint tile */
  box-shadow: inset 0 0 0 2px rgba(16,185,129,.15);
}
.ico svg{ width:24px; height:24px }

/* Mobile collapse */
@media (max-width: 520px){
  .step{ grid-template-columns:1fr; }
  .ico{ width:40px; height:40px; margin-bottom:6px; }
}

/* Aside card (QR demo) */
.how-main .card{
  background:#f9fafb;
  border:1px solid #eef2f7;
  border-radius:16px;
  padding:20px;
  box-shadow: 0 1px 2px rgba(2,6,12,.04);
}
.qr{
  display:flex; align-items:center; justify-content:center;
  background:#f2f4f7;
  border:1px dashed #d1d5db;
  border-radius:12px;
  height: 200px;
  margin: 10px 0 6px;
}
.text-center{ text-align:center; }

/* Disclaimer callout */
.disclaimer{
  background:#f5fdfa;
  border:1px solid #d5f0e2;
  color:#134e3a;
  padding:10px 12px;
  border-radius:8px;
  margin: 18px 0 0;
}

/* Tiny utilities used on this page */
.fw-800{ font-weight:800; }
.mb-1{ margin-bottom:.25rem; }
.mt-3{ margin-top:.75rem; }

/* Visual rhythm for top and footer adjacency on very short pages */
@media (min-height: 900px){
  .how-main{ margin-top: 64px; margin-bottom: 96px; }
}

/* Video demo block */
.demo-vid { margin: 10px 0 8px; }

.demo-vid__media{
  width: 100%;
  aspect-ratio: 16 / 9;               /* modern responsive sizing */
  background: #000;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(2,6,12,.04);
}

/* Fallback for older browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9){
  .demo-vid { position: relative; padding-top: 56.25%; }
  .demo-vid__media { position: absolute; inset: 0; height: 100%; }
}

/* Keep the action buttons neat */
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { justify-content: center; }

/* Tiny helper from your page */
.tiny { font-size: 12px; }