/* Additions on top of the Webflow stylesheet. */

/* Images carry their width and height (scripts/responsive-images.mjs) so the
   browser can hold their space while they load. Keep the height automatic so
   the attributes only give the shape; any class that sets a height still wins. */
:where(img[width][height]) {
  height: auto;
}

/* Footer categories dropdown (src/components/Footer.astro). */
.footer-categories {
  border-top: 1px solid #444;
  margin-top: 20px;
  padding-top: 20px;
}
.footer-categories-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white, #fff);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.footer-categories-toggle::-webkit-details-marker {
  display: none;
}
.footer-categories-toggle:hover {
  opacity: 0.8;
}
.footer-categories-chevron {
  transition: transform 0.2s;
}
.footer-categories[open] .footer-categories-chevron {
  transform: rotate(180deg);
}
.footer-categories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  column-gap: 40px;
  margin-top: 20px;
}
.footer-categories-list .footer-link {
  margin-bottom: 12px;
}

/* Article pages: line the date row up with the title. Webflow's .date has
   7px of left padding that the .flex-date-div._2 row doesn't offset. */
.flex-date-div._2 > .date:first-child {
  padding-left: 0;
}

/* AI Times covers are portrait (1091x1420, like a magazine cover). Size the
   card image to that shape so the whole cover shows instead of being cropped. */
._220-px-post-image.is-cover {
  height: auto;
  aspect-ratio: 1091 / 1420;
}

/* Searchable list pages: breathing room between the pagination and the
   section below it. */
/* Webflow's .section.top-page sets padding-bottom: 0, so match its specificity. */
.section.top-page.listing-section {
  padding-bottom: 80px;
}
@media screen and (max-width: 479px) {
  .section.top-page.listing-section {
    padding-bottom: 50px;
  }
}

/* AI Times Magazine: roomier grid for the portrait covers. */
._3-column-grid.magazine-grid {
  grid-column-gap: 40px;
  grid-row-gap: 64px;
}
@media screen and (max-width: 991px) {
  ._3-column-grid.magazine-grid {
    grid-column-gap: 28px;
    grid-row-gap: 48px;
  }
}

/* AI Times Magazine: featured latest cover. */
.magazine-featured {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid #e6e6e6;
}
.magazine-featured-cover {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(10, 22, 40, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.magazine-featured-cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(10, 22, 40, 0.24);
}
.magazine-featured-cover img {
  display: block;
  width: 100%;
  height: auto;
}
.magazine-featured-label {
  font-family: Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0568f2;
  margin-bottom: 14px;
}
.magazine-featured-title {
  font-family: Roboto, sans-serif;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 18px;
}
.magazine-featured-title a {
  color: #000;
  text-decoration: none;
}
.magazine-featured-title a:hover {
  opacity: 0.75;
}
.magazine-featured-summary {
  font-family: Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 22px;
}
.magazine-featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.magazine-featured-date {
  font-family: Roboto, sans-serif;
  font-size: 14px;
  color: #777;
}
.magazine-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  background: #eef4ff;
  color: #0568f2;
  font-family: Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.magazine-featured-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  background: #0568f2;
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(5, 104, 242, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.magazine-featured-button:hover {
  background: #0454c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(5, 104, 242, 0.45);
}
@media screen and (max-width: 991px) {
  .magazine-featured {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 36px;
  }
  .magazine-featured-title {
    font-size: 28px;
  }
  .magazine-featured-summary {
    font-size: 16px;
  }
}
@media screen and (max-width: 767px) {
  .magazine-featured {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 48px;
    margin-bottom: 48px;
  }
  .magazine-featured-cover {
    max-width: 420px;
  }
  .magazine-featured-title {
    font-size: 26px;
  }
}

/* Halo Digest library and category pages: the same featured layout with a
   wide landscape image instead of a portrait cover. */
.magazine-featured.is-landscape {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
/* Phones keep the plain list: the featured post shows as the first card. */
@media screen and (min-width: 768px) {
  .is-featured-copy {
    display: none !important;
  }
}
@media screen and (max-width: 767px) {
  .magazine-featured.is-landscape {
    display: none !important;
  }
}

/* "Get Halo" banner: lift, glow and a light sweep on hover. */
a.center-advertising-div {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}
a.center-advertising-div::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.8s ease;
}
a.center-advertising-div:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  filter: brightness(1.05);
}
a.center-advertising-div:hover::after {
  left: 120%;
}
@media (prefers-reduced-motion: reduce) {
  a.center-advertising-div,
  a.center-advertising-div::after,
  .magazine-featured-cover,
  .magazine-featured-button {
    transition: none;
  }
  a.center-advertising-div:hover,
  .magazine-featured-cover:hover,
  .magazine-featured-button:hover {
    transform: none;
  }
}

/* Tablet footer: Webflow's 3-column grid flowed its 5 columns sideways,
   pushing the last one off screen between 768px and ~900px. Wrap instead. */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .footer-grid {
    grid-auto-flow: row;
  }
}

