/* The "tell me when it's out" sign-up (notify.js): a few questions, one per step, then the email.
   The page the form sits on gives it its colours:
     --n-ink        text
     --n-bg         the surface the form sits on
     --n-field      the inside of a text field
     --n-accent     the button, the progress bar, the focus ring
     --n-on-accent  text on the button
     --n-rule       hairlines
     --n-soft       secondary text */
.notify { display: grid; gap: 18px; min-width: 0; color: var(--n-ink) }
.notify fieldset { margin: 0; padding: 0; border: 0; min-width: 0 }
.notify :focus-visible { outline: 2px solid var(--n-accent); outline-offset: 3px }

/* Progress */
.notify .q-head { display: flex; align-items: center; gap: 14px }
.notify .q-count { flex: none; font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--n-soft) }
.notify .q-bar { flex: 1; height: 2px; border-radius: 1px; background: var(--n-rule); overflow: hidden }
.notify .q-bar i { display: block; width: 0; height: 100%; background: var(--n-accent); transition: width .3s }

/* The steps share one cell, so the form keeps the height of its tallest step and nothing below it moves. */
.notify .q-stage { display: grid; align-items: start }
.notify.stepped .q-stage > * { grid-area: 1 / 1 }
.notify.stepped .q-stage > :not(.current) { visibility: hidden }
.notify legend, .notify .q-title { display: block; width: 100%; margin: 0 0 16px; padding: 0; font: 600 clamp(19px, 1.7vw, 23px)/1.25 var(--display); letter-spacing: -.015em; text-wrap: balance; outline: 0 }
.notify legend em { display: block; margin-top: 6px; font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--n-soft) }

/* Choices */
.notify .chips { display: flex; flex-wrap: wrap; gap: 8px }
.notify .chip { position: relative; display: inline-flex; cursor: pointer }
.notify .chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer }
.notify .chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 17px; border-radius: 99px; font: 400 15px/1.25 var(--display); box-shadow: inset 0 0 0 1px var(--n-rule); transition: box-shadow .15s, background .15s, color .15s }
.notify .chip:hover span { box-shadow: inset 0 0 0 1px var(--n-ink) }
.notify .chip input:checked + span { background: var(--n-ink); color: var(--n-bg); box-shadow: none }
.notify .chip input:focus-visible + span { outline: 2px solid var(--n-accent); outline-offset: 3px }

/* Text fields */
.notify input[type=email], .notify input[type=text], .notify textarea { display: block; width: 100%; min-width: 0; margin: 0; border: 0; background: var(--n-field); color: var(--n-ink); font: 400 16px/1.4 var(--display); box-shadow: inset 0 0 0 1px var(--n-rule); transition: box-shadow .2s }
.notify input[type=email], .notify input[type=text] { height: 46px; padding: 0 20px; border-radius: 99px }
.notify textarea { min-height: 112px; padding: 13px 20px; border-radius: 20px; resize: vertical }
.notify ::placeholder { color: var(--n-soft); opacity: 1 }
.notify input:hover, .notify input:focus, .notify textarea:hover, .notify textarea:focus { box-shadow: inset 0 0 0 1px var(--n-ink) }
.notify [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--n-accent) }
.notify .other { display: block; margin-top: 10px }
.notify .other.idle { visibility: hidden }
.notify .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px }
.notify .field { display: grid; gap: 7px; min-width: 0 }
.notify .field > span { font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--n-soft) }
.notify .field em { font-style: normal; opacity: .75 }
.notify .agree { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; font-size: 14px; line-height: 1.45; color: var(--n-soft); cursor: pointer }
.notify .agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--n-accent); cursor: pointer }
.notify .agree a { color: var(--n-ink) }
/* Cloudflare's human check (notify.js): nothing to see unless it wants a click. */
.notify .human:empty { display: none }
.notify .human iframe { margin-bottom: 14px }
.notify .agree input[aria-invalid="true"] { box-shadow: none; outline: 2px solid var(--n-accent); outline-offset: 2px }

/* Buttons */
.notify .btn { border: 0; background: var(--n-accent); color: var(--n-on-accent); cursor: pointer }
.notify .btn:hover { background: var(--n-ink); color: var(--n-bg) }
.notify .btn:disabled { opacity: .55; cursor: default }
.notify .q-nav { display: flex; align-items: center; gap: 12px; min-height: 46px }
.notify .q-nav[hidden] { display: none }
.notify .q-back { height: 46px; padding: 0; border: 0; background: none; color: var(--n-soft); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer }
.notify .q-back:hover { color: var(--n-ink) }
.notify .q-back[hidden], .notify .q-next[hidden] { display: none }
.notify .q-next { margin-left: auto }

/* The reply, the small print */
.notify .form-status { margin: 0; max-width: none; min-height: 1.5em; font-size: 15px; line-height: 1.5; color: var(--n-soft) }
.notify .form-status:empty { display: none }
.notify .form-status[data-kind="error"] { color: color-mix(in srgb, var(--n-accent) 78%, var(--n-ink)) }
.notify .form-status[data-kind="ok"] { color: var(--n-ink); font: 600 clamp(19px, 1.7vw, 23px)/1.3 var(--display); letter-spacing: -.015em }
.notify .fine { margin: 0; max-width: none; font-size: 13px; line-height: 1.45; color: var(--n-soft) }
.notify.done .q-head, .notify.done .q-stage, .notify.done .q-nav { display: none }

/* A trap for bots; people never see it. */
.notify .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

@media (max-width: 520px) {
  .notify .fields { grid-template-columns: minmax(0, 1fr) }
  .notify .q-last .btn { width: 100%; justify-content: center }
}
@media (prefers-reduced-motion: reduce) {
  .notify .q-bar i, .notify .chip span { transition: none }
}
