/* =============================================================
   Coast Showcase Pop-up  ·  showcase-popup.css
   Design source: Claude Design "Showcase Popup v5" (27 Sep 2026)
   Every px value below is lifted from the design source. The card is
   laid out at its design size (1200x675 / 720x960 / 360x600) and the
   JS scales it down to fit the viewport, so these numbers never need
   responsive overrides. Do not "tidy" them into rems or clamps.
   ============================================================= */

.csp-root {
  --csp-accent: #bf6aad;
  --csp-ink: #181819;
  --csp-card: #181819;
  --csp-cta-from: #fecc66;
  --csp-cta-to: #f7a547;
  --csp-font: Poppins, ui-sans-serif, system-ui, sans-serif;

  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 24, 25, .74);
  font-family: var(--csp-font);
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 250ms ease-out;
}
.csp-root.csp-in { opacity: 1; }

/* Scoped reset so global site styles (h2, p, ul, a, button) cannot leak in */
.csp-root *, .csp-root *::before, .csp-root *::after { box-sizing: border-box; margin: 0; padding: 0; }
.csp-root h2, .csp-root p, .csp-root ul, .csp-root li, .csp-root a, .csp-root button, .csp-root span {
  font-family: var(--csp-font); text-transform: none; letter-spacing: normal; list-style: none;
  text-decoration: none; border: 0; background: none; color: inherit; text-shadow: none;
}

/* Sizer takes the scaled footprint; the card inside is drawn at design size */
.csp-sizer { position: relative; flex: none; }
.csp-card {
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--csp-card);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .45);
  cursor: pointer;
  color: #fff;
  transition: transform 250ms ease-out;
}
/* The card takes programmatic focus on open (for screen readers); it is not a visible focus target. */
.csp-card:focus, .csp-card:focus-visible { outline: none; }

/* ---------- shared pieces ---------- */
.csp-photo { position: absolute; background-image: var(--csp-img); }
.csp-dim { position: absolute; inset: 0; background: rgba(16, 10, 18, .78); }

.csp-eight, .csp-eight-line {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--csp-font); font-weight: 700; line-height: 1; letter-spacing: 0;
  color: transparent; -webkit-text-fill-color: transparent;
  pointer-events: none; user-select: none;
}
.csp-eight {
  background-image: var(--csp-img);
  background-size: cover;
  background-position: 50% 40%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: saturate(1.2) brightness(1.12);
}
.csp-eight-line { -webkit-text-stroke: 1.5px rgba(255, 255, 255, .6); }

.csp-logo { display: block; }

