/* Lucid Motion Studio - Smooche case study, English page only (see js/case-offer.js).
   .co-shop: the line for shoppers under the film. .co: the New Year offer. */
.co-shop { margin-top: 18px; text-align: center; font-size: .95rem; color: var(--muted); }
.co-shop .cs-link { display: inline-block; white-space: nowrap; }

.co { --gold: #f4d58d; position: fixed; z-index: 1000; visibility: hidden; transition: visibility 0s linear .3s; }
.co.is-in { visibility: visible; transition-delay: 0s; }
.co-panel { position: relative; background: #0b1420; border: 1px solid rgba(244, 213, 141, .34); color: var(--text); box-shadow: 0 30px 90px rgba(0, 0, 0, .65); outline: none; }
.co-title { text-wrap: balance; }
.co-body { color: var(--muted); }
.co-was { color: var(--muted); }
.co-was s { color: var(--text); text-decoration: line-through; text-decoration-color: #ff8a8a; text-decoration-thickness: 1.5px; }
.co-price b { font-family: var(--font-head); font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: linear-gradient(170deg, #fff6dc 8%, var(--gold) 52%, #d9a94a 96%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.co-until b { color: var(--text); font-weight: 600; white-space: nowrap; }
.co-until span { color: var(--gold); font-weight: 600; white-space: nowrap; }
.co-until i { display: inline-block; width: 4px; height: 4px; margin: 0 8px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.co-close { position: absolute; z-index: 2; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: color .2s; }
.co-no { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 .95rem var(--font-body); cursor: pointer; transition: color .2s; }
.co-close:hover, .co-no:hover { color: var(--text); }
.co :is(.co-close, .co-no, .co-main):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Desktop: a wide dialog, what you get on the left and the price on the right */
.co-modal { inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(4, 8, 13, .8); opacity: 0; transition: opacity .25s ease, visibility 0s linear .3s; }
.co-modal.is-in { opacity: 1; }
.co-modal .co-panel { display: grid; grid-template-columns: 1.08fr 1fr; width: 100%; max-width: 940px; overflow: hidden; border-radius: 22px; transform: translateY(16px) scale(.985); transition: transform .35s cubic-bezier(.2, .8, .3, 1); }
.co-modal.is-in .co-panel { transform: none; }
.co-main-col { display: flex; flex-direction: column; justify-content: center; padding: 44px 40px 40px 44px; }
.co-tag { color: var(--gold); font-weight: 600; font-size: .92rem; }
.co-modal .co-title { margin-top: 12px; font-size: 3rem; line-height: 1.08; }
.co-modal .co-title span { white-space: nowrap; color: var(--gold); }
.co-modal .co-body { margin-top: 18px; font-size: 1.08rem; line-height: 1.55; }
.co-list { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 13px 18px; margin-top: 28px; padding: 0; list-style: none; font-size: 1rem; line-height: 1.3; }
.co-list li { position: relative; padding-left: 26px; white-space: nowrap; }
.co-list li::before { content: ""; position: absolute; left: 3px; top: .12em; width: 6px; height: 11px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(42deg); }
.co-small { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; line-height: 1.45; color: var(--muted); }

.co-side { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 142px 34px 18px; text-align: center; background: radial-gradient(120% 70% at 50% 42%, rgba(244, 213, 141, .16), transparent 62%), linear-gradient(180deg, #0d2233, #0a1724 60%, #0b1a27); border-left: 1px solid rgba(244, 213, 141, .18); }
.co-side > * { position: relative; }
.co-side .co-sky { position: absolute; inset: 0 0 auto; width: 100%; height: 250px; }
.co-sky g[stroke] { stroke-width: 1.15; stroke-linecap: round; }
.co-sky circle { stroke: none; }
.co-modal.is-in .co-burst { animation: co-burst 1.1s cubic-bezier(.12, .8, .3, 1) both; }
@keyframes co-burst { from { transform: scale(.05); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: .9; } }
.co-side .co-was { font-size: 1rem; }
.co-side .co-was s { font-weight: 500; font-size: 1.16rem; }
.co-side .co-price { display: grid; justify-items: center; margin-top: 8px; }
.co-side .co-price b { font-size: 5.9rem; padding: 0 .06em .04em 0; }
.co-side .co-price span { margin-top: 2px; font: 600 1.35rem/1.2 var(--font-head); letter-spacing: -.01em; }
.co-save { margin-top: 14px; padding: 5px 16px; border: 1px solid rgba(112, 208, 80, .45); border-radius: 999px; background: rgba(112, 208, 80, .12); color: #b5eb9f; font-weight: 600; font-size: .9rem; }
.co-side .co-until { margin-top: 20px; font-size: .95rem; line-height: 1.45; color: var(--muted); }
.co-side .co-until span { display: block; }
.co-side .co-main { width: 100%; margin-top: 16px; justify-content: center; text-align: center; padding-block: 15px; font-size: 1.05rem; }
.co-side .co-no { margin-top: 4px; }
/* Short desktop windows: tighten before anything is cut off */
@media (min-width: 1024px) and (max-height: 640px) {
  .co-modal { padding: 12px; }
  .co-main-col { padding-block: 24px; }
  .co-modal .co-title { font-size: 2.1rem; }
  .co-list, .co-small { margin-top: 16px; }
  .co-side { padding: 72px 34px 10px; }
  .co-side .co-sky { top: -26px; opacity: .38; }
  .co-side .co-price b { font-size: 4.6rem; }
  .co-side .co-until { margin-top: 12px; }
  .co-side .co-main { margin-top: 10px; }
}

/* Phone and tablet: a card from the bottom, less than half of the screen; the page stays usable */
.co-card { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 620px; margin-inline: auto; pointer-events: none; }
.co-card .co-panel { max-height: calc(44vh - 12px); max-height: calc(44dvh - 12px); overflow-y: auto; padding: 12px 16px 10px; border-radius: 18px; background: radial-gradient(90% 130% at 96% 0%, rgba(244, 213, 141, .2), transparent 60%), #0b1724; pointer-events: auto; transform: translateY(calc(100% + 80px)); transition: transform .3s cubic-bezier(.2, .8, .3, 1); }
.co-card.is-in .co-panel { transform: none; }
.co-card.is-tucked { visibility: hidden; transition-delay: .3s; }
.co-card.is-tucked .co-panel { transform: translateY(calc(100% + 80px)); pointer-events: none; }
.co-card .co-title { font-size: 1rem; line-height: 1.25; padding-right: 34px; color: var(--gold); }
.co-card .co-was { margin-top: 5px; font-size: .86rem; line-height: 1.3; }
.co-card .co-was s { font-weight: 600; }
.co-card .co-price { display: flex; align-items: baseline; gap: 8px; line-height: 1.1; }
.co-card .co-price b { font-size: 2.6rem; padding: 0 .04em .03em 0; }
.co-card .co-price span { font: 600 1.1rem/1.2 var(--font-head); letter-spacing: -.01em; }
.co-card .co-body { margin-top: 5px; font-size: .86rem; line-height: 1.35; color: var(--text); }
.co-card .co-list { grid-template-columns: auto auto; justify-content: start; gap: 3px 22px; margin-top: 6px; font-size: .82rem; line-height: 1.3; }
.co-card .co-list li { padding-left: 19px; }
.co-card .co-list li::before { left: 3px; top: .1em; width: 4px; height: 8px; }
.co-card .co-until { margin-top: 7px; font-size: .82rem; line-height: 1.35; color: var(--muted); }
.co-card .co-row { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.co-card .co-main { flex: 1; justify-content: center; text-align: center; min-height: 44px; padding: 8px 20px; font-size: .95rem; white-space: nowrap; }
.co-card .co-main:hover { transform: none; }
.co-card .co-no { font-size: .88rem; white-space: nowrap; }
.co-card .co-close { top: 0; right: 0; }
/* Short screens keep to the limit by tightening. */
@media (max-height: 799px) {
  .co-card .co-panel { padding-block: 9px 7px; }
  .co-card .co-title { font-size: .95rem; }
  .co-card .co-was { margin-top: 2px; font-size: .78rem; }
  .co-card .co-price b { font-size: 1.85rem; }
  .co-card .co-price span { font-size: .95rem; }
  .co-card .co-body, .co-card .co-until, .co-card .co-list { font-size: .78rem; line-height: 1.3; }
  .co-card .co-body { margin-top: 1px; }
  .co-card .co-list { gap: 1px 20px; margin-top: 3px; }
  .co-card .co-until { margin-top: 4px; }
  .co-card .co-row { margin-top: 5px; }
}
@media (max-height: 639px) {
  .co-card .co-panel { padding: 5px 12px 3px; }
  .co-card .co-title { font-size: .86rem; line-height: 1.2; }
  .co-card .co-was { margin-top: 0; font-size: .74rem; line-height: 1.2; }
  .co-card .co-price { line-height: 1; }
  .co-card .co-price b { font-size: 1.5rem; }
  .co-card .co-price span { font-size: .86rem; }
  .co-card .co-body, .co-card .co-until, .co-card .co-list { font-size: .72rem; line-height: 1.25; }
  .co-card .co-body { margin-top: 0; }
  .co-card .co-list { gap: 0 16px; margin-top: 1px; }
  .co-card .co-until { margin-top: 2px; }
  .co-card .co-row { margin-top: 1px; }
}
@media (max-width: 359px) {
  .co-card .co-list { column-gap: 10px; }
  .co-card .co-list li { padding-left: 15px; }
}
@media (max-width: 799px) and (min-width: 660px), (max-width: 799px) and (min-width: 560px) and (max-height: 420px) {
  .co-card .co-list { column-gap: 12px; font-size: .74rem; }
  .co-card .co-list li { padding-left: 16px; }
  .co-card .co-body { font-size: .78rem; }
}
/* Tablets, and phones on their side: the price on the left, what you get and the buttons on the right. */
@media (min-width: 660px), (min-width: 560px) and (max-height: 420px) {
  .co-card { max-width: 740px; }
  .co-card .co-panel { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto auto auto auto; column-gap: 22px; justify-content: space-between; align-content: center; padding-right: 46px; }
  .co-card .co-panel > :is(.co-title, .co-was, .co-price, .co-body, .co-until) { grid-column: 1; }
  .co-card .co-list { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .co-card .co-row { grid-column: 2; grid-row: 4 / span 2; align-self: end; margin-top: 6px; }
}

@media (min-width: 560px) and (max-width: 659px) and (max-height: 420px) {
  .co-card .co-panel { column-gap: 10px; padding-right: 34px; }
  .co-card .co-list { column-gap: 8px; font-size: .64rem; line-height: 1.4; }
  .co-card .co-list li { padding-left: 13px; }
  .co-card .co-body, .co-card .co-until { font-size: .64rem; }
  .co-card .co-until i { margin: 0 5px; }
  .co-card .co-close { top: -6px; right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .co, .co-modal, .co .co-panel { transition: none; }
  .co-modal.is-in .co-burst { animation: none; opacity: .9; }
}
