/* The TV ad spot (and its look on the comparison page). Everything is sized in cqi, 1% of the ad's own width,
   so it looks the same at 1920 wide on the TV, in the small preview, and on ads-compare.html.
   Fonts and colors are the TV's own: --display, --body, --ivory, --deal, --mist. */
:root {
  --ivory: #faf8f4; --ink: #1c1c2e; --deal: #e9c48f; --mist: rgba(250,248,244,.72);
  --display: 'Cormorant Garamond', Georgia, serif; --body: 'Outfit', system-ui, sans-serif;
}

/* Ken Burns for photos (channel photo slides and ads). The animation length is set per slide. */
.kbp { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; will-change: transform, opacity; animation-timing-function: linear; animation-fill-mode: forwards; }
.kbp.on { opacity: 1; }
.kbp.kb0 { animation-name: kb0; } .kbp.kb1 { animation-name: kb1; } .kbp.kb2 { animation-name: kb2; }
@keyframes kb0 { from { transform: scale(1.02); } to { transform: scale(1.13) translate(-1.6%, -1%); } }
@keyframes kb1 { from { transform: scale(1.13) translate(1.6%, 1%); } to { transform: scale(1.02); } }
@keyframes kb2 { from { transform: scale(1.06) translate(1.6%, 0); } to { transform: scale(1.13) translate(-1.6%, 0); } }

.adv { position: absolute; inset: 0; overflow: hidden; container-type: inline-size; color: var(--ivory); font-family: var(--body); font-weight: 300;
  background: radial-gradient(120% 130% at 0% 0%, var(--ac, #3a2a1f) 0%, #0b1024 72%); }
.adv * { box-sizing: border-box; }
.adv-bg { position: absolute; inset: 0; overflow: hidden; }
.adv-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,10,24,.94) 0%, rgba(6,10,24,.84) 30%, rgba(6,10,24,.42) 58%, rgba(6,10,24,.04) 82%),
              linear-gradient(0deg, rgba(6,10,24,.6) 0%, rgba(6,10,24,0) 30%),
              linear-gradient(180deg, rgba(6,10,24,.5) 0%, rgba(6,10,24,0) 22%); }
/* text only: the brand color carries it. Soft rings and a light sweep stand in for a photo. */
.adv.plain .adv-shade { background: linear-gradient(0deg, rgba(6,10,24,.5) 0%, rgba(6,10,24,0) 40%); }
.adv.plain::before { content: ""; position: absolute; right: -16cqi; top: 50%; width: 78cqi; height: 78cqi; transform: translateY(-50%); border-radius: 50%;
  border: .12cqi solid rgba(250,248,244,.14); box-shadow: 0 0 0 5cqi rgba(250,248,244,.035), 0 0 0 11cqi rgba(250,248,244,.025), inset 0 0 0 5cqi rgba(250,248,244,.03); }
.adv.plain::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(250,248,244,0) 40%, rgba(250,248,244,.07) 52%, rgba(250,248,244,0) 64%); }

.adv-logo { position: absolute; left: 5cqi; top: 4.5cqi; height: 6.4cqi; padding: .9cqi 1.5cqi; border-radius: 1cqi; background: rgba(250,248,244,.95); display: flex; align-items: center; box-shadow: 0 .6cqi 2cqi rgba(0,0,0,.3); }
.adv-logo img { height: 100%; width: auto; max-width: 17cqi; object-fit: contain; display: block; }

.adv-tag { position: absolute; top: 4.5cqi; right: 5cqi; display: flex; align-items: center; gap: 1cqi; padding: .55cqi 1.5cqi .55cqi .7cqi; border-radius: 99px; background: rgba(6,10,24,.62); border: .1cqi solid rgba(250,248,244,.22);
  font-size: 1.3cqi; line-height: 1; letter-spacing: .06em; color: var(--mist); font-variant-numeric: tabular-nums; }
.adv-tag i { font-style: normal; font-weight: 600; font-size: 1.15cqi; letter-spacing: .16em; text-transform: uppercase; color: #0b1024; background: var(--deal); padding: .5cqi .9cqi; border-radius: 99px; }
.adv-tag b { font-weight: 500; color: var(--ivory); }

.adv-copy { position: absolute; left: 5cqi; bottom: 6.5cqi; width: 50cqi; }
.adv-eb { display: flex; align-items: center; gap: 1.2cqi; font-size: 1.45cqi; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--deal); }
.adv-eb::before { content: ""; width: 4cqi; height: .14cqi; background: var(--deal); opacity: .85; }
.adv-copy h3 { font-family: var(--display); font-weight: 500; font-size: 7.6cqi; line-height: .98; margin: 1.5cqi 0 1.8cqi; letter-spacing: -.005em; text-shadow: 0 .3cqi 2cqi rgba(0,0,0,.35); }
.adv-copy.long h3 { font-size: 5.8cqi; line-height: 1.02; }
.adv-copy.xlong h3 { font-size: 4.7cqi; line-height: 1.04; }
.adv-copy p { margin: 0; font-size: 2.55cqi; line-height: 1.32; color: rgba(250,248,244,.9); max-width: 40cqi; }
.adv-copy .deal { display: inline-block; margin-top: 2.2cqi; font-size: 2.1cqi; font-weight: 500; color: var(--deal); padding: .9cqi 1.6cqi; border: .12cqi solid rgba(233,196,143,.6); border-radius: .8cqi; background: rgba(233,196,143,.1); }
.adv.plain .adv-copy { bottom: auto; top: 50%; transform: translateY(-46%); }
.adv.plain .adv-copy h3 { font-size: 8.6cqi; }
.adv.plain .adv-copy.long h3 { font-size: 6.4cqi; } .adv.plain .adv-copy.xlong h3 { font-size: 5.2cqi; }

/* the call to action: a big button and the scan code together, on a frosted card */
.adv-act { position: absolute; right: 5cqi; bottom: 5.5cqi; display: flex; align-items: center; gap: 2.2cqi; padding: 1.6cqi 2.6cqi 1.6cqi 1.6cqi; border-radius: 2cqi;
  background: rgba(10,14,30,.78); border: .1cqi solid rgba(250,248,244,.18); box-shadow: 0 1.2cqi 4cqi rgba(0,0,0,.45); }
.adv-qrbox { width: 12.5cqi; height: 12.5cqi; padding: 1cqi; border-radius: 1.2cqi; background: var(--ivory); flex: none; }
.adv-qrbox svg { width: 100%; height: 100%; display: block; }
.adv-actx { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2cqi; max-width: 24cqi; }
.adv-btn { display: inline-block; font-weight: 600; font-size: 2.7cqi; line-height: 1; letter-spacing: .01em; color: #1a1206; background: var(--deal); padding: 1.5cqi 2.6cqi; border-radius: 99px;
  box-shadow: 0 .5cqi 1.6cqi rgba(233,196,143,.35); white-space: nowrap; animation: advPulse 2.4s ease-in-out infinite; }
.adv-actx span { font-size: 1.55cqi; line-height: 1.3; color: var(--mist); }
@keyframes advPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); box-shadow: 0 .6cqi 2.4cqi rgba(233,196,143,.55); } }
@media (prefers-reduced-motion: reduce) { .adv-btn { animation: none; } }

/* shown instead of an ad when its picture is missing (comparison page only) */
.adv-missing { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(135deg, #10172e 0 2cqi, #0d1428 2cqi 4cqi); color: var(--mist); font-family: var(--body); }
.adv-missing b { display: block; font-size: 3cqi; font-weight: 500; color: var(--ivory); margin-bottom: 1cqi; }
.adv-missing span { font-size: 1.8cqi; }
