/* Connected system: one dashboard, three illustrative states */

#what-you-get {
  padding-top: 0;
}

#what-you-get > .get-stage {
  margin-top: 0;
  padding: 56px 0 28px;
}

#what-you-get .get-intro {
  max-width: none;
  margin-bottom: 22px;
}

#get-title {
  max-width: none;
  font-size: clamp(1.9rem, 7.4vw, 3.55rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.get-title__top,
.get-title__line {
  display: block;
}

.caos-os {
  position: relative;
}

.caos-os .caos-board__frame {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 14px 14px;
}

.caos-os .caos-board__chrome {
  display: flex;
}

.caos-os .caos-board__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.caos-os .caos-board__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  min-width: 0;
}

.caos-os .caos-board__head h3 {
  margin: 0;
  font-size: clamp(1.2rem, 4.6vw, 1.55rem);
}

.caos-os .caos-board__note {
  margin: 0;
  max-width: 18em;
  color: #8d8798;
  font-size: 0.92rem;
  line-height: 1.4;
}

.caos-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}

.caos-tab {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 64px;
  margin: 0;
  padding: 10px 6px;
  border: 1px solid #ece6f6;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #1c1824;
  font-family: var(--font-display, "Plus Jakarta Sans", system-ui, sans-serif);
  text-align: center;
  cursor: pointer;
}

.caos-tab__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.caos-tab__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3eeff;
  color: #7a5cff;
}

.caos-tab__icon svg {
  width: 16px;
  height: 16px;
}

.caos-tab__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.caos-tab__q {
  display: none;
  color: #8a8496;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
}

