/* ============================================================
   Email signup ("The Nutrient list"), shared by every page.
   Uses the design tokens each page defines (--cyan, --deep, --s5 ...).
   The markup is built by signup.js into any [data-nhf-signup] mount.
   ============================================================ */

.signup {
  position: relative; overflow: hidden;
  background: var(--mist);
  padding-block: var(--s9);
  border-top: 1px solid rgba(86,86,88,.08);
}
.signup-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(560px 380px at 6% 10%,  rgba(5,183,222,.12), transparent 64%),
    radial-gradient(520px 360px at 96% 90%, rgba(184,208,0,.12), transparent 66%);
}
.signup .wrap { position: relative; z-index: 2; }
.signup-grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 960px) { .signup-grid { grid-template-columns: 1fr minmax(380px, 460px); gap: var(--s8); } }

/* "Nu": the list's own element tile, the same periodic-table motif as the Shop page. */
.signup-mark {
  position: relative; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 16px; margin-bottom: var(--s5);
  background: rgba(5,183,222,.13); border: 1.5px solid rgba(5,183,222,.42);
  font-family: 'Space Grotesk', sans-serif; color: var(--ink);
}
.signup-mark b { font-size: 28px; font-weight: 700; letter-spacing: -.04em; margin-top: 6px; }
.signup-mark i { position: absolute; top: 6px; left: 8px; font: 600 10px/1 'Space Grotesk', sans-serif; font-style: normal; opacity: .62; }
.signup-mark::after {
  content: ''; position: absolute; right: 7px; top: 7px; width: 8px; height: 9px; background: var(--cyan);
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
}
.signup-points { display: grid; gap: var(--s3); margin-top: var(--s5); }
.signup-points li { display: flex; gap: var(--s3); align-items: flex-start; font-size: 16px; color: var(--grey); }
.signup-points li::before {
  content: ''; flex: none; margin-top: 6px; width: 11px; height: 13px; background: var(--lime);
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
}

/* The form sits on an elevated card. */
.signup-card {
  background: #fff; border: 1px solid rgba(86,86,88,.10); border-radius: 24px;
  padding: var(--s6); box-shadow: var(--e3);
}
.signup-card .field-label { font-weight: 700; font-size: 14px; color: var(--ink); display: block; margin-bottom: 7px; }
.signup-card .optional { font-weight: 400; color: var(--grey); }
.signup-field {
  width: 100%; background: #fff; border: 1.5px solid rgba(86,86,88,.20);
  border-radius: 12px; padding: 14px var(--s4); margin-bottom: var(--s4);
  font-family: 'Lato', sans-serif; font-size: 16px; color: var(--ink);
  transition: border-color .2s ease, box-shadow .25s var(--spring);
}
.signup-field::placeholder { color: rgba(86,86,88,.5); }
.signup-field:hover { border-color: rgba(86,86,88,.34); }
.signup-field:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(5,183,222,.16); }
.signup-field[aria-invalid="true"] { border-color: #B3261E; }
.signup-card .btn { width: 100%; }
.signup-card .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.signup-fine { font-size: 13px; line-height: 1.55; color: var(--grey); margin-top: var(--s4); }
.signup-fine a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; transition: color .2s ease; }
.signup-fine a:hover { color: #04a3c6; }

/* Bots fill every field they find; people never see this one. */
.signup-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Messages. Error text uses a dark red that clears 4.5:1 on white. */
.signup-error {
  margin-bottom: var(--s4); padding: var(--s3) var(--s4); border-radius: 12px;
  background: rgba(179,38,30,.07); color: #8C1D18; font-size: 14px; line-height: 1.5;
}
.signup-error a { color: inherit; font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.signup-error a:hover { color: #5E120F; }
.signup-done { text-align: center; padding-block: var(--s4); }
.signup-done .tick {
  display: grid; place-items: center; width: 60px; height: 68px; margin: 0 auto var(--s4);
  background: var(--lime); color: var(--deep);
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
}
.signup-done h3 { font-size: 24px; font-weight: 700; margin-bottom: var(--s2); }
.signup-done p { font-size: 16px; color: var(--grey); }

@keyframes signupIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.signup-done, .signup-error { animation: signupIn .5s var(--spring) both; }
@media (prefers-reduced-motion: reduce) { .signup-done, .signup-error { animation: none; } }
.signup-fine a:active, .signup-error a:active { opacity: .7; }

/* Footer "Privacy policy" link, on the dark footer of every page. */
.legal-link {
  color: rgba(255,255,255,.6); margin-left: 12px;
  text-underline-offset: 3px; transition: color .2s ease;
}
.legal-link:hover  { color: #fff; }
.legal-link:active { opacity: .7; }
