/**
 * /assets/css/hero-discount.css
 * Mage Hero Discount landing page.
 */

.hero-discount-page,
.hd-invite-modal {
  --hd-bg: #0c0b10;
  --hd-bg-alt: #14121a;
  --hd-surface: #1a1722;
  --hd-text: #f3efe6;
  --hd-muted: #b8b0a4;
  --hd-accent: #c9a227;
  --hd-accent-soft: rgba(201, 162, 39, 0.14);
  --hd-line: rgba(243, 239, 230, 0.12);
  --hd-focus: #e8d48a;
}

.hero-discount-page {
  color: var(--hd-text);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(72, 48, 28, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(40, 56, 72, 0.28), transparent 50%),
    var(--hd-bg);
  min-height: 60vh;
}

.hero-discount-page a:not(.hd-btn) {
  color: var(--hd-accent);
}

.hero-discount-page a:not(.hd-btn):hover,
.hero-discount-page a:not(.hd-btn):focus-visible {
  color: var(--hd-focus);
}

.hd-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hd-hero {
  padding: 2.75rem 1.25rem 2.25rem;
  border-bottom: 1px solid var(--hd-line);
}

.hd-hero__inner {
  max-width: 880px;
  margin: 0 auto;
}

.hd-kicker {
  margin: 0 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-style: italic;
  color: var(--hd-accent);
  letter-spacing: 0.01em;
}

.hd-hero h1 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--hd-text);
}

.hd-opening {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--hd-muted);
  max-width: 46rem;
}

.hd-benefit {
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, var(--hd-accent-soft), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 4px;
}

.hd-benefit__amount {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.hd-benefit__pct {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: var(--hd-accent);
  margin-right: 0.25rem;
}

.hd-benefit__detail,
.hd-benefit__verify {
  margin: 0;
  color: var(--hd-muted);
  line-height: 1.55;
}

.hd-benefit__verify {
  margin-top: 0.65rem;
  font-size: 0.95rem;
}

.hd-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
}

.hd-categories li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--hd-line);
  border-radius: 2px;
  font-size: 0.9rem;
  color: var(--hd-text);
  background: rgba(255, 255, 255, 0.03);
}

.hd-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.hd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  appearance: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hd-btn:focus-visible {
  outline: 2px solid var(--hd-focus);
  outline-offset: 3px;
}

.hd-btn--primary {
  background: #c9a227;
  background: var(--hd-accent, #c9a227);
  color: #1a1408 !important;
}

.hd-btn--primary:hover,
.hd-btn--primary:focus-visible {
  background: #e8d48a;
  background: var(--hd-focus, #e8d48a);
  color: #1a1408 !important;
}

.hd-btn--secondary {
  background: transparent;
  color: var(--hd-text) !important;
  border-color: rgba(243, 239, 230, 0.35);
}

.hd-btn--secondary:hover,
.hd-btn--secondary:focus-visible {
  border-color: var(--hd-accent);
  color: var(--hd-accent) !important;
}

.hd-btn--ghost {
  background: transparent;
  color: var(--hd-muted) !important;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hd-btn--ghost:hover,
.hd-btn--ghost:focus-visible {
  color: var(--hd-accent) !important;
}

.hd-hours {
  margin: 0;
  font-size: 0.95rem;
  color: var(--hd-muted);
}

.hd-hours__open {
  color: #8fbf8a;
  font-weight: 600;
}

.hd-section {
  padding: 2.5rem 0;
}

.hd-section--alt {
  background: rgba(20, 18, 26, 0.72);
  border-top: 1px solid var(--hd-line);
  border-bottom: 1px solid var(--hd-line);
}

.hd-section--cta {
  padding-bottom: 3.5rem;
  text-align: center;
}

.hd-section--cta .hd-ctas {
  justify-content: center;
}

.hd-section h2 {
  margin: 0 0 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.25;
}

.hd-subhead {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.1rem;
}

.hd-lead {
  margin: 0 0 1.25rem;
  color: var(--hd-muted);
  line-height: 1.6;
}

.hd-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--hd-muted);
  line-height: 1.7;
}

.hd-steps li + li {
  margin-top: 0.45rem;
}

.hd-steps strong {
  color: var(--hd-text);
}

.hd-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--hd-muted);
  line-height: 1.65;
}

