/* OneSelf · Blues Index page. Background moves from 3 a.m. blue to morning as answers come in. */
.bix-navlink { color: var(--cream); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 6px; }
@media (max-width: 640px) { .bix-navlink { display: none; } }

.bix-stage {
  --dawn: 0;
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, #071019 0%, #0A1822 45%, #0E2233 100%);
}
.bix-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(246, 182, 120, .55), transparent 60%),
    linear-gradient(180deg, #16324A 0%, #2D5878 55%, #7FA6C4 100%);
  opacity: calc(var(--dawn) * .85);
  transition: opacity 1.6s var(--ease);
}
.bix-stage.is-morning::before { opacity: .95; }

/* Header animation: Cleo walks out of the phone */
.bix-video { padding: clamp(16px, 3vw, 32px) var(--pad) 0; }
.bix-hello-wrap { position: relative; max-width: 1200px; margin: 0 auto; container-type: inline-size; }
.bix-hello {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: clamp(16px, 2vw, 26px); background: #000;
  box-shadow: 0 0 0 1px rgba(243,237,228,.08), 0 40px 80px -50px rgba(0,0,0,.8);
}
.bix-hello::before {
  content: ""; position: absolute; left: 4%; bottom: -20%; width: 42%; height: 80%;
  background: radial-gradient(closest-side, rgba(74,134,236,.28), transparent);
  opacity: 0; transition: opacity 1.2s var(--ease) 1.4s;
}
.bix-hello-wrap.is-on .bix-hello::before { opacity: 1; }
.bix-phone {
  position: absolute; left: 57.4%; top: 1.4%; width: 36.9%; height: auto;
  opacity: 0; transform: translateX(6%);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.bix-hello-wrap.is-on .bix-phone { opacity: 1; transform: none; }
.bix-cleo {
  position: absolute; left: 69.9%; top: 55.9%; height: 30.6%; width: auto;
  transform: translate(-50%, -50%) rotate(14deg); opacity: 0;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.6));
}
.bix-hello-wrap.is-on .bix-cleo { animation: cleoOut 2.2s var(--ease) .9s forwards; }
@keyframes cleoOut {
  0%   { left: 69.9%; top: 55.9%; height: 30.6%; transform: translate(-50%, -50%) rotate(14deg); opacity: 0; }
  12%  { opacity: 1; }
  35%  { left: 60%; top: 52%; height: 44%; transform: translate(-50%, -50%) rotate(4deg) translateY(-4%); }
  100% { left: 22%; top: 53%; height: 82%; transform: translate(-50%, -50%) rotate(0); opacity: 1; }
}
.bix-say {
  position: absolute; left: 33%; top: 14%; width: 25%;
  padding: 1.4cqw 1.6cqw; border-radius: 1.6cqw 1.6cqw 1.6cqw .3cqw;
  background: var(--cream); color: var(--night);
  opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom left;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.bix-say.is-on { opacity: 1; transform: none; }
.bix-say p { margin: 0; font: 600 1.75cqw/1.38 var(--font-body); }
.bix-say .w { opacity: 0; transition: opacity .25s; }
.bix-say .w.is-on { opacity: 1; }
.bix-replay {
  position: absolute; right: 1.6%; bottom: 3%; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(243,237,228,.1); border: 1px solid rgba(243,237,228,.25); color: var(--cream);
  font-size: 18px; cursor: pointer; opacity: 0; transition: opacity .4s;
}
.bix-replay.is-on { opacity: 1; }
/* Phones: the frame is small, so the speech bubble sits under it */
@media (max-width: 640px) {
  .bix-say { position: relative; left: auto; top: auto; width: auto; margin: 14px 0 0; padding: 14px 16px; border-radius: 6px 18px 18px 18px; }
  .bix-say p { font-size: 16px; }
  .bix-replay { width: 30px; height: 30px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bix-hello-wrap.is-on .bix-cleo { animation-duration: .01s; animation-delay: 0s; }
}

.bix-intro { text-align: center; max-width: 860px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--pad) 8px; }
.bix-intro h1 { font-size: clamp(38px, 6.4vw, 76px); }
.bix-intro .lede { margin: 20px auto 0; max-width: 640px; font-size: clamp(17px, 2vw, 21px); color: var(--cream-soft); }

.bix-gate { margin-top: 32px; }
.bix-start { min-height: 62px; padding: 0 40px; font-size: 18px; box-shadow: 0 0 0 8px rgba(74,134,236,.18), 0 0 40px rgba(74,134,236,.35); }
.bix-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 15px; color: var(--cream-soft); }
.bix-facts li::before { content: "💙"; margin-right: 8px; font-size: 13px; }

.bix-chat-wrap { padding: 8px var(--pad) clamp(56px, 8vw, 96px); }
.bix-box { position: relative; margin-top: 12px; }
.bix-box[hidden] { display: none; }
.bix-small { margin: 0; padding: 10px 20px 16px; font-size: 12.5px; color: var(--cream-soft); }

