/* Home startup offer band: centred offer + pill email form, with animated rocket path, sparkle and chip. */

.cta-band--offer {
  padding: clamp(80px, 8vw, 120px) var(--gutter) clamp(84px, 8vw, 124px);
  background:
    radial-gradient(40% 60% at 50% 70%, rgb(245 200 66 / 8%), transparent 70%),
    #fbfaf6;
}
.cta-band--offer .cta-band__inner { position: relative; z-index: 2; max-width: 900px; }

/* ---------- decoration ---------- */
.offer__orb {
  position: absolute;
  left: -110px;
  bottom: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle at 62% 32%, #ffffff 0%, #eef2fb 38%, #dfe6f5 70%, #d6def0 100%);
  box-shadow: inset -20px -30px 60px rgb(28 95 208 / 8%), 0 40px 80px -40px rgb(28 95 208 / 25%);
  animation: offerDrift 12s ease-in-out infinite;
}
.offer__halo {
  position: absolute;
  right: -120px;
  top: 40px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgb(20 20 22 / 12%) 1.1px, transparent 1.6px) 0 0 / 22px 22px,
    rgb(238 236 230 / 55%);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%);
  mask-image: radial-gradient(circle, #000 55%, transparent 72%);
  animation: offerDrift 14s ease-in-out infinite reverse;
}
.offer__lines { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.offer__path { fill: none; stroke: #c9d3ea; stroke-width: 1.4; stroke-dasharray: 5 7; animation: offerDash 2.6s linear infinite; }
.offer__path--gold { stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: none; animation: none; opacity: .9; }
.offer__dot { fill: var(--gold); filter: drop-shadow(0 0 6px rgb(245 200 66 / 80%)); }
.offer__rocket { transform-box: fill-box; transform-origin: center; animation: offerFloat 5s ease-in-out infinite; }
.offer__rocket-bg { fill: #fffaf0; stroke: rgb(245 200 66 / 35%); stroke-width: 1; filter: drop-shadow(0 10px 24px rgb(245 200 66 / 45%)); }
.offer__spark { fill: var(--gold); transform-box: fill-box; transform-origin: center; animation: offerTwinkle 3.2s ease-in-out infinite; }

.offer__chip {
  position: absolute;
  right: clamp(24px, 6vw, 120px);
  top: 26%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 14px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 40px -18px rgb(20 20 22 / 22%), 0 1px 2px rgb(20 20 22 / 5%);
  animation: offerFloat 6s ease-in-out infinite -2s;
}
.offer__chip-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fdf0c8; color: var(--ink); }
.offer__chip-text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #55524c; text-align: left; }
.offer__chip-text b { font-size: 14px; font-weight: 600; color: var(--ink); }

/* ---------- content ---------- */
.offer__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
  letter-spacing: 4px;
  color: #6f6c66;
}

.cta-band--offer .cta-band__title { margin-bottom: 40px; }
.offer__em { position: relative; display: table; margin: 4px auto 0; font-size: 1.08em; }
.offer__swash { position: absolute; left: 0; bottom: -6px; width: 62%; height: 12px; overflow: visible; }
.offer__swash path { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; opacity: .85; }

/* pill form */
.cta-band--offer .offer__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 8px 8px 10px;
  border: 1px solid #efede6;
  border-bottom: 1px solid #efede6;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 24px 50px -24px rgb(20 20 22 / 18%), 0 0 0 6px rgb(245 200 66 / 0%);
  transition: box-shadow .35s ease;
}
.cta-band--offer .offer__form:focus-within { box-shadow: 0 24px 50px -24px rgb(20 20 22 / 18%), 0 0 0 6px rgb(245 200 66 / 18%); }
.offer__mail { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #f3f2ee; color: #3d3b37; }
.cta-band--offer .inline-form__input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.cta-band--offer .inline-form__submit {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 7px 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
}
.offer__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--ink); transition: transform .3s ease; }
.cta-band--offer .inline-form__submit:hover .offer__go { transform: translateX(3px); }
.cta-band--offer .form-status { position: absolute; left: 0; right: 0; top: calc(100% + 10px); margin: 0; font-size: 13px; }
/* After sending, the confirmation sits centred under the form with room before the perks. */
.cta-band--offer .form-status { top: calc(100% + 14px); text-align: center; }
.cta-band--offer .offer__form.is-sent + .offer__perks { margin-top: 56px; }

