/* The homepage has two equal product pillars. All styles stay within its scope. */
.home-hero {
  padding-top: clamp(32px, 4vw, 57px);
}
.home-hero-intro {
  margin: 0 auto 34px;
  text-align: center;
}
.home-hero-intro > .eyebrow {
  font-size: 10px;
  letter-spacing: 0.19em;
  line-height: 1.7;
}
.home-hero h1 {
  margin-top: 17px;
  font-size: clamp(38px, 4.45vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.052em;
  text-wrap: balance;
}
.home-hero-intro > p {
  max-width: 860px;
  margin: 19px auto 0;
  font-size: clamp(14px, 1.22vw, 17px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: balance;
}
.home-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 25px;
}
.home-hero-actions .button {
  min-height: 49px;
}
.home-hero-how {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  font-size: 13px;
}
.home-hero-how > .icon {
  width: 36px;
  height: 36px;
  color: var(--olive);
}
.home-hero-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.home-pillar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 25px 25px 0;
  border: 1px solid #d9dcd3;
  border-radius: 9px;
  background: linear-gradient(145deg, #ffffffb3, #fffefa);
  box-shadow: 0 6px 20px -17px #35432e35;
}
.home-pillar-heading {
  margin-bottom: 18px;
}
.home-pillar-heading .eyebrow {
  display: flex;
  align-items: center;
  min-height: 22px;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 0.19em;
  color: #4f584a;
}
.home-ai-badge {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #ece3f4;
  color: #685275;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}
.home-pillar-heading h2 {
  margin-top: 8px;
  font-size: clamp(29px, 2.9vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.home-pillar-heading p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.home-ai-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  flex: 1;
}
.home-ai-comparison figure {
  min-width: 0;
  margin: 0;
}
.home-ai-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eee9df;
  border-radius: 3px;
}
.home-ai-photo--original {
  background: #f6f5f2;
}
.home-ai-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-ai-comparison figcaption {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.home-ai-arrow {
  align-self: center;
  padding-bottom: 27px;
  color: var(--olive);
}
.home-ai-arrow .icon {
  width: 28px;
  height: 28px;
}
.home-hero-disclosure {
  color: #70766a;
  font-size: 9px;
  line-height: 1.6;
}
.home-pillar--create > .home-hero-disclosure {
  margin: 12px 0 14px;
  text-align: center;
}
.home-pillar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 15px;
  min-height: 61px;
  margin-top: auto;
  padding-block: 16px;
  border-top: 1px solid #e0e3da;
}
.home-pillar-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: 12px;
  line-height: 1.5;
}
.home-pillar-footer a .icon {
  width: 15px;
  height: 15px;
}
.home-creation-types {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.home-creation-types i {
  height: 12px;
  border-left: 1px solid var(--line);
}
.home-sort-before {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 140px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e5e7df;
  border-radius: 6px;
  background: #fffdf9;
}
.home-sort-label strong,
.home-sort-label span {
  display: block;
  font-size: 10px;
  line-height: 1.5;
}
.home-sort-label strong {
  font-weight: 500;
}
.home-sort-label span {
  color: var(--muted);
  font-size: 9px;
}
.home-sort-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-sort-product {
  min-width: 0;
}
.home-sort-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 3px;
  background: #eee9df;
}
.home-sort-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.home-sort-products--before .home-sort-photo {
  height: 90px;
}
.home-sort-products--before .home-sort-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.home-sort-rules {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  background: #f2f3ed;
  border-radius: 4px;
}
.home-rules-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}
.home-static-rules {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-static-rules li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
}
.home-static-rules .icon {
  width: 13px;
  height: 13px;
}
.home-rule-controls:not([hidden]) {
  display: grid;
  gap: 5px;
}
.home-rule-controls button {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 33px;
  padding: 5px 6px;
  border: 1px solid #c5cfbb;
  border-radius: 4px;
  color: #35432e;
  background: #e7edde;
  font-size: 9px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.home-rule-controls button .icon {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
}
.home-rule-controls button[aria-pressed="false"] {
  color: #62675b;
  border-color: #dcdfd4;
  background: #fffefa;
}
.home-rule-controls button[aria-pressed="false"] .icon {
  opacity: 0.18;
}
.home-sort-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-block: 6px;
  color: #78866b;
  font-size: 7px;
  letter-spacing: 0.11em;
}
.home-sort-flow .icon {
  width: 19px;
  height: 19px;
  transform: rotate(90deg);
}
.home-sort-after {
  padding: 11px;
  border: 1px solid #d7decf;
  border-radius: 6px;
  background: #f8f9f3;
}
.home-sort-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 10px;
  min-height: 22px;
  margin-bottom: 9px;
}
.home-sort-result-heading strong {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}
.home-sort-reset {
  padding: 3px 0;
  color: #64705a;
  font-size: 9px;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.home-sort-reset .icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 3px;
  vertical-align: middle;
}
.home-sort-products--after .home-sort-photo {
  height: clamp(120px, 11vw, 169px);
}
.home-sort-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  max-width: calc(100% - 12px);
  padding: 3px 5px;
  border-radius: 3px;
  color: #45503c;
  background: #f0f4e8ee;
  font-size: 8px;
  line-height: 1.4;
}
.home-sort-badge.is-leader {
  background: #35432eee;
  color: #fff;
}
.home-sort-badge.is-unavailable {
  background: #f9f8f4ed;
  color: #6c675c;
}
.home-sort-name {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.4;
}
.home-sort-name [data-sort-position] {
  color: #738266;
  font-variant-numeric: tabular-nums;
}
.home-sort-status {
  min-height: 33px;
  margin: 9px 0 6px;
  color: #65725a;
  font-size: 9px;
  line-height: 1.6;
}
.home-support-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-support-links > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  min-height: 47px;
  padding-inline: 18px;
}
.home-support-links > a + a {
  border-left: 1px solid var(--line);
}
.home-support-links > a > .icon:first-child {
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
}
.home-support-links strong,
.home-support-links a > span > span {
  display: block;
  line-height: 1.6;
}
.home-support-links strong {
  font-size: 13px;
  font-weight: 500;
}
.home-support-links a > span > span {
  color: var(--muted);
  font-size: 11px;
}
.home-support-arrow {
  width: 14px;
  height: 14px;
  margin-left: 3px;
  color: #79846f;
}
.home-hero a:focus-visible,
.home-hero button:focus-visible {
  outline: 2px solid #788966;
  outline-offset: 4px;
}
.home-pillar-footer a:hover,
.home-hero-how:hover,
.home-support-links a:hover strong {
  color: #78875f;
}
.home-hero [hidden] {
  display: none !important;
}
@media (max-width: 1180px) and (min-width: 821px) {
  .home-pillar {
    padding-inline: 19px;
  }
  .home-sort-before {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .home-sort-rules {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .home-rule-controls:not([hidden]),
  .home-static-rules {
    display: flex;
  }
  .home-rule-controls button {
    width: auto;
  }
  .home-sort-products--before .home-sort-photo {
    height: 67px;
  }
  .home-pillar-footer {
    justify-content: flex-start;
  }
}
@media (max-width: 820px) {
  .home-hero h1 {
    font-size: clamp(39px, 7.5vw, 59px);
    max-width: 660px;
    margin-inline: auto;
  }
  .home-hero-copy-break {
    display: none;
  }
  .home-hero-intro > p {
    max-width: 55ch;
  }
  .home-hero-pillars {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .home-pillar {
    padding: 24px 24px 0;
  }
  .home-pillar-heading h2 {
    font-size: 38px;
  }
  .home-ai-comparison {
    gap: 15px;
  }
  .home-ai-photo {
    max-height: 340px;
  }
  .home-sort-before {
    grid-template-columns: 65px minmax(0, 1fr) 152px;
  }
  .home-sort-products--before .home-sort-photo {
    height: 105px;
  }
  .home-sort-products--after .home-sort-photo {
    height: clamp(140px, 30vw, 225px);
  }
  .home-sort-name {
    font-size: 12px;
  }
  .home-sort-badge {
    font-size: 10px;
  }
  .home-support-links > a {
    gap: 10px;
    padding-inline: 10px;
  }
  .home-support-links > a > .icon:first-child {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
  }
  .home-support-arrow {
    display: none;
  }
  .home-support-links strong {
    font-size: 12px;
  }
  .home-support-links a > span > span {
    font-size: 10px;
  }
}
@media (max-width: 520px) {
  .home-hero-intro {
    margin-bottom: 26px;
  }
  .home-hero-intro > .eyebrow {
    font-size: 8px;
    letter-spacing: 0.14em;
  }
  .home-hero h1 {
    font-size: clamp(36px, 10vw, 47px);
  }
  .home-hero h1 em {
    display: block;
  }
  .home-hero-intro > p {
    font-size: 13px;
    line-height: 1.75;
  }
  .home-hero-actions {
    gap: 8px;
    margin-top: 20px;
    flex-direction: column;
  }
  .home-hero-actions .button {
    width: min(100%, 290px);
    justify-content: center;
  }
  .home-pillar {
    padding: 20px 14px 0;
  }
  .home-pillar-heading h2 {
    font-size: 32px;
  }
  .home-pillar-heading p {
    font-size: 12px;
  }
  .home-ai-comparison {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    gap: 5px;
  }
  .home-ai-arrow .icon {
    width: 20px;
    height: 20px;
  }
  .home-ai-comparison figcaption {
    font-size: 9px;
  }
  .home-pillar-footer {
    padding-block: 13px;
  }
  .home-sort-before {
    grid-template-columns: 43px minmax(0, 1fr);
    padding: 8px;
    gap: 8px;
  }
  .home-sort-products--before .home-sort-photo {
    height: 89px;
  }
  .home-sort-rules {
    grid-column: 1 / -1;
    padding: 8px;
    gap: 5px;
  }
  .home-rule-controls:not([hidden]),
  .home-static-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .home-rule-controls button {
    min-height: 42px;
    font-size: 9px;
  }
  .home-sort-after {
    padding: 8px;
  }
  .home-sort-products {
    gap: 5px;
  }
  .home-sort-products--after .home-sort-photo {
    height: clamp(119px, 36vw, 180px);
    padding-top: 24px;
  }
  .home-sort-name {
    font-size: 9px;
  }
  .home-sort-badge {
    top: 5px;
    left: 3px;
    max-width: calc(100% - 6px);
    padding: 2px 3px;
    font-size: 7px;
  }
  .home-support-links {
    grid-template-columns: 1fr;
    padding-block: 8px;
    margin-top: 22px;
  }
  .home-support-links > a {
    justify-content: flex-start;
    padding: 16px 10px;
    gap: 17px;
  }
  .home-support-links > a + a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .home-support-links strong {
    font-size: 13px;
  }
  .home-support-links a > span > span {
    font-size: 11px;
  }
  .home-support-arrow {
    display: block;
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero *,
  .home-hero *::before,
  .home-hero *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
