/* Homepage hero type hierarchy and capped viewport sizing. */
[data-home-hero-inner] {
  position: relative;
}

.home-hero-vat-note:not([hidden]) {
  display: block;
  margin-top: 4px;
  color: rgb(255 255 255 / 65%);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
}

.home-creator {
  position: absolute;
  top: 129px;
  right: 58px;
  z-index: 2;
  width: 350px;
  height: 422px;
  isolation: isolate;
  transform: rotate(5deg);
}

.home-creator-backdrop {
  position: absolute;
  z-index: -1;
  top: 50px;
  right: -25px;
  width: calc(100% - 20px);
  height: calc(100% - 32px);
  border-radius: 24px;
  background: #c9a5f0;
  transform: rotate(-12deg);
}

.home-creator-circle {
  position: absolute;
  z-index: -1;
  top: 6px;
  right: -44px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #bcefff;
}

.home-creator-browser-bar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  height: 36px;
  align-items: center;
  gap: 18px;
  border: 3px solid #22203f;
  border-radius: 14px 14px 0 0;
  padding-inline: 12px;
  background: #fffaf1;
  color: #22203f;
  font-family: var(--font-uni-neue);
  font-size: 13px;
  font-weight: 700;
}

.home-creator-browser-dots {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}

.home-creator-browser-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff7d81;
}

