/* =========================================================
   Gold Treasure Merge — Landing styles
   Light lavender + gold casual-game HUD layout (unique to GTM)
   ========================================================= */

:root {
  --gtm-lavender: #c9b4ff;
  --gtm-lavender-deep: #a78bfa;
  --gtm-lilac: #efe7ff;
  --gtm-bg: #e8dcff;
  --gtm-ink: #2e1065;
  --gtm-ink-soft: #5b3a8c;
  --gtm-muted: #6b4f92;
  --gtm-gold: #ffd54a;
  --gtm-gold-deep: #f5a623;
  --gtm-pink: #ff4fa3;
  --gtm-pink-deep: #e0187a;
  --gtm-cyan: #2de2c2;
  --gtm-white: #ffffff;
  --gtm-shadow: 0 18px 40px rgba(74, 32, 140, 0.18);
  --gtm-radius: 28px;
  --gtm-font-display: "Fredoka", system-ui, sans-serif;
  --gtm-font-body: "Nunito", system-ui, sans-serif;
  --gtm-hud-h: 72px;
  --gtm-ticker-h: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.gtm-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--gtm-font-body);
  color: var(--gtm-ink);
  background: var(--gtm-bg);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: calc(var(--gtm-ticker-h) + 8px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.gtm-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gtm-ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.gtm-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Stage: diamond grid + soft glows ---------- */
.gtm-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #d8c6ff 0%, #ebe0ff 45%, #f3ecff 100%);
}

.gtm-stage__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(45deg, transparent 46%, rgba(255, 255, 255, 0.55) 49%, transparent 52%),
    linear-gradient(-45deg, transparent 46%, rgba(167, 139, 250, 0.25) 49%, transparent 52%);
  background-size: 48px 48px;
}

.gtm-stage__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.gtm-stage__glow--a {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -60px;
  background: rgba(255, 213, 74, 0.35);
}

.gtm-stage__glow--b {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -80px;
  background: rgba(255, 79, 163, 0.2);
}

.gtm-floaters span {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--gtm-gold) 55%, var(--gtm-gold-deep) 100%);
  border-radius: 3px;
  opacity: 0.55;
  animation: gtm-drift 14s ease-in-out infinite;
  transform: rotate(45deg);
}

@keyframes gtm-drift {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(-28px) rotate(55deg);
  }
}

/* ---------- HUD nav ---------- */
.gtm-hud {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin: 12px auto 0;
  max-width: 1120px;
  width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.75rem 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow: var(--gtm-shadow);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.gtm-hud.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(74, 32, 140, 0.22);
}

.gtm-hud__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  cursor: pointer;
}

.gtm-hud__brand img {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(91, 33, 182, 0.25);
}