.bix-text { display: flex; gap: 8px; width: 100%; align-items: flex-end; }
.bix-text textarea {
  flex: 1; min-height: 52px; resize: vertical; padding: 12px 14px; border-radius: 16px;
  background: rgba(243,237,228,.06); border: 1px solid rgba(243,237,228,.25); color: var(--cream);
  font: 16px/1.4 var(--font-body);
}
.bix-form { width: 100%; display: grid; gap: 14px; }
.bix-form fieldset { border: 0; margin: 0; padding: 0; }
.bix-form legend, .bix-sel span { font-size: 14px; color: var(--cream-soft); margin-bottom: 8px; display: block; }
.bix-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio:has(input:checked) { background: var(--blues); border-color: var(--blues); color: #fff; }
.chip-radio:has(input:focus-visible) { outline: 2px solid var(--blues); outline-offset: 3px; }
.bix-sel select {
  width: 100%; max-width: 360px; min-height: 46px; padding: 0 14px; border-radius: 12px;
  background: var(--night); color: var(--cream); border: 1px solid rgba(243,237,228,.3); font: 16px var(--font-body);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bix-why { padding: clamp(56px, 8vw, 96px) var(--pad); border-top: 1px solid var(--cream-faint); max-width: 1200px; margin: 0 auto; }
.bix-why h2 { font-size: clamp(30px, 4.6vw, 48px); text-align: center; }
.bix-why-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bix-why-grid > div { padding: 26px; border-radius: 22px; background: rgba(10,24,34,.55); box-shadow: 0 0 0 1px rgba(243,237,228,.08); }
.bix-why-grid h3 { font-size: 22px; line-height: 1.15; }
.bix-why-grid p { margin: 10px 0 0; font-size: 16px; color: var(--cream-soft); }
@media (max-width: 820px) { .bix-why-grid { grid-template-columns: 1fr; } }

/* On phones every answer stays visible: wrap instead of the side scroll used by Ask Cleo */
@media (max-width: 600px) {
  .bix-log { height: 48vh; padding: 16px 14px; }
  .bix-video { padding-left: 12px; padding-right: 12px; }
}

/* ===== v2: chapters, answer cards, stickers, Bravo stamp, Blues Card ===== */
.bix-box { overflow: hidden; }
.bix-track { list-style: none; margin: 0; padding: 10px 14px; display: flex; gap: 6px; border-bottom: 1px solid rgba(243,237,228,.08); }
.bix-track li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; font-size: 13px; color: var(--cream-soft); background: rgba(243,237,228,.04); transition: background .4s, color .4s; min-width: 0; }
.bix-track li.is-now { background: rgba(74,134,236,.22); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(74,134,236,.6); }
.bix-track li.is-done { background: rgba(74,134,236,.9); color: #fff; }
.bix-tk-ic { flex: none; font-size: 14px; }
.bix-tk-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .bix-tk-t { display: none; } .bix-track li { justify-content: center; } .bix-track li.is-now .bix-tk-t { display: inline; } .bix-track li.is-now { flex: 3; } }

.bix-chap { align-self: center; margin: 14px auto 4px; text-align: center; animation: chapIn .6s var(--ease) both; }
.bix-chap-n { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--blues); font-weight: 700; }
.bix-chap-t { display: block; margin-top: 4px; font: 700 22px/1.2 var(--font-display); color: var(--cream); }
@keyframes chapIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