.offer__perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.offer__perks li { display: flex; align-items: center; gap: 10px; padding: 0 22px; font-size: 15px; color: #55524c; }
.offer__perks li + li { border-left: 1px solid #dedbd2; }
.offer__tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fbe39a; color: #8a6a0a; }

/* ---------- entrance (when scrolled into view) ---------- */
.cta-band--offer .offer__eyebrow,
.cta-band--offer .cta-band__title,
.cta-band--offer .offer__form,
.cta-band--offer .offer__perks li,
.cta-band--offer .offer__chip-text,
.cta-band--offer .offer__chip-icon { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.cta-band--offer.is-in .offer__eyebrow,
.cta-band--offer.is-in .cta-band__title,
.cta-band--offer.is-in .offer__form,
.cta-band--offer.is-in .offer__perks li,
.cta-band--offer.is-in .offer__chip-text,
.cta-band--offer.is-in .offer__chip-icon { opacity: 1; transform: none; }
.cta-band--offer.is-in .cta-band__title { transition-delay: .1s; }
.cta-band--offer.is-in .offer__form { transition-delay: .25s; }
.cta-band--offer.is-in .offer__perks li:nth-child(1) { transition-delay: .4s; }
.cta-band--offer.is-in .offer__perks li:nth-child(2) { transition-delay: .5s; }
.cta-band--offer.is-in .offer__perks li:nth-child(3) { transition-delay: .6s; }
.cta-band--offer.is-in .offer__chip-icon, .cta-band--offer.is-in .offer__chip-text { transition-delay: .5s; }
.cta-band--offer.is-in .offer__swash path { animation: offerDraw 1s cubic-bezier(.6, 0, .2, 1) .7s forwards; }

@keyframes offerDraw { to { stroke-dashoffset: 0; } }
@keyframes offerDash { to { stroke-dashoffset: -24; } }
@keyframes offerFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes offerTwinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(45deg); opacity: .7; } }
@keyframes offerDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, -12px); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .offer__chip { top: 18px; right: 18px; }
  .offer__halo { width: 320px; height: 320px; right: -140px; }
}
@media (max-width: 720px) {
  .offer__lines, .offer__chip, .offer__halo { display: none; }
  .offer__orb { width: 260px; height: 260px; left: -120px; bottom: -100px; }
  /* Phones: a small email pill on its own, with the button outside it underneath.
     The form itself loses its card; the pill look moves onto the email field. */
  .cta-band--offer .cta-band__title { margin-bottom: 28px; }
  .cta-band--offer .offer__form,
  .cta-band--offer .offer__form:focus-within { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .offer__mail { position: absolute; top: 8px; left: 8px; z-index: 1; width: 38px; height: 38px; }
  .cta-band--offer .inline-form__input {
    flex: none;
    height: 54px;
    padding: 0 18px 0 58px;
    border: 1px solid #e8e5dc;
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 14px 30px -18px rgb(20 20 22 / 22%);
    font-size: 16px;
    text-align: left;
    transition: box-shadow .3s ease, border-color .3s ease;
  }
  .cta-band--offer .inline-form__input:focus { border-color: #e6cf7f; box-shadow: 0 14px 30px -18px rgb(20 20 22 / 22%), 0 0 0 5px rgb(245 200 66 / 18%); }
  .cta-band--offer .inline-form__submit { justify-content: space-between; height: 56px; padding: 0 7px 0 24px; font-size: 15px; }
  .offer__go { width: 42px; height: 42px; }
  /* The moving glare reads as a smudge on a full-width dark button. */
  .cta-band--offer .inline-form__submit::after { display: none; }
  .cta-band--offer .form-status { position: static; margin-top: 2px; }
  .cta-band--offer .offer__form.is-sent + .offer__perks { margin-top: 22px; }

  /* Perks: "No Obligation | Quick Response" on one line, "Exclusive for Startups" centred below. */
  .offer__perks { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px 0; margin-top: 26px; }
  .offer__perks li { padding: 0 14px; font-size: 14px; }
  .offer__perks li + li { border-left: 1px solid #dedbd2; }
  .offer__perks li:nth-child(3) { flex-basis: 100%; justify-content: center; border-left: 0; }
}
@media (max-width: 400px) {
  .offer__perks li { gap: 7px; padding: 0 9px; font-size: 13px; }
  .offer__tick { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band--offer *, .cta-band--offer { animation: none !important; transition: none !important; }
  .cta-band--offer .offer__swash path { stroke-dashoffset: 0; }
  .cta-band--offer [class*="offer__"], .cta-band--offer .cta-band__title { opacity: 1 !important; transform: none !important; }
}
