/* Homepage design from the November 24 visual handoff. */

@font-face {
  font-family: Manrope;
  src: url('assets/itay-nov24/fonts/Manrope-Variable.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #092752;
  --blue: #0664ff;
  --pale: #e7f4ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--navy);
  background: #fafdff;
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(16px, 1.65vw, 27px);
}

main, footer {
  max-width: 1440px;
  margin: auto;
}

h1, h2, h3, p, figure {
  margin: 0;
}

span {
  color: var(--blue);
}

a, button, input {
  font: inherit;
}

button, a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #d7a241;
  outline-offset: 3px;
}

.wrap {
  width: 96%;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  display: grid;
  grid-template-columns: 49% 51%;
  min-height: 38vw;
  max-height: 550px;
}

.hero-photo {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.hero-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
  display: block;
  transform: scale(1.18);
  transform-origin: 65% 65%;
  mask-image: linear-gradient(to right, #000 92%, transparent);
}

.brand {
  position: absolute;
  top: 0;
  left: 11%;
  width: 42%;
  background: white;
  padding: .8vw 1vw;
}

.brand img {
  width: 100%;
  display: block;
}

.hero-copy {
  padding: 5.2vw 2vw 4vw 1.5vw;
  background: #f0f9ff;
}

.eyebrow {
  font-size: 1.85vw;
  font-weight: 800;
  margin-bottom: 1vw;
  letter-spacing: -.04em;
}

.hero h1 {
  font-size: 5.35vw;
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -.05em;
}

.hero h2 {
  font-size: 2.65vw;
  letter-spacing: -.045em;
  line-height: 1.2;
  margin: .5vw 0;
}

.hero-copy > p:last-child {
  font-size: 2.05vw;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.amount {
  font-size: 7vw;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: -.045em;
  vertical-align: middle;
}

.signup {
  position: relative;
  background: white;
  border-radius: 28px;
  padding: 1.4vw 2.5vw 1.7vw;
  box-shadow: 0 8px 20px #66b9ec22;
  margin-top: -1vw;
}

.signup h2 {
  font-size: 3.15vw;
  letter-spacing: -.045em;
  font-weight: 800;
  margin-bottom: 1.5vw;
}

.fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, .95fr);
  gap: 1.3vw;
}

.fields input {
  width: 100%;
  min-width: 0;
  border: 1px solid #bbd4fa;
  border-radius: 12px;
  background: #fff;
  padding: 1vw 1.1vw;
  font-size: max(16px, 1.6vw);
  color: var(--navy);
}

.fields input::placeholder {
  color: #647795;
}

.fields button, .button {
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  padding: 1vw 1.8vw;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1vw;
}

.fields button {
  font-size: max(16px, 1.7vw);
  min-height: 44px;
  padding-inline: 1vw;
}

.consent {
  font-size: max(12px, 1.02vw);
  text-align: center;
  margin-top: 1.1vw;
  color: #667a9c;
}

#status {
  font-size: 16px;
  text-align: center;
}

#status:not(:empty) {
  margin-top: 16px;
}

.giveaway-strip {
  border: 1px solid var(--blue);
  border-radius: 30px;
  text-align: center;
  padding: .75vw;
  margin-top: 2.3vw;
  font-size: 1.6vw;
  font-weight: 700;
  letter-spacing: -.04em;
}

.giveaway-strip span {
  padding: 0 1vw;
}

.preview {
  display: grid;
  grid-template-columns: 34% 64%;
  gap: 2%;
  align-items: center;
  padding: 3.3vw 1.4vw 3vw;
}

.preview h2, .benefits h2 {
  font-size: 4.4vw;
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 800;
}

.preview p {
  font-size: 2.2vw;
  line-height: 1.25;
  margin-top: 2vw;
}

.preview figure > img {
  width: 100%;
  display: block;
  border-radius: 22px;
  box-shadow: 0 8px 22px #4991cb20;
}

figcaption, .sample-note {
  font-size: 12px;
  text-align: center;
  color: #657b9d;
  margin-top: 8px;
}

.benefits {
  display: grid;
  grid-template-columns: 49% 45%;
  gap: 6%;
  align-items: center;
  padding: 4vw 3% 5vw;
}

.benefits h3 {
  font-size: 2.9vw;
  line-height: 1.15;
  letter-spacing: -.04em;
  margin: 1.8vw 0 1vw;
}

