/* Hoot Pro pop-up and the Pro mark (gold sparkle; the user kept the sparkle 2026-11-12: "make the version that we have right now better... make it colorful"). Owner: builder C, r22. Used on home and /pricing.
   Markup: the <dialog id="pro-dialog"> at the end of v2-build/partials/home-lower.html (copied into site/pricing/index.html).
   Script: /assets/v2/pro-modal.js. Uses base.css tokens. */

/* ---------- The Pro mark (inline <svg class="h-pro-mark">, fill = currentColor) ---------- */
.h-pro-mark { width: 1.15em; height: 1.15em; flex: none; overflow: visible; fill: url(#h-pro-gold) #ffc23a; filter: drop-shadow(0 0 4px rgba(255, 190, 120, .5)); }
.h-pro-mark__big { stroke: #10182c; stroke-opacity: .38; stroke-width: .6; stroke-linejoin: round; }
.h-btn .h-pro-mark { filter: drop-shadow(0 1px 1.5px rgba(16, 28, 60, .45)) drop-shadow(0 0 5px rgba(255, 214, 120, .75)); }
.h-btn .h-pro-mark { width: 23px; height: 23px; }

/* ---------- Dialog ---------- */
body.v2 .h-pro-dialog {
  --h-pro-pad: clamp(20px, 5vw, 32px);
  position: fixed;
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(148, 169, 255, .28);
  border-radius: var(--h-r-xl);
  color: var(--h-ink);
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(148, 169, 255, .16) 0%, transparent 70%),
    var(--h-panel);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 40px 120px -20px rgba(0, 0, 0, .85), 0 0 80px -30px rgba(148, 169, 255, .45);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  font-family: var(--h-font);
}
body.v2 .h-pro-dialog:not([open]) { display: none; }
body.v2 .h-pro-dialog::backdrop {
  background: rgba(8, 10, 14, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
/* a thin blue line along the top edge, the same accent the Pro card carries */
body.v2 .h-pro-dialog::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(148, 169, 255, 0), #94a9ff 30%, #bcd0ff 55%, rgba(148, 169, 255, 0));
}

/* open / close: a short rise with a fade; reduced motion fades only */
@media (prefers-reduced-motion: no-preference) {
  body.v2 .h-pro-dialog[open] { animation: h-pro-in 260ms var(--h-ease-out) both; }
  body.v2 .h-pro-dialog[open]::backdrop { animation: h-pro-fade 220ms ease-out both; }
  body.v2 .h-pro-dialog.is-closing { animation: h-pro-out 180ms ease-in both; }
  body.v2 .h-pro-dialog.is-closing::backdrop { animation: h-pro-fade 180ms ease-in reverse both; }
}
@media (prefers-reduced-motion: reduce) {
  body.v2 .h-pro-dialog[open] { animation: h-pro-fade 160ms linear both; }
  body.v2 .h-pro-dialog[open]::backdrop { animation: h-pro-fade 160ms linear both; }
}
@keyframes h-pro-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes h-pro-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes h-pro-fade { from { opacity: 0; } to { opacity: 1; } }

body.v2 .h-pro-dialog__card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: var(--h-pro-pad); text-align: center; }

body.v2 .h-pro-dialog__x {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: var(--h-panel-3); color: var(--h-ink-soft);
  cursor: pointer; transition: background-color var(--h-dur-2), color var(--h-dur-2), transform var(--h-dur-2) var(--h-ease-out);
}
body.v2 .h-pro-dialog__x svg { width: 18px; height: 18px; }
body.v2 .h-pro-dialog__x:focus-visible { outline: 2px solid var(--h-focus); outline-offset: 2px; }
@media (hover: hover) { body.v2 .h-pro-dialog__x:hover { background: #2c3542; color: var(--h-ink); } }

/* owl with the Pro sparkle on its corner */
body.v2 .h-pro-dialog__owl { position: relative; display: grid; place-items: center; width: 88px; height: 88px; margin-top: 4px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #1f2840 0%, #141920 70%); box-shadow: 0 0 0 1px rgba(148, 169, 255, .25), 0 0 40px -6px rgba(148, 169, 255, .55); }
body.v2 .h-pro-dialog__owl > img:first-child { width: 64px; height: 64px; }
body.v2 .h-pro-dialog__badge { position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--h-panel); box-shadow: 0 0 0 2px var(--h-panel), 0 0 0 3px rgba(148, 169, 255, .4), 0 4px 14px rgba(0, 0, 0, .45); }
body.v2 .h-pro-dialog__badge img { width: 22px; height: 22px; }

body.v2 .h-pro-dialog__title { margin: 0; font-size: clamp(1.6rem, 1.4rem + .8vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; text-shadow: var(--h-glow-text); }
body.v2 .h-pro-dialog__line { margin: -4px 0 4px; max-width: 32ch; color: var(--h-ink-soft); font-size: 1rem; line-height: 1.5; text-wrap: balance; }

/* plan picker: three rows, one radio group */
body.v2 .h-pro-plans { display: grid; gap: 10px; width: 100%; margin: 0; padding: 0; border: 0; min-width: 0; }
body.v2 .h-pro-plan {
  position: relative;
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 16px;
  border: 1px solid var(--h-line); border-radius: var(--h-r-md);
  background: var(--h-bg);
  text-align: left; cursor: pointer;
  transition: border-color var(--h-dur-2), background-color var(--h-dur-2), box-shadow var(--h-dur-2);
}
body.v2 .h-pro-plan input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
body.v2 .h-pro-plan__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--h-faint); transition: border-color var(--h-dur-2), box-shadow var(--h-dur-2); }
body.v2 .h-pro-plan__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.v2 .h-pro-plan__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: var(--h-ink); }
body.v2 .h-pro-plan__sub { font-size: .875rem; color: var(--h-muted); }
body.v2 .h-pro-plan__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
body.v2 .h-pro-plan__price strong { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--h-ink); }
body.v2 .h-pro-plan__price small { font-size: .8125rem; color: var(--h-muted); }
body.v2 .h-pro-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: var(--h-r-pill); font-size: .75rem; font-weight: 700; letter-spacing: .01em; line-height: 1; color: #101318; background: #94a9ff; white-space: nowrap; }
body.v2 .h-pro-chip--soft { color: var(--h-ink-soft); background: var(--h-panel-3); }
body.v2 .h-pro-plan:is(.is-selected, :has(input:checked)) { border-color: #94a9ff; background: var(--h-blue-tint); box-shadow: 0 0 0 1px rgba(148, 169, 255, .5), 0 10px 30px -14px rgba(77, 100, 230, .7); }
body.v2 .h-pro-plan:is(.is-selected, :has(input:checked)) .h-pro-plan__dot { border-color: #94a9ff; box-shadow: inset 0 0 0 4px var(--h-blue-tint), inset 0 0 0 10px #94a9ff; }
body.v2 .h-pro-plan:has(input:focus-visible) { outline: 2px solid var(--h-focus); outline-offset: 3px; }
@media (hover: hover) { body.v2 .h-pro-plan:not(.is-selected):hover { border-color: rgba(148, 169, 255, .45); } }

/* main button: two lines (what happens, what it costs today) */
body.v2 .h-pro-cta { flex-direction: column; gap: 3px; min-height: 64px; height: auto; padding: 12px 22px; margin-top: 4px; white-space: normal; }
body.v2 .h-pro-cta__label { display: inline-flex; align-items: center; gap: 8px; font-size: 1.0625rem; font-weight: 700; }
body.v2 .h-pro-cta__sub { font-size: .875rem; font-weight: 500; opacity: .85; }
body.v2 .h-pro-cta.is-going { opacity: .8; cursor: progress; }

body.v2 .h-pro-trust { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--h-muted); font-size: .875rem; }
body.v2 .h-pro-trust svg { width: 16px; height: 16px; flex: none; color: var(--h-ink-soft); }
body.v2 .h-pro-dialog__free {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--h-r-pill); background: none;
  color: var(--h-ink-soft); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
}
body.v2 .h-pro-dialog__free:focus-visible { outline: 2px solid var(--h-focus); outline-offset: 2px; }
@media (hover: hover) { body.v2 .h-pro-dialog__free:hover { color: var(--h-ink); } }

@media (max-width: 479px) {
  body.v2 .h-pro-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: var(--h-r-lg); }
  body.v2 .h-pro-dialog__card { gap: 12px; }
  body.v2 .h-pro-plan { min-height: 60px; padding: 10px 12px; gap: 10px; }
}
@media (max-height: 640px) {
  body.v2 .h-pro-dialog__owl { width: 64px; height: 64px; }
  body.v2 .h-pro-dialog__owl > img:first-child { width: 46px; height: 46px; }
  body.v2 .h-pro-dialog__badge { width: 28px; height: 28px; }
  body.v2 .h-pro-dialog__badge img { width: 18px; height: 18px; }
}

body.v2 .h-pro-trust [data-pro-trust].is-error { color: #ffb4a8; }

/* rec 2026-11-13: no reassurance line under the button; the line only shows for the offline message. */
body.v2 .h-pro-trust:has([data-pro-trust]:empty) { display: none; }