.home-creator-browser-domain {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-creator-browser-arrow {
  flex-shrink: 0;
}

.home-creator-photo {
  position: absolute;
  inset: 33px 0 0;
  overflow: hidden;
  border: 3px solid #22203f;
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

.home-creator-photo picture,
.home-creator-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-creator-photo img {
  object-fit: cover;
  object-position: center top;
}

.home-creator-note {
  position: absolute;
  right: -115px;
  bottom: -38px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 330px;
  border-radius: 12px;
  padding: 14px 20px;
  background: #fffaf1;
  color: #22203f;
  box-shadow: 0 5px 0 #22203f22;
  font-family: var(--font-uni-neue);
  white-space: normal;
  transform: rotate(-8deg);
}

.home-creator-note b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

.home-creator-note div > span {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  text-wrap: balance;
}

.home-creator-note-spark {
  color: #8c66be;
  font-size: 30px;
}

@media (min-width: 1200px) and (max-height: 900px) {
  .home-creator {
    top: 110px;
    width: 325px;
    height: 385px;
  }
}

@media (min-width: 1200px) and (max-width: 1250px) {
  .home-creator {
    top: 126px;
    right: 40px;
    width: 288px;
    height: 361px;
  }

  .home-creator-note {
    right: -60px;
    width: 290px;
    padding: 12px 14px;
  }

  .home-creator-note b {
    font-size: 17px;
  }

  .home-creator-note div > span {
    font-size: 13px;
  }
}

@media (min-width: 1200px) and (max-height: 800px) {
  .home-creator {
    height: 350px;
  }
}

@media (max-width: 1199px) {
  .home-creator {
    position: relative;
    top: auto;
    right: auto;
    width: 290px;
    max-width: 82%;
    height: 350px;
    flex-shrink: 0;
    margin: 36px auto 55px;
  }

  .home-creator-note {
    right: auto;
    bottom: -34px;
    left: -18px;
    width: auto;
    max-width: calc(100% + 30px);
    padding: 12px 15px;
    white-space: normal;
  }

  .home-creator-note b {
    font-size: 18px;
  }

  .home-creator-note div > span {
    font-size: 14px;
  }
}

[data-home-hero] [data-home-hero-pill-labels] {
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.075em;
}

[data-home-hero] [data-home-hero-pill-labels] > span {
  flex-shrink: 0;
}

[data-home-hero] [data-home-hero-plan-caption] {
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.065em;
  color: #626071;
}

[data-home-hero] [data-home-hero-search-hint],
[data-home-hero] [data-home-hero-search-hint] button {
  font-size: 14px;
  line-height: 1.45;
}

[data-home-hero] [data-home-hero-first-year] {
  font-size: 12px;
  letter-spacing: 0.07em;
  line-height: 1.35;
  color: #e4e0ee;
}

[data-home-hero] [data-home-hero-renewal] {
  font-size: 14px;
  line-height: 1.4;
  color: #e4e0ee;
}

[data-home-hero] [data-home-hero-description] {
  font-size: 17px;
  line-height: 1.5;
}

[data-home-hero] [data-home-hero-stat-label] {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.075em;
}

@media (min-width: 1024px) {
  [data-home-hero] {
    /* Cap viewport-driven growth while allowing content to determine its minimum space. */
    --hero-sizing-viewport: min(100svh, calc(850px + var(--header-height, 75px)));
    display: flex;
    min-height: calc(var(--hero-sizing-viewport) - var(--header-height, 75px));
    padding-top: clamp(24px, calc(var(--hero-sizing-viewport) * 0.035), 40px);
  }

  [data-home-hero] [data-home-hero-inner] {
    display: flex;
    flex-direction: column;
  }

  [data-home-hero] [data-home-hero-top] {
    flex: 0 0 auto;
    gap: 20px;
  }

  [data-home-hero] [data-home-hero-top] > a {
    flex-shrink: 0;
    margin-top: 0;
  }

  [data-home-hero] [data-home-hero-title] {
    margin-top: 20px;
    font-size: clamp(80px, min(11vw, calc(var(--hero-sizing-viewport) * 0.38 - 210px)), 200px);
  }

  [data-home-hero] [data-home-hero-search-row] {
    margin-top: clamp(18px, calc(var(--hero-sizing-viewport) * 0.026), 28px);
    grid-template-columns: minmax(0, 32.5rem) max-content;
  }

  [data-home-hero] [data-home-hero-summary] {
    margin-top: auto;
    padding-block: 24px;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  [data-home-hero] [data-home-hero-description] {
    max-width: 420px;
  }
}

@media (min-width: 1024px) and (max-height: 800px) {
  [data-home-hero] {
    padding-top: 20px;
  }

  [data-home-hero] [data-home-hero-title] {
    margin-top: 14px;
  }

  [data-home-hero] [data-home-hero-search-row] {
    margin-top: 16px;
  }

  [data-home-hero] [data-home-hero-summary] {
    padding-block: 18px;
  }
}

@media (max-width: 1023px) {
  [data-home-hero] [data-home-hero-top] {
    gap: 16px;
    align-items: flex-start;
  }

  [data-home-hero] [data-home-hero-pill] {
    border-radius: 18px;
  }

  [data-home-hero] [data-home-hero-pill-labels] {
    column-gap: 7px;
    row-gap: 4px;
  }

  [data-home-hero] [data-home-hero-search-row] {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-home-hero] [data-home-hero-price-card] {
    grid-column: 1;
    grid-row: auto;
    width: max-content;
    max-width: 100%;
    margin-top: 8px;
  }

  [data-home-hero] [data-home-hero-search-hint] {
    padding-inline: 4px;
  }

  [data-home-hero] [data-home-hero-summary] {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 767px) {
  [data-home-hero] [data-home-hero-pill] {
    width: fit-content;
    max-width: 100%;
    align-items: center;
    border-radius: 16px;
    gap: 9px;
    padding: 10px 12px 10px 9px;
  }

  [data-home-hero] [data-home-hero-pill-labels] > span:nth-child(even) {
    display: none;
  }

  [data-home-hero] [data-home-hero-pill-labels] {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 4px 14px;
    font-size: 12px;
  }

  [data-home-hero] [data-home-hero-pill-labels] > span:last-child {
    grid-column: 1 / -1;
  }

  [data-home-hero] [data-home-hero-search-row] {
    gap: 12px;
  }

  [data-home-hero] [data-home-hero-search-row] > * {
    margin-block: 0;
  }

  [data-home-hero] [data-home-hero-mobile-plan] {
    margin-top: 16px;
  }

  [data-home-hero] [data-home-hero-mobile-plan] > a {
    padding-block: 11px;
  }

  [data-home-hero] [data-home-hero-description] {
    font-size: 16px;
  }

  [data-home-hero] [data-home-hero-price-card] {
    width: 100%;
  }

  [data-home-hero] [data-home-hero-summary] > div {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 379px) {
  [data-home-hero] [data-home-hero-summary] > div {
    grid-template-columns: 1fr;
  }
}
