/* ============================================================
   How it Works / Pricing / About — shared marketing components.
   Mobile-first.
   ============================================================ */

.page-hero {
  position: relative;
  padding: 2.5rem 0 1rem;
  max-width: 700px;
}
/* faint pigeon watermark on every info-page hero */
.page-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 1.5rem;
  width: 92px;
  height: 80px;
  background: var(--postal-red);
  opacity: 0.12;
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='%23000'%3E%3Cpath d='M63 41 89 52 85 62 61 52Z'/%3E%3Cellipse cx='46' cy='47' rx='30' ry='23' transform='rotate(-6 46 47)'/%3E%3Ccircle cx='31' cy='25' r='12.5'/%3E%3Cpath d='M20 23 5.5 25.5 20 31 21 22Z'/%3E%3Cpath d='M40 66v15M54 66v15' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='%23000'%3E%3Cpath d='M63 41 89 52 85 62 61 52Z'/%3E%3Cellipse cx='46' cy='47' rx='30' ry='23' transform='rotate(-6 46 47)'/%3E%3Ccircle cx='31' cy='25' r='12.5'/%3E%3Cpath d='M20 23 5.5 25.5 20 31 21 22Z'/%3E%3Cpath d='M40 66v15M54 66v15' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 720px) { .page-hero::after { display: none; } }
.page-hero h1 { font-size: var(--step-4); margin: 1rem 0 0.9rem; }
.page-hero p { color: var(--text-dim); font-size: 1.05rem; max-width: 52ch; }
@media (min-width: 640px) {
  .page-hero { padding: 3.5rem 0 1rem; }
  .page-hero p { font-size: 1.08rem; }
}

/* ---- Detail rows (How it Works step breakdown) — divided by a
   postal cancellation mark instead of a plain rule ---- */
.detail-list { display: flex; flex-direction: column; gap: 0; }
.detail-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 2rem 0;
  position: relative;
}
.detail-row + .detail-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(var(--postmark-ink) 0 2px, transparent 2px 6px);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 30px, #0006 30px 42px);
          mask: repeating-linear-gradient(90deg, #000 0 30px, #0006 30px 42px);
  opacity: 0.65;
}
.detail-no {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--postal-red);
  line-height: 1;
}
.detail-body h3 { font-size: 1.3rem; margin-bottom: 0.55rem; }
.detail-body p { color: var(--text-dim); max-width: 62ch; margin-bottom: 0.6rem; }
.detail-body p:last-child { margin-bottom: 0; }
.detail-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--postal-red-tint);
  color: var(--postal-red);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

@media (min-width: 620px) {
  .detail-row { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1.5rem; padding: 2.4rem 0; }
}

/* ---- Machines / files diagram — each output is a little stamp ---- */
.machines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.machine-card {
  position: relative;
  background: var(--bg-raised);
  color: var(--text);
  border: 1.5px dashed var(--border-strong);
  border-radius: 3px;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 10px 24px -16px rgba(53, 40, 22, 0.35);
}
.machine-card svg { width: 32px; height: 32px; margin-bottom: 1rem; color: var(--postal-red); }
.machine-card h4 { font-size: 1.02rem; margin-bottom: 0.4rem; color: var(--text); }
.machine-card p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }
.machine-card .file-tag {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

@media (min-width: 760px) {
  .machines-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Live demo widget (animated handwriting sample) ---- */
.demo-widget {
  position: relative;
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lift);
}
.demo-widget::after {
  /* cancellation ring stamped over the top-right corner of the sheet */
  content: "PENPIGEON \2022 SEEN";
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid var(--postmark-ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.4rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--postmark-ink);
  background: var(--bg);
  transform: rotate(-13deg);
  pointer-events: none;
}
.demo-widget-frame {
  background: var(--paper);
  background-image: repeating-linear-gradient(var(--paper) 0 39px, var(--paper-line) 39px 40px);
  border: 1px solid var(--border-on-surface);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.5rem 0.5rem;
  min-height: 160px;
  display: flex;
  align-items: center;
}
.demo-widget-frame svg { width: 100%; height: auto; overflow: visible; }
.demo-widget-frame path { fill: none; stroke: #1e1b17; stroke-linecap: round; stroke-linejoin: round; }
.demo-widget-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.demo-widget-foot p { margin: 0; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); }
.demo-widget-foot .link-btn { color: var(--airmail-blue); }
.demo-widget-foot .link-btn:hover { color: var(--postal-red); }
@media (min-width: 640px) { .demo-widget { padding: 2rem; } }

/* ---- Pricing ---- */
.pricing-note {
  background: var(--airmail-blue-tint);
  border: 1px solid color-mix(in srgb, var(--airmail-blue) 34%, transparent);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}
.pricing-note strong { color: var(--text); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}
.pricing-card.is-featured {
  border-color: var(--postal-red);
  box-shadow: 0 0 0 1px var(--postal-red), var(--shadow-card);
}
.pricing-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--postal-red);
  margin-bottom: 0.6rem;
}
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.pricing-price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; margin-bottom: 0.2rem; }
.pricing-price small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--text-faint); }
.pricing-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.4rem; }
.pricing-features { list-style: none; margin: 0 0 1.75rem; padding: 0; flex: 1; }
.pricing-features li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.6rem;
}
.pricing-features li::before { content: "\2713"; color: var(--link); flex-shrink: 0; }
.pricing-card .btn { width: 100%; }

@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- FAQ (native details/summary — no JS needed) ---- */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.2rem 1.4rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--text-dim); padding-bottom: 1.2rem; margin: 0; max-width: 68ch; }

/* ---- About narrative ---- */
.about-prose { max-width: 62ch; }
.about-prose p { color: var(--text-dim); font-size: 1.02rem; }
.about-prose h2 { font-size: var(--step-2); margin-top: 0; }

.about-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 860px) {
  .about-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: 3rem; }
}

.about-fact-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
}
.about-fact-card + .about-fact-card { margin-top: 1rem; }
.about-fact-card h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}
.about-fact-card p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }

/* single-plan pricing (redesign: one honest $4 card, no fake tiers) */
.pricing-grid-single { max-width: 24rem; margin-inline: auto; }