.hd-list li + li {
  margin-top: 0.4rem;
}

.hd-note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--hd-muted);
}

.hd-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0;
}

.hd-jump a {
  font-size: 0.92rem;
}

.hd-audience {
  scroll-margin-top: 5.5rem;
}

.hd-audience:target {
  outline: 1px solid rgba(201, 162, 39, 0.45);
  outline-offset: -1px;
}

.hd-audience__layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .hd-audience__layout {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: stretch;
  }
}

.hd-audience__media-frame {
  min-height: 220px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(201, 162, 39, 0.4);
  border-radius: 4px;
  background:
    linear-gradient(160deg, rgba(201, 162, 39, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 20px
    );
  overflow: hidden;
}

.hd-audience__media-frame--has-image {
  border: none;
  background: none;
}

.hd-audience__media-frame picture,
.hd-audience__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hd-audience__media-label {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hd-muted);
}

.hd-audience__copy .hd-subhead {
  margin-top: 1.15rem;
}

.hd-audience__copy .hd-subhead:first-of-type {
  margin-top: 0.35rem;
}

.hd-audience__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.hd-audience__actions .hd-btn {
  cursor: pointer;
}

.hd-faq {
  margin: 0 0 0.65rem;
  padding: 0.15rem 0.85rem 0.15rem;
  background: var(--hd-surface);
  border: 1px solid var(--hd-line);
  border-radius: 2px;
}

.hd-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 0;
}

.hd-faq summary::-webkit-details-marker {
  display: none;
}

.hd-faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.25rem;
  color: var(--hd-accent);
  font-weight: 700;
}

.hd-faq[open] summary::before {
  content: "–";
}

.hd-faq p {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  color: var(--hd-muted);
  line-height: 1.6;
}

.hd-faq,
.hd-section {
  scroll-margin-top: 5.5rem;
}

/* Invite modal */
.hd-invite-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hd-invite-modal[hidden] {
  display: none !important;
}

.hd-invite-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 9, 0.72);
}

.hd-invite-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #1a1722;
  color: var(--hd-text);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hd-invite-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.hd-invite-modal__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.hd-invite-modal__close {
  border: 0;
  background: transparent;
  color: var(--hd-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.hd-invite-modal__close:hover,
.hd-invite-modal__close:focus-visible {
  color: var(--hd-accent);
}

.hd-invite-modal__lead {
  margin: 0 0 1rem;
  color: var(--hd-muted);
  line-height: 1.5;
}

.hd-invite-modal__label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.hd-invite-modal__optional {
  font-weight: 400;
  color: var(--hd-muted);
}

.hd-invite-modal__input {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(243, 239, 230, 0.22);
  background: #0c0b10;
  color: var(--hd-text);
  font-size: 1rem;
}

.hd-invite-modal__input:focus {
  outline: 2px solid var(--hd-focus);
  outline-offset: 1px;
}

.hd-invite-modal__note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--hd-muted);
  line-height: 1.45;
}

.hd-invite-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.hd-invite-modal__actions .hd-btn {
  width: auto;
  min-width: 7.5rem;
}

.hd-invite-modal__actions .hd-btn--primary {
  background: #c9a227;
  color: #1a1408 !important;
  border-color: #c9a227;
}

.hd-invite-modal__actions .hd-btn--primary:hover,
.hd-invite-modal__actions .hd-btn--primary:focus-visible {
  background: #e8d48a;
  color: #1a1408 !important;
  border-color: #e8d48a;
}

.hd-invite-modal__actions .hd-btn--ghost {
  color: #b8b0a4 !important;
}

.hd-invite-modal__flash {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: #8fbf8a;
}

.hd-invite-modal__flash.is-error {
  color: #e8a0a0;
}

.hd-invite-modal__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 640px) {
  .hd-hero {
    padding-top: 2rem;
  }

  .hd-ctas {
    flex-direction: column;
  }

  .hd-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-btn {
    transition: none;
  }
}
