/* Hāvin public website v0.4.2 — current portal UI hotfix */

.portal-phone-stage {
  height: 638px;
  isolation: isolate;
}

.portal-phone-screen {
  position: relative;
  background: #070b1b;
}

.portal-screen {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  color: #dfe7f3;
  background:
    radial-gradient(circle at 14% 2%, rgba(75, 42, 114, 0.32), transparent 42%),
    #070b1b;
  font-size: 8px;
}

.portal-mini-topbar {
  height: 53px;
  padding: 27px 11px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(198, 204, 214, 0.1);
  background: rgba(6, 10, 25, 0.9);
}

.portal-mini-topbar img {
  width: 74px;
  height: auto;
}

.portal-top-actions {
  display: flex;
  gap: 5px;
}

.portal-top-actions span,
.portal-back,
.portal-close {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 204, 214, 0.13);
  border-radius: 7px;
  color: #a8b5c8;
  background: rgba(13, 22, 42, 0.84);
  font-size: 9px;
}

.portal-mini-page {
  padding: 12px 12px 64px;
}

.portal-mini-page-heading,
.portal-vault-heading,
.portal-capture-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.portal-mini-page-heading > strong {
  margin-right: auto;
  color: #f5f8fc;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.portal-stepper {
  position: relative;
  margin: 14px 2px 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.portal-stepper::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 9%;
  right: 9%;
  height: 1px;
  background: rgba(198, 204, 214, 0.16);
}

.portal-stepper span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #66748b;
}

.portal-stepper b {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 204, 214, 0.17);
  border-radius: 50%;
  background: #0b1124;
  font-size: 6px;
}

.portal-stepper small {
  font-size: 5px;
}

.portal-stepper .active {
  color: #5cb8ff;
}

