/* Two-way switch made obvious (2026-10-29): a prompt above the switch, a gold "chosen" badge + glow + one shimmer on the
   active option, a clearly tappable inactive option, a gentle pulse that invites a first tap (stops after any tap).
   Applies to the hero switch and the Help switch (.hmode). Names: docs/WEBSITE_NAMES.md ("hpick-"). */
.hpick {
  --hpick-ink: var(--gold-ink);
  display: flex; align-items: center; gap: 10px; max-width: 30rem; margin: 0 0 14px;
  font-size: 0.875rem; font-weight: 800; line-height: 1.3; letter-spacing: 0.01em; color: var(--hpick-ink);
}
.hpick::before {
  content: ""; flex: none; width: 11px; height: 11px; background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.hpick::after {
  content: ""; flex: 1 1 24px; min-width: 24px; height: 1px;
  background: linear-gradient(90deg, rgb(203 166 115 / 0.7), rgb(203 166 115 / 0));
}
[dir="rtl"] .hpick::after { background: linear-gradient(270deg, rgb(203 166 115 / 0.7), rgb(203 166 115 / 0)); }
html[lang="ar"] .hpick { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0; }
[data-theme="dark"] .hpick { --hpick-ink: var(--gold-light); }
.hlp-intro .hpick { margin-top: 16px; margin-bottom: 14px; }

.hmode .hmode__opt { position: relative; }

/* inactive: secondary but visibly a button */
.hmode .hmode__opt[aria-checked="false"] {
  --hpick-base: inset 0 0 0 1px rgb(203 166 115 / 0.5);
  box-shadow: var(--hpick-base); font-weight: 700;
}
.hmode .hmode__opt[aria-checked="false"]:hover,
.hmode .hmode__opt[aria-checked="false"]:focus-visible {
  background-color: rgb(203 166 115 / 0.28); box-shadow: inset 0 0 0 1.5px rgb(203 166 115 / 0.95);
}
[data-theme="dark"] .hmode .hmode__opt[aria-checked="false"] { --hpick-base: inset 0 0 0 1px rgb(226 196 138 / 0.4); }
[data-theme="dark"] .hmode .hmode__opt[aria-checked="false"]:hover,
[data-theme="dark"] .hmode .hmode__opt[aria-checked="false"]:focus-visible {
  background-color: rgb(212 175 106 / 0.2); box-shadow: inset 0 0 0 1.5px rgb(226 196 138 / 0.9);
}

/* active: gold rim + glow, shimmer layer on top of the leather, badge on the corner */
.hmode .hmode__opt[aria-checked="true"] {
  background: linear-gradient(105deg, transparent 35%, rgb(255 238 200 / 0.5) 50%, transparent 65%) no-repeat -150% 0 / 60% 100%, var(--leather);
  box-shadow: inset 0 0 0 1.5px rgb(240 212 150 / 0.95), 0 0 0 3px rgb(212 175 106 / 0.28), 0 8px 22px -8px rgb(212 175 106 / 0.65);
}
.hmode .hmode__opt[aria-checked="true"]::before,
.hmode .hmode__opt[aria-checked="true"]::after {
  content: ""; position: absolute; inset-block-start: -8px; inset-inline-end: 12px; width: 20px; height: 20px; border-radius: 50%; pointer-events: none;
}
.hmode .hmode__opt[aria-checked="true"]::before {
  background: linear-gradient(145deg, #f6e2ac, #c99a4d); box-shadow: 0 0 0 2px #3c1c38, 0 4px 8px -2px rgb(0 0 0 / 0.45);
}
.hmode .hmode__opt[aria-checked="true"]::after {
  background: #3c1c38; border-radius: 0;
  clip-path: polygon(26% 52%, 35% 43%, 44% 52%, 70% 27%, 79% 36%, 44% 71%);
}

/* animations play only once the switch has been in view (hmode-pick.js adds .hpick-inview) */
.hpick-inview .hmode__opt[aria-checked="true"] { animation: hpick-sweep 1.1s 0.2s ease-out 1 both; }
.hpick-inview .hmode__opt[aria-checked="true"] .hmode__txt { animation: hpick-txt 0.4s var(--ease) 1 both; display: inline-block; }
.hpick-inview .hmode__opt[aria-checked="true"]::before,
.hpick-inview .hmode__opt[aria-checked="true"]::after { animation: hpick-pop 0.55s 0.12s cubic-bezier(0.3, 1.5, 0.5, 1) 1 both; }
html:not(.hpick-touched) .hpick-inview .hmode__opt[aria-checked="false"]:not(:hover):not(:focus-visible) {
  animation: hpick-nudge 1.9s ease-out 2.4s 3;
}
@keyframes hpick-sweep { from { background-position: -150% 0, 0 0; } to { background-position: 250% 0, 0 0; } }
@keyframes hpick-txt { from { opacity: 0.35; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
@keyframes hpick-pop { from { opacity: 0; scale: 0.2; translate: 0 7px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes hpick-nudge {
  0% { box-shadow: var(--hpick-base), 0 0 0 0 rgb(212 175 106 / 0.65); }
  70%, 100% { box-shadow: var(--hpick-base), 0 0 0 11px rgb(212 175 106 / 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hpick-inview .hmode__opt, .hpick-inview .hmode__opt .hmode__txt,
  .hpick-inview .hmode__opt::before, .hpick-inview .hmode__opt::after { animation: none !important; }
}
