/* ==========================================================================
   Digital Envisioned — Engagement Kit v1 (engage.css)
   Namespaced .dek- so it never collides with a property's own stylesheet.
   Brand: navy #0D1424 family / gold #2a7ad5 family.
   Motion: transform + opacity only. Honors prefers-reduced-motion.
   ========================================================================== */

.dek-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- Offer bar ---------- */
.dek-bar {
  background: linear-gradient(90deg, #0D1424, #1B2A4A 55%, #0D1424);
  color: #d0e0f2; border-bottom: 2px solid #2a7ad5;
  font-size: 15px; line-height: 1.45;
}
.dek-bar-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 48px 10px 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative;
}
.dek-bar strong { color: #5a9ce7; }
.dek-bar a.dek-bar-cta {
  background: #2a7ad5; color: #0D1424; font-weight: 700; text-decoration: none;
  padding: 10px 16px; border-radius: 8px; min-height: 48px; display: inline-flex; align-items: center;
}
.dek-bar a.dek-bar-cta:hover, .dek-bar a.dek-bar-cta:focus { background: #5a9ce7; }
.dek-bar-close {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; background: transparent; color: #d0e0f2;
  font-size: 24px; line-height: 1; cursor: pointer; border-radius: 8px;
}
.dek-bar-close:hover, .dek-bar-close:focus { color: #5a9ce7; }
.dek-bar[hidden] { display: none; }

/* ---------- Shared bits ---------- */
.dek-section {
  background: linear-gradient(160deg, #101B33, #0D1424);
  border: 1px solid #2E4A7A; border-radius: 16px;
  padding: 24px 18px; margin: 28px 0; color: #EDEFF5;
}
.dek-section h2 {
  margin: 0 0 8px; font-size: 26px; line-height: 1.2; color: #fff;
  background: linear-gradient(90deg, #5a9ce7, #2a7ad5, #5a9ce7);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dek-shine 5s linear infinite;
}
.dek-section p.dek-sub { color: #B9C4DA; margin: 0 0 16px; max-width: 560px; }
.dek-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #5a9ce7, #2a7ad5); color: #0D1424;
  font-size: 17px; font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 18px rgba(42,122,213,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dek-btn:hover, .dek-btn:focus { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(42,122,213,.45); }
.dek-btn:active { transform: translateY(0); }
.dek-btn[disabled] { opacity: .55; cursor: wait; transform: none; }
.dek-btn-ghost {
  background: transparent; color: #5a9ce7; border: 2px solid #2a7ad5; box-shadow: none;
}
.dek-pulse { animation: dek-pulse 2.2s ease-in-out infinite; }
.dek-note { font-size: 13px; color: #93A9CF; margin-top: 10px; }
.dek-error { color: #FF9D8A; font-weight: 600; margin-top: 10px; }
.dek-result {
  margin-top: 18px; background: #0D1424; border: 2px solid #2a7ad5; border-radius: 12px;
  padding: 18px; animation: dek-pop .45s cubic-bezier(.2,1.6,.4,1) both;
}
.dek-result h3 { margin: 0 0 6px; color: #5a9ce7; font-size: 21px; }
.dek-result p { color: #D5DCEC; margin: 0 0 12px; }
.dek-claim {
  font-family: ui-monospace, Menlo, monospace; font-size: 20px; letter-spacing: 2px;
  background: #1B2A4A; color: #5a9ce7; padding: 8px 14px; border-radius: 8px; display: inline-block;
}

/* ---------- Spin ---------- */
.dek-spin-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.dek-wheel-box { position: relative; width: 300px; max-width: 82vw; margin: 0 auto; }
.dek-wheel-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.dek-wheel-rotor { transform-origin: 50% 50%; }
.dek-pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent;
  border-top: 26px solid #5a9ce7; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
}
.dek-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 74px; height: 74px; border-radius: 50%; background: #0D1424; border: 3px solid #2a7ad5;
  color: #5a9ce7; font-weight: 800; font-size: 13px; display: flex; align-items: center;
  text-align: center; justify-content: center; padding: 6px;
}
.dek-spin-form { flex: 1 1 260px; min-width: 240px; }
.dek-spin-form label { display: block; font-weight: 700; margin-bottom: 6px; color: #fff; }
.dek-spin-form input[type="email"] {
  width: 100%; box-sizing: border-box; min-height: 52px; padding: 12px 14px; font-size: 16px;
  border-radius: 10px; border: 2px solid #2E4A7A; background: #0D1424; color: #fff; margin-bottom: 12px;
}
.dek-spin-form input[type="email"]:focus { border-color: #2a7ad5; outline: none; }

/* ---------- Quiz ---------- */
.dek-quiz-q { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 14px; }
.dek-quiz-opts { display: grid; gap: 10px; }
.dek-quiz-opt {
  text-align: left; min-height: 52px; padding: 12px 16px; border-radius: 10px; cursor: pointer;
  background: #131C30; color: #EDEFF5; border: 2px solid #2E4A7A; font-size: 16px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.dek-quiz-opt:hover, .dek-quiz-opt:focus { border-color: #2a7ad5; background: #1B2A4A; transform: translateX(4px); }
.dek-quiz-step { animation: dek-slidein .3s ease both; }
.dek-progress { height: 8px; background: #1B2A4A; border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.dek-progress i { display: block; height: 100%; background: linear-gradient(90deg, #2a7ad5, #5a9ce7); transition: width .35s ease; }
.dek-quiz-price { color: #5a9ce7; font-weight: 800; font-size: 19px; }

/* ---------- Modal (optional smart-modal mode) ---------- */
.dek-overlay {
  position: fixed; inset: 0; background: rgba(5,8,15,.78); z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.dek-overlay[hidden] { display: none; }
.dek-modal {
  background: linear-gradient(160deg, #101B33, #0D1424); border: 2px solid #2a7ad5; border-radius: 16px;
  max-width: 480px; width: 100%; padding: 26px 22px; color: #EDEFF5; position: relative;
  animation: dek-pop .4s cubic-bezier(.2,1.6,.4,1) both; max-height: 88vh; overflow: auto;
}
.dek-modal h2 { color: #5a9ce7; margin: 0 36px 10px 0; font-size: 24px; }
.dek-modal-close {
  position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; border: 0; border-radius: 8px;
  background: transparent; color: #d0e0f2; font-size: 26px; cursor: pointer;
}

/* ---------- Keyframes ---------- */
@keyframes dek-shine { to { background-position: 200% 0; } }
@keyframes dek-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(42,122,213,.35); }
  50% { box-shadow: 0 4px 30px rgba(42,122,213,.65); }
}
@keyframes dek-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes dek-slidein { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
  .dek-section h2, .dek-pulse, .dek-result, .dek-modal, .dek-quiz-step { animation: none; }
  .dek-btn, .dek-quiz-opt, .dek-progress i { transition: none; }
}