.bix-sticker { font-size: 44px; line-height: 1; padding: 2px 4px; animation: stickIn .55s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes stickIn { from { opacity: 0; transform: scale(.2) rotate(-20deg); } to { opacity: 1; transform: none; } }
.msg-c .bubble-c { animation: bubIn .35s var(--ease) both; }
@keyframes bubIn { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.bix-opts { display: block; padding: 14px 18px 8px; border-top: 1px solid rgba(243,237,228,.08); }
.bix-opts:empty { padding: 0; border: 0; }
.bix-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bix-grid.is-many { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .bix-grid.is-many { grid-template-columns: repeat(2, 1fr); } }
.bix-ans {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 60px; padding: 12px 14px;
  border-radius: 16px; border: 1px solid rgba(243,237,228,.16); background: rgba(243,237,228,.05);
  color: var(--cream); font: 500 15px/1.3 var(--font-body); cursor: pointer;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  animation: ansIn .4s var(--ease) both;
}
.bix-grid .bix-ans:nth-child(2) { animation-delay: .05s; } .bix-grid .bix-ans:nth-child(3) { animation-delay: .1s; }
.bix-grid .bix-ans:nth-child(4) { animation-delay: .15s; } .bix-grid .bix-ans:nth-child(5) { animation-delay: .2s; } .bix-grid .bix-ans:nth-child(6) { animation-delay: .25s; }
@keyframes ansIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bix-ans:hover { background: rgba(74,134,236,.16); border-color: rgba(74,134,236,.6); transform: translateY(-2px); }
.bix-ans:active { transform: scale(.97); }
.bix-ans:focus-visible { outline: 2px solid var(--blues); outline-offset: 2px; }
.bix-ans-e { font-size: 26px; line-height: 1; flex: none; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.bix-ans:hover .bix-ans-e { transform: scale(1.18) rotate(-6deg); }
.bix-ans[aria-pressed="true"] { background: var(--blues); border-color: var(--blues); color: #fff; box-shadow: 0 8px 22px -10px rgba(74,134,236,.9); }
.bix-ans[aria-pressed="true"] .bix-ans-e { transform: scale(1.15); }
.bix-ans.is-picked { background: var(--blues); border-color: var(--blues); color: #fff; transform: scale(1.04); }
.bix-opts.is-leaving { pointer-events: none; }
.bix-opts.is-leaving .bix-ans:not(.is-picked) { opacity: .25; transition: opacity .2s; }
.bix-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.bix-done { min-height: 46px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--cream); color: var(--night); font: 600 15px var(--font-body); cursor: pointer; }
.bix-done:disabled { opacity: .35; cursor: default; }
.bix-skip { display: inline-block; margin-top: 8px; padding: 8px 4px; background: none; border: 0; color: var(--cream-soft); font: 500 14px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bix-row .bix-skip { margin-top: 0; }
.bix-radio { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(243,237,228,.25); cursor: pointer; font-size: 15px; }
.bix-radio input { position: absolute; opacity: 0; pointer-events: none; }
.bix-radio:has(input:checked) { background: var(--blues); border-color: var(--blues); color: #fff; }
.bix-radio:has(input:focus-visible) { outline: 2px solid var(--blues); outline-offset: 3px; }

/* Clap burst and Bravo stamp */
.bix-burst { position: absolute; bottom: 20%; z-index: 6; font-size: 30px; pointer-events: none; animation: burst 2.4s cubic-bezier(.2,.8,.3,1) both; }
@keyframes burst {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), -60vh) rotate(var(--r)) scale(1.1); }
}
.bix-stamp {
  position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; text-align: center; gap: 6px;
  background: radial-gradient(closest-side, rgba(7,16,25,.88), rgba(7,16,25,.55));
  animation: stampIn .55s cubic-bezier(.3,1.5,.5,1) both;
}
.bix-stamp.is-out { opacity: 0; transition: opacity .4s; }
.bix-stamp-clap { font-size: 64px; animation: clap .5s ease-in-out 3; display: inline-block; }
.bix-stamp strong { font: 800 clamp(44px, 7vw, 72px)/1 var(--font-display); color: var(--cream); letter-spacing: -.02em; }
.bix-stamp small { font-size: 18px; color: var(--blues); font-weight: 600; }
@keyframes stampIn { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: none; } }
@keyframes clap { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(-10deg); } }

/* The Blues Card */
.bix-card { max-width: 520px; margin: 32px auto 0; opacity: 0; transform: translateY(30px) scale(.94); transition: opacity .8s var(--ease), transform .8s cubic-bezier(.3,1.3,.5,1); }
.bix-card.is-in { opacity: 1; transform: none; }
.bix-card[hidden] { display: none; }
.bix-bc {
  position: relative; overflow: hidden; padding: 28px 28px 24px; border-radius: 28px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #6FA0F5 0%, transparent 55%), linear-gradient(150deg, #2A63C9 0%, #1B3F86 100%);
  box-shadow: 0 40px 80px -36px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.18);
}
.bix-bc::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.06); }
.bix-bc-k { margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; opacity: .8; }
.bix-bc-hero { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.bix-bc-e { font-size: 64px; line-height: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.3)); }
.bix-bc-pre { margin: 0; font-size: 15px; opacity: .85; }
.bix-bc h3 { margin: 2px 0 0; font: 800 clamp(30px, 5vw, 40px)/1.05 var(--font-display); color: #fff; letter-spacing: -.02em; }
.bix-bc-line { margin: 14px 0 0; font-size: 18px; font-weight: 500; }
.bix-bc-stats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.bix-bc-stats li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.12); font-size: 15px; }
.bix-bc-foot { margin: 16px 0 0; font-size: 12.5px; opacity: .75; }
.bix-bc-act { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.bix-bc-act .btn-primary { background: #fff; color: #1B3F86; }
.bix-bc-act .bix-skip { color: #fff; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .bix-chap, .bix-sticker, .bix-ans, .bix-stamp, .bix-stamp-clap, .msg-c .bubble-c { animation: none !important; }
}
@media (max-width: 600px) {
  .bix-opts { padding: 12px 12px 6px; }
  .bix-grid { gap: 8px; }
  .bix-ans { min-height: 50px; padding: 10px 12px; gap: 10px; font-size: 14px; border-radius: 14px; }
  .bix-ans-e { font-size: 22px; }
  .bix-sticker { font-size: 38px; }
}
