/* ==========================================================
   US PAYMENT HANDBOOK · site.css
   Palette from the cover: cream paper, navy ink,
   cobalt card, terminal black, one orange dot.
   ========================================================== */
:root {
  --cream: #f6ecd2;
  --cream-hi: #fdf6e3;
  --navy: #0a1e38;
  --navy-deep: #061a33;
  --ink: #101528;
  --blue: #0757d8;
  --blue-hi: #2f74ec;
  --orange: #ff5c1a;
  --gold: #d8b25c;
  --line: rgba(10, 30, 56, 0.16);
  --line-inv: rgba(246, 236, 210, 0.18);
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--orange); color: var(--cream-hi); }

h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.015em; }
h2 {
  font-weight: 900;
  font-stretch: 92%;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  text-transform: uppercase;
}
.section-kicker {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-kicker.inverse { color: var(--orange); }

/* ---------- nav ---------- */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  width: var(--shell);
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-mark {
  font-weight: 900;
  font-stretch: 90%;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: inline-block; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { border-bottom-color: var(--orange); }
.nav-cta {
  white-space: nowrap;
  padding: 10px 18px;
  background: var(--navy);
  color: var(--cream-hi);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }
@media (max-width: 640px) { .nav-link { display: none; } }

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 0;
  border-radius: 12px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(7, 87, 216, 0.65);
}
.button-primary:hover { background: var(--blue-hi); transform: translateY(-2px); }

/* ==========================================================
   ACT 1 · THE TAP
   ========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 20px 40px;
  background:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--cream-hi), transparent),
    var(--cream);
}
.hero-kicker {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(253, 246, 227, 0.7);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 92, 26, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(255, 92, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 26, 0); }
}
.hero-title {
  font-weight: 900;
  font-stretch: 88%;
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  text-transform: uppercase;
}
.hero-title .money { color: var(--blue); }
.hero-sub { margin: 20px 0 0; font-size: clamp(1rem, 1.8vw, 1.2rem); color: rgba(10, 30, 56, 0.78); }
.br-desk { display: none; }
@media (min-width: 700px) { .br-desk { display: block; } }

/* --- the tap stage --- */
.tap-stage { position: relative; margin: 44px 0 8px; }
.tap-zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(30px, 7vw, 84px);
  padding: 30px clamp(20px, 5vw, 60px) 44px;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.terminal {
  width: clamp(120px, 17vw, 170px);
  aspect-ratio: 1 / 1.16;
  background: linear-gradient(145deg, #23252c, #0e0f13 60%);
  border-radius: 22px;
  box-shadow: 0 24px 44px -18px rgba(6, 26, 51, 0.55), inset 0 1px 0 rgba(255,255,255,0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: rotate(6deg);
}
.terminal-screen {
  width: 74%;
  padding: 10px 8px;
  background: #05070c;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.terminal-amt { font-family: var(--mono); font-weight: 600; font-size: 0.95rem; color: #9fe7a9; }
.terminal-msg { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.55); }
.terminal-wave { color: rgba(255,255,255,0.85); }

.waves {
  width: clamp(64px, 9vw, 104px);
  height: auto;
  flex: none;
  overflow: visible;
}
.waves .w {
  stroke: var(--blue);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.18;
  transition: opacity 0.3s ease;
}
.waves .wdot { fill: var(--orange); opacity: 0; transform-origin: 13px 50px; }
.tapped .waves .w { animation: waveFlash 0.9s ease forwards; }
.tapped .waves .w2 { animation-delay: 0.12s; }
.tapped .waves .w3 { animation-delay: 0.24s; }
@keyframes waveFlash {
  0% { opacity: 0.18; }
  40% { opacity: 1; }
  100% { opacity: 0.85; }
}
.tapped .waves .wdot { animation: pingIn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.3s forwards; }
@keyframes pingIn {
  from { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.6); }
  to { opacity: 1; transform: scale(1); }
}

.card {
  --cw: clamp(170px, 23vw, 235px);
  width: var(--cw);
  height: calc(var(--cw) / 1.586);
  background: linear-gradient(135deg, #2f6ae0, #0b3fb4 70%);
  border-radius: 14px;
  box-shadow: 0 22px 40px -16px rgba(7, 87, 216, 0.6), inset 0 1px 0 rgba(255,255,255,0.3);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  transform: rotate(-8deg);
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.tap-zone:hover .card { transform: rotate(-6deg) translateX(8px); }
.tapped .card { transform: rotate(-2deg) translateX(clamp(14px, 3vw, 34px)); }
.card-chip {
  width: 19%;
  height: 22%;
  background: linear-gradient(135deg, #ecd9a0, #c9a84c);
  border-radius: 4px;
  position: relative;
}
.card-chip::after {
  content: "";
  position: absolute;
  inset: 25% 8%;
  border: 1px solid rgba(90, 70, 20, 0.5);
  border-radius: 2px;
}
.card-num { font-family: var(--mono); color: rgba(255,255,255,0.9); font-size: clamp(0.7rem, 1.1vw, 0.9rem); letter-spacing: 0.12em; }
.card-brand { font-weight: 800; color: rgba(255,255,255,0.85); font-size: clamp(0.55rem, 0.85vw, 0.7rem); letter-spacing: 0.18em; }

.tap-hint {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  animation: hintBob 1.6s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes hintBob { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
.tapped .tap-hint { display: none; }

.stamp {
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-7deg) scale(3);
  padding: 12px 28px 10px;
  border: 5px solid var(--orange);
  border-radius: 10px;
  color: var(--orange);
  background: rgba(246, 236, 210, 0.82);
  backdrop-filter: blur(2px);
  font-weight: 900;
  font-stretch: 88%;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
}
.stamp small { font-family: var(--mono); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.3em; }
.stamped .stamp { animation: stampIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 0.75s forwards; }
@keyframes stampIn {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-7deg) scale(3); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(1); }
}

.post-tap { margin-top: 10px; opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s; }
.post-tap.shown { opacity: 1; transform: none; }
.post-tap-line { margin: 0 0 20px; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.follow-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--navy);
  color: var(--cream-hi);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease;
}
.follow-cue:hover { background: var(--blue); transform: translateY(-2px); }
.follow-cue span { animation: bounceDown 1.4s ease-in-out infinite; }
@keyframes bounceDown { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.skip-link {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(10, 30, 56, 0.55);
}
.skip-link:hover { color: var(--blue); }

/* ==========================================================
   ACT 2 · THE LEDGER (dark)
   ========================================================== */
.ledger {
  background: var(--navy-deep);
  color: var(--cream);
  position: relative;
}
.ticker {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(4, 16, 32, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-inv);
}
.ticker-cell {
  padding: 13px 26px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(246, 236, 210, 0.55);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.ticker-cell + .ticker-cell { border-left: 1px solid var(--line-inv); }
.ticker-cell b { font-size: 1rem; font-weight: 600; color: var(--cream-hi); min-width: 5.2ch; text-align: left; }
.ticker-money b { color: var(--orange); transition: color 0.3s ease; }
.ticker-money.moved b { color: #7ee29a; }
@media (max-width: 560px) {
  .ticker-cell { padding: 11px 14px; letter-spacing: 0.1em; font-size: 0.66rem; }
}

.ledger-shell {
  width: var(--shell);
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) 0 clamp(80px, 10vw, 130px);
}
.ledger h2 { color: var(--cream-hi); }
.ledger-intro { margin: 22px 0 0; max-width: 46ch; color: rgba(246, 236, 210, 0.7); }

.entries {
  list-style: none;
  margin: clamp(50px, 7vw, 80px) 0 0;
  padding: 0;
  position: relative;
}
.entries::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 165px;
  width: 2px;
  background: linear-gradient(var(--blue-hi), var(--orange));
  opacity: 0.5;
}
.entry {
  position: relative;
  display: flex;
  gap: 56px;
  padding: 0 0 clamp(44px, 6vw, 64px) 0;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.entry.inview { opacity: 1; transform: none; }
.entry-t {
  flex: none;
  width: 140px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--blue-hi);
  text-align: right;
  position: relative;
  line-height: 1.2;
}
.entry-t i { font-style: normal; font-size: 0.65em; color: rgba(246,236,210,0.5); margin-left: 2px; }
.entry-t::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 156px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 3px solid var(--blue-hi);
}
.entry-chirp .entry-t, .entry-settle .entry-t { color: var(--orange); }
.entry-chirp .entry-t::after, .entry-settle .entry-t::after { border-color: var(--orange); }
.entry-body { max-width: 52ch; }
.entry-body h3 {
  font-weight: 900;
  font-stretch: 92%;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  text-transform: uppercase;
  color: var(--cream-hi);
  margin-bottom: 10px;
}
.entry-body p { margin: 0; color: rgba(246, 236, 210, 0.75); }
.entry-body strong { color: var(--cream-hi); }
.entry-body em { color: var(--cream-hi); }
.entry-settle .entry-body h3 { color: var(--orange); }
.entry-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.entry-link:hover { color: var(--cream-hi); border-bottom-color: var(--cream-hi); }
@media (max-width: 640px) {
  .entries::before { left: 8px; }
  .entry { flex-direction: column; gap: 8px; padding-left: 34px; }
  .entry-t { text-align: left; width: auto; padding: 0; }
  .entry-t::after { left: -33px; top: 5px; }
}

/* ==========================================================
   ACT 3 · THE RECEIPT
   ========================================================== */
.autopsy { background: var(--cream); }
.autopsy-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.autopsy-copy h2 { max-width: 16ch; }
.autopsy-copy p { max-width: 50ch; color: rgba(10, 30, 56, 0.8); }
.autopsy-copy p strong { color: var(--navy); }
.share-row { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 12px 26px -12px rgba(255, 92, 26, 0.6);
  transition: transform 140ms ease, background 140ms ease;
}
.share-btn:hover { background: #e84c0f; transform: translateY(-2px); }
.share-note { font-family: var(--mono); font-size: 0.78rem; color: var(--blue); }

.receipt {
  margin: 0;
  justify-self: center;
  transform: rotate(2deg);
  transition: transform 0.4s ease;
  filter: drop-shadow(0 26px 30px rgba(6, 26, 51, 0.25));
}
.receipt:hover { transform: rotate(0.5deg) scale(1.015); }
.receipt-paper {
  width: min(340px, 86vw);
  background: #fffdf6;
  padding: 30px 26px 22px;
  font-family: var(--mono);
  color: #1c2333;
  /* torn edges */
  --notch: 12px;
  clip-path: polygon(
    0 6px, 4% 0, 8% 6px, 12% 0, 16% 6px, 20% 0, 24% 6px, 28% 0, 32% 6px, 36% 0,
    40% 6px, 44% 0, 48% 6px, 52% 0, 56% 6px, 60% 0, 64% 6px, 68% 0, 72% 6px,
    76% 0, 80% 6px, 84% 0, 88% 6px, 92% 0, 96% 6px, 100% 0,
    100% calc(100% - 6px), 96% 100%, 92% calc(100% - 6px), 88% 100%, 84% calc(100% - 6px),
    80% 100%, 76% calc(100% - 6px), 72% 100%, 68% calc(100% - 6px), 64% 100%,
    60% calc(100% - 6px), 56% 100%, 52% calc(100% - 6px), 48% 100%, 44% calc(100% - 6px),
    40% 100%, 36% calc(100% - 6px), 32% 100%, 28% calc(100% - 6px), 24% 100%,
    20% calc(100% - 6px), 16% 100%, 12% calc(100% - 6px), 8% 100%, 4% calc(100% - 6px), 0 100%
  );
}
.receipt-store { margin: 0 0 6px; text-align: center; font-weight: 600; font-size: 1rem; letter-spacing: 0.14em; }
.receipt-meta { margin: 0; text-align: center; font-size: 0.68rem; line-height: 1.6; color: rgba(28, 35, 51, 0.6); }
.receipt-rule { margin: 14px 0; border-top: 1.5px dashed rgba(28, 35, 51, 0.3); }
.receipt-sub { margin: 0 0 10px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; color: var(--blue); }
.receipt-lines { margin: 0; }
.r-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  font-size: 0.82rem;
}
.r-line dt { margin: 0; font-weight: 600; letter-spacing: 0.04em; }
.r-line dt span { display: block; font-weight: 400; font-size: 0.66rem; color: rgba(28, 35, 51, 0.55); letter-spacing: 0; margin-top: 1px; }
.r-line dd { margin: 0; font-weight: 600; white-space: nowrap; }
.r-cut dd { color: var(--orange); }
.r-total { margin-top: 8px; padding-top: 10px; border-top: 1.5px solid #1c2333; font-size: 0.95rem; }
.r-total dd { color: #0a7a3d; }
.receipt-foot { margin: 0 0 10px; text-align: center; font-size: 0.68rem; line-height: 1.65; letter-spacing: 0.08em; color: rgba(28,35,51,0.75); }
.receipt-cta { font-weight: 600; color: var(--blue); }
.receipt-barcode { margin: 4px 0 0; text-align: center; font-size: 1.15rem; letter-spacing: 1px; color: #1c2333; user-select: none; }
@media (max-width: 860px) {
  .autopsy-shell { grid-template-columns: 1fr; }
  .receipt { transform: rotate(1deg); }
}

/* ==========================================================
   ACT 4 · THE RULES (dark)
   ========================================================== */
.rules { background: var(--navy-deep); color: var(--cream); }
.rules-shell { width: var(--shell); margin: 0 auto; padding: clamp(80px, 11vw, 140px) 0; }
.rules h2 { color: var(--cream-hi); max-width: 22ch; }
.rules-intro { margin: 22px 0 0; max-width: 52ch; color: rgba(246, 236, 210, 0.7); }
.rule-cards {
  list-style: none;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--line-inv);
  border: 1px solid var(--line-inv);
}
@media (min-width: 641px) and (max-width: 1023px) {
  .rule-cards { grid-template-columns: 1fr 1fr; }
  .rule-cards li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .rule-cards { grid-template-columns: repeat(6, 1fr); }
  .rule-cards li { grid-column: span 2; }
  .rule-cards li:nth-child(4) { grid-column: 2 / span 2; }
}
.rule-cards li {
  background: var(--navy-deep);
  padding: 28px 24px 30px;
  position: relative;
  transition: background 0.25s ease;
}
.rule-cards li:hover { background: #0a2547; }
.rule-no {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 16px;
}
.rule-cards h3 {
  font-weight: 900;
  font-stretch: 92%;
  font-size: 1.18rem;
  text-transform: uppercase;
  color: var(--cream-hi);
  margin-bottom: 10px;
}
.rule-cards p { margin: 0; font-size: 0.92rem; color: rgba(246, 236, 210, 0.68); }

/* ==========================================================
   ACT 5 · THE TEST
   ========================================================== */
.test { background: var(--cream); }
.test-shell { width: var(--shell); max-width: 860px; margin: 0 auto; padding: clamp(80px, 11vw, 140px) 0; }
.test h2 { max-width: 20ch; }
.test-list { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; border-top: 2px solid var(--navy); }
.test-q { border-bottom: 2px solid var(--navy); }
.test-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--navy);
  transition: color 140ms ease;
}
.test-toggle:hover { color: var(--blue); }
.q-mark {
  flex: none;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.q-plus {
  margin-left: auto;
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.test-toggle[aria-expanded="true"] .q-plus { transform: rotate(45deg); background: var(--navy); color: var(--cream); }
.test-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  overflow: hidden;
}
.test-a > p {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 4px 0 calc(0.78rem * 2 + 18px);
  max-width: 56ch;
  color: rgba(10, 30, 56, 0.75);
}
.test-q.open .test-a { grid-template-rows: 1fr; }
.test-q.open .test-a > p { padding-bottom: 24px; }
.test-close { margin: 32px 0 0; font-size: clamp(1.05rem, 2vw, 1.25rem); }

/* ==========================================================
   ACT 6 · BUY
   ========================================================== */
.buy { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.buy::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border: 60px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.buy-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 130px) 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.buy-book { display: flex; justify-content: center; }
.buy-cover {
  width: min(320px, 78vw);
  border-radius: 6px;
  box-shadow: 0 40px 60px -24px rgba(4, 16, 32, 0.55), 0 0 0 1px rgba(255,255,255,0.1);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}
.buy-cover:hover { transform: rotate(-1deg) translateY(-6px); }
.buy .section-kicker { color: rgba(255, 255, 255, 0.75); }
.buy h2 { color: #fff; max-width: 18ch; }
.buy-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.buy-points li {
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}
.buy-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange);
}
.buy-card {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  background: rgba(4, 16, 32, 0.3);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 20px 26px;
}
.buy-price { display: flex; align-items: center; gap: 14px; }
.price-big { font-weight: 900; font-size: 2.2rem; letter-spacing: -0.02em; }
.price-note { font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.06em; color: rgba(255,255,255,0.75); text-transform: uppercase; }
.buy .button-primary { background: var(--navy-deep); box-shadow: 0 12px 26px -12px rgba(4,16,32,0.7); }
.buy .button-primary:hover { background: #04101f; }
.buy-listen { margin: 16px 0 0; font-size: 1rem; color: rgba(255,255,255,0.85); }
.buy-listen a { color: #fff; font-weight: 700; }
.buy-listen a:hover { color: var(--orange); }
.buy-authors { margin: 24px 0 0; font-size: 0.9rem; color: rgba(255,255,255,0.8); max-width: 52ch; }
.buy-authors a { color: #fff; }
@media (max-width: 860px) {
  .buy-shell { grid-template-columns: 1fr; }
  .buy-book { order: -1; }
}

/* ==========================================================
   ACT 7 · BULK FORM
   ========================================================== */
.bulk { background: var(--cream); }
.bulk-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 130px) 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.bulk-copy h2 { max-width: 15ch; }
.bulk-copy p { max-width: 44ch; color: rgba(10, 30, 56, 0.8); }
.bulk-alt a { font-weight: 700; color: var(--blue); }
.bulk-form {
  background: var(--cream-hi);
  border: 1.5px solid var(--navy);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 8px 8px 0 var(--navy);
}
.field-trap { position: absolute; left: -9999px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--navy);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.consent-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 18px;
  font-size: 0.85rem;
  color: rgba(10, 30, 56, 0.75);
}
.form-submit { width: 100%; background: var(--navy); color: var(--cream-hi); }
.form-submit:hover { background: var(--blue); transform: translateY(-2px); }
@media (max-width: 860px) {
  .bulk-shell { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}


/* ==========================================================
   ACT 3b · KEEP THE RECEIPT (cheat-sheet capture)
   ========================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.keep { background: var(--navy); color: var(--cream-hi); border-top: 1px solid var(--line-inv); }
.keep-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.keep .section-kicker { color: var(--orange); }
.keep h2 { color: var(--cream-hi); }
.keep-copy p { max-width: 48ch; color: rgba(246, 236, 210, 0.8); }
.keep-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-inv);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 30px);
}
.keep-row { display: flex; gap: 10px; flex-wrap: wrap; }
.keep-row input {
  flex: 1 1 220px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-inv);
  border-radius: 12px;
  background: var(--cream-hi);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1rem;
}
.keep-row input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.keep-submit { background: var(--orange); color: var(--cream-hi); flex: 0 0 auto; }
.keep-submit:hover { background: #e84c0f; transform: translateY(-2px); }
.keep-consent { margin: 14px 0 0; color: rgba(246, 236, 210, 0.6); font-size: 0.8rem; }
@media (max-width: 860px) { .keep-shell { grid-template-columns: 1fr; } }

/* ==========================================================
   ACT 5b · SOCIAL PROOF
   ========================================================== */
.proof { background: var(--navy-deep); color: var(--cream-hi); }
.proof[hidden] { display: none; }
.proof-shell { width: var(--shell); margin: 0 auto; padding: clamp(56px, 8vw, 96px) 0; }
.proof-count { margin: -6px 0 28px; font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246, 236, 210, 0.75); }
.proof-stars { color: var(--gold); letter-spacing: 0.1em; margin-right: 8px; }
.proof-count a { color: var(--cream-hi); }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proof-list blockquote { margin: 0; padding: 26px; border: 1px solid var(--line-inv); border-radius: 16px; background: rgba(255,255,255,0.03); height: 100%; }
.proof-list blockquote p { margin: 0 0 16px; font-size: 1.08rem; line-height: 1.45; font-weight: 600; }
.proof-list blockquote p::before { content: "“"; color: var(--orange); font-weight: 900; margin-right: 2px; }
.proof-list blockquote footer { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: rgba(246, 236, 210, 0.6); }
@media (max-width: 860px) { .proof-list { grid-template-columns: 1fr; } }

/* ==========================================================
   ACT 6b · WORK WITH BEN & HOLLY
   ========================================================== */
.work { background: var(--navy-deep); color: var(--cream-hi); position: relative; overflow: hidden; }
.work::before {
  content: "";
  position: absolute;
  left: -160px; bottom: -220px;
  width: 520px; height: 520px;
  border: 70px solid rgba(255, 92, 26, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.work-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 130px) 0;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-areas: "copy stats" "copy people";
  grid-template-rows: max-content 1fr;
  gap: 28px clamp(32px, 5vw, 72px);
  align-items: start;
  position: relative;
  z-index: 1;
}
.work-copy { grid-area: copy; }
.work h2 { color: var(--cream-hi); max-width: 16ch; }
.work-copy p { max-width: 56ch; color: rgba(246, 236, 210, 0.82); }
.work-copy strong { color: var(--cream-hi); }
.work-actions { margin-top: 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.work-mail { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: rgba(246, 236, 210, 0.75); }
.work-mail:hover { color: var(--orange); }
.work-stats {
  grid-area: stats;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--orange);
}
.work-stats > div { padding: 18px 12px 18px 0; border-right: 1px solid var(--line-inv); }
.work-stats > div:last-child { border-right: 0; }
.work-stats dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246, 236, 210, 0.55); order: 2; }
.work-stats dd { margin: 0 0 6px; font-weight: 900; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.03em; color: var(--cream-hi); }
.work-stats > div { display: flex; flex-direction: column; }
.work-people { grid-area: people; display: grid; gap: 12px; align-self: start; }
.person {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name li" "role li";
  gap: 2px 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line-inv);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.person:hover { border-color: var(--orange); background: rgba(255,255,255,0.03); transform: translateY(-2px); }
.person-name { grid-area: name; font-weight: 800; font-size: 1.05rem; }
.person-role { grid-area: role; font-size: 0.82rem; color: rgba(246, 236, 210, 0.65); }
.person-li { grid-area: li; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--orange); white-space: nowrap; }
@media (max-width: 860px) {
  .work-shell { grid-template-columns: 1fr; grid-template-areas: "copy" "stats" "people"; }
}

/* ---------- team packs table (inside bulk) ---------- */
.packs { width: 100%; border-collapse: collapse; margin: 26px 0 22px; font-size: 0.95rem; }
.packs th, .packs td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.packs tr:first-child th, .packs tr:first-child td { border-top: 2px solid var(--navy); }
.packs th { font-weight: 900; white-space: nowrap; padding-right: 16px; }
.packs td { color: rgba(10, 30, 56, 0.75); }
.packs td:last-child { text-align: right; }
.pack-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  cursor: pointer;
  white-space: nowrap;
}
.pack-btn:hover { color: var(--orange); }
.bulk-form.flash { animation: formflash 0.9s ease; }
@keyframes formflash { 0% { box-shadow: 8px 8px 0 var(--orange); } 100% { box-shadow: 8px 8px 0 var(--navy); } }
@media (max-width: 560px) {
  .packs td:nth-child(2) { display: none; }
}

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); color: rgba(246, 236, 210, 0.7); }
.footer-shell { width: var(--shell); margin: 0 auto; padding: 56px 0 48px; font-size: 0.85rem; }
.footer-mark { margin: 0 0 14px; font-weight: 900; font-stretch: 90%; letter-spacing: 0.06em; color: var(--cream-hi); }
.disclaimer { max-width: 72ch; font-size: 0.75rem; color: rgba(246, 236, 210, 0.45); }
.footer-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; text-decoration: none; }
.footer-links a:hover { color: var(--orange); }


