/* BestCareMatch card deck. Layout: one centered play-card per slide, neighbors peeking, gold-framed ivory cards on an aqua-sage band. */
.bcm-cnp {
  --ground-1: #dcefe9;
  --ground-2: #f1f8f4;
  --ivory: #fffdf6;
  --ivory-2: #fbf6e8;
  --ink: #12314a;        /* deep navy text */
  --ink-2: #2c4a5e;      /* body text */
  --teal: #1d6b67;       /* selected / buttons */
  --teal-deep: #15524f;
  --sage: #e3efe7;
  --sage-line: #b9d3c6;
  --gold-a: #6f4f0c;
  --gold-b: #b8892b;
  --gold-c: #e6c45e;
  --gold-d: #fff1b8;
  --gold-e: #c99a2e;
  --metal: linear-gradient(115deg, var(--gold-a) 0%, var(--gold-b) 14%, var(--gold-c) 26%, var(--gold-d) 34%, var(--gold-e) 44%, var(--gold-a) 56%, var(--gold-c) 70%, var(--gold-d) 78%, var(--gold-b) 90%, var(--gold-a) 100%);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --w: min(460px, 86vw);
  color-scheme: light;
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding-block: 30px 24px;
  border-radius: 34px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.75), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, var(--ground-1), var(--ground-2));
  font-family: var(--text);
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.bcm-cnp *, .bcm-cnp *::before, .bcm-cnp *::after { box-sizing: border-box; }
.bcm-cnp button { font: inherit; color: inherit; }

.bcm-stage { container-type: inline-size; }
@supports (width: 1cqi) { .bcm-cnp { --w: min(460px, 86cqi); } }

/* Track: native swipe with scroll-snap */
.bcm-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: calc((100% - var(--w)) / 2);
  padding-block: 10px 18px;
  outline: none;
  -webkit-overflow-scrolling: touch;
}
.bcm-track::-webkit-scrollbar { display: none; }
.bcm-slide {
  flex: 0 0 var(--w);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  transition: transform .6s ease, opacity .6s ease;
  opacity: .55;
  transform: scale(.955);
}
.bcm-slide.is-active { opacity: 1; transform: none; }

/* Metallic gold frame with a slow sheen */
.bcm-frame {
  flex: 1;
  display: flex;
  padding: 3px;
  border-radius: 30px;
  background: var(--metal);
  background-size: 260% 260%;
  animation: bcm-sheen 14s ease-in-out infinite alternate;
  box-shadow: 0 18px 38px -18px rgba(18, 49, 74, .45), 0 2px 6px rgba(111, 79, 12, .18);
}
@keyframes bcm-sheen { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }

.bcm-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 27px;
  padding: 30px 24px 26px;
  background:
    radial-gradient(140% 60% at 50% -10%, #ffffff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, var(--ivory), var(--ivory-2));
  min-width: 0;
}
.bcm-card::before { /* fine inner gold hairline */
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 20px;
  border: 1px solid rgba(184, 137, 43, .55);
  pointer-events: none;
}
.bcm-card > * { position: relative; }

/* Card head */
.bcm-head { display: flex; align-items: center; gap: 12px; }
.bcm-coin {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--metal);
  background-size: 220% 220%;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 6px rgba(111,79,12,.25);
}
.bcm-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}
.bcm-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: 29px;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
  letter-spacing: -.005em;
}
.bcm-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-2);
  text-wrap: pretty;
}
.bcm-rule {
  height: 12px;
  display: grid;
  grid-template-columns: 1fr 12px 1fr;
  align-items: center;
  gap: 10px;
}
.bcm-rule::before, .bcm-rule::after {
  content: "";
  height: 1.5px;
  background: linear-gradient(90deg, rgba(184,137,43,0), var(--gold-b) 40%, var(--gold-c));
}
.bcm-rule::after { background: linear-gradient(90deg, var(--gold-c), var(--gold-b) 60%, rgba(184,137,43,0)); }
.bcm-rule i {
  width: 9px; height: 9px;
  justify-self: center;
  transform: rotate(45deg);
  background: var(--metal);
  background-size: 300% 300%;
}

