/* Hero: a back-page mail-order ad, printed in a magazine and torn out, lying on the desk.
   From brand/mockups/hero-coupon.html (Hero 5). Everything is scoped to .doc-hero. */
.doc-hero {
  --paper: #e2e0d4; --ink: #1c1c1a; --accent: #8a63d2; --accent-ink: #5d43d6; --burst-ink: #ecebe2; --tick: #3d4256;
  --mast-font: 500 12px/1 "Oswald", sans-serif;
  --body-font: 400 clamp(15px, 1.55vw, 17px)/1.35 "Arvo", serif;
  --small-font: 400 13.5px/1.45 "Arvo", serif; --fine-font: 400 12px/1.5 "Arvo", serif;
  background: #cfcdc2 radial-gradient(120% 90% at 30% 20%, #d9d7cc, #bfbdb1); padding: 48px 16px 70px;
}
.doc-hero .hero { max-width: 1160px; margin: 0 auto; position: relative; transform: rotate(-.5deg);
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / .08)) drop-shadow(8px 14px 18px rgb(0 0 0 / .25)); }
.doc-hero .page { position: relative; clip-path: var(--torn, none); }
.doc-hero .paper { position: absolute; inset: 0; background:
    linear-gradient(180deg, rgb(255 255 255 / 0) 41.6%, rgb(255 255 255 / .5) 42%, rgb(70 60 40 / .16) 42.3%, rgb(70 60 40 / 0) 43.5%), /* a fold */
    linear-gradient(90deg, rgb(255 255 255 / .25), rgb(255 255 255 / 0) 30%, rgb(80 70 45 / .08)),          /* uneven light */
    var(--paper); }
