/* FlipForge homepage Deal Check refinement v2
 * Purpose: make the first interaction feel premium, make the user's call vs.
 * FlipForge's verdict unmistakable, and keep the core interaction within the
 * first mobile viewport without adding more controls.
 */

.ff-deal-shell{
  position:relative;
  border-color:rgba(230,170,53,.24);
  background:
    radial-gradient(circle at 86% 8%,rgba(143,194,255,.07),transparent 28%),
    linear-gradient(180deg,#0b111a 0%,#070c13 100%);
  box-shadow:0 32px 90px rgba(0,0,0,.48),0 0 0 1px rgba(255,255,255,.015) inset;
}
.ff-deal-shell::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:0 14% auto;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(230,170,53,.62),transparent);
  pointer-events:none;
}
.ff-deal-shell>*{position:relative;z-index:1}
.ff-deal-topbar{
  background:linear-gradient(180deg,rgba(19,26,37,.96),rgba(10,15,23,.96));
}
.ff-deal-topbar strong{color:#f4c85e}

/* Premium exact-listing presentation. */
.ff-deal-listing{
  position:relative;
  overflow:hidden;
  border-color:rgba(255,255,255,.13);
  background:
    linear-gradient(110deg,rgba(230,170,53,.055),transparent 24%),
    linear-gradient(180deg,#101722 0%,#0c121b 100%);
  box-shadow:0 10px 28px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.025);
}
.ff-deal-listing::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(112deg,transparent 0 58%,rgba(255,255,255,.025) 62%,transparent 68%);
  pointer-events:none;
}
.ff-deal-mini-card{
  width:64px;
  aspect-ratio:.70;
  border:6px solid #e9edf2;
  border-radius:8px;
  background:
    radial-gradient(circle at 50% 42%,rgba(240,193,82,.88) 0 8%,transparent 9%),
    linear-gradient(145deg,transparent 30%,rgba(108,196,255,.28) 31% 37%,transparent 38% 53%,rgba(238,184,74,.36) 54% 61%,transparent 62%),
    linear-gradient(165deg,#162231 0%,#7f8a99 37%,#283545 63%,#101720 100%);
  box-shadow:0 16px 34px rgba(0,0,0,.5),inset 0 0 0 1px rgba(255,255,255,.18);
}
.ff-deal-mini-card::before{
  inset:10px 3px 7px;
  border-radius:2px;
  background:
    linear-gradient(110deg,transparent 0 36%,rgba(255,255,255,.23) 40%,transparent 45%),
    linear-gradient(132deg,transparent 34%,rgba(230,170,53,.35) 35% 43%,transparent 44% 60%,rgba(143,194,255,.2) 61% 66%,transparent 67%);
}
.ff-deal-mini-card::after{
  content:"307 · SILVER";
  position:absolute;
  left:3px;
  right:3px;
  bottom:2px;
  padding:2px 2px 1px;
  background:rgba(4,8,13,.78);
  color:#e8ecf2;
  font-size:.38rem;
  font-weight:900;
  letter-spacing:.03em;
  text-align:center;
}
.ff-deal-mini-card span{
  top:-3px;
  left:-3px;
  right:-3px;
  padding:3px 4px 2px;
  border-bottom:1px solid #d5dbe2;
  font-size:.48rem;
}
.ff-deal-price-stack strong{color:#fff;text-shadow:0 5px 18px rgba(255,255,255,.08)}
.ff-deal-discount{
  border-color:rgba(230,170,53,.46);
  background:linear-gradient(90deg,rgba(93,68,15,.2),rgba(23,20,6,.86));
  box-shadow:inset 3px 0 0 rgba(230,170,53,.72);
}
.ff-deal-discount strong{font-size:1.72rem;text-shadow:0 5px 18px rgba(230,170,53,.12)}

/* Decision buttons: same hierarchy, clearer affordance. */
.ff-deal-choices button{
  position:relative;
  overflow:hidden;
  border-color:#3d4858;
  background:linear-gradient(180deg,#0c131d,#091019);
}
.ff-deal-choices button::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  opacity:.45;
  background:#697586;
  transition:opacity 150ms ease,width 150ms ease;
}
.ff-deal-choices button[data-ff-choice="BUY"]::after{background:#69d6a2}
.ff-deal-choices button[data-ff-choice="WATCH"]::after{background:#e6aa35}
.ff-deal-choices button[data-ff-choice="VERIFY"]::after{background:#8fc2ff}
.ff-deal-choices button[data-ff-choice="PASS"]::after{background:#ff9696}
.ff-deal-choices button:hover::after,.ff-deal-choices button:focus-visible::after{width:5px;opacity:1}

/* Make YOUR CALL versus FLIPFORGE the first thing the eye understands. */
.ff-deal-result-heading{
  display:grid;
  grid-template-columns:minmax(145px,.72fr) minmax(0,1.28fr);
  gap:10px;
  align-items:stretch;
  margin-bottom:12px;
}
.ff-deal-result-heading .ff-deal-kicker{
  margin:0;
  padding:13px 14px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:12px;
  background:#0d131c;
  color:#8e98a6;
  letter-spacing:.09em;
}
.ff-deal-result-heading .ff-deal-kicker::before{
  content:"YOUR CALL";
  color:#747f8e;
  font-size:.56rem;
  letter-spacing:.13em;
}
.ff-deal-result-heading .ff-deal-kicker strong{
  width:max-content;
  max-width:100%;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:#fff;
  font-size:.9rem;
  letter-spacing:.08em;
}
.ff-deal-result-heading h2{
  margin:0;
  padding:13px 16px;
  display:flex;
  flex-wrap:wrap;
  align-content:center;
  align-items:baseline;
  gap:0 7px;
  border:1px solid rgba(143,194,255,.46);
  border-radius:12px;
  background:linear-gradient(135deg,rgba(13,25,38,.98),rgba(10,16,24,.96));
  box-shadow:inset 4px 0 0 #8fc2ff,0 12px 28px rgba(0,0,0,.18);
}
.ff-deal-result-heading h2::before{
  content:"FLIPFORGE";
  flex-basis:100%;
  margin-bottom:4px;
  color:#8fc2ff;
  font-size:.56rem;
  font-weight:850;
  letter-spacing:.14em;
}
.ff-deal-result-heading h2 span{
  color:#b9d8ff;
  font-weight:900;
  text-shadow:0 6px 22px rgba(143,194,255,.2);
}
.ff-deal-result-heading>p:last-child{
  grid-column:1/-1;
  margin:0;
  padding:0 2px;
}

/* The correction is the product's signature reveal. */
.ff-deal-shift-card{
  position:relative;
  overflow:hidden;
  padding:17px 20px 15px;
  border-color:rgba(230,170,53,.58);
  background:
    radial-gradient(circle at 78% 48%,rgba(230,170,53,.11),transparent 25%),
    linear-gradient(120deg,#171406 0%,#0c121b 72%);
  box-shadow:0 14px 34px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.03);
}
.ff-deal-shift-card::after{
  content:"EVIDENCE CHANGED THE DEAL";
  position:absolute;
  top:14px;
  right:16px;
  color:rgba(240,209,132,.5);
  font-size:.54rem;
  font-weight:850;
  letter-spacing:.13em;
}
.ff-deal-shift-card>small{color:#b7a877}
.ff-deal-shift{
  margin:11px 0 8px;
  justify-content:center;
  gap:18px;
}
.ff-deal-shift span{
  color:#747e8a;
  font-size:clamp(2rem,3.5vw,2.8rem);
  opacity:.78;
}
.ff-deal-shift b{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  flex:0 0 38px;
  border:1px solid rgba(230,170,53,.5);
  border-radius:50%;
  background:rgba(230,170,53,.08);
  color:#f0c75c;
  font-size:1.3rem;
}
.ff-deal-shift strong{
  color:#f4c85e;
  font-size:clamp(3.65rem,6.2vw,5.4rem);
  font-weight:900;
  text-shadow:0 10px 30px rgba(230,170,53,.16);
}
.ff-deal-shift-card p{text-align:center}
.ff-deal-reasons>div{border-color:rgba(255,255,255,.12);background:linear-gradient(180deg,#0e151f,#0b1119)}
.ff-deal-result-actions [data-ff-deal-cta="evaluate_listing"]{box-shadow:0 10px 26px rgba(230,170,53,.12)}

@keyframes ff-supported-value-pop{
  0%{transform:scale(.86);opacity:.2}
  62%{transform:scale(1.055);opacity:1}
  100%{transform:scale(1);opacity:1}
}
.ff-deal-demo[data-ff-state="result"] .ff-deal-shift strong{animation:ff-supported-value-pop 420ms cubic-bezier(.2,.8,.2,1)}

/* Tablet: preserve hierarchy without blowing up the panel. */
@media(max-width:1180px) and (min-width:761px){
  .ff-deal-mini-card{width:58px}
  .ff-deal-result-heading{grid-template-columns:minmax(132px,.68fr) minmax(0,1.32fr)}
  .ff-deal-shift strong{font-size:4rem}
}

/* Mobile is interaction-first. The beta CTA already exists in the header. */
@media(max-width:760px){
  .decision-hero{
    min-height:calc(100svh - 70px);
    padding:12px 0 14px;
    gap:11px;
  }
  .decision-eyebrow{margin-bottom:5px;font-size:.58rem}
  .decision-hero h1 span,.decision-hero h1 strong{font-size:clamp(2rem,10vw,2.8rem)}
  .decision-hero h1 strong{margin-top:2px}
  .decision-lead{margin-top:7px;font-size:.84rem;line-height:1.34}
  .decision-demo-cue{display:none}
  .decision-actions,.decision-assurance{display:none}

  .ff-deal-shell{border-radius:15px}
  .ff-deal-topbar{min-height:36px;padding:7px 10px}
  .ff-deal-topbar strong{font-size:.58rem}.ff-deal-topbar span{font-size:.58rem}
  .ff-deal-stage{padding:10px}
  .ff-deal-question{margin-bottom:8px}
  .ff-deal-question .ff-deal-kicker{margin-bottom:4px;font-size:.57rem}
  .ff-deal-question h2{font-size:1.36rem;line-height:1.02}
  .ff-deal-question>p:last-child{margin-top:3px;font-size:.68rem}

  .ff-deal-listing{padding:8px;grid-template-columns:44px minmax(0,1fr) auto;gap:8px;border-radius:10px}
  .ff-deal-mini-card{width:39px;border-width:4px;border-radius:5px}
  .ff-deal-mini-card span{font-size:.35rem}.ff-deal-mini-card::after{font-size:.28rem}
  .ff-deal-listing-copy h3{font-size:.67rem;line-height:1.2}
  .ff-deal-price-stack{min-width:61px}.ff-deal-price-stack strong{font-size:1.34rem}
  .ff-deal-discount{margin:7px 0;padding:7px 9px}
  .ff-deal-discount span{font-size:.66rem}.ff-deal-discount strong{font-size:1.18rem}
  .ff-deal-choice-label{margin-bottom:4px;font-size:.59rem}
  .ff-deal-choices{gap:5px}
  .ff-deal-choices::before{font-size:.54rem}
  .ff-deal-choices button{min-height:44px;padding:6px 8px}
  .ff-deal-choices button strong{font-size:.72rem}.ff-deal-choices button span{font-size:.56rem;line-height:1.1}
  .ff-deal-boundary{padding:5px 8px;font-size:.43rem;line-height:1.25}

  .ff-deal-result-heading{grid-template-columns:92px minmax(0,1fr);gap:6px;margin-bottom:7px}
  .ff-deal-result-heading .ff-deal-kicker{padding:8px;gap:3px;border-radius:9px;font-size:.5rem}
  .ff-deal-result-heading .ff-deal-kicker::before{font-size:.43rem}
  .ff-deal-result-heading .ff-deal-kicker strong{padding:3px 6px;font-size:.65rem}
  .ff-deal-result-heading h2{padding:8px 10px;border-radius:9px;font-size:1.12rem;box-shadow:inset 3px 0 0 #8fc2ff}
  .ff-deal-result-heading h2::before{margin-bottom:2px;font-size:.43rem}
  .ff-deal-result-heading>p:last-child{font-size:.62rem;line-height:1.25}

  .ff-deal-shift-card{padding:9px 10px 8px}
  .ff-deal-shift-card::after{display:none}
  .ff-deal-shift-card>small{font-size:.42rem}
  .ff-deal-shift{margin:5px 0 3px;gap:10px}
  .ff-deal-shift span{font-size:1.15rem}
  .ff-deal-shift b{width:26px;height:26px;flex-basis:26px;font-size:.85rem}
  .ff-deal-shift strong{font-size:2.35rem}
  .ff-deal-shift-card p{font-size:.62rem}

  .ff-deal-reasons{margin-top:6px;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .ff-deal-reasons>div{padding:6px;grid-template-columns:20px minmax(0,1fr);gap:6px;border-radius:8px}
  .ff-deal-reasons span{width:19px;height:19px;font-size:.48rem}
  .ff-deal-reasons p{font-size:.58rem;line-height:1.28}

  .ff-deal-result-actions{margin-top:6px;display:grid;grid-template-columns:auto 1fr auto;gap:5px}
  .ff-deal-result-actions [data-ff-deal-cta="beta_access"]{display:none}
  .ff-deal-result-actions .decision-button,.ff-deal-evidence,.ff-deal-replay{min-height:31px;padding:0 8px;font-size:.58rem}
  .ff-deal-replay{margin:0;text-align:center}
}

@media(max-width:360px){
  .decision-hero h1 span,.decision-hero h1 strong{font-size:1.95rem}
  .ff-deal-result-heading{grid-template-columns:82px minmax(0,1fr)}
  .ff-deal-reasons{grid-template-columns:1fr}
  .ff-deal-result-actions{grid-template-columns:1fr 1fr}
  .ff-deal-result-actions [data-ff-deal-cta="evaluate_listing"]{grid-column:1/-1}
}

@media(prefers-reduced-motion:reduce){
  .ff-deal-choices button::after{transition:none!important}
  .ff-deal-demo[data-ff-state="result"] .ff-deal-shift strong{animation:none!important}
}
