/* The homepage's first screen: the headline, and the price as its picture
   (shared/_price_hero). The others' 30% is a cast-iron weight on the paper on
   the left; our 5% is a green foil balloon drifting up on the right. Both
   are photographs with transparent backgrounds; the shadows are drawn here.
   Every box has a fixed size and everything moves by transform, so nothing on
   the page shifts, and all of it stops under reduced motion. */

/* The headline is two lines, "Chargeback" / "Recovery for 5%", at the
   hero's usual size; neither line may break. The copy column takes a little
   more of the row than the stack's hero did, for the picture's sake. */
.hn-hero--price .hn-hero-grid { grid-template-columns: minmax(0, 12fr) minmax(0, 10fr); }
/* More air above and below the first screen than the stack's hero had. */
.hn-hero.hn-hero--price { padding: clamp(128px, 11vw, 184px) 0 clamp(112px, 10vw, 176px); }
.hn-hero--price .hn-hero-title span, .hn-hero--price .hn-hero-title em { white-space: nowrap; }

/* The picture */
.hn-price { margin: 0; display: grid; justify-items: center; align-self: center; }
.hn-price-scene {
  --b-w: 232px;          /* balloon width */
  --w-w: 236px;          /* weight width */
  position: relative; width: 100%; max-width: 540px; height: 480px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end;
  padding-bottom: 34px;  /* room for the labels under the ground line */
}
/* The paper's ground line both figures share. Each column ends on it: the
   shadows straddle it and the labels sit in the padding below. */
.hn-price-scene::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hn-line) 18%, var(--hn-line) 82%, transparent);
}
.hn-price-us, .hn-price-them { position: relative; height: 100%; display: grid; justify-items: center; align-content: end; }

.hn-price-balloon, .hn-price-weight { display: block; height: auto; user-select: none; -webkit-user-drag: none; }
.hn-price-balloon { width: var(--b-w); }
.hn-price-weight { width: var(--w-w); }

/* Ours floats: the ribbon's end stays well clear of the ground. */
.hn-price-float {
  position: absolute; left: 50%; bottom: 72px; margin-left: calc(var(--b-w) / -2);
  transform-origin: 50% 30%;
  animation: hn-price-rise 1.6s var(--hn-ease) 0.15s backwards, hn-price-bob 7s ease-in-out 1.75s infinite;
}
/* Theirs sits: it lands once, with a little weight to it. */
.hn-price-drop {
  position: relative; z-index: 1; margin-bottom: -2px;
  animation: hn-price-land 0.9s cubic-bezier(0.5, 0, 0.75, 0) 0.35s backwards;
  filter: drop-shadow(0 6px 6px rgba(var(--hn-ink-rgb), 0.18));
}

.hn-price-shadow {
  position: absolute; left: 50%; bottom: -7px; height: 14px; border-radius: 50%;
  transform: translateX(-50%);
}
.hn-price-shadow--them {
  width: calc(var(--w-w) * 1.04);
  background: radial-gradient(closest-side, rgba(var(--hn-ink-rgb), 0.42), rgba(var(--hn-ink-rgb), 0));
  animation: hn-price-thud 0.9s cubic-bezier(0.5, 0, 0.75, 0) 0.35s backwards;
}
.hn-price-shadow--us {
  width: calc(var(--b-w) * 0.7);
  background: radial-gradient(closest-side, rgba(10, 63, 46, 0.22), rgba(10, 63, 46, 0));
  animation: hn-price-breathe 7s ease-in-out 1.75s infinite;
}

.hn-price-label {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--hn-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--hn-muted);
}
.hn-price-label--us { color: var(--hn-green); }

@keyframes hn-price-rise { from { opacity: 0; transform: translateY(90px) scale(0.92); } 55% { opacity: 1; } }
@keyframes hn-price-bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}
@keyframes hn-price-breathe {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(0.82); opacity: 0.6; }
}
@keyframes hn-price-land { from { opacity: 0; transform: translateY(-60px); } }
@keyframes hn-price-thud { from { opacity: 0; transform: translateX(-50%) scale(0.4); } }

@media (max-width: 1000px) {
  .hn-hero--price .hn-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hn-price { margin-top: 12px; }
  .hn-price-scene { height: 440px; }
}
@media (max-width: 640px) {
  .hn-hero.hn-hero--price { padding: 112px 0 72px; }
  .hn-price-scene { --b-w: 148px; --w-w: 150px; height: 330px; padding-bottom: 30px; }
  .hn-price-scene::after { bottom: 30px; }
  .hn-price-float { bottom: 58px; }
  .hn-price-shadow { bottom: -5px; height: 10px; }
  .hn-price-label { font-size: 10.5px; bottom: -26px; }
}

@media (prefers-reduced-motion: reduce) {
  .hn-price-float, .hn-price-drop, .hn-price-shadow { animation: none; }
}

/* The pricing section (pages/home/_pricing): one large, still 5% balloon,
   and beside it the one condition on the price — only a win is charged. */
.hn-deal {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(28px, 5vw, 80px); padding: clamp(8px, 2vw, 24px) 0 clamp(40px, 5vw, 72px);
}
.hn-deal-balloon { width: 100%; max-width: 480px; height: auto; justify-self: center; }
.hn-deal-text { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.hn-deal-text .hn-eyebrow { margin: 0; }
.hn-deal-title {
  font-family: var(--hn-display); font-weight: 400; font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1; letter-spacing: -0.03em;
}
.hn-deal-title em { display: block; color: var(--hn-green); }
.hn-deal-points { display: grid; gap: 14px; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.35; color: var(--hn-ink); }
.hn-deal-points li::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--hn-green); margin-right: 14px; vertical-align: 4px;
}
@media (max-width: 1000px) {
  .hn-deal { grid-template-columns: minmax(0, 1fr); }
  .hn-deal-balloon { max-width: 340px; }
}

