/* Keep transparent 3D artwork proportional and inside its visual stage. */
img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-stage,
.phone-visual {
  min-width: 0;
  overflow: visible;
}

.hero-stage {
  padding: 0 8px;
}

.hero-art {
  display: block;
  width: min(100%, 620px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.phone-visual {
  isolation: isolate;
}

.phone-visual > img {
  z-index: 0;
  width: min(100%, 480px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.phone-shell {
  position: relative;
  z-index: 1;
}

.large-card > div {
  position: relative;
  z-index: 1;
  max-width: 54%;
}

.large-card > img {
  right: 18px;
  bottom: 12px;
  width: min(56%, 280px);
  max-width: 56%;
  max-height: 72%;
  height: auto;
  object-fit: contain;
}

.review-card > img {
  right: 18px;
  bottom: 12px;
}

.composer .send-affordance {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  background: #9b8dff;
  color: #161426;
  font-size: 15px;
}

.phone-screen .phone-preview {
  color: #b7b0ff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* A restrained glass material shared by the new tax-time and footer surfaces. */
.glass-card {
  border-color: rgb(255 255 255 / .15);
  background:
    linear-gradient(145deg, rgb(255 255 255 / .11), transparent 42%),
    linear-gradient(140deg, rgb(35 39 66 / .78), rgb(14 16 29 / .72));
  box-shadow: 0 22px 60px rgb(1 2 11 / .42), inset 0 1px rgb(255 255 255 / .16);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
  backdrop-filter: blur(28px) saturate(155%);
}

@supports (background: color-mix(in srgb, white 50%, transparent)) {
  .glass-card {
    background-color: color-mix(in srgb, #151827 72%, transparent);
  }
}

.tax-time {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.tax-time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tax-time-card {
  display: flex;
  min-width: 0;
  min-height: 355px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  border-radius: 23px;
}

.tax-time-card h3,
.tax-boundary h3 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 550;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.tax-time-card p,
.tax-boundary p:not(.eyebrow) {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.tax-time-card img {
  display: block;
  width: min(78%, 205px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  align-self: flex-end;
  margin: 16px 0 -4px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgb(0 0 0 / .34));
}

.tax-boundary {
  display: grid;
  grid-template-columns: minmax(145px, .38fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 60px);
  margin-top: 18px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 26px;
}

.tax-boundary > img {
  display: block;
  width: min(100%, 220px);
  height: auto;
  aspect-ratio: 1;
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgb(0 0 0 / .32));
}

.tax-boundary .eyebrow {
  margin-bottom: 13px;
  color: #c8c0ff;
}

.tax-boundary h3 {
  max-width: 650px;
  font-size: clamp(24px, 3.3vw, 38px);
}

.tax-boundary p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: 13px;
}

.tax-boundary .text-link span,
.footer-links a span,
.footer-status a span {
  color: var(--violet);
}

.final-cta {
  min-height: 405px;
  overflow: hidden;
  isolation: isolate;
}

.final-cta > div {
  position: relative;
  z-index: 1;
  max-width: 58%;
}

.final-cta > img {
  right: 24px;
  bottom: 18px;
  z-index: 0;
  width: auto;
  max-width: 40%;
  max-height: 285px;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
}

.site-footer {
  display: block;
  padding-top: 8px;
  padding-bottom: 38px;
  border-top: 0;
}

.footer-panel {
  padding: clamp(22px, 4vw, 42px);
  border-radius: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(125px, .8fr));
  gap: clamp(22px, 4vw, 48px);
}

.footer-brand .wordmark {
  margin-bottom: 14px;
}

.footer-brand p,
.footer-status p {
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.footer-links,
.footer-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-links h2,
.footer-status h2 {
  margin: 5px 0 4px;
  color: #f0efff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.footer-links a,
.footer-status a {
  color: #b9bbd0;
  font-size: 11px;
  line-height: 1.5;
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-status a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / .1);
  color: #898da4;
  font-size: 10px;
  line-height: 1.6;
}

.footer-bottom a {
  color: #d3d0ef;
  font-weight: 650;
}

.site-footer :where(a):focus-visible,
.tax-boundary :where(a):focus-visible {
  outline: 2px solid #c9c2ff;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 920px) {
  .tax-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tax-time-card:last-child {
    grid-column: 1 / -1;
    min-height: 290px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-art {
    width: min(100%, 440px);
  }

  .large-card > div {
    max-width: 61%;
  }

  .large-card > img {
    right: 12px;
    bottom: 12px;
    width: min(48%, 220px);
    max-width: 48%;
    max-height: 62%;
  }

  .review-card > img {
    right: 12px;
    bottom: 12px;
  }

  .tax-time {
    padding: 66px 0;
  }

  .tax-time-card {
    min-height: 315px;
    padding: 21px;
  }

  .tax-time-card img {
    width: min(74%, 180px);
  }

  .tax-boundary {
    grid-template-columns: minmax(112px, .42fr) minmax(0, 1fr);
    gap: 20px;
  }

  .tax-boundary > img {
    width: min(100%, 170px);
  }

  .final-cta > div {
    max-width: 62%;
  }

  .final-cta > img {
    right: 8px;
    bottom: 12px;
    max-width: 40%;
    max-height: 250px;
  }
}

@media (max-width: 560px) {
  .large-card > div {
    max-width: 66%;
  }

  .large-card > img {
    width: min(45%, 165px);
    max-width: 45%;
    max-height: 54%;
  }

  .tax-time-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tax-time-card,
  .tax-time-card:last-child {
    grid-column: auto;
    min-height: 300px;
  }

  .tax-time-card img {
    width: min(68%, 180px);
  }

  .tax-boundary {
    grid-template-columns: minmax(0, 1fr);
  }

  .tax-boundary > img {
    width: min(52%, 150px);
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand p,
  .footer-status p {
    max-width: 360px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta {
    min-height: 390px;
    padding: 30px 22px;
  }

  .final-cta > div {
    max-width: 100%;
  }

  .final-cta > img {
    right: 8px;
    bottom: 3px;
    max-width: 54%;
    max-height: 170px;
    opacity: .45;
  }
}

@media (max-width: 390px) {
  .chat-area {
    width: 55%;
    min-width: 0;
  }

  .chat-bubble {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .large-card > div {
    max-width: 70%;
  }

  .large-card > img {
    right: 8px;
    width: min(42%, 142px);
    max-width: 42%;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-card {
    background: #171927;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
