/* Product update subscribe band - hre_subscribe_band() in functions.php.
   Loaded only on the keys in hre_subscribe_band_keys(). Built on the same tokens as the
   EDGE band so it reads as part of the page. Dark by default; .light sections flip to the light tokens.
   Sends to Sendy (one list per product). Product pages: that product only. Release notes page: pick one or both;
   without JS the form posts to the page's own product list. */

.hre-subscribe-sec { padding-top: 0; }

.subband {
  --sb-ink: var(--ink); --sb-muted: var(--muted); --sb-line: var(--line2); --sb-card: var(--card);
  --sb-field: rgba(255, 255, 255, .04); --sb-accent: var(--red);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
  padding: 44px 48px;
  border: 1px solid var(--sb-line);
  border-radius: 22px;
  background: var(--sb-card);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--sb-accent) 16%, transparent), transparent 55%),
    var(--sb-card);
}
.light .subband {
  --sb-ink: var(--l-ink); --sb-muted: var(--l-muted); --sb-line: var(--l-line); --sb-card: var(--l-card);
  --sb-field: #FBF9F8;
  box-shadow: 0 30px 70px -50px rgba(40, 28, 24, .45);
}

.subband .eyebrow { color: var(--sb-accent); }
.subband h3 {
  font-family: 'Sora'; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15; color: var(--sb-ink); margin: 12px 0 14px;
}
.subband .sb-text { color: var(--sb-muted); font-size: 16px; line-height: 1.6; margin: 0; max-width: 460px; }
.subband .sb-points { list-style: none; margin: 22px 0 0; padding: 0; }
.subband .sb-points li {
  position: relative; padding-left: 24px; margin-bottom: 10px;
  color: var(--sb-ink); font-size: 14.5px; line-height: 1.55;
}
.subband .sb-points li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 9px; height: 9px;
  border-radius: 50%; border: 2px solid var(--red);
}

/* product picker */
.sb-pick { border: 0; margin: 0 0 16px; padding: 0; }
.sb-pick legend {
  font-family: 'Sora'; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--sb-muted); margin-bottom: 10px; padding: 0;
}
.sb-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.sb-pill { position: relative; cursor: pointer; }
.sb-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sb-pill span {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Sora'; font-size: 14px; font-weight: 600; color: var(--sb-ink);
  border: 1px solid var(--sb-line); border-radius: 999px; padding: 10px 16px 10px 12px;
  background: var(--sb-field); transition: border-color .15s, background .15s;
}
.sb-pill span::before {
  content: ''; width: 16px; height: 16px; border-radius: 5px; flex: none;
  border: 1.5px solid var(--sb-muted); box-sizing: border-box;
}
.sb-pill input:checked + span { border-color: var(--pc, var(--red)); background: color-mix(in srgb, var(--pc, var(--red)) 14%, transparent); }
.sb-pill input:checked + span::before {
  border-color: var(--pc, var(--red)); background: var(--pc, var(--red))
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.sb-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(228, 58, 63, .3); }

/* fields */
.sb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sb-field label {
  display: block; font-size: 13px; color: var(--sb-muted); margin: 0 0 6px;
}
.sb-field input, .sb-field select {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; color: var(--sb-ink);
  background: var(--sb-field); border: 1px solid var(--sb-line); border-radius: 12px;
  padding: 12px 14px; appearance: none; -webkit-appearance: none;
}
.sb-field select {
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A79E97' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
.sb-field select option { color: #211B17; }
.sb-field input::placeholder { color: var(--sb-muted); opacity: .75; }
.sb-field input:focus, .sb-field select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(228, 58, 63, .18);
}
.sb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sb-btn { width: 100%; margin-top: 16px; justify-content: center; }
.sb-btn[disabled] { opacity: .6; cursor: wait; }
.sb-note { font-size: 12.5px; color: var(--sb-muted); margin: 12px 0 0; line-height: 1.5; }
.sb-err { font-size: 13.5px; color: var(--red); margin: 10px 0 0; display: none; }
.sb-err.on { display: block; }

/* thank-you state */
.sb-done { display: none; text-align: center; padding: 26px 10px; }
.subband.is-done .sb-form { display: none; }
.subband.is-done .sb-done { display: block; }
.sb-tick {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%;
  background: rgba(79, 178, 134, .16); color: var(--ok); font-size: 24px; line-height: 48px;
}
.sb-done h4 { font-family: 'Sora'; font-size: 20px; font-weight: 700; color: var(--sb-ink); margin: 0 0 8px; }
.sb-done p { color: var(--sb-muted); font-size: 15px; line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
  .subband { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
}
@media (max-width: 520px) {
  .sb-grid { grid-template-columns: 1fr; }
}
