/* Cartesian broker eligibility funnel (r26-F). Isolated full-screen overlay.
   Everything is scoped under .cpb. Ground #F6F4EE, ink #0B2C25, green #114136, mint #8FCBB0. */

html.cpb-lock, html.cpb-lock body { overflow: hidden; }

.cpb {
  --cpb-ground: #F6F4EE;
  --cpb-ink: #0B2C25;
  --cpb-green: #114136;
  --cpb-mint: #8FCBB0;
  --cpb-line: rgba(11, 44, 37, .14);
  --cpb-tint: rgba(17, 65, 54, .06);
  --cpb-err: #9B2D1F;
  --cpb-shadow: 0 24px 48px -32px rgba(17, 65, 54, .35);
  --cpb-ease: cubic-bezier(.2, .7, .1, 1);
  --cpb-side: 48px;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  background: var(--cpb-ground);
  color: var(--cpb-ink);
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  animation: cpb-fade .3s ease both;
}
.cpb[hidden] { display: none; }
.cpb *, .cpb *::before, .cpb *::after { box-sizing: border-box; }
.cpb :where(button, input) { font: inherit; color: inherit; }
.cpb :where(button) { cursor: pointer; background: none; border: 0; padding: 0; margin: 0; }

@keyframes cpb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cpb-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Top bar */
.cpb-bar {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 var(--cpb-side);
}
.cpb-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 24px;
  letter-spacing: -.005em;
  color: var(--cpb-green);
  text-align: center;
}
.cpb-back, .cpb-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  font-size: 16px;
  font-weight: 600;
  color: var(--cpb-green);
  border-radius: 4px;
}
.cpb-back { justify-self: start; margin-left: -8px; padding: 0 8px; }
.cpb-back[hidden] { display: inline-flex; visibility: hidden; }
.cpb-x { justify-self: end; justify-content: center; margin-right: -10px; }
.cpb-back svg, .cpb-x svg { display: block; flex: none; }
.cpb-back:hover, .cpb-x:hover { color: var(--cpb-ink); }

/* Progress */
.cpb-prog { flex: none; height: 3px; background: rgba(11, 44, 37, .08); }
.cpb-prog i { display: block; height: 100%; width: 0; background: var(--cpb-mint); transition: width .3s var(--cpb-ease); }

/* Scroll area and column */
.cpb-scroll { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.cpb-col { width: 100%; max-width: 600px; margin: 0 auto; padding: clamp(28px, 8vh, 88px) 20px 64px; text-align: left; }
.cpb-screen { animation: cpb-rise .3s var(--cpb-ease) both; }

/* Type */
.cpb-eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cpb-green);
}
.cpb h1, .cpb h2 {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  color: var(--cpb-ink);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.cpb h1 { font-size: 40px; line-height: 1.1; margin-bottom: 28px; }
.cpb h2 { font-size: 36px; line-height: 1.14; }
.cpb h1:focus, .cpb h2:focus, .cpb-load:focus { outline: none; }
.cpb-title + .cpb-q, .cpb h1 ~ h2 { font-size: 26px; line-height: 1.2; }
.cpb-lead { margin: 14px 0 0; }
.cpb-info { margin: 22px 0 0; font-size: 15px; line-height: 1.5; color: rgba(11, 44, 37, .7); }
.cpb-note { margin: 18px 0 0; font-size: 15px; color: rgba(11, 44, 37, .7); }

/* Answer rows */
.cpb-opts { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.cpb-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 14px 20px;
  background: rgba(17, 65, 54, .05);
  border: 0;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  line-height: 1.3;
  transition: box-shadow .15s ease, background-color .15s ease;
}
.cpb-opt:hover { background: rgba(17, 65, 54, .09); }
.cpb-opt.is-on { background: rgba(17, 65, 54, .12); box-shadow: inset 3px 0 0 var(--cpb-green); }
.cpb-tick {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--cpb-line);
  display: grid; place-items: center;
}
.cpb-tick svg { opacity: 0; }
.cpb-opt.is-on .cpb-tick { background: var(--cpb-green); border-color: var(--cpb-green); }
.cpb-opt.is-on .cpb-tick svg { opacity: 1; }