/* ==========================================================
   RESULT PAGES · thanks.html and submit.php errors
   ========================================================== */
.result-page { background: var(--navy-deep); color: var(--cream-hi); min-height: 100vh; }
.result-shell { width: var(--shell); max-width: 720px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) 0; }
.result-mark {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 900; font-stretch: 90%; font-size: 0.95rem; letter-spacing: 0.04em;
  text-decoration: none; color: var(--cream-hi); margin-bottom: clamp(32px, 6vw, 64px);
}
.result-card h1 {
  font-weight: 900; font-stretch: 92%; text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 4.4rem); color: var(--cream-hi); margin-bottom: 18px;
}
.result-card .section-kicker { color: var(--orange); }
.result-card p { max-width: 52ch; color: rgba(246, 236, 210, 0.82); font-size: 1.08rem; }
.result-card p strong { color: var(--cream-hi); }
.form-notice { margin: 0 0 28px; padding: 18px 22px; border: 1.5px solid var(--orange); border-radius: 14px; background: rgba(255, 92, 26, 0.08); }
.form-notice ul { margin: 0; padding-left: 18px; }
.form-notice li { margin: 4px 0; }
.result-fallback { margin-top: 22px; font-size: 0.9rem; }
.result-fallback a { color: var(--cream-hi); }
.result-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.result-actions .button-primary { background: var(--orange); box-shadow: 0 12px 26px -12px rgba(255, 92, 26, 0.6); }
.result-actions .button-primary:hover { background: #e84c0f; }
.result-secondary { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: rgba(246, 236, 210, 0.75); }
.result-secondary:hover { color: var(--orange); }
.download-card {
  text-decoration: none; color: inherit; transition: border-color 140ms ease, transform 140ms ease;
  margin: 30px 0 0; padding: 26px; border: 1px solid var(--line-inv); border-radius: 18px;
  background: rgba(255,255,255,0.04); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
}
.download-icon { width: 54px; height: 68px; border-radius: 6px; background: var(--cream-hi); position: relative; box-shadow: 4px 4px 0 var(--orange); }
.download-icon::after { content: "PDF"; position: absolute; inset: auto 0 8px; text-align: center; font-family: var(--mono); font-size: 0.62rem; font-weight: 600; color: var(--navy); letter-spacing: 0.1em; }
.download-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.download-card h2 { font-size: 1.2rem; text-transform: none; letter-spacing: -0.01em; margin-bottom: 4px; color: var(--cream-hi); }
.download-card p { margin: 0; font-size: 0.9rem; }
.next-steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; }
.next-steps li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border: 1px solid var(--line-inv); border-radius: 14px; }
.next-steps li a { color: var(--cream-hi); font-weight: 700; text-decoration: none; }
.next-steps li a:hover { color: var(--orange); }
.next-steps .step-no { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--orange); }
.result-hidden[hidden] { display: none; }
@media (max-width: 560px) { .download-card { grid-template-columns: 1fr; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- mobile refinements ---------- */
@media (max-width: 560px) {
  .hero-kicker { font-size: 0.62rem; letter-spacing: 0.12em; white-space: nowrap; }
  .tap-zone { gap: 14px; padding: 26px 8px 40px; }
  .card { --cw: 128px; }
  .card-num { font-size: 0.6rem; }
  .card-brand { font-size: 0.5rem; }
  .terminal { width: 100px; border-radius: 16px; }
  .terminal-amt { font-size: 0.72rem; }
  .terminal-msg { font-size: 0.42rem; }
  .terminal-wave svg { width: 26px; height: 26px; }
  .waves { width: 48px; }
  .stamp { border-width: 4px; padding: 9px 18px 8px; }
  .hide-mobile { display: none; }
}