.doc-hero .paper svg { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
/* the next page's print showing through */
.doc-hero .show { position: absolute; inset: 60px 70px; transform: scaleX(-1); opacity: .035; filter: blur(.6px); pointer-events: none; user-select: none; overflow: hidden;
  font: 600 14px/2 "Libre Franklin", sans-serif; color: #000; columns: 3; column-gap: 40px; }
.doc-hero .rule { position: absolute; inset: 18px; border: 2.5px solid var(--ink); pointer-events: none; }
.doc-hero .rule::before { content: ""; position: absolute; inset: 5px; border: 1.2px solid var(--ink); }
.doc-hero .print { position: relative; filter: url(#ink-black); padding: clamp(30px, 4.6vw, 54px) clamp(30px, 5.5vw, 68px) clamp(26px, 3.6vw, 40px); }
@media (prefers-contrast: more) { .doc-hero .print { filter: none; } }

.doc-hero .mast { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; margin-bottom: clamp(16px, 2.6vw, 26px); border-bottom: 1.5px solid var(--ink);
  font: var(--mast-font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.doc-hero .mast img { height: 22px; display: block; }

/* the "amazing offer" copy */
.doc-hero .top { display: flex; gap: 30px; align-items: center; justify-content: space-between; }
.doc-hero .q { margin: 0 0 12px; font: italic 700 clamp(19px, 2.4vw, 28px)/1.15 "Arvo", serif; color: var(--ink); }
.doc-hero h1 { margin: 0; color: var(--ink); font: 600 clamp(50px, 7.6vw, 94px)/1 "Oswald", sans-serif; letter-spacing: .005em; text-transform: uppercase; }
.doc-hero h1 u { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .075em; text-underline-offset: .06em; text-decoration-skip-ink: none; }
.doc-hero .kick { margin: 12px 0 0; font: italic 700 clamp(17px, 2vw, 22px)/1.2 "Arvo", serif; color: var(--ink); }
.doc-hero .gap { height: 22px; border-bottom: 1.5px solid var(--ink); margin-bottom: 18px; }

.doc-hero .burst { position: relative; width: min(260px, 32%); aspect-ratio: 1; flex: none; }
.doc-hero .burst svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.doc-hero .burst polygon { fill: var(--accent); }
.doc-hero .burst div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--burst-ink); transform: rotate(-8deg); }
.doc-hero .burst .only, .doc-hero .burst .per { font: 500 clamp(14px, 2vw, 21px)/1 "Oswald", sans-serif; letter-spacing: .12em; }
.doc-hero .burst .per { letter-spacing: .16em; }
.doc-hero .burst .price { font: 700 clamp(58px, 7.6vw, 92px)/.95 "Oswald", sans-serif; }
.doc-hero .burst .price sup { font-size: .48em; vertical-align: .9em; }

.doc-hero .row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 34px; align-items: start; color: var(--ink); }
.doc-hero .how h2 { margin: 0 0 8px; font: 600 15px/1 "Oswald", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.doc-hero .how ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; font: 400 15px/1.4 "Arvo", serif; }
.doc-hero .how code { font: 700 .92em/1 "JetBrains Mono", monospace; }
.doc-hero .guar { margin-top: 14px; border: 2px solid var(--ink); padding: 10px 12px; font: 400 14px/1.45 "Arvo", serif; }
.doc-hero .guar b { display: block; margin-bottom: 4px; font: 600 14px/1 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; }

/* the coupon */
.doc-hero .coupon { width: 100%; border: 2px dashed var(--ink); padding: 14px 18px; color: var(--ink); position: relative; }
.doc-hero .coupon::before { content: "✂"; position: absolute; top: -13px; left: 18px; font-size: 20px; line-height: 1; padding: 0 4px; text-shadow: 0 0 0 var(--paper); }
.doc-hero .coupon h2 { margin: 0 0 10px; font: 500 16px/1.2 "Oswald", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.doc-hero .coupon .to { margin: -4px 0 10px; font: var(--small-font); }
.doc-hero .cmd { display: block; width: 100%; box-sizing: border-box; background: rgb(28 28 26 / .92); color: var(--paper); padding: 10px 12px; font: 700 13px/1.45 "JetBrains Mono", monospace; word-break: break-all; }
.doc-hero .cmd .hint { display: block; margin-top: 6px; font-weight: 500; font-size: 11px; opacity: .7; word-break: normal; }
.doc-hero .yes { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font: var(--small-font); }
/* printed box, already ticked in pencil */
.doc-hero .yes .box { flex: none; width: 18px; height: 18px; margin-top: 1px; border: 2px solid var(--ink); display: grid; place-items: center; }
.doc-hero .yes .box::after { content: "✓"; font: 900 16px/1 sans-serif; color: var(--tick); transform: translate(1px, -2px) rotate(-6deg); }

/* Hovering the coupon tints it, and the command strip says what a click does: the label sits on the
   dark strip, where ink text couldn't be read. A click anywhere on the coupon copies. */
.doc-hero .coupon { cursor: copy; }
.doc-hero .cmd { position: relative; }
.doc-hero .cmd-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 12px; opacity: 0; transition: opacity .15s;
  font: 600 clamp(15px, 1.8vw, 19px)/1.1 "Oswald", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.doc-hero .copy-over { all: unset; box-sizing: border-box; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: rgb(28 28 26 / .10); opacity: 0; transition: opacity .15s; }
.doc-hero .coupon:is(:hover, :has(.copy-over:focus-visible)) .copy-over,
.doc-hero .coupon:is(:hover, :has(.copy-over:focus-visible)) .cmd-label { opacity: 1; }
.doc-hero .coupon:is(:hover, :has(.copy-over:focus-visible)) .cmd { color: transparent; }
.doc-hero .coupon:is(:hover, :has(.copy-over:focus-visible)) .cmd-label { color: var(--paper); }
.doc-hero .coupon:has(.copy-over:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 4px; }


.doc-hero .foot { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: clamp(18px, 3vw, 28px); padding-top: 12px; border-top: 1px solid var(--ink); color: var(--ink); }
.doc-hero .fine { margin: 0; max-width: 78ch; font: var(--fine-font); }
.doc-hero .pg { font: var(--mast-font); letter-spacing: .1em; white-space: nowrap; }

/* the coupon cut out of the page: you see the desk through the hole */
.doc-hero .coupon.gone { visibility: hidden; }
.doc-hero .hole { position: absolute; z-index: 4;
  background: #b4b2a6 radial-gradient(120% 90% at 30% 20%, #c4c2b6, #a5a396);
  box-shadow: inset 0 6px 9px -2px rgb(0 0 0 / .5), inset 5px 0 7px -3px rgb(0 0 0 / .3), inset -2px -2px 3px rgb(255 255 255 / .25); }
.doc-hero .hole::before { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1.5px rgb(250 248 238 / .75); filter: blur(.4px); }   /* the cut paper edge */

@media (max-width: 760px) {
  .doc-hero .hero { transform: none; }
  .doc-hero .show { display: none; }
  .doc-hero .mast .issue { display: none; }
  .doc-hero .top { flex-direction: column; align-items: flex-start; }
  .doc-hero .burst { width: 190px; }
  .doc-hero .row { grid-template-columns: 1fr; }
  .doc-hero .foot { flex-direction: column; align-items: flex-start; }
}
