.product-showcase {
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--pink);
}

.product-hint {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin: -24px 0 16px auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.product-hint span {
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
}

.product-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.product-selector {
  position: relative;
  display: grid;
  min-height: 86px;
  align-content: center;
  padding: 12px 15px;
  border: 0;
  background: var(--ink);
  color: var(--surface);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.product-selector::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 4px;
  background: transparent;
  content: "";
}

.product-selector:hover {
  background: rgba(255, 255, 255, 0.08);
}

.product-selector.is-active {
  background: var(--lime);
  color: var(--ink);
}

.product-selector.is-active::after {
  background: var(--blue);
}

.product-selector:focus-visible,
.showcase-nav:focus-visible,
.portfolio-demo button:focus-visible {
  z-index: 5;
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

.product-selector > span {
  margin-bottom: 6px;
  color: var(--pink);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
}

.product-selector.is-active > span {
  color: var(--blue);
}

.product-selector strong,
.product-selector small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-selector strong {
  display: -webkit-box;
  min-height: 30px;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  -webkit-line-clamp: 2;
}

.product-selector small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  white-space: nowrap;
}

.product-selector.is-active small {
  color: rgba(22, 23, 29, 0.62);
}

.product-stage {
  display: grid;
  min-height: 540px;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  background: var(--surface);
}

.product-stage[hidden] {
  display: none;
}

.product-stage.is-visible {
  animation: portfolio-preview-reveal 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes portfolio-preview-reveal {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-story {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border-right: 2px solid var(--ink);
}

.product-story__number,
.product-story__type {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.product-story__number {
  color: var(--blue);
}

.product-story__type {
  margin-top: 28px;
  color: var(--pink);
}

.product-story h3 {
  margin: 12px 0 0;
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.product-story > div > p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.showcase-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}

.showcase-controls {
  display: flex;
  gap: 8px;
}

.showcase-nav {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.showcase-nav:hover {
  background: var(--lime);
}

.product-link {
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.product-link:hover {
  color: var(--blue);
}

.portfolio-frame {
  min-width: 0;
  margin: 24px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(22, 23, 29, 0.18);
}

.portfolio-windowbar {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 6px;
  padding-inline: 12px;
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
}

.portfolio-windowbar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.portfolio-windowbar b {
  max-width: 60%;
  margin-left: auto;
  overflow: hidden;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-demo {
  min-height: 454px;
  padding: 20px;
  color: var(--ink);
}

.portfolio-demo button {
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

.portfolio-demo h4,
.portfolio-demo p {
  margin: 0;
}

.mini-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-choice {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid currentcolor;
  background: transparent;
  font-size: 9px;
  font-weight: 900;
}

.mini-choice:hover,
.mini-choice.is-active {
  background: var(--ink);
  color: #fff;
}

/* Oyabuya Space */
.portfolio-demo--hub {
  background: #11141f;
  color: #f7f3e9;
}

.hub-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hub-topline strong {
  font-family: Georgia, serif;
  font-size: 15px;
}

.hub-topline strong span,
.hub-copy > span {
  color: var(--pink);
}

.hub-topline small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hub-layout {
  display: grid;
  min-height: 380px;
  grid-template-columns: minmax(210px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: center;
}

.hub-copy > span,
.hub-feed > span {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.hub-copy h4 {
  max-width: 410px;
  margin: 12px 0 28px;
  font-size: clamp(27px, 3.2vw, 42px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.portfolio-demo--hub .mini-choice {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.portfolio-demo--hub .mini-choice:hover,
.portfolio-demo--hub .mini-choice.is-active {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.hub-feed {
  position: relative;
  display: grid;
  gap: 9px;
}

.hub-article {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.hub-article span {
  color: var(--pink);
  font-family: Georgia, serif;
  font-style: italic;
}

.hub-article strong {
  font-size: 12px;
}

.hub-orbit {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  justify-self: end;
  padding: 9px 12px;
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-2deg);
}

.hub-orbit b,
.hub-orbit small {
  font-size: 8px;
}

/* Tools catalogue */
.portfolio-demo--tools {
  background: #ede5d1;
}

.tools-toolbar,
.calendar-toolbar,
.wealth-header,
.livestock-header,
.content-top {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tools-toolbar > div:first-child,
.calendar-toolbar > div:first-child,
.wealth-header,
.livestock-header,
.content-top > div {
  display: grid;
  gap: 4px;
}

.tools-toolbar span,
.calendar-toolbar span,
.wealth-header > span,
.livestock-header > span,
.content-top span,
.commerce-top span,
.harvest-panel > span,
.fitrah-title span,
.fidyah-header span,
.waris-heading span {
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.tools-toolbar strong,
.calendar-toolbar strong,
.wealth-header > strong,
.livestock-header > strong,
.content-top strong,
.commerce-top strong,
.fitrah-title strong,
.fidyah-header strong,
.waris-heading strong {
  font-size: 13px;
}

.tools-grid {
  display: grid;
  min-height: 355px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.tool-tile {
  position: relative;
  display: grid;
  min-height: 132px;
  align-content: end;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #fffdf7;
  box-shadow: 4px 4px 0 var(--ink);
}

.tool-tile:nth-child(2n) {
  background: var(--lime);
}

.tool-tile:nth-child(3n) {
  background: var(--pink);
}

.tool-tile > span {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-tile strong {
  font-size: 16px;
  letter-spacing: -0.04em;
}

.tool-tile small {
  margin-top: 3px;
  color: rgba(22, 23, 29, 0.65);
  font-size: 8px;
}

.tool-tile i {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-style: normal;
}

/* Waris */
.portfolio-demo--waris {
  background: #efe1bb;
}

.waris-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.waris-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
  border: 1px solid var(--ink);
}

.waris-steps button {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 0;
  border-right: 1px solid var(--ink);
  background: #fff9e9;
  font-size: 9px;
  font-weight: 900;
}

.waris-steps button:last-child {
  border-right: 0;
}

.waris-steps button.is-active {
  background: var(--ink);
  color: #fff;
}

.waris-steps span {
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.waris-panel {
  min-height: 312px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: #fffdf7;
  box-shadow: 5px 5px 0 #9a743c;
}

.waris-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.waris-form label,
.content-entry label {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid #b9ab89;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.waris-form label strong,
.content-entry label strong {
  color: var(--ink);
  font-size: 12px;
}

.waris-net {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--lime);
}

.waris-net span,
.waris-net strong {
  font-size: 11px;
}

.waris-heirs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.waris-heirs > div {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--ink);
}

.waris-heirs span {
  color: var(--blue);
  font-family: Georgia, serif;
  font-style: italic;
}

.waris-heirs strong {
  font-size: 14px;
}

.waris-heirs small {
  color: var(--muted);
  font-size: 8px;
}

.waris-heirs button {
  grid-column: 1 / -1;
  min-height: 42px;
  border: 1px dashed var(--ink);
  background: transparent;
  font-size: 9px;
  font-weight: 900;
}

.waris-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.waris-status span,
.waris-status b {
  font-size: 8px;
  letter-spacing: 0.1em;
}

.waris-status b {
  padding: 5px 8px;
  background: var(--pink);
}

.waris-result table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8px;
}

.waris-result th,
.waris-result td {
  padding: 8px;
  border: 1px solid #c9bea3;
  text-align: left;
}

.waris-result th {
  background: var(--ink);
  color: #fff;
}

.waris-insight {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 10px;
  border-left: 5px solid var(--blue);
  background: #ebeefc;
}

.waris-insight strong,
.waris-insight span {
  font-size: 8px;
}

/* Calendar */
.portfolio-demo--calendar {
  background: #dce5ff;
}

.calendar-conversion {
  display: grid;
  min-height: 320px;
  grid-template-columns: 1fr 42px 1fr;
  gap: 12px;
  align-items: center;
}

.calendar-sheet {
  display: grid;
  min-height: 250px;
  place-content: center;
  padding: 20px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  text-align: center;
}

.calendar-sheet small,
.calendar-sheet i {
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.calendar-sheet strong {
  margin: 10px 0 0;
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 0.9;
}

.calendar-sheet span {
  margin: 8px 0 18px;
  font-size: 13px;
  font-weight: 900;
}

.calendar-sheet i {
  padding-top: 10px;
  border-top: 1px solid var(--ink);
  color: var(--blue);
}

.calendar-sheet--result {
  background: var(--lime);
  transform: rotate(1deg);
}

.calendar-swap {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
}

.calendar-note {
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

/* Zakat mal */
.portfolio-demo--wealth {
  background: #dce6c9;
}

.wealth-profiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 14px;
}

.wealth-profiles .mini-choice {
  padding-inline: 5px;
}

.wealth-board {
  display: grid;
  min-height: 328px;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.wealth-ledger,
.wealth-meter {
  padding: 18px;
  border: 1px solid var(--ink);
  background: #fff;
}

.wealth-ledger {
  display: grid;
  align-content: center;
  gap: 11px;
}

.wealth-ledger > small,
.wealth-meter > small {
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.wealth-ledger > strong {
  margin-bottom: 8px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.wealth-ledger > div {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #d4d0c6;
  font-size: 9px;
}

.wealth-meter {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.wealth-ring {
  display: grid;
  width: 118px;
  height: 118px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 72%, rgba(22, 23, 29, 0.12) 72% 100%);
}

.wealth-ring::before {
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.wealth-ring span {
  z-index: 1;
  font-size: 21px;
  font-weight: 900;
}

.wealth-meter > strong {
  margin-top: 6px;
  font-size: 15px;
}

.wealth-meter > i {
  margin-top: 9px;
  padding: 5px 8px;
  background: var(--lime);
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}

/* Commerce */
.portfolio-demo--commerce {
  background: #ffd5e2;
}

.commerce-top,
.fidyah-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.commerce-top > div,
.fidyah-header > div {
  display: grid;
  gap: 4px;
}

.commerce-top > b,
.content-top > b {
  padding: 6px 8px;
  background: var(--lime);
  font-size: 7px;
}

.commerce-mode {
  margin-bottom: 12px;
}

.commerce-ledger {
  display: grid;
  min-height: 340px;
  grid-template-columns: 1fr 20px 1fr 20px 1.05fr;
  gap: 8px;
  align-items: stretch;
}

.commerce-ledger > div {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--ink);
  background: #fff;
}

.commerce-ledger > i {
  display: grid;
  place-items: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
}

.commerce-ledger small {
  color: var(--blue);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.commerce-ledger span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd8ce;
  font-size: 8px;
}

.commerce-ledger > div > strong {
  margin-top: auto;
  font-size: 20px;
}

.commerce-ledger .commerce-net {
  align-content: center;
  background: var(--lime);
}

.commerce-net > b {
  font-size: 11px;
}
