/* First-order offer, dark chrome card (2 Nov 2026). Scoped to the dialog; no page-wide resets.
   Desktop: modal split card. Phones (max 640px): non-modal bottom sheet, opened with dialog.show() by the script. */
@font-face { font-family: 'CL Welcome Montreal'; src: url('assets/NeueMontreal-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'CL Welcome Montreal'; src: url('assets/NeueMontreal-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
.clw-offer, .clw-offer button, .clw-offer input { font-family: 'CL Welcome Montreal', Arial, sans-serif; font-synthesis: none; }
.clw-offer *, .clw-offer *::before, .clw-offer *::after { box-sizing: border-box; }
.clw-offer:not([open]), .clw-offer [hidden], .clw-honeypot { display: none !important; }
.clw-offer button { cursor: pointer; }
.clw-offer a { color: inherit; }
.clw-offer ::selection { background: #e7e8ea; color: #0b0b0c; }
.clw-offer :is(button, a, summary, input):focus-visible { outline: 2px solid #e7e8ea; outline-offset: 3px; }
.clw-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

.clw-offer {
  width: min(860px, calc(100vw - 40px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #0b0b0c;
  color: #fff;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  scrollbar-width: none;
}
.clw-offer::-webkit-scrollbar { display: none; }
.clw-offer::backdrop { background: rgba(6,6,7,.62); backdrop-filter: blur(4px); }
.clw-offer[open]:modal { animation: clw-in .5s cubic-bezier(.16,1,.3,1) both; }
@keyframes clw-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.clw-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.clw-art { position: relative; overflow: hidden; background: #050506; }
.clw-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 72%, rgba(11,11,12,.85) 100%); pointer-events: none; }
.clw-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }

.clw-close {
  position: absolute; z-index: 5; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: #fff;
  display: grid; place-items: center; transition: background .2s;
}
.clw-close:hover { background: rgba(255,255,255,.12); }
.clw-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.clw-content { padding: 56px 44px 36px; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.clw-content h2 { font-weight: 500; line-height: .95; letter-spacing: -.04em; margin: 0; outline: none; }
.clw-discount { display: block; font-size: 56px; }
.clw-title-line { display: block; font-size: 30px; letter-spacing: -.025em; margin-top: 8px; color: #e9eaec; }
.clw-lede { margin: 16px 0 26px; color: #c3c5ca; font-size: 16px; line-height: 1.5; }

#clw-email {
  width: 100%; height: 54px; margin: 0;
  border: 1px solid #33353a; border-radius: 999px; background: #131315; color: #fff;
  padding: 0 22px; font-size: 16px; box-shadow: none;
  transition: border-color .2s;
}
#clw-email:focus { border-color: #7d8086; outline: none; }
#clw-email::placeholder { color: #7d8086; }
#clw-email[aria-invalid=true] { border-color: #d0584f; }
.clw-error { color: #f08c84; font-size: 13px; margin: 10px 4px 0; line-height: 1.4; }

.clw-submit {
  width: 100%; height: 54px; border: 0; border-radius: 999px;
  background: #fff; color: #0b0b0c; padding: 0 22px;
  font-size: 16px; font-weight: 500;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  transition: background .2s, transform .2s cubic-bezier(.16,1,.3,1);
}
.clw-submit:hover { background: #e7e8ea; }
.clw-submit:active { transform: scale(.99); }
.clw-submit:disabled { cursor: wait; opacity: .65; }
#clw-form .clw-submit { margin-top: 12px; }

.clw-fineprint { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; font-size: 12px; color: #8d9096; position: relative; flex-wrap: wrap; }
.clw-fineprint a { text-underline-offset: 3px; color: #b9bcc2; }
.clw-terms summary { list-style: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: #b9bcc2; }
.clw-terms summary::-webkit-details-marker { display: none; }
.clw-terms p { margin: 8px 0 0; font-size: 12px; line-height: 1.55; color: #8d9096; flex-basis: 100%; }
.clw-terms[open] { flex-basis: 100%; }
.clw-join { margin: 12px 4px 0; font-size: 12.5px; line-height: 1.5; color: #b9bcc2; }
.clw-ruo { margin: 10px 0 0; font-size: 11.5px; line-height: 1.45; color: #6f7278; }

.clw-success h2 { font-size: 40px; margin-bottom: 14px; }
.clw-success p { font-size: 15px; line-height: 1.5; color: #c3c5ca; margin: 0 0 24px; }

/* Tablet: stack, keep the card centred. */
@media (max-width: 860px) and (min-width: 641px) {
  .clw-offer { width: min(560px, calc(100vw - 40px)); }
  .clw-layout { grid-template-columns: 1fr; min-height: 0; }
  .clw-art { height: 260px; }
  .clw-art::after { background: linear-gradient(180deg, transparent 60%, rgba(11,11,12,.9) 100%); }
  .clw-content { padding: 30px 32px 30px; }
}

/* Phones: bottom sheet that leaves the page visible above it. */
@media (max-width: 640px) {
  .clw-offer.clw-sheet {
    position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%;
    border-radius: 22px 22px 0 0; max-height: 75dvh;
    box-shadow: 0 -18px 50px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.09);
    animation: clw-up .45s cubic-bezier(.16,1,.3,1) both; z-index: 2147483000;
  }
  @keyframes clw-up { from { transform: translateY(100%); } to { transform: none; } }
  .clw-offer { width: calc(100vw - 24px); }
  .clw-layout { grid-template-columns: 88px 1fr; grid-template-areas: "art head" "body body"; min-height: 0; gap: 0 16px; padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); }
  .clw-art { grid-row: 1; width: 88px; height: 88px; border-radius: 14px; align-self: center; }
  .clw-art::after { display: none; }
  .clw-content { display: contents; }
  #clw-intro { display: contents; }
  .clw-content h2 { grid-column: 2; grid-row: 1; align-self: center; padding-right: 36px; }
  .clw-discount { font-size: 32px; }
  .clw-title-line { font-size: 20px; margin-top: 2px; }
  .clw-lede { display: none; }
  #clw-form, .clw-join, .clw-fineprint, .clw-ruo { grid-column: 1 / -1; }
  .clw-join { margin: 10px 2px 0; }
  #clw-form { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  #clw-form .clw-submit { margin-top: 0; width: auto; height: 50px; padding: 0 20px; font-size: 15px; }
  #clw-email { height: 50px; }
  .clw-error { grid-column: 1 / -1; order: 3; }
  .clw-fineprint { margin-top: 12px; }
  .clw-ruo { margin-top: 6px; font-size: 11px; }
  .clw-close { top: 14px; right: 14px; width: 32px; height: 32px; }
  .clw-success { grid-column: 1 / -1; padding-top: 6px; }
  .clw-success h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .clw-offer, .clw-offer *, .clw-offer *::before, .clw-offer *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
