/* The homepage's two offers (the buyout and the paper calculator), for the trade pages.
   Copied from site/shop.html so every trade page shows them the same way; keep the two in step.
   Used with /assets/offers.js. */
.buyout { background: #F37021; padding: 3rem 0; }
.buyout-in { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem 3rem; }
.buyout-in > div { flex: 1 1 26rem; }
.buyout h2 { color: #1A1A2E; font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.05; font-weight: 700; text-wrap: balance; }
.buyout .hl { display: inline-block; margin-top: .9rem; background: #ffffff; color: #1A1A2E; font-weight: 700; font-size: clamp(1.3rem, 2.3vw, 1.85rem); line-height: 1.2; padding: .35rem .8rem; border-radius: .4rem; box-shadow: 0 6px 0 rgba(26,26,46,.18); }
.buyout-btn { display: inline-flex; align-items: center; gap: .6rem; background: #1A1A2E; color: #ffffff; font-weight: 700; font-size: 1.1rem; padding: 1.05rem 1.7rem; border-radius: .6rem; white-space: nowrap; transition: transform .15s ease, background .15s ease; }
.buyout-btn:hover { background: #2D2D44; transform: translateY(-2px); }
.buyout-btn svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .buyout { padding: 2.5rem 0; } .buyout-btn { width: 100%; justify-content: center; } }
/* The paper offer: a navy band with a rolling meter that asks to be clicked. */
.buyout.paper { position: relative; overflow: hidden; padding: 3.25rem 0; border-top: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(620px 320px at 82% 50%, rgba(243,112,33,.32), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/40px 40px, #1A1A2E; }
.buyout.paper .buyout-in { position: relative; z-index: 1; }
.buyout.paper h2 { color: #ffffff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.buyout.paper .hl { background: #F37021; color: #1A1A2E; font-size: clamp(1.05rem, 1.8vw, 1.4rem); box-shadow: 0 5px 0 rgba(0,0,0,.35); max-width: 38rem; }
.paper-go { flex: 0 1 23rem; display: flex; flex-direction: column; gap: .9rem; text-decoration: none; border-radius: 1.1rem; }
.paper-go:focus-visible { outline: 3px solid #ffffff; outline-offset: 5px; }
.paper-meter { display: block; background: #0d0d1a; border: 1px solid rgba(243,112,33,.55); border-radius: 1rem; padding: .85rem 1.1rem 1rem;
  box-shadow: inset 0 0 28px rgba(243,112,33,.16), 0 0 0 5px rgba(243,112,33,.08), 0 18px 40px rgba(0,0,0,.35); transition: border-color .2s, box-shadow .2s; }
.paper-meter .lbl { display: block; font-size: .7rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #9a9db0; }
.paper-meter .num { display: flex; align-items: baseline; gap: .18rem; margin-top: .35rem; color: #F37021; font: 700 clamp(2rem, 4vw, 2.5rem)/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-shadow: 0 0 18px rgba(243,112,33,.6); }
.paper-meter .num b { display: inline-block; min-width: .7em; text-align: center; padding: .05em 0; background: rgba(255,255,255,.05); border-radius: .25rem; font-weight: 700; }
.paper-meter .num i { font-style: normal; color: #f9be96; }
.paper-btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: .7rem; color: #1A1A2E; font-weight: 800; font-size: 1.3rem; letter-spacing: .3px;
  padding: 1.05rem 1.5rem; border-radius: .85rem; background: linear-gradient(135deg, #ff9a52, #F37021 45%, #d95926);
  box-shadow: 0 12px 30px rgba(243,112,33,.45), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .15s ease, box-shadow .15s ease; animation: paper-pulse 2.4s ease-in-out infinite; }
.paper-btn .cb { width: 36px; height: 36px; border-radius: 10px; background: #ffffff; color: #F37021; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.paper-btn .ar { transition: transform .2s ease; }
.paper-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); animation: paper-shine 3.4s ease-in-out infinite; }
.paper-go:hover .paper-btn { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 44px rgba(243,112,33,.65), inset 0 1px 0 rgba(255,255,255,.35); }
.paper-go:hover .paper-btn .ar { transform: translateX(6px); }
.paper-go:hover .paper-meter { border-color: #F37021; box-shadow: inset 0 0 34px rgba(243,112,33,.26), 0 0 0 5px rgba(243,112,33,.16), 0 18px 40px rgba(0,0,0,.35); }
.paper-q { display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: .85rem; padding: .5rem .55rem .5rem 1rem; color: #e6e7ee; font-weight: 600; font-size: .95rem; }
.paper-q input { width: 5.4rem; height: 44px; text-align: center; font: 700 1.2rem 'DM Sans', system-ui, sans-serif; color: #ffffff; background: #0d0d1a; border: 1px solid rgba(243,112,33,.6); border-radius: .6rem; }
.paper-q input:focus { outline: 2px solid #F37021; outline-offset: 1px; }
button.paper-btn { border: 0; width: 100%; cursor: pointer; font-family: 'DM Sans', system-ui, sans-serif; }
.paper-go .sub { text-align: center; font-size: .82rem; color: #cfc6bf; margin-top: -.3rem; }
.paper-sheets { position: absolute; inset: 0; pointer-events: none; }
.paper-sheets span { position: absolute; top: -90px; width: 44px; height: 58px; border-radius: 3px; background: #ffffff; opacity: .07; animation: paper-fall linear infinite;
  background-image: repeating-linear-gradient(#ffffff 0 9px, #d6d9e6 9px 10px); }
.paper-sheets span:nth-child(1) { left: 8%; animation-duration: 11s; }
.paper-sheets span:nth-child(2) { left: 36%; animation-duration: 14s; animation-delay: -6s; width: 34px; height: 46px; }
.paper-sheets span:nth-child(3) { left: 58%; animation-duration: 12s; animation-delay: -3s; }
.paper-sheets span:nth-child(4) { left: 92%; animation-duration: 16s; animation-delay: -9s; width: 38px; height: 50px; }
@keyframes paper-fall { from { transform: translateY(0) rotate(-10deg); } to { transform: translateY(520px) rotate(200deg); } }
@keyframes paper-pulse { 0%, 100% { box-shadow: 0 12px 30px rgba(243,112,33,.45), 0 0 0 0 rgba(243,112,33,.55), inset 0 1px 0 rgba(255,255,255,.35); } 50% { box-shadow: 0 12px 30px rgba(243,112,33,.45), 0 0 0 12px rgba(243,112,33,0), inset 0 1px 0 rgba(255,255,255,.35); } }
@keyframes paper-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (max-width: 640px) { .buyout.paper { padding: 2.5rem 0; } .paper-go { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .paper-btn, .paper-btn::after, .paper-sheets span { animation: none; } .paper-sheets { display: none; } }