/* Keep the article column within the screen. Its auto side margins made it
   size to its widest content, so a wide table widened the whole page; now
   wide content scrolls in its own box. */
.single-page-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* iPhones and iPads zoom in on inputs with text under 16px. */
@media screen and (max-width: 991px) {
  .text-field.w-input {
    font-size: 16px;
  }
}

/* AI Times articles sit outside the page container that gives blog posts
   their 20px side padding, so their text ran to 10px from a phone's edge. */
@media screen and (max-width: 991px) {
  .ai-times-article {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* The second headline many posts open with, shown as a smaller subtitle
   under the cover image rather than as a second title. Same black as the
   other headings. */
.w-richtext .post-deck {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: #000;
}
@media screen and (min-width: 768px) {
  .w-richtext .post-deck {
    font-size: 22px;
  }
}

/* Homepage hero: the main image keeps its own 16:9 shape so nothing is cut
   off (Webflow's fixed 500/600px frame cropped its sides). On desktop the
   two cards beside it share that height; on tablets they sit side by side
   underneath it, where they have room for their titles. */
.hero-main-div ._500-px-relativ-div {
  height: auto;
  aspect-ratio: 16 / 9;
}
@media screen and (min-width: 768px) and (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid .collection-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .hero-grid .collection-item-3 {
    padding-bottom: 0;
  }
  .hero-grid ._240-px-relativ-div {
    height: 260px;
  }
}
@media screen and (min-width: 992px) {
  .hero-grid .collection-list-wrapper-3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }
  .hero-grid .collection-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .hero-grid .collection-item-3 {
    flex: 1;
    display: flex;
    padding-bottom: 0;
  }
  .hero-grid ._240-px-relativ-div {
    flex: 1;
    height: auto;
  }
  .hero-grid ._240-px-relativ-div .hero-link-image {
    position: absolute;
    inset: 0;
  }
}

/* Summary over the bottom of the lead hero image, on a short black fade.
   Hidden on phones, where Webflow hid it too. */
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 24px 20px;
  border-radius: 0 0 15px 15px;
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75) 55%, rgba(0, 0, 0, 0.85));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
@media screen and (max-width: 479px) {
  .hero-fade {
    display: none;
  }
}

/* Event banner above the navigation (src/components/EventBanner.astro). */
/* Sticks to the top while scrolling down; slides up out of view while
   scrolling up, and is back in its place at the top of the page. */
