.duolock-home-page {
  background: #fff8f0;
}

body.duolock-home-page section.home-hero {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

body.duolock-home-page section.home-intro {
  max-width: 820px;
  padding: clamp(120px, 10vw, 180px) var(--gutter) clamp(120px, 10vw, 168px);
}

body.duolock-home-page section.home-areas {
  max-width: none;
  padding: clamp(96px, 7vw, 140px) max(var(--gutter), calc((100vw - var(--container)) / 2)) clamp(120px, 10vw, 180px);
}

.home-header {
  background: rgba(255, 248, 240, 0.78);
}

.home-hero {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(64px, 9vw, 118px) max(var(--gutter), calc((100vw - var(--container)) / 2));
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/generated/duolock-general-hero-wide.webp");
  background-position: center 58%;
  background-size: cover;
  transform: scale(1.02);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.18) 0%, rgba(255, 248, 240, 0.06) 52%, rgba(34, 22, 43, 0.17) 100%),
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.16), transparent 42%);
}

.home-hero-copy {
  width: min(100%, 900px);
  padding: clamp(20px, 4vw, 48px);
  text-align: center;
}

.home-eyebrow,
.home-section-label {
  margin: 0;
  color: rgba(21, 21, 21, 0.62);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-eyebrow {
  color: rgba(21, 21, 21, 0.72);
}

.home-hero h1 {
  max-width: 850px;
  margin: 18px auto 0;
  color: var(--text);
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}

.home-hero-lede {
  max-width: 580px;
  margin: 26px auto 0;
  color: rgba(21, 21, 21, 0.68);
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 780;
  line-height: 1.25;
  text-wrap: balance;
}

.home-hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.home-button:hover {
  transform: translateY(-1px);
}

.home-button-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 14px 28px rgba(21, 21, 21, 0.18);
}

.home-button-secondary {
  border-color: rgba(21, 21, 21, 0.14);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  backdrop-filter: blur(14px);
}

.home-button:focus-visible,
.home-area-card:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 4px;
}

.home-intro {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(88px, 12vw, 148px) var(--gutter) clamp(72px, 10vw, 120px);
  text-align: center;
}

.home-intro h2,
.home-section-heading h2 {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--text);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.home-intro > p:last-child {
  max-width: 600px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 19px;
  font-weight: 680;
  line-height: 1.5;
  text-wrap: balance;
}

.home-areas {
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2)) clamp(88px, 12vw, 148px);
}

.home-section-heading {
  margin-bottom: clamp(42px, 4vw, 64px);
  text-align: center;
}

.home-section-heading h2 {
  margin-inline: auto;
}

.home-area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-area-card {
  --home-card-ink: var(--text);
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 30px;
  color: var(--text);
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-area-card .home-area-label {
  margin: 0;
  color: var(--home-card-ink);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.home-area-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.home-area-card > p {
  margin: 0;
  max-width: 28ch;
  color: rgba(21, 21, 21, 0.64);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.35;
}

.home-area-couple {
  --home-card-ink: #a13f58;
  background: linear-gradient(145deg, #ffd9df, #fff6e5);
}

.home-area-friends {
  --home-card-ink: #4b6b2d;
  background: linear-gradient(145deg, #d9f6c2, #f7ffd9);
}

.home-area-family {
  --home-card-ink: #514b82;
  background: linear-gradient(145deg, #e7dcff, #dff5fb);
}

.home-footer {
  padding: 32px max(var(--gutter), calc((100vw - var(--container)) / 2)) 42px;
  background: var(--footer-plum);
  color: #fff;
}

.home-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: end;
}

.home-footer .brand {
  color: #fff;
}

.home-footer > .home-footer-inner > div > p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 720;
}

.home-footer .footer-links {
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.72);
}

.home-footer .footer-links a:hover,
.home-footer .footer-links a:focus-visible {
  color: #fff;
}

@media (max-width: 980px) {
  .home-hero {
    min-height: 0;
  }

  .home-area-grid {
    grid-template-columns: 1fr;
  }

  .home-area-card {
    min-height: 220px;
  }

  .home-footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-footer .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body.duolock-home-page section.home-intro {
    padding: 96px var(--gutter) 112px;
  }

  body.duolock-home-page section.home-areas {
    padding: 88px var(--gutter) 120px;
  }

  body.duolock-home-page section.home-hero {
    aspect-ratio: auto;
    min-height: calc(100svh - var(--header-height));
    padding: 46px var(--gutter) 54px;
    align-items: start;
  }

  .home-hero::before {
    background-position: center 64%;
  }

  .home-hero-copy {
    padding: 10px 0 0;
  }

  .home-hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .home-hero-lede {
    margin-top: 22px;
    font-size: 18px;
  }

  .home-hero-actions {
    margin-top: 28px;
    display: grid;
  }

  .home-button {
    width: 100%;
  }

  .home-intro {
    padding-top: 82px;
  }

  .home-intro h2,
  .home-section-heading h2 {
    font-size: 42px;
  }

  .home-area-card {
    min-height: 230px;
    padding: 24px;
  }
}
