/* ==========================================================================
   Sales letter — sticky notes on a dark wood desk
   ========================================================================== */
.sales-letter {
  position: relative;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  overflow-x: clip; /* contain the tilted notes */
}

/* Two notes, side by side on the desk */
.sales-letter__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

/* Shared note (paper) styling ---------------------------------------------- */
.sales-letter__note {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(
    180deg,
    var(--colour-postit-hi) 0%,
    var(--colour-postit) 55%,
    var(--colour-postit-lo) 100%
  );
  border-radius: 2px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.18),
    0 22px 40px -30px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.6deg);
  transform-origin: 50% 0; /* pivot around the pin so it stays put on hover */
  transition: transform 0.3s ease;
}

.sales-letter__note:hover {
  transform: rotate(0deg);
}

/* Plastic push pin holding the note */
.sales-letter__note {
  --pin-color: #e5484d;
}

.sales-letter__note--how {
  --pin-color: #f5a623;
}

/* The metal pin — a tapered needle showing beneath the plastic head */
.sales-letter__note::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 3.5px;
  height: 14px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #6d6d6d 0%, #f2f2f2 44%, #c4c4c4 60%, #767676 100%);
  border-radius: 1px 1px 0 0;
  clip-path: polygon(0 0, 100% 0, 60% 100%, 40% 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* The plastic head — domed top with a visible shaded side */
.sales-letter__note::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 50%;
  width: 24px;
  height: 25px;
  transform: translateX(-50%);
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--pin-color) 76%, #ffffff) 0%,
      var(--pin-color) 34%,
      color-mix(in srgb, var(--pin-color) 60%, #000000) 80%,
      color-mix(in srgb, var(--pin-color) 42%, #000000) 100%
    );
  box-shadow:
    0 5px 7px -1px rgba(0, 0, 0, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 0.3),
    inset 0 -3px 4px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.sales-letter__note > p {
  margin-bottom: 1.25rem;
  color: var(--colour-postit-ink-soft);
  font-size: 1.0625rem;
}

.sales-letter__note > .sales-letter__lead {
  font-size: 1.5rem;
}

.sales-letter__greeting,
.sales-letter__how-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.12;
  font-weight: 500;
  color: var(--postit-ink);
  margin-bottom: 1.25rem;
}

.sales-letter__lead {
  font-family: var(--font-heading);
  line-height: 1.12;
  color: var(--colour-postit-ink);
  margin-bottom: 1.5rem;
}

/* Sign-off */
.sales-letter__signoff {
  margin-top: auto;
  padding-top: 2rem;
}

.sales-letter__valediction {
  font-size: 1.0625rem;
  color: var(--colour-postit-ink-soft);
  margin-bottom: 0.25rem;
}

.sales-letter__signature {
  font-family: "Caveat", cursive;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--colour-postit-ink);
  margin-bottom: 0.4rem;
}

.sales-letter__role {
  font-size: 0.9rem;
  color: var(--colour-postit-ink-soft);
}

/* Postscript — the tool stack */
.sales-letter__postscript {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--colour-postit-ink-soft);
}

.sales-letter__postscript-label {
  font-weight: 700;
  color: var(--colour-postit-ink);
}

/* The "How we start" note — a blue sticky note, tilted the other way -------- */
.sales-letter__note--how {
  background: linear-gradient(
    180deg,
    var(--postit-blue-hi) 0%,
    var(--postit-blue) 55%,
    var(--postit-blue-lo) 100%
  );
  transform: rotate(1.4deg);
}

.sales-letter__note--how > p {
  color: rgba(51, 48, 42, 0.85);
}

/* Bare button group in the note (no container box) */
.sales-letter__how-cta {
  margin-top: 1.75rem;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sales-letter__how-cta .btn {
  width: 100%;
}

@media (min-width: 861px) {
  .sales-letter__how-cta {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .sales-letter__grid {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 8vw, 4rem);
  }

  .sales-letter__how-cta {
    width: 100%;
  }
}

/* Sit the notes straight on smaller devices */
@media (max-width: 720px) {
  .sales-letter__note {
    transform: none;
  }
}
