/* The Thrive app preview, taken from the original homepage styles. */
.tb-hero2__phone { --insur-primary: #0e664d; --insur-primary-rgb: 14, 102, 77; width: 100%; container-type: inline-size; filter: drop-shadow(0 40px 50px rgba(20, 70, 52, .28)); }
.tb-hero2__phone *, .tb-hero2__phone *::before, .tb-hero2__phone *::after { box-sizing: border-box; }

/* phone frame */
.tb-phone {
  position: relative;
  aspect-ratio: 9 / 18.4;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(155deg, #26302c, #0b1110 60%);
  box-shadow: inset 0 0 0 2px #46524c, inset 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.tb-phone__notch {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 14px;
  width: 30%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0b1110;
}

.tb-phone::before,
.tb-phone::after {
  content: "";
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #46524c;
}

.tb-phone::before {
  top: 22%;
  height: 11%;
}

.tb-phone::after {
  top: 36%;
  height: 7%;
}

/*--------------------------------------------------------------
# Phone screen. Sized in em (scales with the phone) and styled
to match the real Thrive app.
--------------------------------------------------------------*/
.hp {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #f3f7f5;
  font-size: 11px;
  font-size: 4.4cqw;
  line-height: 1.35;
  color: #1a1d21;
}

.hp svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp small {
  display: block;
  color: #6b7480;
  font-size: 0.8em;
  font-weight: 500;
}

.hp-status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95em 1.7em 0;
  font-size: 0.78em;
}

.hp-batt {
  width: 1.9em;
  height: 0.9em;
  padding: 1px;
  border: 1.5px solid #1a1d21;
  border-radius: 0.3em;
  background: linear-gradient(90deg, #1a1d21 70%, transparent 70%) content-box;
}

.hp-scene {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  gap: 0.8em;
  padding: 3.1em 1.1em 1.1em;
}

.hp-scene.on {
  display: flex;
  animation: hp-scene 0.35s ease both;
}

.hp-scene.hp-home {
  padding-bottom: 5.6em;
}

/* splash */
.hp-splash {
  align-items: center;
  justify-content: center;
  gap: 1.6em;
  padding: 0;
  background: #fff;
}

.hp-splash.on .hp-splash__logo {
  animation: hp-pop 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.hp-splash__logo {
  width: 58%;
  height: auto;
}

.hp-splash__bar {
  width: 34%;
  height: 0.3em;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ebd6;
}

.hp-splash__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--insur-primary);
  transform-origin: left;
  transform: scaleX(0);
}

.hp-splash.on .hp-splash__bar i {
  animation: hp-grow 1.6s 0.6s cubic-bezier(0.3, 0.7, 0.3, 1) both;
}

/* sign in */
.hp-back {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: #e9efec;
}

.hp-back svg {
  width: 1.1em;
  height: 1.1em;
}

.hp-who {
  display: grid;
  justify-items: center;
  gap: 0.15em;
  margin-top: 0.4em;
  text-align: center;
}

.hp-who__av {
  display: grid;
  place-items: center;
  width: 4.4em;
  height: 4.4em;
  margin-bottom: 0.7em;
  border-radius: 50%;
  background: #e4eeea;
  color: var(--insur-primary);
  font-size: 1.1em;
  font-weight: 700;
}

.hp-who b {
  font-size: 1.2em;
}

.hp-who em {
  font-style: normal;
  color: #6b7480;
  font-size: 0.68em;
  letter-spacing: 0.02em;
}

.hp-pw {
  margin-top: 0.7em;
}

.hp-pw small {
  margin-bottom: 0.35em;
  color: #1a1d21;
  font-weight: 600;
}

.hp-pw__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3em;
  padding: 0 0.9em;
  border: 1.5px solid #dde4df;
  border-radius: 999px;
  background: #fff;
  color: #6b7480;
  letter-spacing: 0.12em;
}

.hp-scene.on .hp-pw__box {
  animation: hp-focus var(--fd, 1s) var(--ft, 0s) both;
}

.hp-link {
  display: block;
  margin-top: 0.5em;
  color: var(--insur-primary);
  font-size: 0.8em;
  font-weight: 600;
  text-align: right;
}

.hp-bio {
  display: grid;
  justify-items: center;
  gap: 0.4em;
  margin-top: 0.4em;
  color: var(--insur-primary);
  font-size: 0.85em;
}

.hp-bio span {
  display: grid;
  place-items: center;
  width: 3.6em;
  height: 3.6em;
  border-radius: 50%;
  background: #e4eeea;
}

.hp-bio svg {
  width: 1.7em;
  height: 1.7em;
  stroke-width: 2.6;
}

.hp-btn {
  position: relative;
  margin-top: auto;
  padding: 0.95em;
  border-radius: 999px;
  background: var(--insur-primary);
  color: #fff;
  text-align: center;
  font-weight: 600;
}

.hp-spin {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.4em;
  height: 1.4em;
  border: 0.2em solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
}

.hp-switch {
  margin-top: 0.1em;
  color: #6b7480;
  font-size: 0.8em;
  text-align: center;
}

.hp-switch b {
  color: var(--insur-primary);
}

