/* Airmail layout from the desktop and mobile Paper artboards. */

.hero {
  display: grid;
  grid-template-columns: 540px minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding-top: 16px;
  padding-bottom: 40px;
  overflow: clip;
}

.homepage h1,
.homepage h2 {
  font-family: "Lora", serif;
  font-weight: 600;
}

.homepage h1 {
  padding-bottom: 24px;
  font-size: 62px;
  line-height: 68px;
  letter-spacing: -0.02em;
}

.hero-description {
  max-width: 510px;
  padding-bottom: 28px;
  color: #40556f;
  font-size: 19px;
  line-height: 28px;
}

.hero-download {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}

.download-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 320px;
  max-width: 100%;
  padding: 19px 20px;
  border-radius: 14px;
  background: var(--blue);
  box-shadow: 0 4px 12px #2669cd18;
  color: white;
  font-size: 19px;
  font-weight: 700;
  line-height: 24px;
}

.download-button svg {
  flex-shrink: 0;
}

.download-button:hover {
  background: var(--blue-ink);
}

.download-note {
  color: var(--muted-ink);
  font-size: 14px;
  line-height: 18px;
}

.app-rating,
.rating-stars {
  display: flex;
  align-items: center;
}

.app-rating {
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.rating-stars {
  flex-shrink: 0;
  gap: 3px;
  color: #0b1e33;
}

.hero-art {
  position: relative;
  height: 450px;
}

.hero-art img {
  position: absolute;
  top: 6px;
  left: 4px;
  width: 528px;
  height: 528px;
  max-width: none;
  object-fit: contain;
}

.how-it-works,
.features {
  padding-block: 44px;
}

.eyebrow {
  padding-bottom: 14px;
  color: var(--muted-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.homepage h2 {
  padding-bottom: 24px;
  font-size: 34px;
  line-height: 42px;
  letter-spacing: -0.01em;
}

.mobile-break,
.mobile-copy {
  display: none;
}

.email-example {
  display: grid;
  grid-template-columns: 424px 36px minmax(0, 1fr);
  gap: 28px;
}

.example-card {
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: white;
  box-shadow: 0 6px 22px #2669cd0d;
}

.card-label {
  color: var(--blue-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.notes-card .card-label {
  padding-bottom: 22px;
}

.note-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
}

.note-field:first-child {
  padding-top: 0;
}

.note-field:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.note-field dt,
.notes-hint,
.draft-heading p {
  color: var(--label-ink);
  font-size: 14px;
  line-height: 20px;
}

.note-field dd {
  font-size: 17px;
  line-height: 26px;
}

.note-field dd:has(strong) {
  line-height: 22px;
}

.notes-hint {
  padding-top: 16px;
}

.example-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #98a8b6;
}

.draft-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.email-body {
  padding-top: 24px;
  font-size: 17px;
  line-height: 28px;
}

.email-body p + p {
  margin-top: 28px;
}

.features {
  border-top: 1px solid var(--rule);
}

.feature {
  display: grid;
  grid-template-columns: 52px 300px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  padding-block: 28px;
  border-top: 1px solid var(--rule);
}

.feature:last-child {
  border-bottom: 1px solid var(--rule);
}

.feature-icon {
  display: flex;
  align-items: center;
  height: 36px;
}

.feature h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 30px;
}

.feature p {
  color: var(--body-ink);
  font-size: 17px;
  line-height: 28px;
}

.final-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-block: 64px;
}

.final-download-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.final-download h2 {
  padding-bottom: 0;
  font-size: 44px;
  line-height: 52px;
}

.final-download p {
  color: var(--muted-ink);
  font-size: 15px;
  line-height: 22px;
}

/* Keep the desktop composition fluid between the two supplied artboards. */
@media (min-width: 761px) and (max-width: 1199px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
  }
  .homepage h1 {
    font-size: clamp(40px, 4.85vw, 58px);
    line-height: 1.1;
  }
  .hero-art img {
    top: 50%;
    left: 0;
    width: 110%;
    height: auto;
    transform: translateY(-50%);
  }
  .email-example {
    grid-template-columns: minmax(0, 0.85fr) 24px minmax(0, 1fr);
    gap: 20px;
  }
  .draft-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .feature {
    grid-template-columns: 40px minmax(180px, 0.8fr) minmax(0, 1.4fr);
    gap: 24px;
  }
  .final-download { gap: 32px; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 22px;
    padding-bottom: 0;
  }
  .homepage h1 {
    padding-bottom: 20px;
    font-size: clamp(32px, 10.26vw, 40px);
    line-height: 1.15;
  }
  .hero-description {
    max-width: none;
    padding-bottom: 24px;
    color: var(--body-ink);
    font-size: 18px;
    line-height: 27px;
  }
  .hero-download {
    gap: 12px;
    padding-bottom: 20px;
  }
  .download-button {
    width: 100%;
    padding: 17px 12px;
    font-size: clamp(16px, 4.88vw, 19px);
  }
  .download-note { line-height: 20px; }
  .app-rating { gap: 12px; }
  .hero-art {
    justify-self: center;
    width: min(342px, 100%);
    height: auto;
    aspect-ratio: 342 / 320;
  }
  .hero-art img {
    top: -5px;
    left: 0;
    width: 103.51%;
    height: auto;
  }
  .how-it-works,
  .features { padding-block: 32px; }
  .homepage h2 {
    padding-bottom: 28px;
    font-size: 28px;
    line-height: 35px;
  }
  .mobile-break,
  .mobile-copy { display: initial; }
  .desktop-copy { display: none; }
  .email-example {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .example-card { padding: 24px; }
  .example-arrow { height: 24px; }
  .example-arrow svg {
    width: 24px;
    height: 24px;
    transform: rotate(90deg);
  }
  .draft-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 18px;
  }
  .email-body {
    padding-top: 20px;
    line-height: 27px;
  }
  .email-body p + p { margin-top: 27px; }
  .feature {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px 16px;
    padding-block: 24px;
  }
  .feature-icon {
    grid-row: 1 / 3;
    height: 28px;
  }
  .feature h3 {
    font-size: 20px;
    line-height: 28px;
  }
  .feature p {
    grid-column: 2;
    line-height: 26px;
  }
  .final-download {
    align-items: stretch;
    flex-direction: column;
    gap: 28px;
    padding-block: 48px;
  }
  .final-download h2 {
    padding-bottom: 0;
    font-size: 34px;
    line-height: 40px;
  }
}