.event-banner {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: linear-gradient(90deg, #0450c4, #0568f2 55%, #2b80ff);
  color: #fff;
  font-family: Roboto, sans-serif;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.event-banner.is-stuck {
  box-shadow: 0 6px 20px rgba(4, 40, 110, 0.25);
}
.event-banner.is-tucked {
  transform: translateY(-100%);
  box-shadow: none;
}
.event-banner-off .event-banner {
  display: none;
}
/* Desktop: pass and headline on the left, countdown and button on the
   right, lined up with the page content below. */
.event-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 40px;
  max-width: 1390px;
  margin: 0 auto;
  padding: 12px 60px;
}
.event-banner-left,
.event-banner-right {
  display: flex;
  align-items: center;
  gap: 12px 28px;
}
/* The pass: a small ticket with notched sides and a perforated divider. */
.event-banner-ticket {
  display: inline-flex;
  align-items: stretch;
  background-color: #fff;
  color: #0568f2;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-mask: radial-gradient(circle 5px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 5px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 5px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 5px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.event-banner-ticket span {
  padding: 8px 10px 8px 13px;
}
.event-banner-ticket span + span {
  padding: 8px 13px 8px 10px;
  border-left: 2px dashed rgba(5, 104, 242, 0.45);
}
.event-banner-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
.event-banner-title {
  font-size: 17px;
  line-height: 1.2;
}
.event-banner-title strong {
  font-weight: 800;
}
.event-banner-message {
  font-weight: 500;
}
.event-banner-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.2;
  opacity: 0.92;
}
.event-banner-zoom {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.event-banner-zoom svg {
  display: block;
}
.event-banner-countdown {
  display: flex;
  gap: 6px;
}
.event-banner-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 46px;
  padding: 5px 6px 4px;
  border-radius: 7px;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.event-banner-unit b {
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.event-banner-unit small {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.8;
}
/* During the call the countdown gives way to a calm "Live now" pill. */
.event-banner-live {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.event-banner-live i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
}
.event-banner-live i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #fff;
  animation: event-banner-pulse 1.6s ease-out infinite;
}
@keyframes event-banner-pulse {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}
.event-banner.is-live .event-banner-countdown {
  display: none;
}
.event-banner.is-live .event-banner-live {
  display: inline-flex;
}
.event-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 20px;
  border-radius: 999px;
  background-color: #fff;
  color: #0568f2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-banner-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.event-banner-arrow {
  flex: none;
  transition: transform 0.2s;
}
.event-banner-cta:hover .event-banner-arrow {
  transform: translateX(3px);
}
.event-banner-close {
  position: absolute;
  top: 50%;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.event-banner-close:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
.event-banner-cta-short {
  display: none;
}
.event-banner-title {
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  .event-banner,
  .event-banner-live i::after {
    animation: none;
    transition: none;
  }
}
@media screen and (max-width: 1100px) {
  .event-banner-message {
    display: none;
  }
}
@media screen and (max-width: 991px) {
  .event-banner-inner {
    justify-content: center;
    gap: 12px 24px;
  }
  .event-banner-left,
  .event-banner-right {
    gap: 12px 20px;
  }
}
@media screen and (max-width: 767px) {
  .event-banner-inner {
    gap: 10px 14px;
    padding: 10px 48px;
  }
  .event-banner-left,
  .event-banner-right {
    gap: 10px 14px;
  }
}
/* Phones: just the headline, the countdown and the button. */
@media screen and (max-width: 479px) {
  .event-banner-inner {
    gap: 8px 10px;
    padding: 9px 10px 10px;
  }
  .event-banner-ticket,
  .event-banner-meta {
    display: none;
  }
  .event-banner-left {
    flex-basis: 100%;
    justify-content: center;
  }
  .event-banner-right {
    gap: 10px;
  }
  .event-banner-info {
    align-items: center;
    padding: 0 30px;
    text-align: center;
  }
  .event-banner-title {
    font-size: 15px;
  }
  .event-banner-countdown {
    gap: 4px;
  }
  .event-banner-unit {
    min-width: 34px;
    padding: 3px 3px 2px;
  }
  .event-banner-unit b {
    font-size: 16px;
  }
  .event-banner-unit small {
    font-size: 8px;
  }
  .event-banner-cta {
    padding: 8px 12px 8px 15px;
    font-size: 13px;
  }
  .event-banner-cta-full {
    display: none;
  }
  .event-banner-cta-short {
    display: inline;
  }
  .event-banner-close {
    top: 4px;
    right: 2px;
    margin-top: 0;
  }
}

/* Halo promo card in post bodies (src/lib/halo-promo.js): an agent texts
   Halo on the phone, Halo answers "done", four requests on a 24s loop, on
   the footer's black with a slight blue tint. */
.hp {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin: 32px 0;
  padding: 28px 40px 28px 28px;
  overflow: hidden;
  border-radius: 18px;
  /* The footer's black, with a gentle blue tint from the top left. */
  background: radial-gradient(120% 150% at 0% 0%, #0b2a5c 0%, #04122b 45%, #000 85%);
  box-shadow: 0 16px 40px rgba(0, 10, 30, 0.3);
  color: #fff;
  font-family: Roboto, sans-serif;
}
.hp::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 104, 242, 0.18), rgba(5, 104, 242, 0) 70%);
  pointer-events: none;
}
.hp-phone {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 268px;
  padding: 10px 10px 10px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 20, 60, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.hp-phone-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 9px;
  border-bottom: 1px solid #edf1f7;
  color: #0b1f3a;
  line-height: 1.15;
}
.hp-phone-head b {
  display: block;
  font-size: 13px;
}
.hp-phone-head small {
  display: block;
  font-size: 10.5px;
  color: #6b7a90;
}
.hp-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0568f2;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.hp-chat {
  position: relative;
  flex: 1;
}
.hp-thread {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 2px 0;
  opacity: 0;
  animation: hp-slide 24s infinite;
  animation-delay: var(--d);
}
.hp-msgs {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}
.hp-delivered {
  align-self: flex-end;
  margin: 0 4px 4px 0;
  color: #8a97ab;
  font-size: 10px;
  font-weight: 500;
  animation: hp-delivered 24s infinite;
  animation-delay: var(--d);
}
/* The message field: the request types itself out, then is sent. */
.hp-compose {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #edf1f7;
}
.hp-field {
  flex: 1;
  min-height: 28px;
  padding: 6px 11px;
  border: 1px solid #d9e0ea;
  border-radius: 15px;
  color: #0b1f3a;
  font-size: 12px;
  line-height: 1.3;
}
.hp-draft {
  display: block;
  overflow: hidden;
  max-height: 15.6px;
  animation: hp-draft 24s infinite;
  animation-delay: var(--d);
}
.hp-draft span {
  opacity: 0;
  animation: hp-char 24s infinite;
  animation-delay: calc(var(--d) + var(--i) * 0.06s);
}
.hp-send {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-bottom: 1px;
  border-radius: 50%;
  background: #c9d3e2;
  color: #fff;
  animation: hp-send 24s infinite;
  animation-delay: var(--d);
}
.hp-msg {
  max-width: 90%;
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.35;
}
.hp-out {
  align-self: flex-end;
  margin-bottom: 0;
  border-bottom-right-radius: 4px;
  background: #0568f2;
  color: #fff;
  animation: hp-out 24s infinite;
  animation-delay: var(--d);
}
.hp-slot {
  display: grid;
  justify-items: start;
  margin-top: 2px;
}
.hp-slot > * {
  grid-area: 1 / 1;
}
.hp-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom-left-radius: 4px;
  background: #eef3fb;
  color: #0b1f3a;
  font-weight: 600;
  animation: hp-in 24s infinite;
  animation-delay: var(--d);
}
.hp-in svg {
  flex: none;
  padding: 2px;
  border-radius: 50%;
  background: #0568f2;
  color: #fff;
}
.hp-typing {
  display: inline-flex;
  gap: 4px;
  align-self: end;
  padding: 10px 12px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  background: #eef3fb;
  animation: hp-typing 24s infinite;
  animation-delay: var(--d);
}
.hp-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8aa3c4;
  animation: hp-dot 1s infinite;
}
.hp-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.hp-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
.hp-copy {
  position: relative;
  z-index: 1;
}
.hp p.hp-eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  line-height: 1.3;
  text-transform: uppercase;
}
.hp-headlines {
  display: grid;
}
.hp p.hp-headline {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.18;
}
.hp p.hp-rotate {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  animation: hp-slide 24s infinite;
  animation-delay: var(--d);
}
.hp p.hp-sub {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.5;
}
.hp a.hp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 18px 12px 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 20, 60, 0.25);
  color: #0568f2 !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hp a.hp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 20, 60, 0.32);
}
.hp a.hp-cta svg {
  transition: transform 0.2s;
}
.hp a.hp-cta:hover svg {
  transform: translateX(3px);
}
/* Each of the four requests owns a quarter of the 24s loop: the text goes
   out, Halo types, then answers. */