/* Question groups */
.bcm-q { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bcm-qlabel { font-size: 16px; font-weight: 700; color: var(--ink); }
.bcm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bcm-chip {
  appearance: none;
  border: 1.5px solid var(--sage-line);
  background: #ffffff;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.bcm-chip::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--sage-line);
  background: #fff;
  flex: 0 0 auto;
}
.bcm-chip:hover { border-color: var(--teal); }
.bcm-chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
  box-shadow: 0 6px 14px -8px rgba(29,107,103,.8);
}
.bcm-chip[aria-pressed="true"]::before {
  border-color: #ffffff;
  background: radial-gradient(circle, var(--gold-c) 0 45%, #ffffff 50%);
}

/* Rows with three-way choice */
.bcm-rows { display: flex; flex-direction: column; gap: 8px; }
.bcm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(185, 211, 198, .9);
}
.bcm-row:last-child { border-bottom: 0; }
.bcm-rowlabel { font-size: 16.5px; font-weight: 600; color: var(--ink); min-width: 0; }
.bcm-seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1.5px solid var(--sage-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.bcm-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 11px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  min-width: 52px;
}
.bcm-seg button + button { border-left: 1.5px solid var(--sage-line); }
.bcm-seg button[aria-pressed="true"] { background: var(--teal); color: #fff; }

/* Care type tiles */
.bcm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.bcm-tile {
  appearance: none;
  text-align: left;
  border: 1.5px solid var(--sage-line);
  background: #fff;
  border-radius: 16px;
  padding: 11px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.bcm-tile b { font-size: 15.5px; color: var(--ink); line-height: 1.2; }
.bcm-tile span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); line-height: 1.3; }
.bcm-tile[aria-pressed="true"] { border-color: var(--teal); background: var(--sage); box-shadow: inset 0 0 0 1.5px var(--teal); }

.bcm-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--sage);
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}
.bcm-note strong { font-weight: 700; }

/* Cover */
.bcm-cover { align-items: center; text-align: center; justify-content: center; gap: 14px; }
.bcm-logo { width: 150px; height: auto; filter: drop-shadow(0 8px 14px rgba(111,79,12,.25)); }
.bcm-cover .bcm-title { font-size: 40px; }
.bcm-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; width: 100%; }
.bcm-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.bcm-steps li::before {
  content: "";
  width: 12px; height: 12px; margin: 5px 0 0 7px;
  transform: rotate(45deg);
  background: var(--metal);
  background-size: 300% 300%;
}
.bcm-hint { font-size: 14.5px; font-weight: 600; color: var(--teal); display: inline-flex; align-items: center; gap: 8px; }
.bcm-hint svg { width: 18px; height: 18px; }

/* Summary */
.bcm-summary { display: flex; flex-direction: column; gap: 0; }
.bcm-sumrow { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(184,137,43,.28); }
.bcm-sumrow:last-child { border-bottom: 0; }
.bcm-sumrow dt { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); padding-top: 2px; }
.bcm-sumrow dd { margin: 0; font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.4; min-width: 0; }
.bcm-sumrow dd.is-empty { color: #6c8191; font-weight: 500; font-style: italic; }
.bcm-textbtn { appearance: none; border: 0; background: none; padding: 4px 0; font-size: 14.5px; font-weight: 700; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; align-self: flex-start; }

/* Countries */
.bcm-countries { display: flex; flex-wrap: wrap; gap: 7px; }
.bcm-countries .bcm-chip { padding: 7px 12px; font-size: 14.5px; }
.bcm-countries .bcm-chip::before { display: none; }
.bcm-panel { display: flex; flex-direction: column; gap: 12px; }
.bcm-panel[hidden] { display: none; }
.bcm-panel h4 { margin: 0; font-family: var(--display); font-weight: 650; font-size: 21px; color: var(--ink); }
.bcm-fact { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--ink-2); }
.bcm-fact::before { content: ""; width: 10px; height: 10px; margin: 7px 0 0 5px; transform: rotate(45deg); background: var(--metal); background-size: 300% 300%; }
.bcm-fact strong { color: var(--ink); font-weight: 700; }
.bcm-fact a { color: var(--teal-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* Join */
.bcm-join { justify-content: center; text-align: center; align-items: center; }
.bcm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  background: var(--teal);
  color: #ffffff !important;
  font-size: 18px; font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 0 0 3px var(--ivory), 0 0 0 5px var(--gold-b), 0 12px 22px -12px rgba(21,82,79,.9);
}
.bcm-btn:hover { background: var(--teal-deep); }
.bcm-link2 { font-size: 16px; font-weight: 700; color: var(--teal-deep) !important; text-decoration: underline; text-underline-offset: 3px; }
.bcm-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; text-align: left; width: 100%; }
.bcm-perks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.bcm-perks li::before { content: ""; width: 10px; height: 10px; margin: 6px 0 0 5px; transform: rotate(45deg); background: var(--metal); background-size: 300% 300%; }
.bcm-fine { font-size: 13.5px; line-height: 1.45; font-weight: 500; color: #4d6677; margin: 0; }

/* Controls */
.bcm-controls {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  flex-wrap: wrap;
}
.bcm-ctl {
  appearance: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  padding: 2px;
  background: var(--metal);
  background-size: 260% 260%;
  cursor: pointer;
  box-shadow: 0 6px 14px -8px rgba(18,49,74,.6);
}
.bcm-ctl span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--ivory); color: var(--ink); }
.bcm-ctl svg { width: 20px; height: 20px; }
.bcm-dots { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 60%; }
.bcm-dot { appearance: none; border: 0; padding: 0; width: 9px; height: 9px; border-radius: 99px; background: rgba(18,49,74,.22); cursor: pointer; overflow: hidden; position: relative; transition: width .3s ease; }
.bcm-dot[aria-current="true"] { width: 30px; background: rgba(18,49,74,.18); }
.bcm-dot i { position: absolute; inset: 0; width: 0; background: var(--metal); background-size: 300% 100%; }
.bcm-dot[aria-current="true"] i { width: 100%; }
.bcm-cnp.is-playing .bcm-dot[aria-current="true"] i { width: 0; animation: bcm-fill var(--dur, 9s) linear forwards; }
@keyframes bcm-fill { to { width: 100%; } }
.bcm-count { font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; }
.bcm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bcm-cnp :focus-visible { outline: 3px solid var(--gold-b); outline-offset: 3px; border-radius: 12px; }

