/* ── THE BUY BUTTON: ONE DELIBERATE BREAK IN THE PALETTE (docs/design.md#buy-buttons) ──────────────────────────
   Vic, 2 Nov 2026: "It's okay to break the branding rule for the buy buttons. I just want to make them super catchy."
   and "Make the buy buttons a yellow-orange color. And make them have a glow around them, like someone would want to
   click it." Then, as the standard: "going forward, this will be our standard." So two one-off tokens, THE BUY ONLY,
   never in brand.css and never on any other control: the Buy's amber pair. This file is the one place the standard
   lives; every sales page links it (167.html, 167-free.html; the ebook and coloring book pages when they take it).
   The label is BLACK, 900 weight, 24px up to the iPad and 26px from 1024px (Vic: "I want the text to be big and
   bolded. And black."): 13.1:1 on the light end, 10.2:1 on the deep end (AA and AAA; course-check.js measures it off
   the rendered button). The glow breathes once every 4 seconds at low amplitude, never blinks or bounces, and holds
   still under prefers-reduced-motion (the seizure-safe rule). */
:root { --buy-amber: #FFC83D; --buy-amber-deep: #FF9F1C; }
.btn.c167-buy {
  background: linear-gradient(135deg, var(--buy-amber) 0%, var(--buy-amber-deep) 100%);
  color: #000; font-weight: 900; font-size: 24px; letter-spacing: -.01em; padding: 18px 16px; border-radius: 14px; border: 0;
  max-width: 100%; white-space: normal; text-align: center; text-decoration: none;
  box-shadow: 0 0 0 4px rgba(255, 159, 28, .18), 0 12px 32px rgba(255, 159, 28, .45);
  animation: c167-glow 4s ease-in-out infinite;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
@media (min-width: 1024px) { .btn.c167-buy { font-size: 26px; padding: 20px 32px; } }   /* at 768 the price card is a narrow column: 24px keeps it on one line */
.btn.c167-buy:hover { transform: translateY(-2px); box-shadow: 0 0 0 7px rgba(255, 159, 28, .28), 0 16px 40px rgba(255, 159, 28, .65); opacity: 1; color: #000; }
.btn.c167-buy:active { transform: translateY(0); }
.btn.c167-buy:focus-visible { outline: 3px solid #000; outline-offset: 3px; box-shadow: 0 0 0 4px rgba(255, 159, 28, .18); }
.btn.c167-buy:disabled { opacity: .7; animation: none; transform: none; }
.hero .btn.c167-buy:hover { opacity: 1; }
.c167-stick .btn.c167-buy { font-size: 21px; padding: 14px 16px; }
@keyframes c167-glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 159, 28, .18), 0 12px 32px rgba(255, 159, 28, .45); }
  50% { box-shadow: 0 0 0 7px rgba(255, 159, 28, .26), 0 14px 40px rgba(255, 159, 28, .65); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.c167-buy { animation: none; transition: none; }
  .btn.c167-buy:hover { transform: none; }
}
