/* IoT Opportunities — notify-at-launch kit
   Matches iotopps.com tokens (ink, cyan, violet, pink, Inter stack).
   Button fills are a slightly deeper cut of the same hues so white type meets WCAG AA
   (the live gradient's bright cyan #22d3ee is 1.8:1 with white).
   Scoped to .iot-notify so it can be pasted into Additional CSS safely. */

.iot-notify{
  --ink:#0b1030;
  --ink2:#12183f;
  --panel:rgba(255,255,255,.05);
  --line:rgba(255,255,255,.10);
  --txt:#e9ecff;
  --mute:#a9b0d6;
  --cyan:#22d3ee;
  --violet:#8b5cf6;
  --pink:#ec4899;
  --teal:#14b8a6;
  --amber:#fbbf24;
  --grad:linear-gradient(120deg,var(--cyan),var(--violet) 50%,var(--pink));
  /* AA-safe fill stops (white text ≥ 4.5:1 on each stop) */
  --btn-1:#0e7490; /* cyan-700, 5.36:1 */
  --btn-2:#7c3aed; /* violet-600, 5.70:1 */
  --btn-3:#be185d; /* pink-700, 6.04:1 */
  --click-1:#0f766e;
  --click-2:#15803d;
  --click-3:#0e7490;
  --ok:#86efac;
  --ok-bg:rgba(22,163,74,.16);
  --err:#fecaca;
  --err-bg:rgba(190,24,93,.18);
  --err-line:#f472b6;
  --r:18px;
  font-family:"Inter","Segoe UI",system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;
  color:var(--txt);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  box-sizing:border-box;
}
.iot-notify *,
.iot-notify *::before,
.iot-notify *::after{box-sizing:border-box}

/* —— Launching 2026 badge (page already says “2026 edition”) —— */
.iot-notify .launch-tag{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#e9ecff;
  background:linear-gradient(120deg,rgba(14,116,144,.55),rgba(124,58,237,.55) 55%,rgba(190,24,93,.45));
  border:1px solid rgba(233,236,255,.2);
  padding:.32rem .7rem;
  border-radius:999px;
  vertical-align:middle;
}
.iot-notify .launch-tag svg{width:12px;height:12px;flex:none}

/* —— Buttons —— */
.iot-notify .btn{
  --b1:var(--btn-1);
  --b2:var(--btn-2);
  --b3:var(--btn-3);
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.95rem 1.6rem;
  border-radius:999px;
  font-weight:700;
  font-size:1rem;
  font-family:inherit;
  line-height:1.2;
  border:0;
  cursor:pointer;
  color:#fff;
  text-decoration:none;
  text-align:center;
  background:linear-gradient(120deg,var(--b1),var(--b2),var(--b3),var(--b1));
  background-size:300% 100%;
  box-shadow:0 10px 30px -8px rgba(124,58,237,.6);
  transition:background-position .6s ease,transform .2s ease,box-shadow .3s ease,background .3s ease,border-color .3s ease,color .2s ease;
}
.iot-notify .btn:hover{
  background-position:100% 0;
  transform:translateY(-2px);
  box-shadow:0 16px 38px -8px rgba(190,24,93,.55);
}
.iot-notify .btn:active{
  transform:translateY(0) scale(.97);
}
/* Colour change on click — same idea as the live site, AA-safe teal/green */
.iot-notify .btn.clicked{
  --b1:var(--click-1);
  --b2:var(--click-2);
  --b3:var(--click-3);
}
.iot-notify .btn .rip{
  position:absolute;
  border-radius:50%;
  transform:scale(0);
  background:rgba(255,255,255,.55);
  animation:iot-rip .6s ease-out;
  pointer-events:none;
}
@keyframes iot-rip{to{transform:scale(4);opacity:0}}
.iot-notify .btn svg{width:18px;height:18px;flex:none;stroke:currentColor}
.iot-notify .btn:focus{outline:none}
.iot-notify .btn:focus-visible{
  outline:3px solid var(--cyan);
  outline-offset:3px;
}
.iot-notify .btn[disabled],
.iot-notify .btn.is-loading{
  cursor:wait;
  transform:none;
  box-shadow:0 10px 30px -8px rgba(124,58,237,.4);
}

/* Secondary — outline / glass, gradient fill on hover, same click shift */
.iot-notify .btn.secondary{
  background:rgba(255,255,255,.06);
  background-size:auto;
  color:var(--txt);
  border:1.5px solid rgba(233,236,255,.28);
  box-shadow:none;
}
.iot-notify .btn.secondary:hover{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(120deg,var(--btn-1),var(--btn-2),var(--btn-3),var(--btn-1));
  background-size:300% 100%;
  background-position:100% 0;
  box-shadow:0 16px 38px -8px rgba(190,24,93,.45);
}
.iot-notify .btn.secondary.clicked{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(120deg,var(--click-1),var(--click-2),var(--click-3),var(--click-1));
  background-size:300% 100%;
}