/* Primary button */
.cpb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 200px;
  padding: 0 28px;
  background: var(--cpb-green);
  color: var(--cpb-ground);
  border-radius: 4px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease;
}
.cpb-btn:hover { background: #0B2C25; }
.cpb-actions { margin-top: 28px; }

/* Focus */
.cpb button:focus-visible, .cpb input:focus-visible, .cpb a:focus-visible {
  outline: 2px solid var(--cpb-green);
  outline-offset: 2px;
}

/* Fields */
.cpb-form { margin: 28px 0 0; }
.cpb-field { display: block; margin: 0 0 18px; }
.cpb-field > label, .cpb-lab { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.cpb-input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--cpb-line);
  border-radius: 12px;
  font-size: 17px;
  appearance: none;
  -webkit-appearance: none;
}
.cpb-input::placeholder { color: rgba(11, 44, 37, .4); }
.cpb-input:hover { border-color: rgba(17, 65, 54, .5); }
.cpb-input:focus { border-color: var(--cpb-green); outline: 2px solid var(--cpb-green); outline-offset: 0; }
.cpb-input[aria-invalid="true"] { border-color: var(--cpb-err); }
.cpb-err { min-height: 0; margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--cpb-err); }
.cpb-err:empty { display: none; }
.cpb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cpb-consent { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 0; cursor: pointer; font-size: 16px; line-height: 1.45; }
.cpb-consent input {
  flex: none;
  width: 24px; height: 24px; margin: 1px 0 0;
  appearance: none; -webkit-appearance: none;
  background: #fff;
  border: 1px solid rgba(11, 44, 37, .4);
  border-radius: 6px;
  display: grid; place-items: center;
  cursor: pointer;
}
.cpb-consent input:checked { background: var(--cpb-green); border-color: var(--cpb-green); }
.cpb-consent input:checked::after {
  content: ""; width: 6px; height: 11px; margin-top: -2px;
  border: solid #F6F4EE; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.cpb-consent input[aria-invalid="true"] { border-color: var(--cpb-err); }
.cpb-form .cpb-btn { margin-top: 24px; }

/* Loader */
.cpb-load { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.cpb-load li { display: flex; align-items: center; gap: 14px; font-size: 19px; color: rgba(11, 44, 37, .38); transition: color .3s ease; }
.cpb-load li.is-done { color: var(--cpb-ink); }
/* ink pass: a faint open hand loop, and a green hand tick that draws itself in when the line is done */
.cpb-load .cpb-dot { flex: none; width: 28px; height: 28px; display: block; }
.cpb-load .cpb-dot svg { display: block; overflow: visible; }
.cpb-load .cpb-ring { fill: none; stroke: rgba(17, 65, 54, .26); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.cpb-load li.is-done .cpb-ring { stroke: rgba(17, 65, 54, .4); }
.cpb-load .cpb-tk { fill: none; stroke: #114136; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; }
.cpb-load .cpb-t2 { opacity: .4; transform: translate(.7px, -.55px); }
.cpb-load li.is-done .cpb-tk { animation: cpb-draw .35s cubic-bezier(.45, .05, .25, 1) forwards; }
.cpb-load li.is-done .cpb-t2 .cpb-tk { animation-delay: .04s; }
@keyframes cpb-draw { to { stroke-dashoffset: 0; } }
.cpb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* People */
.cpb-people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0 0; }
.cpb-card { background: #fff; border-radius: 16px; box-shadow: var(--cpb-shadow); padding: 20px; min-width: 0; }
.cpb-who { display: flex; align-items: center; gap: 14px; }
.cpb-photo { flex: none; width: 76px; height: 76px; border-radius: 16px; object-fit: cover; object-position: 50% 16%; background: #E7E4DA; display: block; }
.cpb-name { font-size: 17px; font-weight: 600; line-height: 1.25; }
.cpb-role { font-size: 15px; line-height: 1.3; color: rgba(11, 44, 37, .7); margin-top: 2px; }
.cpb-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 0; }
.cpb-chip {
  min-height: 48px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--cpb-line);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  transition: border-color .15s ease, background-color .15s ease;
}
.cpb-chip:hover { border-color: var(--cpb-green); background: var(--cpb-tint); }
.cpb-chip span { white-space: nowrap; }
.cpb-chip.is-more { color: var(--cpb-green); font-weight: 600; background: transparent; }
.cpb-none { grid-column: 1 / -1; font-size: 15px; color: rgba(11, 44, 37, .7); }

/* Summary chip */
.cpb-sum {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  margin: 22px 0 0; padding: 14px 18px;
  background: #fff; border: 1px solid var(--cpb-line); border-radius: 12px;
  font-weight: 500;
}
.cpb-link { color: var(--cpb-green); font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0; }

/* Booked */
.cpb-check { display: block; width: 72px; height: 72px; margin: 0 0 24px; }
.cpb-check path { fill: none; stroke: #114136; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; }
.cpb-check .ck-c { stroke-width: 2.15; animation: cpb-draw-c .6s ease-out .1s forwards; }
.cpb-check .ck-t { stroke-width: 2.5; animation: cpb-draw-c .4s ease-out .55s forwards; }
.cpb-check .ck-2 { opacity: .4; transform: translate(.7px, -.55px); }
.cpb-check .ck-2 .ck-c { animation-delay: .15s; }
.cpb-check .ck-2 .ck-t { animation-delay: .6s; }
@keyframes cpb-draw-c { to { stroke-dashoffset: 0; } }
.cpb-booked { margin: 28px 0 0; }
.cpb-when { margin: 18px 0 0; font-weight: 600; }
.cpb-booked p { margin: 6px 0 0; }
.cpb-booked p.cpb-first { margin-top: 14px; }

/* Phone */
@media (max-width: 640px) {
  .cpb { --cpb-side: 20px; }
  .cpb-bar { height: 56px; }
  .cpb-mark { font-size: 22px; }
  .cpb-col { padding: 28px 20px 48px; }
  .cpb h1 { font-size: 30px; margin-bottom: 22px; }
  .cpb h2 { font-size: 28px; }
  .cpb-title + .cpb-q, .cpb h1 ~ h2 { font-size: 23px; }
  .cpb-btn { width: 100%; min-height: 56px; }
  .cpb-people { grid-template-columns: 1fr; gap: 16px; }
  .cpb-two { grid-template-columns: 1fr; gap: 0; }
  .cpb-load li { font-size: 18px; }
}

/* Reduced motion: fades only, no movement */
@media (prefers-reduced-motion: reduce) {
  .cpb-screen { animation: cpb-fade .3s ease both; }
  .cpb-prog i, .cpb-opt, .cpb-chip, .cpb-btn { transition: none; }
  .cpb-load .cpb-tk, .cpb-check path { animation: none !important; }
  .cpb-load li.is-done .cpb-tk, .cpb-check path { stroke-dashoffset: 0; }
}

/* r26g critic fixes: logo in the header, tinted cards, the day once above its times */
.cpb-mark img{display:block;height:28px;width:auto}
@media (max-width:600px){.cpb-mark img{height:24px}}
.cpb-card{background:#FBFAF6;box-shadow:none;border:1px solid rgba(17,65,54,.12)}
.cpb-day{grid-column:1/-1;margin:6px 0 -2px;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:rgba(11,44,37,.7)}
.cpb-day:first-child{margin-top:0}

/* r27: the opening card leads with who the quiz is for, then what happens next */
.cpb h1.cpb-title { font-size: 46px; line-height: 1.08; padding-left: 18px; border-left: 4px solid var(--cpb-green); margin-bottom: 18px; }
.cpb-next { margin: 0 0 30px; padding-left: 22px; font-size: 17px; line-height: 1.5; color: rgba(11, 44, 37, .78); max-width: 34em; }
.cpb h1.cpb-title ~ h2.cpb-q { font-size: 26px; line-height: 1.2; }
@media (max-width: 640px) {
  .cpb h1.cpb-title { font-size: 34px; padding-left: 14px; }
  .cpb-next { padding-left: 18px; font-size: 16px; }
  .cpb h1.cpb-title ~ h2.cpb-q { font-size: 23px; }
}

/* ?still=1: finished frame, no draw-in */
.cpb-still .cpb-tk, .cpb-still.cpb-check path { animation: none !important; }
.cpb-still li.is-done .cpb-tk, .cpb-still.cpb-check path { stroke-dashoffset: 0; }

/* r32: type-ahead on the business and where questions. Same look as the field: white, 1px border, 12px radius, same font. */
.cpb-ta { position: relative; }
.cpb-sug {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid var(--cpb-line); border-radius: 12px;
  box-shadow: 0 16px 32px -20px rgba(17, 65, 54, .35);
  font-size: 17px; line-height: 1.3;
  max-height: min(400px, 60vh); overflow-y: auto;
}
.cpb-sug[hidden] { display: none; }
.cpb-sug li {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 48px; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  overflow-wrap: anywhere;
}
.cpb-sug li:hover, .cpb-sug li.is-active { background: var(--cpb-tint); }
.cpb-sug li.is-active { box-shadow: inset 3px 0 0 var(--cpb-green); }
.cpb-sug b { font-weight: 700; }
.cpb-sug-sub { font-size: 14px; color: rgba(11, 44, 37, .6); }
.cpb-hint { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: rgba(11, 44, 37, .6); }

/* r32: the "You're eligible." screen, calm and sparse. Scoped to .cpb-elig so the booked screen is untouched. */
.cpb-elig .cpb-lead { margin: 14px 0 0; max-width: 32em; text-wrap: pretty; color: rgba(11, 44, 37, .78); }
.cpb-elig .cpb-people { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 36px 0 0; }
.cpb-elig .cpb-card { background: #fff; border: 0; border-radius: 12px; box-shadow: inset 3px 0 0 var(--cpb-green); padding: 24px 24px 22px 28px; }
.cpb-elig .cpb-who { gap: 14px; }
.cpb-elig .cpb-photo { width: 48px; height: 48px; border-radius: 50%; }
.cpb-elig .cpb-whoname { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-width: 0; }
.cpb-elig .cpb-name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.cpb-elig .cpb-role { font-size: 15px; line-height: 1.3; margin: 0; color: rgba(11, 44, 37, .6); }
.cpb-elig .cpb-times { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; }
.cpb-elig .cpb-day { flex: 0 0 auto; width: 88px; white-space: nowrap; margin: 0 4px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(11, 44, 37, .6); }
.cpb-elig .cpb-day:not(:first-child) { flex-basis: 100%; width: auto; margin: 10px 0 0; }
.cpb-elig .cpb-chip {
  flex: 0 0 92px; min-height: 44px; padding: 0 8px;
  background: var(--cpb-tint); border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--cpb-ink);
}
.cpb-elig .cpb-chip:hover { background: var(--cpb-green); color: var(--cpb-ground); }
.cpb-elig .cpb-more { flex: 0 0 100%; justify-self: start; text-align: left; min-height: 36px; margin-top: 2px; font-size: 15px; }
.cpb-elig .cpb-none { flex: 0 0 100%; margin: 0; }
.cpb-elig .cpb-note { margin: 24px 0 0; font-size: 13px; color: rgba(11, 44, 37, .6); }
@media (max-width: 640px) {
  .cpb-elig .cpb-people { gap: 16px; margin-top: 28px; }
  .cpb-elig .cpb-card { padding: 20px 18px 18px 22px; }
  .cpb-elig .cpb-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
  .cpb-elig .cpb-day, .cpb-elig .cpb-day:not(:first-child) { grid-column: 1 / -1; width: auto; margin: 6px 0 0; }
  .cpb-elig .cpb-day:first-child { margin-top: 0; }
  .cpb-elig .cpb-chip { flex: none; width: 100%; padding: 0 4px; }
  .cpb-elig .cpb-more, .cpb-elig .cpb-none { grid-column: 1 / -1; }
}

/* r38: the logo is a link home */
a.cpb-mark{text-decoration:none;color:inherit;cursor:pointer;border-radius:4px}
a.cpb-mark:focus-visible{outline:2px solid #114136;outline-offset:4px}