.benefits p {
  font-size: 2vw;
  line-height: 1.3;
  max-width: 90%;
}

.benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 1.5vw;
  background: #fff;
  box-shadow: 0 6px 18px #53a9d91a;
  border-radius: 20px;
  padding: 1.2vw 1.4vw;
  margin: 1vw 0;
  font-weight: 800;
  font-size: 1.8vw;
  letter-spacing: -.04em;
}

.benefits li img {
  width: 3.2vw;
  height: 3.2vw;
  border-radius: 50%;
  background: #c3edcf;
  padding: .7vw;
}

.features {
  padding: 1.5vw 1.5% 4vw;
}

.features > h2 {
  font-size: 3.7vw;
  letter-spacing: -.045em;
  line-height: 1.15;
  font-weight: 800;
}

.features > p:not(.sample-note) {
  font-size: 2vw;
  margin: 1vw 0 3vw;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3%;
}

.feature-grid article {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 5px 15px #429bcb1c;
  overflow: hidden;
}

.ui-preview {
  width: 100%;
  aspect-ratio: 217/177;
  object-fit: contain;
  display: block;
}

.feature-copy {
  padding: 0 1.8vw 2vw;
}

.feature-copy h3 {
  font-size: 2.5vw;
  letter-spacing: -.045em;
  line-height: 1.12;
  font-weight: 800;
}

.feature-copy p {
  font-size: 1.8vw;
  line-height: 1.25;
  margin-top: 1vw;
}

.project-ui {
  aspect-ratio: 217/177;
  padding: 1.7vw 1.3vw;
  font-size: .92vw;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1vw;
}

.project-header strong {
  font-size: 1.35vw;
}

.project-header span {
  background: var(--blue);
  color: white;
  border-radius: 20px;
  padding: .35vw .6vw;
  font-size: .7vw;
}

.project-tabs {
  font-size: .78vw;
  margin-bottom: .8vw;
  white-space: nowrap;
  color: #647795;
}

.project-ui > img {
  width: 100%;
  aspect-ratio: 2.4;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  margin-bottom: .4vw;
}

.project-ui > strong {
  display: block;
  font-size: .95vw;
}

.project-ui > small {
  display: inline-block;
  color: #286341;
  background: #d6f0d8;
  border-radius: 12px;
  padding: .15vw .5vw;
  margin-top: .3vw;
}

.giveaway {
  background: var(--pale);
  border-radius: 30px;
  padding: 3.6vw 3% 3vw;
  text-align: center;
  margin-bottom: 4.2vw;
}

.prize-row {
  display: grid;
  grid-template-columns: 26% repeat(3, 1fr);
  gap: 1.5%;
  align-items: start;
}

.prize-row article {
  min-width: 0;
}

.photo-frame {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 1.23;
}

.photo-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame .mortgage {
  transform: scale(1.22);
  transform-origin: 45% 80%;
}

.prize-intro {
  text-align: left;
}

.prize-intro h2 {
  font-size: 3.15vw;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.12;
}

.prize-intro p {
  font-size: 2vw;
  line-height: 1.2;
  margin-top: 2vw;
}

.prize-row article > img {
  width: 100%;
  aspect-ratio: 1.23;
  object-fit: cover;
  border-radius: 18px;
}

.prize-row .mortgage {
  object-position: 45% 75%;
}

.prize-row h3 {
  font-size: 1.95vw;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-top: 1vw;
  font-weight: 800;
}

.giveaway > .button {
  margin-top: 3.2vw;
  border-radius: 40px;
  font-size: 2vw;
  padding: 1.3vw 3vw;
}

.button span {
  color: inherit;
}

.rules-note {
  font-size: 1.35vw;
  margin-top: 2vw;
}

.closing {
  background: #0b3155;
  color: white;
  text-align: center;
  padding: 3vw 3% 4vw;
}

.closing h2 {
  font-size: 4vw;
  font-weight: 800;
  letter-spacing: -.04em;
}

.closing p {
  font-size: 2vw;
  line-height: 1.35;
  margin: 1vw auto 2vw;
}

.closing .button {
  font-size: 2vw;
  border-radius: 35px;
  padding: 1.3vw 3vw;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5vw 2%;
  gap: 2vw;
  font-size: max(12px, .9vw);
  background: white;
}

footer img {
  width: 19vw;
  max-width: 274px;
}

