/* Styles for home/newsletter (app/sections/).
   Every rule is scoped to #section-cta, so none of it reaches other
   parts of the page.

   An event ticket on a dark stage: a navy card with a dashed tear line
   between the words (left) and the sign-up stub (right), and a round
   notch cut from the top and bottom edges where the tear runs. On phones the stub drops under the words and
   the tear runs across. */

#section-cta {
  --nl-navy: #001e53;
  --nl-ink: #060c22;
  --nl-gold: #f1ae22;
  --nl-gold-hi: #ffc94d;
  --nl-cream: #f3eee2;
  --nl-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nl-notch: 18px;            /* the radius of the notches */
  --nl-stub: 42%;              /* the stub's width */
  --nl-tear: 58%;              /* where the tear line falls: 100% less the stub */

  position: relative;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 6vw, 96px);
  /* from the navy the reviews end on, through a dark stage, into the FAQ's navy */
  background: linear-gradient(180deg, var(--nl-navy) 0%, var(--nl-ink) 28%, var(--nl-ink) 72%, #001440 100%);
  color: #fff;
  overflow: hidden;
}

#section-cta *,
#section-cta *::before,
#section-cta *::after {
  box-sizing: border-box;
}

#section-cta ::selection {
  background: var(--nl-gold);
  color: var(--nl-navy);
}

/* ---------- The ticket ---------- */
#section-cta .cta-ticket {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--nl-stub));
  align-items: center;
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(241, 174, 34, 0.14), transparent 55%),
    var(--nl-navy);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.9);
  /* a round notch cut from the top and the bottom edge, at the tear */
  -webkit-mask-image:
    radial-gradient(circle var(--nl-notch) at var(--nl-tear) 0, transparent 97%, #000 100%),
    radial-gradient(circle var(--nl-notch) at var(--nl-tear) 100%, transparent 97%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle var(--nl-notch) at var(--nl-tear) 0, transparent 97%, #000 100%),
    radial-gradient(circle var(--nl-notch) at var(--nl-tear) 100%, transparent 97%, #000 100%);
  mask-composite: intersect;
}

/* ---------- Words ---------- */
#section-cta .cta-text {
  padding: clamp(32px, 4.4vw, 60px);
}

#section-cta .cta-heading {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
}

#section-cta .cta-heading span {
  color: #feca16;
}

#section-cta .cta-subtitle {
  max-width: 44ch;
  margin: 16px 0 0;
  font-family: var(--nl-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(243, 238, 226, 0.88);
  text-wrap: pretty;
}

/* ---------- The stub: the sign-up, past the tear line ---------- */
#section-cta .cta-form {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(28px, 3.6vw, 48px);
  border-left: 2px dashed rgba(243, 238, 226, 0.28);
}

#section-cta .cta-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--nl-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--nl-cream);
}

/* the field and the button share one white pill */
#section-cta .form-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#section-cta .form-group:focus-within {
  border-color: var(--nl-gold);
  box-shadow: 0 0 0 4px rgba(241, 174, 34, 0.3);
}

#section-cta .form-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--nl-ink);
  caret-color: var(--nl-navy);
  font-family: var(--nl-sans);
  font-size: 1rem;
  outline: none;
}

#section-cta .form-input::placeholder {
  color: #6b7288;
}

#section-cta .form-button {
  flex-shrink: 0;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--nl-gold);
  color: var(--nl-navy);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

#section-cta .form-button:hover {
  background: var(--nl-gold-hi);
}

#section-cta .form-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

#section-cta .form-button:focus-visible {
  outline: 2px solid var(--nl-navy);
  outline-offset: 2px;
}

#section-cta .cta-note,
#section-cta .cta-notice {
  margin: 12px 0 0 14px;
  font-family: var(--nl-sans);
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(243, 238, 226, 0.7);
}

#section-cta .cta-notice {
  font-weight: 600;
}

#section-cta .cta-notice.is-ok {
  color: #8fe3b4;
}

#section-cta .cta-notice.is-error {
  color: #ffb3bd;
}

/* ---------- Phones: the stub under the words, the tear across ---------- */
@media (max-width: 760px) {
  #section-cta .cta-ticket {
    grid-template-columns: minmax(0, 1fr);
    /* no notches here: the tear runs across */
    -webkit-mask-image: none;
    mask-image: none;
  }

  #section-cta .cta-form {
    border-left: 0;
    border-top: 2px dashed rgba(243, 238, 226, 0.28);
  }
}

/* Narrow phones: the button goes under the field */
@media (max-width: 400px) {
  #section-cta .form-group {
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
  }

  #section-cta .form-input {
    height: 44px;
  }

  #section-cta .form-button {
    width: 100%;
  }
}
