/* Selectr case study. Shared pieces: case-study.css, case-contact.css.
   The page runs like the show: Intro, Round 1, Round 2 and the Final, tracked by a sticky
   stepper, with a "Who would you pick?" poll in Round 2 (case-selectr.js). */

:root {
  --accent: #e0283b;
  --se-coral: #f0384a;
  --se-navy: #1b2559;
  --se-lilac: #f3f3fb;
  --se-lilac-2: #e9e7f6;
  --cs-ink: #1b2559;
  --cs-muted: #575f80;
  --cs-faint: #8a90aa;
  --cs-line: rgb(27 37 89 / 12%);
  --cs-bg: #fbfbfe;
  --cs-dark: #121a42;
  --cs-dot: #f0384a;
  --cs-dot-dark: #f0384a;
  --cf-dots: rgb(27 37 89 / 9%);
  --cf-glow: rgb(240 56 74 / 14%);
  --cf-btn: #1b2559;
  --cf-btn-icon: #f0384a;
  --cf-btn-icon-fg: #fff;
  --cf-sent: #1b2559;
  --cf-sent-fg: #fff;
}

a:hover { color: var(--accent); }
.se-hl { position: relative; color: var(--accent); white-space: nowrap; }
.se-hl::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -.04em; height: .14em; border-radius: 99px; background: currentcolor; opacity: .25; }

/* ---------- hero: copy and a contestant profile beside the live product ---------- */
.se-hero { position: relative; overflow: clip; padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(56px, 6vw, 96px); background: radial-gradient(40% 50% at 8% 20%, rgb(240 56 74 / 10%), transparent 70%), radial-gradient(45% 60% at 95% 70%, rgb(47 107 255 / 10%), transparent 70%), var(--se-lilac); }
.se-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 5vw, 80px); align-items: center; }
.se-hero__copy { display: grid; gap: 24px; justify-items: start; }
.se-chip { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--white); box-shadow: 0 6px 18px -10px rgb(27 37 89 / 30%); font-size: 13px; font-weight: 600; color: var(--se-navy); }
.se-chip__heart { width: 22px; height: 22px; border-radius: 50%; background: var(--se-coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E") center / 13px no-repeat; }
.se-hero__title { font-weight: 600; font-size: clamp(40px, 4.6vw, 74px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; color: var(--se-navy); }
.se-hero__lead { margin: 0; }
.se-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 4px 0 0; }
.se-profile > div { padding: 14px 16px; border-radius: 14px; background: var(--white); box-shadow: 0 1px 0 rgb(27 37 89 / 6%); }
.se-profile dt { margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.se-profile dd { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--se-navy); }
.se-hero__shot { position: relative; margin: 0; border-radius: 28px; overflow: hidden; background: var(--white); box-shadow: 0 40px 80px -40px rgb(27 37 89 / 40%); }
.se-hero__shot img { display: block; width: 100%; height: auto; }
.se-live { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--se-coral); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
.se-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--white); animation: se-blink 1.4s infinite; }
@keyframes se-blink { 50% { opacity: .25; } }

/* ---------- the stepper (sticky across all four rounds) ---------- */
.se-show { position: relative; }
.se-stepper { position: sticky; top: 12px; z-index: 30; height: 0; padding: 0 var(--gutter); }
.se-stepper ol { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 620px; margin: 24px auto 0; padding: 6px; border-radius: 999px; background: rgb(27 37 89 / 94%); box-shadow: 0 18px 40px -18px rgb(27 37 89 / 55%); list-style: none; backdrop-filter: blur(10px); }
.se-stepper li { position: relative; z-index: 1; }
.se-stepper a { display: block; padding: 10px 8px; border-radius: 999px; font-size: 14px; font-weight: 600; text-align: center; white-space: nowrap; color: rgb(255 255 255 / 55%); transition: background .35s, color .35s; }
.se-stepper a:hover { color: var(--white); }
.se-stepper a.is-done { color: rgb(255 255 255 / 85%); }
.se-stepper a.is-on { background: var(--se-coral); color: var(--white); }
.se-stepper__bar { position: absolute; z-index: 2; top: 72px; left: 50%; width: min(560px, calc(100% - 2 * var(--gutter) - 64px)); transform: translateX(-50%); height: 2px; border-radius: 2px; background: rgb(255 255 255 / 12%); overflow: hidden; }
.se-stepper__bar span { display: block; width: 100%; height: 100%; background: var(--se-coral); transform: scaleX(var(--p, 0)); transform-origin: left; }

.se-round { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.se-round span { padding-left: 12px; border-left: 1px solid var(--cs-line); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--cs-muted); }
.se-round--on-dark { color: #ff6b79; }
.se-round--on-dark span { border-color: rgb(255 255 255 / 20%); color: rgb(255 255 255 / 70%); }

/* ---------- intro ---------- */
.se-intro { padding-top: 160px; background: linear-gradient(180deg, var(--cs-bg), var(--se-lilac)); }
.se-phases { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 56px 0 0; padding: 0; list-style: none; }
.se-phases::before { content: ""; position: absolute; top: 50%; left: 6%; right: 6%; border-top: 2px dashed rgb(240 56 74 / 40%); }
.se-phases li { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px; border-radius: 999px; border: 1px solid var(--cs-line); background: var(--white); font-weight: 600; color: var(--se-navy); }
.se-phases span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--se-coral); font-size: 13px; color: var(--white); }
.se-panel { max-width: 1185px; margin: 40px auto 0; border-radius: 28px; overflow: hidden; background: var(--white); box-shadow: 0 30px 80px -40px rgb(27 37 89 / 35%); }
.se-panel img { display: block; width: 100%; height: auto; }

/* ---------- round 1: score cards ---------- */
.se-r1 { background: var(--se-lilac); }
.se-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 56px 0 0; padding: 0; list-style: none; }
.se-card { position: relative; display: grid; align-content: start; gap: 12px; padding: 32px 34px 34px 100px; border-radius: 24px; background: var(--white); box-shadow: 0 1px 0 rgb(27 37 89 / 6%); }
.se-card:nth-child(1), .se-card:nth-child(4) { background: var(--se-navy); color: var(--white); }
.se-card__n { position: absolute; top: 30px; left: 32px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--se-coral); font-weight: 700; color: var(--white); }
.se-card h3 { font-size: clamp(20px, 1.7vw, 25px); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.se-card p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--cs-muted); }
.se-card b { font-weight: 600; color: var(--se-navy); }
.se-card:nth-child(1) p, .se-card:nth-child(4) p { color: rgb(255 255 255 / 72%); }
.se-card:nth-child(1) b, .se-card:nth-child(4) b { color: var(--white); }
[data-se-round] { scroll-margin-top: 40px; }