/* home */
.hp-hello {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.hp-hello .hp-who__av {
  width: 2.7em;
  height: 2.7em;
  margin: 0;
  background: var(--insur-primary);
  color: #fff;
  font-size: 0.85em;
}

.hp-hello div {
  display: grid;
}

.hp-hello b {
  font-size: 1.1em;
}

.hp-bal {
  padding: 1em 1.05em;
  border-radius: 1.3em;
  background: linear-gradient(135deg, #064a36, #057450);
  color: #fff;
}

.hp-bal small {
  color: rgba(255, 255, 255, 0.78);
}

.hp-bal__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hp-acct svg {
  width: 1em;
  height: 1em;
  margin-left: 0.2em;
  vertical-align: -0.15em;
}

.hp-eye {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.hp-eye svg {
  width: 1.1em;
  height: 1.1em;
}

.hp-amt {
  display: block;
  margin: 0.7em 0 0.8em;
  font-size: 1.65em;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hp-bal__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
}

.hp-bal__btns span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.65em 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.82em;
  font-weight: 600;
}

.hp-bal__btns svg {
  width: 1.1em;
  height: 1.1em;
}

.hp-bal__btns .on {
  background: #bfc53f;
  color: #1d2a10;
}

.hp-sec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.3em;
}

.hp-sec b {
  font-size: 1em;
}

.hp-sec a {
  color: var(--insur-primary);
  font-size: 0.8em;
  font-weight: 600;
}

.hp-list {
  list-style: none;
  margin: 0;
  padding: 0.1em 0.85em;
  border-radius: 1.15em;
  background: #fff;
}

.hp-list li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.7em 0;
}

.hp-list li + li {
  border-top: 1px solid #e6ebe8;
}

.hp-list li > div:nth-child(2) {
  display: grid;
  flex: 1;
  min-width: 0;
}

.hp-list b {
  overflow: hidden;
  font-size: 0.88em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp-list small {
  font-size: 0.7em;
}

.hp-list i {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: #e8f0ec;
  color: var(--insur-primary);
}

.hp-list i svg {
  width: 1em;
  height: 1em;
  stroke-width: 2.4;
}

.hp-list__amt {
  display: grid;
  justify-items: end;
}

.hp-list b.pos {
  color: #0f9d6a;
}

.hp-list small.ok {
  color: #1aa57a;
}

/* bottom nav, like the app: a pill with a filled active item */
.hp-nav {
  position: absolute;
  inset: auto 0.8em 0.9em;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0.35em;
  border: 1px solid #dde4df;
  border-radius: 999px;
  background: #fff;
  opacity: 0;
  transform: translateY(1em);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hp[data-tab="home"] .hp-nav {
  opacity: 1;
  transform: none;
}

.hp-nav span {
  display: grid;
  justify-items: center;
  gap: 0.12em;
  padding: 0.45em 0;
  border-radius: 999px;
  color: #6b7480;
  font-size: 0.56em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hp-nav svg {
  width: 2em;
  height: 2em;
}

.hp-nav .on {
  background: var(--insur-primary);
  color: #fff;
}

/* cursor */
.hp-cur {
  position: absolute;
  z-index: 8;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.hp-cur i {
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 22px;
  background: #0f172a;
  clip-path: polygon(0 0, 0 100%, 30% 76%, 52% 100%, 68% 91%, 46% 66%, 82% 66%);
  filter: drop-shadow(0 1px 0 #fff);
}

.hp-cur b {
  position: absolute;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(var(--insur-primary-rgb), 0.45);
  opacity: 0;
}

/* animation: only plays while the scene is on, so every loop starts clean */
.hp-in,
.hp-type {
  opacity: 0;
}

.hp-type {
  display: inline-block;
}

.hp-scene.on .hp-in {
  animation: hp-in 0.45s var(--at, 0s) both;
}

.hp-scene.on .hp-type {
  opacity: 1;
  animation: hp-type var(--dur, 1s) steps(var(--n, 12)) var(--at, 0s) both;
}

.hp-scene.on .hp-btn {
  animation: hp-in 0.45s var(--at, 0s) both, hp-press 0.3s var(--c, 99s);
}

.hp-scene.on .hp-btn__text {
  animation: hp-out 0.2s var(--c, 99s) forwards;
}

.hp-scene.on .hp-spin {
  animation: hp-show 0.2s var(--c, 99s) forwards, hp-rotate 0.8s var(--c, 99s) linear infinite;
}

.hp-scene.on .hp-cur {
  animation: hp-arrive 1.2s var(--at, 0s) both, hp-out 0.3s var(--out, 999s) forwards;
}

.hp-scene.on .hp-cur b {
  animation: hp-ring 0.5s var(--c, 99s) both;
}

@keyframes hp-scene {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hp-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes hp-type {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes hp-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes hp-pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hp-focus {
  0%, 100% { border-color: #dde4df; box-shadow: none; }
  12%, 88% { border-color: var(--insur-primary); box-shadow: 0 0 0 0.3em rgba(14, 102, 77, 0.14); }
}

@keyframes hp-arrive {
  0% { opacity: 0; transform: translate(70px, 60px); }
  20% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0); }
}

@keyframes hp-out {
  to { opacity: 0; visibility: hidden; }
}

@keyframes hp-show {
  to { opacity: 1; }
}

@keyframes hp-rotate {
  to { transform: rotate(360deg); }
}

@keyframes hp-ring {
  0% { opacity: 0.9; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(2.2); }
}

@keyframes hp-press {
  50% { transform: scale(0.96); }
}

@keyframes hp-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}


@media (prefers-reduced-motion: reduce) {
  .hp-scene.on * {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
  }

  .hp-cur {
    display: none;
  }
}

