/* Hāvin public website v0.5.9 — approved Halo mark + ownership-assistant story + iMessage-style texting */

/* Use the approved visual mark as supplied, optimized to WebP for the site. */
img[src$="havin-halo-approved.webp"] {
  border-radius: 22%;
}

.rc5-halo-mark img,
.halo-nav-icon img,
.halo-action-label img,
.rc5-mobile-bottom > span.halo > img,
.story-icon-halo img,
.halo-section-brand > img {
  object-fit: cover;
}

.halo-nav-icon img,
.halo-action-label img,
.rc5-mobile-bottom > span.halo > img {
  box-shadow: 0 0 8px rgba(63, 167, 225, 0.10);
}

.halo-section-brand {
  gap: 15px;
}

.halo-section-brand > img {
  width: 68px;
  height: 68px;
  box-shadow:
    0 0 20px rgba(63, 167, 225, 0.13),
    0 0 32px rgba(75, 42, 114, 0.10);
}

.halo-copy > h2 {
  max-width: 660px;
}

.halo-copy .lead {
  max-width: 680px;
}

.halo-chat-top .rc5-halo-mark {
  width: 52px;
  height: 52px;
}

.story-icon-halo img {
  width: 46px;
  height: 46px;
  box-shadow: 0 0 14px rgba(63, 167, 225, 0.10);
}

/* ---------- Main Hāvin by Text device: iMessage-style fictional mockup ---------- */
.imessage-demo {
  width: 268px;
  top: 54px;
}

.ios-device-shell {
  padding: 7px;
  border-color: rgba(255, 255, 255, 0.26);
  border-radius: 42px;
  background: #101116;
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.ios-message-screen {
  min-height: 522px;
  border-radius: 34px;
  color: #111111;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
}

.ios-status-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 0;
  color: #0c0c0e;
  font-size: 10px;
  letter-spacing: -0.02em;
}

.ios-status-bar strong {
  font-size: 11px;
  font-weight: 700;
}

.ios-status-bar span {
  font-size: 8px;
  letter-spacing: 0.02em;
}

.ios-message-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  padding: 0 11px 9px;
  border-bottom: 1px solid #e5e5ea;
  background: rgba(248, 248, 248, 0.94);
}

.ios-back,
.ios-info {
  color: #007aff;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.ios-info {
  justify-self: end;
  font-size: 17px;
}

.ios-contact {
  display: grid;
  justify-items: center;
  gap: 1px;
  text-align: center;
}

.ios-contact img {
  width: 34px;
  height: 34px;
  margin-bottom: 2px;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.14);
}

.ios-contact strong {
  color: #111111;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
}

.ios-contact small {
  color: #7c7c80;
  font-size: 8px;
}

.ios-message-thread {
  display: grid;
  gap: 6px;
  padding: 12px 10px 8px;
  background: #ffffff;
}

.ios-thread-time {
  justify-self: center;
  margin-bottom: 3px;
  color: #8e8e93;
  font-size: 8px;
  font-weight: 500;
}

.ios-message-screen .sms-bubble {
  max-width: 82%;
  padding: 8px 10px;
  border: 0;
  border-radius: 15px;
  font-size: 10px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.ios-message-screen .sms-in {
  justify-self: start;
  color: #111111;
  background: #e9e9eb;
  border-bottom-left-radius: 5px;
}

.ios-message-screen .sms-out {
  justify-self: end;
  color: #ffffff;
  background: #007aff;
  border-bottom-right-radius: 5px;
}

.ios-compose-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px;
  align-items: center;
  padding: 4px 9px 12px;
  background: #ffffff;
}

.ios-plus {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #8e8e93;
  font-size: 16px;
  line-height: 1;
}

.ios-message-screen .sms-compose {
  height: 30px;
  margin: 0;
  padding: 0 6px 0 10px;
  border: 1px solid #c7c7cc;
  color: #8e8e93;
  background: #ffffff;
  font-size: 10px;
}

.ios-message-screen .sms-compose b {
  width: 21px;
  height: 21px;
  color: #ffffff;
  background: #8e8e93;
  font-size: 8px;
}

/* ---------- Third phone in hero: compact iMessage-style screen ---------- */
.text-message-card .portal-mobile-island {
  background: #05070d;
}

.text-message-card .mini-ios-message-screen {
  min-height: 470px;
  color: #111111;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.mini-ios-status {
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px 0;
  color: #111111;
  font-size: 7px;
}

.mini-ios-status strong {
  font-size: 8px;
}

.mini-ios-header {
  height: 72px;
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  padding: 2px 8px 8px;
  border-bottom: 1px solid #e5e5ea;
  background: #f8f8f8;
  color: #007aff;
  font-size: 15px;
}

.mini-ios-header > div {
  display: grid;
  justify-items: center;
  gap: 1px;
  color: #111111;
}

.mini-ios-header img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.mini-ios-header strong {
  font-size: 8px;
  line-height: 1.05;
}

.mini-ios-header small {
  color: #7c7c80;
  font-size: 6px;
}

.mini-ios-thread {
  display: grid;
  gap: 7px;
  padding: 10px 8px;
  background: #ffffff;
}

.mini-ios-thread > small {
  justify-self: center;
  color: #8e8e93;
  font-size: 6px;
}

.mini-message {
  max-width: 86%;
  padding: 7px 8px;
  border-radius: 12px;
  font-size: 7px;
  line-height: 1.35;
}

.mini-message.incoming {
  justify-self: start;
  color: #111111;
  background: #e9e9eb;
  border-bottom-left-radius: 4px;
}

.mini-message.outgoing {
  justify-self: end;
  color: #ffffff;
  background: #007aff;
  border-bottom-right-radius: 4px;
}

.mini-ios-compose {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 5px;
  align-items: center;
}

.mini-ios-compose > span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #8e8e93;
  font-size: 12px;
}

.mini-ios-compose > div {
  height: 25px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #c7c7cc;
  border-radius: 999px;
  color: #8e8e93;
  background: #ffffff;
  font-size: 7px;
}

@media (max-width: 860px) {
  .halo-section-brand > img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 620px) {
  .halo-section-brand > img {
    width: 54px;
    height: 54px;
  }

  .imessage-demo {
    width: min(100%, 290px);
  }

  .ios-message-screen {
    min-height: 500px;
  }
}
