/* Printable flyer. Colors match docs/marketing/flyer.html and flyer-bw.html.
   Bump ?v= in index.html when this file changes: nginx caches *.css for a year. */
.flyer-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0; }
.flyer-stage { display: flex; justify-content: center; padding: 8px 12px 48px; overflow-x: auto; }

.flyer {
  width: 8.5in; height: 11in; flex: none; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: .5in .6in; color: #fff;
  background: linear-gradient(160deg, #0077BE 0%, #004B74 100%);
  box-shadow: 0 0 20px rgba(0,0,0,.25);
}
.flyer::before, .flyer::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); }
.flyer::before { width: 6in; height: 6in; top: -2.5in; right: -2.5in; }
.flyer::after { width: 4.5in; height: 4.5in; bottom: -2in; left: -2in; }
.flyer > * { position: relative; z-index: 1; }
.f-eyebrow { letter-spacing: .3em; font-size: 13pt; font-weight: 700; color: #fff; text-transform: uppercase; margin-top: .1in; }
.f-title { font-size: 62pt; font-weight: 800; text-align: center; line-height: 1.02; letter-spacing: -.01em; text-shadow: 0 4px 14px rgba(0,0,0,.25); }
.f-title span { color: #FFC542; }
.f-tagline { font-size: 17pt; font-style: italic; font-weight: 500; text-align: center; max-width: 6in; margin: 0; color: #E6F4FB; }
.f-qr { background: #fff; border-radius: 24px; padding: .3in; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.f-qr img { width: 2.6in; height: 2.6in; display: block; }
.f-qr-caption { margin-top: .12in; color: #004B74; font-weight: 700; font-size: 13pt; letter-spacing: .03em; }
.f-url { color: #0077BE; font-weight: 600; font-size: 11pt; margin-top: .03in; }
/* Dark tint, not white: a white tint lightens the panel and white text on it fell to ~3.5:1
   where the gradient is lightest (#0077BE plus the 6% ::after circle). primary-900 at 40%
   keeps it >= 7:1 for step text and 4.8:1 for the sun heading anywhere on the gradient. */
.f-how { width: 100%; max-width: 6.4in; background: rgba(0,31,41,.4); border: 1px solid rgba(255,255,255,.25); border-radius: 18px; padding: .25in .35in; }
.f-how h2 { font-size: 14pt; text-transform: uppercase; letter-spacing: .15em; color: #FFC542; margin: 0 0 .15in; text-align: center; }
.f-steps { display: flex; justify-content: space-between; gap: .2in; }
.f-step { flex: 1; text-align: center; }
.f-num { width: .55in; height: .55in; line-height: .55in; border-radius: 50%; background: #FFC542; color: #004B74; font-weight: 800; font-size: 16pt; margin: 0 auto .1in; }
.f-step p { font-size: 11pt; margin: 0; color: #F0F8FF; line-height: 1.3; }
.f-foot { text-align: center; }
.f-cta { font-size: 16pt; font-weight: 800; color: #FFC542; letter-spacing: .04em; }
.f-sub { font-size: 10pt; color: #CCE9F7; margin-top: .05in; }

/* Black & white: white page, black ink, no tints or shadows */
.flyer.bw { background: #fff; color: #000; box-shadow: 0 0 0 1px #999; }
.flyer.bw::before, .flyer.bw::after { display: none; }
.flyer.bw .f-eyebrow, .flyer.bw .f-title span, .flyer.bw .f-tagline, .flyer.bw .f-step p, .flyer.bw .f-sub { color: #000; }
.flyer.bw .f-title { text-shadow: none; }
.flyer.bw .f-qr { border: 4px solid #000; box-shadow: none; }
.flyer.bw .f-qr-caption, .flyer.bw .f-url, .flyer.bw .f-cta { color: #000; }
.flyer.bw .f-how { background: none; border: 2px solid #000; }
.flyer.bw .f-how h2 { color: #000; }
.flyer.bw .f-num { background: #000; color: #fff; }

@page { size: 8.5in 11in; margin: 0; }
@media print {
  body > *:not(main), main > *:not(.flyer-stage) { display: none !important; }
  .flyer-stage { padding: 0; display: block; overflow: visible; }
  .flyer { box-shadow: none !important; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