.csp-pill {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 12px; border-radius: 999px;
  background: var(--csp-accent); color: var(--csp-ink);
  font-weight: 600; font-size: 12px; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
}
.csp-root .csp-pill { color: var(--csp-ink); background: var(--csp-accent); letter-spacing: .12em; text-transform: uppercase; }
.csp-root .csp-label { font-weight: 500; font-size: 12px; line-height: 18px; letter-spacing: .23em; text-transform: uppercase; color: #fff; }

.csp-root .csp-h { color: #fff; font-weight: 600; letter-spacing: -0.016em; }
.csp-root .csp-h span { display: block; letter-spacing: inherit; }
.csp-h .csp-h1 { font-weight: 600; font-style: normal; }
.csp-h .csp-h2 { font-weight: 300; font-style: italic; }
.csp-root .csp-sub { color: var(--csp-accent); font-weight: 500; }

.csp-facts { display: flex; }
.csp-fact { display: flex; align-items: center; gap: 12px; }
.csp-root .csp-tile {
  flex: none; width: 36px; height: 36px; border-radius: 12px;
  background: var(--csp-accent);
  display: flex; align-items: center; justify-content: center;
}
.csp-root .csp-tile svg { width: 20px; height: 20px; display: block; }
.csp-root .csp-fact-text { font-weight: 500; font-size: 17px; line-height: 26px; color: #fff; white-space: nowrap; }

.csp-root .csp-cta {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 80px; padding: 16px 40px;
  border-radius: 20px;
  background: linear-gradient(to bottom, var(--csp-cta-from), var(--csp-cta-to));
  color: var(--csp-ink); text-align: center;
  transition: opacity 180ms ease-out;
}
.csp-root .csp-cta:hover { opacity: .9; color: var(--csp-ink); }
.csp-root .csp-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.csp-root .csp-cta-main { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 18px; line-height: 24px; color: var(--csp-ink); }
.csp-root .csp-cta-arrow { width: .9em; height: .9em; display: block; flex: none; }
.csp-root .csp-cta-sub { font-weight: 400; font-size: 13px; line-height: 18px; opacity: .8; white-space: nowrap; color: var(--csp-ink); }

.csp-root .csp-close {
  position: absolute; z-index: 3; top: 20px; right: 20px;
  width: 44px; height: 44px; min-width: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(214, 226, 248, .3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
  color: #fff; font-size: 24px; font-weight: 300; line-height: 1;
  cursor: pointer;
  transition: opacity 180ms ease-out;
}
.csp-root .csp-close:hover { opacity: .85; }
.csp-root .csp-close:focus-visible { outline: 3px solid var(--csp-accent); outline-offset: 2px; }

.csp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- DESKTOP 1200 x 675 ---------- */
.csp-d { width: 1200px; height: 675px; }
.csp-d .csp-art { position: absolute; left: 0; top: 0; bottom: 0; width: 660px; }
.csp-d .csp-photo { inset: 0; background-size: cover; background-position: 50% 40%; }
.csp-d .csp-fade { position: absolute; top: 0; bottom: 0; right: 0; width: 240px; background: linear-gradient(to right, rgba(24, 24, 25, 0), #181819); }
.csp-d .csp-eight, .csp-d .csp-eight-line { font-size: 780px; }
.csp-d .csp-body {
  position: absolute; left: 560px; right: 0; top: 0; bottom: 0;
  padding: 0 56px 0 24px;
  display: flex; flex-direction: column; justify-content: center;
}
.csp-d .csp-logo { width: 146px; height: 46px; margin-bottom: 24px; }
.csp-d .csp-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.csp-d .csp-h { font-size: 64px; line-height: 68px; margin-bottom: 12px; }
.csp-d .csp-sub { font-size: 28px; line-height: 36px; margin-bottom: 40px; }
.csp-d .csp-facts { align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 40px; }
.csp-d .csp-cta-row { display: flex; align-items: center; }

/* ---------- TABLET 720 x 960 ---------- */
.csp-t { width: 720px; height: 960px; }
.csp-t .csp-photo, .csp-m .csp-photo {
  background-size: 100% 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.csp-t .csp-photo { left: 19px; top: 286px; width: 683px; height: 513px; }
.csp-t .csp-eightbox { position: absolute; left: 110px; top: 286px; width: 501px; height: 513px; }
.csp-t .csp-eight, .csp-t .csp-eight-line { font-size: 592px; }
.csp-t .csp-logo { position: absolute; top: 24px; left: 24px; width: 110px; height: 35px; }
.csp-t .csp-head { position: absolute; left: 48px; right: 48px; top: 76px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.csp-t .csp-pill { margin-bottom: 12px; }
.csp-t .csp-h { font-size: 64px; line-height: 68px; margin-bottom: 8px; }
.csp-t .csp-sub { font-size: 28px; line-height: 36px; }
.csp-t .csp-foot { position: absolute; left: 48px; right: 48px; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.csp-t .csp-facts { align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 32px; }
.csp-root .csp-t .csp-fact-text { font-size: 18px; line-height: 28px; }
.csp-root .csp-t .csp-cta { width: 432px; padding: 16px 32px; }

/* ---------- PHONE 360 x 600 ---------- */
.csp-m { width: 360px; height: 600px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.csp-m .csp-photo { left: 17px; top: 204px; width: 325px; height: 244px; }
.csp-m .csp-eightbox { position: absolute; left: 60px; top: 204px; width: 239px; height: 244px; }
.csp-m .csp-eight, .csp-m .csp-eight-line { font-size: 282px; }
.csp-m .csp-eight-line { -webkit-text-stroke-width: 1px; }
.csp-m .csp-logo { position: absolute; top: 22px; left: 20px; width: 76px; height: 24px; }
.csp-m .csp-head { position: absolute; left: 16px; right: 16px; top: 60px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.csp-root .csp-m .csp-pill { height: 22px; padding: 0 10px; font-size: 11px; margin-bottom: 8px; }
.csp-m .csp-h { font-size: 40px; line-height: 44px; margin-bottom: 4px; }
.csp-m .csp-sub { font-size: 16px; line-height: 22px; }
.csp-m .csp-foot { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; flex-direction: column; align-items: center; }
.csp-m .csp-facts { flex-direction: column; gap: 6px; margin-bottom: 14px; }
.csp-m .csp-fact { gap: 10px; }
.csp-root .csp-m .csp-tile { width: 28px; height: 28px; }
.csp-root .csp-m .csp-tile svg { width: 16px; height: 16px; }
.csp-root .csp-m .csp-fact-text { font-size: 15px; line-height: 22px; }
.csp-root .csp-m .csp-cta { width: 100%; min-height: 64px; padding: 12px 16px; }
.csp-root .csp-m .csp-cta-main { font-size: 16px; line-height: 22px; }
.csp-root .csp-m .csp-cta-sub { font-size: 12px; line-height: 16px; }
.csp-root .csp-m .csp-close { top: 12px; right: 12px; }

/* ---------- TWO-DIGIT line-ups (10-12): same glyph box and photo box, smaller glyph so it fits ---------- */
.csp-d.csp-two .csp-eight, .csp-d.csp-two .csp-eight-line { font-size: 460px; letter-spacing: -0.04em; }
.csp-t.csp-two .csp-eight, .csp-t.csp-two .csp-eight-line { font-size: 440px; letter-spacing: -0.04em; }
.csp-m.csp-two .csp-eight, .csp-m.csp-two .csp-eight-line { font-size: 210px; letter-spacing: -0.04em; }

@media (prefers-reduced-motion: reduce) {
  .csp-root, .csp-card { transition: none; }
}
