/* The original navigation, directory, dialogs and footer retain their styles. */
html:has(.smart-home-hero) {
  scrollbar-gutter: stable both-edges;
}

.hero.smart-home-hero {
  --home-gold: #f1d28b;
  --home-ink: #152844;
  --home-paper: #fffaf0;
  display: block;
  max-inline-size: none;
  margin-inline: 0;
  padding: clamp(1rem, 1.7vw, 1.55rem) 1rem 1.1rem;
  background: radial-gradient(ellipse at 50% 2%, #223d61 0%, #142844 56%, #10213a 100%);
  border-bottom: 1px solid #a5804b;
  color: var(--home-paper);
  text-align: center;
}

.smart-home-hero .hero-layout {
  display: block;
  max-width: 72rem;
  margin-inline: auto;
}

.smart-home-brand {
  display: grid;
  justify-items: center;
  gap: .14rem;
}

.smart-home-wordmark {
  color: var(--home-gold);
  font: 500 clamp(1.4rem, 2.4vw, 1.85rem)/1.1 "Frank Ruhl Libre", Georgia, serif;
  letter-spacing: .04em;
}

.smart-home-product {
  color: #e6d4aa;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .075em;
}

.smart-home-hero .sea-art {
  display: flex;
  width: min(36vw, 8.5rem);
  margin: .35rem auto .22rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.smart-home-hero .sea-art svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 5.9rem;
}

.smart-home-hero .sea-art > span {
  display: none;
}

.smart-home-hero .hero-copy {
  max-width: 45rem;
  margin-inline: auto;
}

.smart-home-hero h1,
html[dir="rtl"] .smart-home-hero h1 {
  max-width: none;
  margin: 0 auto .52rem;
  color: var(--home-paper);
  font-size: clamp(1.95rem, 3.6vw, 2.75rem);
  line-height: 1.06;
  text-wrap: balance;
}

.smart-home-hero h1 span,
.smart-home-hero h1 em {
  display: block;
  white-space: normal;
}

.smart-home-hero h1 em {
  color: var(--home-gold);
  font-size: inherit;
  line-height: inherit;
}

html[dir="rtl"] .smart-home-hero h1 em,
html[dir="rtl"] .smart-home-wordmark,
html[dir="rtl"] .smart-home-product {
  font-style: normal;
  letter-spacing: normal;
}

.smart-home-hero .smart-home-subtitle {
  margin: 0 auto .38rem;
  color: #f2d698;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.4;
}

.smart-home-hero .hero-description {
  max-width: 40rem;
  margin: 0 auto;
  color: #e9edf5;
  font-size: 1rem;
  line-height: 1.46;
}

.smart-home-hero .smart-home-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  inline-size: min(100%, 41rem);
  gap: .56rem;
  margin: .86rem auto .42rem;
}

.smart-home-hero .smart-home-actions > :is(#heroRegister, .hero-outline, #heroShadchan) {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 46px;
  padding: .57rem .7rem;
  border: 1px solid var(--home-gold);
  border-radius: .4rem;
  background: var(--home-gold);
  color: var(--home-ink);
  box-shadow: none;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.smart-home-hero .smart-home-actions > :is(#heroRegister, .hero-outline, #heroShadchan):hover {
  background: #ffe9ae;
  border-color: #ffe9ae;
}

.smart-home-hero .smart-home-actions > :is(#heroRegister, .hero-outline, #heroShadchan):active {
  background: #e4c477;
  border-color: #e4c477;
}

.smart-home-hero .smart-home-actions > .workspace-launch {
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  margin: 0;
}

.smart-home-features a:hover {
  color: #fffaf0;
}

.smart-home-hero :is(a, button):focus-visible {
  outline: 2px solid #fff5d6;
  outline-offset: 3px;
}

.smart-home-hero .smart-home-privacy {
  margin: .06rem 0 .72rem;
  color: #e8d6ae;
  font-size: .86rem;
  letter-spacing: .01em;
  line-height: 1.35;
}

.smart-home-hero .smart-home-features.trust-band {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto;
  padding: .75rem 0 0;
  border-top: 1px solid #d8b77452;
}

.smart-home-hero .smart-home-features article {
  display: block;
  min-width: 0;
  padding: 0 .85rem;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.smart-home-hero .smart-home-features article::before {
  content: none;
}

.smart-home-hero .smart-home-features article + article {
  border-inline-start: 1px solid #d8b77438;
}

.smart-home-feature-icon {
  display: inline-grid;
  place-items: center;
  color: var(--home-gold);
  margin-bottom: .25rem;
}

.smart-home-feature-icon .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.smart-home-hero .smart-home-features h2 {
  margin: 0 0 .23rem;
  color: #fffaf0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.15;
}

.smart-home-hero .smart-home-features p {
  color: #e2e9f4;
  font-size: .9375rem;
  line-height: 1.35;
}

.smart-home-hero .smart-home-features a {
  display: inline-block;
  margin-top: .26rem;
  color: #f6dda0;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .17em;
}

@media (max-width: 760px) {
  .smart-home-hero .smart-home-features.trust-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: .75rem;
    padding-top: .8rem;
  }

  .smart-home-hero .smart-home-features article:nth-child(odd) {
    border-inline-start: 0;
  }

  .smart-home-hero .smart-home-features article {
    padding-inline: .47rem;
  }

  .smart-home-hero .hero-description {
    max-width: 31rem;
    font-size: 1rem;
  }

  .smart-home-hero .sea-art {
    width: min(30vw, 7.2rem);
  }
}

@media (max-width: 500px) {
  .smart-home-hero .smart-home-actions {
    gap: .38rem;
  }

  .smart-home-hero .smart-home-actions > :is(#heroRegister, .hero-outline, #heroShadchan) {
    padding-inline: .35rem;
    font-size: .875rem;
  }
}

/* The explanatory guide below the directory is still separately styled. */
.smart-home-steps li,
.smart-home-workspace p {
  font-size: 1rem;
  line-height: 1.55;
}

.smart-home-workspace .smart-home-kicker {
  color: #ebcd87;
  font-weight: 600;
}

.smart-home-workspace .outline-button {
  min-height: 44px;
  font-size: .9375rem;
  text-align: center;
  white-space: normal;
}

.smart-home-guide {
  display: grid;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px clamp(2rem, 5vw, 3.5rem);
}

main:has(> #shadchanSection:not([hidden])) > .smart-home-guide {
  display: none;
}

.smart-home-steps,
.smart-home-workspace {
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid #dbcdae;
  border-radius: .75rem;
  background: #fffdf7;
}

.smart-home-steps h2,
.smart-home-workspace h2 {
  margin: 0 0 .65rem;
  scroll-margin-block-start: 7rem;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.2;
}

.smart-home-steps ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem 1.4rem;
  margin: 0;
  padding-inline-start: 1.25rem;
}

.smart-home-steps li::marker {
  color: #775c2c;
  font-weight: 700;
}

.smart-home-workspace {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff9ee;
  background: #172d4b;
  border-color: #c0a363;
}

.smart-home-workspace > div {
  flex: 1 1 25rem;
}

.smart-home-workspace h2 {
  color: #fff9ee;
}

.smart-home-workspace .smart-home-kicker {
  margin: 0 0 .35rem;
  font-size: .875rem;
}

.smart-home-workspace .outline-button {
  color: #f3dfad;
  border-color: #cdb77b;
  background: transparent;
}

.smart-home-workspace .outline-button:hover {
  background: #29466d;
}

@media (max-width: 800px) {
  .smart-home-steps ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smart-home-guide {
    padding-inline: 16px;
  }
}