.gtm-hud__name {
  font-family: var(--gtm-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.15;
  color: var(--gtm-ink);
}

.gtm-hud__name em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--gtm-pink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gtm-hud__links {
  display: none;
  gap: 0.35rem;
  margin-left: auto;
}

.gtm-hud__links a {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gtm-ink-soft);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.gtm-hud__links a:hover,
.gtm-hud__links a:focus-visible {
  background: var(--gtm-lilac);
  color: var(--gtm-ink);
  outline: none;
}

.gtm-hud__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.gtm-menu-toggle {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--gtm-lilac);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gtm-menu-toggle span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: var(--gtm-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gtm-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.gtm-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.gtm-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.gtm-drawer {
  position: fixed;
  top: 88px;
  left: 12px;
  right: 12px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  box-shadow: var(--gtm-shadow);
}

.gtm-drawer[hidden] {
  display: none !important;
}

.gtm-drawer a {
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gtm-drawer a:hover {
  background: var(--gtm-lilac);
}

/* Level progress bar under HUD */
.gtm-levelbar {
  position: sticky;
  top: 92px;
  z-index: 90;
  max-width: 420px;
  margin: 10px auto 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  pointer-events: none;
}

.gtm-levelbar__track {
  flex: 1;
  height: 12px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(74, 32, 140, 0.12);
}

.gtm-levelbar__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gtm-cyan), #7ef0d8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: width 0.15s ease-out;
}

.gtm-levelbar__label {
  font-family: var(--gtm-font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--gtm-ink);
  min-width: 2.5rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ---------- Buttons ---------- */
.gtm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  font-family: var(--gtm-font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.85rem 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gtm-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.gtm-btn:active {
  transform: translateY(1px) scale(0.98);
}

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

.gtm-btn--mini {
  padding: 0.55rem 1.05rem;
  font-size: 0.88rem;
}

.gtm-btn--pink {
  color: #fff;
  background: linear-gradient(180deg, #ff7ab8 0%, var(--gtm-pink) 45%, var(--gtm-pink-deep) 100%);
  box-shadow: 0 8px 0 #b0125e, 0 12px 20px rgba(224, 24, 122, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.gtm-btn--pink:hover {
  box-shadow: 0 6px 0 #b0125e, 0 14px 22px rgba(224, 24, 122, 0.4);
}

.gtm-btn--store {
  min-width: 148px;
  color: #fff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18), 0 10px 18px rgba(46, 16, 101, 0.2);
}

.gtm-btn--apple {
  background: linear-gradient(180deg, #4b5563, #111827);
}

.gtm-btn--google {
  background: linear-gradient(180deg, #34d399, #059669);
}

/* ---------- Hero: Lucky Pack modal ---------- */
.gtm-hero {
  position: relative;
  max-width: 1180px;
  margin: 1.5rem auto 0;
  padding: 1rem 1rem 3rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.gtm-hero__burst {
  position: absolute;
  inset: 8% 10% auto;
  height: 55%;
  background: radial-gradient(circle, rgba(255, 213, 74, 0.45) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.gtm-pack {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #ffffff 0%, #faf6ff 100%);
  border-radius: calc(var(--gtm-radius) + 8px);
  box-shadow: var(--gtm-shadow), 0 0 0 4px rgba(255, 255, 255, 0.7);
  padding: 2.75rem 1.5rem 1.75rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.gtm-pack__ribbon {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 70%;
  padding: 0.65rem 1.5rem 0.85rem;
  background: linear-gradient(180deg, #5eead4, var(--gtm-cyan) 40%, #14b8a6);
  color: #fff;
  font-family: var(--gtm-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 16px rgba(20, 184, 166, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.gtm-pack__ribbon::before,
.gtm-pack__ribbon::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 14px;
  height: 14px;
  background: var(--gtm-gold);
  border: 2px solid #c77d0a;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.gtm-pack__ribbon::before {
  left: 12px;
}

.gtm-pack__ribbon::after {
  right: 12px;
}

.gtm-pack__eyebrow {
  margin: 0.5rem 0 0.35rem;
  font-weight: 800;
  color: var(--gtm-lavender-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.gtm-pack h1 {
  margin: 0;
  font-family: var(--gtm-font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.55rem);
  line-height: 1.15;
  color: var(--gtm-ink);
}

.gtm-title-gold {
  background: linear-gradient(180deg, #ffe082, var(--gtm-gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 0 rgba(199, 125, 10, 0.35));
}

.gtm-pack__lead {
  margin: 0.85rem auto 1.25rem;
  max-width: 36ch;
  color: var(--gtm-muted);
  font-size: 1.02rem;
  font-weight: 600;
}

.gtm-pack__visual {
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 1.35rem;
  box-shadow: 0 12px 28px rgba(91, 33, 182, 0.18);
  border: 3px solid #fff;
  aspect-ratio: 1024 / 500;
  background: #2e1065;
}

.gtm-pack__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gtm-pack__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.gtm-hero__phone {
  position: relative;
  z-index: 1;
  justify-self: center;
  max-width: 260px;
}

.gtm-phone {
  border-radius: 28px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: var(--gtm-shadow), 0 0 0 3px rgba(167, 139, 250, 0.35);
  background: #1e1038;
  aspect-ratio: 472 / 1024;
}

.gtm-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.gtm-phone--sm {
  border-radius: 22px;
  border-width: 3px;
}

.gtm-badge {
  position: absolute;
  font-family: var(--gtm-font-display);
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(46, 16, 101, 0.2);
  animation: gtm-bob 3.2s ease-in-out infinite;
}

.gtm-badge--great {
  bottom: 18%;
  right: -12%;
  background: linear-gradient(180deg, #b8ff4a, #84cc16);
  color: #14532d;
  font-size: 1.05rem;
  border: 3px solid #166534;
}

@keyframes gtm-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Section heads ---------- */
.gtm-section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.gtm-kicker {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--gtm-pink-deep);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gtm-section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--gtm-font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gtm-ink);
}

.gtm-section-head p {
  margin: 0;
  color: var(--gtm-muted);
  font-weight: 600;
}

/* ---------- Features: winding path ---------- */
.gtm-features {
  padding: 3rem 1rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.gtm-path {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.gtm-path::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 24px;
  bottom: 40px;
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gtm-cyan), #a7f3d0 40%, var(--gtm-lavender-deep));
  opacity: 0.85;
}

.gtm-path__node {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding-left: 0;
}

.gtm-path__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(91, 33, 182, 0.15);
  border: 3px solid #fff;
  z-index: 1;
}

.gtm-path__icon--gem {
  background: radial-gradient(circle at 30% 30%, #ede9fe, #c4b5fd);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.65);
}

.gtm-path__card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 1rem 1.15rem;
  box-shadow: 0 10px 24px rgba(74, 32, 140, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.gtm-path__card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--gtm-font-display);
  font-size: 1.15rem;
  color: var(--gtm-ink);
}

.gtm-path__card p {
  margin: 0;
  color: var(--gtm-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.gtm-path__check {
  position: absolute;
  left: 40px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.4);
}

.gtm-path__check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 6px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.gtm-path__node--goal .gtm-path__card {
  background: linear-gradient(135deg, #fff7ed, #faf5ff);
  border-color: rgba(255, 213, 74, 0.65);
}

/* ---------- Gallery cascade ---------- */
.gtm-gallery {
  padding: 2.5rem 1rem 3rem;
  overflow: hidden;
}

.gtm-cascade {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1.5rem 1rem 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gtm-cascade__item {
  margin: 0;
  flex: 0 0 180px;
  scroll-snap-align: center;
  text-align: center;
  transform: rotate(calc((var(--i) - 2) * 3deg)) translateY(calc((var(--i) % 2) * 18px));
  transition: transform 0.25s ease;
}

.gtm-cascade__item:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.03);
  z-index: 2;
}

.gtm-cascade__item figcaption {
  margin-top: 0.65rem;
  font-family: var(--gtm-font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gtm-ink-soft);
}

/* ---------- Download ---------- */
.gtm-download {
  padding: 1rem 1rem 3rem;
}

.gtm-download__card {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 32px;
  background: linear-gradient(160deg, #4c1d95 0%, #6d28d9 45%, #7c3aed 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--gtm-shadow);
}

.gtm-download__rays {
  position: absolute;
  inset: -40%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 213, 74, 0.12) 0deg 12deg, transparent 12deg 24deg);
  animation: gtm-spin 28s linear infinite;
  pointer-events: none;
}

@keyframes gtm-spin {
  to {
    transform: rotate(360deg);
  }
}

.gtm-download__icon {
  position: relative;
  margin: 0 auto 1rem;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.gtm-download__card h2 {
  position: relative;
  margin: 0 0 0.5rem;
  font-family: var(--gtm-font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.gtm-download__card > p {
  position: relative;
  margin: 0 auto 1.35rem;
  max-width: 36ch;
  opacity: 0.92;
  font-weight: 600;
}

.gtm-download .gtm-pack__cta {
  position: relative;
}

/* ---------- FAQ ---------- */
.gtm-faq {
  padding: 1rem 1rem 4rem;
  max-width: 720px;
  margin: 0 auto;
}

.gtm-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gtm-faq__item {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 0.25rem 1rem 0.85rem;
  box-shadow: 0 8px 18px rgba(74, 32, 140, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.gtm-faq__item summary {
  cursor: pointer;
  font-family: var(--gtm-font-display);
  font-weight: 600;
  padding: 0.85rem 0;
  list-style: none;
  color: var(--gtm-ink);
}

.gtm-faq__item summary::-webkit-details-marker {
  display: none;
}

.gtm-faq__item p {
  margin: 0;
  color: var(--gtm-muted);
  font-weight: 600;
  padding-bottom: 0.35rem;
}

/* ---------- Ticker ---------- */
.gtm-ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  height: var(--gtm-ticker-h);
  background: rgba(46, 16, 101, 0.92);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-top: 2px solid rgba(255, 213, 74, 0.45);
}

.gtm-ticker__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: gtm-marquee 28s linear infinite;
  font-weight: 700;
  font-size: 0.88rem;
  padding-left: 100%;
}

.gtm-ticker__track span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--gtm-cyan);
  vertical-align: middle;
}

@keyframes gtm-marquee {
  to {
    transform: translateX(-100%);
  }
}

/* ---------- Footer ---------- */
.gtm-footer {
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(167, 139, 250, 0.35);
  padding: 2rem 1rem 1.5rem;
}

.gtm-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.gtm-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--gtm-font-display);
  font-weight: 600;
  cursor: pointer;
}

.gtm-footer__brand img {
  border-radius: 10px;
}

.gtm-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.gtm-footer__links a {
  font-weight: 700;
  color: var(--gtm-ink-soft);
  cursor: pointer;
  transition: color 0.2s ease;
}

.gtm-footer__links a:hover {
  color: var(--gtm-pink-deep);
}

.gtm-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gtm-muted);
  font-weight: 600;
}

/* ---------- Modal ---------- */
.gtm-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.gtm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 16, 56, 0.62);
  cursor: pointer;
}

.gtm-modal__dialog {
  position: relative;
  width: min(400px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--gtm-shadow);
  animation: gtm-pop 0.28s ease-out;
}

@keyframes gtm-pop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gtm-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--gtm-lilac);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gtm-ink);
}

.gtm-modal__ribbon {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #5eead4, var(--gtm-cyan));
  color: #fff;
  font-family: var(--gtm-font-display);
  font-weight: 600;
}

.gtm-modal__dialog h3 {
  margin: 0 0 0.5rem;
  font-family: var(--gtm-font-display);
  font-size: 1.35rem;
}

.gtm-modal__dialog p {
  margin: 0 0 1.25rem;
  color: var(--gtm-muted);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .gtm-hud__links {
    display: flex;
  }

  .gtm-menu-toggle {
    display: none;
  }

  .gtm-hud__actions {
    margin-left: 0;
  }

  .gtm-hero {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 2rem 1.5rem 4rem;
    gap: 1.5rem;
  }

  .gtm-pack {
    margin: 0;
    max-width: none;
  }

  .gtm-hero__phone {
    max-width: 280px;
  }

  .gtm-path::before {
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
  }

  .gtm-path__node {
    grid-template-columns: 1fr 64px 1fr;
    gap: 1rem;
    align-items: center;
  }

  .gtm-path__node--left .gtm-path__icon {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .gtm-path__node--left .gtm-path__card {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
  }

  .gtm-path__node--right .gtm-path__icon {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .gtm-path__node--right .gtm-path__card {
    grid-column: 3;
    grid-row: 1;
    text-align: left;
  }

  .gtm-path__check {
    left: 50%;
    transform: translateX(-50%);
  }

  .gtm-cascade {
    justify-content: center;
    overflow: visible;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
  }

  .gtm-cascade__item {
    flex: 0 0 170px;
  }

  .gtm-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }

  .gtm-footer__copy {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .gtm-cascade__item {
    flex: 0 0 190px;
  }

  .gtm-hero__phone {
    max-width: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gtm-floaters span,
  .gtm-badge,
  .gtm-download__rays,
  .gtm-ticker__track {
    animation: none !important;
  }

  .gtm-btn,
  .gtm-cascade__item,
  .gtm-levelbar__fill {
    transition: none !important;
  }
}