.caos-tab[aria-selected="true"] {
  border-color: transparent;
  background: linear-gradient(100deg, #7b5cff 0%, #6d42f5 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(109, 66, 245, 0.22);
}

.caos-tab[aria-selected="true"] .caos-tab__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.caos-tab[aria-selected="true"] .caos-tab__q {
  color: rgba(255, 255, 255, 0.82);
}

.caos-tab:focus-visible {
  outline: 2px solid #3b1d8f;
  outline-offset: 3px;
}

.caos-question {
  margin: -4px 0 0;
  color: #6f687c;
  font-size: 0.95rem;
  line-height: 1.35;
}

.caos-flow {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.caos-step {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.caos-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 14px 14px 12px;
  border: 1px solid #efeaf6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(80, 50, 140, 0.05);
}

.caos-card__badge {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  background: #f4f0ff;
  color: #6d46f5;
  font-family: var(--font-display, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.caos-card__glyph {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(109, 70, 245, 0.12);
}

.caos-card__glyph svg {
  width: 14px;
  height: 14px;
}

.caos-card__badge--pink { background: #fde8f4; color: #d63d8c; }
.caos-card__badge--pink .caos-card__glyph { background: rgba(214, 61, 140, 0.12); }
.caos-card__badge--mint { background: #e7f8ef; color: #12804e; }
.caos-card__badge--mint .caos-card__glyph { background: rgba(18, 128, 78, 0.12); }
.caos-card__badge--rose { background: #fde8ee; color: #d1265a; }
.caos-card__badge--rose .caos-card__glyph { background: rgba(209, 38, 90, 0.12); }
.caos-card__badge--slate { background: #f3f1f6; color: #6f687c; }
.caos-card__badge--slate .caos-card__glyph { background: rgba(111, 104, 124, 0.12); }

.caos-card h4 {
  margin: 0;
  color: #16141c;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.caos-card > p:not(.caos-card__badge):not(.caos-card__meta) {
  margin: 6px 0 0;
  color: #6f687c;
  font-size: 0.92rem;
  line-height: 1.4;
}

.caos-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f3eef8;
  min-width: 0;
}

.caos-card__meta span:not(.caos-avatar):not(.caos-card__tick) {
  min-width: 0;
}

.caos-card__meta strong,
.caos-card__meta small {
  display: block;
  overflow-wrap: anywhere;
}

.caos-card__meta strong {
  color: #1c1824;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.caos-card__meta small {
  color: #8a8496;
  font-size: 0.75rem;
  line-height: 1.3;
}

.caos-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #efe8ff;
  color: #6d46f5;
  font-family: var(--font-display, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 800;
}

.caos-avatar--jd { background: #e7f0ff; color: #3b6fd8; }
.caos-avatar--mk { background: #e7f8ef; color: #12804e; }
.caos-avatar--al { background: #fde8ee; color: #d1265a; margin-left: auto; }

.caos-card__tick {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e7f8ef;
  color: #12804e;
}

.caos-card__tick svg,
.caos-card__tick--plain svg {
  width: 15px;
  height: 15px;
}

.caos-card__tick--plain {
  background: #f4f0ff;
  color: #6d46f5;
}

.caos-card__tick--wait {
  background: #f3f1f6;
  color: #6f687c;
}

.caos-join {
  display: grid;
  place-items: center;
  width: 28px;
  height: 36px;
  color: #b7a6f2;
}

.caos-join__h { display: none; }
.caos-join__v { display: block; width: 28px; height: 36px; }

.caos-join path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.caos-foot {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #efeaf6;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.caos-foot__take {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #1c1824;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.caos-foot__mark {
  flex: none;
  margin-top: 2px;
  color: #7a5cff;
}

.caos-foot__mark svg { width: 14px; height: 14px; }

.caos-foot__note {
  margin: 0;
  color: #8a8496;
  font-size: 0.84rem;
  font-style: italic;
  line-height: 1.4;
}

.caos-close {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.caos-close .get-own {
  margin: 0;
}

.caos-explore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7b5cff 0%, #6a3cf0 100%);
  color: #fff;
  font-family: var(--font-display, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(109, 66, 245, 0.22);
}

.caos-explore:hover {
  background: linear-gradient(90deg, #6d4ef6 0%, #5c30e4 100%);
}

.caos-explore:focus-visible {
  outline: 2px solid #3b1d8f;
  outline-offset: 3px;
}

html.js .deliverables:not(.is-open) {
  display: none;
}

@media (min-width: 768px) {
  #what-you-get > .get-stage {
    padding: 72px 0 40px;
  }

  #get-title {
    font-size: clamp(2.4rem, 5vw, 3.7rem);
  }

  .caos-os .caos-board__frame {
    gap: 18px;
    padding: 22px 20px 18px;
  }

  .caos-os .caos-board__head {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem);
    align-items: center;
    column-gap: 18px;
  }

  .caos-os .caos-board__head h3 {
    font-size: 1.7rem;
  }

  .caos-os .caos-board__note {
    text-align: right;
  }

  .caos-tab {
    justify-items: start;
    min-height: 0;
    padding: 12px 14px;
    text-align: left;
  }

  .caos-tab__main {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
  }
  .caos-tab__q { display: block; }

  .caos-question { display: none; }

  .caos-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 22px;
    align-items: stretch;
  }

  .caos-step {
    position: relative;
    display: block;
    height: 100%;
  }

  .caos-card { height: 100%; }

  .caos-join {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: calc(100% + 11px);
    width: 36px;
    height: 28px;
    transform: translate(-50%, -50%);
  }

  .caos-join__h { display: block; width: 36px; height: 28px; }
  .caos-join__v { display: none; }

  .caos-foot {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    align-items: center;
    column-gap: 18px;
    padding: 14px 16px;
  }

  .caos-foot__note {
    padding-left: 16px;
    border-left: 1px solid #ece6f5;
    text-align: right;
  }

  .caos-close {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 26px;
  }

  .caos-explore { width: auto; min-height: 52px; padding-inline: 22px; }
}

@media (min-width: 1024px) {
  #what-you-get > .get-stage {
    padding: 88px 0 48px;
  }

  #get-title {
    font-size: clamp(2.7rem, 3.5vw, 3.5rem);
  }

  .caos-os .caos-board {
    border-radius: 28px;
  }

  .caos-os .caos-board__frame {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 26px 24px 20px;
    border-radius: 22px;
  }

  .caos-os .caos-board__head,
  .caos-os .caos-detail-source {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .caos-panel:not(.is-playing) .caos-card,
  html.js .caos-panel:not(.is-playing) .caos-join,
  html.js .caos-panel:not(.is-playing) .caos-foot {
    opacity: 0;
  }

  html.js .caos-panel.is-playing .caos-card,
  html.js .caos-panel.is-playing .caos-foot {
    animation: system-stage-in 420ms var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
  }

  html.js .caos-panel.is-playing .caos-join {
    animation: caos-fade 420ms var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
  }

  html.js .caos-panel.is-playing .caos-step:nth-child(1) .caos-card { animation-delay: 40ms; }
  html.js .caos-panel.is-playing .caos-step:nth-child(2) .caos-card { animation-delay: 140ms; }
  html.js .caos-panel.is-playing .caos-step:nth-child(3) .caos-card { animation-delay: 240ms; }
  html.js .caos-panel.is-playing .caos-step:nth-child(4) .caos-card { animation-delay: 340ms; }
  html.js .caos-panel.is-playing .caos-step:nth-child(1) .caos-join { animation-delay: 160ms; }
  html.js .caos-panel.is-playing .caos-step:nth-child(2) .caos-join { animation-delay: 260ms; }
  html.js .caos-panel.is-playing .caos-step:nth-child(3) .caos-join { animation-delay: 360ms; }
  html.js .caos-panel.is-playing .caos-foot { animation-delay: 420ms; }

  html.js .caos-panel.is-playing .caos-join path {
    animation: caos-draw 520ms var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
  }

  html.js .caos-panel.is-playing .caos-step:nth-child(1) .caos-join path { animation-delay: 160ms; }
  html.js .caos-panel.is-playing .caos-step:nth-child(2) .caos-join path { animation-delay: 260ms; }
  html.js .caos-panel.is-playing .caos-step:nth-child(3) .caos-join path { animation-delay: 360ms; }
}

@keyframes caos-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes caos-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .caos-flow .caos-card,
  .caos-flow .caos-join,
  .caos-flow .caos-foot,
  .caos-join path {
    opacity: 1;
    animation: none;
    stroke-dashoffset: 0;
  }
}

[data-theme="dark"] .caos-os .caos-board__note,
[data-theme="dark"] .caos-question,
[data-theme="dark"] .caos-card > p:not(.caos-card__badge):not(.caos-card__meta),
[data-theme="dark"] .caos-card__meta small,
[data-theme="dark"] .caos-foot__note,
[data-theme="dark"] .caos-tab__q {
  color: #c5bdd4;
}

[data-theme="dark"] .caos-tab {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f4efff;
}

[data-theme="dark"] .caos-tab__icon {
  background: rgba(122, 92, 255, 0.18);
  color: #d2c6ff;
}

[data-theme="dark"] .caos-card,
[data-theme="dark"] .caos-foot {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(28, 22, 40, 0.72);
}

[data-theme="dark"] .caos-card h4,
[data-theme="dark"] .caos-card__meta strong,
[data-theme="dark"] .caos-foot__take {
  color: #f4efff;
}

[data-theme="dark"] .caos-card__meta {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .caos-foot__note {
  border-left-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .caos-tab:focus-visible,
[data-theme="dark"] .caos-explore:focus-visible {
  outline-color: #d2c6ff;
}

html.caos-modal-open,
html.caos-modal-open body {
  overflow: hidden;
}

#what-you-get:has(.get-stage.is-splash-front) {
  z-index: 3;
}

#what-you-get > .get-stage.is-splash-front > .shell {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}

.caos-stage-cover {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  overflow: auto;
  background: rgba(28, 16, 48, 0.38);
}

#what-you-get > .get-stage:not(.is-splash-front) > .caos-stage-cover {
  display: none;
}

.caos-stage-cover .caos-splash {
  width: min(100%, 640px);
  margin: auto;
  padding: 28px 18px 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(48, 24, 90, 0.22);
}

.caos-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px;
  pointer-events: auto;
}

.caos-modal[hidden] {
  display: none !important;
}

.caos-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(28, 16, 48, 0.46);
}

.caos-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 640px);
  max-height: min(92dvh, 860px);
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(48, 24, 90, 0.22);
  color: #16141c;
}

.caos-modal__dialog:has(.caos-modal__detail:not([hidden])) {
  width: min(100%, 1040px);
}

.caos-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #3a3348;
}

.caos-modal__close svg {
  width: 18px;
  height: 18px;
}

.caos-modal__body {
  position: relative;
  overflow: auto;
  min-height: 0;
  padding: 28px 18px 22px;
}

.caos-modal.is-splash .caos-splash {
  position: absolute;
  inset: 0;
  z-index: 4;
  align-content: center;
  overflow: auto;
  background: #fff;
  padding: 28px 18px 22px;
}

.caos-modal:not(.is-splash) .caos-splash {
  display: none;
}

.caos-splash,
.caos-modal__detail {
  min-width: 0;
}

.caos-splash {
  display: grid;
  justify-items: center;
  text-align: center;
}

.caos-splash__mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 14px;
  border-radius: 22px;
  background: #f4f0ff;
}