.portal-stepper .active b {
  border-color: #45a8ed;
  background: linear-gradient(135deg, #315cb8, #45b6e8);
  color: white;
  box-shadow: 0 0 12px rgba(60, 140, 255, 0.25);
}

.portal-capture-panel {
  padding: 10px;
  border: 1px solid rgba(110, 165, 226, 0.16);
  border-radius: 11px;
  background: rgba(13, 24, 48, 0.82);
}

.portal-capture-heading > div,
.portal-vault-heading > div {
  min-width: 0;
}

.portal-capture-heading strong,
.portal-capture-heading small,
.portal-vault-heading strong,
.portal-vault-heading small {
  display: block;
}

.portal-capture-heading strong {
  color: #f3f7fc;
  font-size: 10px;
}

.portal-capture-heading small {
  margin-top: 2px;
  color: #7e8ca2;
  font-size: 5.5px;
}

.portal-capture-heading > span {
  padding: 5px 6px;
  border: 1px solid rgba(198, 204, 214, 0.17);
  border-radius: 6px;
  color: #d6dfeb;
  background: rgba(5, 9, 21, 0.5);
  font-size: 5.5px;
}

.portal-capture-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.portal-capture-grid > div {
  min-height: 90px;
  padding: 10px 7px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px dashed rgba(110, 165, 226, 0.16);
  border-radius: 8px;
  background: rgba(5, 10, 24, 0.54);
}

.portal-capture-grid b {
  width: 27px;
  height: 27px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #62c3ff;
  background: rgba(30, 104, 255, 0.12);
  font-size: 13px;
}

.portal-capture-grid strong {
  color: #edf3fa;
  font-size: 7px;
}

.portal-capture-grid small {
  margin-top: 3px;
  color: #697890;
  font-size: 5px;
}

.portal-mini-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.portal-mini-actions span,
.portal-mini-actions b {
  padding: 7px 9px;
  border: 1px solid rgba(198, 204, 214, 0.14);
  border-radius: 7px;
  font-size: 6px;
}

.portal-mini-actions span {
  color: #c7d1df;
}

.portal-mini-actions b {
  color: white;
  background: linear-gradient(135deg, #263f9f, #3c8cff);
}

.portal-kicker {
  display: block;
  margin-bottom: 6px;
  color: #73b6ff;
  font-size: 5.8px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.portal-command-page h4 {
  margin: 0 0 5px;
  color: #f5f8fc;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.portal-command-page > p {
  margin: 0;
  color: #7d8ba1;
  font-size: 6.4px;
  line-height: 1.45;
}

.portal-health-card {
  margin-top: 11px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(110, 165, 226, 0.15);
  border-radius: 11px;
  background:
    radial-gradient(circle at 90% 50%, rgba(30, 104, 255, 0.22), transparent 48%),
    rgba(10, 19, 39, 0.92);
}

.portal-health-card > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-health-card > div:first-child small {
  color: #70adff;
  font-size: 5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.portal-health-card > div:first-child strong {
  color: #f0f5fb;
  font-size: 9px;
}

.portal-health-card > div:first-child span {
  color: #77869e;
  font-size: 5.4px;
}

.portal-health-ring {
  width: 58px;
  height: 58px;
  display: grid;
  place-content: center;
  border: 6px solid rgba(30, 104, 255, 0.22);
  border-top-color: #3c8cff;
  border-right-color: #6ea5e2;
  border-radius: 50%;
  background: rgba(5, 9, 22, 0.8);
  text-align: center;
  box-shadow: 0 0 18px rgba(30, 104, 255, 0.1);
}

.portal-health-ring b {
  color: white;
  font-size: 14px;
  font-weight: 460;
  line-height: 1;
}

.portal-health-ring small {
  color: #86b8f7;
  font-size: 5px;
}

.portal-command-metrics {
  margin-top: 7px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(198, 204, 214, 0.09);
  border-radius: 9px;
  background: rgba(12, 21, 42, 0.72);
}

.portal-command-metrics span {
  padding: 7px 6px;
  border-right: 1px solid rgba(198, 204, 214, 0.08);
}

.portal-command-metrics span:last-child {
  border-right: 0;
}

.portal-command-metrics small,
.portal-command-metrics b {
  display: block;
}

.portal-command-metrics small {
  color: #65748d;
  font-size: 4.6px;
  text-transform: uppercase;
}

.portal-command-metrics b {
  margin-top: 4px;
  color: #eef4fb;
  font-size: 9px;
}

.portal-command-metrics .gold b {
  color: #f1d378;
}

.portal-mini-section-title {
  margin: 11px 1px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-mini-section-title span {
  color: #87a4cc;
  font-size: 5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.portal-mini-section-title b {
  color: #76b2ff;
  font-size: 5px;
}

.portal-portfolio-card {
  min-height: 56px;
  margin-top: 6px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(110, 165, 226, 0.16);
  border-radius: 9px;
  box-shadow: inset 0 -24px 34px rgba(5, 8, 19, 0.38);
}

.portal-portfolio-card.purple {
  background: linear-gradient(115deg, #281054, #4b2a72 46%, #225ab0);
}

.portal-portfolio-card.blue {
  background: linear-gradient(115deg, #121b48, #263f9f 55%, #1e68ff);
}

.portal-portfolio-card span {
  width: fit-content;
  margin-bottom: auto;
  padding: 2px 4px;
  border-radius: 99px;
  color: #d9e2ef;
  background: rgba(5, 8, 19, 0.48);
  font-size: 4px;
  font-weight: 800;
}

.portal-portfolio-card b {
  color: white;
  font-size: 7.2px;
}

.portal-portfolio-card small {
  margin-top: 2px;
  color: rgba(233, 240, 249, 0.7);
  font-size: 4.7px;
}

.portal-vault-heading strong {
  color: #f6f8fc;
  font-size: 15px;
  font-weight: 520;
  letter-spacing: -0.04em;
}

.portal-vault-heading small {
  margin-top: 3px;
  color: #7c8aa0;
  font-size: 5.3px;
}

.portal-vault-heading > b {
  padding: 6px 7px;
  border-radius: 7px;
  color: white;
  background: linear-gradient(135deg, #263f9f, #3c8cff);
  font-size: 5px;
}

.portal-vault-summary {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid rgba(198, 204, 214, 0.1);
  border-radius: 10px;
  background: rgba(17, 30, 59, 0.9);
}

.portal-vault-summary span {
  min-height: 48px;
  padding: 8px;
  border-right: 1px solid rgba(198, 204, 214, 0.08);
  border-bottom: 1px solid rgba(198, 204, 214, 0.08);
}

.portal-vault-summary span:nth-child(2n) {
  border-right: 0;
}

.portal-vault-summary span:nth-child(n + 3) {
  border-bottom: 0;
}

.portal-vault-summary .active {
  box-shadow: inset 0 -2px #47b9f0;
  background: rgba(30, 104, 255, 0.08);
}

.portal-vault-summary b,
.portal-vault-summary small {
  display: block;
}

.portal-vault-summary b {
  color: #f2f6fb;
  font-size: 11px;
  font-weight: 480;
}

.portal-vault-summary small {
  margin-top: 3px;
  color: #8996aa;
  font-size: 5px;
}

.portal-vault-search {
  margin: 9px 0;
  padding: 8px;
  border: 1px solid rgba(198, 204, 214, 0.12);
  border-radius: 8px;
  color: #6f7d93;
  background: rgba(5, 10, 23, 0.52);
  font-size: 5.5px;
}

.portal-record-row {
  margin-top: 6px;
  padding: 7px;
  display: grid;
  grid-template-columns: 25px 1fr auto;
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(198, 204, 214, 0.09);
  border-radius: 8px;
  background: rgba(12, 21, 42, 0.72);
}

.portal-record-row > span {
  width: 25px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #7fc4ff;
  background: rgba(30, 104, 255, 0.12);
  font-size: 5px;
  font-weight: 850;
}

.portal-record-row strong,
.portal-record-row small {
  display: block;
}

.portal-record-row strong {
  color: #ebf1f8;
  font-size: 6.5px;
}

.portal-record-row small {
  margin-top: 2px;
  color: #6f7d94;
  font-size: 5px;
}

.portal-record-row > b {
  color: #7183a0;
  font-size: 10px;
}

.portal-secure-card {
  margin-top: 9px;
  padding: 9px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 7px;
  align-items: start;
  border: 1px solid rgba(105, 53, 214, 0.24);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(75, 42, 114, 0.28), rgba(30, 104, 255, 0.12));
}

.portal-secure-card > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #bba5ff;
  background: rgba(105, 53, 214, 0.13);
  font-size: 11px;
}

.portal-secure-card small,
.portal-secure-card strong {
  display: block;
}

.portal-secure-card small {
  margin-bottom: 4px;
  color: #9cbbdf;
  font-size: 4.7px;
  letter-spacing: 0.08em;
}

.portal-secure-card strong {
  color: #f0f4fa;
  font-size: 6.2px;
  line-height: 1.35;
}

.portal-mobile-nav {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 49px;
  padding: 4px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 45px 1fr 1fr;
  align-items: center;
  border: 1px solid rgba(198, 204, 214, 0.15);
  border-radius: 14px;
  background: rgba(13, 22, 42, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.portal-mobile-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #6e7d94;
  font-size: 9px;
}

.portal-mobile-nav span.active {
  color: #5eb8ff;
}

.portal-mobile-nav small {
  font-size: 4.6px;
}

.portal-mobile-nav > b {
  width: 38px;
  height: 38px;
  margin: -17px auto 0;
  display: grid;
  place-items: center;
  border: 4px solid #070b1b;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #263f9f, #3c8cff);
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(30, 104, 255, 0.25);
}

.portal-demo-caption,
.portal-single-caption {
  color: rgba(202, 214, 232, 0.68);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-demo-caption {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 2px;
  width: max-content;
  transform: translateX(-50%);
}

.portal-single-caption {
  position: absolute;
  z-index: 4;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  color: #71809a;
}

/* Keep the Ask Hāvin illustration aligned with the actual dark portal. */
.ask-demo-card {
  border: 1px solid rgba(110, 165, 226, 0.18);
  color: #dfe7f3;
  background:
    radial-gradient(circle at 100% 0, rgba(75, 42, 114, 0.25), transparent 55%),
    #0d1629;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.ask-mark {
  background: linear-gradient(135deg, #6935d6, #1e68ff);
}

.ask-demo-card small {
  color: #78b1ff;
}

.ask-demo-card strong {
  color: #f4f7fb;
}

.ask-demo-card p {
  color: #9aa8bc;
}

.demo-sources span {
  border: 1px solid rgba(110, 165, 226, 0.13);
  color: #aebbd0;
  background: rgba(30, 104, 255, 0.09);
}

@media (max-width: 1080px) {
  .portal-phone-stage {
    height: 605px;
  }
}

@media (max-width: 720px) {
  .portal-phone-stage {
    height: 492px;
  }

  .portal-demo-caption {
    bottom: -2px;
    max-width: 78vw;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .portal-phone-stage {
    height: 458px;
  }

  .portal-demo-caption {
    bottom: -8px;
    font-size: 6.5px;
  }

  .portal-single-caption {
    bottom: 10px;
    font-size: 6.5px;
  }
}