footer nav {
  display: flex;
  gap: 2vw;
}

footer a {
  color: #60789e;
}

footer small {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (min-width: 1440px) {
  .hero {
    min-height: 547px;
  }

  .hero h1 {
    font-size: 77px;
  }

  .hero h2 {
    font-size: 38px;
  }

  .amount {
    font-size: 101px;
  }
}

@media (max-width: 900px) {
  .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .fields input, .fields button {
    padding: 12px;
  }

  .fields button {
    grid-column: 1/-1;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 16px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    max-height: none;
  }

  .hero-photo {
    height: 300px;
    min-height: 0;
  }

  .hero-photo > img {
    object-position: 60% 55%;
    transform: scale(1.05);
    mask-image: none;
  }

  .brand {
    width: 170px;
    left: 6%;
    padding: 10px;
  }

  .hero-copy {
    padding: 24px 6% 34px;
  }

  .eyebrow {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero h2 {
    font-size: 23px;
    margin: 10px 0;
  }

  .hero-copy > p:last-child {
    font-size: 20px;
  }

  .amount {
    font-size: 64px;
  }

  .signup {
    padding: 24px;
    margin-top: -8px;
  }

  .signup h2 {
    font-size: 27px;
    margin-bottom: 20px;
    line-height: 1.15;
  }

  .fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fields input, .fields button {
    font-size: 17px;
    padding: 14px;
  }

  .consent {
    font-size: 12px;
    margin-top: 16px;
    line-height: 1.4;
  }

  .giveaway-strip {
    font-size: 14px;
    line-height: 1.4;
    padding: 12px;
    margin-top: 22px;
  }

  .preview, .benefits {
    grid-template-columns: 1fr;
    padding: 36px 4%;
    gap: 24px;
  }

  .preview h2, .benefits h2 {
    font-size: 40px;
  }

  .preview p {
    font-size: 21px;
    margin-top: 16px;
  }

  .benefits h3 {
    font-size: 28px;
    margin: 20px 0 12px;
  }

  .benefits p {
    font-size: 19px;
    max-width: none;
  }

  .benefits li {
    padding: 16px;
    font-size: 17px;
    gap: 16px;
    margin: 12px 0;
  }

  .benefits li img {
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  .features {
    padding: 20px 4% 36px;
  }

  .features > h2 {
    font-size: 33px;
  }

  .features > p:not(.sample-note) {
    font-size: 18px;
    margin: 12px 0 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-copy {
    padding: 12px 24px 24px;
  }

  .feature-copy h3 {
    font-size: 28px;
  }

  .feature-copy p {
    font-size: 18px;
    margin-top: 12px;
  }

  .ui-preview {
    max-height: 280px;
  }

  .project-ui {
    padding: 24px;
    aspect-ratio: auto;
    font-size: 16px;
  }

  .project-header {
    margin-bottom: 16px;
  }

  .project-header strong {
    font-size: 20px;
  }

  .project-header span {
    font-size: 12px;
    padding: 6px 12px;
  }

  .project-tabs {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .project-ui > img {
    aspect-ratio: 1.8;
    margin-bottom: 8px;
  }

  .project-ui > strong {
    font-size: 15px;
  }

  .project-ui > small {
    padding: 4px 10px;
    margin-top: 8px;
  }

  .giveaway {
    padding: 28px 6%;
    margin-bottom: 32px;
  }

  .prize-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .prize-intro h2 {
    font-size: 33px;
  }

  .prize-intro p {
    font-size: 22px;
    margin-top: 14px;
  }

  .prize-row article > img,
  .photo-frame {
    aspect-ratio: 1.6;
  }

  .prize-row h3 {
    font-size: 23px;
    margin-top: 12px;
  }

  .giveaway > .button, .closing .button {
    font-size: 17px;
    padding: 15px 20px;
    margin-top: 26px;
  }

  .rules-note {
    font-size: 13px;
    margin-top: 18px;
  }

  .closing {
    padding: 36px 6%;
  }

  .closing h2 {
    font-size: 34px;
  }

  .closing p {
    font-size: 19px;
    margin: 16px 0 10px;
  }

  .desktop {
    display: none;
  }

  footer {
    flex-direction: column;
    font-size: 13px;
    padding: 30px 4%;
    gap: 22px;
  }

  footer img {
    width: 180px;
  }

  footer nav {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