@keyframes hp-slide {
  0% { opacity: 0; transform: translateY(6px); }
  2%, 23% { opacity: 1; transform: none; }
  25%, 100% { opacity: 0; transform: none; }
}
@keyframes hp-char {
  0%, 1% { opacity: 0; }
  1.2%, 100% { opacity: 1; }
}
/* The field is one line when empty and grows while a request is typed. */
@keyframes hp-draft {
  0%, 1% { opacity: 1; max-height: 15.6px; }
  1.2%, 9.4% { opacity: 1; max-height: 40px; }
  9.5%, 100% { opacity: 0; max-height: 15.6px; }
}
@keyframes hp-send {
  0%, 1% { background: #c9d3e2; transform: none; }
  1.5%, 8.6% { background: #0568f2; transform: none; }
  9.2% { background: #0568f2; transform: scale(1.18); }
  9.8% { background: #0568f2; transform: none; }
  10.5%, 100% { background: #c9d3e2; transform: none; }
}
@keyframes hp-out {
  0%, 9.5% { opacity: 0; transform: translateY(12px) scale(0.96); }
  11%, 100% { opacity: 1; transform: none; }
}
@keyframes hp-delivered {
  0%, 11.5% { opacity: 0; }
  12.5%, 100% { opacity: 1; }
}
@keyframes hp-typing {
  0%, 13% { opacity: 0; }
  14%, 17.5% { opacity: 1; }
  18%, 100% { opacity: 0; }
}
@keyframes hp-in {
  0%, 18% { opacity: 0; transform: translateY(10px) scale(0.96); }
  19.5%, 100% { opacity: 1; transform: none; }
}
@keyframes hp-dot {
  0%, 60%, 100% { transform: none; opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-thread,
  .hp-out,
  .hp-delivered,
  .hp-in,
  .hp-typing,
  .hp-typing i,
  .hp-draft,
  .hp-draft span,
  .hp-send,
  .hp p.hp-rotate {
    animation: none;
  }
  .hp-draft {
    opacity: 0;
  }
  .hp-thread:first-child,
  .hp p.hp-rotate:first-child {
    opacity: 1;
  }
  .hp-typing {
    opacity: 0;
  }
}
@media screen and (max-width: 767px) {
  .hp {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 20px 24px;
    text-align: center;
  }
  .hp-phone {
    order: 2;
    width: 100%;
    max-width: 280px;
    height: 250px;
    margin: 0 auto;
    text-align: left;
  }
  .hp p.hp-headline {
    font-size: 24px;
  }
  .hp p.hp-sub {
    font-size: 15px;
  }
}