.caos-splash__mark svg {
  width: 54px;
  height: 64px;
}

.caos-splash h2,
.caos-detail__title {
  max-width: 16em;
  margin: 0;
  color: #16141c;
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.caos-splash h2:focus,
.caos-detail__title:focus {
  outline: none;
}

.caos-splash__lead {
  max-width: 36em;
  margin: 10px 0 0;
  color: #6f687c;
  font-size: 1rem;
  line-height: 1.45;
}

.caos-splash__choices {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}

.caos-splash__choice {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border: 1.5px solid #ece6f6;
  border-radius: 16px;
  background: #fff;
  color: #16141c;
  text-align: left;
}

.caos-splash__choice.is-selected {
  border-color: #7c4dff;
  background: #f6f2ff;
  box-shadow: 0 0 0 1px #7c4dff;
}

.caos-splash__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3eeff;
  color: #7a5cff;
}

.caos-splash__icon svg {
  width: 22px;
  height: 22px;
}

.caos-splash__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.caos-splash__q {
  display: block;
  margin-top: 2px;
  color: #6f687c;
  font-size: 0.92rem;
  line-height: 1.35;
}

.caos-splash__start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #6e2cf5;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.caos-splash__overview {
  margin-top: 12px;
  min-height: 44px;
  padding: 10px 8px;
  color: #6d46f5;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.caos-detail__title {
  margin-bottom: 12px;
  text-align: left;
}

.caos-modal__detail .caos-detail-source {
  min-width: 0;
}

.caos-modal__detail .caos-question {
  margin: 10px 0 12px;
}

.caos-modal__detail .caos-tab:not([aria-selected="true"]) {
  background: #fff;
}

@media (min-width: 768px) {
  .caos-modal {
    padding: 24px;
  }

  .caos-modal__body {
    padding: 32px 28px 26px;
  }

  .caos-splash__choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .caos-splash__choice {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 148px;
    padding: 16px 12px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .caos-splash.is-leaving,
  .caos-modal__detail.is-leaving {
    opacity: 0;
  }

  .caos-splash,
  .caos-modal__detail {
    transition: opacity 180ms ease;
  }
}
