/* Home page composition only. Typography and brand colors live in styles/site.css. */
.home-hero {
  --position: 30% 50%;
  --crop-height: 194.736842vw;
  --crop-left: -98.245614%;
  --crop-top: 0vw;
  --crop-width: 389.473684%;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100svh;
  padding: 160px 6vw 65px 51%;
  overflow: hidden;
}
.home-header {
  background: transparent;
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  z-index: 3;
}
.home-hero .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--position);
  z-index: -2;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(6, 23, 34, 0.12),
    rgba(6, 23, 34, 0.65) 53%,
    rgba(6, 23, 34, 0.87)
  );
}
.home-hero .copy {
  width: 100%;
  max-width: 680px;
}
.home-hero h3 {
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
  margin: 26px 0 30px;
  max-width: 580px;
}
@media (max-width: 800px) {
  .home-hero {
    padding: 150px 25px 35px;
    min-height: var(--crop-height);
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
  }
  .home-header {
    left: 8px;
    right: 8px;
    top: 0;
  }
  .home-hero .copy {
    max-width: 620px;
    /* Match the upward adjustment in the mobile reference. */
    transform: translateY(clamp(-110px, -26vw, -72px));
  }
  .home-hero h3 {
    margin: 23px 0 27px;
  }
  .home-hero::after {
    background: linear-gradient(
      180deg,
      rgba(6, 23, 34, 0.1),
      rgba(6, 23, 34, 0.18) 24%,
      rgba(6, 23, 34, 0.74) 48%,
      rgba(6, 23, 34, 0.9)
    );
  }
  .home-hero .photo {
    inset: auto;
    left: var(--crop-left);
    top: var(--crop-top);
    width: var(--crop-width);
    height: auto;
    max-width: none;
    object-fit: initial;
    object-position: initial;
  }
}

/* Features: transparent illustrations sit directly on the site background. */
.home-features {
  padding: clamp(56px, 7vw, 112px) 5vw clamp(42px, 5.25vw, 84px);
  background: var(--color-background-1);
}
.features-heading {
  text-align: center;
  margin: 0 0 clamp(24px, 3vw, 48px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  max-width: 1560px;
  margin-inline: auto;
}
.feature-card {
  min-width: 0;
}

.feature-card h3,
.feature-card p {
  text-align: center;
}
.feature-art {
  aspect-ratio: 3 / 2;
  margin-bottom: 26px;
}
.feature-card h3 {
  margin: 0 0 12px;
}
.feature-card p {
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 36px;
  }
}
@media (max-width: 600px) {
  .home-features {
    padding: 48px 25px 48px;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    max-width: 420px;
  }
  .feature-art {
    margin-bottom: 18px;
  }
}

/* A shallow horizon arc overlaps the hero without shifting its content. */
.horizon-divider {
  position: relative;
  z-index: 1;
  height: 0;
  pointer-events: none;
}

.horizon-divider svg {
  position: absolute;
  left: 0;
  top: calc(clamp(48px, 7vw, 100px) / -2);
  width: 100%;
  height: clamp(48px, 7vw, 100px);
  overflow: visible;
}

#horizon-orange stop {
  stop-color: var(--color-primary);
}

#horizon-blue stop {
  stop-color: var(--color-secondary);
}

.horizon-line {
  fill: none;
  stroke: url(#horizon-orange);
  stroke-width: 3.5px;
}

.horizon-glow {
  fill: url(#horizon-blue);
}

/* Keep the horizon flatter at phone and tablet widths. */
@media (max-width: 800px) {
  .horizon-divider svg {
    height: 24px;
    top: -12px;
  }
}

@media (max-width: 800px) {
  .home-header .brand::before {
    top: 0;
    left: -8px;
  }
}

/* Homepage introductions to the full About and Pricing pages. */
.home-about-preview {
  background: var(--color-background-1);
  padding: 36px 25px 100px;
  text-align: center;
}
.home-about-copy {
  max-width: 760px;
  margin-inline: auto;
}
.home-about-copy h2 {
  line-height: 1.2;
  margin-bottom: 24px;
  text-wrap: balance;
}
.home-about-copy p {
  font-size: var(--size-h3);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 24px;
}
.preview-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.preview-link:hover {
  color: var(--color-text);
}
.home-pricing-preview {
  padding: 60px 25px 64px;
  text-align: center;
  background: var(--color-background-1);
}
/* Match the website-build card on the pricing page. */
.home-price-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px 48px;
  max-width: 1080px;
  margin: 0 auto 24px;
  padding: 36px 40px 28px;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--color-text) 16%, transparent);
  border-radius: 16px;
  background: linear-gradient(120deg, rgb(8 31 43 / 70%), rgb(8 31 43 / 20%));
}
.home-price-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 12px;
}
.home-build-copy h2 {
  margin: 0 0 12px;
}
.home-build-copy > p:last-child {
  margin: 0;
  max-width: 510px;
}
.home-build-price {
  align-self: center;
  padding-left: 32px;
  border-left: 1px solid rgb(255 250 241 / 16%);
}
.home-price-amount {
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.15;
  margin: 0;
}
.home-price-note {
  font-size: 14px;
  margin: 12px 0 0;
  color: rgb(255 250 241 / 70%);
}
.home-plan-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 250 241 / 12%);
}
.home-plan-options h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.home-plan-options p {
  margin: 0;
}
.home-plan-options strong {
  font-size: 28px;
  font-weight: 400;
}
@media (max-width: 800px) {
  .home-price-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }
  .home-build-price {
    padding: 0;
    border: 0;
  }
}
@media (max-width: 600px) {
  .home-about-preview {
    padding: 32px 25px 64px;
  }
  .home-pricing-preview {
    padding: 40px 25px 48px;
  }
  .home-plan-options {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Continuous charcoal surface behind the homepage sections. */
.home-content {
  --horizon-height: clamp(48px, 7vw, 100px);
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--horizon-height) / -2);
  padding-top: calc(var(--horizon-height) / 2);
}
/* Shape the continuous background itself; the SVG glow remains transparent. */
.home-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 50 Q500 -50 1000 50 V100 H0 Z'/%3E%3C/svg%3E"),
    linear-gradient(white, white);
  mask-size:
    100% var(--horizon-height),
    100% calc(100% - var(--horizon-height) + 1px);
  mask-position:
    center top,
    center bottom;
  mask-repeat: no-repeat;
  background: var(--color-background-1);
}
.home-content .home-features,
.home-content .home-about-preview,
.home-content .home-pricing-preview {
  background: transparent;
}

@media (max-width: 800px) {
  .home-content {
    --horizon-height: 24px;
  }
}
