/* Homepage subscribe widget: round glowing icon bottom-right (appears on scroll) + a small subscribe card above it.
   Compact bottom sheet on phones. */
.hw { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  font-family: 'Figtree', system-ui, sans-serif; pointer-events: none; }
.hw[hidden] { display: none; }
.hw > * { pointer-events: auto; }
.hw.is-bf .hw-btn { visibility: hidden; }   /* Black Friday card owns this corner while it is showing */

/* ---------- Icon ---------- */
.hw-btn { position: relative; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: #1A2142; color: #9AEEAC;
  box-shadow: 0 0 0 1px rgba(154,238,172,.45), 0 0 20px 2px rgba(154,238,172,.34), 0 14px 30px -10px rgba(26,33,66,.75);
  opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .35s ease, transform .35s ease, background-color .2s; }
.hw.is-in .hw-btn { opacity: 1; transform: none; }
.hw.is-in:not(.is-open) .hw-btn { animation: hw-glow 3.2s ease-in-out infinite; }
.hw-btn:hover { background: #26336A; }
.hw-btn svg { grid-area: 1 / 1; width: 24px; height: 24px; transition: opacity .2s ease, transform .25s ease; }
.hw-i-x { opacity: 0; transform: rotate(-60deg) scale(.7); }
.hw.is-open .hw-i-mail { opacity: 0; transform: rotate(60deg) scale(.7); }
.hw.is-open .hw-i-x { opacity: 1; transform: none; }
@keyframes hw-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(154,238,172,.45), 0 0 16px 1px rgba(154,238,172,.28), 0 14px 30px -10px rgba(26,33,66,.75); }
  50% { box-shadow: 0 0 0 1px rgba(154,238,172,.75), 0 0 30px 6px rgba(154,238,172,.5), 0 14px 30px -10px rgba(26,33,66,.75); }
}
.hw-btn:focus-visible, .hw-x:focus-visible, .hw-form button:focus-visible, .hw-fine a:focus-visible { outline: 3px solid #7C89FF; outline-offset: 2px; }

/* ---------- Card ---------- */
.hw-panel { position: relative; width: 360px; max-width: calc(100vw - 32px); padding: 26px 24px 20px; border-radius: 22px; background: #fff; color: #0F172A;
  box-shadow: 0 30px 70px -24px rgba(15,23,42,.45), 0 0 0 1px rgba(15,23,42,.06);
  outline: none; opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right; transition: opacity .22s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.hw-panel[hidden] { display: none; }
.hw.is-open .hw-panel { opacity: 1; transform: none; }
.hw-x { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: #F1F5F9; color: #475569; cursor: pointer; transition: background-color .15s, color .15s; }
.hw-x:hover { background: #E2E8F0; color: #0F172A; }
.hw-x svg { width: 16px; height: 16px; }

/* Her mascot (walking envelope with a newsletter card) peeks above the card's top-left edge. Never redrawn. */
.hw-panel { margin-top: 86px; padding-top: 84px; }
.hw-mascot { position: absolute; left: 6px; top: -92px; width: 136px; height: auto; pointer-events: none; filter: drop-shadow(0 12px 16px rgba(15,23,42,.18)); }
.hw-h { margin: 0; padding-right: 8px; text-wrap: balance; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; color: #0F172A; }
.hw-lead { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: #57534E; }
.hw-bonus { display: inline-flex; align-items: center; gap: 7px; margin: 14px 0 0; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: #FEF6E0; color: #92400E; font-size: 13.5px; font-weight: 600; }
.hw-bonus svg { width: 15px; height: 15px; flex: none; color: #D97706; }

.hw-form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.hw-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hw-form input { height: 46px; padding: 0 14px; border: 1px solid #E2E0DA; border-radius: 12px; background: #FAFAF9; font: inherit; font-size: 15px; color: #0F172A;
  transition: border-color .15s, box-shadow .15s, background-color .15s; }
.hw-form input::placeholder { color: #A8A29E; }
.hw-form input:focus { outline: none; border-color: #3461FF; background: #fff; box-shadow: 0 0 0 4px rgba(52,97,255,.14); }
.hw-form input[aria-invalid="true"] { border-color: #DC2626; }
.hw-form button { height: 46px; border: 0; border-radius: 999px; background: #3461FF; color: #fff; font: 600 15px 'Figtree', system-ui, sans-serif; cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s; }
.hw-form button:hover:not(:disabled) { background: #2449E0; transform: translateY(-1px); box-shadow: 0 12px 22px -12px rgba(52,97,255,.8); }
.hw-form button:disabled { opacity: .6; cursor: default; transform: none; }
.hw-msg { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: #15803D; }
.hw-msg:empty { display: none; }
.hw-msg.err { color: #DC2626; }
.hw-fine { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #A8A29E; }
.hw-fine a { color: #57534E; font-weight: 600; text-decoration: none; }
.hw-fine a:hover { text-decoration: underline; }

/* ---------- Subscribed ---------- */
.hw-done { padding: 6px 0 4px; text-align: center; }
.hw-done[hidden] { display: none; }
.hw-done-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%; background: #9AEEAC; color: #0F172A;
  box-shadow: 0 0 0 8px rgba(154,238,172,.25); }
.hw-done-ico svg { width: 26px; height: 26px; }
.hw-done .hw-h { padding: 0; outline: none; }
.hw-code { margin-top: 16px; padding: 14px 14px 12px; border: 1.5px dashed #F5B83D; border-radius: 12px; background: #FFF8E6; text-align: left; }
.hw-code[hidden] { display: none; }
.hw-code-l { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #92600A; }
.hw-code-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.hw-code-row b { font-size: 22px; font-weight: 800; letter-spacing: .08em; color: #0F172A; font-variant-numeric: tabular-nums; }
.hw-code-copy { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: #0F172A; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s ease; }
.hw-code-copy:hover { background: #3461FF; }
.hw-code-n { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; color: #7A5300; }

/* ---------- Phones: compact bottom sheet; icon stays bottom-right ---------- */
@media (max-width: 600px) {
  .hw { right: 16px; bottom: 16px; }
  .hw-panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-width: none; padding: 22px 20px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0; transform: translateY(24px); transform-origin: bottom center; }
  .hw-panel { margin-top: 0; padding-top: 74px; }
  .hw-mascot { width: 116px; top: -76px; left: 6px; }
  .hw-h { font-size: 19px; }
  .hw.is-open .hw-btn { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-btn, .hw-btn svg, .hw-panel, .hw-form button, .hw-form input { transition: none; }
  .hw.is-in:not(.is-open) .hw-btn { animation: none; }
}
.hw.is-done .hw-panel { padding-top: 56px; }

/* Launcher v3: the newsletter mascot in a white circle with a gold glow and a small gold bell badge
   (brand white + blue + gold, no navy/green fill, nothing that reads as "support chat"). */
.hw-btn { width: 64px; height: 64px; background: #fff; overflow: visible;
  box-shadow: 0 0 0 2px #3461FF, 0 0 22px 4px rgba(245,184,61,.45), 0 14px 30px -12px rgba(15,23,42,.45); }
.hw-btn:hover { background: #fff; transform: translateY(-2px) !important; }
.hw-btn img.hw-i-mail { grid-area: 1 / 1; width: 54px; height: auto; margin-top: 6px; border-radius: 0 0 28px 28px; transition: opacity .2s ease, transform .25s ease; }
.hw-btn .hw-i-x { color: #0F172A; }
.hw-badge { position: absolute; right: -3px; top: -3px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #F5B83D; color: #fff; box-shadow: 0 0 0 2px #fff, 0 4px 10px -3px rgba(180,120,10,.6); transition: opacity .2s ease, transform .25s ease; }
.hw-badge svg { width: 13px; height: 13px; }
.hw.is-open .hw-badge { opacity: 0; transform: scale(.6); }
.hw.is-in:not(.is-open) .hw-btn { animation: hw-glow-gold 3.2s ease-in-out infinite; }
.hw.is-in:not(.is-open) .hw-badge { animation: hw-ring 3.2s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes hw-glow-gold {
  0%, 100% { box-shadow: 0 0 0 2px #3461FF, 0 0 16px 2px rgba(245,184,61,.35), 0 14px 30px -12px rgba(15,23,42,.45); }
  50% { box-shadow: 0 0 0 2px #3461FF, 0 0 30px 8px rgba(245,184,61,.55), 0 14px 30px -12px rgba(15,23,42,.45); }
}
@keyframes hw-ring { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(16deg); } 88% { transform: rotate(-14deg); } 92% { transform: rotate(8deg); } 96% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .hw.is-in:not(.is-open) .hw-btn, .hw.is-in:not(.is-open) .hw-badge { animation: none; } }
/* Launcher v4: the mascot itself is the button (no circle), with a soft gold glow; X state is a small white circle. */
.hw-btn { width: 76px; height: 92px; border-radius: 0; background: transparent !important; box-shadow: none !important; }
.hw.is-in:not(.is-open) .hw-btn { animation: hw-bob 3.2s ease-in-out infinite; }
.hw-btn img.hw-i-mail { width: 76px; margin: 0; border-radius: 0; filter: drop-shadow(0 0 10px rgba(245,184,61,.55)) drop-shadow(0 10px 14px rgba(15,23,42,.35)); }
.hw-btn .hw-i-x { width: 48px; height: 48px; padding: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #3461FF, 0 10px 24px -10px rgba(15,23,42,.5); box-sizing: border-box; }
.hw-badge { right: 2px; top: 4px; }
@keyframes hw-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .hw.is-in:not(.is-open) .hw-btn { animation: none; } }
.hw-badge { display: none; }
/* Desktop: no × inside the card (the mascot button turns into the close). Phones: the button is hidden behind the sheet, so the × shows there. */
.hw-x-m { display: none; }
@media (max-width: 600px) { .hw-x-m { display: grid; } }
/* Offer block: the 10% is the focal point, with a short plain line beside it. */
.hw-bonus2 { display: flex; align-items: center; gap: 14px; margin: 16px 0 4px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(135deg, #FFF7E6, #FFEFC7); border: 1px dashed #F5B83D; }
.hw-bonus2-pct { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 66px; height: 66px; border-radius: 14px;
  background: #F5B83D; color: #fff; font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; box-shadow: 0 8px 16px -10px rgba(180,120,10,.8); }
.hw-bonus2-pct small { margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.hw-bonus2-t { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.hw-bonus2-t b { font-size: 16px; font-weight: 700; color: #7A4A00; }
.hw-bonus2-t small { font-size: 13px; color: #92400E; opacity: .85; }
/* Offer tag: the original yellow pill, text on two lines. */
.hw-bonus-2l { align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 14px; }
.hw-bonus-2l svg { width: 18px; height: 18px; }
.hw-bonus-2l span { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.hw-bonus-2l b { font-size: 15px; font-weight: 700; }
.hw-bonus-2l small { font-size: 13px; font-weight: 500; opacity: .85; }
.hw-bonus-2l span { gap: 3px; }
.hw-bonus-2l small { font-size: 15px; }
/* Offer tag back on one line. */
.hw-bonus-2l span { display: inline; font-size: 15px; font-weight: 500; }
.hw-bonus-2l b { margin-right: 4px; }

/* ===== Mobile pass (<=767px) ===== */
@media (max-width: 767px) {
  /* Smaller launcher, clear of the home indicator. */
  .hw { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .hw-btn { width: 60px; height: 72px; -webkit-tap-highlight-color: transparent; }
  .hw-btn img.hw-i-mail { width: 60px; }
  .hw-btn:active img.hw-i-mail { transform: scale(.94); }
  .hw-x { width: 44px; height: 44px; right: 8px; top: 8px; }
  .hw-x:active { background: #E2E8F0; }
  .hw-form input { height: 48px; font-size: 16px; }
  .hw-form button { height: 48px; font-size: 16px; }
  .hw-form button:active:not(:disabled) { transform: scale(.98); }
}