@container (min-width: 700px) {
  .bcm-title { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  .bcm-frame, .bcm-ctl { animation: none; }
  .bcm-slide { transition: none; }
  .bcm-cnp.is-playing .bcm-dot[aria-current="true"] i { animation: none; width: 100%; }
}

/* ---------- Print / PDF ---------- */
.bcm-cnp.is-print { border-radius: 0; background: none; padding: 0; max-width: none; overflow: visible; }
.bcm-cnp.is-print .bcm-controls, .bcm-cnp.is-print .bcm-hint, .bcm-cnp.is-print .bcm-textbtn, .bcm-cnp.is-print .bcm-countries { display: none !important; }
.bcm-cnp.is-print .bcm-track { display: block; overflow: visible; padding: 0; }
.bcm-cnp.is-print .bcm-slide { opacity: 1; transform: none; width: 100%; height: 10in; break-after: page; page-break-after: always; display: flex; padding: 0.15in 0.05in; }
.bcm-cnp.is-print .bcm-slide:last-child { break-after: auto; page-break-after: auto; }
.bcm-cnp.is-print .bcm-frame { animation: none; box-shadow: none; }
.bcm-cnp.is-print .bcm-card { padding: 40px 44px 34px; gap: 18px; }
.bcm-cnp.is-print .bcm-panel[hidden] { display: flex; }
.bcm-cnp.is-print .bcm-panel { gap: 7px; }
.bcm-cnp.is-print .bcm-panel h4 { font-size: 16px; margin-top: 4px; }
.bcm-cnp.is-print .bcm-fact { font-size: 12.5px; line-height: 1.35; }
.bcm-cnp.is-print .bcm-world { display: flex; flex-direction: column; gap: 6px; }
.bcm-cnp.is-print .bcm-world .bcm-panel { break-inside: avoid; margin-bottom: 10px; }
.bcm-cnp.is-print .bcm-sumrow dd.is-empty { color: transparent; border-bottom: 1px solid var(--sage-line); }
.bcm-print-only { display: none !important; }
.bcm-cnp.is-print .bcm-print-only { display: block !important; }
.bcm-cnp.is-print .bcm-web-only { display: none !important; }

/* Two-column choice cells (daily help, memory) */
.bcm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 10px; }
.bcm-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 9px 9px 10px; border-radius: 14px; background: #ffffff; border: 1px solid rgba(185, 211, 198, .9); }
.bcm-celllabel { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.2; min-height: 1.2em; }
.bcm-cell .bcm-seg { display: grid; width: 100%; }
.bcm-cell .bcm-seg button { min-width: 0; padding: 6px 2px; font-size: 13.5px; }
.bcm-legend { margin: 0; font-size: 14px; font-weight: 600; color: #4d6677; text-align: center; }
.bcm-sumrow { grid-template-columns: 96px 1fr; padding: 8px 0; }
.bcm-sumrow dd.is-empty { color: #8a9ba7; font-style: normal; }

/* Phone: tighter card so the whole card and the controls fit one screen */
@container (max-width: 520px) {
  .bcm-card { padding: 24px 18px 20px; gap: 13px; }
  .bcm-card::before { inset: 7px; }
  .bcm-title { font-size: 24px; }
  .bcm-cover .bcm-title { font-size: 34px; }
  .bcm-lead { font-size: 16.5px; }
  .bcm-chip { font-size: 15px; padding: 7px 11px; gap: 7px; }
  .bcm-chip::before { width: 12px; height: 12px; }
  .bcm-chips { gap: 7px; }
  .bcm-q { gap: 8px; }
  .bcm-qlabel { font-size: 15px; }
  .bcm-note { font-size: 14.5px; padding: 10px 12px; }
  .bcm-tile { padding: 9px 10px; }
  .bcm-tile b { font-size: 14.5px; }
  .bcm-tile span { font-size: 12.5px; }
  .bcm-steps li, .bcm-perks li { font-size: 16px; }
  .bcm-fact { font-size: 15px; }
  .bcm-sumrow dd { font-size: 15.5px; }
  .bcm-countries .bcm-chip { font-size: 13.5px; padding: 6px 10px; }
  .bcm-panel h4 { font-size: 19px; }
  .bcm-track { padding-block: 6px 14px; }
}
.bcm-cnp.is-print .bcm-cell .bcm-seg button { font-size: 12px; }
.bcm-chips.is-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.bcm-chips.is-grid .bcm-chip { width: 100%; text-align: left; border-radius: 14px; align-items: flex-start; }
.bcm-chips.is-grid .bcm-chip::before { margin-top: 2px; }
@container (max-width: 520px) {
  .bcm-chips.is-grid .bcm-chip { font-size: 14.5px; padding: 8px 10px; }
  .bcm-join .bcm-perks li { font-size: 15.5px; }
}
@media (max-width: 600px) {
  /* Phones: the card band runs edge to edge, so each card gets the full screen width. */
  .bcm-cnp { padding-block: 16px 14px; border-radius: 0; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
}
@container (max-width: 380px) {
  .bcm-track, .bcm-slide { --w: min(460px, 90cqi); }
  .bcm-cell .bcm-seg button { font-size: 12.5px; padding: 6px 1px; }
}
/* clearer three-way pills inside cells */
.bcm-cell .bcm-seg { border: 0; background: none; gap: 4px; overflow: visible; }
.bcm-cell .bcm-seg button { border: 1.5px solid var(--sage-line); border-radius: 999px; background: #fff; }
.bcm-cell .bcm-seg button + button { border-left: 1.5px solid var(--sage-line); }
.bcm-cell .bcm-seg button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #ffffff; }
/* print: booklet card pages */
.bcm-cnp.is-print .bcm-slide { height: 7.9in; padding: 0; }
.bcm-cnp.is-print .bcm-card { padding: 30px 26px 24px; gap: 14px; }

.bcm-cnp.is-print .bcm-world .bcm-panel { margin-bottom: 6px; gap: 4px; }
.bcm-cnp.is-print .bcm-world .bcm-panel h4 { font-size: 17px; margin: 4px 0 0; }
.bcm-cnp.is-print .bcm-world .bcm-fact { font-size: 12.5px; line-height: 1.4; grid-template-columns: 16px 1fr; gap: 7px; }
.bcm-cnp.is-print .bcm-world .bcm-fact::before { width: 7px; height: 7px; margin: 4px 0 0 3px; }
.bcm-cnp.is-print .bcm-stage { container-type: inline-size; }
.bcm-cnp.is-print .bcm-stage { container-type: normal; }

/* ---------- Account: signed-in and signed-out parts, save bar ---------- */
.bcm-cnp:not(.is-in) .bcm-in-only { display: none !important; }
.bcm-cnp.is-in .bcm-out-only { display: none !important; }
.bcm-savebar { padding: 14px max(16px, env(safe-area-inset-left, 0px)) 0; text-align: center; }
.bcm-savebar[hidden], .bcm-save-ask[hidden], .bcm-save-status[hidden] { display: none !important; }
.bcm-save-ask { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 18px; background: #ffffff; border: 1.5px solid var(--sage-line); }
.bcm-save-ask p { margin: 0; font-size: 15.5px; line-height: 1.45; font-weight: 500; color: var(--ink); }
.bcm-save-ask a { color: var(--teal-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.bcm-savebtn { appearance: none; border: 0; cursor: pointer; min-height: 46px; padding: 0 24px; border-radius: 999px; background: var(--teal); color: #ffffff !important; font-size: 16.5px; font-weight: 700; box-shadow: 0 0 0 2px var(--ivory), 0 0 0 4px var(--gold-b); }
.bcm-savebtn:hover { background: var(--teal-deep); }
.bcm-save-status { margin: 0; font-size: 15px; font-weight: 700; color: var(--teal-deep); }
.bcm-save-status.is-error { color: #8a3a12; }
