/* round 4 (offer agent): order pages + one-time-offer upsells. Layout only, every word stays.
   Markup hooks come from _work/convert/r4_offer.py: .oto-hero, .oto-steps, .oto-pill, .oto-body, .oto-sheet,
   .comp-card--split/.comp-media/.comp-body, .oto-feature, .oto-offer, .oto-guar, .oto-checkout, .offer-card--alt */

/* =================== UPSELLS: hero band =================== */
.fam-order .oto-hero{position:relative;z-index:1;overflow:hidden;text-align:center;color:#fff;padding:46px 0 96px;
  background:radial-gradient(900px 420px at 50% -8%,rgba(255,120,110,.35),transparent 70%),
             radial-gradient(700px 380px at 100% 100%,rgba(0,0,0,.28),transparent 70%),
             linear-gradient(160deg,#b0222a 0,#8a1217 45%,#5b0a0e 100%);
  border-radius:0 0 50% 50% / 0 0 56px 56px}
.fam-order .oto-hero::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.07;
  background:repeating-linear-gradient(135deg,#fff 0 2px,transparent 2px 22px)}
.fam-order .oto-hero>.wrap{max-width:1040px;position:relative}
.fam-order .oto-hero .oto-hero__steps .fig{display:none!important}

/* drawn step tracker: the same three steps the old progress picture showed */
.oto-steps{list-style:none;margin:0 auto 38px;padding:0;display:flex;max-width:660px;counter-reset:oto}
.oto-steps li{flex:1 1 0;min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;counter-increment:oto}
.oto-steps li::before{content:counter(oto);position:relative;z-index:1;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;
  font:800 19px/1 var(--f-head);color:#fff;background:rgba(255,255,255,.10);border:2px solid rgba(255,255,255,.55)}
.oto-steps li.is-done::before{content:"\2713";background:#fff;color:var(--red);border-color:#fff}
.oto-steps li.is-on::before{background:var(--yellow);color:#3b2a00;border-color:var(--yellow);box-shadow:0 0 0 7px rgba(255,210,0,.22)}
.oto-steps li:not(:last-child)::after{content:"";position:absolute;top:23px;left:calc(50% + 32px);right:calc(-50% + 32px);height:3px;border-radius:3px;background:rgba(255,255,255,.35)}
.oto-steps li.is-done::after{background:#fff}
.oto-steps span{font:700 16px/1.25 var(--f-head);letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.8);text-wrap:balance}
.oto-steps li.is-on span{color:#fff}
.oto-steps li:nth-child(1) span::before{content:"Checkout"}
.oto-steps li:nth-child(2) span::before{content:"Customize Your Order"}
.oto-steps li:nth-child(3) span::before{content:"Instant Access"}

.oto-hero__text{max-width:940px;margin:0 auto}
.fam-order .oto-hero .t-h1{color:#fff;font-size:clamp(32px,4.6vw,54px);line-height:1.12;margin:0 auto .45em;text-shadow:0 3px 24px rgba(0,0,0,.25);letter-spacing:-.01em}
.fam-order .oto-hero .t-h2{color:#fff;font-size:clamp(22px,2.5vw,30px);line-height:1.3;margin:.7em auto .2em;max-width:880px}
.fam-order .oto-hero .t-h2 u{text-decoration-color:var(--yellow);text-decoration-thickness:3px;text-underline-offset:5px}
.fam-order .oto-hero p,.fam-order .oto-hero .prose p{color:rgba(255,255,255,.9)!important;font-size:19px;line-height:1.6;max-width:760px;margin:0 auto .7em;text-align:center!important}
.fam-order .oto-hero .t-h2.oto-pill{display:block;width:fit-content;max-width:100%;margin:26px auto 0;background:var(--yellow);color:#2b1d00;
  padding:14px 30px;border-radius:999px;box-shadow:0 12px 30px rgba(0,0,0,.25);font-size:clamp(22px,2.4vw,28px)}
.fam-order .oto-hero .t-h2.oto-pill br{display:none}
.fam-order .oto-hero p.hl{display:block;width:fit-content;max-width:100%;margin:0 auto 22px;padding:12px 26px;border-radius:999px;
  background:rgba(0,0,0,.22);border:2px solid var(--yellow);color:var(--yellow)!important;font-size:20px}
.fam-order .oto-hero p.hl br{display:none}
.fam-order .oto-hero .prose+.t-h1{margin-top:.6em}

/* =================== UPSELLS: offer body =================== */
.fam-order .oto-body{background:#f7f1e8;margin-top:-56px;padding:120px 0 46px;overflow-x:clip;border-top:0!important}
.fam-order .oto-body>.wrap{max-width:1180px}
.fam-order .offer-sheet.oto-sheet{background:none;box-shadow:none;border-radius:0;padding:0;overflow:visible;text-align:left;color:#2b2b2b}
.oto-sheet>*,.oto-sheet>.steps>*{max-width:820px;margin-left:auto;margin-right:auto}
.fam-order .oto-sheet>.steps{max-width:none;display:block}
.oto-sheet .t-h2{color:var(--red);font-size:clamp(26px,3vw,38px);line-height:1.22;text-align:center;margin:1.4em auto .6em}
.oto-sheet>.t-h2:first-child,.oto-sheet>.steps>.t-h2:first-child{margin-top:0}
.oto-sheet .t-h3{text-align:center}
.oto-sheet .t-h4{color:#1f1f1f}
.oto-sheet .prose p,.oto-sheet .prose li,.oto-sheet>.steps>div:not([class]),.oto-sheet>.steps>p,.oto-sheet .steps>p{font-size:18px;line-height:1.65;text-align:left!important;color:#2b2b2b}
.oto-sheet>.steps>div:not([class]){margin-bottom:1.1em}
.oto-sheet a{color:var(--red)}

/* Judd's welcome letter: a white letter card with his round photo */
.oto-sheet>.prose:has(img[src*="judd.png"]){background:#fff;border-radius:28px;padding:44px 52px;box-shadow:0 20px 60px rgba(60,20,10,.08);max-width:900px}
.oto-sheet .prose>p:has(>img[src*="judd.png"]){float:left;margin:4px 30px 14px 0}
.oto-sheet .prose>p:has(>img[src*="judd.png"]) img{width:190px;height:auto;border-radius:50%;border:6px solid #fff;box-shadow:0 0 0 3px var(--red),0 14px 30px rgba(0,0,0,.15)}

/* exclusiveoffer1 product feature: wide white band, title beside a big picture */
.fam-order .oto-sheet>.oto-feature{max-width:none;margin:56px calc(50% - 50vw);padding:56px max(20px,calc(50vw - 560px));background:#fff;
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:56px;align-items:center;box-shadow:0 1px 0 #eadfce,0 -1px 0 #eadfce}
.oto-feature .t-h2{text-align:left;font-size:clamp(30px,3.6vw,46px);line-height:1.15;margin:0}
.oto-feature .t-h2::before{content:"";display:block;width:64px;height:6px;border-radius:6px;background:var(--yellow);margin-bottom:22px}
.oto-feature .fig{margin:0}
.oto-feature .fig img{width:100%;max-width:560px;height:auto}

/* component cards: picture panel + words, alternating sides */
.fam-order .oto-sheet .comp-card,.fam-order .oto-sheet>.steps>.comp-card{max-width:1100px;background:#fff;border:0;border-radius:28px;
  box-shadow:0 18px 50px rgba(60,20,10,.08);margin:30px auto;padding:40px 48px}
.fam-order .oto-sheet .comp-card--split{display:grid;grid-template-columns:400px minmax(0,1fr);padding:0;overflow:hidden}
.fam-order .oto-sheet .comp-card--split:nth-child(even of .comp-card--split){grid-template-columns:minmax(0,1fr) 400px}
.fam-order .oto-sheet .comp-card--split:nth-child(even of .comp-card--split)>.comp-media{order:2}
.fam-order .oto-sheet .comp-card--split::after{display:none}
.comp-media{display:flex;align-items:flex-start;justify-content:center;padding:48px 34px;
  background:radial-gradient(circle at 50% 40%,#fff 0,#fbeee4 55%,#f2dccd 100%)}
.comp-media img{position:sticky;top:110px;display:block;max-width:100%;max-height:380px;width:auto;height:auto;filter:drop-shadow(0 16px 22px rgba(60,20,10,.18))}
.comp-body{padding:40px 46px 34px;min-width:0}
.fam-order .oto-sheet .comp-pill{display:inline-block;background:var(--red);color:#fff;font:800 16px/1 var(--f-head);letter-spacing:.08em;text-transform:uppercase;
  padding:10px 18px;border-radius:999px;margin:0 0 16px;text-align:left}
.fam-order .oto-sheet .comp-card>.t-h4,.comp-body>.t-h4{font-size:clamp(23px,2.4vw,30px);line-height:1.22;margin:0 0 .7em;text-align:left;color:#1f1f1f}
.comp-body .prose>*:last-child{margin-bottom:0}
.fam-order .oto-sheet .comp-card .comp-title{text-align:left;margin:0 0 .25em}
.oto-sheet>.steps>.cols{max-width:1000px}

/* value table */
.oto-sheet>.code,.oto-sheet>.steps>.code{max-width:880px}
.oto-sheet .upsell-table{background:#fff;box-shadow:0 14px 40px rgba(60,20,10,.07)}

/* =================== full-width offer band =================== */
.fam-order .oto-sheet .offer-pricebox.oto-offer{max-width:none;margin:60px calc(50% - 50vw) 0;border:0;border-radius:0;box-shadow:none;color:#fff;text-align:center;
  padding:66px max(18px,calc(50vw - 440px)) 72px;
  background:radial-gradient(800px 360px at 50% 0,rgba(255,120,110,.30),transparent 70%),linear-gradient(165deg,#a51d23 0,#7d0f13 50%,#5b0a0e 100%)}
.oto-offer>*{max-width:800px;margin-left:auto;margin-right:auto}
.fam-order .oto-offer .prose p{color:rgba(255,255,255,.92)!important;text-align:center!important;font-size:19px}
.fam-order .oto-offer>.prose:first-child p{font:700 18px/1.4 var(--f-head);letter-spacing:.04em;text-transform:uppercase}
.fam-order .oto-offer>.t-h2{color:#fff;font-size:clamp(28px,3.6vw,44px);line-height:1.2;margin:.3em auto .4em}
.fam-order .oto-offer>.t-h2 strike{color:rgba(255,255,255,.65)}
.fam-order .oto-offer>.t-h2 .hl{color:var(--yellow);font-size:1.3em}
.fam-order .oto-offer>.fig img{max-width:min(100%,440px);height:auto;filter:drop-shadow(0 18px 26px rgba(0,0,0,.3))}
.oto-guar{display:grid;grid-template-columns:140px minmax(0,1fr);gap:26px;align-items:center;text-align:left;max-width:780px;margin:30px auto;
  padding:26px 30px;border-radius:24px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.28)}
.oto-guar .fig{margin:0}
.fam-order .oto-guar .fig img{width:140px;height:auto;max-width:none}
.fam-order .oto-guar .prose p{text-align:left!important;font-size:18px;margin:0 0 .55em}
.fam-order .oto-guar .prose p:first-child{font:800 22px/1.3 var(--f-head);color:var(--yellow)!important}
.fam-order .oto-guar .prose p:last-child{margin:0}
.oto-checkout{background:#fff;color:#2b2b2b;border-radius:28px;max-width:640px;margin:34px auto 0;padding:34px 34px 28px;box-shadow:0 26px 60px rgba(0,0,0,.30)}
.fam-order .oto-checkout .t-h2{color:var(--red);font-size:clamp(24px,2.6vw,30px);margin:0 0 14px}
.fam-order .oto-checkout .block-link{margin:0 auto}
.fam-order .oto-checkout .block-link img{width:100%;max-width:444px;height:auto}
.fam-order .oto-checkout>p{font-size:16px;color:#555;margin:12px 0 6px}
.fam-order .oto-checkout .prose p{color:#555!important;font-size:16px;margin:8px 0 0}
.fam-order .oto-checkout .prose a{color:#666}
.fam-order .oto-sheet .oto-offer+.prose,.fam-order .oto-sheet>.steps>.oto-offer+.prose{margin-top:34px}
.fam-order .oto-sheet .oto-offer+.prose p{text-align:center!important;font-size:17px}
.fam-order .oto-body+.band--white{background:#f7f1e8;border-top:1px solid #eadfce!important;padding-top:40px}

/* =================== UPSELLS: phone =================== */
@media(max-width:820px){
  .fam-order .oto-sheet>.oto-feature{grid-template-columns:1fr;gap:24px;padding:40px 20px}
  .fam-order .oto-sheet .comp-card--split,.fam-order .oto-sheet .comp-card--split:nth-child(even of .comp-card--split){grid-template-columns:1fr}
  .fam-order .oto-sheet .comp-card--split:nth-child(even of .comp-card--split)>.comp-media{order:0}
  .comp-media{padding:26px 20px;align-items:center}
  .comp-media img{position:static}
  .comp-media img{max-height:250px}
}
@media(max-width:600px){
  .fam-order .oto-hero{padding:28px 0 64px;border-radius:0 0 50% 50% / 0 0 28px 28px}
  .fam-order .oto-hero>.wrap,.fam-order .oto-body>.wrap{padding:0 14px}
  .oto-steps{margin-bottom:26px}
  .oto-steps li::before{width:40px;height:40px;font-size:17px}
  .oto-steps li:not(:last-child)::after{top:20px;left:calc(50% + 28px);right:calc(-50% + 28px)}
  .oto-steps span{letter-spacing:0;text-transform:none;font-size:16px}
  .fam-order .oto-hero p,.fam-order .oto-hero .prose p{font-size:17px}
  .fam-order .oto-hero .t-h2.oto-pill{padding:12px 22px}
  .fam-order .oto-hero p.hl{font-size:18px;border-radius:20px;padding:10px 18px}
  .fam-order .oto-body{margin-top:-28px;padding:68px 0 30px}
  .oto-sheet .prose p,.oto-sheet .prose li,.oto-sheet>.steps>div:not([class]),.oto-sheet>.steps>p,.oto-sheet .steps>p{font-size:17px}
  .oto-sheet>.prose:has(img[src*="judd.png"]){padding:26px 20px;border-radius:22px}
  .oto-sheet .prose>p:has(>img[src*="judd.png"]){margin:4px 16px 8px 0}
  .oto-sheet .prose>p:has(>img[src*="judd.png"]) img{width:112px;border-width:4px}
  .fam-order .oto-sheet .comp-card,.fam-order .oto-sheet>.steps>.comp-card{padding:26px 18px;border-radius:22px;margin:22px auto}
  .fam-order .oto-sheet .comp-card--split{padding:0}
  .comp-body{padding:24px 18px 22px}
  .fam-order .oto-sheet .offer-pricebox.oto-offer{padding:44px 14px 48px;margin-top:44px}
  .oto-guar{grid-template-columns:1fr;justify-items:center;text-align:center;padding:22px 18px;gap:14px}
  .fam-order .oto-guar .fig img{width:120px}
  .fam-order .oto-guar .prose p{text-align:center!important;font-size:17px}
  .oto-checkout{padding:24px 16px 20px;border-radius:22px}
}

/* =================== ORDER PAGES (/neworder/, /neworder2/) =================== */
@media(min-width:900px){
  .fam-order .band--white>.wrap:has(>.offer-card){max-width:1120px;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:stretch}
  .fam-order .offer-card,.fam-order .offer-card:not(.offer-card--best){margin-top:26px}
  /* Option 1: picture beside its list, so the card is shorter */
  .fam-order .offer-card--best .cols{display:grid;grid-template-columns:200px minmax(0,1fr);gap:26px;align-items:center}
  .fam-order .offer-card--best .cols .fig{margin:0;max-width:none}
  .fam-order .offer-card--best .cols .fig img{width:100%;height:auto}
  /* Option 2: same height, its price + button sit at the foot, level with Option 1's */
  .fam-order .offer-card--alt{display:flex;flex-direction:column}
  .fam-order .offer-card--alt .cols{margin:26px 0 10px}
  .fam-order .offer-card--alt .cols .fig{max-width:380px}
  .fam-order .offer-card--alt>.t-h4{margin-top:auto;border-top:0;padding:22px 20px;border-radius:18px;background:#fff6d6;font-size:clamp(24px,2.4vw,28px)}
  .fam-order .offer-card--alt>.btn-wrap:last-of-type{margin-top:18px}
}
/* phone: step bar labels stay on one line; guarantee seal sits above its words */
@media(max-width:600px){
  .fam-order .order-progress{flex:1 1 auto;white-space:nowrap;letter-spacing:0;padding:8px 6px}
  .fam-order .order-progress>div:last-child{white-space:nowrap}
  .fam-order .offer-guarantee{grid-template-columns:1fr;justify-items:center;text-align:center;padding:26px 20px;row-gap:12px}
  .fam-order .offer-guarantee>.fig{grid-column:1;grid-row:auto}
  .fam-order .offer-guarantee>.fig img{width:130px}
  .fam-order .offer-guarantee>.t-h3{grid-column:1;text-align:center}
  .fam-order .offer-guarantee>.prose{grid-column:1;margin-top:0}
  .fam-order .offer-guarantee>.prose p{text-align:center}
}
/* price box that holds only the checkout card (specialoffer2): no extra gap above the card */
.oto-offer>.oto-checkout:first-child{margin-top:0}
/* stray decorative icon after the warning line sits centred, not stranded at the left */
.fam-order .oto-sheet>.ic{display:block;width:28px;margin:6px auto 0;color:#c1272d}

/* r5: the saving line is a ribbon, not a button (review r5: it looked clickable) */
.fam-order .oto-hero .t-h2.oto-pill{background:none;color:var(--yellow);box-shadow:none;border-radius:0;padding:10px 8px;
  border-top:2px solid rgba(255,214,0,.75);border-bottom:2px solid rgba(255,214,0,.75);cursor:default}