/* Spinner (loading state on the submit button) */
.iot-notify .btn .spin{
  width:18px;
  height:18px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  animation:iot-spin .7s linear infinite;
  flex:none;
}
@keyframes iot-spin{to{transform:rotate(360deg)}}
.iot-notify .btn .btn-label,
.iot-notify .btn .btn-busy{display:inline-flex;align-items:center;gap:.55rem}
.iot-notify .btn .btn-busy{display:none}
.iot-notify .btn.is-loading .btn-label{display:none}
.iot-notify .btn.is-loading .btn-busy{display:inline-flex}

/* CTA row helpers */
.iot-notify .ctas{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  align-items:center;
}
.iot-notify .ctas-stack{
  display:flex;
  flex-direction:column;
  gap:.7rem;
  align-items:stretch;
}
.iot-notify .ctas-stack .btn{width:100%}
.iot-notify .cta-note{
  font-size:.8rem;
  color:var(--mute);
  margin:.55rem 0 0;
}

/* —— Form —— */
.iot-notify .form,
.iot-notify .form-fields{
  display:flex;
  flex-direction:column;
  gap:.75rem;
  position:relative;
}
.iot-notify .form .btn[type="submit"]{width:100%}
.iot-notify .form label.visually-hidden,
.iot-notify .visually-hidden{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}
.iot-notify .form input[type="text"],
.iot-notify .form input[type="email"]{
  width:100%;
  padding:1rem 1.2rem;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(0,0,0,.25);
  color:#fff;
  font-size:1rem;
  font-family:inherit;
  outline:none;
  transition:border-color .3s,box-shadow .3s,background .3s;
}
.iot-notify .form input::placeholder{color:#a9b0d6;opacity:1}
.iot-notify .form input:hover{border-color:rgba(255,255,255,.35)}
.iot-notify .form input:focus,
.iot-notify .form input:focus-visible{
  border-color:var(--cyan);
  box-shadow:0 0 0 4px rgba(34,211,238,.18);
}
.iot-notify .form input[aria-invalid="true"]{
  border-color:var(--err-line);
  box-shadow:0 0 0 4px rgba(244,114,182,.2);
  background:var(--err-bg);
}
.iot-notify .field-msg{
  display:none;
  font-size:.8rem;
  margin:-.35rem 0 0 .15rem;
}
.iot-notify .field-msg.is-on{display:block}
.iot-notify .field-msg.is-error{color:var(--err)}
.iot-notify .form-status{
  display:none;
  padding:1rem 1.15rem;
  border-radius:14px;
  font-size:.95rem;
  line-height:1.5;
}
.iot-notify .form-status.is-on{display:flex;gap:.7rem;align-items:flex-start;width:100%}
.iot-notify .form-status svg{width:22px;height:22px;flex:none;margin-top:.1rem}
.iot-notify .form-status.is-success{
  color:var(--ok);
  background:rgba(11,16,48,.78);
  border:1px solid rgba(134,239,172,.4);
}
.iot-notify .form-status.is-error{
  color:var(--err);
  background:var(--err-bg);
  border:1px solid rgba(244,114,182,.4);
}
.iot-notify .form.is-success .form-fields{display:none}
.iot-notify .form.is-loading input{opacity:.7;pointer-events:none}
.iot-notify .small{
  display:block;
  font-size:.8rem;
  color:#c9cdf0;
}
.iot-notify .small a{color:var(--cyan);text-decoration:underline}

/* Reduced motion: keep colour changes, drop travel / spin / ripple */
@media (prefers-reduced-motion:reduce){
  .iot-notify .btn,
  .iot-notify .form input,
  .iot-notify .form-status,
  .iot-notify .field-msg{
    transition:none !important;
    animation:none !important;
  }
  .iot-notify .btn:hover,
  .iot-notify .btn:active{transform:none}
  .iot-notify .btn .rip{display:none}
  .iot-notify .btn .spin{animation:none;border-top-color:#fff;opacity:1}
  html{scroll-behavior:auto}
}

@media (max-width:420px){
  .iot-notify .btn{font-size:.95rem;padding:.9rem 1.15rem}
  .iot-notify .btn.secondary{white-space:nowrap}
}


/* Honeypot: hidden from people, present for bots */
.iot-notify .hp-field{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}
